aws-cdk-lib.aws_autoscaling.CfnScalingPolicy.MetricDimensionProperty

interface MetricDimensionProperty

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

MetricDimension specifies a name/value pair that is part of the identity of a CloudWatch metric for the Dimensions property of the AWS::AutoScaling::ScalingPolicy CustomizedMetricSpecification property type. Duplicate dimensions are not allowed.

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 metricDimensionProperty: autoscaling.CfnScalingPolicy.MetricDimensionProperty = {
  name: 'name',
  value: 'value',
};

Properties

NameTypeDescription
namestringThe name of the dimension.
valuestringThe value of the dimension.

name

Type: string

The name of the dimension.


value

Type: string

The value of the dimension.