UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

133 lines (132 loc) 5.04 kB
import * as pulumi from "@pulumi/pulumi"; /** * Provides a resource to manage nas auto snapshot policy * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@volcengine/pulumi"; * * const foo = new volcengine.nas.AutoSnapshotPolicy("foo", { * autoSnapshotPolicyName: "acc-test-auto_snapshot_policy", * repeatWeekdays: "1,3,5,7", * retentionDays: 20, * timePoints: "0,7,17", * }); * ``` * * ## Import * * NasAutoSnapshotPolicy can be imported using the id, e.g. * * ```sh * $ pulumi import volcengine:nas/autoSnapshotPolicy:AutoSnapshotPolicy default resource_id * ``` */ export declare class AutoSnapshotPolicy extends pulumi.CustomResource { /** * Get an existing AutoSnapshotPolicy 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?: AutoSnapshotPolicyState, opts?: pulumi.CustomResourceOptions): AutoSnapshotPolicy; /** * Returns true if the given object is an instance of AutoSnapshotPolicy. 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 AutoSnapshotPolicy; /** * The name of the auto snapshot policy. */ readonly autoSnapshotPolicyName: pulumi.Output<string>; /** * The create time of auto snapshot policy. */ readonly createTime: pulumi.Output<string>; /** * The count of file system which auto snapshot policy bind. */ readonly fileSystemCount: pulumi.Output<number>; /** * The repeat weekdays of the auto snapshot policy. Support setting multiple dates, separated by English commas. Valid values: `1` ~ `7`. */ readonly repeatWeekdays: pulumi.Output<string>; /** * The retention days of the auto snapshot policy. Valid values: -1(permanent) or 1 ~ 65536. Default is 30. */ readonly retentionDays: pulumi.Output<number>; /** * The status of auto snapshot policy. */ readonly status: pulumi.Output<string>; /** * The time points of the auto snapshot policy. Support setting multiple dates, separated by English commas. Valid values: `0` ~ `23`. */ readonly timePoints: pulumi.Output<string>; /** * Create a AutoSnapshotPolicy 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: AutoSnapshotPolicyArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AutoSnapshotPolicy resources. */ export interface AutoSnapshotPolicyState { /** * The name of the auto snapshot policy. */ autoSnapshotPolicyName?: pulumi.Input<string>; /** * The create time of auto snapshot policy. */ createTime?: pulumi.Input<string>; /** * The count of file system which auto snapshot policy bind. */ fileSystemCount?: pulumi.Input<number>; /** * The repeat weekdays of the auto snapshot policy. Support setting multiple dates, separated by English commas. Valid values: `1` ~ `7`. */ repeatWeekdays?: pulumi.Input<string>; /** * The retention days of the auto snapshot policy. Valid values: -1(permanent) or 1 ~ 65536. Default is 30. */ retentionDays?: pulumi.Input<number>; /** * The status of auto snapshot policy. */ status?: pulumi.Input<string>; /** * The time points of the auto snapshot policy. Support setting multiple dates, separated by English commas. Valid values: `0` ~ `23`. */ timePoints?: pulumi.Input<string>; } /** * The set of arguments for constructing a AutoSnapshotPolicy resource. */ export interface AutoSnapshotPolicyArgs { /** * The name of the auto snapshot policy. */ autoSnapshotPolicyName: pulumi.Input<string>; /** * The repeat weekdays of the auto snapshot policy. Support setting multiple dates, separated by English commas. Valid values: `1` ~ `7`. */ repeatWeekdays: pulumi.Input<string>; /** * The retention days of the auto snapshot policy. Valid values: -1(permanent) or 1 ~ 65536. Default is 30. */ retentionDays?: pulumi.Input<number>; /** * The time points of the auto snapshot policy. Support setting multiple dates, separated by English commas. Valid values: `0` ~ `23`. */ timePoints: pulumi.Input<string>; }