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

Description

Deletes the specified block storage disk. The disk must be in the available state (not attached to a Lightsail instance).

The disk may remain in the deleting state for several minutes.

The delete disk operation supports tag-based access control via resource tags applied to the resource identified by disk name. For more information, see the Amazon Lightsail Developer Guide.

Synopsis

Creating a Request

data DeleteDisk Source #

See: newDeleteDisk smart constructor.

Constructors

DeleteDisk' 

Fields

Instances

Instances details
Eq DeleteDisk Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteDisk

Read DeleteDisk Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteDisk

Show DeleteDisk Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteDisk

Generic DeleteDisk Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteDisk

Associated Types

type Rep DeleteDisk :: Type -> Type #

NFData DeleteDisk Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteDisk

Methods

rnf :: DeleteDisk -> () #

Hashable DeleteDisk Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteDisk

ToJSON DeleteDisk Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteDisk

AWSRequest DeleteDisk Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteDisk

Associated Types

type AWSResponse DeleteDisk #

ToHeaders DeleteDisk Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteDisk

Methods

toHeaders :: DeleteDisk -> [Header] #

ToPath DeleteDisk Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteDisk

ToQuery DeleteDisk Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteDisk

type Rep DeleteDisk Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteDisk

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

Defined in Amazonka.Lightsail.DeleteDisk

newDeleteDisk Source #

Create a value of DeleteDisk 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:forceDeleteAddOns:DeleteDisk', deleteDisk_forceDeleteAddOns - A Boolean value to indicate whether to delete the enabled add-ons for the disk.

$sel:diskName:DeleteDisk', deleteDisk_diskName - The unique name of the disk you want to delete (e.g., my-disk).

Request Lenses

deleteDisk_forceDeleteAddOns :: Lens' DeleteDisk (Maybe Bool) Source #

A Boolean value to indicate whether to delete the enabled add-ons for the disk.

deleteDisk_diskName :: Lens' DeleteDisk Text Source #

The unique name of the disk you want to delete (e.g., my-disk).

Destructuring the Response

data DeleteDiskResponse Source #

See: newDeleteDiskResponse smart constructor.

Constructors

DeleteDiskResponse' 

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

Defined in Amazonka.Lightsail.DeleteDisk

Read DeleteDiskResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteDisk

Show DeleteDiskResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteDisk

Generic DeleteDiskResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteDisk

Associated Types

type Rep DeleteDiskResponse :: Type -> Type #

NFData DeleteDiskResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteDisk

Methods

rnf :: DeleteDiskResponse -> () #

type Rep DeleteDiskResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteDisk

type Rep DeleteDiskResponse = D1 ('MetaData "DeleteDiskResponse" "Amazonka.Lightsail.DeleteDisk" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "DeleteDiskResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "operations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Operation])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newDeleteDiskResponse Source #

Create a value of DeleteDiskResponse 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:DeleteDiskResponse', deleteDiskResponse_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:DeleteDiskResponse', deleteDiskResponse_httpStatus - The response's http status code.

Response Lenses

deleteDiskResponse_operations :: Lens' DeleteDiskResponse (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.