@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
168 lines (167 loc) • 4.54 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Provides a resource to manage nas snapshot
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@volcengine/pulumi";
*
* const foo = new volcengine.nas.Snapshot("foo", {
* description: "desc2",
* fileSystemId: "enas-cnbj5c18f02afe0e",
* snapshotName: "tfsnap3",
* });
* ```
*
* ## Import
*
* Nas Snapshot can be imported using the id, e.g.
*
* ```sh
* $ pulumi import volcengine:nas/snapshot:Snapshot default snap-472a716f****
* ```
*/
export declare class Snapshot extends pulumi.CustomResource {
/**
* Get an existing Snapshot 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?: SnapshotState, opts?: pulumi.CustomResourceOptions): Snapshot;
/**
* Returns true if the given object is an instance of Snapshot. 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 Snapshot;
/**
* The create time of snapshot.
*/
readonly createTime: pulumi.Output<string>;
/**
* The description of snapshot.
*/
readonly description: pulumi.Output<string | undefined>;
/**
* The ID of the file system.
*/
readonly fileSystemId: pulumi.Output<string>;
/**
* The name of file system.
*/
readonly fileSystemName: pulumi.Output<string>;
/**
* Whether is encrypt.
*/
readonly isEncrypt: pulumi.Output<boolean>;
/**
* The progress of snapshot.
*/
readonly progress: pulumi.Output<string>;
/**
* The name of snapshot.
*/
readonly snapshotName: pulumi.Output<string>;
/**
* The type of snapshot.
*/
readonly snapshotType: pulumi.Output<string>;
/**
* The size of source.
*/
readonly sourceSize: pulumi.Output<number>;
/**
* The source version info.
*/
readonly sourceVersion: pulumi.Output<string>;
/**
* The status of snapshot.
*/
readonly status: pulumi.Output<string>;
/**
* The ID of zone.
*/
readonly zoneId: pulumi.Output<string>;
/**
* Create a Snapshot 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: SnapshotArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering Snapshot resources.
*/
export interface SnapshotState {
/**
* The create time of snapshot.
*/
createTime?: pulumi.Input<string>;
/**
* The description of snapshot.
*/
description?: pulumi.Input<string>;
/**
* The ID of the file system.
*/
fileSystemId?: pulumi.Input<string>;
/**
* The name of file system.
*/
fileSystemName?: pulumi.Input<string>;
/**
* Whether is encrypt.
*/
isEncrypt?: pulumi.Input<boolean>;
/**
* The progress of snapshot.
*/
progress?: pulumi.Input<string>;
/**
* The name of snapshot.
*/
snapshotName?: pulumi.Input<string>;
/**
* The type of snapshot.
*/
snapshotType?: pulumi.Input<string>;
/**
* The size of source.
*/
sourceSize?: pulumi.Input<number>;
/**
* The source version info.
*/
sourceVersion?: pulumi.Input<string>;
/**
* The status of snapshot.
*/
status?: pulumi.Input<string>;
/**
* The ID of zone.
*/
zoneId?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a Snapshot resource.
*/
export interface SnapshotArgs {
/**
* The description of snapshot.
*/
description?: pulumi.Input<string>;
/**
* The ID of the file system.
*/
fileSystemId: pulumi.Input<string>;
/**
* The name of snapshot.
*/
snapshotName: pulumi.Input<string>;
}