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.104.0 (build e79254c)",
date="2024-11-06T23:25:18.840Z")
@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
Modifier and TypeClassDescriptionstatic final class
(experimental) A fluent builder forGameSessionQueue
.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.gamelift.alpha.IGameSessionQueue
IGameSessionQueue.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default
-
Constructor Summary
ModifierConstructorDescriptionprotected
GameSessionQueue
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
GameSessionQueue
(software.amazon.jsii.JsiiObjectRef objRef) GameSessionQueue
(software.constructs.Construct scope, String id, GameSessionQueueProps props) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDestination
(IGameSessionQueueDestination destination) (experimental) Adds a destination to fulfill requests for new game sessions.static IGameSessionQueue
fromGameSessionQueueArn
(software.constructs.Construct scope, String id, String gameSessionQueueArn) (experimental) Import an existing gameSessionQueue from its ARN.static IGameSessionQueue
fromGameSessionQueueAttributes
(software.constructs.Construct scope, String id, GameSessionQueueAttributes attrs) (experimental) Import an existing gameSessionQueue from its attributes.static IGameSessionQueue
fromGameSessionQueueName
(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, metricPlacementsTimedOut
Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResource
Methods inherited from class software.constructs.Construct
getNode, isConstruct, toString
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.constructs.IConstruct
getNode
Methods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStack
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
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:
getGameSessionQueueArn
in interfaceIGameSessionQueue
- Specified by:
getGameSessionQueueArn
in classGameSessionQueueBase
-
getGameSessionQueueName
(experimental) The Identifier of the gameSessionQueue.- Specified by:
getGameSessionQueueName
in interfaceIGameSessionQueue
- Specified by:
getGameSessionQueueName
in classGameSessionQueueBase
-