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

Contents

Description

Deletes the specified network interface. You must detach the network interface before you can delete it.

Synopsis

Creating a Request

deleteNetworkInterface #

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

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

  • dninDryRun - 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 .
  • dninNetworkInterfaceId - The ID of the network interface.

data DeleteNetworkInterface #

Contains the parameters for DeleteNetworkInterface.

See: deleteNetworkInterface smart constructor.

Instances

Eq DeleteNetworkInterface # 
Data DeleteNetworkInterface # 

Methods

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

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

toConstr :: DeleteNetworkInterface -> Constr #

dataTypeOf :: DeleteNetworkInterface -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteNetworkInterface # 
Show DeleteNetworkInterface # 
Generic DeleteNetworkInterface # 
Hashable DeleteNetworkInterface # 
NFData DeleteNetworkInterface # 

Methods

rnf :: DeleteNetworkInterface -> () #

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

Request Lenses

dninDryRun :: Lens' DeleteNetworkInterface (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 .

dninNetworkInterfaceId :: Lens' DeleteNetworkInterface Text #

The ID of the network interface.

Destructuring the Response

deleteNetworkInterfaceResponse :: DeleteNetworkInterfaceResponse #

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

data DeleteNetworkInterfaceResponse #

See: deleteNetworkInterfaceResponse smart constructor.

Instances

Eq DeleteNetworkInterfaceResponse # 
Data DeleteNetworkInterfaceResponse # 

Methods

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

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

toConstr :: DeleteNetworkInterfaceResponse -> Constr #

dataTypeOf :: DeleteNetworkInterfaceResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

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