AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::ECS::ClusterCapacityProviderAssociations

CfnClusterCapacityProviderAssociations

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

Import

import { CfnClusterCapacityProviderAssociations } from 'aws-cdk-lib/aws-ecs';

Or use the module namespace:

import * as ecs from 'aws-cdk-lib/aws-ecs';
// ecs.CfnClusterCapacityProviderAssociations

Properties

Configuration passed to the constructor as CfnClusterCapacityProviderAssociationsProps.

clusterRequired
string | IClusterRef

The cluster the capacity provider association is the target of.

defaultCapacityProviderStrategyRequired
IResolvable | IResolvable | CapacityProviderStrategyProperty[]

The default capacity provider strategy to associate with the cluster.

capacityProvidersOptional
string | ICapacityProviderRef[]

The capacity providers to associate with the cluster.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Get the Amazon ECS Cheat Sheet

Everything you need to know about Amazon ECS on one page. HD quality, print-friendly.

Download Free Infographic