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

Contents

Description

Deletes the specified VPN connection.

If you're deleting the VPC and its associated components, we recommend that you detach the virtual private gateway from the VPC and delete the VPC before deleting the VPN connection. If you believe that the tunnel credentials for your VPN connection have been compromised, you can delete the VPN connection and create a new one that has new keys, without needing to delete the VPC or virtual private gateway. If you create a new VPN connection, you must reconfigure the customer gateway using the new configuration information returned with the new VPN connection ID.

Synopsis

Creating a Request

deleteVPNConnection #

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

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

  • dvcDryRun - 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 .
  • dvcVPNConnectionId - The ID of the VPN connection.

data DeleteVPNConnection #

Contains the parameters for DeleteVpnConnection.

See: deleteVPNConnection smart constructor.

Instances

Eq DeleteVPNConnection # 
Data DeleteVPNConnection # 

Methods

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

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

toConstr :: DeleteVPNConnection -> Constr #

dataTypeOf :: DeleteVPNConnection -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteVPNConnection # 
Show DeleteVPNConnection # 
Generic DeleteVPNConnection # 
Hashable DeleteVPNConnection # 
NFData DeleteVPNConnection # 

Methods

rnf :: DeleteVPNConnection -> () #

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

Request Lenses

dvcDryRun :: Lens' DeleteVPNConnection (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 .

dvcVPNConnectionId :: Lens' DeleteVPNConnection Text #

The ID of the VPN connection.

Destructuring the Response

deleteVPNConnectionResponse :: DeleteVPNConnectionResponse #

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

data DeleteVPNConnectionResponse #

See: deleteVPNConnectionResponse smart constructor.

Instances

Eq DeleteVPNConnectionResponse # 
Data DeleteVPNConnectionResponse # 

Methods

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

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

toConstr :: DeleteVPNConnectionResponse -> Constr #

dataTypeOf :: DeleteVPNConnectionResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

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