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

Defined in Network.AWS.EC2.AttachInternetGateway

Data AttachInternetGateway # 
Instance details

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

Defined in Network.AWS.EC2.AttachInternetGateway

Show AttachInternetGateway # 
Instance details

Defined in Network.AWS.EC2.AttachInternetGateway

Generic AttachInternetGateway # 
Instance details

Defined in Network.AWS.EC2.AttachInternetGateway

Associated Types

type Rep AttachInternetGateway :: Type -> Type #

Hashable AttachInternetGateway # 
Instance details

Defined in Network.AWS.EC2.AttachInternetGateway

AWSRequest AttachInternetGateway # 
Instance details

Defined in Network.AWS.EC2.AttachInternetGateway

Associated Types

type Rs AttachInternetGateway :: Type #

ToHeaders AttachInternetGateway # 
Instance details

Defined in Network.AWS.EC2.AttachInternetGateway

ToPath AttachInternetGateway # 
Instance details

Defined in Network.AWS.EC2.AttachInternetGateway

ToQuery AttachInternetGateway # 
Instance details

Defined in Network.AWS.EC2.AttachInternetGateway

NFData AttachInternetGateway # 
Instance details

Defined in Network.AWS.EC2.AttachInternetGateway

Methods

rnf :: AttachInternetGateway -> () #

type Rep AttachInternetGateway # 
Instance details

Defined in Network.AWS.EC2.AttachInternetGateway

type Rep AttachInternetGateway = D1 (MetaData "AttachInternetGateway" "Network.AWS.EC2.AttachInternetGateway" "amazonka-ec2-1.6.1-H98Zd65xIYr2z4e5UhW9ck" False) (C1 (MetaCons "AttachInternetGateway'" PrefixI True) (S1 (MetaSel (Just "_aigDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 (MetaSel (Just "_aigInternetGatewayId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_aigVPCId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs AttachInternetGateway # 
Instance details

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

Defined in Network.AWS.EC2.AttachInternetGateway

Data AttachInternetGatewayResponse # 
Instance details

Defined in Network.AWS.EC2.AttachInternetGateway

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

Defined in Network.AWS.EC2.AttachInternetGateway

Show AttachInternetGatewayResponse # 
Instance details

Defined in Network.AWS.EC2.AttachInternetGateway

Generic AttachInternetGatewayResponse # 
Instance details

Defined in Network.AWS.EC2.AttachInternetGateway

Associated Types

type Rep AttachInternetGatewayResponse :: Type -> Type #

NFData AttachInternetGatewayResponse # 
Instance details

Defined in Network.AWS.EC2.AttachInternetGateway

type Rep AttachInternetGatewayResponse # 
Instance details

Defined in Network.AWS.EC2.AttachInternetGateway

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