interface DimensionProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.CloudWatch.Mixins.CfnAlarmPropsMixin.DimensionProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awscloudwatch/mixins#CfnAlarmPropsMixin_DimensionProperty |
Java | software.amazon.awscdk.mixins.preview.services.cloudwatch.mixins.CfnAlarmPropsMixin.DimensionProperty |
Python | aws_cdk.mixins_preview.aws_cloudwatch.mixins.CfnAlarmPropsMixin.DimensionProperty |
TypeScript | @aws-cdk/mixins-preview » aws_cloudwatch » mixins » CfnAlarmPropsMixin » DimensionProperty |
Dimension is an embedded property of the AWS::CloudWatch::Alarm type.
Dimensions are name/value pairs that can be associated with a CloudWatch metric. You can specify a maximum of 30 dimensions for a given metric.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as cloudwatch_mixins } from '@aws-cdk/mixins-preview/aws-cloudwatch';
const dimensionProperty: cloudwatch_mixins.CfnAlarmPropsMixin.DimensionProperty = {
name: 'name',
value: 'value',
};
Properties
| Name | Type | Description |
|---|---|---|
| name? | string | The name of the dimension, from 1–255 characters in length. |
| value? | string | The value for the dimension, from 1–255 characters in length. |
name?
Type:
string
(optional)
The name of the dimension, from 1–255 characters in length.
This dimension name must have been included when the metric was published.
value?
Type:
string
(optional)
The value for the dimension, from 1–255 characters in length.

.NET
Go
Java
Python
TypeScript