CloudDirectory.Paginator.
ListDirectories
¶paginator = client.get_paginator('list_directories')
paginate
(**kwargs)¶Creates an iterator that will paginate through responses from CloudDirectory.Client.list_directories()
.
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
state='ENABLED'|'DISABLED'|'DELETED',
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
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
{
'Directories': [
{
'Name': 'string',
'DirectoryArn': 'string',
'State': 'ENABLED'|'DISABLED'|'DELETED',
'CreationDateTime': datetime(2015, 1, 1)
},
],
}
Response Structure
(dict) --
Directories (list) --
Lists all directories that are associated with your account in pagination fashion.
(dict) --
Directory structure that includes the directory name and directory ARN.
Name (string) --
The name of the directory.
DirectoryArn (string) --
The Amazon Resource Name (ARN) that is associated with the directory. For more information, see arns.
State (string) --
The state of the directory. Can be either Enabled
, Disabled
, or Deleted
.
CreationDateTime (datetime) --
The date and time when the directory was created.