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.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 #

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:

  • ddDryRun - 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 - The ID of the subnet.

data DeleteSubnet #

Contains the parameters for DeleteSubnet.

See: deleteSubnet smart constructor.

Instances

Eq DeleteSubnet # 
Data DeleteSubnet # 

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 # 
Show DeleteSubnet # 
Generic DeleteSubnet # 

Associated Types

type Rep DeleteSubnet :: * -> * #

Hashable DeleteSubnet # 
NFData DeleteSubnet # 

Methods

rnf :: DeleteSubnet -> () #

AWSRequest DeleteSubnet # 
ToQuery DeleteSubnet # 
ToPath DeleteSubnet # 
ToHeaders DeleteSubnet # 
type Rep DeleteSubnet # 
type Rep DeleteSubnet = D1 (MetaData "DeleteSubnet" "Network.AWS.EC2.DeleteSubnet" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" 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 # 

Request Lenses

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

ddSubnetId :: Lens' DeleteSubnet Text #

The ID of the subnet.

Destructuring the Response

deleteSubnetResponse :: DeleteSubnetResponse #

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

data DeleteSubnetResponse #

See: deleteSubnetResponse smart constructor.

Instances

Eq DeleteSubnetResponse # 
Data DeleteSubnetResponse # 

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

Methods

rnf :: DeleteSubnetResponse -> () #

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