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

Description

Detaches a stopped block storage disk from a Lightsail instance. Make sure to unmount any file systems on the device within your operating system before stopping the instance and detaching the disk.

The detach 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 DetachDisk Source #

See: newDetachDisk smart constructor.

Constructors

DetachDisk' 

Fields

  • diskName :: Text

    The unique name of the disk you want to detach from your instance (e.g., my-disk).

Instances

Instances details
Eq DetachDisk Source # 
Instance details

Defined in Amazonka.Lightsail.DetachDisk

Read DetachDisk Source # 
Instance details

Defined in Amazonka.Lightsail.DetachDisk

Show DetachDisk Source # 
Instance details

Defined in Amazonka.Lightsail.DetachDisk

Generic DetachDisk Source # 
Instance details

Defined in Amazonka.Lightsail.DetachDisk

Associated Types

type Rep DetachDisk :: Type -> Type #

NFData DetachDisk Source # 
Instance details

Defined in Amazonka.Lightsail.DetachDisk

Methods

rnf :: DetachDisk -> () #

Hashable DetachDisk Source # 
Instance details

Defined in Amazonka.Lightsail.DetachDisk

ToJSON DetachDisk Source # 
Instance details

Defined in Amazonka.Lightsail.DetachDisk

AWSRequest DetachDisk Source # 
Instance details

Defined in Amazonka.Lightsail.DetachDisk

Associated Types

type AWSResponse DetachDisk #

ToHeaders DetachDisk Source # 
Instance details

Defined in Amazonka.Lightsail.DetachDisk

Methods

toHeaders :: DetachDisk -> [Header] #

ToPath DetachDisk Source # 
Instance details

Defined in Amazonka.Lightsail.DetachDisk

ToQuery DetachDisk Source # 
Instance details

Defined in Amazonka.Lightsail.DetachDisk

type Rep DetachDisk Source # 
Instance details

Defined in Amazonka.Lightsail.DetachDisk

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

Defined in Amazonka.Lightsail.DetachDisk

newDetachDisk Source #

Create a value of DetachDisk 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:diskName:DetachDisk', detachDisk_diskName - The unique name of the disk you want to detach from your instance (e.g., my-disk).

Request Lenses

detachDisk_diskName :: Lens' DetachDisk Text Source #

The unique name of the disk you want to detach from your instance (e.g., my-disk).

Destructuring the Response

data DetachDiskResponse Source #

See: newDetachDiskResponse smart constructor.

Constructors

DetachDiskResponse' 

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

Defined in Amazonka.Lightsail.DetachDisk

Read DetachDiskResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DetachDisk

Show DetachDiskResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DetachDisk

Generic DetachDiskResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DetachDisk

Associated Types

type Rep DetachDiskResponse :: Type -> Type #

NFData DetachDiskResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DetachDisk

Methods

rnf :: DetachDiskResponse -> () #

type Rep DetachDiskResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DetachDisk

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

newDetachDiskResponse Source #

Create a value of DetachDiskResponse 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:DetachDiskResponse', detachDiskResponse_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:DetachDiskResponse', detachDiskResponse_httpStatus - The response's http status code.

Response Lenses

detachDiskResponse_operations :: Lens' DetachDiskResponse (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.