amazonka-ec2-1.6.1: 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 # 
Instance details

Defined in Network.AWS.EC2.DeleteVPNConnection

Data DeleteVPNConnection Source # 
Instance details

Defined in Network.AWS.EC2.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 Source # 
Instance details

Defined in Network.AWS.EC2.DeleteVPNConnection

Show DeleteVPNConnection Source # 
Instance details

Defined in Network.AWS.EC2.DeleteVPNConnection

Generic DeleteVPNConnection Source # 
Instance details

Defined in Network.AWS.EC2.DeleteVPNConnection

Associated Types

type Rep DeleteVPNConnection :: Type -> Type #

Hashable DeleteVPNConnection Source # 
Instance details

Defined in Network.AWS.EC2.DeleteVPNConnection

AWSRequest DeleteVPNConnection Source # 
Instance details

Defined in Network.AWS.EC2.DeleteVPNConnection

Associated Types

type Rs DeleteVPNConnection :: Type #

ToHeaders DeleteVPNConnection Source # 
Instance details

Defined in Network.AWS.EC2.DeleteVPNConnection

ToPath DeleteVPNConnection Source # 
Instance details

Defined in Network.AWS.EC2.DeleteVPNConnection

ToQuery DeleteVPNConnection Source # 
Instance details

Defined in Network.AWS.EC2.DeleteVPNConnection

NFData DeleteVPNConnection Source # 
Instance details

Defined in Network.AWS.EC2.DeleteVPNConnection

Methods

rnf :: DeleteVPNConnection -> () #

type Rep DeleteVPNConnection Source # 
Instance details

Defined in Network.AWS.EC2.DeleteVPNConnection

type Rep DeleteVPNConnection = D1 (MetaData "DeleteVPNConnection" "Network.AWS.EC2.DeleteVPNConnection" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "DeleteVPNConnection'" PrefixI True) (S1 (MetaSel (Just "_dvcDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_dvcVPNConnectionId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Rs DeleteVPNConnection Source # 
Instance details

Defined in Network.AWS.EC2.DeleteVPNConnection

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 # 
Instance details

Defined in Network.AWS.EC2.DeleteVPNConnection

Data DeleteVPNConnectionResponse Source # 
Instance details

Defined in Network.AWS.EC2.DeleteVPNConnection

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 # 
Instance details

Defined in Network.AWS.EC2.DeleteVPNConnection

Show DeleteVPNConnectionResponse Source # 
Instance details

Defined in Network.AWS.EC2.DeleteVPNConnection

Generic DeleteVPNConnectionResponse Source # 
Instance details

Defined in Network.AWS.EC2.DeleteVPNConnection

Associated Types

type Rep DeleteVPNConnectionResponse :: Type -> Type #

NFData DeleteVPNConnectionResponse Source # 
Instance details

Defined in Network.AWS.EC2.DeleteVPNConnection

type Rep DeleteVPNConnectionResponse Source # 
Instance details

Defined in Network.AWS.EC2.DeleteVPNConnection

type Rep DeleteVPNConnectionResponse = D1 (MetaData "DeleteVPNConnectionResponse" "Network.AWS.EC2.DeleteVPNConnection" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "DeleteVPNConnectionResponse'" PrefixI False) (U1 :: Type -> Type))