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.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 AWS Managed VPN Connections 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:

  • cvgAmazonSideASN - A private Autonomous System Number (ASN) for the Amazon side of a BGP session. If you're using a 16-bit ASN, it must be in the 64512 to 65534 range. If you're using a 32-bit ASN, it must be in the 4200000000 to 4294967294 range. Default: 64512
  • 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 Source #

Contains the parameters for CreateVpnGateway.

See: createVPNGateway smart constructor.

Instances
Eq CreateVPNGateway Source # 
Instance details

Defined in Network.AWS.EC2.CreateVPNGateway

Data CreateVPNGateway Source # 
Instance details

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

Defined in Network.AWS.EC2.CreateVPNGateway

Show CreateVPNGateway Source # 
Instance details

Defined in Network.AWS.EC2.CreateVPNGateway

Generic CreateVPNGateway Source # 
Instance details

Defined in Network.AWS.EC2.CreateVPNGateway

Associated Types

type Rep CreateVPNGateway :: Type -> Type #

Hashable CreateVPNGateway Source # 
Instance details

Defined in Network.AWS.EC2.CreateVPNGateway

AWSRequest CreateVPNGateway Source # 
Instance details

Defined in Network.AWS.EC2.CreateVPNGateway

Associated Types

type Rs CreateVPNGateway :: Type #

ToHeaders CreateVPNGateway Source # 
Instance details

Defined in Network.AWS.EC2.CreateVPNGateway

ToPath CreateVPNGateway Source # 
Instance details

Defined in Network.AWS.EC2.CreateVPNGateway

ToQuery CreateVPNGateway Source # 
Instance details

Defined in Network.AWS.EC2.CreateVPNGateway

NFData CreateVPNGateway Source # 
Instance details

Defined in Network.AWS.EC2.CreateVPNGateway

Methods

rnf :: CreateVPNGateway -> () #

type Rep CreateVPNGateway Source # 
Instance details

Defined in Network.AWS.EC2.CreateVPNGateway

type Rep CreateVPNGateway = D1 (MetaData "CreateVPNGateway" "Network.AWS.EC2.CreateVPNGateway" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "CreateVPNGateway'" PrefixI True) ((S1 (MetaSel (Just "_cvgAmazonSideASN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Integer)) :*: S1 (MetaSel (Just "_cvgAvailabilityZone") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_cvgDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_cvgType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 GatewayType))))
type Rs CreateVPNGateway Source # 
Instance details

Defined in Network.AWS.EC2.CreateVPNGateway

Request Lenses

cvgAmazonSideASN :: Lens' CreateVPNGateway (Maybe Integer) Source #

A private Autonomous System Number (ASN) for the Amazon side of a BGP session. If you're using a 16-bit ASN, it must be in the 64512 to 65534 range. If you're using a 32-bit ASN, it must be in the 4200000000 to 4294967294 range. Default: 64512

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

Defined in Network.AWS.EC2.CreateVPNGateway

Data CreateVPNGatewayResponse Source # 
Instance details

Defined in Network.AWS.EC2.CreateVPNGateway

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

Defined in Network.AWS.EC2.CreateVPNGateway

Show CreateVPNGatewayResponse Source # 
Instance details

Defined in Network.AWS.EC2.CreateVPNGateway

Generic CreateVPNGatewayResponse Source # 
Instance details

Defined in Network.AWS.EC2.CreateVPNGateway

Associated Types

type Rep CreateVPNGatewayResponse :: Type -> Type #

NFData CreateVPNGatewayResponse Source # 
Instance details

Defined in Network.AWS.EC2.CreateVPNGateway

type Rep CreateVPNGatewayResponse Source # 
Instance details

Defined in Network.AWS.EC2.CreateVPNGateway

type Rep CreateVPNGatewayResponse = D1 (MetaData "CreateVPNGatewayResponse" "Network.AWS.EC2.CreateVPNGateway" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "CreateVPNGatewayResponse'" PrefixI True) (S1 (MetaSel (Just "_cvgrsVPNGateway") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe VPNGateway)) :*: S1 (MetaSel (Just "_cvgrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses

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

Information about the virtual private gateway.