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 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 AWS Managed VPN Connections in the Amazon Virtual Private Cloud User Guide .
- createVPNGateway :: GatewayType -> CreateVPNGateway
- data CreateVPNGateway
- cvgAmazonSideASN :: Lens' CreateVPNGateway (Maybe Integer)
- cvgAvailabilityZone :: Lens' CreateVPNGateway (Maybe Text)
- cvgDryRun :: Lens' CreateVPNGateway (Maybe Bool)
- cvgType :: Lens' CreateVPNGateway GatewayType
- createVPNGatewayResponse :: Int -> CreateVPNGatewayResponse
- data CreateVPNGatewayResponse
- cvgrsVPNGateway :: Lens' CreateVPNGatewayResponse (Maybe VPNGateway)
- cvgrsResponseStatus :: 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:
cvgAmazonSideASN
- A private Autonomous System Number (ASN) for the Amazon side of a BGP session. If you're using a 16-bit ASN, it must be in the 64512 to 65534 range. If you're using a 32-bit ASN, it must be in the 4200000000 to 4294967294 range. Default: 64512cvgAvailabilityZone
- The Availability Zone for the virtual private gateway.cvgDryRun
- 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
.cvgType
- The type of VPN connection this virtual private gateway supports.
data CreateVPNGateway Source #
Contains the parameters for CreateVpnGateway.
See: createVPNGateway
smart constructor.
Request Lenses
cvgAmazonSideASN :: Lens' CreateVPNGateway (Maybe Integer) Source #
A private Autonomous System Number (ASN) for the Amazon side of a BGP session. If you're using a 16-bit ASN, it must be in the 64512 to 65534 range. If you're using a 32-bit ASN, it must be in the 4200000000 to 4294967294 range. Default: 64512
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:
cvgrsVPNGateway
- Information about the virtual private gateway.cvgrsResponseStatus
- -- | The response status code.
data CreateVPNGatewayResponse Source #
Contains the output of CreateVpnGateway.
See: createVPNGatewayResponse
smart constructor.
Response Lenses
cvgrsVPNGateway :: Lens' CreateVPNGatewayResponse (Maybe VPNGateway) Source #
Information about the virtual private gateway.
cvgrsResponseStatus :: Lens' CreateVPNGatewayResponse Int Source #
- - | The response status code.