Skip to main content

game_session_queues

Creates, updates, deletes or gets a game_session_queue resource or lists game_session_queues in a region

Overview

Namegame_session_queues
TypeResource
DescriptionThe AWS::GameLift::GameSessionQueue resource creates an Amazon GameLift (GameLift) game session queue.
Idawscc.gamelift.game_session_queues

Fields

NameDatatypeDescription
namestringA descriptive label that is associated with game session queue. Queue names must be unique within each Region.
timeout_in_secondsintegerThe maximum time, in seconds, that a new game session placement request remains in the queue.
destinationsarrayA list of fleets and/or fleet aliases that can be used to fulfill game session placement requests in the queue.
player_latency_policiesarrayA set of policies that act as a sliding cap on player latency.
custom_event_datastringInformation that is added to all events that are related to this game session queue.
notification_targetstringAn SNS topic ARN that is set up to receive game session placement notifications.
filter_configurationobjectA list of locations where a queue is allowed to place new game sessions.
priority_configurationobjectCustom settings to use when prioritizing destinations and locations for game session placements.
arnstringThe Amazon Resource Name (ARN) that is assigned to a Amazon GameLift game session queue resource and uniquely identifies it.
tagsarrayAn array of key-value pairs to apply to this resource.
regionstringAWS region.

For more information, see AWS::GameLift::GameSessionQueue.

Methods

NameResourceAccessible byRequired Params
create_resourcegame_session_queuesINSERTName, region
delete_resourcegame_session_queuesDELETEIdentifier, region
update_resourcegame_session_queuesUPDATEIdentifier, PatchDocument, region
list_resourcesgame_session_queues_list_onlySELECTregion
get_resourcegame_session_queuesSELECTIdentifier, region

SELECT examples

Gets all properties from an individual game_session_queue.

SELECT
region,
name,
timeout_in_seconds,
destinations,
player_latency_policies,
custom_event_data,
notification_target,
filter_configuration,
priority_configuration,
arn,
tags
FROM awscc.gamelift.game_session_queues
WHERE
region = '{{ region }}' AND
Identifier = '{{ name }}';

INSERT example

Use the following StackQL query and manifest file to create a new game_session_queue resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.gamelift.game_session_queues (
Name,
region
)
SELECT
'{{ name }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

UPDATE example

Use the following StackQL query and manifest file to update a game_session_queue resource, using stack-deploy.

/*+ update */
UPDATE awscc.gamelift.game_session_queues
SET PatchDocument = string('{{ {
"TimeoutInSeconds": timeout_in_seconds,
"Destinations": destinations,
"PlayerLatencyPolicies": player_latency_policies,
"CustomEventData": custom_event_data,
"NotificationTarget": notification_target,
"FilterConfiguration": filter_configuration,
"PriorityConfiguration": priority_configuration,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ name }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.gamelift.game_session_queues
WHERE
Identifier = '{{ name }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

To operate on the game_session_queues resource, the following permissions are required:

gamelift:CreateGameSessionQueue,
gamelift:DescribeGameSessionQueues,
gamelift:ListTagsForResource,
gamelift:TagResource