amazonka-ec2-1.6.0: Amazon Elastic Compute Cloud SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@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 Source #

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

Contains the parameters for DeleteVpnConnection.

See: deleteVPNConnection smart constructor.

Instances

Eq DeleteVPNConnection Source # 
Data DeleteVPNConnection Source # 

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

Methods

rnf :: DeleteVPNConnection -> () #

AWSRequest DeleteVPNConnection Source # 
ToHeaders DeleteVPNConnection Source # 
ToPath DeleteVPNConnection Source # 
ToQuery DeleteVPNConnection Source # 
type Rep DeleteVPNConnection Source # 
type Rep DeleteVPNConnection = D1 * (MetaData "DeleteVPNConnection" "Network.AWS.EC2.DeleteVPNConnection" "amazonka-ec2-1.6.0-Kkew7Kpgof6EYi20Z0WOzs" 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 Source # 

Request Lenses

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

dvcVPNConnectionId :: Lens' DeleteVPNConnection Text Source #

The ID of the VPN connection.

Destructuring the Response

deleteVPNConnectionResponse :: DeleteVPNConnectionResponse Source #

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

data DeleteVPNConnectionResponse Source #

See: deleteVPNConnectionResponse smart constructor.

Instances

Eq DeleteVPNConnectionResponse Source # 
Data DeleteVPNConnectionResponse Source # 

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 Source # 
Show DeleteVPNConnectionResponse Source # 
Generic DeleteVPNConnectionResponse Source # 
NFData DeleteVPNConnectionResponse Source # 
type Rep DeleteVPNConnectionResponse Source # 
type Rep DeleteVPNConnectionResponse = D1 * (MetaData "DeleteVPNConnectionResponse" "Network.AWS.EC2.DeleteVPNConnection" "amazonka-ec2-1.6.0-Kkew7Kpgof6EYi20Z0WOzs" False) (C1 * (MetaCons "DeleteVPNConnectionResponse'" PrefixI False) (U1 *))