Interface CfnScalingPolicy.TargetTrackingScalingPolicyConfigurationProperty

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

@Stability(Stable) public static interface CfnScalingPolicy.TargetTrackingScalingPolicyConfigurationProperty extends software.amazon.jsii.JsiiSerializable
TargetTrackingScalingPolicyConfiguration is a property of the AWS::ApplicationAutoScaling::ScalingPolicy resource that specifies a target tracking scaling policy configuration for Application Auto Scaling. Use a target tracking scaling policy to adjust the capacity of the specified scalable target in response to actual workloads, so that resource utilization remains at or near the target utilization value.

For more information, see Target tracking scaling policies in the Application Auto Scaling 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.services.applicationautoscaling.*;
 TargetTrackingScalingPolicyConfigurationProperty targetTrackingScalingPolicyConfigurationProperty = TargetTrackingScalingPolicyConfigurationProperty.builder()
         .targetValue(123)
         // the properties below are optional
         .customizedMetricSpecification(CustomizedMetricSpecificationProperty.builder()
                 .dimensions(List.of(MetricDimensionProperty.builder()
                         .name("name")
                         .value("value")
                         .build()))
                 .metricName("metricName")
                 .metrics(List.of(TargetTrackingMetricDataQueryProperty.builder()
                         .expression("expression")
                         .id("id")
                         .label("label")
                         .metricStat(TargetTrackingMetricStatProperty.builder()
                                 .metric(TargetTrackingMetricProperty.builder()
                                         .dimensions(List.of(TargetTrackingMetricDimensionProperty.builder()
                                                 .name("name")
                                                 .value("value")
                                                 .build()))
                                         .metricName("metricName")
                                         .namespace("namespace")
                                         .build())
                                 .stat("stat")
                                 .unit("unit")
                                 .build())
                         .returnData(false)
                         .build()))
                 .namespace("namespace")
                 .statistic("statistic")
                 .unit("unit")
                 .build())
         .disableScaleIn(false)
         .predefinedMetricSpecification(PredefinedMetricSpecificationProperty.builder()
                 .predefinedMetricType("predefinedMetricType")
                 // the properties below are optional
                 .resourceLabel("resourceLabel")
                 .build())
         .scaleInCooldown(123)
         .scaleOutCooldown(123)
         .build();
 

See Also: