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

Contents

Description

Attaches a virtual private gateway to a VPC. For more information, see Adding a Hardware Virtual Private Gateway to Your VPC in the Amazon Virtual Private Cloud User Guide .

Synopsis

Creating a Request

attachVPNGateway #

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

data AttachVPNGateway #

Contains the parameters for AttachVpnGateway.

See: attachVPNGateway smart constructor.

Instances

Eq AttachVPNGateway # 
Data 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 # 
Show AttachVPNGateway # 
Generic AttachVPNGateway # 
Hashable AttachVPNGateway # 
NFData AttachVPNGateway # 

Methods

rnf :: AttachVPNGateway -> () #

AWSRequest AttachVPNGateway # 
ToQuery AttachVPNGateway # 
ToPath AttachVPNGateway # 
ToHeaders AttachVPNGateway # 
type Rep AttachVPNGateway # 
type Rep AttachVPNGateway = D1 (MetaData "AttachVPNGateway" "Network.AWS.EC2.AttachVPNGateway" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "AttachVPNGateway'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_avgDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) ((:*:) (S1 (MetaSel (Just Symbol "_avgVPNGatewayId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_avgVPCId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs AttachVPNGateway # 

Request Lenses

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

avgVPNGatewayId :: Lens' AttachVPNGateway Text #

The ID of the virtual private gateway.

avgVPCId :: Lens' AttachVPNGateway Text #

The ID of the VPC.

Destructuring the Response

attachVPNGatewayResponse #

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 #

Contains the output of AttachVpnGateway.

See: attachVPNGatewayResponse smart constructor.

Instances

Eq AttachVPNGatewayResponse # 
Data AttachVPNGatewayResponse # 

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 # 
Show AttachVPNGatewayResponse # 
Generic AttachVPNGatewayResponse # 
NFData AttachVPNGatewayResponse # 
type Rep AttachVPNGatewayResponse # 
type Rep AttachVPNGatewayResponse = D1 (MetaData "AttachVPNGatewayResponse" "Network.AWS.EC2.AttachVPNGateway" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "AttachVPNGatewayResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_avgrsVPCAttachment") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe VPCAttachment))) (S1 (MetaSel (Just Symbol "_avgrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses

avgrsResponseStatus :: Lens' AttachVPNGatewayResponse Int #

  • - | The response status code.