@Stability(value=Stable) public static final class ClusterProps.Builder extends Object implements software.amazon.jsii.Builder<ClusterProps>
ClusterProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ClusterProps |
build()
Builds the configured instance.
|
ClusterProps.Builder |
capacity(AddCapacityOptions capacity)
Sets the value of
ClusterProps.getCapacity() |
ClusterProps.Builder |
capacityProviders(List<String> capacityProviders)
Sets the value of
ClusterProps.getCapacityProviders() |
ClusterProps.Builder |
clusterName(String clusterName)
Sets the value of
ClusterProps.getClusterName() |
ClusterProps.Builder |
containerInsights(Boolean containerInsights)
Sets the value of
ClusterProps.getContainerInsights() |
ClusterProps.Builder |
defaultCloudMapNamespace(CloudMapNamespaceOptions defaultCloudMapNamespace)
Sets the value of
ClusterProps.getDefaultCloudMapNamespace() |
ClusterProps.Builder |
vpc(IVpc vpc)
Sets the value of
ClusterProps.getVpc() |
@Stability(value=Stable) public ClusterProps.Builder capacity(AddCapacityOptions capacity)
ClusterProps.getCapacity()
capacity
- The ec2 capacity to add to the cluster.this
@Stability(value=Stable) public ClusterProps.Builder capacityProviders(List<String> capacityProviders)
ClusterProps.getCapacityProviders()
capacityProviders
- The capacity providers to add to the cluster.this
@Stability(value=Stable) public ClusterProps.Builder clusterName(String clusterName)
ClusterProps.getClusterName()
clusterName
- The name for the cluster.this
@Stability(value=Stable) public ClusterProps.Builder containerInsights(Boolean containerInsights)
ClusterProps.getContainerInsights()
containerInsights
- If true CloudWatch Container Insights will be enabled for the cluster.this
@Stability(value=Stable) public ClusterProps.Builder defaultCloudMapNamespace(CloudMapNamespaceOptions defaultCloudMapNamespace)
ClusterProps.getDefaultCloudMapNamespace()
defaultCloudMapNamespace
- The service discovery namespace created in this cluster.this
@Stability(value=Stable) public ClusterProps.Builder vpc(IVpc vpc)
ClusterProps.getVpc()
vpc
- The VPC where your ECS instances will be running or your ENIs will be deployed.this
@Stability(value=Stable) public ClusterProps build()
build
in interface software.amazon.jsii.Builder<ClusterProps>
ClusterProps
NullPointerException
- if any required attribute was not providedCopyright © 2021. All rights reserved.