Skip to main content

matchmaking_configurations

Creates, updates, deletes or gets a matchmaking_configuration resource or lists matchmaking_configurations in a region

Overview

Namematchmaking_configurations
TypeResource
DescriptionThe AWS::GameLift::MatchmakingConfiguration resource creates an Amazon GameLift (GameLift) matchmaking configuration.
Idawscc.gamelift.matchmaking_configurations

Fields

NameDatatypeDescription
acceptance_requiredbooleanA flag that indicates whether a match that was created with this configuration must be accepted by the matched players
acceptance_timeout_secondsintegerThe length of time (in seconds) to wait for players to accept a proposed match, if acceptance is required.
additional_player_countintegerThe number of player slots in a match to keep open for future players.
backfill_modestringThe method used to backfill game sessions created with this matchmaking configuration.
arnstringThe Amazon Resource Name (ARN) that is assigned to a Amazon GameLift matchmaking configuration resource and uniquely identifies it.
creation_timestringA time stamp indicating when this data object was created.
custom_event_datastringInformation to attach to all events related to the matchmaking configuration.
descriptionstringA descriptive label that is associated with matchmaking configuration.
flex_match_modestringIndicates whether this matchmaking configuration is being used with Amazon GameLift hosting or as a standalone matchmaking solution.
game_propertiesarrayA set of custom properties for a game session, formatted as key:value pairs.
game_session_datastringA set of custom game session properties, formatted as a single string value.
game_session_queue_arnsarrayThe Amazon Resource Name (ARN) that is assigned to a Amazon GameLift game session queue resource and uniquely identifies it.
namestringA unique identifier for the matchmaking configuration.
notification_targetstringAn SNS topic ARN that is set up to receive matchmaking notifications.
request_timeout_secondsintegerThe maximum duration, in seconds, that a matchmaking ticket can remain in process before timing out.
rule_set_arnstringThe Amazon Resource Name (ARN) associated with the GameLift matchmaking rule set resource that this configuration uses.
rule_set_namestringA unique identifier for the matchmaking rule set to use with this configuration.
tagsarrayAn array of key-value pairs to apply to this resource.
regionstringAWS region.

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

Methods

NameResourceAccessible byRequired Params
create_resourcematchmaking_configurationsINSERTAcceptanceRequired, Name, RequestTimeoutSeconds, RuleSetName, region
delete_resourcematchmaking_configurationsDELETEIdentifier, region
update_resourcematchmaking_configurationsUPDATEIdentifier, PatchDocument, region
list_resourcesmatchmaking_configurations_list_onlySELECTregion
get_resourcematchmaking_configurationsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual matchmaking_configuration.

SELECT
region,
acceptance_required,
acceptance_timeout_seconds,
additional_player_count,
backfill_mode,
arn,
creation_time,
custom_event_data,
description,
flex_match_mode,
game_properties,
game_session_data,
game_session_queue_arns,
name,
notification_target,
request_timeout_seconds,
rule_set_arn,
rule_set_name,
tags
FROM awscc.gamelift.matchmaking_configurations
WHERE
region = '{{ region }}' AND
Identifier = '{{ name }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.gamelift.matchmaking_configurations (
AcceptanceRequired,
Name,
RequestTimeoutSeconds,
RuleSetName,
region
)
SELECT
'{{ acceptance_required }}',
'{{ name }}',
'{{ request_timeout_seconds }}',
'{{ rule_set_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 matchmaking_configuration resource, using stack-deploy.

/*+ update */
UPDATE awscc.gamelift.matchmaking_configurations
SET PatchDocument = string('{{ {
"AcceptanceRequired": acceptance_required,
"AcceptanceTimeoutSeconds": acceptance_timeout_seconds,
"AdditionalPlayerCount": additional_player_count,
"BackfillMode": backfill_mode,
"CreationTime": creation_time,
"CustomEventData": custom_event_data,
"Description": description,
"FlexMatchMode": flex_match_mode,
"GameProperties": game_properties,
"GameSessionData": game_session_data,
"GameSessionQueueArns": game_session_queue_arns,
"NotificationTarget": notification_target,
"RequestTimeoutSeconds": request_timeout_seconds,
"RuleSetArn": rule_set_arn,
"RuleSetName": rule_set_name,
"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.matchmaking_configurations
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 matchmaking_configurations resource, the following permissions are required:

gamelift:CreateMatchmakingConfiguration,
gamelift:ListTagsForResource,
gamelift:TagResource,
gamelift:DescribeMatchmakingConfigurations