Class CfnMatchmakingConfiguration
- All Implemented Interfaces:
IConstruct
,IDependable
,IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
AWS::GameLift::MatchmakingConfiguration
.
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") .customEventData("customEventData") .description("description") .flexMatchMode("flexMatchMode") .gameProperties(List.of(GamePropertyProperty.builder() .key("key") .value("value") .build())) .gameSessionData("gameSessionData") .gameSessionQueueArns(List.of("gameSessionQueueArns")) .notificationTarget("notificationTarget") .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .build();
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnMatchmakingConfiguration
.static interface
Set of key-value pairs that contain information about a game session.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionCfnMatchmakingConfiguration
(Construct scope, String id, CfnMatchmakingConfigurationProps props) Create a newAWS::GameLift::MatchmakingConfiguration
.protected
CfnMatchmakingConfiguration
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnMatchmakingConfiguration
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionA 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
.TheMatchmakingConfiguration
name, which is unique.The method used to backfill game sessions that are created with this matchmaking configuration.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 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 game session queue resource and uniquely identifies it.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.A unique identifier for the matchmaking rule set to use with this configuration.getTags()
A list of labels to assign to the new matchmaking configuration resource.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setAcceptanceRequired
(Boolean value) A flag that determines whether a match that was created with this configuration must be accepted by the matched players.void
setAcceptanceRequired
(IResolvable value) A flag that determines whether a match that was created with this configuration must be accepted by the matched players.void
The length of time (in seconds) to wait for players to accept a proposed match, if acceptance is required.void
setAdditionalPlayerCount
(Number value) The number of player slots in a match to keep open for future players.void
setBackfillMode
(String value) The method used to backfill game sessions that are created with this matchmaking configuration.void
setCustomEventData
(String value) Information to add to all events related to the matchmaking configuration.void
setDescription
(String value) A description for the matchmaking configuration.void
setFlexMatchMode
(String value) Indicates whether this matchmaking configuration is being used with Amazon GameLift hosting or as a standalone matchmaking solution.void
setGameProperties
(List<Object> value) A set of custom properties for a game session, formatted as key-value pairs.void
setGameProperties
(IResolvable value) A set of custom properties for a game session, formatted as key-value pairs.void
setGameSessionData
(String value) A set of custom game session properties, formatted as a single string value.void
setGameSessionQueueArns
(List<String> value) The Amazon Resource Name ( ARN ) that is assigned to a Amazon GameLift game session queue resource and uniquely identifies it.void
A unique identifier for the matchmaking configuration.void
setNotificationTarget
(String value) An SNS topic ARN that is set up to receive matchmaking notifications.void
setRequestTimeoutSeconds
(Number value) The maximum duration, in seconds, that a matchmaking ticket can remain in process before timing out.void
setRuleSetName
(String value) A unique identifier for the matchmaking rule set to use with this configuration.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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 Construct scope, @NotNull String id, @NotNull CfnMatchmakingConfigurationProps props) Create a newAWS::GameLift::MatchmakingConfiguration
.- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
props
-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrArn
The unique Amazon Resource Name (ARN) for theMatchmakingConfiguration
. -
getAttrName
TheMatchmakingConfiguration
name, which is unique. -
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getTags
A list of labels to assign to the new matchmaking configuration resource.Tags are developer-defined key-value pairs. Tagging AWS resources are useful for resource management, access management and cost allocation. For more information, see Tagging AWS Resources in the AWS General Reference . Once the resource is created, you can use TagResource, UntagResource, and ListTagsForResource to add, remove, and view tags. The maximum tag limit may be lower than stated. See the AWS General Reference for actual tagging limits.
-
getAcceptanceRequired
A flag that determines whether a match that was created with this configuration must be accepted by the matched players.To require acceptance, set to
TRUE
. With this option enabled, matchmaking tickets use the statusREQUIRES_ACCEPTANCE
to indicate when a completed potential match is waiting for player acceptance. -
setAcceptanceRequired
A flag that determines whether a match that was created with this configuration must be accepted by the matched players.To require acceptance, set to
TRUE
. With this option enabled, matchmaking tickets use the statusREQUIRES_ACCEPTANCE
to indicate when a completed potential match is waiting for player acceptance. -
setAcceptanceRequired
A flag that determines whether a match that was created with this configuration must be accepted by the matched players.To require acceptance, set to
TRUE
. With this option enabled, matchmaking tickets use the statusREQUIRES_ACCEPTANCE
to indicate when a completed potential match is waiting for player acceptance. -
getName
A unique identifier for the matchmaking configuration.This name is used to identify the configuration associated with a matchmaking request or ticket.
-
setName
A unique identifier for the matchmaking configuration.This name is used to identify the configuration associated with a matchmaking request or ticket.
-
getRequestTimeoutSeconds
The maximum duration, in seconds, that a matchmaking ticket can remain in process before timing out.Requests that fail due to timing out can be resubmitted as needed.
-
setRequestTimeoutSeconds
The maximum duration, in seconds, that a matchmaking ticket can remain in process before timing out.Requests that fail due to timing out can be resubmitted as needed.
-
getRuleSetName
A unique identifier for the matchmaking rule set to use with this configuration.You can use either the rule set name or ARN value. A matchmaking configuration can only use rule sets that are defined in the same Region.
-
setRuleSetName
A unique identifier for the matchmaking rule set to use with this configuration.You can use either the rule set name or ARN value. A matchmaking configuration can only use rule sets that are defined in the same Region.
-
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.For example, if the configuration's rule set specifies a match for a single 10-person team, and the additional player count is set to 2, 10 players will be selected for the match and 2 more player slots will be open for future players. This parameter is not used if
FlexMatchMode
is set toSTANDALONE
. -
setAdditionalPlayerCount
The number of player slots in a match to keep open for future players.For example, if the configuration's rule set specifies a match for a single 10-person team, and the additional player count is set to 2, 10 players will be selected for the match and 2 more player slots will be open for future players. This parameter is not used if
FlexMatchMode
is set toSTANDALONE
. -
getBackfillMode
The method used to backfill game sessions that are created with this matchmaking configuration.Specify
MANUAL
when your game manages backfill requests manually or does not use the match backfill feature. SpecifyAUTOMATIC
to have GameLift create aStartMatchBackfill
request whenever a game session has one or more open slots. Learn more about manual and automatic backfill in Backfill Existing Games with FlexMatch . Automatic backfill is not available whenFlexMatchMode
is set toSTANDALONE
. -
setBackfillMode
The method used to backfill game sessions that are created with this matchmaking configuration.Specify
MANUAL
when your game manages backfill requests manually or does not use the match backfill feature. SpecifyAUTOMATIC
to have GameLift create aStartMatchBackfill
request whenever a game session has one or more open slots. Learn more about manual and automatic backfill in Backfill Existing Games with FlexMatch . Automatic backfill is not available whenFlexMatchMode
is set toSTANDALONE
. -
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 hosting or as a standalone matchmaking solution.- STANDALONE - FlexMatch forms matches and returns match information, including players and team assignments, in a MatchmakingSucceeded event.
- WITH_QUEUE - FlexMatch forms matches and uses the specified Amazon GameLift queue to start a game session for the match.
-
setFlexMatchMode
Indicates whether this matchmaking configuration is being used with Amazon GameLift hosting or as a standalone matchmaking solution.- STANDALONE - FlexMatch forms matches and returns match information, including players and team assignments, in a MatchmakingSucceeded event.
- WITH_QUEUE - FlexMatch forms matches and uses the specified Amazon GameLift queue to start a game session for the match.
-
getGameProperties
A set of custom properties for a game session, formatted as key-value pairs.These properties are passed to a game server process with a request to start a new game session. See Start a Game Session . This parameter is not used if
FlexMatchMode
is set toSTANDALONE
. -
setGameProperties
A set of custom properties for a game session, formatted as key-value pairs.These properties are passed to a game server process with a request to start a new game session. See Start a Game Session . This parameter is not used if
FlexMatchMode
is set toSTANDALONE
. -
setGameProperties
A set of custom properties for a game session, formatted as key-value pairs.These properties are passed to a game server process with a request to start a new game session. See Start a Game Session . This parameter is not used if
FlexMatchMode
is set toSTANDALONE
. -
getGameSessionData
A set of custom game session properties, formatted as a single string value.This data is passed to a game server process with a request to start a new game session. See Start a Game Session . This parameter is not used if
FlexMatchMode
is set toSTANDALONE
. -
setGameSessionData
A set of custom game session properties, formatted as a single string value.This data is passed to a game server process with a request to start a new game session. See Start a Game Session . This parameter is not used if
FlexMatchMode
is set toSTANDALONE
. -
getGameSessionQueueArns
The Amazon Resource Name ( ARN ) that is assigned to a Amazon GameLift 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-hosted game sessions for matches that are created with this matchmaking configuration. IfFlexMatchMode
is set toSTANDALONE
, do not set this parameter. -
setGameSessionQueueArns
The Amazon Resource Name ( ARN ) that is assigned to a Amazon GameLift 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-hosted game sessions for matches that are created with this matchmaking configuration. IfFlexMatchMode
is set toSTANDALONE
, do not set this parameter. -
getNotificationTarget
An SNS topic ARN that is set up to receive matchmaking notifications.See Setting up notifications for matchmaking for more information.
-
setNotificationTarget
An SNS topic ARN that is set up to receive matchmaking notifications.See Setting up notifications for matchmaking for more information.
-