AutoScaling / Client / describe_auto_scaling_notification_types

describe_auto_scaling_notification_types#

AutoScaling.Client.describe_auto_scaling_notification_types()#

Describes the notification types that are supported by Amazon EC2 Auto Scaling.

See also: AWS API Documentation

Request Syntax

response = client.describe_auto_scaling_notification_types()
Return type:

dict

Returns:

Response Syntax

{
    'AutoScalingNotificationTypes': [
        'string',
    ]
}

Response Structure

  • (dict) –

    • AutoScalingNotificationTypes (list) –

      The notification types.

      • (string) –

Exceptions

  • AutoScaling.Client.exceptions.ResourceContentionFault

Examples

This example describes the available notification types.

response = client.describe_auto_scaling_notification_types(
)

print(response)

Expected Output:

{
    'AutoScalingNotificationTypes': [
        'autoscaling:EC2_INSTANCE_LAUNCH',
        'autoscaling:EC2_INSTANCE_LAUNCH_ERROR',
        'autoscaling:EC2_INSTANCE_TERMINATE',
        'autoscaling:EC2_INSTANCE_TERMINATE_ERROR',
        'autoscaling:TEST_NOTIFICATION',
    ],
    'ResponseMetadata': {
        '...': '...',
    },
}