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 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.
- createVPNGateway :: GatewayType -> CreateVPNGateway
- data CreateVPNGateway
- cvgAvailabilityZone :: Lens' CreateVPNGateway (Maybe Text)
- cvgDryRun :: Lens' CreateVPNGateway (Maybe Bool)
- cvgType :: Lens' CreateVPNGateway GatewayType
- createVPNGatewayResponse :: Int -> CreateVPNGatewayResponse
- data CreateVPNGatewayResponse
- cvgrsVPNGateway :: Lens' CreateVPNGatewayResponse (Maybe VPNGateway)
- cvgrsStatus :: Lens' CreateVPNGatewayResponse Int
Creating a Request
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:
data CreateVPNGateway Source
See: createVPNGateway
smart constructor.
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:
data CreateVPNGatewayResponse Source
See: createVPNGatewayResponse
smart constructor.
Response Lenses
cvgrsVPNGateway :: Lens' CreateVPNGatewayResponse (Maybe VPNGateway) Source
Information about the virtual private gateway.
cvgrsStatus :: Lens' CreateVPNGatewayResponse Int Source
The response status code.