Skip to main content

matchmaking_rule_sets

Creates, updates, deletes, gets or lists a matchmaking_rule_sets resource.

Overview

Namematchmaking_rule_sets
TypeResource
Idaws.gamelift.matchmaking_rule_sets

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
creation_timestring (date-time)A time stamp indicating when this data object was created. Format is a number expressed in Unix time as milliseconds (for example "1469498468.057").
rule_set_arnstringThe Amazon Resource Name (ARN) that is assigned to a Amazon GameLift Servers matchmaking rule set resource and uniquely identifies it. ARNs are unique across all Regions. Format is arn:aws:gamelift:<region>::matchmakingruleset/<ruleset name>. In a GameLift rule set ARN, the resource ID matches the RuleSetName value. (pattern: <code>^arn:.:matchmakingruleset/[a-zA-Z0-9-.]$</code>)
rule_set_bodystringA collection of matchmaking rules, formatted as a JSON string. Comments are not allowed in JSON, but most elements support a description field.
rule_set_namestringA unique identifier for the matchmaking rule set (pattern: <code>^[a-zA-Z0-9-.]*$</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_matchmaking_rule_setsselectregionThis API works with the following fleet types: EC2, Anywhere, Container Retrieves the details for FlexMatch matchmaking rule sets. You can request all existing rule sets for the Region, or provide a list of one or more rule set names. When requesting multiple items, use the pagination parameters to retrieve results as a set of sequential pages. If successful, a rule set is returned for each requested name. Learn more Build a rule set
create_matchmaking_rule_setinsertregion, Name, RuleSetBodyThis API works with the following fleet types: EC2, Anywhere, Container Creates a new rule set for FlexMatch matchmaking. A rule set describes the type of match to create, such as the number and size of teams. It also sets the parameters for acceptable player matches, such as minimum skill level or character type. To create a matchmaking rule set, provide unique rule set name and the rule set body in JSON format. Rule sets must be defined in the same Region as the matchmaking configuration they are used with. Since matchmaking rule sets cannot be edited, it is a good idea to check the rule set syntax using ValidateMatchmakingRuleSet before creating a new rule set. Learn more Build a rule set Design a matchmaker Matchmaking with FlexMatch
delete_matchmaking_rule_setdeleteregionThis API works with the following fleet types: EC2, Anywhere, Container Deletes an existing matchmaking rule set. To delete the rule set, provide the rule set name. Rule sets cannot be deleted if they are currently being used by a matchmaking configuration. Learn more Build a rule set

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

This API works with the following fleet types: EC2, Anywhere, Container Retrieves the details for FlexMatch matchmaking rule sets. You can request all existing rule sets for the Region, or provide a list of one or more rule set names. When requesting multiple items, use the pagination parameters to retrieve results as a set of sequential pages. If successful, a rule set is returned for each requested name. Learn more Build a rule set

SELECT
creation_time,
rule_set_arn,
rule_set_body,
rule_set_name
FROM aws.gamelift.matchmaking_rule_sets
WHERE region = '{{ region }}' -- required
;

INSERT examples

This API works with the following fleet types: EC2, Anywhere, Container Creates a new rule set for FlexMatch matchmaking. A rule set describes the type of match to create, such as the number and size of teams. It also sets the parameters for acceptable player matches, such as minimum skill level or character type. To create a matchmaking rule set, provide unique rule set name and the rule set body in JSON format. Rule sets must be defined in the same Region as the matchmaking configuration they are used with. Since matchmaking rule sets cannot be edited, it is a good idea to check the rule set syntax using ValidateMatchmakingRuleSet before creating a new rule set. Learn more Build a rule set Design a matchmaker Matchmaking with FlexMatch

INSERT INTO aws.gamelift.matchmaking_rule_sets (
Name,
RuleSetBody,
Tags,
region
)
SELECT
'{{ Name }}' /* required */,
'{{ RuleSetBody }}' /* required */,
'{{ Tags }}',
'{{ region }}'
RETURNING
rule_set
;

DELETE examples

This API works with the following fleet types: EC2, Anywhere, Container Deletes an existing matchmaking rule set. To delete the rule set, provide the rule set name. Rule sets cannot be deleted if they are currently being used by a matchmaking configuration. Learn more Build a rule set

DELETE FROM aws.gamelift.matchmaking_rule_sets
WHERE region = '{{ region }}' --required
;