UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

114 lines (113 loc) 3.53 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, * }); * ``` */ export declare function getAutoSnapshotPolicies(args?: GetAutoSnapshotPoliciesArgs, opts?: pulumi.InvokeOptions): Promise<GetAutoSnapshotPoliciesResult>; /** * A collection of arguments for invoking getAutoSnapshotPolicies. */ export interface GetAutoSnapshotPoliciesArgs { /** * 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 getAutoSnapshotPolicies. */ export interface GetAutoSnapshotPoliciesResult { /** * The collection of query. */ readonly autoSnapshotPolices: outputs.nas.GetAutoSnapshotPoliciesAutoSnapshotPolice[]; /** * 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, * }); * ``` */ export declare function getAutoSnapshotPoliciesOutput(args?: GetAutoSnapshotPoliciesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetAutoSnapshotPoliciesResult>; /** * A collection of arguments for invoking getAutoSnapshotPolicies. */ export interface GetAutoSnapshotPoliciesOutputArgs { /** * 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>; }