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

Contents

Description

Creates a virtual private gateway. A virtual private gateway is the endpoint on the VPC side of your VPN connection. You can create a virtual private gateway before creating the VPC itself.

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

Synopsis

Creating a Request

createVPNGateway #

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

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

  • cvgAvailabilityZone - The Availability Zone for the virtual private gateway.
  • cvgDryRun - 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 .
  • cvgType - The type of VPN connection this virtual private gateway supports.

data CreateVPNGateway #

Contains the parameters for CreateVpnGateway.

See: createVPNGateway smart constructor.

Instances

Eq CreateVPNGateway # 
Data CreateVPNGateway # 

Methods

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

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

toConstr :: CreateVPNGateway -> Constr #

dataTypeOf :: CreateVPNGateway -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateVPNGateway # 
Show CreateVPNGateway # 
Generic CreateVPNGateway # 
Hashable CreateVPNGateway # 
NFData CreateVPNGateway # 

Methods

rnf :: CreateVPNGateway -> () #

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

Request Lenses

cvgAvailabilityZone :: Lens' CreateVPNGateway (Maybe Text) #

The Availability Zone for the virtual private gateway.

cvgDryRun :: Lens' CreateVPNGateway (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 .

cvgType :: Lens' CreateVPNGateway GatewayType #

The type of VPN connection this virtual private gateway supports.

Destructuring the Response

createVPNGatewayResponse #

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

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

data CreateVPNGatewayResponse #

Contains the output of CreateVpnGateway.

See: createVPNGatewayResponse smart constructor.

Instances

Eq CreateVPNGatewayResponse # 
Data CreateVPNGatewayResponse # 

Methods

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

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

toConstr :: CreateVPNGatewayResponse -> Constr #

dataTypeOf :: CreateVPNGatewayResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateVPNGatewayResponse # 
Show CreateVPNGatewayResponse # 
Generic CreateVPNGatewayResponse # 
NFData CreateVPNGatewayResponse # 
type Rep CreateVPNGatewayResponse # 
type Rep CreateVPNGatewayResponse = D1 (MetaData "CreateVPNGatewayResponse" "Network.AWS.EC2.CreateVPNGateway" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "CreateVPNGatewayResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_cvgrsVPNGateway") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe VPNGateway))) (S1 (MetaSel (Just Symbol "_cvgrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses

cvgrsVPNGateway :: Lens' CreateVPNGatewayResponse (Maybe VPNGateway) #

Information about the virtual private gateway.

cvgrsResponseStatus :: Lens' CreateVPNGatewayResponse Int #

  • - | The response status code.