interface DimensionProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.CloudWatch.CfnAlarmPropsMixin.DimensionProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awscloudwatch#CfnAlarmPropsMixin_DimensionProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.cloudwatch.CfnAlarmPropsMixin.DimensionProperty |
Python | aws_cdk.cfn_property_mixins.aws_cloudwatch.CfnAlarmPropsMixin.DimensionProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_cloudwatch » 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 { aws_cloudwatch as cloudwatch } from '@aws-cdk/cfn-property-mixins';
const dimensionProperty: cloudwatch.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