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

Contents

Description

Creates a NAT gateway in the specified subnet. A NAT gateway can be used to enable instances in a private subnet to connect to the Internet. This action creates a network interface in the specified subnet with a private IP address from the IP address range of the subnet. For more information, see NAT Gateways in the Amazon Virtual Private Cloud User Guide .

Synopsis

Creating a Request

createNatGateway #

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

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

  • cngClientToken - Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency . Constraint: Maximum 64 ASCII characters.
  • cngSubnetId - The subnet in which to create the NAT gateway.
  • cngAllocationId - The allocation ID of an Elastic IP address to associate with the NAT gateway. If the Elastic IP address is associated with another resource, you must first disassociate it.

data CreateNatGateway #

Contains the parameters for CreateNatGateway.

See: createNatGateway smart constructor.

Instances

Eq CreateNatGateway # 
Data CreateNatGateway # 

Methods

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

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

toConstr :: CreateNatGateway -> Constr #

dataTypeOf :: CreateNatGateway -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateNatGateway # 
Show CreateNatGateway # 
Generic CreateNatGateway # 
Hashable CreateNatGateway # 
NFData CreateNatGateway # 

Methods

rnf :: CreateNatGateway -> () #

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

Request Lenses

cngClientToken :: Lens' CreateNatGateway (Maybe Text) #

Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency . Constraint: Maximum 64 ASCII characters.

cngSubnetId :: Lens' CreateNatGateway Text #

The subnet in which to create the NAT gateway.

cngAllocationId :: Lens' CreateNatGateway Text #

The allocation ID of an Elastic IP address to associate with the NAT gateway. If the Elastic IP address is associated with another resource, you must first disassociate it.

Destructuring the Response

createNatGatewayResponse #

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

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

  • cngrsClientToken - Unique, case-sensitive identifier to ensure the idempotency of the request. Only returned if a client token was provided in the request.
  • cngrsNatGateway - Information about the NAT gateway.
  • cngrsResponseStatus - -- | The response status code.

data CreateNatGatewayResponse #

Contains the output of CreateNatGateway.

See: createNatGatewayResponse smart constructor.

Instances

Eq CreateNatGatewayResponse # 
Data CreateNatGatewayResponse # 

Methods

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

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

toConstr :: CreateNatGatewayResponse -> Constr #

dataTypeOf :: CreateNatGatewayResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateNatGatewayResponse # 
Show CreateNatGatewayResponse # 
Generic CreateNatGatewayResponse # 
NFData CreateNatGatewayResponse # 
type Rep CreateNatGatewayResponse # 
type Rep CreateNatGatewayResponse = D1 (MetaData "CreateNatGatewayResponse" "Network.AWS.EC2.CreateNatGateway" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "CreateNatGatewayResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_cngrsClientToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_cngrsNatGateway") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe NatGateway))) (S1 (MetaSel (Just Symbol "_cngrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)))))

Response Lenses

cngrsClientToken :: Lens' CreateNatGatewayResponse (Maybe Text) #

Unique, case-sensitive identifier to ensure the idempotency of the request. Only returned if a client token was provided in the request.

cngrsNatGateway :: Lens' CreateNatGatewayResponse (Maybe NatGateway) #

Information about the NAT gateway.

cngrsResponseStatus :: Lens' CreateNatGatewayResponse Int #

  • - | The response status code.