# CapacityProviderScalingConfigProperty

Configuration that defines how the capacity provider scales compute instances based on demand and policies.

- Source: Generated code
- Type last changed: v2.231.0 · 1 Dec 2025

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lambda as lambda } from 'aws-cdk-lib';
const capacityProviderScalingConfigProperty: lambda.CfnCapacityProvider.CapacityProviderScalingConfigProperty = {
  maxVCpuCount: 123,
  scalingMode: 'scalingMode',
  scalingPolicies: [{
    predefinedMetricType: 'predefinedMetricType',
    targetValue: 123,
  }],
};
```

## Properties

- `maxVCpuCount`: number — The maximum number of vCPUs that the capacity provider can provision across all compute instances.

- `scalingMode`: string — The scaling mode that determines how the capacity provider responds to changes in demand.

- `scalingPolicies`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnCapacityProvider.TargetTrackingScalingPolicyProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.CfnCapacityProvider.TargetTrackingScalingPolicyProperty.html)[] — A list of target tracking scaling policies for the capacity provider.
