Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can click “Customize cookies” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To continue without accepting these cookies, click “Continue without accepting.” To make more detailed choices or learn more, click “Customize cookies.”

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, see Use 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

Domain /AWS1/RT_ACCOUNT_ID
Primitive Type NUMC