Class CfnGameSessionQueue
- All Implemented Interfaces:
IInspectable,ITaggable,IGameSessionQueueRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
AWS::GameLift::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 aliases), 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:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.gamelift.*;
CfnGameSessionQueue cfnGameSessionQueue = CfnGameSessionQueue.Builder.create(this, "MyCfnGameSessionQueue")
.name("name")
// the properties below are optional
.customEventData("customEventData")
.destinations(List.of(DestinationProperty.builder()
.destinationArn("destinationArn")
.build()))
.filterConfiguration(FilterConfigurationProperty.builder()
.allowedLocations(List.of("allowedLocations"))
.build())
.notificationTarget("notificationTarget")
.playerLatencyPolicies(List.of(PlayerLatencyPolicyProperty.builder()
.maximumIndividualPlayerLatencyMilliseconds(123)
.policyDurationSeconds(123)
.build()))
.priorityConfiguration(PriorityConfigurationProperty.builder()
.locationOrder(List.of("locationOrder"))
.priorityOrder(List.of("priorityOrder"))
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.timeoutInSeconds(123)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnGameSessionQueue.static interfaceExample:static interfaceA list of fleet locations where a game session queue can place new game sessions.static interfaceA fleet or alias designated in a game session queue.static interfaceThe queue setting that determines the highest latency allowed for individual players when placing a game session.static interfaceCustom prioritization settings for use by a game session queue when placing new game sessions with available game servers.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.IGameSessionQueueRef
IGameSessionQueueRef.Jsii$Default, IGameSessionQueueRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnGameSessionQueue(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnGameSessionQueue(software.amazon.jsii.JsiiObjectRef objRef) CfnGameSessionQueue(software.constructs.Construct scope, String id, CfnGameSessionQueueProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IGameSessionQueueReffromGameSessionQueueArn(software.constructs.Construct scope, String id, String arn) Creates a new IGameSessionQueueRef from an ARN.static IGameSessionQueueReffromGameSessionQueueName(software.constructs.Construct scope, String id, String gameSessionQueueName) Creates a new IGameSessionQueueRef from a gameSessionQueueName.The unique Amazon Resource Name (ARN) for theGameSessionQueue.A descriptive label that is associated with a game session queue.Information to be added to all events that are related to this game session queue.A list of fleets and/or fleet aliases that can be used to fulfill game session placement requests in the queue.A list of locations where a queue is allowed to place new game sessions.A reference to a GameSessionQueue resource.getName()A descriptive label that is associated with game session queue.An SNS topic ARN that is set up to receive game session placement notifications.A set of policies that enforce a sliding cap on player latency when processing game sessions placement requests.Custom settings to use when prioritizing destinations and locations for game session placements.getTags()Tag Manager which manages the tags for this resource.A list of labels to assign to the new game session queue resource.The maximum time, in seconds, that a new game session placement request remains in the queue.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetCustomEventData(String value) Information to be added to all events that are related to this game session queue.voidsetDestinations(List<Object> value) A list of fleets and/or fleet aliases that can be used to fulfill game session placement requests in the queue.voidsetDestinations(IResolvable value) A list of fleets and/or fleet aliases that can be used to fulfill game session placement requests in the queue.voidA list of locations where a queue is allowed to place new game sessions.voidA list of locations where a queue is allowed to place new game sessions.voidA descriptive label that is associated with game session queue.voidsetNotificationTarget(String value) An SNS topic ARN that is set up to receive game session placement notifications.voidsetPlayerLatencyPolicies(List<Object> value) A set of policies that enforce a sliding cap on player latency when processing game sessions placement requests.voidA set of policies that enforce a sliding cap on player latency when processing game sessions placement requests.voidCustom settings to use when prioritizing destinations and locations for game session placements.voidCustom settings to use when prioritizing destinations and locations for game session placements.voidsetTagsRaw(List<CfnTag> value) A list of labels to assign to the new game session queue resource.voidsetTimeoutInSeconds(Number value) The maximum time, in seconds, that a new game session placement request remains in the queue.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods 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.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnGameSessionQueue
protected CfnGameSessionQueue(software.amazon.jsii.JsiiObjectRef objRef) -
CfnGameSessionQueue
protected CfnGameSessionQueue(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnGameSessionQueue
@Stability(Stable) public CfnGameSessionQueue(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnGameSessionQueueProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
fromGameSessionQueueArn
@Stability(Stable) @NotNull public static IGameSessionQueueRef fromGameSessionQueueArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String arn) Creates a new IGameSessionQueueRef from an ARN.- Parameters:
scope- This parameter is required.id- This parameter is required.arn- This parameter is required.
-
fromGameSessionQueueName
@Stability(Stable) @NotNull public static IGameSessionQueueRef fromGameSessionQueueName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String gameSessionQueueName) Creates a new IGameSessionQueueRef from a gameSessionQueueName.- Parameters:
scope- This parameter is required.id- This parameter is required.gameSessionQueueName- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
The unique Amazon Resource Name (ARN) for theGameSessionQueue. -
getAttrName
A descriptive label that is associated with a game session queue.Names are unique within each Region.
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getGameSessionQueueRef
A reference to a GameSessionQueue resource.- Specified by:
getGameSessionQueueRefin interfaceIGameSessionQueueRef
-
getTags
Tag Manager which manages the tags for this resource. -
getName
A descriptive label that is associated with game session queue. -
setName
A descriptive label that is associated with game session queue. -
getCustomEventData
Information to be added to all events that are related to this game session queue. -
setCustomEventData
Information to be added to all events that are related to this game session queue. -
getDestinations
A list of fleets and/or fleet aliases that can be used to fulfill game session placement requests in the queue.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnGameSessionQueue.DestinationProperty> -
setDestinations
A list of fleets and/or fleet aliases that can be used to fulfill game session placement requests in the queue. -
setDestinations
A list of fleets and/or fleet aliases that can be used to fulfill game session placement requests in the queue. -
getFilterConfiguration
A list of locations where a queue is allowed to place new game sessions.Returns union: either
IResolvableorCfnGameSessionQueue.FilterConfigurationProperty -
setFilterConfiguration
A list of locations where a queue is allowed to place new game sessions. -
setFilterConfiguration
@Stability(Stable) public void setFilterConfiguration(@Nullable CfnGameSessionQueue.FilterConfigurationProperty value) A list of locations where a queue is allowed to place new game sessions. -
getNotificationTarget
An SNS topic ARN that is set up to receive game session placement notifications. -
setNotificationTarget
An SNS topic ARN that is set up to receive game session placement notifications. -
getPlayerLatencyPolicies
A set of policies that enforce a sliding cap on player latency when processing game sessions placement requests.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnGameSessionQueue.PlayerLatencyPolicyProperty> -
setPlayerLatencyPolicies
A set of policies that enforce a sliding cap on player latency when processing game sessions placement requests. -
setPlayerLatencyPolicies
A set of policies that enforce a sliding cap on player latency when processing game sessions placement requests. -
getPriorityConfiguration
Custom settings to use when prioritizing destinations and locations for game session placements.Returns union: either
IResolvableorCfnGameSessionQueue.PriorityConfigurationProperty -
setPriorityConfiguration
Custom settings to use when prioritizing destinations and locations for game session placements. -
setPriorityConfiguration
@Stability(Stable) public void setPriorityConfiguration(@Nullable CfnGameSessionQueue.PriorityConfigurationProperty value) Custom settings to use when prioritizing destinations and locations for game session placements. -
getTagsRaw
A list of labels to assign to the new game session queue resource. -
setTagsRaw
A list of labels to assign to the new game session queue resource. -
getTimeoutInSeconds
The maximum time, in seconds, that a new game session placement request remains in the queue. -
setTimeoutInSeconds
The maximum time, in seconds, that a new game session placement request remains in the queue.
-