Skip to content
v2.273.0

PredictiveScalingCustomizedCapacityMetricProperty Struct ​

Contains capacity metric information for the CustomizedCapacityMetricSpecification property of the AWS::AutoScaling::ScalingPolicy PredictiveScalingMetricSpecification property type.

Example ​

ts
// 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-lib';
const predictiveScalingCustomizedCapacityMetricProperty: autoscaling.CfnScalingPolicy.PredictiveScalingCustomizedCapacityMetricProperty = {
  metricDataQueries: [{
    id: 'id',

    // the properties below are optional
    expression: 'expression',
    label: 'label',
    metricStat: {
      metric: {
        metricName: 'metricName',
        namespace: 'namespace',

        // the properties below are optional
        dimensions: [{
          name: 'name',
          value: 'value',
        }],
      },
      stat: 'stat',

      // the properties below are optional
      unit: 'unit',
    },
    returnData: false,
  }],
};

Properties ​

metricDataQueriesIResolvable | IResolvable | CfnScalingPolicy.MetricDataQueryProperty[]metric_data_queriestyping.Union[IResolvable, typing.List[typing.Union[IResolvable, MetricDataQueryProperty]]]metricDataQueriesIResolvableMetricDataQueriesIResolvableMetricDataQueriesinterface{}required#
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.