Interface CfnScalingPolicy.PredictiveScalingCustomizedCapacityMetricProperty

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

@Stability(Stable) public static interface CfnScalingPolicy.PredictiveScalingCustomizedCapacityMetricProperty extends software.amazon.jsii.JsiiSerializable
Contains capacity metric information for the CustomizedCapacityMetricSpecification property of the AWS::AutoScaling::ScalingPolicy PredictiveScalingMetricSpecification property type.

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.autoscaling.*;
 PredictiveScalingCustomizedCapacityMetricProperty predictiveScalingCustomizedCapacityMetricProperty = PredictiveScalingCustomizedCapacityMetricProperty.builder()
         .metricDataQueries(List.of(MetricDataQueryProperty.builder()
                 .id("id")
                 // the properties below are optional
                 .expression("expression")
                 .label("label")
                 .metricStat(MetricStatProperty.builder()
                         .metric(MetricProperty.builder()
                                 .metricName("metricName")
                                 .namespace("namespace")
                                 // the properties below are optional
                                 .dimensions(List.of(MetricDimensionProperty.builder()
                                         .name("name")
                                         .value("value")
                                         .build()))
                                 .build())
                         .stat("stat")
                         // the properties below are optional
                         .unit("unit")
                         .build())
                 .returnData(false)
                 .build()))
         .build();
 

See Also: