AutoScaling / Client / describe_notification_configurations
describe_notification_configurations¶
- AutoScaling.Client.describe_notification_configurations(**kwargs)¶
Gets information about the Amazon SNS notifications that are configured for one or more Auto Scaling groups.
See also: AWS API Documentation
Request Syntax
response = client.describe_notification_configurations( AutoScalingGroupNames=[ 'string', ], IncludeManagedResources=True|False, NextToken='string', MaxRecords=123 )
- Parameters:
AutoScalingGroupNames (list) –
The name of the Auto Scaling group.
(string) –
IncludeManagedResources (boolean) – Specifies whether to include notification configurations for managed Auto Scaling groups in the response. When set to
true(default), the response includes notification configurations for managed Auto Scaling groups.NextToken (string) – The token for the next set of items to return. (You received this token from a previous call.)
MaxRecords (integer) –
The maximum number of items to return with this call. The default value is
50and the maximum value is100.A response can contain fewer items than the value specified by
MaxRecords, even when more items are available. To retrieve the additional items, use theNextTokenvalue in a subsequent call rather than relying on the number of items in the response.
- Return type:
dict
- Returns:
Response Syntax
{ 'NotificationConfigurations': [ { 'AutoScalingGroupName': 'string', 'TopicARN': 'string', 'NotificationType': 'string' }, ], 'NextToken': 'string' }
Response Structure
(dict) –
NotificationConfigurations (list) –
The notification configurations.
(dict) –
Describes a notification.
AutoScalingGroupName (string) –
The name of the Auto Scaling group.
TopicARN (string) –
The Amazon Resource Name (ARN) of the Amazon SNS topic.
NotificationType (string) –
One of the following event notification types:
autoscaling:EC2_INSTANCE_LAUNCHautoscaling:EC2_INSTANCE_LAUNCH_ERRORautoscaling:EC2_INSTANCE_TERMINATEautoscaling:EC2_INSTANCE_TERMINATE_ERRORautoscaling:TEST_NOTIFICATION
NextToken (string) –
A string that indicates that the response contains more items than can be returned in a single response. To receive additional items, specify this string for the
NextTokenvalue when requesting the next set of items. This value is null when there are no more items to return.
Exceptions
Examples
This example describes the notification configurations for the specified Auto Scaling group.
response = client.describe_notification_configurations( AutoScalingGroupNames=[ 'my-auto-scaling-group', ], ) print(response)
Expected Output:
{ 'NotificationConfigurations': [ { 'AutoScalingGroupName': 'my-auto-scaling-group', 'NotificationType': 'autoscaling:TEST_NOTIFICATION', 'TopicARN': 'arn:aws:sns:us-west-2:123456789012:my-sns-topic-2', }, { 'AutoScalingGroupName': 'my-auto-scaling-group', 'NotificationType': 'autoscaling:TEST_NOTIFICATION', 'TopicARN': 'arn:aws:sns:us-west-2:123456789012:my-sns-topic', }, ], 'ResponseMetadata': { '...': '...', }, }