Copyright | (c) 2013-2018 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 |
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.
Important: 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.
This is an idempotent operation. If you perform the operation more than once, Amazon EC2 doesn't return an error.
For more information, see AWS Managed VPN Connections in the Amazon Virtual Private Cloud User Guide .
- createVPNConnection :: Text -> Text -> Text -> CreateVPNConnection
- data CreateVPNConnection
- cvcOptions :: Lens' CreateVPNConnection (Maybe VPNConnectionOptionsSpecification)
- cvcDryRun :: Lens' CreateVPNConnection (Maybe Bool)
- cvcCustomerGatewayId :: Lens' CreateVPNConnection Text
- cvcType :: 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:
cvcOptions
- The options for the VPN connection.cvcDryRun
- 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 isDryRunOperation
. Otherwise, it isUnauthorizedOperation
.cvcCustomerGatewayId
- The ID of the customer gateway.cvcType
- The type of VPN connection (ipsec.1
).cvcVPNGatewayId
- The ID of the virtual private gateway.
data CreateVPNConnection Source #
Contains the parameters for CreateVpnConnection.
See: createVPNConnection
smart constructor.
Request Lenses
cvcOptions :: Lens' CreateVPNConnection (Maybe VPNConnectionOptionsSpecification) Source #
The options for the VPN connection.
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
.
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:
cvcrsVPNConnection
- Information about the VPN connection.cvcrsResponseStatus
- -- | The response status code.
data CreateVPNConnectionResponse Source #
Contains the output of CreateVpnConnection.
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.