gcp.notebooks.Location
Explore with Pulumi AI
Represents a Location resource.
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: Optional[LocationArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Location(resource_name: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None,
project: Optional[str] = None)
func NewLocation(ctx *Context, name string, args *LocationArgs, opts ...ResourceOption) (*Location, error)
public Location(string name, LocationArgs? args = null, CustomResourceOptions? opts = null)
public Location(String name, LocationArgs args)
public Location(String name, LocationArgs args, CustomResourceOptions options)
type: gcp:notebooks: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 Gcp.Notebooks.Location("locationResource", new()
{
Name = "string",
Project = "string",
});
example, err := notebooks.NewLocation(ctx, "locationResource", ¬ebooks.LocationArgs{
Name: pulumi.String("string"),
Project: pulumi.String("string"),
})
var locationResource = new Location("locationResource", LocationArgs.builder()
.name("string")
.project("string")
.build());
location_resource = gcp.notebooks.Location("locationResource",
name="string",
project="string")
const locationResource = new gcp.notebooks.Location("locationResource", {
name: "string",
project: "string",
});
type: gcp:notebooks:Location
properties:
name: string
project: 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:
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,
name: Optional[str] = None,
project: Optional[str] = None,
self_link: Optional[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.
Import
Location can be imported using any of these accepted formats:
projects/{{project}}/locations/{{name}}
{{project}}/{{name}}
{{name}}
When using the pulumi import
command, Location can be imported using one of the formats above. For example:
$ pulumi import gcp:notebooks/location:Location default projects/{{project}}/locations/{{name}}
$ pulumi import gcp:notebooks/location:Location default {{project}}/{{name}}
$ pulumi import gcp:notebooks/location:Location default {{name}}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-beta
Terraform Provider.