interface PredictiveScalingPredefinedLoadMetricProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ApplicationAutoScaling.CfnScalingPolicy.PredictiveScalingPredefinedLoadMetricProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsapplicationautoscaling#CfnScalingPolicy_PredictiveScalingPredefinedLoadMetricProperty |
Java | software.amazon.awscdk.services.applicationautoscaling.CfnScalingPolicy.PredictiveScalingPredefinedLoadMetricProperty |
Python | aws_cdk.aws_applicationautoscaling.CfnScalingPolicy.PredictiveScalingPredefinedLoadMetricProperty |
TypeScript | aws-cdk-lib » aws_applicationautoscaling » CfnScalingPolicy » PredictiveScalingPredefinedLoadMetricProperty |
Describes a load metric for a predictive scaling policy.
When returned in the output of DescribePolicies , it indicates that a predictive scaling policy uses individually specified load and scaling metrics instead of a metric pair.
The following predefined metrics are available for predictive scaling:
ECSServiceAverageCPUUtilizationECSServiceAverageMemoryUtilizationECSServiceCPUUtilizationECSServiceMemoryUtilizationECSServiceTotalCPUUtilizationECSServiceTotalMemoryUtilizationALBRequestCountALBRequestCountPerTargetTotalALBRequestCount
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_applicationautoscaling as appscaling } from 'aws-cdk-lib';
const predictiveScalingPredefinedLoadMetricProperty: appscaling.CfnScalingPolicy.PredictiveScalingPredefinedLoadMetricProperty = {
predefinedMetricType: 'predefinedMetricType',
// the properties below are optional
resourceLabel: 'resourceLabel',
};
Properties
| Name | Type | Description |
|---|---|---|
| predefined | string | The metric type. |
| resource | string | A label that uniquely identifies a target group. |
predefinedMetricType
Type:
string
The metric type.
resourceLabel?
Type:
string
(optional)
A label that uniquely identifies a target group.

.NET
Go
Java
Python
TypeScript