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.
Idaws.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.

Methods

NameAccessible byRequired Params
create_resourceINSERTName, RuleSetBody, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all matchmaking_rule_sets in a region.

SELECT
region,
name,
rule_set_body,
creation_time,
arn,
tags
FROM aws.gamelift.matchmaking_rule_sets
WHERE region = 'us-east-1';

Gets all properties from an individual matchmaking_rule_set.

SELECT
region,
name,
rule_set_body,
creation_time,
arn,
tags
FROM aws.gamelift.matchmaking_rule_sets
WHERE region = 'us-east-1' AND data__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 aws.gamelift.matchmaking_rule_sets (
Name,
RuleSetBody,
region
)
SELECT
'{{ Name }}',
'{{ RuleSetBody }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.gamelift.matchmaking_rule_sets
WHERE data__Identifier = '<Name>'
AND region = 'us-east-1';

Permissions

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

Create

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

Read

gamelift:DescribeMatchmakingRuleSets,
gamelift:ValidateMatchmakingRuleSet,
gamelift:ListTagsForResource

Delete

gamelift:DeleteMatchmakingRuleSet

Update

gamelift:DescribeMatchmakingRuleSets,
gamelift:ListTagsForResource,
gamelift:TagResource,
gamelift:UntagResource

List

gamelift:DescribeMatchmakingRuleSets