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

Contents

Description

Attaches a block storage disk to a running or stopped Lightsail instance and exposes it to the instance with the specified disk name.

Synopsis

Creating a Request

attachDisk Source #

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

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

  • adDiskName - The unique Lightsail disk name (e.g., my-disk ).
  • adInstanceName - The name of the Lightsail instance where you want to utilize the storage disk.
  • adDiskPath - The disk path to expose to the instance (e.g., devxvdf ).

data AttachDisk Source #

See: attachDisk smart constructor.

Instances

Eq AttachDisk Source # 
Data AttachDisk Source # 

Methods

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

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

toConstr :: AttachDisk -> Constr #

dataTypeOf :: AttachDisk -> DataType #

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

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

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

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

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

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

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

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

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

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

Read AttachDisk Source # 
Show AttachDisk Source # 
Generic AttachDisk Source # 

Associated Types

type Rep AttachDisk :: * -> * #

Hashable AttachDisk Source # 
ToJSON AttachDisk Source # 
NFData AttachDisk Source # 

Methods

rnf :: AttachDisk -> () #

AWSRequest AttachDisk Source # 
ToHeaders AttachDisk Source # 

Methods

toHeaders :: AttachDisk -> [Header] #

ToPath AttachDisk Source # 
ToQuery AttachDisk Source # 
type Rep AttachDisk Source # 
type Rep AttachDisk = D1 * (MetaData "AttachDisk" "Network.AWS.Lightsail.AttachDisk" "amazonka-lightsail-1.6.0-ARMP2uYvcAnENqDU8iFIes" False) (C1 * (MetaCons "AttachDisk'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_adDiskName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) ((:*:) * (S1 * (MetaSel (Just Symbol "_adInstanceName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_adDiskPath") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)))))
type Rs AttachDisk Source # 

Request Lenses

adDiskName :: Lens' AttachDisk Text Source #

The unique Lightsail disk name (e.g., my-disk ).

adInstanceName :: Lens' AttachDisk Text Source #

The name of the Lightsail instance where you want to utilize the storage disk.

adDiskPath :: Lens' AttachDisk Text Source #

The disk path to expose to the instance (e.g., devxvdf ).

Destructuring the Response

attachDiskResponse Source #

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

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

data AttachDiskResponse Source #

See: attachDiskResponse smart constructor.

Instances

Eq AttachDiskResponse Source # 
Data AttachDiskResponse Source # 

Methods

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

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

toConstr :: AttachDiskResponse -> Constr #

dataTypeOf :: AttachDiskResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read AttachDiskResponse Source # 
Show AttachDiskResponse Source # 
Generic AttachDiskResponse Source # 
NFData AttachDiskResponse Source # 

Methods

rnf :: AttachDiskResponse -> () #

type Rep AttachDiskResponse Source # 
type Rep AttachDiskResponse = D1 * (MetaData "AttachDiskResponse" "Network.AWS.Lightsail.AttachDisk" "amazonka-lightsail-1.6.0-ARMP2uYvcAnENqDU8iFIes" False) (C1 * (MetaCons "AttachDiskResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_adrsOperations") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [Operation]))) (S1 * (MetaSel (Just Symbol "_adrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses

adrsOperations :: Lens' AttachDiskResponse [Operation] Source #

An object describing the API operations.

adrsResponseStatus :: Lens' AttachDiskResponse Int Source #

  • - | The response status code.