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 VirtualPrivate Gateway to Your VPC in the Amazon Virtual Private Cloud User Guide.
http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-CreateVpnConnection.html
- data CreateVpnConnection
- createVpnConnection :: Text -> Text -> Text -> CreateVpnConnection
- cvcCustomerGatewayId :: Lens' CreateVpnConnection Text
- cvcDryRun :: Lens' CreateVpnConnection (Maybe Bool)
- cvcOptions :: Lens' CreateVpnConnection (Maybe VpnConnectionOptionsSpecification)
- cvcType :: Lens' CreateVpnConnection Text
- cvcVpnGatewayId :: Lens' CreateVpnConnection Text
- data CreateVpnConnectionResponse
- createVpnConnectionResponse :: CreateVpnConnectionResponse
- cvcrVpnConnection :: Lens' CreateVpnConnectionResponse (Maybe VpnConnection)
Request
data CreateVpnConnection Source
Eq CreateVpnConnection | |
Read CreateVpnConnection | |
Show CreateVpnConnection | |
AWSRequest CreateVpnConnection | |
ToQuery CreateVpnConnection | |
ToPath CreateVpnConnection | |
ToHeaders CreateVpnConnection | |
type Sv CreateVpnConnection = EC2 | |
type Rs CreateVpnConnection = CreateVpnConnectionResponse |
Request constructor
CreateVpnConnection
constructor.
The fields accessible through corresponding lenses are:
Request lenses
cvcCustomerGatewayId :: Lens' CreateVpnConnection Text Source
The ID of the customer gateway.
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
cvcType :: Lens' CreateVpnConnection Text Source
The type of VPN connection ('ipsec.1').
cvcVpnGatewayId :: Lens' CreateVpnConnection Text Source
The ID of the virtual private gateway.
Response
Response constructor
createVpnConnectionResponse :: CreateVpnConnectionResponse Source
CreateVpnConnectionResponse
constructor.
The fields accessible through corresponding lenses are:
Response lenses
cvcrVpnConnection :: Lens' CreateVpnConnectionResponse (Maybe VpnConnection) Source
Information about the VPN connection.