CmdID / aws / aws autoscaling
aws autoscaling delete-lifecycle-hook
Deletes the specified lifecycle hook. AWS CLI reference
1 example 2 options Its page in the AWS CLI reference
Examples
To delete a lifecycle hook
The following delete-lifecycle-hook example deletes the specified lifecycle hook.
aws autoscaling delete-lifecycle-hook --lifecycle-hook-name my-lifecycle-hook --auto-scaling-group-name my-asgIdentify--lifecycle-hook-nameThe name of the lifecycle hook.--auto-scaling-group-nameThe name of the Auto Scaling group.This command produces no output.
For more information, see Amazon EC2 Auto Scaling lifecycle hooks in the Amazon EC2 Auto Scaling User Guide.
Options
--auto-scaling-group-nameThe name of the Auto Scaling group.--lifecycle-hook-nameThe name of the lifecycle hook.