amazonka-fsx-2.0: Amazon FSx SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.FSx.DescribeSnapshots

Description

Returns the description of specific Amazon FSx for OpenZFS snapshots, if a SnapshotIds value is provided. Otherwise, this operation returns all snapshots owned by your Amazon Web Services account in the Amazon Web Services Region of the endpoint that you're calling.

When retrieving all snapshots, you can optionally specify the MaxResults parameter to limit the number of snapshots in a response. If more backups remain, Amazon FSx returns a NextToken value in the response. In this case, send a later request with the NextToken request parameter set to the value of NextToken from the last response.

Use this operation in an iterative process to retrieve a list of your snapshots. DescribeSnapshots is called first without a NextToken value. Then the operation continues to be called with the NextToken parameter set to the value of the last NextToken value until a response has no NextToken value.

When using this operation, keep the following in mind:

  • The operation might return fewer than the MaxResults value of snapshot descriptions while still including a NextToken value.
  • The order of snapshots returned in the response of one DescribeSnapshots call and the order of backups returned across the responses of a multi-call iteration is unspecified.
Synopsis

Creating a Request

data DescribeSnapshots Source #

See: newDescribeSnapshots smart constructor.

Constructors

DescribeSnapshots' 

Fields

Instances

Instances details
ToJSON DescribeSnapshots Source # 
Instance details

Defined in Amazonka.FSx.DescribeSnapshots

ToHeaders DescribeSnapshots Source # 
Instance details

Defined in Amazonka.FSx.DescribeSnapshots

ToPath DescribeSnapshots Source # 
Instance details

Defined in Amazonka.FSx.DescribeSnapshots

ToQuery DescribeSnapshots Source # 
Instance details

Defined in Amazonka.FSx.DescribeSnapshots

AWSRequest DescribeSnapshots Source # 
Instance details

Defined in Amazonka.FSx.DescribeSnapshots

Associated Types

type AWSResponse DescribeSnapshots #

Generic DescribeSnapshots Source # 
Instance details

Defined in Amazonka.FSx.DescribeSnapshots

Associated Types

type Rep DescribeSnapshots :: Type -> Type #

Read DescribeSnapshots Source # 
Instance details

Defined in Amazonka.FSx.DescribeSnapshots

Show DescribeSnapshots Source # 
Instance details

Defined in Amazonka.FSx.DescribeSnapshots

NFData DescribeSnapshots Source # 
Instance details

Defined in Amazonka.FSx.DescribeSnapshots

Methods

rnf :: DescribeSnapshots -> () #

Eq DescribeSnapshots Source # 
Instance details

Defined in Amazonka.FSx.DescribeSnapshots

Hashable DescribeSnapshots Source # 
Instance details

Defined in Amazonka.FSx.DescribeSnapshots

type AWSResponse DescribeSnapshots Source # 
Instance details

Defined in Amazonka.FSx.DescribeSnapshots

type Rep DescribeSnapshots Source # 
Instance details

Defined in Amazonka.FSx.DescribeSnapshots

type Rep DescribeSnapshots = D1 ('MetaData "DescribeSnapshots" "Amazonka.FSx.DescribeSnapshots" "amazonka-fsx-2.0-6W1DYEEbHPkD4DJvTvpQG4" 'False) (C1 ('MetaCons "DescribeSnapshots'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "filters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [SnapshotFilter])) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "snapshotIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])))))

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:filters:DescribeSnapshots', describeSnapshots_filters - The filters structure. The supported names are file-system-id or volume-id.

$sel:maxResults:DescribeSnapshots', describeSnapshots_maxResults - Undocumented member.

DescribeSnapshots, describeSnapshots_nextToken - Undocumented member.

$sel:snapshotIds:DescribeSnapshots', describeSnapshots_snapshotIds - The IDs of the snapshots that you want to retrieve. This parameter value overrides any filters. If any IDs aren't found, a SnapshotNotFound error occurs.

Request Lenses

describeSnapshots_filters :: Lens' DescribeSnapshots (Maybe [SnapshotFilter]) Source #

The filters structure. The supported names are file-system-id or volume-id.

describeSnapshots_snapshotIds :: Lens' DescribeSnapshots (Maybe [Text]) Source #

The IDs of the snapshots that you want to retrieve. This parameter value overrides any filters. If any IDs aren't found, a SnapshotNotFound error occurs.

Destructuring the Response

data DescribeSnapshotsResponse Source #

See: newDescribeSnapshotsResponse smart constructor.

Constructors

DescribeSnapshotsResponse' 

Fields

Instances

Instances details
Generic DescribeSnapshotsResponse Source # 
Instance details

Defined in Amazonka.FSx.DescribeSnapshots

Associated Types

type Rep DescribeSnapshotsResponse :: Type -> Type #

Read DescribeSnapshotsResponse Source # 
Instance details

Defined in Amazonka.FSx.DescribeSnapshots

Show DescribeSnapshotsResponse Source # 
Instance details

Defined in Amazonka.FSx.DescribeSnapshots

NFData DescribeSnapshotsResponse Source # 
Instance details

Defined in Amazonka.FSx.DescribeSnapshots

Eq DescribeSnapshotsResponse Source # 
Instance details

Defined in Amazonka.FSx.DescribeSnapshots

type Rep DescribeSnapshotsResponse Source # 
Instance details

Defined in Amazonka.FSx.DescribeSnapshots

type Rep DescribeSnapshotsResponse = D1 ('MetaData "DescribeSnapshotsResponse" "Amazonka.FSx.DescribeSnapshots" "amazonka-fsx-2.0-6W1DYEEbHPkD4DJvTvpQG4" '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:

DescribeSnapshots, describeSnapshotsResponse_nextToken - Undocumented member.

$sel:snapshots:DescribeSnapshotsResponse', describeSnapshotsResponse_snapshots - An array of snapshots.

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

Response Lenses