| Copyright | (c) 2013-2017 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.EC2.CreateNatGateway
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 .
- createNatGateway :: Text -> Text -> CreateNatGateway
- data CreateNatGateway
- cngClientToken :: Lens' CreateNatGateway (Maybe Text)
- cngAllocationId :: Lens' CreateNatGateway Text
- cngSubnetId :: Lens' CreateNatGateway Text
- createNatGatewayResponse :: Int -> CreateNatGatewayResponse
- data CreateNatGatewayResponse
- cngrsClientToken :: Lens' CreateNatGatewayResponse (Maybe Text)
- cngrsNatGateway :: Lens' CreateNatGatewayResponse (Maybe NatGateway)
- cngrsResponseStatus :: Lens' CreateNatGatewayResponse Int
Creating a Request
Arguments
| :: Text | |
| -> Text | |
| -> 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.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.cngSubnetId- The subnet in which to create the NAT gateway.
data CreateNatGateway Source #
Contains the parameters for CreateNatGateway.
See: createNatGateway smart constructor.
Instances
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.
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.
cngSubnetId :: Lens' CreateNatGateway Text Source #
The subnet in which to create the NAT gateway.
Destructuring the Response
createNatGatewayResponse Source #
Arguments
| :: Int | |
| -> 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 Source #
Contains the output of CreateNatGateway.
See: createNatGatewayResponse smart constructor.
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.
cngrsResponseStatus :: Lens' CreateNatGatewayResponse Int Source #
- - | The response status code.