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

Contents

Description

Deletes the specified virtual private gateway. We recommend that before you delete a virtual private gateway, you detach it from the VPC and delete the VPN connection. Note that you don't need to delete the virtual private gateway if you plan to delete and recreate the VPN connection between your VPC and your network.

Synopsis

Creating a Request

deleteVPNGateway #

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

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

  • dvgDryRun - 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 .
  • dvgVPNGatewayId - The ID of the virtual private gateway.

data DeleteVPNGateway #

Contains the parameters for DeleteVpnGateway.

See: deleteVPNGateway smart constructor.

Instances

Eq DeleteVPNGateway # 
Data DeleteVPNGateway # 

Methods

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

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

toConstr :: DeleteVPNGateway -> Constr #

dataTypeOf :: DeleteVPNGateway -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteVPNGateway # 
Show DeleteVPNGateway # 
Generic DeleteVPNGateway # 
Hashable DeleteVPNGateway # 
NFData DeleteVPNGateway # 

Methods

rnf :: DeleteVPNGateway -> () #

AWSRequest DeleteVPNGateway # 
ToQuery DeleteVPNGateway # 
ToPath DeleteVPNGateway # 
ToHeaders DeleteVPNGateway # 
type Rep DeleteVPNGateway # 
type Rep DeleteVPNGateway = D1 (MetaData "DeleteVPNGateway" "Network.AWS.EC2.DeleteVPNGateway" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "DeleteVPNGateway'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_dvgDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) (S1 (MetaSel (Just Symbol "_dvgVPNGatewayId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs DeleteVPNGateway # 

Request Lenses

dvgDryRun :: Lens' DeleteVPNGateway (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 .

dvgVPNGatewayId :: Lens' DeleteVPNGateway Text #

The ID of the virtual private gateway.

Destructuring the Response

deleteVPNGatewayResponse :: DeleteVPNGatewayResponse #

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

data DeleteVPNGatewayResponse #

See: deleteVPNGatewayResponse smart constructor.

Instances

Eq DeleteVPNGatewayResponse # 
Data DeleteVPNGatewayResponse # 

Methods

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

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

toConstr :: DeleteVPNGatewayResponse -> Constr #

dataTypeOf :: DeleteVPNGatewayResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteVPNGatewayResponse # 
Show DeleteVPNGatewayResponse # 
Generic DeleteVPNGatewayResponse # 
NFData DeleteVPNGatewayResponse # 
type Rep DeleteVPNGatewayResponse # 
type Rep DeleteVPNGatewayResponse = D1 (MetaData "DeleteVPNGatewayResponse" "Network.AWS.EC2.DeleteVPNGateway" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "DeleteVPNGatewayResponse'" PrefixI False) U1)