Skip to content

AutoScalingGroupProviderUpdate

Source code in docs_src/capo_ecs/types/auto_scaling_group_provider_update.py
class AutoScalingGroupProviderUpdate(TypedDict, closed=True):
    managed_scaling: NotRequired["capo_ecs.types.managed_scaling.ManagedScaling"]
    """<p>The managed scaling settings for the Auto Scaling group capacity provider.</p>"""
    managed_termination_protection: NotRequired[
        "capo_ecs.types.managed_termination_protection.ManagedTerminationProtection"
    ]
    """<p>The managed termination protection setting to use for the Auto Scaling group capacity provider. This determines whether the Auto Scaling group has managed termination protection.</p> <important> <p>When using managed termination protection, managed scaling must also be used otherwise managed termination protection doesn't work.</p> </important> <p>When managed termination protection is on, Amazon ECS prevents the Amazon EC2 instances in an Auto Scaling group that contain tasks from being terminated during a scale-in action. The Auto Scaling group and each instance in the Auto Scaling group must have instance protection from scale-in actions on. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-termination.html#instance-protection">Instance Protection</a> in the <i>Auto Scaling User Guide</i>.</p> <p>When managed termination protection is off, your Amazon EC2 instances aren't protected from termination when the Auto Scaling group scales in.</p>"""
    managed_draining: NotRequired["capo_ecs.types.managed_draining.ManagedDraining"]
    """<p>The managed draining option for the Auto Scaling group capacity provider. When you enable this, Amazon ECS manages and gracefully drains the EC2 container instances that are in the Auto Scaling group capacity provider.</p>"""

managed_draining instance-attribute

managed_draining: NotRequired[ManagedDraining]

The managed draining option for the Auto Scaling group capacity provider. When you enable this, Amazon ECS manages and gracefully drains the EC2 container instances that are in the Auto Scaling group capacity provider.

managed_scaling instance-attribute

managed_scaling: NotRequired[ManagedScaling]

The managed scaling settings for the Auto Scaling group capacity provider.

managed_termination_protection instance-attribute

managed_termination_protection: NotRequired[ManagedTerminationProtection]

The managed termination protection setting to use for the Auto Scaling group capacity provider. This determines whether the Auto Scaling group has managed termination protection.

When using managed termination protection, managed scaling must also be used otherwise managed termination protection doesn't work.

When managed termination protection is on, Amazon ECS prevents the Amazon EC2 instances in an Auto Scaling group that contain tasks from being terminated during a scale-in action. The Auto Scaling group and each instance in the Auto Scaling group must have instance protection from scale-in actions on. For more information, see Instance Protection in the Auto Scaling User Guide.

When managed termination protection is off, your Amazon EC2 instances aren't protected from termination when the Auto Scaling group scales in.