cpln.Location
Explore with Pulumi AI
Create Location Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Location(name: string, args: LocationArgs, opts?: CustomResourceOptions);@overload
def Location(resource_name: str,
             args: LocationArgs,
             opts: Optional[ResourceOptions] = None)
@overload
def Location(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             enabled: Optional[bool] = None,
             name: Optional[str] = None,
             tags: Optional[Mapping[str, str]] = None)func NewLocation(ctx *Context, name string, args LocationArgs, opts ...ResourceOption) (*Location, error)public Location(string name, LocationArgs args, CustomResourceOptions? opts = null)
public Location(String name, LocationArgs args)
public Location(String name, LocationArgs args, CustomResourceOptions options)
type: cpln:Location
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args LocationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args LocationArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args LocationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LocationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LocationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var locationResource = new Cpln.Location("locationResource", new()
{
    Enabled = false,
    Name = "string",
    Tags = 
    {
        { "string", "string" },
    },
});
example, err := cpln.NewLocation(ctx, "locationResource", &cpln.LocationArgs{
	Enabled: pulumi.Bool(false),
	Name:    pulumi.String("string"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
var locationResource = new Location("locationResource", LocationArgs.builder()
    .enabled(false)
    .name("string")
    .tags(Map.of("string", "string"))
    .build());
location_resource = cpln.Location("locationResource",
    enabled=False,
    name="string",
    tags={
        "string": "string",
    })
const locationResource = new cpln.Location("locationResource", {
    enabled: false,
    name: "string",
    tags: {
        string: "string",
    },
});
type: cpln:Location
properties:
    enabled: false
    name: string
    tags:
        string: string
Location Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Location resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the Location resource produces the following output properties:
- CloudProvider string
- Cloud Provider of the location.
- CplnId string
- The ID, in GUID format, of the location.
- Description string
- Description of the location.
- Geos
List<Pulumiverse.Cpln. Outputs. Location Geo> 
- Id string
- The provider-assigned unique ID for this managed resource.
- IpRanges List<string>
- A list of IP ranges of the location.
- Region string
- Region of the location.
- SelfLink string
- Full link to this resource. Can be referenced by other resources.
- CloudProvider string
- Cloud Provider of the location.
- CplnId string
- The ID, in GUID format, of the location.
- Description string
- Description of the location.
- Geos
[]LocationGeo 
- Id string
- The provider-assigned unique ID for this managed resource.
- IpRanges []string
- A list of IP ranges of the location.
- Region string
- Region of the location.
- SelfLink string
- Full link to this resource. Can be referenced by other resources.
- cloudProvider String
- Cloud Provider of the location.
- cplnId String
- The ID, in GUID format, of the location.
- description String
- Description of the location.
- geos
List<LocationGeo> 
- id String
- The provider-assigned unique ID for this managed resource.
- ipRanges List<String>
- A list of IP ranges of the location.
- region String
- Region of the location.
- selfLink String
- Full link to this resource. Can be referenced by other resources.
- cloudProvider string
- Cloud Provider of the location.
- cplnId string
- The ID, in GUID format, of the location.
- description string
- Description of the location.
- geos
LocationGeo[] 
- id string
- The provider-assigned unique ID for this managed resource.
- ipRanges string[]
- A list of IP ranges of the location.
- region string
- Region of the location.
- selfLink string
- Full link to this resource. Can be referenced by other resources.
- cloud_provider str
- Cloud Provider of the location.
- cpln_id str
- The ID, in GUID format, of the location.
- description str
- Description of the location.
- geos
Sequence[LocationGeo] 
- id str
- The provider-assigned unique ID for this managed resource.
- ip_ranges Sequence[str]
- A list of IP ranges of the location.
- region str
- Region of the location.
- self_link str
- Full link to this resource. Can be referenced by other resources.
- cloudProvider String
- Cloud Provider of the location.
- cplnId String
- The ID, in GUID format, of the location.
- description String
- Description of the location.
- geos List<Property Map>
- id String
- The provider-assigned unique ID for this managed resource.
- ipRanges List<String>
- A list of IP ranges of the location.
- region String
- Region of the location.
- selfLink String
- Full link to this resource. Can be referenced by other resources.
Look up Existing Location Resource
Get an existing Location resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: LocationState, opts?: CustomResourceOptions): Location@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        cloud_provider: Optional[str] = None,
        cpln_id: Optional[str] = None,
        description: Optional[str] = None,
        enabled: Optional[bool] = None,
        geos: Optional[Sequence[LocationGeoArgs]] = None,
        ip_ranges: Optional[Sequence[str]] = None,
        name: Optional[str] = None,
        region: Optional[str] = None,
        self_link: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None) -> Locationfunc GetLocation(ctx *Context, name string, id IDInput, state *LocationState, opts ...ResourceOption) (*Location, error)public static Location Get(string name, Input<string> id, LocationState? state, CustomResourceOptions? opts = null)public static Location get(String name, Output<String> id, LocationState state, CustomResourceOptions options)resources:  _:    type: cpln:Location    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- CloudProvider string
- Cloud Provider of the location.
- CplnId string
- The ID, in GUID format, of the location.
- Description string
- Description of the location.
- Enabled bool
- Indication if location is enabled.
- Geos
List<Pulumiverse.Cpln. Inputs. Location Geo> 
- IpRanges List<string>
- A list of IP ranges of the location.
- Name string
- Name of the Location.
- Region string
- Region of the location.
- SelfLink string
- Full link to this resource. Can be referenced by other resources.
- Dictionary<string, string>
- Key-value map of resource tags.
- CloudProvider string
- Cloud Provider of the location.
- CplnId string
- The ID, in GUID format, of the location.
- Description string
- Description of the location.
- Enabled bool
- Indication if location is enabled.
- Geos
[]LocationGeo Args 
- IpRanges []string
- A list of IP ranges of the location.
- Name string
- Name of the Location.
- Region string
- Region of the location.
- SelfLink string
- Full link to this resource. Can be referenced by other resources.
- map[string]string
- Key-value map of resource tags.
- cloudProvider String
- Cloud Provider of the location.
- cplnId String
- The ID, in GUID format, of the location.
- description String
- Description of the location.
- enabled Boolean
- Indication if location is enabled.
- geos
List<LocationGeo> 
- ipRanges List<String>
- A list of IP ranges of the location.
- name String
- Name of the Location.
- region String
- Region of the location.
- selfLink String
- Full link to this resource. Can be referenced by other resources.
- Map<String,String>
- Key-value map of resource tags.
- cloudProvider string
- Cloud Provider of the location.
- cplnId string
- The ID, in GUID format, of the location.
- description string
- Description of the location.
- enabled boolean
- Indication if location is enabled.
- geos
LocationGeo[] 
- ipRanges string[]
- A list of IP ranges of the location.
- name string
- Name of the Location.
- region string
- Region of the location.
- selfLink string
- Full link to this resource. Can be referenced by other resources.
- {[key: string]: string}
- Key-value map of resource tags.
- cloud_provider str
- Cloud Provider of the location.
- cpln_id str
- The ID, in GUID format, of the location.
- description str
- Description of the location.
- enabled bool
- Indication if location is enabled.
- geos
Sequence[LocationGeo Args] 
- ip_ranges Sequence[str]
- A list of IP ranges of the location.
- name str
- Name of the Location.
- region str
- Region of the location.
- self_link str
- Full link to this resource. Can be referenced by other resources.
- Mapping[str, str]
- Key-value map of resource tags.
- cloudProvider String
- Cloud Provider of the location.
- cplnId String
- The ID, in GUID format, of the location.
- description String
- Description of the location.
- enabled Boolean
- Indication if location is enabled.
- geos List<Property Map>
- ipRanges List<String>
- A list of IP ranges of the location.
- name String
- Name of the Location.
- region String
- Region of the location.
- selfLink String
- Full link to this resource. Can be referenced by other resources.
- Map<String>
- Key-value map of resource tags.
Supporting Types
LocationGeo, LocationGeoArgs    
Package Details
- Repository
- cpln pulumiverse/pulumi-cpln
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the cplnTerraform Provider.
