@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
101 lines (100 loc) • 3.33 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* > **Warning:** `gcp.notebooks.Location` is deprecated and will be removed in a future major release. This resource is not functional.
*
* Represents a Location 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:
*
* ```sh
* $ pulumi import gcp:notebooks/location:Location default projects/{{project}}/locations/{{name}}
* ```
*
* ```sh
* $ pulumi import gcp:notebooks/location:Location default {{project}}/{{name}}
* ```
*
* ```sh
* $ pulumi import gcp:notebooks/location:Location default {{name}}
* ```
*/
export declare class Location extends pulumi.CustomResource {
/**
* Get an existing Location resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: LocationState, opts?: pulumi.CustomResourceOptions): Location;
/**
* Returns true if the given object is an instance of Location. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is Location;
/**
* Name of the Location resource.
*/
readonly name: pulumi.Output<string>;
/**
* The ID of the project in which the resource belongs.
* If it is not provided, the provider project is used.
*/
readonly project: pulumi.Output<string>;
/**
* The URI of the created resource.
*/
readonly selfLink: pulumi.Output<string>;
/**
* Create a Location resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args?: LocationArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering Location resources.
*/
export interface LocationState {
/**
* Name of the Location resource.
*/
name?: pulumi.Input<string>;
/**
* The ID of the project in which the resource belongs.
* If it is not provided, the provider project is used.
*/
project?: pulumi.Input<string>;
/**
* The URI of the created resource.
*/
selfLink?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a Location resource.
*/
export interface LocationArgs {
/**
* Name of the Location resource.
*/
name?: pulumi.Input<string>;
/**
* The ID of the project in which the resource belongs.
* If it is not provided, the provider project is used.
*/
project?: pulumi.Input<string>;
}