Interface CfnAlarm.DimensionProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnAlarm.DimensionProperty.Jsii$Proxy
- Enclosing class:
- CfnAlarm
@Stability(Stable)
public static interface CfnAlarm.DimensionProperty
extends software.amazon.jsii.JsiiSerializable
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 10 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 software.amazon.awscdk.services.cloudwatch.*;
DimensionProperty dimensionProperty = DimensionProperty.builder()
.name("name")
.value("value")
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnAlarm.DimensionPropertystatic final classAn implementation forCfnAlarm.DimensionProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getName
The name of the dimension, from 1–255 characters in length.This dimension name must have been included when the metric was published.
-
getValue
The value for the dimension, from 1–255 characters in length. -
builder
- Returns:
- a
CfnAlarm.DimensionProperty.BuilderofCfnAlarm.DimensionProperty
-