You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/@aws-cdk/aws-gamelift/README.md
+69-2
Original file line number
Diff line number
Diff line change
@@ -50,6 +50,73 @@ deliver inexpensive, resilient game hosting for your players
50
50
This module is part of the [AWS Cloud Development Kit](https://github.com/aws/aws-cdk) project. It allows you to define components for your matchmaking
51
51
configuration or game server fleet management system.
52
52
53
+
## GameLift FlexMatch
54
+
55
+
### Matchmaking RuleSet
56
+
57
+
Every FlexMatch matchmaker must have a rule set. The rule set determines the
58
+
two key elements of a match: your game's team structure and size, and how to
59
+
group players together for the best possible match.
60
+
61
+
For example, a rule set might describe a match like this: Create a match with
62
+
two teams of four to eight players each, one team is the cowboy and the other
63
+
team the aliens. A team can have novice and experienced players, but the
64
+
average skill of the two teams must be within 10 points of each other. If no
65
+
match is made after 30 seconds, gradually relax the skill requirements.
* Interface to represent Matchmaking RuleSet schema
6
+
*/
7
+
exportinterfaceIRuleSetBody{}
8
+
9
+
/**
10
+
* Interface to represent output result of a RuleSetContent binding
11
+
*/
12
+
exportinterfaceRuleSetBodyConfig{
13
+
/**
14
+
* Inline ruleSet body.
15
+
*/
16
+
readonlyruleSetBody: string;
17
+
}
18
+
19
+
/**
20
+
* Interface to represent a Matchmaking RuleSet content
21
+
*/
22
+
exportinterfaceIRuleSetContent{
23
+
24
+
/**
25
+
* RuleSet body content
26
+
*
27
+
* @attribute
28
+
*/
29
+
readonlycontent: IRuleSetBody;
30
+
31
+
/**
32
+
* Called when the matchmaking ruleSet is initialized to allow this object to bind
33
+
* to the stack and add resources.
34
+
*
35
+
* @param _scope The binding scope.
36
+
*/
37
+
bind(_scope: Construct): RuleSetBodyConfig;
38
+
}
39
+
40
+
/**
41
+
* Properties for a new matchmaking ruleSet content
42
+
*/
43
+
exportinterfaceRuleSetContentProps{
44
+
45
+
/**
46
+
* RuleSet body content
47
+
*
48
+
* @default use a default empty RuleSet body
49
+
*/
50
+
readonlycontent?: IRuleSetBody;
51
+
}
52
+
53
+
/**
54
+
* The rule set determines the two key elements of a match: your game's team structure and size, and how to group players together for the best possible match.
55
+
*
56
+
* For example, a rule set might describe a match like this:
57
+
* - Create a match with two teams of five players each, one team is the defenders and the other team the invaders.
58
+
* - A team can have novice and experienced players, but the average skill of the two teams must be within 10 points of each other.
59
+
* - If no match is made after 30 seconds, gradually relax the skill requirements.
0 commit comments