CfnClusterCapacityProviderAssociationsProps
- class aws_cdk.aws_ecs.CfnClusterCapacityProviderAssociationsProps(*, capacity_providers, cluster, default_capacity_provider_strategy)
Bases:
object
Properties for defining a
CfnClusterCapacityProviderAssociations
.- Parameters:
capacity_providers (
Sequence
[str
]) – The capacity providers to associate with the cluster.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.
- Link:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_ecs as ecs cfn_cluster_capacity_provider_associations_props = ecs.CfnClusterCapacityProviderAssociationsProps( capacity_providers=["capacityProviders"], cluster="cluster", default_capacity_provider_strategy=[ecs.CfnClusterCapacityProviderAssociations.CapacityProviderStrategyProperty( capacity_provider="capacityProvider", # the properties below are optional base=123, weight=123 )] )
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.