Skip to content
v2.274.0

TargetTrackingScalingPolicyProperty Struct ​

A scaling policy for the capacity provider that automatically adjusts capacity to maintain a target value for a specific metric.

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 targetTrackingScalingPolicyProperty: lambda.CfnCapacityProvider.TargetTrackingScalingPolicyProperty = {
  predefinedMetricType: 'predefinedMetricType',
  targetValue: 123,
};

Properties ​

predefinedMetricTypestringpredefined_metric_typestrpredefinedMetricTypeStringPredefinedMetricTypestringPredefinedMetricType*stringrequired#
The predefined metric type to track for scaling decisions.
targetValuenumbertarget_valueint | floattargetValueNumberTargetValuedoubleTargetValue*float64required#
The target value for the metric that the scaling policy attempts to maintain through scaling actions.