amazonka-ec2-1.6.0: 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.CreateInternetGateway

Contents

Description

Creates an Internet gateway for use with a VPC. After creating the Internet gateway, you attach it to a VPC using AttachInternetGateway .

For more information about your VPC and Internet gateway, see the Amazon Virtual Private Cloud User Guide .

Synopsis

Creating a Request

createInternetGateway :: CreateInternetGateway #

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

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

  • cigDryRun - 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 .

data CreateInternetGateway #

Contains the parameters for CreateInternetGateway.

See: createInternetGateway smart constructor.

Instances
Eq CreateInternetGateway # 
Instance details

Defined in Network.AWS.EC2.CreateInternetGateway

Data CreateInternetGateway # 
Instance details

Defined in Network.AWS.EC2.CreateInternetGateway

Methods

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

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

toConstr :: CreateInternetGateway -> Constr #

dataTypeOf :: CreateInternetGateway -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateInternetGateway # 
Instance details

Defined in Network.AWS.EC2.CreateInternetGateway

Show CreateInternetGateway # 
Instance details

Defined in Network.AWS.EC2.CreateInternetGateway

Generic CreateInternetGateway # 
Instance details

Defined in Network.AWS.EC2.CreateInternetGateway

Associated Types

type Rep CreateInternetGateway :: * -> * #

Hashable CreateInternetGateway # 
Instance details

Defined in Network.AWS.EC2.CreateInternetGateway

AWSRequest CreateInternetGateway # 
Instance details

Defined in Network.AWS.EC2.CreateInternetGateway

Associated Types

type Rs CreateInternetGateway :: * #

ToHeaders CreateInternetGateway # 
Instance details

Defined in Network.AWS.EC2.CreateInternetGateway

ToPath CreateInternetGateway # 
Instance details

Defined in Network.AWS.EC2.CreateInternetGateway

ToQuery CreateInternetGateway # 
Instance details

Defined in Network.AWS.EC2.CreateInternetGateway

NFData CreateInternetGateway # 
Instance details

Defined in Network.AWS.EC2.CreateInternetGateway

Methods

rnf :: CreateInternetGateway -> () #

type Rep CreateInternetGateway # 
Instance details

Defined in Network.AWS.EC2.CreateInternetGateway

type Rep CreateInternetGateway = D1 (MetaData "CreateInternetGateway" "Network.AWS.EC2.CreateInternetGateway" "amazonka-ec2-1.6.0-G6ppxISnQxeI7PhDx9p8Zy" True) (C1 (MetaCons "CreateInternetGateway'" PrefixI True) (S1 (MetaSel (Just "_cigDryRun") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Bool))))
type Rs CreateInternetGateway # 
Instance details

Defined in Network.AWS.EC2.CreateInternetGateway

Request Lenses

cigDryRun :: Lens' CreateInternetGateway (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 .

Destructuring the Response

createInternetGatewayResponse #

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

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

data CreateInternetGatewayResponse #

Contains the output of CreateInternetGateway.

See: createInternetGatewayResponse smart constructor.

Instances
Eq CreateInternetGatewayResponse # 
Instance details

Defined in Network.AWS.EC2.CreateInternetGateway

Data CreateInternetGatewayResponse # 
Instance details

Defined in Network.AWS.EC2.CreateInternetGateway

Methods

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

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

toConstr :: CreateInternetGatewayResponse -> Constr #

dataTypeOf :: CreateInternetGatewayResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateInternetGatewayResponse # 
Instance details

Defined in Network.AWS.EC2.CreateInternetGateway

Show CreateInternetGatewayResponse # 
Instance details

Defined in Network.AWS.EC2.CreateInternetGateway

Generic CreateInternetGatewayResponse # 
Instance details

Defined in Network.AWS.EC2.CreateInternetGateway

Associated Types

type Rep CreateInternetGatewayResponse :: * -> * #

NFData CreateInternetGatewayResponse # 
Instance details

Defined in Network.AWS.EC2.CreateInternetGateway

type Rep CreateInternetGatewayResponse # 
Instance details

Defined in Network.AWS.EC2.CreateInternetGateway

type Rep CreateInternetGatewayResponse = D1 (MetaData "CreateInternetGatewayResponse" "Network.AWS.EC2.CreateInternetGateway" "amazonka-ec2-1.6.0-G6ppxISnQxeI7PhDx9p8Zy" False) (C1 (MetaCons "CreateInternetGatewayResponse'" PrefixI True) (S1 (MetaSel (Just "_cigrsInternetGateway") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe InternetGateway)) :*: S1 (MetaSel (Just "_cigrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses