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

Contents

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.

Synopsis

Creating a Request

detachDisk Source #

Arguments

:: Text

ddDiskName

-> DetachDisk 

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

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

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

data DetachDisk Source #

See: detachDisk smart constructor.

Instances

Eq DetachDisk Source # 
Data DetachDisk Source # 

Methods

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

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

toConstr :: DetachDisk -> Constr #

dataTypeOf :: DetachDisk -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DetachDisk Source # 
Show DetachDisk Source # 
Generic DetachDisk Source # 

Associated Types

type Rep DetachDisk :: * -> * #

Hashable DetachDisk Source # 
ToJSON DetachDisk Source # 
NFData DetachDisk Source # 

Methods

rnf :: DetachDisk -> () #

AWSRequest DetachDisk Source # 
ToHeaders DetachDisk Source # 

Methods

toHeaders :: DetachDisk -> [Header] #

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

Request Lenses

ddDiskName :: Lens' DetachDisk Text Source #

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

Destructuring the Response

detachDiskResponse Source #

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

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

data DetachDiskResponse Source #

See: detachDiskResponse smart constructor.

Instances

Eq DetachDiskResponse Source # 
Data DetachDiskResponse Source # 

Methods

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

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

toConstr :: DetachDiskResponse -> Constr #

dataTypeOf :: DetachDiskResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DetachDiskResponse Source # 
Show DetachDiskResponse Source # 
Generic DetachDiskResponse Source # 
NFData DetachDiskResponse Source # 

Methods

rnf :: DetachDiskResponse -> () #

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

Response Lenses

ddrsOperations :: Lens' DetachDiskResponse [Operation] Source #

An object describing the API operations.

ddrsResponseStatus :: Lens' DetachDiskResponse Int Source #

  • - | The response status code.