@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
102 lines (101 loc) • 3.7 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Provides a resource to manage nas auto snapshot policy apply
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
* import * as volcengine from "@volcengine/pulumi";
*
* const fooZones = volcengine.nas.getZones({});
* const fooFileSystem = new volcengine.nas.FileSystem("fooFileSystem", {
* fileSystemName: "acc-test-fs",
* description: "acc-test",
* zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
* capacity: 103,
* projectName: "default",
* tags: [{
* key: "k1",
* value: "v1",
* }],
* });
* const fooAutoSnapshotPolicy = new volcengine.nas.AutoSnapshotPolicy("fooAutoSnapshotPolicy", {
* autoSnapshotPolicyName: "acc-test-auto_snapshot_policy",
* repeatWeekdays: "1,3,5,7",
* timePoints: "0,7,17",
* retentionDays: 20,
* });
* const fooAutoSnapshotPolicyApply = new volcengine.nas.AutoSnapshotPolicyApply("fooAutoSnapshotPolicyApply", {
* fileSystemId: fooFileSystem.id,
* autoSnapshotPolicyId: fooAutoSnapshotPolicy.id,
* });
* ```
*
* ## Import
*
* NasAutoSnapshotPolicyApply can be imported using the auto_snapshot_policy_id:file_system_id, e.g.
*
* ```sh
* $ pulumi import volcengine:nas/autoSnapshotPolicyApply:AutoSnapshotPolicyApply default resource_id
* ```
*/
export declare class AutoSnapshotPolicyApply extends pulumi.CustomResource {
/**
* Get an existing AutoSnapshotPolicyApply 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?: AutoSnapshotPolicyApplyState, opts?: pulumi.CustomResourceOptions): AutoSnapshotPolicyApply;
/**
* Returns true if the given object is an instance of AutoSnapshotPolicyApply. 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 AutoSnapshotPolicyApply;
/**
* The id of auto snapshot policy.
*/
readonly autoSnapshotPolicyId: pulumi.Output<string>;
/**
* The id of file system.
*/
readonly fileSystemId: pulumi.Output<string>;
/**
* Create a AutoSnapshotPolicyApply 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: AutoSnapshotPolicyApplyArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering AutoSnapshotPolicyApply resources.
*/
export interface AutoSnapshotPolicyApplyState {
/**
* The id of auto snapshot policy.
*/
autoSnapshotPolicyId?: pulumi.Input<string>;
/**
* The id of file system.
*/
fileSystemId?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a AutoSnapshotPolicyApply resource.
*/
export interface AutoSnapshotPolicyApplyArgs {
/**
* The id of auto snapshot policy.
*/
autoSnapshotPolicyId: pulumi.Input<string>;
/**
* The id of file system.
*/
fileSystemId: pulumi.Input<string>;
}