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

********************
list_member_accounts
********************



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

  

  Returns a list of member accounts associated with a notification configuration.

  

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


  **Request Syntax**
  ::

    response = client.list_member_accounts(
        notificationConfigurationArn='string',
        maxResults=123,
        nextToken='string',
        memberAccount='string',
        status='ACTIVE'|'PENDING'|'INACTIVE'|'CREATING'|'DELETING',
        organizationalUnitId='string'
    )
    
  :type notificationConfigurationArn: string
  :param notificationConfigurationArn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the notification configuration used to filter the member accounts.

    

  
  :type maxResults: integer
  :param maxResults: 

    The maximum number of results to return in a single call. Valid values are 1-100.

    

  
  :type nextToken: string
  :param nextToken: 

    The token for the next page of results. Use the value returned in the previous response.

    

  
  :type memberAccount: string
  :param memberAccount: 

    The member account identifier used to filter the results.

    

  
  :type status: string
  :param status: 

    The status used to filter the member accounts.

    

  
  :type organizationalUnitId: string
  :param organizationalUnitId: 

    The organizational unit ID used to filter the member accounts.

    

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

    
    ::

      {
          'memberAccounts': [
              {
                  'notificationConfigurationArn': 'string',
                  'accountId': 'string',
                  'status': 'ACTIVE'|'PENDING'|'INACTIVE'|'CREATING'|'DELETING',
                  'statusReason': 'string',
                  'organizationalUnitId': 'string'
              },
          ],
          'nextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **memberAccounts** *(list) --* 

        The list of member accounts that match the specified criteria.

        
        

        - *(dict) --* 

          Contains information about a member account.

          
          

          - **notificationConfigurationArn** *(string) --* 

            The Amazon Resource Name (ARN) of the notification configuration associated with the member account.

            
          

          - **accountId** *(string) --* 

            The AWS account ID of the member account.

            
          

          - **status** *(string) --* 

            The current status of the member account.

            
          

          - **statusReason** *(string) --* 

            The reason for the current status of the member account.

            
          

          - **organizationalUnitId** *(string) --* 

            The unique identifier of the organizational unit containing the member account.

            
      
    
      

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

        The token to use for the next page of results.

        
  
  **Exceptions**
  
  *   :py:class:`UserNotifications.Client.exceptions.AccessDeniedException`

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

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

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

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

  