CfnClusterCapacityProviderAssociationsProps
- class aws_cdk.aws_ecs.CfnClusterCapacityProviderAssociationsProps(*, cluster, default_capacity_provider_strategy, capacity_providers=None)
Bases:
objectProperties for defining a
CfnClusterCapacityProviderAssociations.- Parameters:
cluster (
str) – The cluster the capacity provider association is the target of.default_capacity_provider_strategy (
Union[IResolvable,Sequence[Union[IResolvable,CapacityProviderStrategyProperty,Dict[str,Any]]]]) – The default capacity provider strategy to associate with the cluster.capacity_providers (
Optional[Sequence[str]]) – The capacity providers to associate with the cluster.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_ecs as ecs cfn_cluster_capacity_provider_associations_props = ecs.CfnClusterCapacityProviderAssociationsProps( cluster="cluster", default_capacity_provider_strategy=[ecs.CfnClusterCapacityProviderAssociations.CapacityProviderStrategyProperty( capacity_provider="capacityProvider", # the properties below are optional base=123, weight=123 )], # the properties below are optional capacity_providers=["capacityProviders"] )
Attributes
- capacity_providers
The capacity providers to associate with the cluster.
- cluster
The cluster the capacity provider association is the target of.
- default_capacity_provider_strategy
The default capacity provider strategy to associate with the cluster.