amazonka-lightsail-1.6.1: 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 # 
Instance details

Defined in Network.AWS.Lightsail.AttachDisk

Data AttachDisk Source # 
Instance details

Defined in Network.AWS.Lightsail.AttachDisk

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

Defined in Network.AWS.Lightsail.AttachDisk

Show AttachDisk Source # 
Instance details

Defined in Network.AWS.Lightsail.AttachDisk

Generic AttachDisk Source # 
Instance details

Defined in Network.AWS.Lightsail.AttachDisk

Associated Types

type Rep AttachDisk :: Type -> Type #

Hashable AttachDisk Source # 
Instance details

Defined in Network.AWS.Lightsail.AttachDisk

ToJSON AttachDisk Source # 
Instance details

Defined in Network.AWS.Lightsail.AttachDisk

AWSRequest AttachDisk Source # 
Instance details

Defined in Network.AWS.Lightsail.AttachDisk

Associated Types

type Rs AttachDisk :: Type #

ToHeaders AttachDisk Source # 
Instance details

Defined in Network.AWS.Lightsail.AttachDisk

Methods

toHeaders :: AttachDisk -> [Header] #

ToPath AttachDisk Source # 
Instance details

Defined in Network.AWS.Lightsail.AttachDisk

ToQuery AttachDisk Source # 
Instance details

Defined in Network.AWS.Lightsail.AttachDisk

NFData AttachDisk Source # 
Instance details

Defined in Network.AWS.Lightsail.AttachDisk

Methods

rnf :: AttachDisk -> () #

type Rep AttachDisk Source # 
Instance details

Defined in Network.AWS.Lightsail.AttachDisk

type Rep AttachDisk = D1 (MetaData "AttachDisk" "Network.AWS.Lightsail.AttachDisk" "amazonka-lightsail-1.6.1-1vuZhtZgkqE3h8gtLuAIA9" False) (C1 (MetaCons "AttachDisk'" PrefixI True) (S1 (MetaSel (Just "_adDiskName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_adInstanceName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_adDiskPath") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs AttachDisk Source # 
Instance details

Defined in Network.AWS.Lightsail.AttachDisk

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

Defined in Network.AWS.Lightsail.AttachDisk

Data AttachDiskResponse Source # 
Instance details

Defined in Network.AWS.Lightsail.AttachDisk

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

Defined in Network.AWS.Lightsail.AttachDisk

Show AttachDiskResponse Source # 
Instance details

Defined in Network.AWS.Lightsail.AttachDisk

Generic AttachDiskResponse Source # 
Instance details

Defined in Network.AWS.Lightsail.AttachDisk

Associated Types

type Rep AttachDiskResponse :: Type -> Type #

NFData AttachDiskResponse Source # 
Instance details

Defined in Network.AWS.Lightsail.AttachDisk

Methods

rnf :: AttachDiskResponse -> () #

type Rep AttachDiskResponse Source # 
Instance details

Defined in Network.AWS.Lightsail.AttachDisk

type Rep AttachDiskResponse = D1 (MetaData "AttachDiskResponse" "Network.AWS.Lightsail.AttachDisk" "amazonka-lightsail-1.6.1-1vuZhtZgkqE3h8gtLuAIA9" False) (C1 (MetaCons "AttachDiskResponse'" PrefixI True) (S1 (MetaSel (Just "_adrsOperations") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Operation])) :*: S1 (MetaSel (Just "_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.