interface CfnClusterCapacityProviderAssociationsProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ECS.CfnClusterCapacityProviderAssociationsProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsecs#CfnClusterCapacityProviderAssociationsProps |
Java | software.amazon.awscdk.services.ecs.CfnClusterCapacityProviderAssociationsProps |
Python | aws_cdk.aws_ecs.CfnClusterCapacityProviderAssociationsProps |
TypeScript | aws-cdk-lib » aws_ecs » CfnClusterCapacityProviderAssociationsProps |
Properties for defining a CfnClusterCapacityProviderAssociations.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ecs as ecs } from 'aws-cdk-lib';
const cfnClusterCapacityProviderAssociationsProps: ecs.CfnClusterCapacityProviderAssociationsProps = {
cluster: 'cluster',
defaultCapacityProviderStrategy: [{
capacityProvider: 'capacityProvider',
// the properties below are optional
base: 123,
weight: 123,
}],
// the properties below are optional
capacityProviders: ['capacityProviders'],
};
Properties
| Name | Type | Description |
|---|---|---|
| cluster | string | ICluster | The cluster the capacity provider association is the target of. |
| default | IResolvable | (IResolvable | Capacity)[] | The default capacity provider strategy to associate with the cluster. |
| capacity | (string | ICapacity)[] | The capacity providers to associate with the cluster. |
cluster
Type:
string | ICluster
The cluster the capacity provider association is the target of.
defaultCapacityProviderStrategy
Type:
IResolvable | (IResolvable | Capacity)[]
The default capacity provider strategy to associate with the cluster.
capacityProviders?
Type:
(string | ICapacity)[]
(optional)
The capacity providers to associate with the cluster.

.NET
Go
Java
Python
TypeScript