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



IconMemberDescription
DetachVpnGatewayRequest()()()()
Initializes a new instance of the DetachVpnGatewayRequest 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.)
IsSetVpcId()()()()
Checks if VpcId property is set

IsSetVpnGatewayId()()()()
Checks if VpnGatewayId property is set

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

VpnGatewayId
The ID of the VPN gateway you want to detach from the VPC

WithVpcId(String) Obsolete.
Sets the ID of the VPC you want to detach the VPN gateway from.

WithVpnGatewayId(String) Obsolete.
Sets the ID of the VPN gateway you want to detach from the VPC

Remarks
You do this if you're planning to turn off the VPC and not use it anymore. You can confirm a VPN gateway has been completely detached from a VPC by describing the VPN gateway (any attachments to the VPN gateway are also described). You must wait for the attachment's state to switch to detached before you can delete the VPC or attach a different VPC to the VPN gateway.
Inheritance Hierarchy
Object
EC2Request
 DetachVpnGatewayRequest

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