EcsDedicatedHostClusterArgs

data class EcsDedicatedHostClusterArgs(val dedicatedHostClusterName: Output<String>? = null, val description: Output<String>? = null, val dryRun: Output<Boolean>? = null, val tags: Output<Map<String, Any>>? = null, val zoneId: Output<String>? = null) : ConvertibleToJava<EcsDedicatedHostClusterArgs>

Provides a ECS Dedicated Host Cluster resource. For information about ECS Dedicated Host Cluster and how to use it, see What is Dedicated Host Cluster.

NOTE: Available in v1.146.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.AlicloudFunctions;
import com.pulumi.alicloud.inputs.GetZonesArgs;
import com.pulumi.alicloud.ecs.EcsDedicatedHostCluster;
import com.pulumi.alicloud.ecs.EcsDedicatedHostClusterArgs;
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 exampleZones = AlicloudFunctions.getZones();
var exampleEcsDedicatedHostCluster = new EcsDedicatedHostCluster("exampleEcsDedicatedHostCluster", EcsDedicatedHostClusterArgs.builder()
.dedicatedHostClusterName("example_value")
.description("example_value")
.zoneId(exampleZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
.tags(Map.ofEntries(
Map.entry("Create", "TF"),
Map.entry("For", "DDH_Cluster_Test")
))
.build());
}
}

Import

ECS Dedicated Host Cluster can be imported using the id, e.g.

$ pulumi import alicloud:ecs/ecsDedicatedHostCluster:EcsDedicatedHostCluster example <id>

Constructors

Link copied to clipboard
fun EcsDedicatedHostClusterArgs(dedicatedHostClusterName: Output<String>? = null, description: Output<String>? = null, dryRun: Output<Boolean>? = null, tags: Output<Map<String, Any>>? = null, zoneId: Output<String>? = null)

Functions

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

Properties

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

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

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

The description of the dedicated host cluster. The description must be 2 to 256 characters in length. It cannot start with http:// or https://.

Link copied to clipboard
val dryRun: Output<Boolean>? = null

The dry run.

Link copied to clipboard
val tags: Output<Map<String, Any>>? = null

A mapping of tags to assign to the resource.

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

The ID of the zone in which to create the dedicated host cluster.