Experimental
@aws-cdk/aws-gamelift-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
MatchmakingRuleSetProps Struct
Properties for a new matchmaking ruleSet.
| Stability | Experimental |
|---|---|
| Source | lib/matchmaking-ruleset.ts |
Example
ts
new gamelift.MatchmakingRuleSet(this, 'RuleSet', {
matchmakingRuleSetName: 'my-test-ruleset',
content: gamelift.RuleSetContent.fromJsonFile(path.join(__dirname, 'my-ruleset', 'ruleset.json')),
});
python
gamelift.MatchmakingRuleSet(self, "RuleSet",
matchmaking_rule_set_name="my-test-ruleset",
content=gamelift.RuleSetContent.from_json_file(path.join(__dirname, "my-ruleset", "ruleset.json"))
)
java
MatchmakingRuleSet.Builder.create(this, "RuleSet")
.matchmakingRuleSetName("my-test-ruleset")
.content(RuleSetContent.fromJsonFile(join(__dirname, "my-ruleset", "ruleset.json")))
.build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.GameLift.Alpha
new MatchmakingRuleSet(this, "RuleSet", new MatchmakingRuleSetProps {
MatchmakingRuleSetName = "my-test-ruleset",
Content = RuleSetContent.FromJsonFile(Join(__dirname, "my-ruleset", "ruleset.json"))
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdkgameliftalpha/v2
gamelift.NewMatchmakingRuleSet(this, jsii.String("RuleSet"), &MatchmakingRuleSetProps{
MatchmakingRuleSetName: jsii.String("my-test-ruleset"),
Content: gamelift.RuleSetContent_FromJsonFile(path.join(__dirname, jsii.String("my-ruleset"), jsii.String("ruleset.json"))),
})
Properties
contentRuleSetContentcontentRuleSetContentcontentRuleSetContentContentRuleSetContentContentRuleSetContent required #A collection of matchmaking rules.
matchmakingRuleSetNamestringmatchmaking_rule_set_namestrmatchmakingRuleSetNameStringMatchmakingRuleSetNamestringMatchmakingRuleSetName*string required #A unique identifier for the matchmaking rule set.
A matchmaking configuration identifies the rule set it uses by this name value.
Note: the rule set name is different from the optional name field in the rule set body