describe_lifecycle_hook_types

AutoScaling.Client.describe_lifecycle_hook_types()

Describes the available types of lifecycle hooks.

The following hook types are supported:

  • autoscaling:EC2_INSTANCE_LAUNCHING
  • autoscaling:EC2_INSTANCE_TERMINATING

See also: AWS API Documentation

Request Syntax

response = client.describe_lifecycle_hook_types()
Return type
dict
Returns
Response Syntax
{
    'LifecycleHookTypes': [
        'string',
    ]
}

Response Structure

  • (dict) --
    • LifecycleHookTypes (list) --

      The lifecycle hook types.

      • (string) --

Exceptions

  • AutoScaling.Client.exceptions.ResourceContentionFault

Examples

This example describes the available lifecycle hook types.

response = client.describe_lifecycle_hook_types(
)

print(response)

Expected Output:

{
    'LifecycleHookTypes': [
        'autoscaling:EC2_INSTANCE_LAUNCHING',
        'autoscaling:EC2_INSTANCE_TERMINATING',
    ],
    'ResponseMetadata': {
        '...': '...',
    },
}