Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
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, see Amazon Web Services Site-to-Site VPN in the Amazon Web Services Site-to-Site VPN User Guide.
Synopsis
- data CreateVpnGateway = CreateVpnGateway' {}
- newCreateVpnGateway :: GatewayType -> CreateVpnGateway
- createVpnGateway_amazonSideAsn :: Lens' CreateVpnGateway (Maybe Integer)
- createVpnGateway_availabilityZone :: Lens' CreateVpnGateway (Maybe Text)
- createVpnGateway_dryRun :: Lens' CreateVpnGateway (Maybe Bool)
- createVpnGateway_tagSpecifications :: Lens' CreateVpnGateway (Maybe [TagSpecification])
- createVpnGateway_type :: Lens' CreateVpnGateway GatewayType
- data CreateVpnGatewayResponse = CreateVpnGatewayResponse' {}
- newCreateVpnGatewayResponse :: Int -> CreateVpnGatewayResponse
- createVpnGatewayResponse_vpnGateway :: Lens' CreateVpnGatewayResponse (Maybe VpnGateway)
- createVpnGatewayResponse_httpStatus :: Lens' CreateVpnGatewayResponse Int
Creating a Request
data CreateVpnGateway Source #
Contains the parameters for CreateVpnGateway.
See: newCreateVpnGateway
smart constructor.
CreateVpnGateway' | |
|
Instances
Create a value of CreateVpnGateway
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
CreateVpnGateway
, createVpnGateway_amazonSideAsn
- 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
CreateVpnGateway
, createVpnGateway_availabilityZone
- The Availability Zone for the virtual private gateway.
$sel:dryRun:CreateVpnGateway'
, createVpnGateway_dryRun
- 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
.
CreateVpnGateway
, createVpnGateway_tagSpecifications
- The tags to apply to the virtual private gateway.
CreateVpnGateway
, createVpnGateway_type
- The type of VPN connection this virtual private gateway supports.
Request Lenses
createVpnGateway_amazonSideAsn :: 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
createVpnGateway_availabilityZone :: Lens' CreateVpnGateway (Maybe Text) Source #
The Availability Zone for the virtual private gateway.
createVpnGateway_dryRun :: 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
.
createVpnGateway_tagSpecifications :: Lens' CreateVpnGateway (Maybe [TagSpecification]) Source #
The tags to apply to the virtual private gateway.
createVpnGateway_type :: Lens' CreateVpnGateway GatewayType Source #
The type of VPN connection this virtual private gateway supports.
Destructuring the Response
data CreateVpnGatewayResponse Source #
Contains the output of CreateVpnGateway.
See: newCreateVpnGatewayResponse
smart constructor.
CreateVpnGatewayResponse' | |
|
Instances
newCreateVpnGatewayResponse Source #
Create a value of CreateVpnGatewayResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
CreateVpnGatewayResponse
, createVpnGatewayResponse_vpnGateway
- Information about the virtual private gateway.
$sel:httpStatus:CreateVpnGatewayResponse'
, createVpnGatewayResponse_httpStatus
- The response's http status code.
Response Lenses
createVpnGatewayResponse_vpnGateway :: Lens' CreateVpnGatewayResponse (Maybe VpnGateway) Source #
Information about the virtual private gateway.
createVpnGatewayResponse_httpStatus :: Lens' CreateVpnGatewayResponse Int Source #
The response's http status code.