UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

116 lines (115 loc) 3.74 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Use this data source to query detailed information of nas auto snapshot policies * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * import * as volcengine from "@volcengine/pulumi"; * * 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 fooAutoSnapshotPolicies = volcengine.nas.getAutoSnapshotPoliciesOutput({ * autoSnapshotPolicyId: fooAutoSnapshotPolicy.id, * }); * ``` */ /** @deprecated volcengine.nas.AutoSnapshotPolicies has been deprecated in favor of volcengine.nas.getAutoSnapshotPolicies */ export declare function autoSnapshotPolicies(args?: AutoSnapshotPoliciesArgs, opts?: pulumi.InvokeOptions): Promise<AutoSnapshotPoliciesResult>; /** * A collection of arguments for invoking AutoSnapshotPolicies. */ export interface AutoSnapshotPoliciesArgs { /** * The id of auto snapshot policy. */ autoSnapshotPolicyId?: string; /** * The name of auto snapshot policy. */ autoSnapshotPolicyName?: string; /** * A Name Regex of Resource. */ nameRegex?: string; /** * File name where to save data source results. */ outputFile?: string; } /** * A collection of values returned by AutoSnapshotPolicies. */ export interface AutoSnapshotPoliciesResult { /** * The collection of query. */ readonly autoSnapshotPolices: outputs.nas.AutoSnapshotPoliciesAutoSnapshotPolice[]; /** * The ID of auto snapshot policy. */ readonly autoSnapshotPolicyId?: string; /** * The name of auto snapshot policy. */ readonly autoSnapshotPolicyName?: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly nameRegex?: string; readonly outputFile?: string; /** * The total count of query. */ readonly totalCount: number; } /** * Use this data source to query detailed information of nas auto snapshot policies * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * import * as volcengine from "@volcengine/pulumi"; * * 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 fooAutoSnapshotPolicies = volcengine.nas.getAutoSnapshotPoliciesOutput({ * autoSnapshotPolicyId: fooAutoSnapshotPolicy.id, * }); * ``` */ /** @deprecated volcengine.nas.AutoSnapshotPolicies has been deprecated in favor of volcengine.nas.getAutoSnapshotPolicies */ export declare function autoSnapshotPoliciesOutput(args?: AutoSnapshotPoliciesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<AutoSnapshotPoliciesResult>; /** * A collection of arguments for invoking AutoSnapshotPolicies. */ export interface AutoSnapshotPoliciesOutputArgs { /** * The id of auto snapshot policy. */ autoSnapshotPolicyId?: pulumi.Input<string>; /** * The name of auto snapshot policy. */ autoSnapshotPolicyName?: pulumi.Input<string>; /** * A Name Regex of Resource. */ nameRegex?: pulumi.Input<string>; /** * File name where to save data source results. */ outputFile?: pulumi.Input<string>; }