@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.490Z") @Stability(value=Stable) public class CfnMatchmakingConfiguration extends CfnResource implements IInspectable
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();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnMatchmakingConfiguration.Builder
A fluent builder for
CfnMatchmakingConfiguration. |
static interface |
CfnMatchmakingConfiguration.GamePropertyProperty
Set of key-value pairs that contain information about a game session.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnMatchmakingConfiguration(software.constructs.Construct scope,
String id,
CfnMatchmakingConfigurationProps props)
Create a new `AWS::GameLift::MatchmakingConfiguration`.
|
protected |
CfnMatchmakingConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnMatchmakingConfiguration(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAcceptanceRequired()
A flag that determines whether a match that was created with this configuration must be accepted by the matched players.
|
Number |
getAcceptanceTimeoutSeconds()
The length of time (in seconds) to wait for players to accept a proposed match, if acceptance is required.
|
Number |
getAdditionalPlayerCount()
The number of player slots in a match to keep open for future players.
|
String |
getAttrArn()
The unique Amazon Resource Name (ARN) for the `MatchmakingConfiguration` .
|
String |
getAttrName()
The `MatchmakingConfiguration` name, which is unique.
|
String |
getBackfillMode()
The method used to backfill game sessions that are created with this matchmaking configuration.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getCustomEventData()
Information to add to all events related to the matchmaking configuration.
|
String |
getDescription()
A descriptive label that is associated with matchmaking configuration.
|
String |
getFlexMatchMode()
Indicates whether this matchmaking configuration is being used with GameLift hosting or as a standalone matchmaking solution.
|
Object |
getGameProperties()
A set of custom properties for a game session, formatted as key-value pairs.
|
String |
getGameSessionData()
A set of custom game session properties, formatted as a single string value.
|
List<String> |
getGameSessionQueueArns()
The Amazon Resource Name ( [ARN](https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-arn-format.html) ) that is assigned to a GameLift game session queue resource and uniquely identifies it.
|
String |
getName()
A unique identifier for the matchmaking configuration.
|
String |
getNotificationTarget()
An SNS topic ARN that is set up to receive matchmaking notifications.
|
Number |
getRequestTimeoutSeconds()
The maximum duration, in seconds, that a matchmaking ticket can remain in process before timing out.
|
String |
getRuleSetName()
A unique identifier for the matchmaking rule set to use with this configuration.
|
TagManager |
getTags()
A list of labels to assign to the new matchmaking configuration resource.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
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 |
setAcceptanceTimeoutSeconds(Number value)
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 descriptive label that is associated with matchmaking configuration.
|
void |
setFlexMatchMode(String value)
Indicates whether this matchmaking configuration is being used with GameLift hosting or as a standalone matchmaking solution.
|
void |
setGameProperties(IResolvable value)
A set of custom properties for a game session, formatted as key-value pairs.
|
void |
setGameProperties(List<Object> 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](https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-arn-format.html) ) that is assigned to a GameLift game session queue resource and uniquely identifies it.
|
void |
setName(String value)
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.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnMatchmakingConfiguration(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnMatchmakingConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnMatchmakingConfiguration(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnMatchmakingConfigurationProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrArn()
@Stability(value=Stable) @NotNull public String getAttrName()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
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.
@Stability(value=Stable) @NotNull public Object getAcceptanceRequired()
To require acceptance, set to TRUE . With this option enabled, matchmaking tickets use the status REQUIRES_ACCEPTANCE to indicate when a completed potential match is waiting for player acceptance.
@Stability(value=Stable)
public void setAcceptanceRequired(@NotNull
Boolean value)
To require acceptance, set to TRUE . With this option enabled, matchmaking tickets use the status REQUIRES_ACCEPTANCE to indicate when a completed potential match is waiting for player acceptance.
@Stability(value=Stable)
public void setAcceptanceRequired(@NotNull
IResolvable value)
To require acceptance, set to TRUE . With this option enabled, matchmaking tickets use the status REQUIRES_ACCEPTANCE to indicate when a completed potential match is waiting for player acceptance.
@Stability(value=Stable) @NotNull public String getName()
This name is used to identify the configuration associated with a matchmaking request or ticket.
@Stability(value=Stable)
public void setName(@NotNull
String value)
This name is used to identify the configuration associated with a matchmaking request or ticket.
@Stability(value=Stable) @NotNull public Number getRequestTimeoutSeconds()
Requests that fail due to timing out can be resubmitted as needed.
@Stability(value=Stable)
public void setRequestTimeoutSeconds(@NotNull
Number value)
Requests that fail due to timing out can be resubmitted as needed.
@Stability(value=Stable) @NotNull public String getRuleSetName()
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.
@Stability(value=Stable)
public void setRuleSetName(@NotNull
String value)
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.
@Stability(value=Stable) @Nullable public Number getAcceptanceTimeoutSeconds()
@Stability(value=Stable)
public void setAcceptanceTimeoutSeconds(@Nullable
Number value)
@Stability(value=Stable) @Nullable public Number getAdditionalPlayerCount()
For example, if the configuration's rule set specifies a match for a single 12-person team, and the additional player count is set to 2, only 10 players are selected for the match. This parameter is not used if FlexMatchMode is set to STANDALONE .
@Stability(value=Stable)
public void setAdditionalPlayerCount(@Nullable
Number value)
For example, if the configuration's rule set specifies a match for a single 12-person team, and the additional player count is set to 2, only 10 players are selected for the match. This parameter is not used if FlexMatchMode is set to STANDALONE .
@Stability(value=Stable) @Nullable public String getBackfillMode()
Specify MANUAL when your game manages backfill requests manually or does not use the match backfill feature. Specify AUTOMATIC to have GameLift create a StartMatchBackfill 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 when FlexMatchMode is set to STANDALONE .
@Stability(value=Stable)
public void setBackfillMode(@Nullable
String value)
Specify MANUAL when your game manages backfill requests manually or does not use the match backfill feature. Specify AUTOMATIC to have GameLift create a StartMatchBackfill 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 when FlexMatchMode is set to STANDALONE .
@Stability(value=Stable) @Nullable public String getCustomEventData()
@Stability(value=Stable)
public void setCustomEventData(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getDescription()
@Stability(value=Stable)
public void setDescription(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getFlexMatchMode()
@Stability(value=Stable)
public void setFlexMatchMode(@Nullable
String value)
@Stability(value=Stable) @Nullable public Object getGameProperties()
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 to STANDALONE .
@Stability(value=Stable)
public void setGameProperties(@Nullable
IResolvable value)
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 to STANDALONE .
@Stability(value=Stable)
public void setGameProperties(@Nullable
List<Object> value)
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 to STANDALONE .
@Stability(value=Stable) @Nullable public String getGameSessionData()
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 to STANDALONE .
@Stability(value=Stable)
public void setGameSessionData(@Nullable
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 to STANDALONE .
@Stability(value=Stable) @Nullable public List<String> getGameSessionQueueArns()
@Stability(value=Stable)
public void setGameSessionQueueArns(@Nullable
List<String> value)
@Stability(value=Stable) @Nullable public String getNotificationTarget()
See Setting up notifications for matchmaking for more information.
@Stability(value=Stable)
public void setNotificationTarget(@Nullable
String value)
See Setting up notifications for matchmaking for more information.
Copyright © 2022. All rights reserved.