Skip to content

/AWS1/CL_ASC=>ENTERSTANDBY()

About EnterStandby

Moves the specified instances into the standby state.

If you choose to decrement the desired capacity of the Auto Scaling group, the instances can enter standby as long as the desired capacity of the Auto Scaling group after the instances are placed into standby is equal to or greater than the minimum capacity of the group.

If you choose not to decrement the desired capacity of the Auto Scaling group, the Auto Scaling group launches new instances to replace the instances on standby.

For more information, see Temporarily removing instances from your Auto Scaling group in the Amazon EC2 Auto Scaling User Guide.

Method Signature

IMPORTING

Required arguments:

IV_AUTOSCALINGGROUPNAME TYPE /AWS1/ASCXMLSTRINGMAXLEN255 /AWS1/ASCXMLSTRINGMAXLEN255

The name of the Auto Scaling group.

IV_SHOULDDECREMENTDESIREDCAP TYPE /AWS1/ASCSHOULDDECREMENTDESI00 /AWS1/ASCSHOULDDECREMENTDESI00

Indicates whether to decrement the desired capacity of the Auto Scaling group by the number of instances moved to Standby mode.

Optional arguments:

IT_INSTANCEIDS TYPE /AWS1/CL_ASCINSTANCEIDS_W=>TT_INSTANCEIDS TT_INSTANCEIDS

The IDs of the instances. You can specify up to 20 instances.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_ASCENTERSTANDBYANSWER /AWS1/CL_ASCENTERSTANDBYANSWER