amazonka-ec2-1.4.4: 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 Source #

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:

data DetachInternetGateway Source #

Contains the parameters for DetachInternetGateway.

See: detachInternetGateway smart constructor.

Instances

Eq DetachInternetGateway Source # 
Data DetachInternetGateway Source # 

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 Source # 
Show DetachInternetGateway Source # 
Generic DetachInternetGateway Source # 
Hashable DetachInternetGateway Source # 
NFData DetachInternetGateway Source # 

Methods

rnf :: DetachInternetGateway -> () #

AWSRequest DetachInternetGateway Source # 
ToPath DetachInternetGateway Source # 
ToHeaders DetachInternetGateway Source # 
ToQuery DetachInternetGateway Source # 
type Rep DetachInternetGateway Source # 
type Rep DetachInternetGateway = D1 (MetaData "DetachInternetGateway" "Network.AWS.EC2.DetachInternetGateway" "amazonka-ec2-1.4.4-4aYNmHv73MpJXVQjlVKYjQ" 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 Source # 

Request Lenses

digDryRun :: Lens' DetachInternetGateway (Maybe Bool) Source #

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 Source #

The ID of the Internet gateway.

Destructuring the Response

detachInternetGatewayResponse :: DetachInternetGatewayResponse Source #

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

data DetachInternetGatewayResponse Source #

See: detachInternetGatewayResponse smart constructor.

Instances

Eq DetachInternetGatewayResponse Source # 
Data DetachInternetGatewayResponse Source # 

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 Source # 
Show DetachInternetGatewayResponse Source # 
Generic DetachInternetGatewayResponse Source # 
NFData DetachInternetGatewayResponse Source # 
type Rep DetachInternetGatewayResponse Source # 
type Rep DetachInternetGatewayResponse = D1 (MetaData "DetachInternetGatewayResponse" "Network.AWS.EC2.DetachInternetGateway" "amazonka-ec2-1.4.4-4aYNmHv73MpJXVQjlVKYjQ" False) (C1 (MetaCons "DetachInternetGatewayResponse'" PrefixI False) U1)