Skip to main content

matchmaking_rule_sets

Creates, updates, deletes or gets a matchmaking_rule_set resource or lists matchmaking_rule_sets in a region

Overview

Namematchmaking_rule_sets
TypeResource
DescriptionThe AWS::GameLift::MatchmakingRuleSet resource creates an Amazon GameLift (GameLift) matchmaking rule set.
Idawscc.gamelift.matchmaking_rule_sets

Fields

NameDatatypeDescription
namestringA unique identifier for the matchmaking rule set.
rule_set_bodystringA collection of matchmaking rules, formatted as a JSON string.
creation_timestringA time stamp indicating when this data object was created. Format is a number expressed in Unix time as milliseconds.
arnstringThe Amazon Resource Name (ARN) that is assigned to a Amazon GameLift matchmaking rule set resource and uniquely identifies it.
tagsarrayAn array of key-value pairs to apply to this resource.
regionstringAWS region.

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

Methods

NameResourceAccessible byRequired Params
create_resourcematchmaking_rule_setsINSERTName, RuleSetBody, region
delete_resourcematchmaking_rule_setsDELETEIdentifier, region
update_resourcematchmaking_rule_setsUPDATEIdentifier, PatchDocument, region
list_resourcesmatchmaking_rule_sets_list_onlySELECTregion
get_resourcematchmaking_rule_setsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual matchmaking_rule_set.

SELECT
region,
name,
rule_set_body,
creation_time,
arn,
tags
FROM awscc.gamelift.matchmaking_rule_sets
WHERE
region = '{{ region }}' AND
Identifier = '{{ name }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.gamelift.matchmaking_rule_sets (
Name,
RuleSetBody,
region
)
SELECT
'{{ name }}',
'{{ rule_set_body }}',
'{{ 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_rule_set resource, using stack-deploy.

/*+ update */
UPDATE awscc.gamelift.matchmaking_rule_sets
SET PatchDocument = string('{{ {
"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_rule_sets
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_rule_sets resource, the following permissions are required:

gamelift:CreateMatchmakingRuleSet,
gamelift:DescribeMatchmakingRuleSets,
gamelift:ValidateMatchmakingRuleSet,
gamelift:ListTagsForResource,
gamelift:TagResource