:doc:`Organizations <../../organizations>` / Paginator / ListParents

***********
ListParents
***********



.. py:class:: Organizations.Paginator.ListParents

  ::

    
    paginator = client.get_paginator('list_parents')

  
  

  .. py:method:: paginate(**kwargs)

    Creates an iterator that will paginate through responses from :py:meth:`Organizations.Client.list_parents`.

    See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListParents>`_    


    **Request Syntax**
    ::

      response_iterator = paginator.paginate(
          ChildId='string',
          PaginationConfig={
              'MaxItems': 123,
              'PageSize': 123,
              'StartingToken': 'string'
          }
      )
      
    :type ChildId: string
    :param ChildId: **[REQUIRED]** 

      ID for the OU or account whose parent containers you want to list. Don't specify a root.

       

      The `regex pattern <http://wikipedia.org/wiki/regex>`__ for a child ID string requires one of the following:

       

      
      * **Account** - A string that consists of exactly 12 digits.
       
      * **Organizational unit (OU)** - A string that begins with "ou-" followed by from 4 to 32 lowercase letters or digits (the ID of the root that contains the OU). This string is followed by a second "-" dash and from 8 to 32 additional lowercase letters or digits.
      

      

    
    :type PaginationConfig: dict
    :param PaginationConfig: 

      A dictionary that provides parameters to control pagination.

      

    
      - **MaxItems** *(integer) --* 

        The total number of items to return. If the total number of items available is more than the value specified in max-items then a ``NextToken`` will be provided in the output that you can use to resume pagination.

        

      
      - **PageSize** *(integer) --* 

        The size of each page.

        

      
      - **StartingToken** *(string) --* 

        A token to specify where to start paginating. This is the ``NextToken`` from a previous response.

        

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

      
      ::

        {
            'Parents': [
                {
                    'Id': 'string',
                    'Type': 'ROOT'|'ORGANIZATIONAL_UNIT'
                },
            ],
            
        }
        
      **Response Structure**

      

      - *(dict) --* 
        

        - **Parents** *(list) --* 

          A list of parents for the specified child account or OU.

          
          

          - *(dict) --* 

            Contains information about either a root or an organizational unit (OU) that can contain OUs or accounts in an organization.

            
            

            - **Id** *(string) --* 

              The unique identifier (ID) of the parent entity.

               

              The `regex pattern <http://wikipedia.org/wiki/regex>`__ for a parent ID string requires one of the following:

               

              
              * **Root** - A string that begins with "r-" followed by from 4 to 32 lowercase letters or digits.
               
              * **Organizational unit (OU)** - A string that begins with "ou-" followed by from 4 to 32 lowercase letters or digits (the ID of the root that the OU is in). This string is followed by a second "-" dash and from 8 to 32 additional lowercase letters or digits.
              

              
            

            - **Type** *(string) --* 

              The type of the parent entity.

              
        
      
    