Deletes a VPC. You must terminate all running instances and delete
all subnets before deleting the VPC, otherwise Amazon VPC returns an error.
AWS might delete any VPC if you leave it inactive for an extended
period of time (inactive means that there are no running Amazon EC2 instances in the VPC).
Namespace: Amazon.EC2.ModelAssembly: AWSSDK (in AWSSDK.dll) Version: 1.4.10.0 (1.4.10.0)
Syntax
| C# | Visual Basic | Visual C++ |
public class DeleteVpcRequest
Public Class DeleteVpcRequest
public ref class DeleteVpcRequest
Members
| All Members | Constructors | Properties | Methods |
| Member | Description | |
|---|---|---|
| DeleteVpcRequest()()()() | Initializes a new instance of the DeleteVpcRequest class | |
| Equals(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
| |
| ToString()()()() | (Inherited from Object.) | |
| VpcId |
Gets and sets the VpcId property.
The ID of the VPC you want to delete.
| |
| WithVpcId(String) |
Sets the VpcId property
|