SetInstanceProtection#

Description#

Request to change security settings for the specified instances.

Request Parameters#

  • AutoScalingGroupName — .The name of the ASG which the instances belong to.

    • Type: String

    • Required: Yes

    • Constraints: 1 to 255 ASCII characters

  • InstanceIds — List of instance IDs.

    • Type: Array of strings

    • Required: Yes

    • Maximum number of elements: 50

  • ProtectedFromScaleIn — Indicates whether the instance is protected from deletion when the ASG is scaled in.

    • Type: Boolean

    • Required: Yes

Examples#

c2-as SetInstanceProtection AutoScalingGroupName "asg_name" InstanceIds.1 "i-xxxxxxxx" ProtectedFromScaleIn True