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

Contents

Description

Attaches a virtual private gateway to a VPC. You can attach one virtual private gateway to one VPC at a time.

For more information, see AWS Managed VPN Connections in the Amazon Virtual Private Cloud User Guide .

Synopsis

Creating a Request

attachVPNGateway Source #

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

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

  • avgDryRun - 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 .
  • avgVPCId - The ID of the VPC.
  • avgVPNGatewayId - The ID of the virtual private gateway.

data AttachVPNGateway Source #

Contains the parameters for AttachVpnGateway.

See: attachVPNGateway smart constructor.

Instances
Eq AttachVPNGateway Source # 
Instance details

Defined in Network.AWS.EC2.AttachVPNGateway

Data AttachVPNGateway Source # 
Instance details

Defined in Network.AWS.EC2.AttachVPNGateway

Methods

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

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

toConstr :: AttachVPNGateway -> Constr #

dataTypeOf :: AttachVPNGateway -> DataType #

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

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

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

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

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

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

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

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

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

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

Read AttachVPNGateway Source # 
Instance details

Defined in Network.AWS.EC2.AttachVPNGateway

Show AttachVPNGateway Source # 
Instance details

Defined in Network.AWS.EC2.AttachVPNGateway

Generic AttachVPNGateway Source # 
Instance details

Defined in Network.AWS.EC2.AttachVPNGateway

Associated Types

type Rep AttachVPNGateway :: Type -> Type #

Hashable AttachVPNGateway Source # 
Instance details

Defined in Network.AWS.EC2.AttachVPNGateway

AWSRequest AttachVPNGateway Source # 
Instance details

Defined in Network.AWS.EC2.AttachVPNGateway

Associated Types

type Rs AttachVPNGateway :: Type #

ToHeaders AttachVPNGateway Source # 
Instance details

Defined in Network.AWS.EC2.AttachVPNGateway

ToPath AttachVPNGateway Source # 
Instance details

Defined in Network.AWS.EC2.AttachVPNGateway

ToQuery AttachVPNGateway Source # 
Instance details

Defined in Network.AWS.EC2.AttachVPNGateway

NFData AttachVPNGateway Source # 
Instance details

Defined in Network.AWS.EC2.AttachVPNGateway

Methods

rnf :: AttachVPNGateway -> () #

type Rep AttachVPNGateway Source # 
Instance details

Defined in Network.AWS.EC2.AttachVPNGateway

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

Defined in Network.AWS.EC2.AttachVPNGateway

Request Lenses

avgDryRun :: Lens' AttachVPNGateway (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 .

avgVPNGatewayId :: Lens' AttachVPNGateway Text Source #

The ID of the virtual private gateway.

Destructuring the Response

attachVPNGatewayResponse Source #

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

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

data AttachVPNGatewayResponse Source #

Contains the output of AttachVpnGateway.

See: attachVPNGatewayResponse smart constructor.

Instances
Eq AttachVPNGatewayResponse Source # 
Instance details

Defined in Network.AWS.EC2.AttachVPNGateway

Data AttachVPNGatewayResponse Source # 
Instance details

Defined in Network.AWS.EC2.AttachVPNGateway

Methods

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

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

toConstr :: AttachVPNGatewayResponse -> Constr #

dataTypeOf :: AttachVPNGatewayResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read AttachVPNGatewayResponse Source # 
Instance details

Defined in Network.AWS.EC2.AttachVPNGateway

Show AttachVPNGatewayResponse Source # 
Instance details

Defined in Network.AWS.EC2.AttachVPNGateway

Generic AttachVPNGatewayResponse Source # 
Instance details

Defined in Network.AWS.EC2.AttachVPNGateway

Associated Types

type Rep AttachVPNGatewayResponse :: Type -> Type #

NFData AttachVPNGatewayResponse Source # 
Instance details

Defined in Network.AWS.EC2.AttachVPNGateway

type Rep AttachVPNGatewayResponse Source # 
Instance details

Defined in Network.AWS.EC2.AttachVPNGateway

type Rep AttachVPNGatewayResponse = D1 (MetaData "AttachVPNGatewayResponse" "Network.AWS.EC2.AttachVPNGateway" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "AttachVPNGatewayResponse'" PrefixI True) (S1 (MetaSel (Just "_avgrsVPCAttachment") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe VPCAttachment)) :*: S1 (MetaSel (Just "_avgrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses