interface CapacityProviderScalingConfigProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Lambda.Mixins.CfnCapacityProviderPropsMixin.CapacityProviderScalingConfigProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awslambda/mixins#CfnCapacityProviderPropsMixin_CapacityProviderScalingConfigProperty |
Java | software.amazon.awscdk.mixins.preview.services.lambda.mixins.CfnCapacityProviderPropsMixin.CapacityProviderScalingConfigProperty |
Python | aws_cdk.mixins_preview.aws_lambda.mixins.CfnCapacityProviderPropsMixin.CapacityProviderScalingConfigProperty |
TypeScript | @aws-cdk/mixins-preview » aws_lambda » mixins » CfnCapacityProviderPropsMixin » CapacityProviderScalingConfigProperty |
Configuration that defines how the capacity provider scales compute instances based on demand and policies.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as lambda_mixins } from '@aws-cdk/mixins-preview/aws-lambda';
const capacityProviderScalingConfigProperty: lambda_mixins.CfnCapacityProviderPropsMixin.CapacityProviderScalingConfigProperty = {
maxVCpuCount: 123,
scalingMode: 'scalingMode',
scalingPolicies: [{
predefinedMetricType: 'predefinedMetricType',
targetValue: 123,
}],
};
Properties
| Name | Type | Description |
|---|---|---|
| max | number | The maximum number of vCPUs that the capacity provider can provision across all compute instances. |
| scaling | string | The scaling mode that determines how the capacity provider responds to changes in demand. |
| scaling | IResolvable | (IResolvable | Target)[] | A list of target tracking scaling policies for the capacity provider. |
maxVCpuCount?
Type:
number
(optional)
The maximum number of vCPUs that the capacity provider can provision across all compute instances.
scalingMode?
Type:
string
(optional)
The scaling mode that determines how the capacity provider responds to changes in demand.
scalingPolicies?
Type:
IResolvable | (IResolvable | Target)[]
(optional)
A list of target tracking scaling policies for the capacity provider.

.NET
Go
Java
Python
TypeScript