UNPKG

@pulumi/gcp

Version:

A Pulumi package for creating and managing Google Cloud Platform resources.

229 lines • 9.36 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * > **Warning:** `gcp.notebooks.Environment` is deprecated and will be removed in a future major release. Use `gcp.workbench.Instance` instead. * * A Cloud AI Platform Notebook environment. * * To get more information about Environment, see: * * * [API documentation](https://cloud.google.com/ai-platform/notebooks/docs/reference/rest) * * How-to Guides * * [Official Documentation](https://cloud.google.com/ai-platform-notebooks) * * ## Example Usage * * ### Notebook Environment Basic * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const environment = new gcp.notebooks.Environment("environment", { * name: "notebooks-environment", * location: "us-west1-a", * containerImage: { * repository: "gcr.io/deeplearning-platform-release/base-cpu", * }, * }); * ``` * * ## Import * * Environment can be imported using any of these accepted formats: * * * `projects/{{project}}/locations/{{location}}/environments/{{name}}` * * `{{project}}/{{location}}/{{name}}` * * `{{location}}/{{name}}` * * When using the `pulumi import` command, Environment can be imported using one of the formats above. For example: * * ```sh * $ pulumi import gcp:notebooks/environment:Environment default projects/{{project}}/locations/{{location}}/environments/{{name}} * $ pulumi import gcp:notebooks/environment:Environment default {{project}}/{{location}}/{{name}} * $ pulumi import gcp:notebooks/environment:Environment default {{location}}/{{name}} * ``` */ export declare class Environment extends pulumi.CustomResource { /** * Get an existing Environment 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?: EnvironmentState, opts?: pulumi.CustomResourceOptions): Environment; /** * Returns true if the given object is an instance of Environment. 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 Environment; /** * Use a container image to start the notebook instance. * Structure is documented below. */ readonly containerImage: pulumi.Output<outputs.notebooks.EnvironmentContainerImage | undefined>; /** * Instance creation time */ readonly createTime: pulumi.Output<string>; /** * Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. * When a 'terraform destroy' or 'pulumi up' would delete the resource, * the command will fail if this field is set to "PREVENT" in Terraform state. * When set to "ABANDON", the command will remove the resource from Terraform * management without updating or deleting the resource in the API. * When set to "DELETE", deleting the resource is allowed. */ readonly deletionPolicy: pulumi.Output<string>; /** * A brief description of this environment. */ readonly description: pulumi.Output<string | undefined>; /** * Display name of this environment for the UI. */ readonly displayName: pulumi.Output<string | undefined>; /** * A reference to the zone where the machine resides. */ readonly location: pulumi.Output<string>; /** * The name specified for the Environment instance. * Format: projects/{project_id}/locations/{location}/environments/{environmentId} */ readonly name: pulumi.Output<string>; /** * Path to a Bash script that automatically runs after a notebook instance fully boots up. * The path must be a URL or Cloud Storage path. Example: "gs://path-to-file/file-name" */ readonly postStartupScript: pulumi.Output<string | undefined>; /** * 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>; /** * Use a Compute Engine VM image to start the notebook instance. * Structure is documented below. */ readonly vmImage: pulumi.Output<outputs.notebooks.EnvironmentVmImage | undefined>; /** * Create a Environment 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: EnvironmentArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Environment resources. */ export interface EnvironmentState { /** * Use a container image to start the notebook instance. * Structure is documented below. */ containerImage?: pulumi.Input<inputs.notebooks.EnvironmentContainerImage | undefined>; /** * Instance creation time */ createTime?: pulumi.Input<string | undefined>; /** * Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. * When a 'terraform destroy' or 'pulumi up' would delete the resource, * the command will fail if this field is set to "PREVENT" in Terraform state. * When set to "ABANDON", the command will remove the resource from Terraform * management without updating or deleting the resource in the API. * When set to "DELETE", deleting the resource is allowed. */ deletionPolicy?: pulumi.Input<string | undefined>; /** * A brief description of this environment. */ description?: pulumi.Input<string | undefined>; /** * Display name of this environment for the UI. */ displayName?: pulumi.Input<string | undefined>; /** * A reference to the zone where the machine resides. */ location?: pulumi.Input<string | undefined>; /** * The name specified for the Environment instance. * Format: projects/{project_id}/locations/{location}/environments/{environmentId} */ name?: pulumi.Input<string | undefined>; /** * Path to a Bash script that automatically runs after a notebook instance fully boots up. * The path must be a URL or Cloud Storage path. Example: "gs://path-to-file/file-name" */ postStartupScript?: pulumi.Input<string | undefined>; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ project?: pulumi.Input<string | undefined>; /** * Use a Compute Engine VM image to start the notebook instance. * Structure is documented below. */ vmImage?: pulumi.Input<inputs.notebooks.EnvironmentVmImage | undefined>; } /** * The set of arguments for constructing a Environment resource. */ export interface EnvironmentArgs { /** * Use a container image to start the notebook instance. * Structure is documented below. */ containerImage?: pulumi.Input<inputs.notebooks.EnvironmentContainerImage | undefined>; /** * Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. * When a 'terraform destroy' or 'pulumi up' would delete the resource, * the command will fail if this field is set to "PREVENT" in Terraform state. * When set to "ABANDON", the command will remove the resource from Terraform * management without updating or deleting the resource in the API. * When set to "DELETE", deleting the resource is allowed. */ deletionPolicy?: pulumi.Input<string | undefined>; /** * A brief description of this environment. */ description?: pulumi.Input<string | undefined>; /** * Display name of this environment for the UI. */ displayName?: pulumi.Input<string | undefined>; /** * A reference to the zone where the machine resides. */ location: pulumi.Input<string>; /** * The name specified for the Environment instance. * Format: projects/{project_id}/locations/{location}/environments/{environmentId} */ name?: pulumi.Input<string | undefined>; /** * Path to a Bash script that automatically runs after a notebook instance fully boots up. * The path must be a URL or Cloud Storage path. Example: "gs://path-to-file/file-name" */ postStartupScript?: pulumi.Input<string | undefined>; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ project?: pulumi.Input<string | undefined>; /** * Use a Compute Engine VM image to start the notebook instance. * Structure is documented below. */ vmImage?: pulumi.Input<inputs.notebooks.EnvironmentVmImage | undefined>; } //# sourceMappingURL=environment.d.ts.map