Puts one or more Elastic Compute Service (ECS) instances into the Protected state.
Operation description
Puts one or more Elastic Compute Service (ECS) instances into the Protected state.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ScalingGroupId | string | Yes | The ID of the scaling group. | asg-bp18p2yfxow2dloq**** |
ProtectedFromScaleIn | boolean | Yes | Specifies whether to put ECS instances into the Protected state. Auto Scaling does not remove ECS instances in the Protected state from scaling groups during scale-in activities.
| true |
InstanceIds | array | Yes | The IDs of the ECS instances. | |
string | Yes | The ID of the ECS instance. | i-28wt4**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****"
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|
No change history