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

Contents

Description

Attaches an Internet gateway to a VPC, enabling connectivity between the Internet and the VPC. For more information about your VPC and Internet gateway, see the Amazon Virtual Private Cloud User Guide .

Synopsis

Creating a Request

attachInternetGateway #

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

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

  • aigDryRun - 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 .
  • aigInternetGatewayId - The ID of the Internet gateway.
  • aigVPCId - The ID of the VPC.

data AttachInternetGateway #

Contains the parameters for AttachInternetGateway.

See: attachInternetGateway smart constructor.

Instances

Eq AttachInternetGateway # 
Data AttachInternetGateway # 

Methods

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

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

toConstr :: AttachInternetGateway -> Constr #

dataTypeOf :: AttachInternetGateway -> DataType #

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

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

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

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

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

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

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

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

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

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

Read AttachInternetGateway # 
Show AttachInternetGateway # 
Generic AttachInternetGateway # 
Hashable AttachInternetGateway # 
NFData AttachInternetGateway # 

Methods

rnf :: AttachInternetGateway -> () #

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

Request Lenses

aigDryRun :: Lens' AttachInternetGateway (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 .

aigInternetGatewayId :: Lens' AttachInternetGateway Text #

The ID of the Internet gateway.

Destructuring the Response

attachInternetGatewayResponse :: AttachInternetGatewayResponse #

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

data AttachInternetGatewayResponse #

See: attachInternetGatewayResponse smart constructor.

Instances

Eq AttachInternetGatewayResponse # 
Data AttachInternetGatewayResponse # 

Methods

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

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

toConstr :: AttachInternetGatewayResponse -> Constr #

dataTypeOf :: AttachInternetGatewayResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

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