:doc:`UserNotifications <../../notifications>` / Client / list_channels

*************
list_channels
*************



.. py:method:: UserNotifications.Client.list_channels(**kwargs)

  

  Returns a list of Channels for a ``NotificationConfiguration``.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/notifications-2018-05-10/ListChannels>`_  


  **Request Syntax**
  ::

    response = client.list_channels(
        notificationConfigurationArn='string',
        maxResults=123,
        nextToken='string'
    )
    
  :type notificationConfigurationArn: string
  :param notificationConfigurationArn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the ``NotificationConfiguration``.

    

  
  :type maxResults: integer
  :param maxResults: 

    The maximum number of results to be returned in this call. The default value is 20.

    

  
  :type nextToken: string
  :param nextToken: 

    The start token for paginated calls. Retrieved from the response of a previous ListNotificationEvents call. ``NextToken`` uses Base64 encoding.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'nextToken': 'string',
          'channels': [
              'string',
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **nextToken** *(string) --* 

        A pagination token. If a non-null pagination token is returned in a result, pass its value in another request to retrieve more entries.

        
      

      - **channels** *(list) --* 

        A list of Channels.

        
        

        - *(string) --* 
    
  
  **Exceptions**
  
  *   :py:class:`UserNotifications.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`UserNotifications.Client.exceptions.ValidationException`

  
  *   :py:class:`UserNotifications.Client.exceptions.InternalServerException`

  
  *   :py:class:`UserNotifications.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`UserNotifications.Client.exceptions.ThrottlingException`

  