@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.602Z") @Stability(value=Stable) public interface CfnClusterProps extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ecs.*;
CfnClusterProps cfnClusterProps = CfnClusterProps.builder()
.capacityProviders(List.of("capacityProviders"))
.clusterName("clusterName")
.clusterSettings(List.of(ClusterSettingsProperty.builder()
.name("name")
.value("value")
.build()))
.configuration(ClusterConfigurationProperty.builder()
.executeCommandConfiguration(ExecuteCommandConfigurationProperty.builder()
.kmsKeyId("kmsKeyId")
.logConfiguration(ExecuteCommandLogConfigurationProperty.builder()
.cloudWatchEncryptionEnabled(false)
.cloudWatchLogGroupName("cloudWatchLogGroupName")
.s3BucketName("s3BucketName")
.s3EncryptionEnabled(false)
.s3KeyPrefix("s3KeyPrefix")
.build())
.logging("logging")
.build())
.build())
.defaultCapacityProviderStrategy(List.of(CapacityProviderStrategyItemProperty.builder()
.base(123)
.capacityProvider("capacityProvider")
.weight(123)
.build()))
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnClusterProps.Builder
A builder for
CfnClusterProps |
static class |
CfnClusterProps.Jsii$Proxy
An implementation for
CfnClusterProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnClusterProps.Builder |
builder() |
default List<String> |
getCapacityProviders()
The short name of one or more capacity providers to associate with the cluster.
|
default String |
getClusterName()
A user-generated string that you use to identify your cluster.
|
default Object |
getClusterSettings()
The setting to use when creating a cluster.
|
default Object |
getConfiguration()
The execute command configuration for the cluster.
|
default Object |
getDefaultCapacityProviderStrategy()
The default capacity provider strategy for the cluster.
|
default List<CfnTag> |
getTags()
The metadata that you apply to the cluster to help you categorize and organize them.
|
@Stability(value=Stable) @Nullable default List<String> getCapacityProviders()
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.
@Stability(value=Stable) @Nullable default String getClusterName()
If you don't specify a name, AWS CloudFormation generates a unique physical ID for the name.
@Stability(value=Stable) @Nullable default Object getClusterSettings()
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 .
@Stability(value=Stable) @Nullable default Object getConfiguration()
@Stability(value=Stable) @Nullable default Object getDefaultCapacityProviderStrategy()
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.
@Stability(value=Stable) @Nullable default List<CfnTag> getTags()
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.@Stability(value=Stable) static CfnClusterProps.Builder builder()
CfnClusterProps.Builder of CfnClusterPropsCopyright © 2022. All rights reserved.