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()
{
'LifecycleHookTypes': [
'string',
]
}
Response Structure
The lifecycle hook types.
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': {
'...': '...',
},
}