CfnMatchmakingConfigurationProps
- class aws_cdk.aws_gamelift.CfnMatchmakingConfigurationProps(*, acceptance_required, name, request_timeout_seconds, rule_set_name, acceptance_timeout_seconds=None, additional_player_count=None, backfill_mode=None, custom_event_data=None, description=None, flex_match_mode=None, game_properties=None, game_session_data=None, game_session_queue_arns=None, notification_target=None, tags=None)
Bases:
object
Properties for defining a
CfnMatchmakingConfiguration
.- Parameters:
acceptance_required (
Union
[bool
,IResolvable
]) – A flag that determines whether a match that was created with this configuration must be accepted by the matched players. To require acceptance, set toTRUE
. With this option enabled, matchmaking tickets use the statusREQUIRES_ACCEPTANCE
to indicate when a completed potential match is waiting for player acceptance.name (
str
) – A unique identifier for the matchmaking configuration. This name is used to identify the configuration associated with a matchmaking request or ticket.request_timeout_seconds (
Union
[int
,float
]) – 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.rule_set_name (
str
) – 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.acceptance_timeout_seconds (
Union
[int
,float
,None
]) – The length of time (in seconds) to wait for players to accept a proposed match, if acceptance is required.additional_player_count (
Union
[int
,float
,None
]) – 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 ifFlexMatchMode
is set toSTANDALONE
.backfill_mode (
Optional
[str
]) – The method used to backfill game sessions that are created with this matchmaking configuration. SpecifyMANUAL
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
.custom_event_data (
Optional
[str
]) – Information to add to all events related to the matchmaking configuration.description (
Optional
[str
]) – A description for the matchmaking configuration.flex_match_mode (
Optional
[str
]) – 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.game_properties (
Union
[IResolvable
,Sequence
[Union
[IResolvable
,GamePropertyProperty
,Dict
[str
,Any
]]],None
]) – 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 ifFlexMatchMode
is set toSTANDALONE
.game_session_data (
Optional
[str
]) –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
.game_session_queue_arns (
Optional
[Sequence
[str
]]) – 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.notification_target (
Optional
[str
]) – An SNS topic ARN that is set up to receive matchmaking notifications. See Setting up notifications for matchmaking for more information.tags (
Optional
[Sequence
[Union
[CfnTag
,Dict
[str
,Any
]]]]) – 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.
- Link:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_gamelift as gamelift cfn_matchmaking_configuration_props = gamelift.CfnMatchmakingConfigurationProps( acceptance_required=False, name="name", request_timeout_seconds=123, rule_set_name="ruleSetName", # the properties below are optional acceptance_timeout_seconds=123, additional_player_count=123, backfill_mode="backfillMode", custom_event_data="customEventData", description="description", flex_match_mode="flexMatchMode", game_properties=[gamelift.CfnMatchmakingConfiguration.GamePropertyProperty( key="key", value="value" )], game_session_data="gameSessionData", game_session_queue_arns=["gameSessionQueueArns"], notification_target="notificationTarget", tags=[CfnTag( key="key", value="value" )] )
Attributes
- acceptance_required
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.
- acceptance_timeout_seconds
The length of time (in seconds) to wait for players to accept a proposed match, if acceptance is required.
- additional_player_count
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
.
- backfill_mode
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
.
- custom_event_data
Information to add to all events related to the matchmaking configuration.
- description
A description for the matchmaking configuration.
- flex_match_mode
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.
- game_properties
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
.
- game_session_data
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
.
- game_session_queue_arns
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 is
arn: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.
- name
A unique identifier for the matchmaking configuration.
This name is used to identify the configuration associated with a matchmaking request or ticket.
- notification_target
An SNS topic ARN that is set up to receive matchmaking notifications.
See Setting up notifications for matchmaking for more information.
- request_timeout_seconds
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.
- rule_set_name
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.
- tags
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.