libZSservicesZSamazonka-gameliftZSamazonka-gamelift
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.GameLift.CreateVpcPeeringAuthorization

Description

Requests authorization to create or delete a peer connection between the VPC for your Amazon GameLift fleet and a virtual private cloud (VPC) in your AWS account. VPC peering enables the game servers on your fleet to communicate directly with other AWS resources. Once you've received authorization, call CreateVpcPeeringConnection to establish the peering connection. For more information, see VPC Peering with Amazon GameLift Fleets.

You can peer with VPCs that are owned by any AWS account 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.

To request authorization to create a connection, call this operation from the AWS account with the VPC that you want to peer to your Amazon GameLift fleet. For example, to enable your game servers to retrieve data from a DynamoDB table, use the account that manages that DynamoDB resource. Identify the following values: (1) The ID of the VPC that you want to peer with, and (2) the ID of the AWS account that you use to manage Amazon GameLift. If successful, VPC peering is authorized for the specified VPC.

To request authorization to delete a connection, call this operation from the AWS account with the VPC that is peered with your Amazon GameLift fleet. Identify the following values: (1) VPC ID that you want to delete the peering connection for, and (2) ID of the AWS account that you use to manage Amazon GameLift.

The authorization remains valid for 24 hours unless it is canceled by a call to DeleteVpcPeeringAuthorization. You must create or delete the peering connection while the authorization is valid.

Related actions

CreateVpcPeeringAuthorization | DescribeVpcPeeringAuthorizations | DeleteVpcPeeringAuthorization | CreateVpcPeeringConnection | DescribeVpcPeeringConnections | DeleteVpcPeeringConnection | All APIs by task

Synopsis

Creating a Request

data CreateVpcPeeringAuthorization Source #

Represents the input for a request operation.

See: newCreateVpcPeeringAuthorization smart constructor.

Constructors

CreateVpcPeeringAuthorization' 

Fields

  • gameLiftAwsAccountId :: Text

    A unique identifier for the AWS account that you use to manage your GameLift fleet. You can find your Account ID in the AWS Management Console under account settings.

  • peerVpcId :: Text

    A unique identifier for a VPC with resources to be accessed by your GameLift fleet. The VPC must be in the same Region as your fleet. To look up a VPC ID, use the VPC Dashboard in the AWS Management Console. Learn more about VPC peering in VPC Peering with GameLift Fleets.

Instances

Instances details
Eq CreateVpcPeeringAuthorization Source # 
Instance details

Defined in Amazonka.GameLift.CreateVpcPeeringAuthorization

Read CreateVpcPeeringAuthorization Source # 
Instance details

Defined in Amazonka.GameLift.CreateVpcPeeringAuthorization

Show CreateVpcPeeringAuthorization Source # 
Instance details

Defined in Amazonka.GameLift.CreateVpcPeeringAuthorization

Generic CreateVpcPeeringAuthorization Source # 
Instance details

Defined in Amazonka.GameLift.CreateVpcPeeringAuthorization

Associated Types

type Rep CreateVpcPeeringAuthorization :: Type -> Type #

NFData CreateVpcPeeringAuthorization Source # 
Instance details

Defined in Amazonka.GameLift.CreateVpcPeeringAuthorization

Hashable CreateVpcPeeringAuthorization Source # 
Instance details

Defined in Amazonka.GameLift.CreateVpcPeeringAuthorization

ToJSON CreateVpcPeeringAuthorization Source # 
Instance details

Defined in Amazonka.GameLift.CreateVpcPeeringAuthorization

AWSRequest CreateVpcPeeringAuthorization Source # 
Instance details

Defined in Amazonka.GameLift.CreateVpcPeeringAuthorization

ToHeaders CreateVpcPeeringAuthorization Source # 
Instance details

Defined in Amazonka.GameLift.CreateVpcPeeringAuthorization

ToPath CreateVpcPeeringAuthorization Source # 
Instance details

Defined in Amazonka.GameLift.CreateVpcPeeringAuthorization

ToQuery CreateVpcPeeringAuthorization Source # 
Instance details

Defined in Amazonka.GameLift.CreateVpcPeeringAuthorization

type Rep CreateVpcPeeringAuthorization Source # 
Instance details

Defined in Amazonka.GameLift.CreateVpcPeeringAuthorization

