class Aws::AutoScaling::Types::TargetTrackingConfiguration
Represents a target tracking scaling policy configuration to use with Amazon EC2 Auto Scaling.
@note When making an API call, you may pass TargetTrackingConfiguration
data as a hash: { predefined_metric_specification: { predefined_metric_type: "ASGAverageCPUUtilization", # required, accepts ASGAverageCPUUtilization, ASGAverageNetworkIn, ASGAverageNetworkOut, ALBRequestCountPerTarget resource_label: "XmlStringMaxLen1023", }, customized_metric_specification: { metric_name: "MetricName", # required namespace: "MetricNamespace", # required dimensions: [ { name: "MetricDimensionName", # required value: "MetricDimensionValue", # required }, ], statistic: "Average", # required, accepts Average, Minimum, Maximum, SampleCount, Sum unit: "MetricUnit", }, target_value: 1.0, # required disable_scale_in: false, }
@!attribute [rw] predefined_metric_specification
A predefined metric. You must specify either a predefined metric or a customized metric. @return [Types::PredefinedMetricSpecification]
@!attribute [rw] customized_metric_specification
A customized metric. You must specify either a predefined metric or a customized metric. @return [Types::CustomizedMetricSpecification]
@!attribute [rw] target_value
The target value for the metric. @return [Float]
@!attribute [rw] disable_scale_in
Indicates whether scaling in by the target tracking scaling policy is disabled. If scaling in is disabled, the target tracking scaling policy doesn't remove instances from the Auto Scaling group. Otherwise, the target tracking scaling policy can remove instances from the Auto Scaling group. The default is `false`. @return [Boolean]
@see docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/TargetTrackingConfiguration AWS API Documentation
Constants
- SENSITIVE