aws-cdk-lib.aws_autoscaling.CfnScalingPolicy.PredictiveScalingCustomizedLoadMetricProperty

interface PredictiveScalingCustomizedLoadMetricProperty

LanguageType name
.NETAmazon.CDK.AWS.AutoScaling.CfnScalingPolicy.PredictiveScalingCustomizedLoadMetricProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsautoscaling#CfnScalingPolicy_PredictiveScalingCustomizedLoadMetricProperty
Javasoftware.amazon.awscdk.services.autoscaling.CfnScalingPolicy.PredictiveScalingCustomizedLoadMetricProperty
Pythonaws_cdk.aws_autoscaling.CfnScalingPolicy.PredictiveScalingCustomizedLoadMetricProperty
TypeScript aws-cdk-lib » aws_autoscaling » CfnScalingPolicy » PredictiveScalingCustomizedLoadMetricProperty

Contains load metric information for the CustomizedLoadMetricSpecification 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-lib';
const predictiveScalingCustomizedLoadMetricProperty: autoscaling.CfnScalingPolicy.PredictiveScalingCustomizedLoadMetricProperty = {
  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

NameTypeDescription
metricDataQueriesIResolvable | IResolvable | MetricDataQueryProperty[]One or more metric data queries to provide the data points for a load metric.

metricDataQueries

Type: IResolvable | IResolvable | MetricDataQueryProperty[]

One or more metric data queries to provide the data points for a load metric.

Use multiple metric data queries only if you are performing a math expression on returned data.