Interface CfnScalingPolicyPropsMixin.MetricStatProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnScalingPolicyPropsMixin.MetricStatProperty.Jsii$Proxy
Enclosing class:
CfnScalingPolicyPropsMixin

@Stability(Stable) public static interface CfnScalingPolicyPropsMixin.MetricStatProperty extends software.amazon.jsii.JsiiSerializable
MetricStat is a property of the AWS::AutoScaling::ScalingPolicy MetricDataQuery property type.

This structure defines the CloudWatch metric to return, along with the statistic and unit.

For more information about the CloudWatch terminology below, see Amazon CloudWatch concepts in the Amazon CloudWatch User Guide .

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.cfnpropertymixins.services.autoscaling.*;
 MetricStatProperty metricStatProperty = MetricStatProperty.builder()
         .metric(MetricProperty.builder()
                 .dimensions(List.of(MetricDimensionProperty.builder()
                         .name("name")
                         .value("value")
                         .build()))
                 .metricName("metricName")
                 .namespace("namespace")
                 .build())
         .stat("stat")
         .unit("unit")
         .build();
 

See Also: