UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

154 lines (153 loc) 4.62 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Use this data source to query detailed information of ebs 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: volcengine.ebs.AutoSnapshotPolicy[] = []; * for (const range = {value: 0}; range.value < 2; range.value++) { * fooAutoSnapshotPolicy.push(new volcengine.ebs.AutoSnapshotPolicy(`fooAutoSnapshotPolicy-${range.value}`, { * autoSnapshotPolicyName: "acc-test-auto-snapshot-policy", * timePoints: [ * "1", * "5", * "9", * ], * retentionDays: -1, * repeatWeekdays: [ * "2", * "6", * ], * projectName: "default", * tags: [{ * key: "k1", * value: "v1", * }], * })); * } * const fooAutoSnapshotPolicies = volcengine.ebs.getAutoSnapshotPoliciesOutput({ * ids: fooAutoSnapshotPolicy.map(__item => __item.id), * }); * ``` */ export declare function getAutoSnapshotPolicies(args?: GetAutoSnapshotPoliciesArgs, opts?: pulumi.InvokeOptions): Promise<GetAutoSnapshotPoliciesResult>; /** * A collection of arguments for invoking getAutoSnapshotPolicies. */ export interface GetAutoSnapshotPoliciesArgs { /** * A list of auto snapshot policy IDs. */ ids?: string[]; /** * A Name Regex of Resource. */ nameRegex?: string; /** * File name where to save data source results. */ outputFile?: string; /** * The project name of auto snapshot policy. */ projectName?: string; /** * Tags. */ tags?: inputs.ebs.GetAutoSnapshotPoliciesTag[]; } /** * A collection of values returned by getAutoSnapshotPolicies. */ export interface GetAutoSnapshotPoliciesResult { /** * The collection of query. */ readonly autoSnapshotPolicies: outputs.ebs.GetAutoSnapshotPoliciesAutoSnapshotPolicy[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly ids?: string[]; readonly nameRegex?: string; readonly outputFile?: string; /** * The project name of the auto snapshot policy. */ readonly projectName?: string; /** * Tags. */ readonly tags?: outputs.ebs.GetAutoSnapshotPoliciesTag[]; /** * The total count of query. */ readonly totalCount: number; } /** * Use this data source to query detailed information of ebs 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: volcengine.ebs.AutoSnapshotPolicy[] = []; * for (const range = {value: 0}; range.value < 2; range.value++) { * fooAutoSnapshotPolicy.push(new volcengine.ebs.AutoSnapshotPolicy(`fooAutoSnapshotPolicy-${range.value}`, { * autoSnapshotPolicyName: "acc-test-auto-snapshot-policy", * timePoints: [ * "1", * "5", * "9", * ], * retentionDays: -1, * repeatWeekdays: [ * "2", * "6", * ], * projectName: "default", * tags: [{ * key: "k1", * value: "v1", * }], * })); * } * const fooAutoSnapshotPolicies = volcengine.ebs.getAutoSnapshotPoliciesOutput({ * ids: fooAutoSnapshotPolicy.map(__item => __item.id), * }); * ``` */ export declare function getAutoSnapshotPoliciesOutput(args?: GetAutoSnapshotPoliciesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetAutoSnapshotPoliciesResult>; /** * A collection of arguments for invoking getAutoSnapshotPolicies. */ export interface GetAutoSnapshotPoliciesOutputArgs { /** * A list of auto snapshot policy IDs. */ ids?: pulumi.Input<pulumi.Input<string>[]>; /** * A Name Regex of Resource. */ nameRegex?: pulumi.Input<string>; /** * File name where to save data source results. */ outputFile?: pulumi.Input<string>; /** * The project name of auto snapshot policy. */ projectName?: pulumi.Input<string>; /** * Tags. */ tags?: pulumi.Input<pulumi.Input<inputs.ebs.GetAutoSnapshotPoliciesTagArgs>[]>; }