Interface CfnScalingPolicy.PredictiveScalingPolicyConfigurationProperty

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

@Stability(Stable) public static interface CfnScalingPolicy.PredictiveScalingPolicyConfigurationProperty extends software.amazon.jsii.JsiiSerializable
Represents a predictive scaling policy configuration.

Predictive scaling is supported on Amazon ECS services.

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.applicationautoscaling.*;
 PredictiveScalingPolicyConfigurationProperty predictiveScalingPolicyConfigurationProperty = PredictiveScalingPolicyConfigurationProperty.builder()
         .metricSpecifications(List.of(PredictiveScalingMetricSpecificationProperty.builder()
                 .targetValue(123)
                 // the properties below are optional
                 .customizedCapacityMetricSpecification(PredictiveScalingCustomizedCapacityMetricProperty.builder()
                         .metricDataQueries(List.of(PredictiveScalingMetricDataQueryProperty.builder()
                                 .expression("expression")
                                 .id("id")
                                 .label("label")
                                 .metricStat(PredictiveScalingMetricStatProperty.builder()
                                         .metric(PredictiveScalingMetricProperty.builder()
                                                 .dimensions(List.of(PredictiveScalingMetricDimensionProperty.builder()
                                                         .name("name")
                                                         .value("value")
                                                         .build()))
                                                 .metricName("metricName")
                                                 .namespace("namespace")
                                                 .build())
                                         .stat("stat")
                                         .unit("unit")
                                         .build())
                                 .returnData(false)
                                 .build()))
                         .build())
                 .customizedLoadMetricSpecification(PredictiveScalingCustomizedLoadMetricProperty.builder()
                         .metricDataQueries(List.of(PredictiveScalingMetricDataQueryProperty.builder()
                                 .expression("expression")
                                 .id("id")
                                 .label("label")
                                 .metricStat(PredictiveScalingMetricStatProperty.builder()
                                         .metric(PredictiveScalingMetricProperty.builder()
                                                 .dimensions(List.of(PredictiveScalingMetricDimensionProperty.builder()
                                                         .name("name")
                                                         .value("value")
                                                         .build()))
                                                 .metricName("metricName")
                                                 .namespace("namespace")
                                                 .build())
                                         .stat("stat")
                                         .unit("unit")
                                         .build())
                                 .returnData(false)
                                 .build()))
                         .build())
                 .customizedScalingMetricSpecification(PredictiveScalingCustomizedScalingMetricProperty.builder()
                         .metricDataQueries(List.of(PredictiveScalingMetricDataQueryProperty.builder()
                                 .expression("expression")
                                 .id("id")
                                 .label("label")
                                 .metricStat(PredictiveScalingMetricStatProperty.builder()
                                         .metric(PredictiveScalingMetricProperty.builder()
                                                 .dimensions(List.of(PredictiveScalingMetricDimensionProperty.builder()
                                                         .name("name")
                                                         .value("value")
                                                         .build()))
                                                 .metricName("metricName")
                                                 .namespace("namespace")
                                                 .build())
                                         .stat("stat")
                                         .unit("unit")
                                         .build())
                                 .returnData(false)
                                 .build()))
                         .build())
                 .predefinedLoadMetricSpecification(PredictiveScalingPredefinedLoadMetricProperty.builder()
                         .predefinedMetricType("predefinedMetricType")
                         // the properties below are optional
                         .resourceLabel("resourceLabel")
                         .build())
                 .predefinedMetricPairSpecification(PredictiveScalingPredefinedMetricPairProperty.builder()
                         .predefinedMetricType("predefinedMetricType")
                         // the properties below are optional
                         .resourceLabel("resourceLabel")
                         .build())
                 .predefinedScalingMetricSpecification(PredictiveScalingPredefinedScalingMetricProperty.builder()
                         .predefinedMetricType("predefinedMetricType")
                         // the properties below are optional
                         .resourceLabel("resourceLabel")
                         .build())
                 .build()))
         // the properties below are optional
         .maxCapacityBreachBehavior("maxCapacityBreachBehavior")
         .maxCapacityBuffer(123)
         .mode("mode")
         .schedulingBufferTime(123)
         .build();
 

See Also: