@aws-cdk_aws-gamelift-alpha.PriorityType

enum PriorityType ๐Ÿ”น

LanguageType name
.NETAmazon.CDK.AWS.GameLift.Alpha.PriorityType
Gogithub.com/aws/aws-cdk-go/awscdkgameliftalpha/v2#PriorityType
Javasoftware.amazon.awscdk.services.gamelift.alpha.PriorityType
Pythonaws_cdk.aws_gamelift_alpha.PriorityType
TypeScript (source)@aws-cdk/aws-gamelift-alpha ยป PriorityType

Priority to condider when placing new game sessions.

Example

declare const fleet: gamelift.BuildFleet;
declare const topic: sns.Topic;

new gamelift.GameSessionQueue(this, 'MyGameSessionQueue', {
      gameSessionQueueName: 'test-gameSessionQueue',
      customEventData: 'test-event-data',
      allowedLocations: ['eu-west-1', 'eu-west-2'],
      destinations: [fleet],
      notificationTarget: topic,
      playerLatencyPolicies: [{
        maximumIndividualPlayerLatency: Duration.millis(100),
        policyDuration: Duration.seconds(300),
      }],
      priorityConfiguration: {
        locationOrder: [
          'eu-west-1',
          'eu-west-2',
        ],
        priorityOrder: [
          gamelift.PriorityType.LATENCY,
          gamelift.PriorityType.COST,
          gamelift.PriorityType.DESTINATION,
          gamelift.PriorityType.LOCATION,
        ],
      },
      timeout: Duration.seconds(300),
    });

Members

NameDescription
LATENCY ๐Ÿ”นFleetIQ prioritizes locations where the average player latency (provided in each game session request) is lowest.
COST ๐Ÿ”นFleetIQ prioritizes destinations with the lowest current hosting costs.
DESTINATION ๐Ÿ”นFleetIQ prioritizes based on the order that destinations are listed in the queue configuration.
LOCATION ๐Ÿ”นFleetIQ prioritizes based on the provided order of locations, as defined in LocationOrder.

LATENCY ๐Ÿ”น

FleetIQ prioritizes locations where the average player latency (provided in each game session request) is lowest.


COST ๐Ÿ”น

FleetIQ prioritizes destinations with the lowest current hosting costs.

Cost is evaluated based on the location, instance type, and fleet type (Spot or On-Demand) for each destination in the queue.


DESTINATION ๐Ÿ”น

FleetIQ prioritizes based on the order that destinations are listed in the queue configuration.


LOCATION ๐Ÿ”น

FleetIQ prioritizes based on the provided order of locations, as defined in LocationOrder.