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 |
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
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 Source #
Contains the parameters for CreateNatGateway.
See: createNatGateway
smart constructor.
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:
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.