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 #

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

Defined in Network.AWS.EC2.DetachInternetGateway

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

Defined in Network.AWS.EC2.DetachInternetGateway

Show DetachInternetGateway # 
Instance details

Defined in Network.AWS.EC2.DetachInternetGateway

Generic DetachInternetGateway # 
Instance details

Defined in Network.AWS.EC2.DetachInternetGateway

Associated Types

type Rep DetachInternetGateway :: Type -> Type #

Hashable DetachInternetGateway # 
Instance details

Defined in Network.AWS.EC2.DetachInternetGateway

AWSRequest DetachInternetGateway # 
Instance details

Defined in Network.AWS.EC2.DetachInternetGateway

Associated Types

type Rs DetachInternetGateway :: Type #

ToHeaders DetachInternetGateway # 
Instance details

Defined in Network.AWS.EC2.DetachInternetGateway

ToPath DetachInternetGateway # 
Instance details

Defined in Network.AWS.EC2.DetachInternetGateway

ToQuery DetachInternetGateway # 
Instance details

Defined in Network.AWS.EC2.DetachInternetGateway

NFData DetachInternetGateway # 
Instance details

Defined in Network.AWS.EC2.DetachInternetGateway

Methods

rnf :: DetachInternetGateway -> () #

type Rep DetachInternetGateway # 
Instance details

Defined in Network.AWS.EC2.DetachInternetGateway

type Rep DetachInternetGateway = D1 (MetaData "DetachInternetGateway" "Network.AWS.EC2.DetachInternetGateway" "amazonka-ec2-1.6.1-H98Zd65xIYr2z4e5UhW9ck" 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 # 
Instance details

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

Defined in Network.AWS.EC2.DetachInternetGateway

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

Defined in Network.AWS.EC2.DetachInternetGateway

Show DetachInternetGatewayResponse # 
Instance details

Defined in Network.AWS.EC2.DetachInternetGateway

Generic DetachInternetGatewayResponse # 
Instance details

Defined in Network.AWS.EC2.DetachInternetGateway

Associated Types

type Rep DetachInternetGatewayResponse :: Type -> Type #

NFData DetachInternetGatewayResponse # 
Instance details

Defined in Network.AWS.EC2.DetachInternetGateway

type Rep DetachInternetGatewayResponse # 
Instance details

Defined in Network.AWS.EC2.DetachInternetGateway

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