Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@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)
- cngSubnetId :: Lens' CreateNatGateway Text
- cngAllocationId :: 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.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
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
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 #
Contains the output of CreateNatGateway.
See: createNatGatewayResponse
smart constructor.
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.