UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

119 lines (118 loc) 3.8 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Use this data source to query detailed information of ecs deployment sets * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * import * as volcengine from "@volcengine/pulumi"; * * const fooDeploymentSet: volcengine.ecs.DeploymentSet[] = []; * for (const range = {value: 0}; range.value < 3; range.value++) { * fooDeploymentSet.push(new volcengine.ecs.DeploymentSet(`fooDeploymentSet-${range.value}`, { * deploymentSetName: `acc-test-ecs-ds-${range.value}`, * description: "acc-test", * granularity: "switch", * strategy: "Availability", * })); * } * const fooDeploymentSets = volcengine.ecs.getDeploymentSetsOutput({ * granularity: "switch", * ids: fooDeploymentSet.map(__item => __item.id), * }); * ``` */ export declare function getDeploymentSets(args?: GetDeploymentSetsArgs, opts?: pulumi.InvokeOptions): Promise<GetDeploymentSetsResult>; /** * A collection of arguments for invoking getDeploymentSets. */ export interface GetDeploymentSetsArgs { /** * The granularity of ECS DeploymentSet.Valid values: switch, host, rack. */ granularity?: string; /** * A list of ECS DeploymentSet IDs. */ ids?: string[]; /** * A Name Regex of ECS DeploymentSet. */ nameRegex?: string; /** * File name where to save data source results. */ outputFile?: string; } /** * A collection of values returned by getDeploymentSets. */ export interface GetDeploymentSetsResult { /** * The collection of ECS DeploymentSet query. */ readonly deploymentSets: outputs.ecs.GetDeploymentSetsDeploymentSet[]; /** * The granularity of ECS DeploymentSet. */ readonly granularity?: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly ids?: string[]; readonly nameRegex?: string; readonly outputFile?: string; /** * The total count of ECS DeploymentSet query. */ readonly totalCount: number; } /** * Use this data source to query detailed information of ecs deployment sets * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * import * as volcengine from "@volcengine/pulumi"; * * const fooDeploymentSet: volcengine.ecs.DeploymentSet[] = []; * for (const range = {value: 0}; range.value < 3; range.value++) { * fooDeploymentSet.push(new volcengine.ecs.DeploymentSet(`fooDeploymentSet-${range.value}`, { * deploymentSetName: `acc-test-ecs-ds-${range.value}`, * description: "acc-test", * granularity: "switch", * strategy: "Availability", * })); * } * const fooDeploymentSets = volcengine.ecs.getDeploymentSetsOutput({ * granularity: "switch", * ids: fooDeploymentSet.map(__item => __item.id), * }); * ``` */ export declare function getDeploymentSetsOutput(args?: GetDeploymentSetsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetDeploymentSetsResult>; /** * A collection of arguments for invoking getDeploymentSets. */ export interface GetDeploymentSetsOutputArgs { /** * The granularity of ECS DeploymentSet.Valid values: switch, host, rack. */ granularity?: pulumi.Input<string>; /** * A list of ECS DeploymentSet IDs. */ ids?: pulumi.Input<pulumi.Input<string>[]>; /** * A Name Regex of ECS DeploymentSet. */ nameRegex?: pulumi.Input<string>; /** * File name where to save data source results. */ outputFile?: pulumi.Input<string>; }