amazonka-ec2-1.6.1: Amazon Elastic Compute Cloud 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.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 or public IPv4 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:

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

Contains the parameters for DetachInternetGateway.

See: detachInternetGateway smart constructor.

Instances
Eq DetachInternetGateway Source # 
Instance details

Defined in Network.AWS.EC2.DetachInternetGateway

Data DetachInternetGateway Source # 
Instance details

Defined in Network.AWS.EC2.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 Source # 
Instance details

Defined in Network.AWS.EC2.DetachInternetGateway

Show DetachInternetGateway Source # 
Instance details

Defined in Network.AWS.EC2.DetachInternetGateway

Generic DetachInternetGateway Source # 
Instance details

Defined in Network.AWS.EC2.DetachInternetGateway

Associated Types

type Rep DetachInternetGateway :: Type -> Type #

Hashable DetachInternetGateway Source # 
Instance details

Defined in Network.AWS.EC2.DetachInternetGateway

AWSRequest DetachInternetGateway Source # 
Instance details

Defined in Network.AWS.EC2.DetachInternetGateway

Associated Types

type Rs DetachInternetGateway :: Type #

ToHeaders DetachInternetGateway Source # 
Instance details

Defined in Network.AWS.EC2.DetachInternetGateway

ToPath DetachInternetGateway Source # 
Instance details

Defined in Network.AWS.EC2.DetachInternetGateway

ToQuery DetachInternetGateway Source # 
Instance details

Defined in Network.AWS.EC2.DetachInternetGateway

NFData DetachInternetGateway Source # 
Instance details

Defined in Network.AWS.EC2.DetachInternetGateway

Methods

rnf :: DetachInternetGateway -> () #

type Rep DetachInternetGateway Source # 
Instance details

Defined in Network.AWS.EC2.DetachInternetGateway

type Rep DetachInternetGateway = D1 (MetaData "DetachInternetGateway" "Network.AWS.EC2.DetachInternetGateway" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "DetachInternetGateway'" PrefixI True) (S1 (MetaSel (Just "_digDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 (MetaSel (Just "_digInternetGatewayId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_digVPCId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs DetachInternetGateway Source # 
Instance details

Defined in Network.AWS.EC2.DetachInternetGateway

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

Defined in Network.AWS.EC2.DetachInternetGateway

Data DetachInternetGatewayResponse Source # 
Instance details

Defined in Network.AWS.EC2.DetachInternetGateway

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

Defined in Network.AWS.EC2.DetachInternetGateway

Show DetachInternetGatewayResponse Source # 
Instance details

Defined in Network.AWS.EC2.DetachInternetGateway

Generic DetachInternetGatewayResponse Source # 
Instance details

Defined in Network.AWS.EC2.DetachInternetGateway

Associated Types

type Rep DetachInternetGatewayResponse :: Type -> Type #

NFData DetachInternetGatewayResponse Source # 
Instance details

Defined in Network.AWS.EC2.DetachInternetGateway

type Rep DetachInternetGatewayResponse Source # 
Instance details

Defined in Network.AWS.EC2.DetachInternetGateway

type Rep DetachInternetGatewayResponse = D1 (MetaData "DetachInternetGatewayResponse" "Network.AWS.EC2.DetachInternetGateway" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "DetachInternetGatewayResponse'" PrefixI False) (U1 :: Type -> Type))