amazonka-lightsail-2.0: Amazon Lightsail 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.Lightsail.GetDiskSnapshots

Description

Returns information about all block storage disk snapshots in your AWS account and region.

This operation returns paginated results.

Synopsis

Creating a Request

data GetDiskSnapshots Source #

See: newGetDiskSnapshots smart constructor.

Constructors

GetDiskSnapshots' 

Fields

  • pageToken :: Maybe Text

    The token to advance to the next page of results from your request.

    To get a page token, perform an initial GetDiskSnapshots request. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.

Instances

Instances details
ToJSON GetDiskSnapshots Source # 
Instance details

Defined in Amazonka.Lightsail.GetDiskSnapshots

ToHeaders GetDiskSnapshots Source # 
Instance details

Defined in Amazonka.Lightsail.GetDiskSnapshots

ToPath GetDiskSnapshots Source # 
Instance details

Defined in Amazonka.Lightsail.GetDiskSnapshots

ToQuery GetDiskSnapshots Source # 
Instance details

Defined in Amazonka.Lightsail.GetDiskSnapshots

AWSPager GetDiskSnapshots Source # 
Instance details

Defined in Amazonka.Lightsail.GetDiskSnapshots

AWSRequest GetDiskSnapshots Source # 
Instance details

Defined in Amazonka.Lightsail.GetDiskSnapshots

Associated Types

type AWSResponse GetDiskSnapshots #

Generic GetDiskSnapshots Source # 
Instance details

Defined in Amazonka.Lightsail.GetDiskSnapshots

Associated Types

type Rep GetDiskSnapshots :: Type -> Type #

Read GetDiskSnapshots Source # 
Instance details

Defined in Amazonka.Lightsail.GetDiskSnapshots

Show GetDiskSnapshots Source # 
Instance details

Defined in Amazonka.Lightsail.GetDiskSnapshots

NFData GetDiskSnapshots Source # 
Instance details

Defined in Amazonka.Lightsail.GetDiskSnapshots

Methods

rnf :: GetDiskSnapshots -> () #

Eq GetDiskSnapshots Source # 
Instance details

Defined in Amazonka.Lightsail.GetDiskSnapshots

Hashable GetDiskSnapshots Source # 
Instance details

Defined in Amazonka.Lightsail.GetDiskSnapshots

type AWSResponse GetDiskSnapshots Source # 
Instance details

Defined in Amazonka.Lightsail.GetDiskSnapshots

type Rep GetDiskSnapshots Source # 
Instance details

Defined in Amazonka.Lightsail.GetDiskSnapshots

type Rep GetDiskSnapshots = D1 ('MetaData "GetDiskSnapshots" "Amazonka.Lightsail.GetDiskSnapshots" "amazonka-lightsail-2.0-77hvsZhtZFxFduYae8QaN0" 'False) (C1 ('MetaCons "GetDiskSnapshots'" 'PrefixI 'True) (S1 ('MetaSel ('Just "pageToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

newGetDiskSnapshots :: GetDiskSnapshots Source #

Create a value of GetDiskSnapshots 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:pageToken:GetDiskSnapshots', getDiskSnapshots_pageToken - The token to advance to the next page of results from your request.

To get a page token, perform an initial GetDiskSnapshots request. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.

Request Lenses

getDiskSnapshots_pageToken :: Lens' GetDiskSnapshots (Maybe Text) Source #

The token to advance to the next page of results from your request.

To get a page token, perform an initial GetDiskSnapshots request. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.

Destructuring the Response

data GetDiskSnapshotsResponse Source #

See: newGetDiskSnapshotsResponse smart constructor.

Constructors

GetDiskSnapshotsResponse' 

Fields

  • diskSnapshots :: Maybe [DiskSnapshot]

    An array of objects containing information about all block storage disk snapshots.

  • nextPageToken :: Maybe Text

    The token to advance to the next page of results from your request.

    A next page token is not returned if there are no more results to display.

    To get the next page of results, perform another GetDiskSnapshots request and specify the next page token using the pageToken parameter.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic GetDiskSnapshotsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetDiskSnapshots

Associated Types

type Rep GetDiskSnapshotsResponse :: Type -> Type #

Read GetDiskSnapshotsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetDiskSnapshots

Show GetDiskSnapshotsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetDiskSnapshots

NFData GetDiskSnapshotsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetDiskSnapshots

Eq GetDiskSnapshotsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetDiskSnapshots

type Rep GetDiskSnapshotsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetDiskSnapshots

type Rep GetDiskSnapshotsResponse = D1 ('MetaData "GetDiskSnapshotsResponse" "Amazonka.Lightsail.GetDiskSnapshots" "amazonka-lightsail-2.0-77hvsZhtZFxFduYae8QaN0" 'False) (C1 ('MetaCons "GetDiskSnapshotsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "diskSnapshots") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [DiskSnapshot])) :*: (S1 ('MetaSel ('Just "nextPageToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newGetDiskSnapshotsResponse Source #

Create a value of GetDiskSnapshotsResponse 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:diskSnapshots:GetDiskSnapshotsResponse', getDiskSnapshotsResponse_diskSnapshots - An array of objects containing information about all block storage disk snapshots.

$sel:nextPageToken:GetDiskSnapshotsResponse', getDiskSnapshotsResponse_nextPageToken - The token to advance to the next page of results from your request.

A next page token is not returned if there are no more results to display.

To get the next page of results, perform another GetDiskSnapshots request and specify the next page token using the pageToken parameter.

$sel:httpStatus:GetDiskSnapshotsResponse', getDiskSnapshotsResponse_httpStatus - The response's http status code.

Response Lenses

getDiskSnapshotsResponse_diskSnapshots :: Lens' GetDiskSnapshotsResponse (Maybe [DiskSnapshot]) Source #

An array of objects containing information about all block storage disk snapshots.

getDiskSnapshotsResponse_nextPageToken :: Lens' GetDiskSnapshotsResponse (Maybe Text) Source #

The token to advance to the next page of results from your request.

A next page token is not returned if there are no more results to display.

To get the next page of results, perform another GetDiskSnapshots request and specify the next page token using the pageToken parameter.