Class CfnGameSessionQueue
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
AWS::GameLift::GameSessionQueue.
The 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();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnGameSessionQueue.static interfaceA fleet or alias designated in a game session queue.static interfaceA list of fleet locations where a game session queue can place new game sessions.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.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnGameSessionQueue(Construct scope, String id, CfnGameSessionQueueProps props) Create a newAWS::GameLift::GameSessionQueue.protectedCfnGameSessionQueue(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnGameSessionQueue(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe 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.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 act as a sliding cap on player latency.Custom settings to use when prioritizing destinations and locations for game session placements.getTags()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 act as a sliding cap on player latency.voidA set of policies that act as a sliding cap on player latency.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.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.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods 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.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 Construct scope, @NotNull String id, @NotNull CfnGameSessionQueueProps props) Create a newAWS::GameLift::GameSessionQueue.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
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
-
getTags
A list of labels to assign to the new game session queue resource.Tags are developer-defined key-value pairs. Tagging AWS resources are useful for resource management, access management and cost allocation. For more information, see Tagging AWS Resources in the AWS General Reference . Once the resource is created, you can use TagResource, UntagResource, and ListTagsForResource to add, remove, and view tags. The maximum tag limit may be lower than stated. See the AWS General Reference for actual tagging limits.
-
getName
A descriptive label that is associated with game session queue.Queue names must be unique within each Region.
-
setName
A descriptive label that is associated with game session queue.Queue names must be unique within each Region.
-
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.Destinations are identified by either a fleet ARN or a fleet alias ARN, and are listed in order of placement preference.
-
setDestinations
A list of fleets and/or fleet aliases that can be used to fulfill game session placement requests in the queue.Destinations are identified by either a fleet ARN or a fleet alias ARN, and are listed in order of placement preference.
-
setDestinations
A list of fleets and/or fleet aliases that can be used to fulfill game session placement requests in the queue.Destinations are identified by either a fleet ARN or a fleet alias ARN, and are listed in order of placement preference.
-
getFilterConfiguration
A list of locations where a queue is allowed to place new game sessions.Locations are specified in the form of AWS Region codes, such as
us-west-2. If this parameter is not set, game sessions can be placed in any queue location. -
setFilterConfiguration
A list of locations where a queue is allowed to place new game sessions.Locations are specified in the form of AWS Region codes, such as
us-west-2. If this parameter is not set, game sessions can be placed in any queue location. -
setFilterConfiguration
@Stability(Stable) public void setFilterConfiguration(@Nullable CfnGameSessionQueue.FilterConfigurationProperty value) A list of locations where a queue is allowed to place new game sessions.Locations are specified in the form of AWS Region codes, such as
us-west-2. If this parameter is not set, game sessions can be placed in any queue location. -
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 act as a sliding cap on player latency.FleetIQ works to deliver low latency for most players in a game session. These policies ensure that no individual player can be placed into a game with unreasonably high latency. Use multiple policies to gradually relax latency requirements a step at a time. Multiple policies are applied based on their maximum allowed latency, starting with the lowest value.
-
setPlayerLatencyPolicies
A set of policies that act as a sliding cap on player latency.FleetIQ works to deliver low latency for most players in a game session. These policies ensure that no individual player can be placed into a game with unreasonably high latency. Use multiple policies to gradually relax latency requirements a step at a time. Multiple policies are applied based on their maximum allowed latency, starting with the lowest value.
-
setPlayerLatencyPolicies
A set of policies that act as a sliding cap on player latency.FleetIQ works to deliver low latency for most players in a game session. These policies ensure that no individual player can be placed into a game with unreasonably high latency. Use multiple policies to gradually relax latency requirements a step at a time. Multiple policies are applied based on their maximum allowed latency, starting with the lowest value.
-
getPriorityConfiguration
Custom settings to use when prioritizing destinations and locations for game session placements.This configuration replaces the FleetIQ default prioritization process. Priority types that are not explicitly named will be automatically applied at the end of the prioritization process.
-
setPriorityConfiguration
Custom settings to use when prioritizing destinations and locations for game session placements.This configuration replaces the FleetIQ default prioritization process. Priority types that are not explicitly named will be automatically applied at the end of the prioritization process.
-
setPriorityConfiguration
@Stability(Stable) public void setPriorityConfiguration(@Nullable CfnGameSessionQueue.PriorityConfigurationProperty value) Custom settings to use when prioritizing destinations and locations for game session placements.This configuration replaces the FleetIQ default prioritization process. Priority types that are not explicitly named will be automatically applied at the end of the prioritization process.
-
getTimeoutInSeconds
The maximum time, in seconds, that a new game session placement request remains in the queue.When a request exceeds this time, the game session placement changes to a
TIMED_OUTstatus. By default, this property is set to600. -
setTimeoutInSeconds
The maximum time, in seconds, that a new game session placement request remains in the queue.When a request exceeds this time, the game session placement changes to a
TIMED_OUTstatus. By default, this property is set to600.
-