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

Contents

Description

Detaches an Internet gateway from a VPC, disabling connectivity between the Internet and the VPC. The VPC must not contain any running instances with Elastic IP addresses.

Synopsis

Creating a Request

detachInternetGateway #

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

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

  • digDryRun - 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 .
  • digInternetGatewayId - The ID of the Internet gateway.
  • digVPCId - The ID of the VPC.

data DetachInternetGateway #

Contains the parameters for DetachInternetGateway.

See: detachInternetGateway smart constructor.

Instances

Eq DetachInternetGateway # 
Data DetachInternetGateway # 

Methods

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

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

toConstr :: DetachInternetGateway -> Constr #

dataTypeOf :: DetachInternetGateway -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DetachInternetGateway # 
Show DetachInternetGateway # 
Generic DetachInternetGateway # 
Hashable DetachInternetGateway # 
NFData DetachInternetGateway # 

Methods

rnf :: DetachInternetGateway -> () #

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

Request Lenses

digDryRun :: Lens' DetachInternetGateway (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 .

digInternetGatewayId :: Lens' DetachInternetGateway Text #

The ID of the Internet gateway.

Destructuring the Response

detachInternetGatewayResponse :: DetachInternetGatewayResponse #

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

data DetachInternetGatewayResponse #

See: detachInternetGatewayResponse smart constructor.

Instances

Eq DetachInternetGatewayResponse # 
Data DetachInternetGatewayResponse # 

Methods

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

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

toConstr :: DetachInternetGatewayResponse -> Constr #

dataTypeOf :: DetachInternetGatewayResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

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