v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-14130373603.9 KB

Updates the instance protection settings of the specified instances. This operation cannot be called on instances in a warm pool.

For more information about preventing instances that are part of an Auto Scaling group from terminating on scale in, see Using instance scale-in protection in the Amazon EC2 Auto Scaling User Guide.

If you exceed your maximum limit of instance IDs, which is 50 per Auto Scaling group, the call fails.

get/#Action=SetInstanceProtection

Query parameters

InstanceIdsXmlStringMaxLen19[] required

One or more instance IDs. You can specify up to 50 instances.

AutoScalingGroupNamestring required

The name of the Auto Scaling group.

ProtectedFromScaleInboolean required

Indicates whether the instance is protected from termination by Amazon EC2 Auto Scaling when scaling in.

Action'SetInstanceProtection' required
Version'2011-01-01' required

Response

Success