Skip to content

/AWS1/CL_ASC=>SETINSTANCEPROTECTION()

About SetInstanceProtection

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.

Method Signature

IMPORTING

Required arguments:

IT_INSTANCEIDS TYPE /AWS1/CL_ASCINSTANCEIDS_W=>TT_INSTANCEIDS TT_INSTANCEIDS

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

IV_AUTOSCALINGGROUPNAME TYPE /AWS1/ASCXMLSTRINGMAXLEN255 /AWS1/ASCXMLSTRINGMAXLEN255

The name of the Auto Scaling group.

IV_PROTECTEDFROMSCALEIN TYPE /AWS1/ASCPROTECTEDFROMSCALEIN /AWS1/ASCPROTECTEDFROMSCALEIN

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

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_ASCSETINSTPROTECTIO01 /AWS1/CL_ASCSETINSTPROTECTIO01