AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Container for the parameters to the CreateCustomerGateway operation. 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.
Namespace: Amazon.EC2.Model
Assembly: AWSSDK.EC2.dll
Version: 3.x.y.z
public class CreateCustomerGatewayRequest : AmazonEC2Request IAmazonWebServiceRequest
The CreateCustomerGatewayRequest type exposes the following members
Name | Description | |
---|---|---|
CreateCustomerGatewayRequest() |
Empty constructor used to set properties independently even when a simple constructor is available |
|
CreateCustomerGatewayRequest(GatewayType, string, int) |
Instantiates CreateCustomerGatewayRequest with the parameterized properties |
Name | Type | Description | |
---|---|---|---|
BgpAsn | System.Int32 |
Gets and sets the property BgpAsn. For devices that support BGP, the customer gateway's BGP ASN. Default: 65000 |
|
CertificateArn | System.String |
Gets and sets the property CertificateArn. The Amazon Resource Name (ARN) for the customer gateway certificate. |
|
DeviceName | System.String |
Gets and sets the property DeviceName. A name for the customer gateway device. Length Constraints: Up to 255 characters. |
|
IpAddress | System.String |
Gets and sets the property IpAddress. IPv4 address for the customer gateway device's outside interface. The address must be static. |
|
PublicIp | System.String |
Gets and sets the property PublicIp. This member has been deprecated. The Internet-routable IP address for the customer gateway's outside interface. The address must be static. |
|
TagSpecifications | System.Collections.Generic.List<Amazon.EC2.Model.TagSpecification> |
Gets and sets the property TagSpecifications. The tags to apply to the customer gateway. |
|
Type | Amazon.EC2.GatewayType |
Gets and sets the property Type.
The type of VPN connection that this customer gateway supports ( |
This example creates a customer gateway with the specified IP address for its outside interface.
var client = new AmazonEC2Client(); var response = client.CreateCustomerGateway(new CreateCustomerGatewayRequest { BgpAsn = 65534, PublicIp = "12.1.2.3", Type = "ipsec.1" }); CustomerGateway customerGateway = response.CustomerGateway;
.NET Core App:
Supported in: 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5, 4.0, 3.5