Location

Create a Location Resource

def Location(resource_name, opts=None, name=None, project=None, __props__=None);
func NewLocation(ctx *Context, name string, args *LocationArgs, opts ...ResourceOption) (*Location, error)
public Location(string name, LocationArgs? args = null, CustomResourceOptions? opts = null)
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.
opts ResourceOptions
A bag of options that control this 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.

Location Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The Location resource accepts the following input properties:

Name string

Name of the Location resource.

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Name string

Name of the Location resource.

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

name string

Name of the Location resource.

project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

name str

Name of the Location resource.

project str

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Outputs

All input properties are implicitly available as output properties. Additionally, the Location resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
SelfLink string

The URI of the created resource.

Id string
The provider-assigned unique ID for this managed resource.
SelfLink string

The URI of the created resource.

id string
The provider-assigned unique ID for this managed resource.
selfLink string

The URI of the created resource.

id str
The provider-assigned unique ID for this managed resource.
self_link str

The URI of the created resource.

Look up an 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
static get(resource_name, id, opts=None, name=None, project=None, self_link=None, __props__=None);
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)
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.

The following state arguments are supported:

Name string

Name of the Location resource.

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

SelfLink string

The URI of the created resource.

Name string

Name of the Location resource.

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

SelfLink string

The URI of the created resource.

name string

Name of the Location resource.

project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

selfLink string

The URI of the created resource.

name str

Name of the Location resource.

project str

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

self_link str

The URI of the created resource.

Package Details

Repository
https://github.com/pulumi/pulumi-gcp
License
Apache-2.0
Notes
This Pulumi package is based on the google-beta Terraform Provider.