amazonka-ec2-1.1.0: 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.CreateVPNGateway

Contents

Description

Creates a virtual private gateway. A virtual private gateway is the endpoint on the VPC side of your VPN connection. You can create a virtual private gateway before creating the VPC itself.

For more information about virtual private gateways, see Adding a Hardware Virtual Private Gateway to Your VPC in the Amazon Virtual Private Cloud User Guide.

See: AWS API Reference for CreateVPNGateway.

Synopsis

Creating a Request

createVPNGateway Source

Creates a value of CreateVPNGateway with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

cvgAvailabilityZone :: Lens' CreateVPNGateway (Maybe Text) Source

The Availability Zone for the virtual private gateway.

cvgDryRun :: Lens' CreateVPNGateway (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.

cvgType :: Lens' CreateVPNGateway GatewayType Source

The type of VPN connection this virtual private gateway supports.

Destructuring the Response

createVPNGatewayResponse Source

Creates a value of CreateVPNGatewayResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Response Lenses

cvgrsVPNGateway :: Lens' CreateVPNGatewayResponse (Maybe VPNGateway) Source

Information about the virtual private gateway.