| Modifier and Type | Method and Description |
|---|---|
Cluster |
build() |
Cluster.Builder |
capacity(AddCapacityOptions capacity)
The ec2 capacity to add to the cluster.
|
Cluster.Builder |
clusterName(String clusterName)
The name for the cluster.
|
Cluster.Builder |
containerInsights(Boolean containerInsights)
If true CloudWatch Container Insights will be enabled for the cluster.
|
static Cluster.Builder |
create(software.constructs.Construct scope,
String id) |
Cluster.Builder |
defaultCloudMapNamespace(CloudMapNamespaceOptions defaultCloudMapNamespace)
The service discovery namespace created in this cluster.
|
Cluster.Builder |
enableFargateCapacityProviders(Boolean enableFargateCapacityProviders)
Whether to enable Fargate Capacity Providers.
|
Cluster.Builder |
executeCommandConfiguration(ExecuteCommandConfiguration executeCommandConfiguration)
The execute command configuration for the cluster.
|
Cluster.Builder |
vpc(IVpc vpc)
The VPC where your ECS instances will be running or your ENIs will be deployed.
|
@Stability(value=Stable) public static Cluster.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.Cluster.Builder.@Stability(value=Stable) public Cluster.Builder capacity(AddCapacityOptions capacity)
Default: - no EC2 capacity will be added, you can use `addCapacity` to add capacity later.
capacity - The ec2 capacity to add to the cluster. This parameter is required.this@Stability(value=Stable) public Cluster.Builder clusterName(String clusterName)
Default: CloudFormation-generated name
clusterName - The name for the cluster. This parameter is required.this@Stability(value=Stable) public Cluster.Builder containerInsights(Boolean containerInsights)
Default: - Container Insights will be disabled for this cluster.
containerInsights - If true CloudWatch Container Insights will be enabled for the cluster. This parameter is required.this@Stability(value=Stable) public Cluster.Builder defaultCloudMapNamespace(CloudMapNamespaceOptions defaultCloudMapNamespace)
Default: - no service discovery namespace created, you can use `addDefaultCloudMapNamespace` to add a default service discovery namespace later.
defaultCloudMapNamespace - The service discovery namespace created in this cluster. This parameter is required.this@Stability(value=Stable) public Cluster.Builder enableFargateCapacityProviders(Boolean enableFargateCapacityProviders)
Default: false
enableFargateCapacityProviders - Whether to enable Fargate Capacity Providers. This parameter is required.this@Stability(value=Stable) public Cluster.Builder executeCommandConfiguration(ExecuteCommandConfiguration executeCommandConfiguration)
Default: - no configuration will be provided.
executeCommandConfiguration - The execute command configuration for the cluster. This parameter is required.this@Stability(value=Stable) public Cluster.Builder vpc(IVpc vpc)
Default: - creates a new VPC with two AZs
vpc - The VPC where your ECS instances will be running or your ENIs will be deployed. This parameter is required.thisCopyright © 2022. All rights reserved.