Organizations.Paginator.
ListParents
¶paginator = client.get_paginator('list_parents')
paginate
(**kwargs)¶Creates an iterator that will paginate through responses from Organizations.Client.list_parents()
.
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
ChildId='string',
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
[REQUIRED]
The unique identifier (ID) of the OU or account whose parent containers you want to list. Don't specify a root.
The regex pattern for a child ID string requires one of the following:
A dictionary that provides parameters to control pagination.
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.
The size of each page.
A token to specify where to start paginating. This is the NextToken
from a previous response.
dict
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 for a parent ID string requires one of the following:
Type (string) --
The type of the parent entity.