amazonka-ec2-2.0: Amazon Elastic Compute Cloud 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.EC2.ListSnapshotsInRecycleBin

Description

Lists one or more snapshots that are currently in the Recycle Bin.

This operation returns paginated results.

Synopsis

Creating a Request

data ListSnapshotsInRecycleBin Source #

See: newListSnapshotsInRecycleBin smart constructor.

Constructors

ListSnapshotsInRecycleBin' 

Fields

  • dryRun :: Maybe Bool

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

  • maxResults :: Maybe Natural

    The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.

  • nextToken :: Maybe Text

    The token for the next page of results.

  • snapshotIds :: Maybe [Text]

    The IDs of the snapshots to list. Omit this parameter to list all of the snapshots that are in the Recycle Bin.

Instances

Instances details
ToHeaders ListSnapshotsInRecycleBin Source # 
Instance details

Defined in Amazonka.EC2.ListSnapshotsInRecycleBin

ToPath ListSnapshotsInRecycleBin Source # 
Instance details

Defined in Amazonka.EC2.ListSnapshotsInRecycleBin

ToQuery ListSnapshotsInRecycleBin Source # 
Instance details

Defined in Amazonka.EC2.ListSnapshotsInRecycleBin

AWSPager ListSnapshotsInRecycleBin Source # 
Instance details

Defined in Amazonka.EC2.ListSnapshotsInRecycleBin

AWSRequest ListSnapshotsInRecycleBin Source # 
Instance details

Defined in Amazonka.EC2.ListSnapshotsInRecycleBin

Generic ListSnapshotsInRecycleBin Source # 
Instance details

Defined in Amazonka.EC2.ListSnapshotsInRecycleBin

Associated Types

type Rep ListSnapshotsInRecycleBin :: Type -> Type #

Read ListSnapshotsInRecycleBin Source # 
Instance details

Defined in Amazonka.EC2.ListSnapshotsInRecycleBin

Show ListSnapshotsInRecycleBin Source # 
Instance details

Defined in Amazonka.EC2.ListSnapshotsInRecycleBin

NFData ListSnapshotsInRecycleBin Source # 
Instance details

Defined in Amazonka.EC2.ListSnapshotsInRecycleBin

Eq ListSnapshotsInRecycleBin Source # 
Instance details

Defined in Amazonka.EC2.ListSnapshotsInRecycleBin

Hashable ListSnapshotsInRecycleBin Source # 
Instance details

Defined in Amazonka.EC2.ListSnapshotsInRecycleBin

type AWSResponse ListSnapshotsInRecycleBin Source # 
Instance details

Defined in Amazonka.EC2.ListSnapshotsInRecycleBin

type Rep ListSnapshotsInRecycleBin Source # 
Instance details

Defined in Amazonka.EC2.ListSnapshotsInRecycleBin

type Rep ListSnapshotsInRecycleBin = D1 ('MetaData "ListSnapshotsInRecycleBin" "Amazonka.EC2.ListSnapshotsInRecycleBin" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "ListSnapshotsInRecycleBin'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: 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])))))

newListSnapshotsInRecycleBin :: ListSnapshotsInRecycleBin Source #

Create a value of ListSnapshotsInRecycleBin 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:dryRun:ListSnapshotsInRecycleBin', listSnapshotsInRecycleBin_dryRun - Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

$sel:maxResults:ListSnapshotsInRecycleBin', listSnapshotsInRecycleBin_maxResults - The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.

ListSnapshotsInRecycleBin, listSnapshotsInRecycleBin_nextToken - The token for the next page of results.

$sel:snapshotIds:ListSnapshotsInRecycleBin', listSnapshotsInRecycleBin_snapshotIds - The IDs of the snapshots to list. Omit this parameter to list all of the snapshots that are in the Recycle Bin.

Request Lenses

listSnapshotsInRecycleBin_dryRun :: Lens' ListSnapshotsInRecycleBin (Maybe Bool) Source #

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

listSnapshotsInRecycleBin_maxResults :: Lens' ListSnapshotsInRecycleBin (Maybe Natural) Source #

The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.

listSnapshotsInRecycleBin_snapshotIds :: Lens' ListSnapshotsInRecycleBin (Maybe [Text]) Source #

The IDs of the snapshots to list. Omit this parameter to list all of the snapshots that are in the Recycle Bin.

Destructuring the Response

data ListSnapshotsInRecycleBinResponse Source #

See: newListSnapshotsInRecycleBinResponse smart constructor.

Constructors

ListSnapshotsInRecycleBinResponse' 

Fields

Instances

Instances details
Generic ListSnapshotsInRecycleBinResponse Source # 
Instance details

Defined in Amazonka.EC2.ListSnapshotsInRecycleBin

Associated Types

type Rep ListSnapshotsInRecycleBinResponse :: Type -> Type #

Read ListSnapshotsInRecycleBinResponse Source # 
Instance details

Defined in Amazonka.EC2.ListSnapshotsInRecycleBin

Show ListSnapshotsInRecycleBinResponse Source # 
Instance details

Defined in Amazonka.EC2.ListSnapshotsInRecycleBin

NFData ListSnapshotsInRecycleBinResponse Source # 
Instance details

Defined in Amazonka.EC2.ListSnapshotsInRecycleBin

Eq ListSnapshotsInRecycleBinResponse Source # 
Instance details

Defined in Amazonka.EC2.ListSnapshotsInRecycleBin

type Rep ListSnapshotsInRecycleBinResponse Source # 
Instance details

Defined in Amazonka.EC2.ListSnapshotsInRecycleBin

type Rep ListSnapshotsInRecycleBinResponse = D1 ('MetaData "ListSnapshotsInRecycleBinResponse" "Amazonka.EC2.ListSnapshotsInRecycleBin" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "ListSnapshotsInRecycleBinResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "snapshots") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [SnapshotRecycleBinInfo])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListSnapshotsInRecycleBinResponse Source #

Create a value of ListSnapshotsInRecycleBinResponse 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:

ListSnapshotsInRecycleBin, listSnapshotsInRecycleBinResponse_nextToken - The token to use to retrieve the next page of results. This value is null when there are no more results to return.

$sel:snapshots:ListSnapshotsInRecycleBinResponse', listSnapshotsInRecycleBinResponse_snapshots - Information about the snapshots.

$sel:httpStatus:ListSnapshotsInRecycleBinResponse', listSnapshotsInRecycleBinResponse_httpStatus - The response's http status code.

Response Lenses

listSnapshotsInRecycleBinResponse_nextToken :: Lens' ListSnapshotsInRecycleBinResponse (Maybe Text) Source #

The token to use to retrieve the next page of results. This value is null when there are no more results to return.