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

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:

  • dvpngDryRun - 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 - The ID of the virtual private gateway.
  • dvpngVPCId - The ID of the VPC.

data DetachVPNGateway #

Contains the parameters for DetachVpnGateway.

See: detachVPNGateway smart constructor.

Instances

Eq DetachVPNGateway # 
Data DetachVPNGateway # 

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

Methods

rnf :: DetachVPNGateway -> () #

AWSRequest DetachVPNGateway # 
ToQuery DetachVPNGateway # 
ToPath DetachVPNGateway # 
ToHeaders DetachVPNGateway # 
type Rep DetachVPNGateway # 
type Rep DetachVPNGateway = D1 (MetaData "DetachVPNGateway" "Network.AWS.EC2.DetachVPNGateway" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" 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 # 

Request Lenses

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

dvpngVPNGatewayId :: Lens' DetachVPNGateway Text #

The ID of the virtual private gateway.

dvpngVPCId :: Lens' DetachVPNGateway Text #

The ID of the VPC.

Destructuring the Response

detachVPNGatewayResponse :: DetachVPNGatewayResponse #

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

data DetachVPNGatewayResponse #

See: detachVPNGatewayResponse smart constructor.

Instances

Eq DetachVPNGatewayResponse # 
Data DetachVPNGatewayResponse # 

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 # 
Show DetachVPNGatewayResponse # 
Generic DetachVPNGatewayResponse # 
NFData DetachVPNGatewayResponse # 
type Rep DetachVPNGatewayResponse # 
type Rep DetachVPNGatewayResponse = D1 (MetaData "DetachVPNGatewayResponse" "Network.AWS.EC2.DetachVPNGateway" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "DetachVPNGatewayResponse'" PrefixI False) U1)