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

Contents

Description

Deletes the specified customer gateway. You must delete the VPN connection before you can delete the customer gateway.

Synopsis

Creating a Request

deleteCustomerGateway #

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

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

  • dcgcDryRun - 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 .
  • dcgcCustomerGatewayId - The ID of the customer gateway.

data DeleteCustomerGateway #

Contains the parameters for DeleteCustomerGateway.

See: deleteCustomerGateway smart constructor.

Instances

Eq DeleteCustomerGateway # 
Data DeleteCustomerGateway # 

Methods

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

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

toConstr :: DeleteCustomerGateway -> Constr #

dataTypeOf :: DeleteCustomerGateway -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteCustomerGateway # 
Show DeleteCustomerGateway # 
Generic DeleteCustomerGateway # 
Hashable DeleteCustomerGateway # 
NFData DeleteCustomerGateway # 

Methods

rnf :: DeleteCustomerGateway -> () #

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

Request Lenses

dcgcDryRun :: Lens' DeleteCustomerGateway (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 .

dcgcCustomerGatewayId :: Lens' DeleteCustomerGateway Text #

The ID of the customer gateway.

Destructuring the Response

deleteCustomerGatewayResponse :: DeleteCustomerGatewayResponse #

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

data DeleteCustomerGatewayResponse #

See: deleteCustomerGatewayResponse smart constructor.

Instances

Eq DeleteCustomerGatewayResponse # 
Data DeleteCustomerGatewayResponse # 

Methods

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

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

toConstr :: DeleteCustomerGatewayResponse -> Constr #

dataTypeOf :: DeleteCustomerGatewayResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

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