Copyright | (c) 2013-2015 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 VPN connection between an existing virtual private gateway and a VPN customer gateway. The only supported connection type is 'ipsec.1'.
The response includes information that you need to give to your network administrator to configure your customer gateway.
We strongly recommend that you use HTTPS when calling this operation because the response contains sensitive cryptographic information for configuring your customer gateway.
If you decide to shut down your VPN connection for any reason and later create a new VPN connection, you must reconfigure your customer gateway with the new information returned from this call.
For more information about VPN connections, see Adding a Hardware Virtual Private Gateway to Your VPC in the Amazon Virtual Private Cloud User Guide.
See: AWS API Reference for CreateVPNConnection.
- createVPNConnection :: Text -> Text -> Text -> CreateVPNConnection
- data CreateVPNConnection
- cvcOptions :: Lens' CreateVPNConnection (Maybe VPNConnectionOptionsSpecification)
- cvcDryRun :: Lens' CreateVPNConnection (Maybe Bool)
- cvcType :: Lens' CreateVPNConnection Text
- cvcCustomerGatewayId :: Lens' CreateVPNConnection Text
- cvcVPNGatewayId :: Lens' CreateVPNConnection Text
- createVPNConnectionResponse :: Int -> CreateVPNConnectionResponse
- data CreateVPNConnectionResponse
- cvcrsVPNConnection :: Lens' CreateVPNConnectionResponse (Maybe VPNConnection)
- cvcrsResponseStatus :: Lens' CreateVPNConnectionResponse Int
Creating a Request
Creates a value of CreateVPNConnection
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CreateVPNConnection Source
See: createVPNConnection
smart constructor.
Request Lenses
cvcOptions :: Lens' CreateVPNConnection (Maybe VPNConnectionOptionsSpecification) Source
Indicates whether the VPN connection requires static routes. If you are
creating a VPN connection for a device that does not support BGP, you
must specify true
.
Default: false
cvcDryRun :: Lens' CreateVPNConnection (Maybe Bool) Source
Checks whether you have the required permissions for the action, without
actually making the request, and provides an error response. If you have
the required permissions, the error response is DryRunOperation
.
Otherwise, it is UnauthorizedOperation
.
cvcType :: Lens' CreateVPNConnection Text Source
The type of VPN connection ('ipsec.1').
cvcCustomerGatewayId :: Lens' CreateVPNConnection Text Source
The ID of the customer gateway.
cvcVPNGatewayId :: Lens' CreateVPNConnection Text Source
The ID of the virtual private gateway.
Destructuring the Response
createVPNConnectionResponse Source
Creates a value of CreateVPNConnectionResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CreateVPNConnectionResponse Source
See: createVPNConnectionResponse
smart constructor.
Response Lenses
cvcrsVPNConnection :: Lens' CreateVPNConnectionResponse (Maybe VPNConnection) Source
Information about the VPN connection.
cvcrsResponseStatus :: Lens' CreateVPNConnectionResponse Int Source
The response status code.