amazonka-ec2-1.3.7: Amazon Elastic Compute Cloud SDK.

Copyright(c) 2013-2015 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.

See: AWS API Reference for CreateNatGateway.

Synopsis

Creating a Request

createNatGateway Source

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:

Request Lenses

cngClientToken :: Lens' CreateNatGateway (Maybe Text) Source

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 Source

The subnet in which to create the NAT gateway.

cngAllocationId :: Lens' CreateNatGateway Text Source

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 Source

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:

Response Lenses

cngrsClientToken :: Lens' CreateNatGatewayResponse (Maybe Text) Source

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) Source

Information about the NAT gateway.