ClusterProps¶
-
class
aws_cdk.aws_ecs.
ClusterProps
(*, capacity=None, capacity_providers=None, cluster_name=None, container_insights=None, default_cloud_map_namespace=None, vpc=None)¶ Bases:
object
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 useaddCapacity
to add capacity later.capacity_providers (
Optional
[Sequence
[str
]]) – The capacity providers to add to the cluster. Default: - None. Currently only FARGATE and FARGATE_SPOT are supported.cluster_name (
Optional
[str
]) – The name for the cluster. Default: CloudFormation-generated namecontainer_insights (
Optional
[bool
]) – If true CloudWatch Container Insights will be enabled for the cluster. Default: - Container Insights will be disabled for this cluser.default_cloud_map_namespace (
Optional
[CloudMapNamespaceOptions
]) – The service discovery namespace created in this cluster. Default: - no service discovery namespace created, you can useaddDefaultCloudMapNamespace
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
no EC2 capacity will be added, you can use
addCapacity
to add capacity later.
- Return type
Optional
[AddCapacityOptions
]
-
capacity_providers
¶ The capacity providers to add to the cluster.
- Default
None. Currently only FARGATE and FARGATE_SPOT are supported.
- Return type
Optional
[List
[str
]]
-
cluster_name
¶ The name for the cluster.
- Default
CloudFormation-generated name
- Return type
Optional
[str
]
-
container_insights
¶ If true CloudWatch Container Insights will be enabled for the cluster.
- Default
Container Insights will be disabled for this cluser.
- Return type
Optional
[bool
]
-
default_cloud_map_namespace
¶ 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.
- Return type
Optional
[CloudMapNamespaceOptions
]