amazonka-ec2-1.3.6: Amazon Elastic Compute Cloud SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.EC2.CreateVPNConnection

Contents

Description

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.

Synopsis

Creating a Request

createVPNConnection Source

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:

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:

Response Lenses