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

Description

Returns information about a specific block storage disk.

Synopsis

Creating a Request

data GetDisk Source #

See: newGetDisk smart constructor.

Constructors

GetDisk' 

Fields

Instances

Instances details
Eq GetDisk Source # 
Instance details

Defined in Amazonka.Lightsail.GetDisk

Methods

(==) :: GetDisk -> GetDisk -> Bool #

(/=) :: GetDisk -> GetDisk -> Bool #

Read GetDisk Source # 
Instance details

Defined in Amazonka.Lightsail.GetDisk

Show GetDisk Source # 
Instance details

Defined in Amazonka.Lightsail.GetDisk

Generic GetDisk Source # 
Instance details

Defined in Amazonka.Lightsail.GetDisk

Associated Types

type Rep GetDisk :: Type -> Type #

Methods

from :: GetDisk -> Rep GetDisk x #

to :: Rep GetDisk x -> GetDisk #

NFData GetDisk Source # 
Instance details

Defined in Amazonka.Lightsail.GetDisk

Methods

rnf :: GetDisk -> () #

Hashable GetDisk Source # 
Instance details

Defined in Amazonka.Lightsail.GetDisk

Methods

hashWithSalt :: Int -> GetDisk -> Int #

hash :: GetDisk -> Int #

ToJSON GetDisk Source # 
Instance details

Defined in Amazonka.Lightsail.GetDisk

AWSRequest GetDisk Source # 
Instance details

Defined in Amazonka.Lightsail.GetDisk

Associated Types

type AWSResponse GetDisk #

ToHeaders GetDisk Source # 
Instance details

Defined in Amazonka.Lightsail.GetDisk

Methods

toHeaders :: GetDisk -> [Header] #

ToPath GetDisk Source # 
Instance details

Defined in Amazonka.Lightsail.GetDisk

Methods

toPath :: GetDisk -> ByteString #

ToQuery GetDisk Source # 
Instance details

Defined in Amazonka.Lightsail.GetDisk

type Rep GetDisk Source # 
Instance details

Defined in Amazonka.Lightsail.GetDisk

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

Defined in Amazonka.Lightsail.GetDisk

newGetDisk Source #

Create a value of GetDisk 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:GetDisk', getDisk_diskName - The name of the disk (e.g., my-disk).

Request Lenses

getDisk_diskName :: Lens' GetDisk Text Source #

The name of the disk (e.g., my-disk).

Destructuring the Response

data GetDiskResponse Source #

See: newGetDiskResponse smart constructor.

Constructors

GetDiskResponse' 

Fields

Instances

Instances details
Eq GetDiskResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetDisk

Read GetDiskResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetDisk

Show GetDiskResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetDisk

Generic GetDiskResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetDisk

Associated Types

type Rep GetDiskResponse :: Type -> Type #

NFData GetDiskResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetDisk

Methods

rnf :: GetDiskResponse -> () #

type Rep GetDiskResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetDisk

type Rep GetDiskResponse = D1 ('MetaData "GetDiskResponse" "Amazonka.Lightsail.GetDisk" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "GetDiskResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "disk") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Disk)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newGetDiskResponse Source #

Create a value of GetDiskResponse 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:disk:GetDiskResponse', getDiskResponse_disk - An object containing information about the disk.

$sel:httpStatus:GetDiskResponse', getDiskResponse_httpStatus - The response's http status code.

Response Lenses

getDiskResponse_disk :: Lens' GetDiskResponse (Maybe Disk) Source #

An object containing information about the disk.

getDiskResponse_httpStatus :: Lens' GetDiskResponse Int Source #

The response's http status code.