EcsDedicatedHostCluster

class EcsDedicatedHostCluster : KotlinCustomResource

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>

Properties

Link copied to clipboard

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>?

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>?

The dry run.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val tags: Output<Map<String, Any>>?

A mapping of tags to assign to the resource.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val zoneId: Output<String>

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