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

Defined in Network.AWS.EC2.DeleteVPNGateway

Data DeleteVPNGateway # 
Instance details

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

Defined in Network.AWS.EC2.DeleteVPNGateway

Show DeleteVPNGateway # 
Instance details

Defined in Network.AWS.EC2.DeleteVPNGateway

Generic DeleteVPNGateway # 
Instance details

Defined in Network.AWS.EC2.DeleteVPNGateway

Associated Types

type Rep DeleteVPNGateway :: * -> * #

Hashable DeleteVPNGateway # 
Instance details

Defined in Network.AWS.EC2.DeleteVPNGateway

AWSRequest DeleteVPNGateway # 
Instance details

Defined in Network.AWS.EC2.DeleteVPNGateway

Associated Types

type Rs DeleteVPNGateway :: * #

ToHeaders DeleteVPNGateway # 
Instance details

Defined in Network.AWS.EC2.DeleteVPNGateway

ToPath DeleteVPNGateway # 
Instance details

Defined in Network.AWS.EC2.DeleteVPNGateway

ToQuery DeleteVPNGateway # 
Instance details

Defined in Network.AWS.EC2.DeleteVPNGateway

NFData DeleteVPNGateway # 
Instance details

Defined in Network.AWS.EC2.DeleteVPNGateway

Methods

rnf :: DeleteVPNGateway -> () #

type Rep DeleteVPNGateway # 
Instance details

Defined in Network.AWS.EC2.DeleteVPNGateway

type Rep DeleteVPNGateway = D1 (MetaData "DeleteVPNGateway" "Network.AWS.EC2.DeleteVPNGateway" "amazonka-ec2-1.6.0-G6ppxISnQxeI7PhDx9p8Zy" False) (C1 (MetaCons "DeleteVPNGateway'" PrefixI True) (S1 (MetaSel (Just "_dvgDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_dvgVPNGatewayId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Rs DeleteVPNGateway # 
Instance details

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

Defined in Network.AWS.EC2.DeleteVPNGateway

Data DeleteVPNGatewayResponse # 
Instance details

Defined in Network.AWS.EC2.DeleteVPNGateway

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

Defined in Network.AWS.EC2.DeleteVPNGateway

Show DeleteVPNGatewayResponse # 
Instance details

Defined in Network.AWS.EC2.DeleteVPNGateway

Generic DeleteVPNGatewayResponse # 
Instance details

Defined in Network.AWS.EC2.DeleteVPNGateway

Associated Types

type Rep DeleteVPNGatewayResponse :: * -> * #

NFData DeleteVPNGatewayResponse # 
Instance details

Defined in Network.AWS.EC2.DeleteVPNGateway

type Rep DeleteVPNGatewayResponse # 
Instance details

Defined in Network.AWS.EC2.DeleteVPNGateway

type Rep DeleteVPNGatewayResponse = D1 (MetaData "DeleteVPNGatewayResponse" "Network.AWS.EC2.DeleteVPNGateway" "amazonka-ec2-1.6.0-G6ppxISnQxeI7PhDx9p8Zy" False) (C1 (MetaCons "DeleteVPNGatewayResponse'" PrefixI False) (U1 :: * -> *))