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

Defined in Network.AWS.EC2.DeleteCustomerGateway

Data DeleteCustomerGateway Source # 
Instance details

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

Defined in Network.AWS.EC2.DeleteCustomerGateway

Show DeleteCustomerGateway Source # 
Instance details

Defined in Network.AWS.EC2.DeleteCustomerGateway

Generic DeleteCustomerGateway Source # 
Instance details

Defined in Network.AWS.EC2.DeleteCustomerGateway

Associated Types

type Rep DeleteCustomerGateway :: Type -> Type #

Hashable DeleteCustomerGateway Source # 
Instance details

Defined in Network.AWS.EC2.DeleteCustomerGateway

AWSRequest DeleteCustomerGateway Source # 
Instance details

Defined in Network.AWS.EC2.DeleteCustomerGateway

Associated Types

type Rs DeleteCustomerGateway :: Type #

ToHeaders DeleteCustomerGateway Source # 
Instance details

Defined in Network.AWS.EC2.DeleteCustomerGateway

ToPath DeleteCustomerGateway Source # 
Instance details

Defined in Network.AWS.EC2.DeleteCustomerGateway

ToQuery DeleteCustomerGateway Source # 
Instance details

Defined in Network.AWS.EC2.DeleteCustomerGateway

NFData DeleteCustomerGateway Source # 
Instance details

Defined in Network.AWS.EC2.DeleteCustomerGateway

Methods

rnf :: DeleteCustomerGateway -> () #

type Rep DeleteCustomerGateway Source # 
Instance details

Defined in Network.AWS.EC2.DeleteCustomerGateway

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

Defined in Network.AWS.EC2.DeleteCustomerGateway

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

Defined in Network.AWS.EC2.DeleteCustomerGateway

Data DeleteCustomerGatewayResponse Source # 
Instance details

Defined in Network.AWS.EC2.DeleteCustomerGateway

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

Defined in Network.AWS.EC2.DeleteCustomerGateway

Show DeleteCustomerGatewayResponse Source # 
Instance details

Defined in Network.AWS.EC2.DeleteCustomerGateway

Generic DeleteCustomerGatewayResponse Source # 
Instance details

Defined in Network.AWS.EC2.DeleteCustomerGateway

Associated Types

type Rep DeleteCustomerGatewayResponse :: Type -> Type #

NFData DeleteCustomerGatewayResponse Source # 
Instance details

Defined in Network.AWS.EC2.DeleteCustomerGateway

type Rep DeleteCustomerGatewayResponse Source # 
Instance details

Defined in Network.AWS.EC2.DeleteCustomerGateway

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