EcsDeploymentSetArgs

data class EcsDeploymentSetArgs(val deploymentSetName: Output<String>? = null, val description: Output<String>? = null, val domain: Output<String>? = null, val granularity: Output<String>? = null, val onUnableToRedeployFailedInstance: Output<String>? = null, val strategy: Output<String>? = null) : ConvertibleToJava<EcsDeploymentSetArgs>

Provides a ECS Deployment Set resource. For information about ECS Deployment Set and how to use it, see What is Deployment Set.

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.EcsDeploymentSet;
import com.pulumi.alicloud.ecs.EcsDeploymentSetArgs;
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) {
var default_ = new EcsDeploymentSet("default", EcsDeploymentSetArgs.builder()
.deploymentSetName("example_value")
.description("example_value")
.domain("Default")
.granularity("Host")
.strategy("Availability")
.build());
}
}

Import

ECS Deployment Set can be imported using the id, e.g.

$ pulumi import alicloud:ecs/ecsDeploymentSet:EcsDeploymentSet example <id>

Constructors

Link copied to clipboard
fun EcsDeploymentSetArgs(deploymentSetName: Output<String>? = null, description: Output<String>? = null, domain: Output<String>? = null, granularity: Output<String>? = null, onUnableToRedeployFailedInstance: Output<String>? = null, strategy: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): EcsDeploymentSetArgs

Properties

Link copied to clipboard
val deploymentSetName: Output<String>? = null

The name of the deployment set. The name must be 2 to 128 characters in length and can contain letters, digits, colons (:), underscores (_), and hyphens (-). It must start with a letter and cannot start with http:// or https://.

Link copied to clipboard
val description: Output<String>? = null

The description of the deployment set. The description must be 2 to 256 characters in length and cannot start with http:// or https://.

Link copied to clipboard
val domain: Output<String>? = null

The deployment domain. Valid values: Default.

Link copied to clipboard
val granularity: Output<String>? = null

The deployment granularity. Valid values: Host.

Link copied to clipboard

The on unable to redeploy failed instance. Valid values: CancelMembershipAndStart, KeepStopped.

Link copied to clipboard
val strategy: Output<String>? = null

The deployment strategy. Valid values: Availability.