enum PriorityType
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.GameLift.Alpha.PriorityType |
Go | github.com/aws/aws-cdk-go/awscdkgameliftalpha/v2#PriorityType |
Java | software.amazon.awscdk.services.gamelift.alpha.PriorityType |
Python | aws_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
Name | Description |
---|---|
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
.