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 |
Provides information to Amazon Web Services about your customer gateway device. The customer gateway device is the appliance at your end of the VPN connection. You must provide the IP address of the customer gateway device’s external interface. The IP address must be static and can be behind a device performing network address translation (NAT).
For devices that use Border Gateway Protocol (BGP), you can also provide the device's BGP Autonomous System Number (ASN). You can use an existing ASN assigned to your network. If you don't have an ASN already, you can use a private ASN. For more information, see Customer gateway options for your Site-to-Site VPN connection in the Amazon Web Services Site-to-Site VPN User Guide.
To create more than one customer gateway with the same VPN type, IP address, and BGP ASN, specify a unique device name for each customer gateway. An identical request returns information about the existing customer gateway; it doesn't create a new customer gateway.
Synopsis
- data CreateCustomerGateway = CreateCustomerGateway' {
- certificateArn :: Maybe Text
- deviceName :: Maybe Text
- dryRun :: Maybe Bool
- ipAddress :: Maybe Text
- publicIp :: Maybe Text
- tagSpecifications :: Maybe [TagSpecification]
- bgpAsn :: Int
- type' :: GatewayType
- newCreateCustomerGateway :: Int -> GatewayType -> CreateCustomerGateway
- createCustomerGateway_certificateArn :: Lens' CreateCustomerGateway (Maybe Text)
- createCustomerGateway_deviceName :: Lens' CreateCustomerGateway (Maybe Text)
- createCustomerGateway_dryRun :: Lens' CreateCustomerGateway (Maybe Bool)
- createCustomerGateway_ipAddress :: Lens' CreateCustomerGateway (Maybe Text)
- createCustomerGateway_publicIp :: Lens' CreateCustomerGateway (Maybe Text)
- createCustomerGateway_tagSpecifications :: Lens' CreateCustomerGateway (Maybe [TagSpecification])
- createCustomerGateway_bgpAsn :: Lens' CreateCustomerGateway Int
- createCustomerGateway_type :: Lens' CreateCustomerGateway GatewayType
- data CreateCustomerGatewayResponse = CreateCustomerGatewayResponse' {}
- newCreateCustomerGatewayResponse :: Int -> CreateCustomerGatewayResponse
- createCustomerGatewayResponse_customerGateway :: Lens' CreateCustomerGatewayResponse (Maybe CustomerGateway)
- createCustomerGatewayResponse_httpStatus :: Lens' CreateCustomerGatewayResponse Int
Creating a Request
data CreateCustomerGateway Source #
Contains the parameters for CreateCustomerGateway.
See: newCreateCustomerGateway
smart constructor.
CreateCustomerGateway' | |
|
Instances
newCreateCustomerGateway Source #
Create a value of CreateCustomerGateway
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:
CreateCustomerGateway
, createCustomerGateway_certificateArn
- The Amazon Resource Name (ARN) for the customer gateway certificate.
CreateCustomerGateway
, createCustomerGateway_deviceName
- A name for the customer gateway device.
Length Constraints: Up to 255 characters.
$sel:dryRun:CreateCustomerGateway'
, createCustomerGateway_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
.
CreateCustomerGateway
, createCustomerGateway_ipAddress
- IPv4 address for the customer gateway device's outside interface. The
address must be static.
CreateCustomerGateway
, createCustomerGateway_publicIp
- This member has been deprecated. The Internet-routable IP address for
the customer gateway's outside interface. The address must be static.
CreateCustomerGateway
, createCustomerGateway_tagSpecifications
- The tags to apply to the customer gateway.
CreateCustomerGateway
, createCustomerGateway_bgpAsn
- For devices that support BGP, the customer gateway's BGP ASN.
Default: 65000
CreateCustomerGateway
, createCustomerGateway_type
- The type of VPN connection that this customer gateway supports
(ipsec.1
).
Request Lenses
createCustomerGateway_certificateArn :: Lens' CreateCustomerGateway (Maybe Text) Source #
The Amazon Resource Name (ARN) for the customer gateway certificate.
createCustomerGateway_deviceName :: Lens' CreateCustomerGateway (Maybe Text) Source #
A name for the customer gateway device.
Length Constraints: Up to 255 characters.
createCustomerGateway_dryRun :: Lens' CreateCustomerGateway (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
.
createCustomerGateway_ipAddress :: Lens' CreateCustomerGateway (Maybe Text) Source #
IPv4 address for the customer gateway device's outside interface. The address must be static.
createCustomerGateway_publicIp :: Lens' CreateCustomerGateway (Maybe Text) Source #
This member has been deprecated. The Internet-routable IP address for the customer gateway's outside interface. The address must be static.
createCustomerGateway_tagSpecifications :: Lens' CreateCustomerGateway (Maybe [TagSpecification]) Source #
The tags to apply to the customer gateway.
createCustomerGateway_bgpAsn :: Lens' CreateCustomerGateway Int Source #
For devices that support BGP, the customer gateway's BGP ASN.
Default: 65000
createCustomerGateway_type :: Lens' CreateCustomerGateway GatewayType Source #
The type of VPN connection that this customer gateway supports
(ipsec.1
).
Destructuring the Response
data CreateCustomerGatewayResponse Source #
Contains the output of CreateCustomerGateway.
See: newCreateCustomerGatewayResponse
smart constructor.
CreateCustomerGatewayResponse' | |
|
Instances
newCreateCustomerGatewayResponse Source #
Create a value of CreateCustomerGatewayResponse
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:
CreateCustomerGatewayResponse
, createCustomerGatewayResponse_customerGateway
- Information about the customer gateway.
$sel:httpStatus:CreateCustomerGatewayResponse'
, createCustomerGatewayResponse_httpStatus
- The response's http status code.
Response Lenses
createCustomerGatewayResponse_customerGateway :: Lens' CreateCustomerGatewayResponse (Maybe CustomerGateway) Source #
Information about the customer gateway.
createCustomerGatewayResponse_httpStatus :: Lens' CreateCustomerGatewayResponse Int Source #
The response's http status code.