libZSservicesZSamazonka-lightsailZSamazonka-lightsail
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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
Eq DeleteAutoSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteAutoSnapshot

Read DeleteAutoSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteAutoSnapshot

Show DeleteAutoSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteAutoSnapshot

Generic DeleteAutoSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteAutoSnapshot

Associated Types

type Rep DeleteAutoSnapshot :: Type -> Type #

NFData DeleteAutoSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteAutoSnapshot

Methods

rnf :: DeleteAutoSnapshot -> () #

Hashable DeleteAutoSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteAutoSnapshot

ToJSON DeleteAutoSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteAutoSnapshot

AWSRequest DeleteAutoSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteAutoSnapshot

Associated Types

type AWSResponse 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

type Rep DeleteAutoSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteAutoSnapshot

type Rep DeleteAutoSnapshot = D1 ('MetaData "DeleteAutoSnapshot" "Amazonka.Lightsail.DeleteAutoSnapshot" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "DeleteAutoSnapshot'" 'PrefixI 'True) (S1 ('MetaSel ('Just "resourceName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "date") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse DeleteAutoSnapshot Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteAutoSnapshot

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:

$sel:resourceName:DeleteAutoSnapshot', deleteAutoSnapshot_resourceName - The name of the source instance or disk from which to delete the automatic snapshot.

$sel:date: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
Eq DeleteAutoSnapshotResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteAutoSnapshot

Read DeleteAutoSnapshotResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteAutoSnapshot

Show DeleteAutoSnapshotResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteAutoSnapshot

Generic DeleteAutoSnapshotResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteAutoSnapshot

Associated Types

type Rep DeleteAutoSnapshotResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" '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.