@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.675Z") @Stability(value=Stable) public interface ClusterAttributes 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.autoscaling.*;
import software.amazon.awscdk.services.ec2.*;
import software.amazon.awscdk.services.ecs.*;
import software.amazon.awscdk.services.kms.*;
import software.amazon.awscdk.services.logs.*;
import software.amazon.awscdk.services.s3.*;
import software.amazon.awscdk.services.servicediscovery.*;
AutoScalingGroup autoScalingGroup;
Bucket bucket;
Key key;
LogGroup logGroup;
INamespace namespace;
SecurityGroup securityGroup;
Vpc vpc;
ClusterAttributes clusterAttributes = ClusterAttributes.builder()
.clusterName("clusterName")
.securityGroups(List.of(securityGroup))
.vpc(vpc)
// the properties below are optional
.autoscalingGroup(autoScalingGroup)
.clusterArn("clusterArn")
.defaultCloudMapNamespace(namespace)
.executeCommandConfiguration(ExecuteCommandConfiguration.builder()
.kmsKey(key)
.logConfiguration(ExecuteCommandLogConfiguration.builder()
.cloudWatchEncryptionEnabled(false)
.cloudWatchLogGroup(logGroup)
.s3Bucket(bucket)
.s3EncryptionEnabled(false)
.s3KeyPrefix("s3KeyPrefix")
.build())
.logging(ExecuteCommandLogging.NONE)
.build())
.hasEc2Capacity(false)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
ClusterAttributes.Builder
A builder for
ClusterAttributes |
static class |
ClusterAttributes.Jsii$Proxy
An implementation for
ClusterAttributes |
| Modifier and Type | Method and Description |
|---|---|
static ClusterAttributes.Builder |
builder() |
default IAutoScalingGroup |
getAutoscalingGroup()
Autoscaling group added to the cluster if capacity is added.
|
default String |
getClusterArn()
The Amazon Resource Name (ARN) that identifies the cluster.
|
String |
getClusterName()
The name of the cluster.
|
default INamespace |
getDefaultCloudMapNamespace()
The AWS Cloud Map namespace to associate with the cluster.
|
default ExecuteCommandConfiguration |
getExecuteCommandConfiguration()
The execute command configuration for the cluster.
|
default Boolean |
getHasEc2Capacity()
Specifies whether the cluster has EC2 instance capacity.
|
List<ISecurityGroup> |
getSecurityGroups()
The security groups associated with the container instances registered to the cluster.
|
IVpc |
getVpc()
The VPC associated with the cluster.
|
@Stability(value=Stable) @NotNull String getClusterName()
@Stability(value=Stable) @NotNull List<ISecurityGroup> getSecurityGroups()
@Stability(value=Stable) @NotNull IVpc getVpc()
@Stability(value=Stable) @Nullable default IAutoScalingGroup getAutoscalingGroup()
Default: - No default autoscaling group
@Stability(value=Stable) @Nullable default String getClusterArn()
Default: Derived from clusterName
@Stability(value=Stable) @Nullable default INamespace getDefaultCloudMapNamespace()
Default: - No default namespace
@Stability(value=Stable) @Nullable default ExecuteCommandConfiguration getExecuteCommandConfiguration()
Default: - none.
@Stability(value=Stable) @Nullable default Boolean getHasEc2Capacity()
Default: true
@Stability(value=Stable) static ClusterAttributes.Builder builder()
ClusterAttributes.Builder of ClusterAttributesCopyright © 2022. All rights reserved.