AWS::ECS::ClusterCapacityProviderAssociations - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

This is the new Amazon CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the Amazon CloudFormation User Guide.

AWS::ECS::ClusterCapacityProviderAssociations

The AWS::ECS::ClusterCapacityProviderAssociations resource associates one or more capacity providers and a default capacity provider strategy with a cluster.

Syntax

To declare this entity in your Amazon CloudFormation template, use the following syntax:

JSON

{ "Type" : "AWS::ECS::ClusterCapacityProviderAssociations", "Properties" : { "CapacityProviders" : [ String, ... ], "Cluster" : String, "DefaultCapacityProviderStrategy" : [ CapacityProviderStrategy, ... ] } }

YAML

Type: AWS::ECS::ClusterCapacityProviderAssociations Properties: CapacityProviders: - String Cluster: String DefaultCapacityProviderStrategy: - CapacityProviderStrategy

Properties

CapacityProviders

The capacity providers to associate with the cluster.

Required: Yes

Type: Array of String

Update requires: No interruption

Cluster

The cluster the capacity provider association is the target of.

Required: Yes

Type: String

Minimum: 1

Maximum: 2048

Update requires: Replacement

DefaultCapacityProviderStrategy

The default capacity provider strategy to associate with the cluster.

Required: Yes

Type: Array of CapacityProviderStrategy

Update requires: No interruption

Return values

Ref

When you pass the logical ID of this resource to the intrinsic Ref function, Ref returns the cluster name.