Class GameSessionQueue
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.gamelift.alpha.GameSessionQueueBase
software.amazon.awscdk.services.gamelift.alpha.GameSessionQueue
- All Implemented Interfaces:
IResource,IGameSessionQueue,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:49.999Z")
@Stability(Experimental)
public class GameSessionQueue
extends GameSessionQueueBase
(experimental) The GameSessionQueue resource creates a placement queue that processes requests for new game sessions.
A queue uses FleetIQ algorithms to determine the best placement locations and find an available game server, then prompts the game server to start a new game session. Queues can have destinations (GameLift fleets or gameSessionQueuees), which determine where the queue can place new game sessions. A queue can have destinations with varied fleet type (Spot and On-Demand), instance type, and AWS Region.
Example:
BuildFleet fleet;
Alias alias;
GameSessionQueue queue = GameSessionQueue.Builder.create(this, "GameSessionQueue")
.gameSessionQueueName("my-queue-name")
.destinations(List.of(fleet))
.build();
queue.addDestination(alias);
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class(experimental) A fluent builder forGameSessionQueue.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.gamelift.alpha.IGameSessionQueue
IGameSessionQueue.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String(experimental) Uniquely identifies this class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGameSessionQueue(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedGameSessionQueue(software.amazon.jsii.JsiiObjectRef objRef) GameSessionQueue(software.constructs.Construct scope, String id, GameSessionQueueProps props) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDestination(IGameSessionQueueDestination destination) (experimental) Adds a destination to fulfill requests for new game sessions.static IGameSessionQueuefromGameSessionQueueArn(software.constructs.Construct scope, String id, String gameSessionQueueArn) (experimental) Import an existing gameSessionQueue from its ARN.static IGameSessionQueuefromGameSessionQueueAttributes(software.constructs.Construct scope, String id, GameSessionQueueAttributes attrs) (experimental) Import an existing gameSessionQueue from its attributes.static IGameSessionQueuefromGameSessionQueueName(software.constructs.Construct scope, String id, String gameSessionQueueName) (experimental) Import an existing gameSessionQueue from its name.(experimental) The ARN of the gameSessionQueue.(experimental) The Identifier of the gameSessionQueue.Methods inherited from class software.amazon.awscdk.services.gamelift.alpha.GameSessionQueueBase
metric, metric, metricAverageWaitTime, metricAverageWaitTime, metricPlacementsCanceled, metricPlacementsCanceled, metricPlacementsFailed, metricPlacementsFailed, metricPlacementsStarted, metricPlacementsStarted, metricPlacementsSucceeded, metricPlacementsSucceeded, metricPlacementsTimedOut, metricPlacementsTimedOutMethods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
PROPERTY_INJECTION_ID
(experimental) Uniquely identifies this class.
-
-
Constructor Details
-
GameSessionQueue
protected GameSessionQueue(software.amazon.jsii.JsiiObjectRef objRef) -
GameSessionQueue
protected GameSessionQueue(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
GameSessionQueue
@Stability(Experimental) public GameSessionQueue(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull GameSessionQueueProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.
-
-
Method Details
-
fromGameSessionQueueArn
@Stability(Experimental) @NotNull public static IGameSessionQueue fromGameSessionQueueArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String gameSessionQueueArn) (experimental) Import an existing gameSessionQueue from its ARN.- Parameters:
scope- This parameter is required.id- This parameter is required.gameSessionQueueArn- This parameter is required.
-
fromGameSessionQueueAttributes
@Stability(Experimental) @NotNull public static IGameSessionQueue fromGameSessionQueueAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull GameSessionQueueAttributes attrs) (experimental) Import an existing gameSessionQueue from its attributes.- Parameters:
scope- This parameter is required.id- This parameter is required.attrs- This parameter is required.
-
fromGameSessionQueueName
@Stability(Experimental) @NotNull public static IGameSessionQueue fromGameSessionQueueName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String gameSessionQueueName) (experimental) Import an existing gameSessionQueue from its name.- Parameters:
scope- This parameter is required.id- This parameter is required.gameSessionQueueName- This parameter is required.
-
addDestination
@Stability(Experimental) public void addDestination(@NotNull IGameSessionQueueDestination destination) (experimental) Adds a destination to fulfill requests for new game sessions.- Parameters:
destination- A destination to add. This parameter is required.
-
parseFilterConfiguration
@Stability(Experimental) @Nullable protected CfnGameSessionQueue.FilterConfigurationProperty parseFilterConfiguration(@NotNull GameSessionQueueProps props) - Parameters:
props- This parameter is required.
-
parsePlayerLatencyPolicies
@Stability(Experimental) @Nullable protected List<CfnGameSessionQueue.PlayerLatencyPolicyProperty> parsePlayerLatencyPolicies(@NotNull GameSessionQueueProps props) - Parameters:
props- This parameter is required.
-
parsePriorityConfiguration
@Stability(Experimental) @Nullable protected CfnGameSessionQueue.PriorityConfigurationProperty parsePriorityConfiguration(@NotNull GameSessionQueueProps props) - Parameters:
props- This parameter is required.
-
getGameSessionQueueArn
(experimental) The ARN of the gameSessionQueue.- Specified by:
getGameSessionQueueArnin interfaceIGameSessionQueue- Specified by:
getGameSessionQueueArnin classGameSessionQueueBase
-
getGameSessionQueueName
(experimental) The Identifier of the gameSessionQueue.- Specified by:
getGameSessionQueueNamein interfaceIGameSessionQueue- Specified by:
getGameSessionQueueNamein classGameSessionQueueBase
-