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

Amazonka.DirectoryService.DescribeSnapshots

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.

This operation returns paginated results.

Synopsis

Creating a Request

data DescribeSnapshots Source #

Contains the inputs for the DescribeSnapshots operation.

See: newDescribeSnapshots smart constructor.

Constructors

DescribeSnapshots' 

Fields

  • directoryId :: Maybe Text

    The identifier of the directory for which to retrieve snapshot information.

  • nextToken :: Maybe Text

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

  • snapshotIds :: Maybe [Text]

    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.

  • limit :: Maybe Natural

    The maximum number of objects to return.

Instances

Instances details
Eq DescribeSnapshots Source # 
Instance details

Defined in Amazonka.DirectoryService.DescribeSnapshots

Read DescribeSnapshots Source # 
Instance details

Defined in Amazonka.DirectoryService.DescribeSnapshots

Show DescribeSnapshots Source # 
Instance details

Defined in Amazonka.DirectoryService.DescribeSnapshots

Generic DescribeSnapshots Source # 
Instance details

Defined in Amazonka.DirectoryService.DescribeSnapshots

Associated Types

type Rep DescribeSnapshots :: Type -> Type #

NFData DescribeSnapshots Source # 
Instance details

Defined in Amazonka.DirectoryService.DescribeSnapshots

Methods

rnf :: DescribeSnapshots -> () #

Hashable DescribeSnapshots Source # 
Instance details

Defined in Amazonka.DirectoryService.DescribeSnapshots

ToJSON DescribeSnapshots Source # 
Instance details

Defined in Amazonka.DirectoryService.DescribeSnapshots

AWSPager DescribeSnapshots Source # 
Instance details

Defined in Amazonka.DirectoryService.DescribeSnapshots

AWSRequest DescribeSnapshots Source # 
Instance details

Defined in Amazonka.DirectoryService.DescribeSnapshots

Associated Types

type AWSResponse DescribeSnapshots #

ToHeaders DescribeSnapshots Source # 
Instance details

Defined in Amazonka.DirectoryService.DescribeSnapshots

ToPath DescribeSnapshots Source # 
Instance details

Defined in Amazonka.DirectoryService.DescribeSnapshots

ToQuery DescribeSnapshots Source # 
Instance details

Defined in Amazonka.DirectoryService.DescribeSnapshots

type Rep DescribeSnapshots Source # 
Instance details

Defined in Amazonka.DirectoryService.DescribeSnapshots

type Rep DescribeSnapshots = D1 ('MetaData "DescribeSnapshots" "Amazonka.DirectoryService.DescribeSnapshots" "libZSservicesZSamazonka-dsZSamazonka-ds" 'False) (C1 ('MetaCons "DescribeSnapshots'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "directoryId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "snapshotIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "limit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)))))
type AWSResponse DescribeSnapshots Source # 
Instance details

Defined in Amazonka.DirectoryService.DescribeSnapshots

newDescribeSnapshots :: DescribeSnapshots Source #

Create a value of DescribeSnapshots with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:directoryId:DescribeSnapshots', describeSnapshots_directoryId - The identifier of the directory for which to retrieve snapshot information.

$sel:nextToken:DescribeSnapshots', describeSnapshots_nextToken - The DescribeSnapshotsResult.NextToken value from a previous call to DescribeSnapshots. Pass null if this is the first call.

$sel:snapshotIds:DescribeSnapshots', describeSnapshots_snapshotIds - 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.

$sel:limit:DescribeSnapshots', describeSnapshots_limit - The maximum number of objects to return.

Request Lenses

describeSnapshots_directoryId :: Lens' DescribeSnapshots (Maybe Text) Source #

The identifier of the directory for which to retrieve snapshot information.

describeSnapshots_nextToken :: Lens' DescribeSnapshots (Maybe Text) Source #

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

describeSnapshots_snapshotIds :: Lens' DescribeSnapshots (Maybe [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.

describeSnapshots_limit :: Lens' DescribeSnapshots (Maybe Natural) Source #

The maximum number of objects to return.

Destructuring the Response

data DescribeSnapshotsResponse Source #

Contains the results of the DescribeSnapshots operation.

See: newDescribeSnapshotsResponse smart constructor.

Constructors

DescribeSnapshotsResponse' 

Fields

  • nextToken :: Maybe Text

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

  • snapshots :: Maybe [Snapshot]

    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.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq DescribeSnapshotsResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.DescribeSnapshots

Read DescribeSnapshotsResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.DescribeSnapshots

Show DescribeSnapshotsResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.DescribeSnapshots

Generic DescribeSnapshotsResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.DescribeSnapshots

Associated Types

type Rep DescribeSnapshotsResponse :: Type -> Type #

NFData DescribeSnapshotsResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.DescribeSnapshots

type Rep DescribeSnapshotsResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.DescribeSnapshots

type Rep DescribeSnapshotsResponse = D1 ('MetaData "DescribeSnapshotsResponse" "Amazonka.DirectoryService.DescribeSnapshots" "libZSservicesZSamazonka-dsZSamazonka-ds" 'False) (C1 ('MetaCons "DescribeSnapshotsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "snapshots") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Snapshot])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newDescribeSnapshotsResponse Source #

Create a value of DescribeSnapshotsResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:nextToken:DescribeSnapshots', describeSnapshotsResponse_nextToken - If not null, more results are available. Pass this value in the NextToken member of a subsequent call to DescribeSnapshots.

$sel:snapshots:DescribeSnapshotsResponse', describeSnapshotsResponse_snapshots - 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.

$sel:httpStatus:DescribeSnapshotsResponse', describeSnapshotsResponse_httpStatus - The response's http status code.

Response Lenses

describeSnapshotsResponse_nextToken :: 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.

describeSnapshotsResponse_snapshots :: Lens' DescribeSnapshotsResponse (Maybe [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.