amazonka-ec2-1.4.4: 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 Source #

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:

data DeleteVPC Source #

Contains the parameters for DeleteVpc.

See: deleteVPC smart constructor.

Instances

Eq DeleteVPC Source # 
Data DeleteVPC Source # 

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 Source # 
Show DeleteVPC Source # 
Generic DeleteVPC Source # 

Associated Types

type Rep DeleteVPC :: * -> * #

Hashable DeleteVPC Source # 
NFData DeleteVPC Source # 

Methods

rnf :: DeleteVPC -> () #

AWSRequest DeleteVPC Source # 
ToPath DeleteVPC Source # 
ToHeaders DeleteVPC Source # 

Methods

toHeaders :: DeleteVPC -> [Header] #

ToQuery DeleteVPC Source # 
type Rep DeleteVPC Source # 
type Rep DeleteVPC = D1 (MetaData "DeleteVPC" "Network.AWS.EC2.DeleteVPC" "amazonka-ec2-1.4.4-4aYNmHv73MpJXVQjlVKYjQ" 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 Source # 

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.

data DeleteVPCResponse Source #

See: deleteVPCResponse smart constructor.

Instances

Eq DeleteVPCResponse Source # 
Data DeleteVPCResponse Source # 

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 Source # 
Show DeleteVPCResponse Source # 
Generic DeleteVPCResponse Source # 
NFData DeleteVPCResponse Source # 

Methods

rnf :: DeleteVPCResponse -> () #

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