UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

155 lines (154 loc) 6.11 kB
import * as pulumi from "@pulumi/pulumi"; /** * Manage storages mounted to the notebook resource within HuaweiCloud. A maximum of 10 storages can be mounted. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as pulumi from "@huaweicloudos/pulumi"; * * const config = new pulumi.Config(); * const notebookId = config.requireObject("notebookId"); * const uriParallelObs = config.requireObject("uriParallelObs"); * const test = new huaweicloud.modelarts.NotebookMountStorage("test", { * notebookId: notebookId, * storagePath: uriParallelObs, * localMountDirectory: "/data/test/", * }); * ``` * * ## Import * * The mount storage can be imported by `id`, It is composed of the ID of notebook and mount ID, separated by a slash. * * For example, bash * * ```sh * $ pulumi import huaweicloud:ModelArts/notebookMountStorage:NotebookMountStorage test b11b407c-e604-4e8d-8bc4-92398320b847/4e206d3c-6831-4267-b93d-e236105cda38 * ``` */ export declare class NotebookMountStorage extends pulumi.CustomResource { /** * Get an existing NotebookMountStorage 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?: NotebookMountStorageState, opts?: pulumi.CustomResourceOptions): NotebookMountStorage; /** * Returns true if the given object is an instance of NotebookMountStorage. 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 NotebookMountStorage; /** * Specifies the local mount directory. * Only the subdirectory of `/data/` can be mounted. The format is : `/data/dir1/`. * Changing this parameter will create a new resource. */ readonly localMountDirectory: pulumi.Output<string>; /** * The mount ID. */ readonly mountId: pulumi.Output<string>; /** * Specifies ID of notebook which the storage be mounted to. * Changing this parameter will create a new resource. */ readonly notebookId: pulumi.Output<string>; /** * The region in which to create the resource. If omitted, the * provider-level region will be used. Changing this parameter will create a new resource. */ readonly region: pulumi.Output<string>; /** * mount status. Valid values include: `MOUNTING`, `MOUNT_FAILED`, `MOUNTED`, `UNMOUNTING`, * `UNMOUNT_FAILED`, `UNMOUNTED`. */ readonly status: pulumi.Output<string>; /** * Specifies the path of Parallel File System (PFS) or its folders in OBS. * The format is : `obs://obs-bucket/folder/`. Changing this parameter will create a new resource. */ readonly storagePath: pulumi.Output<string>; /** * The type of storage system. The value is `OBSFS`. */ readonly type: pulumi.Output<string>; /** * Create a NotebookMountStorage 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: NotebookMountStorageArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering NotebookMountStorage resources. */ export interface NotebookMountStorageState { /** * Specifies the local mount directory. * Only the subdirectory of `/data/` can be mounted. The format is : `/data/dir1/`. * Changing this parameter will create a new resource. */ localMountDirectory?: pulumi.Input<string>; /** * The mount ID. */ mountId?: pulumi.Input<string>; /** * Specifies ID of notebook which the storage be mounted to. * Changing this parameter will create a new resource. */ notebookId?: pulumi.Input<string>; /** * The region in which to create the resource. If omitted, the * provider-level region will be used. Changing this parameter will create a new resource. */ region?: pulumi.Input<string>; /** * mount status. Valid values include: `MOUNTING`, `MOUNT_FAILED`, `MOUNTED`, `UNMOUNTING`, * `UNMOUNT_FAILED`, `UNMOUNTED`. */ status?: pulumi.Input<string>; /** * Specifies the path of Parallel File System (PFS) or its folders in OBS. * The format is : `obs://obs-bucket/folder/`. Changing this parameter will create a new resource. */ storagePath?: pulumi.Input<string>; /** * The type of storage system. The value is `OBSFS`. */ type?: pulumi.Input<string>; } /** * The set of arguments for constructing a NotebookMountStorage resource. */ export interface NotebookMountStorageArgs { /** * Specifies the local mount directory. * Only the subdirectory of `/data/` can be mounted. The format is : `/data/dir1/`. * Changing this parameter will create a new resource. */ localMountDirectory: pulumi.Input<string>; /** * Specifies ID of notebook which the storage be mounted to. * Changing this parameter will create a new resource. */ notebookId: pulumi.Input<string>; /** * The region in which to create the resource. If omitted, the * provider-level region will be used. Changing this parameter will create a new resource. */ region?: pulumi.Input<string>; /** * Specifies the path of Parallel File System (PFS) or its folders in OBS. * The format is : `obs://obs-bucket/folder/`. Changing this parameter will create a new resource. */ storagePath: pulumi.Input<string>; }