ClusterAttributes

class aws_cdk.aws_ecs.ClusterAttributes(*, cluster_name, security_groups, vpc, autoscaling_group=None, cluster_arn=None, default_cloud_map_namespace=None, has_ec2_capacity=None)

Bases: object

__init__(*, cluster_name, security_groups, vpc, autoscaling_group=None, cluster_arn=None, default_cloud_map_namespace=None, has_ec2_capacity=None)

The properties to import from the ECS cluster.

Parameters
  • cluster_name (str) – The name of the cluster.

  • security_groups (List[ISecurityGroup]) – The security groups associated with the container instances registered to the cluster.

  • vpc (IVpc) – The VPC associated with the cluster.

  • autoscaling_group (Optional[IAutoScalingGroup]) – Autoscaling group added to the cluster if capacity is added. Default: - No default autoscaling group

  • cluster_arn (Optional[str]) – The Amazon Resource Name (ARN) that identifies the cluster. Default: Derived from clusterName

  • default_cloud_map_namespace (Optional[INamespace]) – The AWS Cloud Map namespace to associate with the cluster. Default: - No default namespace

  • has_ec2_capacity (Optional[bool]) – Specifies whether the cluster has EC2 instance capacity. Default: true

Attributes

autoscaling_group

Autoscaling group added to the cluster if capacity is added.

default :default: - No default autoscaling group

Return type

Optional[IAutoScalingGroup]

cluster_arn

The Amazon Resource Name (ARN) that identifies the cluster.

default :default: Derived from clusterName

Return type

Optional[str]

cluster_name

The name of the cluster.

Return type

str

default_cloud_map_namespace

The AWS Cloud Map namespace to associate with the cluster.

default :default: - No default namespace

Return type

Optional[INamespace]

has_ec2_capacity

Specifies whether the cluster has EC2 instance capacity.

default :default: true

Return type

Optional[bool]

security_groups

The security groups associated with the container instances registered to the cluster.

Return type

List[ISecurityGroup]

vpc

The VPC associated with the cluster.

Return type

IVpc