amazonka-ec2-1.4.5: Amazon Elastic Compute Cloud SDK.

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

Network.AWS.EC2.DetachNetworkInterface

Contents

Description

Detaches a network interface from an instance.

Synopsis

Creating a Request

detachNetworkInterface #

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

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

  • dniForce - Specifies whether to force a detachment.
  • dniDryRun - Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation . Otherwise, it is UnauthorizedOperation .
  • dniAttachmentId - The ID of the attachment.

data DetachNetworkInterface #

Contains the parameters for DetachNetworkInterface.

See: detachNetworkInterface smart constructor.

Instances

Eq DetachNetworkInterface # 
Data DetachNetworkInterface # 

Methods

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

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

toConstr :: DetachNetworkInterface -> Constr #

dataTypeOf :: DetachNetworkInterface -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DetachNetworkInterface # 
Show DetachNetworkInterface # 
Generic DetachNetworkInterface # 
Hashable DetachNetworkInterface # 
NFData DetachNetworkInterface # 

Methods

rnf :: DetachNetworkInterface -> () #

AWSRequest DetachNetworkInterface # 
ToQuery DetachNetworkInterface # 
ToPath DetachNetworkInterface # 
ToHeaders DetachNetworkInterface # 
type Rep DetachNetworkInterface # 
type Rep DetachNetworkInterface = D1 (MetaData "DetachNetworkInterface" "Network.AWS.EC2.DetachNetworkInterface" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "DetachNetworkInterface'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_dniForce") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) ((:*:) (S1 (MetaSel (Just Symbol "_dniDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) (S1 (MetaSel (Just Symbol "_dniAttachmentId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs DetachNetworkInterface # 

Request Lenses

dniForce :: Lens' DetachNetworkInterface (Maybe Bool) #

Specifies whether to force a detachment.

dniDryRun :: Lens' DetachNetworkInterface (Maybe Bool) #

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation . Otherwise, it is UnauthorizedOperation .

dniAttachmentId :: Lens' DetachNetworkInterface Text #

The ID of the attachment.

Destructuring the Response

detachNetworkInterfaceResponse :: DetachNetworkInterfaceResponse #

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

data DetachNetworkInterfaceResponse #

See: detachNetworkInterfaceResponse smart constructor.

Instances

Eq DetachNetworkInterfaceResponse # 
Data DetachNetworkInterfaceResponse # 

Methods

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

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

toConstr :: DetachNetworkInterfaceResponse -> Constr #

dataTypeOf :: DetachNetworkInterfaceResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DetachNetworkInterfaceResponse # 
Show DetachNetworkInterfaceResponse # 
Generic DetachNetworkInterfaceResponse # 
NFData DetachNetworkInterfaceResponse # 
type Rep DetachNetworkInterfaceResponse # 
type Rep DetachNetworkInterfaceResponse = D1 (MetaData "DetachNetworkInterfaceResponse" "Network.AWS.EC2.DetachNetworkInterface" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "DetachNetworkInterfaceResponse'" PrefixI False) U1)