:doc:`DataZone <../../datazone>` / Client / list_domain_units_for_parent

****************************
list_domain_units_for_parent
****************************



.. py:method:: DataZone.Client.list_domain_units_for_parent(**kwargs)

  

  Lists child domain units for the specified parent domain unit.

  

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


  **Request Syntax**
  ::

    response = client.list_domain_units_for_parent(
        domainIdentifier='string',
        parentDomainUnitIdentifier='string',
        maxResults=123,
        nextToken='string'
    )
    
  :type domainIdentifier: string
  :param domainIdentifier: **[REQUIRED]** 

    The ID of the domain in which you want to list domain units for a parent domain unit.

    

  
  :type parentDomainUnitIdentifier: string
  :param parentDomainUnitIdentifier: **[REQUIRED]** 

    The ID of the parent domain unit.

    

  
  :type maxResults: integer
  :param maxResults: 

    The maximum number of domain units to return in a single call to ListDomainUnitsForParent. When the number of domain units to be listed is greater than the value of MaxResults, the response contains a NextToken value that you can use in a subsequent call to ListDomainUnitsForParent to list the next set of domain units.

    

  
  :type nextToken: string
  :param nextToken: 

    When the number of domain units is greater than the default value for the MaxResults parameter, or if you explicitly specify a value for MaxResults that is less than the number of domain units, the response includes a pagination token named NextToken. You can specify this NextToken value in a subsequent call to ListDomainUnitsForParent to list the next set of domain units.

    

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

    
    ::

      {
          'items': [
              {
                  'name': 'string',
                  'id': 'string'
              },
          ],
          'nextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **items** *(list) --* 

        The results returned by this action.

        
        

        - *(dict) --* 

          The summary of the domain unit.

          
          

          - **name** *(string) --* 

            The name of the domain unit summary.

            
          

          - **id** *(string) --* 

            The ID of the domain unit summary.

            
      
    
      

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

        When the number of domain units is greater than the default value for the MaxResults parameter, or if you explicitly specify a value for MaxResults that is less than the number of domain units, the response includes a pagination token named NextToken. You can specify this NextToken value in a subsequent call to ListDomainUnitsForParent to list the next set of domain units.

        
  
  **Exceptions**
  
  *   :py:class:`DataZone.Client.exceptions.InternalServerException`

  
  *   :py:class:`DataZone.Client.exceptions.AccessDeniedException`

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

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

  
  *   :py:class:`DataZone.Client.exceptions.UnauthorizedException`

  