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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-clustercapacityproviderassociations.html

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(
    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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-clustercapacityproviderassociations.html#cfn-ecs-clustercapacityproviderassociations-capacityproviders

cluster

The cluster the capacity provider association is the target of.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-clustercapacityproviderassociations.html#cfn-ecs-clustercapacityproviderassociations-cluster

default_capacity_provider_strategy

The default capacity provider strategy to associate with the cluster.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-clustercapacityproviderassociations.html#cfn-ecs-clustercapacityproviderassociations-defaultcapacityproviderstrategy