Extends the time window during which an Elastic Compute Service (ECS) instance stays in the Pending state after a lifecycle hook is triggered. If the current time window is not long enough for you to complete custom operations, call this operation and specify lifecycleHookId, lifecycleActionToken, and heartbeatTimeout to extend it.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ess:RecordLifecycleActionHeartbeat |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| lifecycleHookId |
string |
Yes |
The ID of the lifecycle hook. |
ash-bp1fxuqyi98w0aib**** |
| lifecycleActionToken |
string |
Yes |
The action token of the lifecycle hook. You can obtain the token from the details page of the Simple Message Queue (SMQ, formerly MNS) queue specified for the lifecycle hook. You can also call the DescribeLifecycleActions operation to obtain this token. If you specified an SMQ topic for the lifecycle hook, you can also obtain the token from the SMQ topic. |
F324B880-900E-4968-85DD-81691113**** |
| heartbeatTimeout |
integer |
No |
The time window during which the ECS instance stays in the Pending state. When the time window ends, Auto Scaling performs the default action. Valid values: 30 to 21600. Unit: seconds. You can call this operation to extend the Pending-state time window after creating a lifecycle hook. You can also call the CompleteLifecycleAction operation to end the Pending state ahead of schedule. Default value: 600. |
600 |
| RegionId |
string |
No |
The region ID of the scaling group. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
Examples
Success response
JSON format
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.