DirectoryService.Paginator.
DescribeSnapshots
¶paginator = client.get_paginator('describe_snapshots')
paginate
(**kwargs)¶Creates an iterator that will paginate through responses from DirectoryService.Client.describe_snapshots()
.
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
DirectoryId='string',
SnapshotIds=[
'string',
],
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
A list of identifiers of the snapshots to obtain the information for. If this member is null or empty, all snapshots are returned using the Limit and NextToken members.
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
{
'Snapshots': [
{
'DirectoryId': 'string',
'SnapshotId': 'string',
'Type': 'Auto'|'Manual',
'Name': 'string',
'Status': 'Creating'|'Completed'|'Failed',
'StartTime': datetime(2015, 1, 1)
},
],
}
Response Structure
(dict) --
Contains the results of the DescribeSnapshots operation.
Snapshots (list) --
The list of Snapshot objects that were retrieved.
It is possible that this list contains less than the number of items specified in the Limit member of the request. This occurs if there are less than the requested number of items left to retrieve, or if the limitations of the operation have been exceeded.
(dict) --
Describes a directory snapshot.
DirectoryId (string) --
The directory identifier.
SnapshotId (string) --
The snapshot identifier.
Type (string) --
The snapshot type.
Name (string) --
The descriptive name of the snapshot.
Status (string) --
The snapshot status.
StartTime (datetime) --
The date and time that the snapshot was taken.