:doc:`AutoScaling <../../autoscaling>` / Client / describe_notification_configurations

************************************
describe_notification_configurations
************************************



.. py:method:: 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 <https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeNotificationConfigurations>`_  


  **Request Syntax**
  ::

    response = client.describe_notification_configurations(
        AutoScalingGroupNames=[
            'string',
        ],
        NextToken='string',
        MaxRecords=123
    )
    
  :type AutoScalingGroupNames: list
  :param AutoScalingGroupNames: 

    The name of the Auto Scaling group.

    

  
    - *(string) --* 

    

  :type NextToken: string
  :param NextToken: 

    The token for the next set of items to return. (You received this token from a previous call.)

    

  
  :type MaxRecords: integer
  :param MaxRecords: 

    The maximum number of items to return with this call. The default value is ``50`` and the maximum value is ``100``.

    

  
  
  :rtype: 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_LAUNCH``
             
            * ``autoscaling:EC2_INSTANCE_LAUNCH_ERROR``
             
            * ``autoscaling:EC2_INSTANCE_TERMINATE``
             
            * ``autoscaling:EC2_INSTANCE_TERMINATE_ERROR``
             
            * ``autoscaling: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 ``NextToken`` value when requesting the next set of items. This value is null when there are no more items to return.

        
  
  **Exceptions**
  
  *   :py:class:`AutoScaling.Client.exceptions.InvalidNextToken`

  
  *   :py:class:`AutoScaling.Client.exceptions.ResourceContentionFault`

  

  **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': {
            '...': '...',
        },
    }

  