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

Copyright(c) 2013-2017 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.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 Source #

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

Contains the parameters for DeleteCustomerGateway.

See: deleteCustomerGateway smart constructor.

Instances

Eq DeleteCustomerGateway Source # 
Data DeleteCustomerGateway Source # 

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

Methods

rnf :: DeleteCustomerGateway -> () #

AWSRequest DeleteCustomerGateway Source # 
ToQuery DeleteCustomerGateway Source # 
ToPath DeleteCustomerGateway Source # 
ToHeaders DeleteCustomerGateway Source # 
type Rep DeleteCustomerGateway Source # 
type Rep DeleteCustomerGateway = D1 (MetaData "DeleteCustomerGateway" "Network.AWS.EC2.DeleteCustomerGateway" "amazonka-ec2-1.5.0-8IdXK3SzsETDMW2aFpANS9" 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 Source # 

Request Lenses

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

dcgcCustomerGatewayId :: Lens' DeleteCustomerGateway Text Source #

The ID of the customer gateway.

Destructuring the Response

deleteCustomerGatewayResponse :: DeleteCustomerGatewayResponse Source #

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

data DeleteCustomerGatewayResponse Source #

See: deleteCustomerGatewayResponse smart constructor.

Instances

Eq DeleteCustomerGatewayResponse Source # 
Data DeleteCustomerGatewayResponse Source # 

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 Source # 
Show DeleteCustomerGatewayResponse Source # 
Generic DeleteCustomerGatewayResponse Source # 
NFData DeleteCustomerGatewayResponse Source # 
type Rep DeleteCustomerGatewayResponse Source # 
type Rep DeleteCustomerGatewayResponse = D1 (MetaData "DeleteCustomerGatewayResponse" "Network.AWS.EC2.DeleteCustomerGateway" "amazonka-ec2-1.5.0-8IdXK3SzsETDMW2aFpANS9" False) (C1 (MetaCons "DeleteCustomerGatewayResponse'" PrefixI False) U1)