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();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnAlarm.DimensionProperty
static final class
An 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.
- See Also:
-
getValue
The value for the dimension, from 1–255 characters in length.- See Also:
-
builder
- Returns:
- a
CfnAlarm.DimensionProperty.Builder
ofCfnAlarm.DimensionProperty
-