Class RuleSetContent
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.gamelift.alpha.RuleSetContent
- All Implemented Interfaces:
IRuleSetContent,software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)",
date="2025-10-14T12:28:23.457Z")
@Stability(Experimental)
public class RuleSetContent
extends software.amazon.jsii.JsiiObject
implements IRuleSetContent
(experimental) 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.
For example, a rule set might describe a match like this:
- Create a match with two teams of five players each, one team is the defenders and the other team the invaders.
- A team can have novice and experienced players, but the average skill of the two teams must be within 10 points of each other.
- If no match is made after 30 seconds, gradually relax the skill requirements.
Example:
MatchmakingRuleSet.Builder.create(this, "RuleSet")
.matchmakingRuleSetName("my-test-ruleset")
.content(RuleSetContent.fromJsonFile(join(__dirname, "my-ruleset", "ruleset.json")))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class(experimental) A fluent builder forRuleSetContent.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.gamelift.alpha.IRuleSetContent
IRuleSetContent.Jsii$Default, IRuleSetContent.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRuleSetContent(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedRuleSetContent(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionbind(software.constructs.Construct _scope) (experimental) Called when the matchmaking ruleSet is initialized to allow this object to bind to the stack and add resources.static IRuleSetContentfromInline(String body) (experimental) Inline body for Matchmaking ruleSet.static IRuleSetContentfromJsonFile(String path) (experimental) Matchmaking ruleSet body from a file.(experimental) RuleSet body content.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
RuleSetContent
protected RuleSetContent(software.amazon.jsii.JsiiObjectRef objRef) -
RuleSetContent
protected RuleSetContent(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
RuleSetContent
- Parameters:
props- This parameter is required.
-
-
Method Details
-
fromInline
(experimental) Inline body for Matchmaking ruleSet.- Parameters:
body- The actual ruleSet body (maximum 65535 characters). This parameter is required.- Returns:
RuleSetContentwith inline code.
-
fromJsonFile
(experimental) Matchmaking ruleSet body from a file.- Parameters:
path- The path to the ruleSet body file. This parameter is required.- Returns:
RuleSetContentBasebased on JSON file content.
-
bind
@Stability(Experimental) @NotNull public RuleSetBodyConfig bind(@NotNull software.constructs.Construct _scope) (experimental) Called when the matchmaking ruleSet is initialized to allow this object to bind to the stack and add resources.- Specified by:
bindin interfaceIRuleSetContent- Parameters:
_scope- The binding scope. This parameter is required.
-
getContent
(experimental) RuleSet body content.- Specified by:
getContentin interfaceIRuleSetContent
-