amazonka-ec2-1.4.3: 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.DetachVPNGateway

Contents

Description

Detaches a virtual private gateway from a VPC. You do this if you're planning to turn off the VPC and not use it anymore. You can confirm a virtual private gateway has been completely detached from a VPC by describing the virtual private gateway (any attachments to the virtual private gateway are also described).

You must wait for the attachment's state to switch to detached before you can delete the VPC or attach a different VPC to the virtual private gateway.

Synopsis

Creating a Request

detachVPNGateway Source #

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

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

data DetachVPNGateway Source #

Contains the parameters for DetachVpnGateway.

See: detachVPNGateway smart constructor.

Instances

Eq DetachVPNGateway Source # 
Data DetachVPNGateway Source # 

Methods

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

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

toConstr :: DetachVPNGateway -> Constr #

dataTypeOf :: DetachVPNGateway -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DetachVPNGateway Source # 
Show DetachVPNGateway Source # 
Generic DetachVPNGateway Source # 
Hashable DetachVPNGateway Source # 
NFData DetachVPNGateway Source # 

Methods

rnf :: DetachVPNGateway -> () #

AWSRequest DetachVPNGateway Source # 
ToQuery DetachVPNGateway Source # 
ToPath DetachVPNGateway Source # 
ToHeaders DetachVPNGateway Source # 
type Rep DetachVPNGateway Source # 
type Rep DetachVPNGateway = D1 (MetaData "DetachVPNGateway" "Network.AWS.EC2.DetachVPNGateway" "amazonka-ec2-1.4.3-IOmvt8owjDkAgcWNrchie1" False) (C1 (MetaCons "DetachVPNGateway'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_dvpngDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) ((:*:) (S1 (MetaSel (Just Symbol "_dvpngVPNGatewayId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_dvpngVPCId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs DetachVPNGateway Source # 

Request Lenses

dvpngDryRun :: Lens' DetachVPNGateway (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.

dvpngVPNGatewayId :: Lens' DetachVPNGateway Text Source #

The ID of the virtual private gateway.

Destructuring the Response

detachVPNGatewayResponse :: DetachVPNGatewayResponse Source #

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

data DetachVPNGatewayResponse Source #

See: detachVPNGatewayResponse smart constructor.

Instances

Eq DetachVPNGatewayResponse Source # 
Data DetachVPNGatewayResponse Source # 

Methods

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

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

toConstr :: DetachVPNGatewayResponse -> Constr #

dataTypeOf :: DetachVPNGatewayResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DetachVPNGatewayResponse Source # 
Show DetachVPNGatewayResponse Source # 
Generic DetachVPNGatewayResponse Source # 
NFData DetachVPNGatewayResponse Source # 
type Rep DetachVPNGatewayResponse Source # 
type Rep DetachVPNGatewayResponse = D1 (MetaData "DetachVPNGatewayResponse" "Network.AWS.EC2.DetachVPNGateway" "amazonka-ec2-1.4.3-IOmvt8owjDkAgcWNrchie1" False) (C1 (MetaCons "DetachVPNGatewayResponse'" PrefixI False) U1)