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

*************************
list_organizational_units
*************************



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

  

  Returns a list of organizational units associated with a notification configuration.

  

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


  **Request Syntax**
  ::

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

    The Amazon Resource Name (ARN) of the notification configuration used to filter the organizational units.

    

  
  :type maxResults: integer
  :param maxResults: 

    The maximum number of organizational units 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.

    

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

    
    ::

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

    

    - *(dict) --* 
      

      - **organizationalUnits** *(list) --* 

        The list of organizational units that match the specified criteria.

        
        

        - *(string) --* 
    
      

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

        The token to use for the next page of results. If there are no additional results, this value is null.

        
  
  **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`

  