aws-cdk-lib.aws_autoscalingplans.CfnScalingPlan.MetricDimensionProperty

interface MetricDimensionProperty

LanguageType name
.NETAmazon.CDK.AWS.AutoScalingPlans.CfnScalingPlan.MetricDimensionProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsautoscalingplans#CfnScalingPlan_MetricDimensionProperty
Javasoftware.amazon.awscdk.services.autoscalingplans.CfnScalingPlan.MetricDimensionProperty
Pythonaws_cdk.aws_autoscalingplans.CfnScalingPlan.MetricDimensionProperty
TypeScript aws-cdk-lib » aws_autoscalingplans » CfnScalingPlan » MetricDimensionProperty

MetricDimension is a subproperty of CustomizedScalingMetricSpecification that specifies a dimension for a customized metric to use with AWS Auto Scaling ( Auto Scaling Plans ). Dimensions are arbitrary name/value pairs that can be associated with a CloudWatch metric. 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_autoscalingplans as autoscalingplans } from 'aws-cdk-lib';
const metricDimensionProperty: autoscalingplans.CfnScalingPlan.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.