UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

74 lines 3.14 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.deploymentSetsOutput = exports.deploymentSets = 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), * }); * ``` */ /** @deprecated volcengine.ecs.DeploymentSets has been deprecated in favor of volcengine.ecs.getDeploymentSets */ function deploymentSets(args, opts) { pulumi.log.warn("deploymentSets is deprecated: volcengine.ecs.DeploymentSets has been deprecated in favor of volcengine.ecs.getDeploymentSets"); args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("volcengine:ecs/deploymentSets:DeploymentSets", { "granularity": args.granularity, "ids": args.ids, "nameRegex": args.nameRegex, "outputFile": args.outputFile, }, opts); } exports.deploymentSets = deploymentSets; /** * 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), * }); * ``` */ /** @deprecated volcengine.ecs.DeploymentSets has been deprecated in favor of volcengine.ecs.getDeploymentSets */ function deploymentSetsOutput(args, opts) { return pulumi.output(args).apply((a) => deploymentSets(a, opts)); } exports.deploymentSetsOutput = deploymentSetsOutput; //# sourceMappingURL=deploymentSets.js.map