Skip to content

PredictiveScalingPolicyConfiguration

Source code in docs_src/capo_application_auto_scaling/types/predictive_scaling_policy_configuration.py
class PredictiveScalingPolicyConfiguration(TypedDict, closed=True):
    metric_specifications: "capo_application_auto_scaling.types.predictive_scaling_metric_specifications.PredictiveScalingMetricSpecifications"
    """<p> This structure includes the metrics and target utilization to use for predictive scaling. </p> <p>This is an array, but we currently only support a single metric specification. That is, you can specify a target value and a single metric pair, or a target value and one scaling metric and one load metric.</p>"""
    mode: NotRequired[
        "capo_application_auto_scaling.types.predictive_scaling_mode.PredictiveScalingMode"
    ]
    """<p> The predictive scaling mode. Defaults to <code>ForecastOnly</code> if not specified. </p>"""
    scheduling_buffer_time: NotRequired[
        "capo_application_auto_scaling.types.predictive_scaling_scheduling_buffer_time.PredictiveScalingSchedulingBufferTime"
    ]
    """<p> The amount of time, in seconds, that the start time can be advanced. </p> <p>The value must be less than the forecast interval duration of 3600 seconds (60 minutes). Defaults to 300 seconds if not specified. </p>"""
    max_capacity_breach_behavior: NotRequired[
        "capo_application_auto_scaling.types.predictive_scaling_max_capacity_breach_behavior.PredictiveScalingMaxCapacityBreachBehavior"
    ]
    """<p> Defines the behavior that should be applied if the forecast capacity approaches or exceeds the maximum capacity. Defaults to <code>HonorMaxCapacity</code> if not specified. </p>"""
    max_capacity_buffer: NotRequired[
        "capo_application_auto_scaling.types.predictive_scaling_max_capacity_buffer.PredictiveScalingMaxCapacityBuffer"
    ]
    """<p> The size of the capacity buffer to use when the forecast capacity is close to or exceeds the maximum capacity. The value is specified as a percentage relative to the forecast capacity. For example, if the buffer is 10, this means a 10 percent buffer, such that if the forecast capacity is 50, and the maximum capacity is 40, then the effective maximum capacity is 55. </p> <p>Required if the <code>MaxCapacityBreachBehavior</code> property is set to <code>IncreaseMaxCapacity</code>, and cannot be used otherwise.</p>"""

max_capacity_breach_behavior instance-attribute

max_capacity_breach_behavior: NotRequired[PredictiveScalingMaxCapacityBreachBehavior]

Defines the behavior that should be applied if the forecast capacity approaches or exceeds the maximum capacity. Defaults to HonorMaxCapacity if not specified.

max_capacity_buffer instance-attribute

max_capacity_buffer: NotRequired[PredictiveScalingMaxCapacityBuffer]

The size of the capacity buffer to use when the forecast capacity is close to or exceeds the maximum capacity. The value is specified as a percentage relative to the forecast capacity. For example, if the buffer is 10, this means a 10 percent buffer, such that if the forecast capacity is 50, and the maximum capacity is 40, then the effective maximum capacity is 55.

Required if the MaxCapacityBreachBehavior property is set to IncreaseMaxCapacity, and cannot be used otherwise.

metric_specifications instance-attribute

This structure includes the metrics and target utilization to use for predictive scaling.

This is an array, but we currently only support a single metric specification. That is, you can specify a target value and a single metric pair, or a target value and one scaling metric and one load metric.

mode instance-attribute

mode: NotRequired[PredictiveScalingMode]

The predictive scaling mode. Defaults to ForecastOnly if not specified.

scheduling_buffer_time instance-attribute

scheduling_buffer_time: NotRequired[PredictiveScalingSchedulingBufferTime]

The amount of time, in seconds, that the start time can be advanced.

The value must be less than the forecast interval duration of 3600 seconds (60 minutes). Defaults to 300 seconds if not specified.