Interface ClusterAttributes
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ClusterAttributes.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:47.245Z")
@Stability(Stable)
public interface ClusterAttributes
extends software.amazon.jsii.JsiiSerializable
The properties to import from the ECS cluster.
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();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forClusterAttributes
static final class
An implementation forClusterAttributes
-
Method Summary
Modifier and TypeMethodDescriptionstatic ClusterAttributes.Builder
builder()
default IAutoScalingGroup
Autoscaling group added to the cluster if capacity is added.default String
The Amazon Resource Name (ARN) that identifies the cluster.The name of the cluster.default INamespace
The AWS Cloud Map namespace to associate with the cluster.default ExecuteCommandConfiguration
The execute command configuration for the cluster.default Boolean
Specifies whether the cluster has EC2 instance capacity.The security groups associated with the container instances registered to the cluster.getVpc()
The VPC associated with the cluster.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getClusterName
The name of the cluster. -
getSecurityGroups
The security groups associated with the container instances registered to the cluster. -
getVpc
The VPC associated with the cluster. -
getAutoscalingGroup
Autoscaling group added to the cluster if capacity is added.Default: - No default autoscaling group
-
getClusterArn
The Amazon Resource Name (ARN) that identifies the cluster.Default: Derived from clusterName
-
getDefaultCloudMapNamespace
The AWS Cloud Map namespace to associate with the cluster.Default: - No default namespace
-
getExecuteCommandConfiguration
The execute command configuration for the cluster.Default: - none.
-
getHasEc2Capacity
Specifies whether the cluster has EC2 instance capacity.Default: true
-
builder
- Returns:
- a
ClusterAttributes.Builder
ofClusterAttributes
-