interface TargetTrackingScalingPolicyProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Lambda.Mixins.CfnCapacityProviderPropsMixin.TargetTrackingScalingPolicyProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awslambda/mixins#CfnCapacityProviderPropsMixin_TargetTrackingScalingPolicyProperty |
Java | software.amazon.awscdk.mixins.preview.services.lambda.mixins.CfnCapacityProviderPropsMixin.TargetTrackingScalingPolicyProperty |
Python | aws_cdk.mixins_preview.aws_lambda.mixins.CfnCapacityProviderPropsMixin.TargetTrackingScalingPolicyProperty |
TypeScript | @aws-cdk/mixins-preview » aws_lambda » mixins » CfnCapacityProviderPropsMixin » 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 { mixins as lambda_mixins } from '@aws-cdk/mixins-preview/aws-lambda';
const targetTrackingScalingPolicyProperty: lambda_mixins.CfnCapacityProviderPropsMixin.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
(optional)
The predefined metric type to track for scaling decisions.
targetValue?
Type:
number
(optional)
The target value for the metric that the scaling policy attempts to maintain through scaling actions.

.NET
Go
Java
Python
TypeScript