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.GetAutoSnapshots

Description

Returns the available automatic snapshots for an instance or disk. For more information, see the Amazon Lightsail Developer Guide.

Synopsis

Creating a Request

data GetAutoSnapshots Source #

See: newGetAutoSnapshots smart constructor.

Constructors

GetAutoSnapshots' 

Fields

  • resourceName :: Text

    The name of the source instance or disk from which to get automatic snapshot information.

Instances

Instances details
ToJSON GetAutoSnapshots Source # 
Instance details

Defined in Amazonka.Lightsail.GetAutoSnapshots

ToHeaders GetAutoSnapshots Source # 
Instance details

Defined in Amazonka.Lightsail.GetAutoSnapshots

ToPath GetAutoSnapshots Source # 
Instance details

Defined in Amazonka.Lightsail.GetAutoSnapshots

ToQuery GetAutoSnapshots Source # 
Instance details

Defined in Amazonka.Lightsail.GetAutoSnapshots

AWSRequest GetAutoSnapshots Source # 
Instance details

Defined in Amazonka.Lightsail.GetAutoSnapshots

Associated Types

type AWSResponse GetAutoSnapshots #

Generic GetAutoSnapshots Source # 
Instance details

Defined in Amazonka.Lightsail.GetAutoSnapshots

Associated Types

type Rep GetAutoSnapshots :: Type -> Type #

Read GetAutoSnapshots Source # 
Instance details

Defined in Amazonka.Lightsail.GetAutoSnapshots

Show GetAutoSnapshots Source # 
Instance details

Defined in Amazonka.Lightsail.GetAutoSnapshots

NFData GetAutoSnapshots Source # 
Instance details

Defined in Amazonka.Lightsail.GetAutoSnapshots

Methods

rnf :: GetAutoSnapshots -> () #

Eq GetAutoSnapshots Source # 
Instance details

Defined in Amazonka.Lightsail.GetAutoSnapshots

Hashable GetAutoSnapshots Source # 
Instance details

Defined in Amazonka.Lightsail.GetAutoSnapshots

type AWSResponse GetAutoSnapshots Source # 
Instance details

Defined in Amazonka.Lightsail.GetAutoSnapshots

type Rep GetAutoSnapshots Source # 
Instance details

Defined in Amazonka.Lightsail.GetAutoSnapshots

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

newGetAutoSnapshots Source #

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

GetAutoSnapshots, getAutoSnapshots_resourceName - The name of the source instance or disk from which to get automatic snapshot information.

Request Lenses

getAutoSnapshots_resourceName :: Lens' GetAutoSnapshots Text Source #

The name of the source instance or disk from which to get automatic snapshot information.

Destructuring the Response

data GetAutoSnapshotsResponse Source #

See: newGetAutoSnapshotsResponse smart constructor.

Constructors

GetAutoSnapshotsResponse' 

Fields

Instances

Instances details
Generic GetAutoSnapshotsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetAutoSnapshots

Associated Types

type Rep GetAutoSnapshotsResponse :: Type -> Type #

Read GetAutoSnapshotsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetAutoSnapshots

Show GetAutoSnapshotsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetAutoSnapshots

NFData GetAutoSnapshotsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetAutoSnapshots

Eq GetAutoSnapshotsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetAutoSnapshots

type Rep GetAutoSnapshotsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetAutoSnapshots

type Rep GetAutoSnapshotsResponse = D1 ('MetaData "GetAutoSnapshotsResponse" "Amazonka.Lightsail.GetAutoSnapshots" "amazonka-lightsail-2.0-77hvsZhtZFxFduYae8QaN0" 'False) (C1 ('MetaCons "GetAutoSnapshotsResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "autoSnapshots") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [AutoSnapshotDetails])) :*: S1 ('MetaSel ('Just "resourceName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "resourceType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ResourceType)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newGetAutoSnapshotsResponse Source #

Create a value of GetAutoSnapshotsResponse 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:autoSnapshots:GetAutoSnapshotsResponse', getAutoSnapshotsResponse_autoSnapshots - An array of objects that describe the automatic snapshots that are available for the specified source instance or disk.

GetAutoSnapshots, getAutoSnapshotsResponse_resourceName - The name of the source instance or disk for the automatic snapshots.

GetAutoSnapshotsResponse, getAutoSnapshotsResponse_resourceType - The resource type (e.g., Instance or Disk).

$sel:httpStatus:GetAutoSnapshotsResponse', getAutoSnapshotsResponse_httpStatus - The response's http status code.

Response Lenses

getAutoSnapshotsResponse_autoSnapshots :: Lens' GetAutoSnapshotsResponse (Maybe [AutoSnapshotDetails]) Source #

An array of objects that describe the automatic snapshots that are available for the specified source instance or disk.

getAutoSnapshotsResponse_resourceName :: Lens' GetAutoSnapshotsResponse (Maybe Text) Source #

The name of the source instance or disk for the automatic snapshots.