AWS SDK for .NET Documentation
DeleteVpnGatewayRequest Class
AmazonAmazon.EC2.ModelDeleteVpnGatewayRequest Did this page help you?   Yes   No    Tell us about it...
Deletes a VPN gateway.
Declaration Syntax
C#
public class DeleteVpnGatewayRequest : EC2Request
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
DeleteVpnGatewayRequest()()()()
Initializes a new instance of the DeleteVpnGatewayRequest class

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the type of the current instance.
(Inherited from Object.)
IsSetVpnGatewayId()()()()
Checks if VpnGatewayId property is set

ToString()()()()
Returns a string that represents the current object.
(Inherited from Object.)
VpnGatewayId
The ID of the VPN gateway you want to delete.

WithVpnGatewayId(String) Obsolete.
Sets the ID of the VPN gateway you want to delete.

Remarks
Use this when you want to delete a VPC and all its associated components because you no longer need them. We recommend that before you delete a VPN gateway, you detach it from the VPC and delete the VPN connection. Note that you don't need to delete the VPN gateway if you just want to delete and re-create the VPN connection between your VPC and data center. AWS might delete any VPN gateway if you leave it inactive for an extended period of time (inactive means that there's no VPN connection in use with the VPN gateway).
Inheritance Hierarchy
Object
EC2Request
 DeleteVpnGatewayRequest

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)