amazonka-ec2-1.4.1: 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.DeleteSubnet

Contents

Description

Deletes the specified subnet. You must terminate all running instances in the subnet before you can delete the subnet.

Synopsis

Creating a Request

deleteSubnet Source #

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

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

data DeleteSubnet Source #

Contains the parameters for DeleteSubnet.

See: deleteSubnet smart constructor.

Instances

Eq DeleteSubnet Source # 
Data DeleteSubnet Source # 

Methods

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

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

toConstr :: DeleteSubnet -> Constr #

dataTypeOf :: DeleteSubnet -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteSubnet Source # 
Show DeleteSubnet Source # 
Generic DeleteSubnet Source # 

Associated Types

type Rep DeleteSubnet :: * -> * #

Hashable DeleteSubnet Source # 
NFData DeleteSubnet Source # 

Methods

rnf :: DeleteSubnet -> () #

AWSRequest DeleteSubnet Source # 
ToQuery DeleteSubnet Source # 
ToPath DeleteSubnet Source # 
ToHeaders DeleteSubnet Source # 
type Rep DeleteSubnet Source # 
type Rep DeleteSubnet = D1 (MetaData "DeleteSubnet" "Network.AWS.EC2.DeleteSubnet" "amazonka-ec2-1.4.1-5DlWz6no0BoLQhxZVyzMyd" False) (C1 (MetaCons "DeleteSubnet'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_ddDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) (S1 (MetaSel (Just Symbol "_ddSubnetId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs DeleteSubnet Source # 

Request Lenses

ddDryRun :: Lens' DeleteSubnet (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.

ddSubnetId :: Lens' DeleteSubnet Text Source #

The ID of the subnet.

Destructuring the Response

deleteSubnetResponse :: DeleteSubnetResponse Source #

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

data DeleteSubnetResponse Source #

See: deleteSubnetResponse smart constructor.

Instances

Eq DeleteSubnetResponse Source # 
Data DeleteSubnetResponse Source # 

Methods

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

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

toConstr :: DeleteSubnetResponse -> Constr #

dataTypeOf :: DeleteSubnetResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteSubnetResponse Source # 
Show DeleteSubnetResponse Source # 
Generic DeleteSubnetResponse Source # 
NFData DeleteSubnetResponse Source # 

Methods

rnf :: DeleteSubnetResponse -> () #

type Rep DeleteSubnetResponse Source # 
type Rep DeleteSubnetResponse = D1 (MetaData "DeleteSubnetResponse" "Network.AWS.EC2.DeleteSubnet" "amazonka-ec2-1.4.1-5DlWz6no0BoLQhxZVyzMyd" False) (C1 (MetaCons "DeleteSubnetResponse'" PrefixI False) U1)