type Rep CreateVpcPeeringAuthorization = D1 ('MetaData "CreateVpcPeeringAuthorization" "Amazonka.GameLift.CreateVpcPeeringAuthorization" "libZSservicesZSamazonka-gameliftZSamazonka-gamelift" 'False) (C1 ('MetaCons "CreateVpcPeeringAuthorization'" 'PrefixI 'True) (S1 ('MetaSel ('Just "gameLiftAwsAccountId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "peerVpcId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse CreateVpcPeeringAuthorization Source # 
Instance details

Defined in Amazonka.GameLift.CreateVpcPeeringAuthorization

newCreateVpcPeeringAuthorization Source #

Create a value of CreateVpcPeeringAuthorization with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:gameLiftAwsAccountId:CreateVpcPeeringAuthorization', createVpcPeeringAuthorization_gameLiftAwsAccountId - A unique identifier for the AWS account that you use to manage your GameLift fleet. You can find your Account ID in the AWS Management Console under account settings.

$sel:peerVpcId:CreateVpcPeeringAuthorization', createVpcPeeringAuthorization_peerVpcId - A unique identifier for a VPC with resources to be accessed by your GameLift fleet. The VPC must be in the same Region as your fleet. To look up a VPC ID, use the VPC Dashboard in the AWS Management Console. Learn more about VPC peering in VPC Peering with GameLift Fleets.

Request Lenses

createVpcPeeringAuthorization_gameLiftAwsAccountId :: Lens' CreateVpcPeeringAuthorization Text Source #

A unique identifier for the AWS account that you use to manage your GameLift fleet. You can find your Account ID in the AWS Management Console under account settings.

createVpcPeeringAuthorization_peerVpcId :: Lens' CreateVpcPeeringAuthorization Text Source #

A unique identifier for a VPC with resources to be accessed by your GameLift fleet. The VPC must be in the same Region as your fleet. To look up a VPC ID, use the VPC Dashboard in the AWS Management Console. Learn more about VPC peering in VPC Peering with GameLift Fleets.

Destructuring the Response

data CreateVpcPeeringAuthorizationResponse Source #

Represents the returned data in response to a request operation.

See: newCreateVpcPeeringAuthorizationResponse smart constructor.

Constructors

CreateVpcPeeringAuthorizationResponse' 

Fields

Instances

Instances details
Eq CreateVpcPeeringAuthorizationResponse Source # 
Instance details

Defined in Amazonka.GameLift.CreateVpcPeeringAuthorization

Read CreateVpcPeeringAuthorizationResponse Source # 
Instance details

Defined in Amazonka.GameLift.CreateVpcPeeringAuthorization

Show CreateVpcPeeringAuthorizationResponse Source # 
Instance details

Defined in Amazonka.GameLift.CreateVpcPeeringAuthorization

Generic CreateVpcPeeringAuthorizationResponse Source # 
Instance details

Defined in Amazonka.GameLift.CreateVpcPeeringAuthorization

NFData CreateVpcPeeringAuthorizationResponse Source # 
Instance details

Defined in Amazonka.GameLift.CreateVpcPeeringAuthorization

type Rep CreateVpcPeeringAuthorizationResponse Source # 
Instance details

Defined in Amazonka.GameLift.CreateVpcPeeringAuthorization

type Rep CreateVpcPeeringAuthorizationResponse = D1 ('MetaData "CreateVpcPeeringAuthorizationResponse" "Amazonka.GameLift.CreateVpcPeeringAuthorization" "libZSservicesZSamazonka-gameliftZSamazonka-gamelift" 'False) (C1 ('MetaCons "CreateVpcPeeringAuthorizationResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "vpcPeeringAuthorization") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe VpcPeeringAuthorization)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateVpcPeeringAuthorizationResponse Source #

Create a value of CreateVpcPeeringAuthorizationResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:vpcPeeringAuthorization:CreateVpcPeeringAuthorizationResponse', createVpcPeeringAuthorizationResponse_vpcPeeringAuthorization - Details on the requested VPC peering authorization, including expiration.

$sel:httpStatus:CreateVpcPeeringAuthorizationResponse', createVpcPeeringAuthorizationResponse_httpStatus - The response's http status code.

Response Lenses