CapacityProviderScalingConfigProperty Struct
Configuration that defines how the capacity provider scales compute instances based on demand and policies.
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
maxVCpuCountoptionalnumbermax_v_cpu_countoptionalint | floatmaxVCpuCountoptionalNumberMaxVCpuCountoptionaldoubleMaxVCpuCountoptional*float64#The maximum number of vCPUs that the capacity provider can provision across all compute instances.
scalingModeoptionalstringscaling_modeoptionalstrscalingModeoptionalStringScalingModeoptionalstringScalingModeoptional*string#The scaling mode that determines how the capacity provider responds to changes in demand.
scalingPoliciesoptionalIResolvable | IResolvable | CfnCapacityProvider.TargetTrackingScalingPolicyProperty[]scaling_policiesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, TargetTrackingScalingPolicyProperty]]]scalingPoliciesoptionalIResolvableScalingPoliciesoptionalIResolvableScalingPoliciesoptionalinterface{}#A list of target tracking scaling policies for the capacity provider.