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

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.EC2.DeleteVPC

Contents

Description

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.

Synopsis

Creating a Request

deleteVPC #

Arguments

:: Text

delVPCId

-> 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:

  • delDryRun - 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 - The ID of the VPC.

data DeleteVPC #

Contains the parameters for DeleteVpc.

See: deleteVPC smart constructor.

Instances

Eq DeleteVPC # 
Data DeleteVPC # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DeleteVPC -> c DeleteVPC #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DeleteVPC #

toConstr :: DeleteVPC -> Constr #

dataTypeOf :: DeleteVPC -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DeleteVPC) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DeleteVPC) #

gmapT :: (forall b. Data b => b -> b) -> DeleteVPC -> DeleteVPC #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DeleteVPC -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DeleteVPC -> r #

gmapQ :: (forall d. Data d => d -> u) -> DeleteVPC -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DeleteVPC -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DeleteVPC -> m DeleteVPC #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DeleteVPC -> m DeleteVPC #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DeleteVPC -> m DeleteVPC #

Read DeleteVPC # 
Show DeleteVPC # 
Generic DeleteVPC # 

Associated Types

type Rep DeleteVPC :: * -> * #

Hashable DeleteVPC # 
NFData DeleteVPC # 

Methods

rnf :: DeleteVPC -> () #

AWSRequest DeleteVPC # 
ToQuery DeleteVPC # 
ToPath DeleteVPC # 
ToHeaders DeleteVPC # 

Methods

toHeaders :: DeleteVPC -> [Header] #

type Rep DeleteVPC # 
type Rep DeleteVPC = D1 (MetaData "DeleteVPC" "Network.AWS.EC2.DeleteVPC" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "DeleteVPC'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_delDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) (S1 (MetaSel (Just Symbol "_delVPCId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs DeleteVPC # 

Request Lenses

delDryRun :: Lens' DeleteVPC (Maybe Bool) #

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 #

The ID of the VPC.

Destructuring the Response

deleteVPCResponse :: DeleteVPCResponse #

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

data DeleteVPCResponse #

See: deleteVPCResponse smart constructor.

Instances

Eq DeleteVPCResponse # 
Data DeleteVPCResponse # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DeleteVPCResponse -> c DeleteVPCResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DeleteVPCResponse #

toConstr :: DeleteVPCResponse -> Constr #

dataTypeOf :: DeleteVPCResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DeleteVPCResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DeleteVPCResponse) #

gmapT :: (forall b. Data b => b -> b) -> DeleteVPCResponse -> DeleteVPCResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DeleteVPCResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DeleteVPCResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> DeleteVPCResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DeleteVPCResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DeleteVPCResponse -> m DeleteVPCResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DeleteVPCResponse -> m DeleteVPCResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DeleteVPCResponse -> m DeleteVPCResponse #

Read DeleteVPCResponse # 
Show DeleteVPCResponse # 
Generic DeleteVPCResponse # 
NFData DeleteVPCResponse # 

Methods

rnf :: DeleteVPCResponse -> () #

type Rep DeleteVPCResponse # 
type Rep DeleteVPCResponse = D1 (MetaData "DeleteVPCResponse" "Network.AWS.EC2.DeleteVPC" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "DeleteVPCResponse'" PrefixI False) U1)