1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. notebooks
  5. Location
Google Cloud Classic v8.9.3 published on Monday, Nov 18, 2024 by Pulumi

gcp.notebooks.Location

Explore with Pulumi AI

gcp logo
Google Cloud Classic v8.9.3 published on Monday, Nov 18, 2024 by Pulumi

    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", &notebooks.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:

    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 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.
    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.

    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 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.
    id String
    The provider-assigned unique ID for this managed resource.
    selfLink String
    The URI of the created resource.

    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.
    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 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.
    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.

    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.
    gcp logo
    Google Cloud Classic v8.9.3 published on Monday, Nov 18, 2024 by Pulumi