public static final class CfnCluster.Builder
extends java.lang.Object
CfnCluster
.Modifier and Type | Method and Description |
---|---|
CfnCluster |
build() |
CfnCluster.Builder |
capacityProviders(java.util.List<java.lang.String> capacityProviders)
The short name of one or more capacity providers to associate with the cluster.
|
CfnCluster.Builder |
clusterName(java.lang.String clusterName)
A user-generated string that you use to identify your cluster.
|
CfnCluster.Builder |
clusterSettings(IResolvable clusterSettings)
The setting to use when creating a cluster.
|
CfnCluster.Builder |
clusterSettings(java.util.List<? extends java.lang.Object> clusterSettings)
The setting to use when creating a cluster.
|
CfnCluster.Builder |
configuration(CfnCluster.ClusterConfigurationProperty configuration)
The execute command configuration for the cluster.
|
CfnCluster.Builder |
configuration(IResolvable configuration)
The execute command configuration for the cluster.
|
static CfnCluster.Builder |
create(Construct scope,
java.lang.String id) |
CfnCluster.Builder |
defaultCapacityProviderStrategy(IResolvable defaultCapacityProviderStrategy)
The default capacity provider strategy for the cluster.
|
CfnCluster.Builder |
defaultCapacityProviderStrategy(java.util.List<? extends java.lang.Object> defaultCapacityProviderStrategy)
The default capacity provider strategy for the cluster.
|
CfnCluster.Builder |
tags(java.util.List<? extends CfnTag> tags)
The metadata that you apply to the cluster to help you categorize and organize them.
|
public static CfnCluster.Builder create(Construct scope, java.lang.String id)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.CfnCluster.CapacityProviderStrategyItemProperty.Builder
.public CfnCluster.Builder capacityProviders(java.util.List<java.lang.String> capacityProviders)
A capacity provider must be associated with a cluster before it can be included as part of the default capacity provider strategy of the cluster or used in a capacity provider strategy.
If specifying a capacity provider that uses an Auto Scaling group, the capacity provider must already be created and not already associated with another cluster.
To use an AWS Fargate capacity provider, specify either the FARGATE
or FARGATE_SPOT
capacity providers. The AWS Fargate capacity providers are available to all accounts and only need to be associated with a cluster to be used.
capacityProviders
- The short name of one or more capacity providers to associate with the cluster. This parameter is required.this
public CfnCluster.Builder clusterName(java.lang.String clusterName)
If you don't specify a name, AWS CloudFormation generates a unique physical ID for the name.
clusterName
- A user-generated string that you use to identify your cluster. This parameter is required.this
public CfnCluster.Builder clusterSettings(IResolvable clusterSettings)
This parameter is used to enable CloudWatch Container Insights for a cluster. If this value is specified, it will override the containerInsights
value set with PutAccountSetting or PutAccountSettingDefault .
clusterSettings
- The setting to use when creating a cluster. This parameter is required.this
public CfnCluster.Builder clusterSettings(java.util.List<? extends java.lang.Object> clusterSettings)
This parameter is used to enable CloudWatch Container Insights for a cluster. If this value is specified, it will override the containerInsights
value set with PutAccountSetting or PutAccountSettingDefault .
clusterSettings
- The setting to use when creating a cluster. This parameter is required.this
public CfnCluster.Builder configuration(IResolvable configuration)
configuration
- The execute command configuration for the cluster. This parameter is required.this
public CfnCluster.Builder configuration(CfnCluster.ClusterConfigurationProperty configuration)
configuration
- The execute command configuration for the cluster. This parameter is required.this
public CfnCluster.Builder defaultCapacityProviderStrategy(IResolvable defaultCapacityProviderStrategy)
When services or tasks are run in the cluster with no launch type or capacity provider strategy specified, the default capacity provider strategy is used.
defaultCapacityProviderStrategy
- The default capacity provider strategy for the cluster. This parameter is required.this
public CfnCluster.Builder defaultCapacityProviderStrategy(java.util.List<? extends java.lang.Object> defaultCapacityProviderStrategy)
When services or tasks are run in the cluster with no launch type or capacity provider strategy specified, the default capacity provider strategy is used.
defaultCapacityProviderStrategy
- The default capacity provider strategy for the cluster. This parameter is required.this
public CfnCluster.Builder tags(java.util.List<? extends CfnTag> tags)
Each tag consists of a key and an optional value. You define both.
The following basic restrictions apply to tags:
aws:
, AWS:
, or any upper or lowercase combination of such as a prefix for either keys or values as it is reserved for AWS use. You cannot edit or delete tag keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit.tags
- The metadata that you apply to the cluster to help you categorize and organize them. This parameter is required.this
public CfnCluster build()