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

Description

Deletes an automatic snapshot of an instance or disk. For more information, see the Amazon Lightsail Developer Guide.

Synopsis

Creating a Request

data DeleteAutoSnapshot Source #

See: newDeleteAutoSnapshot smart constructor.

Constructors

DeleteAutoSnapshot' 

Fields

  • resourceName :: Text

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

  • date :: Text

    The date of the automatic snapshot to delete in YYYY-MM-DD format. Use the get auto snapshots operation to get the available automatic snapshots for a resource.

Instances

Instances details
ToJSON DeleteAutoSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteAutoSnapshot

ToHeaders DeleteAutoSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteAutoSnapshot

ToPath DeleteAutoSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteAutoSnapshot

ToQuery DeleteAutoSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteAutoSnapshot

AWSRequest DeleteAutoSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteAutoSnapshot

Associated Types

type AWSResponse DeleteAutoSnapshot #

Generic DeleteAutoSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteAutoSnapshot

Associated Types

type Rep DeleteAutoSnapshot :: Type -> Type #

Read DeleteAutoSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteAutoSnapshot

Show DeleteAutoSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteAutoSnapshot

NFData DeleteAutoSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteAutoSnapshot

Methods

rnf :: DeleteAutoSnapshot -> () #

Eq DeleteAutoSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteAutoSnapshot

Hashable DeleteAutoSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteAutoSnapshot

type AWSResponse DeleteAutoSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteAutoSnapshot

type Rep DeleteAutoSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteAutoSnapshot

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

newDeleteAutoSnapshot Source #

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

DeleteAutoSnapshot, deleteAutoSnapshot_resourceName - The name of the source instance or disk from which to delete the automatic snapshot.

DeleteAutoSnapshot, deleteAutoSnapshot_date - The date of the automatic snapshot to delete in YYYY-MM-DD format. Use the get auto snapshots operation to get the available automatic snapshots for a resource.

Request Lenses

deleteAutoSnapshot_resourceName :: Lens' DeleteAutoSnapshot Text Source #

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

deleteAutoSnapshot_date :: Lens' DeleteAutoSnapshot Text Source #

The date of the automatic snapshot to delete in YYYY-MM-DD format. Use the get auto snapshots operation to get the available automatic snapshots for a resource.

Destructuring the Response

data DeleteAutoSnapshotResponse Source #

See: newDeleteAutoSnapshotResponse smart constructor.

Constructors

DeleteAutoSnapshotResponse' 

Fields

  • operations :: Maybe [Operation]

    An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic DeleteAutoSnapshotResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteAutoSnapshot

Associated Types

type Rep DeleteAutoSnapshotResponse :: Type -> Type #

Read DeleteAutoSnapshotResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteAutoSnapshot

Show DeleteAutoSnapshotResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteAutoSnapshot

NFData DeleteAutoSnapshotResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteAutoSnapshot

Eq DeleteAutoSnapshotResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteAutoSnapshot

type Rep DeleteAutoSnapshotResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteAutoSnapshot

type Rep DeleteAutoSnapshotResponse = D1 ('MetaData "DeleteAutoSnapshotResponse" "Amazonka.Lightsail.DeleteAutoSnapshot" "amazonka-lightsail-2.0-77hvsZhtZFxFduYae8QaN0" 'False) (C1 ('MetaCons "DeleteAutoSnapshotResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "operations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Operation])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newDeleteAutoSnapshotResponse Source #

Create a value of DeleteAutoSnapshotResponse 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:operations:DeleteAutoSnapshotResponse', deleteAutoSnapshotResponse_operations - An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

$sel:httpStatus:DeleteAutoSnapshotResponse', deleteAutoSnapshotResponse_httpStatus - The response's http status code.

Response Lenses

deleteAutoSnapshotResponse_operations :: Lens' DeleteAutoSnapshotResponse (Maybe [Operation]) Source #

An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.