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

Defined in Network.AWS.Lightsail.DetachDisk

Data DetachDisk Source # 
Instance details

Defined in Network.AWS.Lightsail.DetachDisk

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

Defined in Network.AWS.Lightsail.DetachDisk

Show DetachDisk Source # 
Instance details

Defined in Network.AWS.Lightsail.DetachDisk

Generic DetachDisk Source # 
Instance details

Defined in Network.AWS.Lightsail.DetachDisk

Associated Types

type Rep DetachDisk :: Type -> Type #

Hashable DetachDisk Source # 
Instance details

Defined in Network.AWS.Lightsail.DetachDisk

ToJSON DetachDisk Source # 
Instance details

Defined in Network.AWS.Lightsail.DetachDisk

AWSRequest DetachDisk Source # 
Instance details

Defined in Network.AWS.Lightsail.DetachDisk

Associated Types

type Rs DetachDisk :: Type #

ToHeaders DetachDisk Source # 
Instance details

Defined in Network.AWS.Lightsail.DetachDisk

Methods

toHeaders :: DetachDisk -> [Header] #

ToPath DetachDisk Source # 
Instance details

Defined in Network.AWS.Lightsail.DetachDisk

ToQuery DetachDisk Source # 
Instance details

Defined in Network.AWS.Lightsail.DetachDisk

NFData DetachDisk Source # 
Instance details

Defined in Network.AWS.Lightsail.DetachDisk

Methods

rnf :: DetachDisk -> () #

type Rep DetachDisk Source # 
Instance details

Defined in Network.AWS.Lightsail.DetachDisk

type Rep DetachDisk = D1 (MetaData "DetachDisk" "Network.AWS.Lightsail.DetachDisk" "amazonka-lightsail-1.6.1-1vuZhtZgkqE3h8gtLuAIA9" True) (C1 (MetaCons "DetachDisk'" PrefixI True) (S1 (MetaSel (Just "_ddDiskName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Rs DetachDisk Source # 
Instance details

Defined in Network.AWS.Lightsail.DetachDisk

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

Defined in Network.AWS.Lightsail.DetachDisk

Data DetachDiskResponse Source # 
Instance details

Defined in Network.AWS.Lightsail.DetachDisk

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

Defined in Network.AWS.Lightsail.DetachDisk

Show DetachDiskResponse Source # 
Instance details

Defined in Network.AWS.Lightsail.DetachDisk

Generic DetachDiskResponse Source # 
Instance details

Defined in Network.AWS.Lightsail.DetachDisk

Associated Types

type Rep DetachDiskResponse :: Type -> Type #

NFData DetachDiskResponse Source # 
Instance details

Defined in Network.AWS.Lightsail.DetachDisk

Methods

rnf :: DetachDiskResponse -> () #

type Rep DetachDiskResponse Source # 
Instance details

Defined in Network.AWS.Lightsail.DetachDisk

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