Interface CfnScalingPolicy.TargetTrackingConfigurationProperty

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

@Stability(Stable) public static interface CfnScalingPolicy.TargetTrackingConfigurationProperty extends software.amazon.jsii.JsiiSerializable
TargetTrackingConfiguration is a property of the AWS::AutoScaling::ScalingPolicy resource that specifies a target tracking scaling policy configuration for Amazon EC2 Auto Scaling.

For more information about scaling policies, see Dynamic scaling in the Amazon EC2 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.autoscaling.*;
 TargetTrackingConfigurationProperty targetTrackingConfigurationProperty = TargetTrackingConfigurationProperty.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()
                         .id("id")
                         // the properties below are optional
                         .expression("expression")
                         .label("label")
                         .metricStat(TargetTrackingMetricStatProperty.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()))
                 .namespace("namespace")
                 .statistic("statistic")
                 .unit("unit")
                 .build())
         .disableScaleIn(false)
         .predefinedMetricSpecification(PredefinedMetricSpecificationProperty.builder()
                 .predefinedMetricType("predefinedMetricType")
                 // the properties below are optional
                 .resourceLabel("resourceLabel")
                 .build())
         .build();
 

See Also: