amazonka-ds-1.3.6: Amazon Directory Service SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.DirectoryService.DescribeSnapshots

Contents

Description

Obtains information about the directory snapshots that belong to this account.

This operation supports pagination with the use of the NextToken request and response parameters. If more results are available, the DescribeSnapshots.NextToken member contains a token that you pass in the next call to DescribeSnapshots to retrieve the next set of items.

You can also specify a maximum number of return results with the Limit parameter.

See: AWS API Reference for DescribeSnapshots.

Synopsis

Creating a Request

describeSnapshots :: DescribeSnapshots Source

Creates a value of DescribeSnapshots with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

dsDirectoryId :: Lens' DescribeSnapshots (Maybe Text) Source

The identifier of the directory to retrieve snapshot information for.

dsNextToken :: Lens' DescribeSnapshots (Maybe Text) Source

The DescribeSnapshotsResult.NextToken value from a previous call to DescribeSnapshots. Pass null if this is the first call.

dsSnapshotIds :: Lens' DescribeSnapshots [Text] Source

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.

dsLimit :: Lens' DescribeSnapshots (Maybe Natural) Source

The maximum number of objects to return.

Destructuring the Response

describeSnapshotsResponse Source

Creates a value of DescribeSnapshotsResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Response Lenses

dssrsNextToken :: Lens' DescribeSnapshotsResponse (Maybe Text) Source

If not null, more results are available. Pass this value in the NextToken member of a subsequent call to DescribeSnapshots.

dssrsSnapshots :: Lens' DescribeSnapshotsResponse [Snapshot] Source

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.