interface TargetTrackingScalingPolicyProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Lambda.CfnCapacityProvider.TargetTrackingScalingPolicyProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awslambda#CfnCapacityProvider_TargetTrackingScalingPolicyProperty |
Java | software.amazon.awscdk.services.lambda.CfnCapacityProvider.TargetTrackingScalingPolicyProperty |
Python | aws_cdk.aws_lambda.CfnCapacityProvider.TargetTrackingScalingPolicyProperty |
TypeScript | aws-cdk-lib » aws_lambda » CfnCapacityProvider » TargetTrackingScalingPolicyProperty |
A scaling policy for the capacity provider that automatically adjusts capacity to maintain a target value for a specific metric.
Example
// 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
| Name | Type | Description |
|---|---|---|
| predefined | string | The predefined metric type to track for scaling decisions. |
| target | number | The target value for the metric that the scaling policy attempts to maintain through scaling actions. |
predefinedMetricType
Type:
string
The predefined metric type to track for scaling decisions.
targetValue
Type:
number
The target value for the metric that the scaling policy attempts to maintain through scaling actions.

.NET
Go
Java
Python
TypeScript