amazonka-ec2-1.3.0: Amazon Elastic Compute Cloud SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <>
Portabilitynon-portable (GHC extensions)
Safe HaskellNone




Deletes the specified VPC. You must detach or delete all gateways and resources that are associated with the VPC before you can delete it. For example, you must terminate all instances running in the VPC, delete all security groups associated with the VPC (except the default one), delete all route tables associated with the VPC (except the default one), and so on.

See: AWS API Reference for DeleteVPC.


Creating a Request

deleteVPC Source


:: Text


-> DeleteVPC 

Creates a value of DeleteVPC with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

delDryRun :: Lens' DeleteVPC (Maybe Bool) Source

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

delVPCId :: Lens' DeleteVPC Text Source

The ID of the VPC.

Destructuring the Response

deleteVPCResponse :: DeleteVPCResponse Source

Creates a value of DeleteVPCResponse with the minimum fields required to make a request.