UpdateGameSessionQueue
Updates the configuration of a game session queue, which determines how the queue processes new game session requests. To update settings, specify the queue name to be updated and provide the new settings. When updating destinations, provide a complete list of destinations.
Learn more
Request Syntax
{
"CustomEventData": "string
",
"Destinations": [
{
"DestinationArn": "string
"
}
],
"FilterConfiguration": {
"AllowedLocations": [ "string
" ]
},
"Name": "string
",
"NotificationTarget": "string
",
"PlayerLatencyPolicies": [
{
"MaximumIndividualPlayerLatencyMilliseconds": number
,
"PolicyDurationSeconds": number
}
],
"PriorityConfiguration": {
"LocationOrder": [ "string
" ],
"PriorityOrder": [ "string
" ]
},
"TimeoutInSeconds": number
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
The request accepts the following data in JSON format.
Note
In the following list, the required parameters are described first.
- Name
-
A descriptive label that is associated with game session queue. Queue names must be unique within each Region. You can use either the queue ID or ARN value.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 256.
Pattern:
[a-zA-Z0-9-]+|^arn:.*:gamesessionqueue\/[a-zA-Z0-9-]+
Required: Yes
- CustomEventData
-
Information to be added to all events that are related to this game session queue.
Type: String
Length Constraints: Minimum length of 0. Maximum length of 256.
Pattern:
[\s\S]*
Required: No
- Destinations
-
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. When updating this list, provide a complete list of destinations.
Type: Array of GameSessionQueueDestination objects
Required: No
- FilterConfiguration
-
A list of locations where a queue is allowed to place new game sessions. Locations are specified in the form of Amazon Region codes, such as
us-west-2
. If this parameter is not set, game sessions can be placed in any queue location. To remove an existing filter configuration, pass in an empty set.Type: FilterConfiguration object
Required: No
- NotificationTarget
-
An SNS topic ARN that is set up to receive game session placement notifications. See Setting up notifications for game session placement.
Type: String
Length Constraints: Minimum length of 0. Maximum length of 300.
Pattern:
[a-zA-Z0-9:_-]*(\.fifo)?
Required: No
- PlayerLatencyPolicies
-
A set of policies that enforce a sliding cap on player latency when processing game sessions placement requests. Use multiple policies to gradually relax the cap over time if Amazon GameLift can't make a placement. Policies are evaluated in order starting with the lowest maximum latency value. When updating policies, provide a complete collection of policies.
Type: Array of PlayerLatencyPolicy objects
Required: No
- PriorityConfiguration
-
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. To remove an existing priority configuration, pass in an empty set.
Type: PriorityConfiguration object
Required: No
- TimeoutInSeconds
-
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_OUT
status.Type: Integer
Valid Range: Minimum value of 0.
Required: No
Response Syntax
{
"GameSessionQueue": {
"CustomEventData": "string",
"Destinations": [
{
"DestinationArn": "string"
}
],
"FilterConfiguration": {
"AllowedLocations": [ "string" ]
},
"GameSessionQueueArn": "string",
"Name": "string",
"NotificationTarget": "string",
"PlayerLatencyPolicies": [
{
"MaximumIndividualPlayerLatencyMilliseconds": number,
"PolicyDurationSeconds": number
}
],
"PriorityConfiguration": {
"LocationOrder": [ "string" ],
"PriorityOrder": [ "string" ]
},
"TimeoutInSeconds": number
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
- GameSessionQueue
-
An object that describes the newly updated game session queue.
Type: GameSessionQueue object
Errors
For information about the errors that are common to all actions, see Common Errors.
- InternalServiceException
-
The service encountered an unrecoverable internal failure while processing the request. Clients can retry such requests immediately or after a waiting period.
HTTP Status Code: 500
- InvalidRequestException
-
One or more parameter values in the request are invalid. Correct the invalid parameter values before retrying.
HTTP Status Code: 400
- NotFoundException
-
The requested resources was not found. The resource was either not created yet or deleted.
HTTP Status Code: 400
- UnauthorizedException
-
The client failed authentication. Clients should not retry such requests.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific Amazon SDKs, see the following: