Class CfnMatchmakingConfiguration
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.gamelift.CfnMatchmakingConfiguration
- All Implemented Interfaces:
IInspectable,IMatchmakingConfigurationRef,IEnvironmentAware,ITaggable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T22:26:37.368Z")
@Stability(Stable)
public class CfnMatchmakingConfiguration
extends CfnResource
implements IInspectable, IMatchmakingConfigurationRef, ITaggable
The
AWS::GameLift::MatchmakingConfiguration resource defines a new matchmaking configuration for use with FlexMatch.
Whether you're using FlexMatch with GameLift hosting or as a standalone matchmaking service, the matchmaking configuration sets out rules for matching players and forming teams. If you're using GameLift hosting, it also defines how to start game sessions for each match. Your matchmaking system can use multiple configurations to handle different game scenarios. All matchmaking requests identify the matchmaking configuration to use and provide player attributes that are consistent with that configuration.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.gamelift.*;
CfnMatchmakingConfiguration cfnMatchmakingConfiguration = CfnMatchmakingConfiguration.Builder.create(this, "MyCfnMatchmakingConfiguration")
.acceptanceRequired(false)
.name("name")
.requestTimeoutSeconds(123)
.ruleSetName("ruleSetName")
// the properties below are optional
.acceptanceTimeoutSeconds(123)
.additionalPlayerCount(123)
.backfillMode("backfillMode")
.creationTime("creationTime")
.customEventData("customEventData")
.description("description")
.flexMatchMode("flexMatchMode")
.gameProperties(List.of(GamePropertyProperty.builder()
.key("key")
.value("value")
.build()))
.gameSessionData("gameSessionData")
.gameSessionQueueArns(List.of("gameSessionQueueArns"))
.notificationTarget("notificationTarget")
.ruleSetArn("ruleSetArn")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnMatchmakingConfiguration.static interfaceThis key-value pair can store custom data about a game session.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.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.gamelift.IMatchmakingConfigurationRef
IMatchmakingConfigurationRef.Jsii$Default, IMatchmakingConfigurationRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnMatchmakingConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnMatchmakingConfiguration(software.amazon.jsii.JsiiObjectRef objRef) CfnMatchmakingConfiguration(software.constructs.Construct scope, String id, CfnMatchmakingConfigurationProps props) Create a newAWS::GameLift::MatchmakingConfiguration. -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringstatic IMatchmakingConfigurationReffromMatchmakingConfigurationArn(software.constructs.Construct scope, String id, String arn) Creates a new IMatchmakingConfigurationRef from an ARN.static IMatchmakingConfigurationReffromMatchmakingConfigurationName(software.constructs.Construct scope, String id, String matchmakingConfigurationName) Creates a new IMatchmakingConfigurationRef from a matchmakingConfigurationName.A flag that determines whether a match that was created with this configuration must be accepted by the matched players.The length of time (in seconds) to wait for players to accept a proposed match, if acceptance is required.The number of player slots in a match to keep open for future players.The unique Amazon Resource Name (ARN) for theMatchmakingConfiguration.TheMatchmakingConfigurationname, which is unique.The method used to backfill game sessions that are created with this matchmaking configuration.A time stamp indicating when this data object was created.Information to add to all events related to the matchmaking configuration.A description for the matchmaking configuration.Indicates whether this matchmaking configuration is being used with Amazon GameLift Servers hosting or as a standalone matchmaking solution.A set of custom properties for a game session, formatted as key-value pairs.A set of custom game session properties, formatted as a single string value.The Amazon Resource Name ( ARN ) that is assigned to a Amazon GameLift Servers game session queue resource and uniquely identifies it.A reference to a MatchmakingConfiguration resource.getName()A unique identifier for the matchmaking configuration.An SNS topic ARN that is set up to receive matchmaking notifications.The maximum duration, in seconds, that a matchmaking ticket can remain in process before timing out.The Amazon Resource Name ( ARN ) associated with the GameLift matchmaking rule set resource that this configuration uses.A unique identifier for the matchmaking rule set to use with this configuration.getTags()Tag Manager which manages the tags for this resource.A list of labels to assign to the new matchmaking configuration resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnMatchmakingConfiguration.renderProperties(Map<String, Object> props) voidsetAcceptanceRequired(Boolean value) A flag that determines whether a match that was created with this configuration must be accepted by the matched players.voidsetAcceptanceRequired(IResolvable value) A flag that determines whether a match that was created with this configuration must be accepted by the matched players.voidThe length of time (in seconds) to wait for players to accept a proposed match, if acceptance is required.voidsetAdditionalPlayerCount(Number value) The number of player slots in a match to keep open for future players.voidsetBackfillMode(String value) The method used to backfill game sessions that are created with this matchmaking configuration.voidsetCreationTime(String value) A time stamp indicating when this data object was created.voidsetCustomEventData(String value) Information to add to all events related to the matchmaking configuration.voidsetDescription(String value) A description for the matchmaking configuration.voidsetFlexMatchMode(String value) Indicates whether this matchmaking configuration is being used with Amazon GameLift Servers hosting or as a standalone matchmaking solution.voidsetGameProperties(List<Object> value) A set of custom properties for a game session, formatted as key-value pairs.voidsetGameProperties(IResolvable value) A set of custom properties for a game session, formatted as key-value pairs.voidsetGameSessionData(String value) A set of custom game session properties, formatted as a single string value.voidsetGameSessionQueueArns(List<String> value) The Amazon Resource Name ( ARN ) that is assigned to a Amazon GameLift Servers game session queue resource and uniquely identifies it.voidA unique identifier for the matchmaking configuration.voidsetNotificationTarget(String value) An SNS topic ARN that is set up to receive matchmaking notifications.voidsetRequestTimeoutSeconds(Number value) The maximum duration, in seconds, that a matchmaking ticket can remain in process before timing out.voidsetRuleSetArn(String value) The Amazon Resource Name ( ARN ) associated with the GameLift matchmaking rule set resource that this configuration uses.voidsetRuleSetName(String value) A unique identifier for the matchmaking rule set to use with this configuration.voidsetTagsRaw(List<CfnTag> value) A list of labels to assign to the new matchmaking configuration resource.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods 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.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnMatchmakingConfiguration
protected CfnMatchmakingConfiguration(software.amazon.jsii.JsiiObjectRef objRef) -
CfnMatchmakingConfiguration
protected CfnMatchmakingConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnMatchmakingConfiguration
@Stability(Stable) public CfnMatchmakingConfiguration(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnMatchmakingConfigurationProps props) Create a newAWS::GameLift::MatchmakingConfiguration.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForMatchmakingConfiguration
@Stability(Stable) @NotNull public static String arnForMatchmakingConfiguration(@NotNull IMatchmakingConfigurationRef resource) - Parameters:
resource- This parameter is required.
-
fromMatchmakingConfigurationArn
@Stability(Stable) @NotNull public static IMatchmakingConfigurationRef fromMatchmakingConfigurationArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String arn) Creates a new IMatchmakingConfigurationRef from an ARN.- Parameters:
scope- This parameter is required.id- This parameter is required.arn- This parameter is required.
-
fromMatchmakingConfigurationName
@Stability(Stable) @NotNull public static IMatchmakingConfigurationRef fromMatchmakingConfigurationName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String matchmakingConfigurationName) Creates a new IMatchmakingConfigurationRef from a matchmakingConfigurationName.- Parameters:
scope- This parameter is required.id- This parameter is required.matchmakingConfigurationName- This parameter is required.
-
isCfnMatchmakingConfiguration
Checks whether the given object is a CfnMatchmakingConfiguration.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
The unique Amazon Resource Name (ARN) for theMatchmakingConfiguration. -
getAttrName
TheMatchmakingConfigurationname, which is unique. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getMatchmakingConfigurationRef
@Stability(Stable) @NotNull public MatchmakingConfigurationReference getMatchmakingConfigurationRef()A reference to a MatchmakingConfiguration resource.- Specified by:
getMatchmakingConfigurationRefin interfaceIMatchmakingConfigurationRef
-
getTags
Tag Manager which manages the tags for this resource. -
getAcceptanceRequired
A flag that determines whether a match that was created with this configuration must be accepted by the matched players.Returns union: either
BooleanorIResolvable -
setAcceptanceRequired
A flag that determines whether a match that was created with this configuration must be accepted by the matched players. -
setAcceptanceRequired
A flag that determines whether a match that was created with this configuration must be accepted by the matched players. -
getName
A unique identifier for the matchmaking configuration. -
setName
A unique identifier for the matchmaking configuration. -
getRequestTimeoutSeconds
The maximum duration, in seconds, that a matchmaking ticket can remain in process before timing out. -
setRequestTimeoutSeconds
The maximum duration, in seconds, that a matchmaking ticket can remain in process before timing out. -
getRuleSetName
A unique identifier for the matchmaking rule set to use with this configuration. -
setRuleSetName
A unique identifier for the matchmaking rule set to use with this configuration. -
getAcceptanceTimeoutSeconds
The length of time (in seconds) to wait for players to accept a proposed match, if acceptance is required. -
setAcceptanceTimeoutSeconds
The length of time (in seconds) to wait for players to accept a proposed match, if acceptance is required. -
getAdditionalPlayerCount
The number of player slots in a match to keep open for future players. -
setAdditionalPlayerCount
The number of player slots in a match to keep open for future players. -
getBackfillMode
The method used to backfill game sessions that are created with this matchmaking configuration. -
setBackfillMode
The method used to backfill game sessions that are created with this matchmaking configuration. -
getCreationTime
A time stamp indicating when this data object was created. -
setCreationTime
A time stamp indicating when this data object was created. -
getCustomEventData
Information to add to all events related to the matchmaking configuration. -
setCustomEventData
Information to add to all events related to the matchmaking configuration. -
getDescription
A description for the matchmaking configuration. -
setDescription
A description for the matchmaking configuration. -
getFlexMatchMode
Indicates whether this matchmaking configuration is being used with Amazon GameLift Servers hosting or as a standalone matchmaking solution. -
setFlexMatchMode
Indicates whether this matchmaking configuration is being used with Amazon GameLift Servers hosting or as a standalone matchmaking solution. -
getGameProperties
A set of custom properties for a game session, formatted as key-value pairs.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnMatchmakingConfiguration.GamePropertyProperty> -
setGameProperties
A set of custom properties for a game session, formatted as key-value pairs. -
setGameProperties
A set of custom properties for a game session, formatted as key-value pairs. -
getGameSessionData
A set of custom game session properties, formatted as a single string value. -
setGameSessionData
A set of custom game session properties, formatted as a single string value. -
getGameSessionQueueArns
The Amazon Resource Name ( ARN ) that is assigned to a Amazon GameLift Servers game session queue resource and uniquely identifies it. ARNs are unique across all Regions. Format isarn:aws:gamelift:<region>::gamesessionqueue/<queue name>. Queues can be located in any Region. Queues are used to start new Amazon GameLift Servers-hosted game sessions for matches that are created with this matchmaking configuration. IfFlexMatchModeis set toSTANDALONE, do not set this parameter. -
setGameSessionQueueArns
The Amazon Resource Name ( ARN ) that is assigned to a Amazon GameLift Servers game session queue resource and uniquely identifies it. ARNs are unique across all Regions. Format isarn:aws:gamelift:<region>::gamesessionqueue/<queue name>. Queues can be located in any Region. Queues are used to start new Amazon GameLift Servers-hosted game sessions for matches that are created with this matchmaking configuration. IfFlexMatchModeis set toSTANDALONE, do not set this parameter. -
getNotificationTarget
An SNS topic ARN that is set up to receive matchmaking notifications. -
setNotificationTarget
An SNS topic ARN that is set up to receive matchmaking notifications. -
getRuleSetArn
The Amazon Resource Name ( ARN ) associated with the GameLift matchmaking rule set resource that this configuration uses. -
setRuleSetArn
The Amazon Resource Name ( ARN ) associated with the GameLift matchmaking rule set resource that this configuration uses. -
getTagsRaw
A list of labels to assign to the new matchmaking configuration resource. -
setTagsRaw
A list of labels to assign to the new matchmaking configuration resource.
-