# CfnClusterCapacityProviderAssociationsProps

Properties for defining a `CfnClusterCapacityProviderAssociations`.

Extends: CfnClusterCapacityProviderAssociationsProps
Used as props by: CfnClusterCapacityProviderAssociations

- Source: Generated code
- Type last changed: v2.227.0 · 21 Nov 2025

## Example

```ts
// 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

- `capacityProviders`: string | [ICapacityProviderRef](/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_ecs.ICapacityProviderRef.html)[] — The capacity providers to associate with the cluster.

- `cluster`: string | [IClusterRef](/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_ecs.IClusterRef.html) (required) — The cluster the capacity provider association is the target of.

- `defaultCapacityProviderStrategy`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnClusterCapacityProviderAssociations.CapacityProviderStrategyProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_ecs.CfnClusterCapacityProviderAssociations.CapacityProviderStrategyProperty.html)[] (required) — The default capacity provider strategy to associate with the cluster.
