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 DeleteCustomerGateway operation. Deletes the specified customer gateway. You must delete the VPN connection before you can delete the customer gateway.
Namespace: Amazon.EC2.Model
Assembly: AWSSDK.EC2.dll
Version: 3.x.y.z
public class DeleteCustomerGatewayRequest : AmazonEC2Request IAmazonWebServiceRequest
The DeleteCustomerGatewayRequest type exposes the following members
Name | Description | |
---|---|---|
![]() |
DeleteCustomerGatewayRequest() |
Empty constructor used to set properties independently even when a simple constructor is available |
![]() |
DeleteCustomerGatewayRequest(string) |
Instantiates DeleteCustomerGatewayRequest with the parameterized properties |
Name | Type | Description | |
---|---|---|---|
![]() |
CustomerGatewayId | System.String |
Gets and sets the property CustomerGatewayId. The ID of the customer gateway. |
This example deletes the specified customer gateway.
var client = new AmazonEC2Client(); var response = client.DeleteCustomerGateway(new DeleteCustomerGatewayRequest { CustomerGatewayId = "cgw-0e11f167" });
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5 and newer, 3.5