Skip to content

TargetTrackingConfiguration

Source code in docs_src/capo_auto_scaling/types/target_tracking_configuration.py
class TargetTrackingConfiguration(TypedDict, closed=True):
    predefined_metric_specification: NotRequired[
        "capo_auto_scaling.types.predefined_metric_specification.PredefinedMetricSpecification"
    ]
    """<p>A predefined metric. You must specify either a predefined metric or a customized metric.</p>"""
    customized_metric_specification: NotRequired[
        "capo_auto_scaling.types.customized_metric_specification.CustomizedMetricSpecification"
    ]
    """<p>A customized metric. You must specify either a predefined metric or a customized metric.</p>"""
    target_value: NotRequired["capo_auto_scaling.types.metric_scale.MetricScale"]
    """<p>The target value for the metric.</p> <note> <p>Some metrics are based on a count instead of a percentage, such as the request count for an Application Load Balancer or the number of messages in an SQS queue. If the scaling policy specifies one of these metrics, specify the target utilization as the optimal average request or message count per instance during any one-minute interval. </p> </note>"""
    disable_scale_in: NotRequired[
        "capo_auto_scaling.types.disable_scale_in.DisableScaleIn"
    ]
    """<p>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 <code>false</code>.</p>"""

customized_metric_specification instance-attribute

customized_metric_specification: NotRequired[CustomizedMetricSpecification]

A customized metric. You must specify either a predefined metric or a customized metric.

disable_scale_in instance-attribute

disable_scale_in: NotRequired[DisableScaleIn]

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.

predefined_metric_specification instance-attribute

predefined_metric_specification: NotRequired[PredefinedMetricSpecification]

A predefined metric. You must specify either a predefined metric or a customized metric.

target_value instance-attribute

target_value: NotRequired[MetricScale]

The target value for the metric.

Some metrics are based on a count instead of a percentage, such as the request count for an Application Load Balancer or the number of messages in an SQS queue. If the scaling policy specifies one of these metrics, specify the target utilization as the optimal average request or message count per instance during any one-minute interval.