amazonka-ec2-1.4.2: 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 Source #

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:

data CreateVPNGateway Source #

Contains the parameters for CreateVpnGateway.

See: createVPNGateway smart constructor.

Instances

Eq CreateVPNGateway Source # 
Data CreateVPNGateway Source # 

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

Methods

rnf :: CreateVPNGateway -> () #

AWSRequest CreateVPNGateway Source # 
ToPath CreateVPNGateway Source # 
ToHeaders CreateVPNGateway Source # 
ToQuery CreateVPNGateway Source # 
type Rep CreateVPNGateway Source # 
type Rep CreateVPNGateway = D1 (MetaData "CreateVPNGateway" "Network.AWS.EC2.CreateVPNGateway" "amazonka-ec2-1.4.2-6EJAAVBh1q13dHrwE82a1F" 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 DecidedStrict) (Rec0 GatewayType)))))
type Rs CreateVPNGateway Source # 

Request Lenses

cvgAvailabilityZone :: Lens' CreateVPNGateway (Maybe Text) Source #

The Availability Zone for the virtual private gateway.

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

cvgType :: Lens' CreateVPNGateway GatewayType Source #

The type of VPN connection this virtual private gateway supports.

Destructuring the Response

createVPNGatewayResponse Source #

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

Contains the output of CreateVpnGateway.

See: createVPNGatewayResponse smart constructor.

Instances

Eq CreateVPNGatewayResponse Source # 
Data CreateVPNGatewayResponse Source # 

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 Source # 
Show CreateVPNGatewayResponse Source # 
Generic CreateVPNGatewayResponse Source # 
NFData CreateVPNGatewayResponse Source # 
type Rep CreateVPNGatewayResponse Source # 
type Rep CreateVPNGatewayResponse = D1 (MetaData "CreateVPNGatewayResponse" "Network.AWS.EC2.CreateVPNGateway" "amazonka-ec2-1.4.2-6EJAAVBh1q13dHrwE82a1F" False) (C1 (MetaCons "CreateVPNGatewayResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_cvgrsVPNGateway") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe VPNGateway))) (S1 (MetaSel (Just Symbol "_cvgrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

cvgrsVPNGateway :: Lens' CreateVPNGatewayResponse (Maybe VPNGateway) Source #

Information about the virtual private gateway.