UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

71 lines 2.8 kB
"use strict"; // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.getDeploymentSetsOutput = exports.getDeploymentSets = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * 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), * }); * ``` */ function getDeploymentSets(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("volcengine:ecs/getDeploymentSets:getDeploymentSets", { "granularity": args.granularity, "ids": args.ids, "nameRegex": args.nameRegex, "outputFile": args.outputFile, }, opts); } exports.getDeploymentSets = getDeploymentSets; /** * 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), * }); * ``` */ function getDeploymentSetsOutput(args, opts) { return pulumi.output(args).apply((a) => getDeploymentSets(a, opts)); } exports.getDeploymentSetsOutput = getDeploymentSetsOutput; //# sourceMappingURL=getDeploymentSets.js.map