Class MatchmakingRuleSet
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.gamelift.alpha.MatchmakingRuleSetBase
software.amazon.awscdk.services.gamelift.alpha.MatchmakingRuleSet
- All Implemented Interfaces:
IResource,IMatchmakingRuleSet,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:50.028Z")
@Stability(Experimental)
public class MatchmakingRuleSet
extends MatchmakingRuleSetBase
(experimental) Creates a new rule set for FlexMatch matchmaking.
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.
Rule sets must be defined in the same Region as the matchmaking configuration they are used with.
Example:
MatchmakingRuleSet.Builder.create(this, "RuleSet")
.matchmakingRuleSetName("my-test-ruleset")
.content(RuleSetContent.fromJsonFile(join(__dirname, "my-ruleset", "ruleset.json")))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class(experimental) A fluent builder forMatchmakingRuleSet.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.gamelift.alpha.IMatchmakingRuleSet
IMatchmakingRuleSet.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String(experimental) Uniquely identifies this class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMatchmakingRuleSet(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedMatchmakingRuleSet(software.amazon.jsii.JsiiObjectRef objRef) MatchmakingRuleSet(software.constructs.Construct scope, String id, MatchmakingRuleSetProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IMatchmakingRuleSetfromMatchmakingRuleSetArn(software.constructs.Construct scope, String id, String matchmakingRuleSetArn) (experimental) Import a ruleSet into CDK using its ARN.static IMatchmakingRuleSetfromMatchmakingRuleSetAttributes(software.constructs.Construct scope, String id, MatchmakingRuleSetAttributes attrs) (experimental) Import an existing matchmaking ruleSet from its attributes.static IMatchmakingRuleSetfromMatchmakingRuleSetName(software.constructs.Construct scope, String id, String matchmakingRuleSetName) (experimental) Import a ruleSet into CDK using its name.(experimental) The ARN of the ruleSet.(experimental) The unique name of the ruleSet.Methods inherited from class software.amazon.awscdk.services.gamelift.alpha.MatchmakingRuleSetBase
metric, metric, metricRuleEvaluationsFailed, metricRuleEvaluationsFailed, metricRuleEvaluationsPassed, metricRuleEvaluationsPassedMethods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods 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, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
PROPERTY_INJECTION_ID
(experimental) Uniquely identifies this class.
-
-
Constructor Details
-
MatchmakingRuleSet
protected MatchmakingRuleSet(software.amazon.jsii.JsiiObjectRef objRef) -
MatchmakingRuleSet
protected MatchmakingRuleSet(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
MatchmakingRuleSet
@Stability(Experimental) public MatchmakingRuleSet(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull MatchmakingRuleSetProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.
-
-
Method Details
-
fromMatchmakingRuleSetArn
@Stability(Experimental) @NotNull public static IMatchmakingRuleSet fromMatchmakingRuleSetArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String matchmakingRuleSetArn) (experimental) Import a ruleSet into CDK using its ARN.- Parameters:
scope- This parameter is required.id- This parameter is required.matchmakingRuleSetArn- This parameter is required.
-
fromMatchmakingRuleSetAttributes
@Stability(Experimental) @NotNull public static IMatchmakingRuleSet fromMatchmakingRuleSetAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull MatchmakingRuleSetAttributes attrs) (experimental) Import an existing matchmaking ruleSet from its attributes.- Parameters:
scope- This parameter is required.id- This parameter is required.attrs- This parameter is required.
-
fromMatchmakingRuleSetName
@Stability(Experimental) @NotNull public static IMatchmakingRuleSet fromMatchmakingRuleSetName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String matchmakingRuleSetName) (experimental) Import a ruleSet into CDK using its name.- Parameters:
scope- This parameter is required.id- This parameter is required.matchmakingRuleSetName- This parameter is required.
-
getMatchmakingRuleSetArn
(experimental) The ARN of the ruleSet.- Specified by:
getMatchmakingRuleSetArnin interfaceIMatchmakingRuleSet- Specified by:
getMatchmakingRuleSetArnin classMatchmakingRuleSetBase
-
getMatchmakingRuleSetName
(experimental) The unique name of the ruleSet.- Specified by:
getMatchmakingRuleSetNamein interfaceIMatchmakingRuleSet- Specified by:
getMatchmakingRuleSetNamein classMatchmakingRuleSetBase
-