amazonka-gamelift-1.6.0: Amazon GameLift 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.GameLift.CreateVPCPeeringConnection

Contents

Description

Establishes a VPC peering connection between a virtual private cloud (VPC) in an AWS account with the VPC for your Amazon GameLift fleet. VPC peering enables the game servers on your fleet to communicate directly with other AWS resources. You can peer with VPCs in any AWS account that you have access to, including the account that you use to manage your Amazon GameLift fleets. You cannot peer with VPCs that are in different regions. For more information, see VPC Peering with Amazon GameLift Fleets .

Before calling this operation to establish the peering connection, you first need to call CreateVpcPeeringAuthorization and identify the VPC you want to peer with. Once the authorization for the specified VPC is issued, you have 24 hours to establish the connection. These two operations handle all tasks necessary to peer the two VPCs, including acceptance, updating routing tables, etc.

To establish the connection, call this operation from the AWS account that is used to manage the Amazon GameLift fleets. Identify the following values: (1) The ID of the fleet you want to be enable a VPC peering connection for; (2) The AWS account with the VPC that you want to peer with; and (3) The ID of the VPC you want to peer with. This operation is asynchronous. If successful, a VpcPeeringConnection request is created. You can use continuous polling to track the request's status using DescribeVpcPeeringConnections , or by monitoring fleet events for success or failure using DescribeFleetEvents .

VPC peering connection operations include:

  • CreateVpcPeeringAuthorization
  • DescribeVpcPeeringAuthorizations
  • DeleteVpcPeeringAuthorization
  • CreateVpcPeeringConnection
  • DescribeVpcPeeringConnections
  • DeleteVpcPeeringConnection

Synopsis

Creating a Request

createVPCPeeringConnection #

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

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

  • cvpcFleetId - Unique identifier for a fleet. This tells Amazon GameLift which GameLift VPC to peer with.
  • cvpcPeerVPCAWSAccountId - Unique identifier for the AWS account with the VPC that you want to peer your Amazon GameLift fleet with. You can find your Account ID in the AWS Management Console under account settings.
  • cvpcPeerVPCId - Unique identifier for a VPC with resources to be accessed by your Amazon GameLift fleet. The VPC must be in the same region where your fleet is deployed. To get VPC information, including IDs, use the Virtual Private Cloud service tools, including the VPC Dashboard in the AWS Management Console.

data CreateVPCPeeringConnection #

Represents the input for a request action.

See: createVPCPeeringConnection smart constructor.

Instances

Eq CreateVPCPeeringConnection # 
Data CreateVPCPeeringConnection # 

Methods

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

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

toConstr :: CreateVPCPeeringConnection -> Constr #

dataTypeOf :: CreateVPCPeeringConnection -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateVPCPeeringConnection # 
Show CreateVPCPeeringConnection # 
Generic CreateVPCPeeringConnection # 
Hashable CreateVPCPeeringConnection # 
ToJSON CreateVPCPeeringConnection # 
NFData CreateVPCPeeringConnection # 
AWSRequest CreateVPCPeeringConnection # 
ToHeaders CreateVPCPeeringConnection # 
ToPath CreateVPCPeeringConnection # 
ToQuery CreateVPCPeeringConnection # 
type Rep CreateVPCPeeringConnection # 
type Rep CreateVPCPeeringConnection = D1 * (MetaData "CreateVPCPeeringConnection" "Network.AWS.GameLift.CreateVPCPeeringConnection" "amazonka-gamelift-1.6.0-AFaGsb9wXmY9FImAlEHdkb" False) (C1 * (MetaCons "CreateVPCPeeringConnection'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_cvpcFleetId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) ((:*:) * (S1 * (MetaSel (Just Symbol "_cvpcPeerVPCAWSAccountId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_cvpcPeerVPCId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)))))
type Rs CreateVPCPeeringConnection # 

Request Lenses

cvpcFleetId :: Lens' CreateVPCPeeringConnection Text #

Unique identifier for a fleet. This tells Amazon GameLift which GameLift VPC to peer with.

cvpcPeerVPCAWSAccountId :: Lens' CreateVPCPeeringConnection Text #

Unique identifier for the AWS account with the VPC that you want to peer your Amazon GameLift fleet with. You can find your Account ID in the AWS Management Console under account settings.

cvpcPeerVPCId :: Lens' CreateVPCPeeringConnection Text #

Unique identifier for a VPC with resources to be accessed by your Amazon GameLift fleet. The VPC must be in the same region where your fleet is deployed. To get VPC information, including IDs, use the Virtual Private Cloud service tools, including the VPC Dashboard in the AWS Management Console.

Destructuring the Response

createVPCPeeringConnectionResponse #

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

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

data CreateVPCPeeringConnectionResponse #

See: createVPCPeeringConnectionResponse smart constructor.

Instances

Eq CreateVPCPeeringConnectionResponse # 
Data CreateVPCPeeringConnectionResponse # 

Methods

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

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

toConstr :: CreateVPCPeeringConnectionResponse -> Constr #

dataTypeOf :: CreateVPCPeeringConnectionResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateVPCPeeringConnectionResponse # 
Show CreateVPCPeeringConnectionResponse # 
Generic CreateVPCPeeringConnectionResponse # 
NFData CreateVPCPeeringConnectionResponse # 
type Rep CreateVPCPeeringConnectionResponse # 
type Rep CreateVPCPeeringConnectionResponse = D1 * (MetaData "CreateVPCPeeringConnectionResponse" "Network.AWS.GameLift.CreateVPCPeeringConnection" "amazonka-gamelift-1.6.0-AFaGsb9wXmY9FImAlEHdkb" True) (C1 * (MetaCons "CreateVPCPeeringConnectionResponse'" PrefixI True) (S1 * (MetaSel (Just Symbol "_cvpcrsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Int)))

Response Lenses