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

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

data DetachVPNGateway Source #

Contains the parameters for DetachVpnGateway.

See: detachVPNGateway smart constructor.

Instances
Eq DetachVPNGateway Source # 
Instance details

Defined in Network.AWS.EC2.DetachVPNGateway

Data DetachVPNGateway Source # 
Instance details

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

Defined in Network.AWS.EC2.DetachVPNGateway

Show DetachVPNGateway Source # 
Instance details

Defined in Network.AWS.EC2.DetachVPNGateway

Generic DetachVPNGateway Source # 
Instance details

Defined in Network.AWS.EC2.DetachVPNGateway

Associated Types

type Rep DetachVPNGateway :: Type -> Type #

Hashable DetachVPNGateway Source # 
Instance details

Defined in Network.AWS.EC2.DetachVPNGateway

AWSRequest DetachVPNGateway Source # 
Instance details

Defined in Network.AWS.EC2.DetachVPNGateway

Associated Types

type Rs DetachVPNGateway :: Type #

ToHeaders DetachVPNGateway Source # 
Instance details

Defined in Network.AWS.EC2.DetachVPNGateway

ToPath DetachVPNGateway Source # 
Instance details

Defined in Network.AWS.EC2.DetachVPNGateway

ToQuery DetachVPNGateway Source # 
Instance details

Defined in Network.AWS.EC2.DetachVPNGateway

NFData DetachVPNGateway Source # 
Instance details

Defined in Network.AWS.EC2.DetachVPNGateway

Methods

rnf :: DetachVPNGateway -> () #

type Rep DetachVPNGateway Source # 
Instance details

Defined in Network.AWS.EC2.DetachVPNGateway

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

Defined in Network.AWS.EC2.DetachVPNGateway

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

Defined in Network.AWS.EC2.DetachVPNGateway

Data DetachVPNGatewayResponse Source # 
Instance details

Defined in Network.AWS.EC2.DetachVPNGateway

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

Defined in Network.AWS.EC2.DetachVPNGateway

Show DetachVPNGatewayResponse Source # 
Instance details

Defined in Network.AWS.EC2.DetachVPNGateway

Generic DetachVPNGatewayResponse Source # 
Instance details

Defined in Network.AWS.EC2.DetachVPNGateway

Associated Types

type Rep DetachVPNGatewayResponse :: Type -> Type #

NFData DetachVPNGatewayResponse Source # 
Instance details

Defined in Network.AWS.EC2.DetachVPNGateway

type Rep DetachVPNGatewayResponse Source # 
Instance details

Defined in Network.AWS.EC2.DetachVPNGateway

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