get Ecs Deployment Sets
suspend fun getEcsDeploymentSets(argument: GetEcsDeploymentSetsPlainArgs): GetEcsDeploymentSetsResult
This data source provides the Ecs Deployment Sets of the current Alibaba Cloud user.
NOTE: Available in v1.140.0+.
Example Usage
Basic Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.ecs.EcsFunctions;
import com.pulumi.alicloud.ecs.inputs.GetEcsDeploymentSetsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var ids = EcsFunctions.getEcsDeploymentSets(GetEcsDeploymentSetsArgs.builder()
.ids("example_id")
.build());
ctx.export("ecsDeploymentSetId1", ids.applyValue(getEcsDeploymentSetsResult -> getEcsDeploymentSetsResult.sets()[0].id()));
final var nameRegex = EcsFunctions.getEcsDeploymentSets(GetEcsDeploymentSetsArgs.builder()
.nameRegex("^my-DeploymentSet")
.build());
ctx.export("ecsDeploymentSetId2", nameRegex.applyValue(getEcsDeploymentSetsResult -> getEcsDeploymentSetsResult.sets()[0].id()));
}
}
Content copied to clipboard
Return
A collection of values returned by getEcsDeploymentSets.
Parameters
argument
A collection of arguments for invoking getEcsDeploymentSets.
suspend fun getEcsDeploymentSets(deploymentSetName: String? = null, ids: List<String>? = null, nameRegex: String? = null, outputFile: String? = null, strategy: String? = null): GetEcsDeploymentSetsResult
Return
A collection of values returned by getEcsDeploymentSets.
See also
Parameters
deployment Set Name
The name of the deployment set.
ids
A list of Deployment Set IDs.
name Regex
A regex string to filter results by Deployment Set name.
output File
strategy
The deployment strategy.
suspend fun getEcsDeploymentSets(argument: suspend GetEcsDeploymentSetsPlainArgsBuilder.() -> Unit): GetEcsDeploymentSetsResult
Return
A collection of values returned by getEcsDeploymentSets.
See also
Parameters
argument
Builder for com.pulumi.alicloud.ecs.kotlin.inputs.GetEcsDeploymentSetsPlainArgs.