Deletes a customer gateway.
Declaration Syntax
C# |
public DeleteCustomerGatewayResponse DeleteCustomerGateway( DeleteCustomerGatewayRequest request )
Parameters
- request (DeleteCustomerGatewayRequest)
- Delete Customer Gateway request
Return Value
Delete Customer Gateway Response from the service
Remarks
You must delete the VPN connection before deleting
the customer gateway.
AWS might delete any customer gateway if you leave
it inactive for an extended period of time (inactive
means that there's no VPN connection in use with the
customer gateway).
Exceptions
Exception | Condition |
---|---|
WebException | |
AmazonEC2Exception |