ClusterProps

class aws_cdk.aws_ecs.ClusterProps(*, capacity=None, cluster_name=None, default_cloud_map_namespace=None, vpc=None)

Bases: object

__init__(*, capacity=None, cluster_name=None, default_cloud_map_namespace=None, vpc=None)

The properties used to define an ECS cluster.

Parameters
  • capacity (Optional[AddCapacityOptions]) – The ec2 capacity to add to the cluster. Default: - no EC2 capacity will be added, you can use addCapacity to add capacity later.

  • cluster_name (Optional[str]) – The name for the cluster. Default: CloudFormation-generated name

  • default_cloud_map_namespace (Optional[CloudMapNamespaceOptions]) – The service discovery namespace created in this cluster. Default: - no service discovery namespace created, you can use addDefaultCloudMapNamespace to add a default service discovery namespace later.

  • vpc (Optional[IVpc]) – The VPC where your ECS instances will be running or your ENIs will be deployed. Default: - creates a new VPC with two AZs

Attributes

capacity

The ec2 capacity to add to the cluster.

default :default: - no EC2 capacity will be added, you can use addCapacity to add capacity later.

Return type

Optional[AddCapacityOptions]

cluster_name

The name for the cluster.

default :default: CloudFormation-generated name

Return type

Optional[str]

default_cloud_map_namespace

The service discovery namespace created in this cluster.

default :default:

  • no service discovery namespace created, you can use addDefaultCloudMapNamespace to add a default service discovery namespace later.

Return type

Optional[CloudMapNamespaceOptions]

vpc

The VPC where your ECS instances will be running or your ENIs will be deployed.

default :default: - creates a new VPC with two AZs

Return type

Optional[IVpc]