Deletes a lifecycle hook.
Operation description
Operation description
If a lifecycle hook has triggered a scaling activity wait state, deleting the lifecycle hook ends the corresponding wait state early. You can delete a lifecycle hook by using one of the following methods:
-
Specify the lifecycle hook ID (
LifecycleHookId). In this case, theScalingGroupIdandLifecycleHookNameparameters are ignored. -
Specify both the scaling group ID (
ScalingGroupId) and the lifecycle hook name (LifecycleHookName).
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ess:DeleteLifecycleHook |
delete |
*ScalingGroup
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| LifecycleHookId |
string |
No |
The ID of the lifecycle hook. |
ash-bp14g3ee6bt3sc98**** |
| ScalingGroupId |
string |
No |
The ID of the scaling group. |
asg-bp18p2yfxow2dloq**** |
| LifecycleHookName |
string |
No |
The name of the lifecycle hook. |
lifecyclehook**** |
| RegionId |
string |
No |
The region ID of the scaling group. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3**** |
Examples
Success response
JSON format
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.