interface PredictiveScalingCustomizedCapacityMetricProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.AutoScaling.CfnScalingPolicyPropsMixin.PredictiveScalingCustomizedCapacityMetricProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awsautoscaling#CfnScalingPolicyPropsMixin_PredictiveScalingCustomizedCapacityMetricProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.autoscaling.CfnScalingPolicyPropsMixin.PredictiveScalingCustomizedCapacityMetricProperty |
Python | aws_cdk.cfn_property_mixins.aws_autoscaling.CfnScalingPolicyPropsMixin.PredictiveScalingCustomizedCapacityMetricProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_autoscaling » CfnScalingPolicyPropsMixin » PredictiveScalingCustomizedCapacityMetricProperty |
Contains capacity metric information for the CustomizedCapacityMetricSpecification property of the AWS::AutoScaling::ScalingPolicy PredictiveScalingMetricSpecification property type.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_autoscaling as autoscaling } from '@aws-cdk/cfn-property-mixins';
const predictiveScalingCustomizedCapacityMetricProperty: autoscaling.CfnScalingPolicyPropsMixin.PredictiveScalingCustomizedCapacityMetricProperty = {
metricDataQueries: [{
expression: 'expression',
id: 'id',
label: 'label',
metricStat: {
metric: {
dimensions: [{
name: 'name',
value: 'value',
}],
metricName: 'metricName',
namespace: 'namespace',
},
stat: 'stat',
unit: 'unit',
},
returnData: false,
}],
};
Properties
| Name | Type | Description |
|---|---|---|
| metric | IResolvable | (IResolvable | Metric)[] | One or more metric data queries to provide the data points for a capacity metric. |
metricDataQueries?
Type:
IResolvable | (IResolvable | Metric)[]
(optional)
One or more metric data queries to provide the data points for a capacity metric.
Use multiple metric data queries only if you are performing a math expression on returned data.

.NET
Go
Java
Python
TypeScript