Use DescribeLifecycleHookTypes with an AWS SDK or CLI - AWS SDK Code Examples

There are more AWS SDK examples available in the AWS Doc SDK Examples GitHub repo.

Use DescribeLifecycleHookTypes with an AWS SDK or CLI

The following code examples show how to use DescribeLifecycleHookTypes.

CLI
AWS CLI

To describe the available lifecycle hook types

This example describes the available lifecycle hook types.

aws autoscaling describe-lifecycle-hook-types

Output:

{ "LifecycleHookTypes": [ "autoscaling:EC2_INSTANCE_LAUNCHING", "autoscaling:EC2_INSTANCE_TERMINATING" ] }
PowerShell
Tools for PowerShell

Example 1: This example lists the lifecycle hook types supported by Auto Scaling.

Get-ASLifecycleHookType

Output:

autoscaling:EC2_INSTANCE_LAUNCHING auto-scaling:EC2_INSTANCE_TERMINATING