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:
- Cloud
Provider string - Cloud Provider of the location.
- Cpln
Id 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.
- Ip
Ranges List<string> - A list of IP ranges of the location.
- Region string
- Region of the location.
- Self
Link string - Full link to this resource. Can be referenced by other resources.
- Cloud
Provider string - Cloud Provider of the location.
- Cpln
Id string - The ID, in GUID format, of the location.
- Description string
- Description of the location.
- Geos
[]Location
Geo - Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Ranges []string - A list of IP ranges of the location.
- Region string
- Region of the location.
- Self
Link string - Full link to this resource. Can be referenced by other resources.
- cloud
Provider String - Cloud Provider of the location.
- cpln
Id String - The ID, in GUID format, of the location.
- description String
- Description of the location.
- geos
List<Location
Geo> - id String
- The provider-assigned unique ID for this managed resource.
- ip
Ranges List<String> - A list of IP ranges of the location.
- region String
- Region of the location.
- self
Link String - Full link to this resource. Can be referenced by other resources.
- cloud
Provider string - Cloud Provider of the location.
- cpln
Id string - The ID, in GUID format, of the location.
- description string
- Description of the location.
- geos
Location
Geo[] - id string
- The provider-assigned unique ID for this managed resource.
- ip
Ranges string[] - A list of IP ranges of the location.
- region string
- Region of the location.
- self
Link 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[Location
Geo] - 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.
- cloud
Provider String - Cloud Provider of the location.
- cpln
Id 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.
- ip
Ranges List<String> - A list of IP ranges of the location.
- region String
- Region of the location.
- self
Link 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) -> Location
func 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)
Resource lookup is not supported in YAML
- 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.
- Cloud
Provider string - Cloud Provider of the location.
- Cpln
Id 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> - Ip
Ranges List<string> - A list of IP ranges of the location.
- Name string
- Name of the Location.
- Region string
- Region of the location.
- Self
Link string - Full link to this resource. Can be referenced by other resources.
- Dictionary<string, string>
- Key-value map of resource tags.
- Cloud
Provider string - Cloud Provider of the location.
- Cpln
Id string - The ID, in GUID format, of the location.
- Description string
- Description of the location.
- Enabled bool
- Indication if location is enabled.
- Geos
[]Location
Geo Args - Ip
Ranges []string - A list of IP ranges of the location.
- Name string
- Name of the Location.
- Region string
- Region of the location.
- Self
Link string - Full link to this resource. Can be referenced by other resources.
- map[string]string
- Key-value map of resource tags.
- cloud
Provider String - Cloud Provider of the location.
- cpln
Id String - The ID, in GUID format, of the location.
- description String
- Description of the location.
- enabled Boolean
- Indication if location is enabled.
- geos
List<Location
Geo> - ip
Ranges List<String> - A list of IP ranges of the location.
- name String
- Name of the Location.
- region String
- Region of the location.
- self
Link String - Full link to this resource. Can be referenced by other resources.
- Map<String,String>
- Key-value map of resource tags.
- cloud
Provider string - Cloud Provider of the location.
- cpln
Id string - The ID, in GUID format, of the location.
- description string
- Description of the location.
- enabled boolean
- Indication if location is enabled.
- geos
Location
Geo[] - ip
Ranges string[] - A list of IP ranges of the location.
- name string
- Name of the Location.
- region string
- Region of the location.
- self
Link 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[Location
Geo 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.
- cloud
Provider String - Cloud Provider of the location.
- cpln
Id 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>
- ip
Ranges List<String> - A list of IP ranges of the location.
- name String
- Name of the Location.
- region String
- Region of the location.
- self
Link 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
cpln
Terraform Provider.