amazonka-lightsail-1.6.0: Amazon Lightsail SDK.

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

Network.AWS.Lightsail.GetDisk

Contents

Description

Returns information about a specific block storage disk.

Synopsis

Creating a Request

getDisk Source #

Arguments

:: Text

gdDiskName

-> GetDisk 

Creates a value of GetDisk with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

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

data GetDisk Source #

See: getDisk smart constructor.

Instances

Eq GetDisk Source # 

Methods

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

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

Data GetDisk Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetDisk -> c GetDisk #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetDisk #

toConstr :: GetDisk -> Constr #

dataTypeOf :: GetDisk -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c GetDisk) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetDisk) #

gmapT :: (forall b. Data b => b -> b) -> GetDisk -> GetDisk #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetDisk -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetDisk -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetDisk -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetDisk -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetDisk -> m GetDisk #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetDisk -> m GetDisk #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetDisk -> m GetDisk #

Read GetDisk Source # 
Show GetDisk Source # 
Generic GetDisk Source # 

Associated Types

type Rep GetDisk :: * -> * #

Methods

from :: GetDisk -> Rep GetDisk x #

to :: Rep GetDisk x -> GetDisk #

Hashable GetDisk Source # 

Methods

hashWithSalt :: Int -> GetDisk -> Int #

hash :: GetDisk -> Int #

ToJSON GetDisk Source # 
NFData GetDisk Source # 

Methods

rnf :: GetDisk -> () #

AWSRequest GetDisk Source # 

Associated Types

type Rs GetDisk :: * #

ToHeaders GetDisk Source # 

Methods

toHeaders :: GetDisk -> [Header] #

ToPath GetDisk Source # 

Methods

toPath :: GetDisk -> ByteString #

ToQuery GetDisk Source # 
type Rep GetDisk Source # 
type Rep GetDisk = D1 * (MetaData "GetDisk" "Network.AWS.Lightsail.GetDisk" "amazonka-lightsail-1.6.0-ARMP2uYvcAnENqDU8iFIes" True) (C1 * (MetaCons "GetDisk'" PrefixI True) (S1 * (MetaSel (Just Symbol "_gdDiskName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Text)))
type Rs GetDisk Source # 

Request Lenses

gdDiskName :: Lens' GetDisk Text Source #

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

Destructuring the Response

getDiskResponse Source #

Creates a value of GetDiskResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data GetDiskResponse Source #

See: getDiskResponse smart constructor.

Instances

Eq GetDiskResponse Source # 
Data GetDiskResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetDiskResponse -> c GetDiskResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetDiskResponse #

toConstr :: GetDiskResponse -> Constr #

dataTypeOf :: GetDiskResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c GetDiskResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetDiskResponse) #

gmapT :: (forall b. Data b => b -> b) -> GetDiskResponse -> GetDiskResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetDiskResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetDiskResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetDiskResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetDiskResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetDiskResponse -> m GetDiskResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetDiskResponse -> m GetDiskResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetDiskResponse -> m GetDiskResponse #

Read GetDiskResponse Source # 
Show GetDiskResponse Source # 
Generic GetDiskResponse Source # 
NFData GetDiskResponse Source # 

Methods

rnf :: GetDiskResponse -> () #

type Rep GetDiskResponse Source # 
type Rep GetDiskResponse = D1 * (MetaData "GetDiskResponse" "Network.AWS.Lightsail.GetDisk" "amazonka-lightsail-1.6.0-ARMP2uYvcAnENqDU8iFIes" False) (C1 * (MetaCons "GetDiskResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_getrsDisk") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Disk))) (S1 * (MetaSel (Just Symbol "_getrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses

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

An object containing information about the disk.

getrsResponseStatus :: Lens' GetDiskResponse Int Source #

  • - | The response status code.