update_matchmaking_configuration
¶
update_matchmaking_configuration(
*,
config_overrides: Optional[GameLiftClientConfig] = None,
name: Optional[MatchmakingConfigurationName] = None,
description: Optional[NonZeroAndMaxString] = None,
game_session_queue_arns: Optional[QueueArnsList] = None,
request_timeout_seconds: Optional[MatchmakingRequestTimeoutInteger] = None,
acceptance_timeout_seconds: Optional[MatchmakingAcceptanceTimeoutInteger] = None,
acceptance_required: Optional[BooleanModel] = None,
rule_set_name: Optional[MatchmakingRuleSetName] = None,
notification_target: Optional[SnsArnStringModel] = None,
additional_player_count: Optional[WholeNumber] = None,
custom_event_data: Optional[CustomEventData] = None,
game_properties: Optional[GamePropertyList] = None,
game_session_data: Optional[GameSessionData] = None,
backfill_mode: Optional[BackfillMode] = None,
flex_match_mode: Optional[FlexMatchMode] = None,
) -> UpdateMatchmakingConfigurationOutput
This API works with the following fleet types: EC2, Anywhere, Container
Updates settings for a FlexMatch matchmaking configuration. These changes affect all matches and game sessions that are created after the update. To update settings, specify the configuration name to be updated and provide the new settings.
Learn more
Parameters:
-
name(Optional[MatchmakingConfigurationName], default:None) –A unique identifier for the matchmaking configuration to update. You can use either the configuration name or ARN value.
-
description(Optional[NonZeroAndMaxString], default:None) –A description for the matchmaking configuration.
-
game_session_queue_arns(Optional[QueueArnsList], default:None) –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 is
arn:aws:gamelift:. 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. A matchmaking configuration supports only one queue; if you specify more than one ARN, the request fails with an::gamesessionqueue/ InvalidRequestException. IfFlexMatchModeis set toSTANDALONE, do not set this parameter. -
request_timeout_seconds(Optional[MatchmakingRequestTimeoutInteger], default:None) –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.
-
acceptance_timeout_seconds(Optional[MatchmakingAcceptanceTimeoutInteger], default:None) –The length of time (in seconds) to wait for players to accept a proposed match, if acceptance is required.
-
acceptance_required(Optional[BooleanModel], default:None) –A flag that indicates 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 status
REQUIRES_ACCEPTANCEto indicate when a completed potential match is waiting for player acceptance. -
rule_set_name(Optional[MatchmakingRuleSetName], default:None) –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.
-
notification_target(Optional[SnsArnStringModel], default:None) –An SNS topic ARN that is set up to receive matchmaking notifications. See Setting up notifications for matchmaking for more information.
-
additional_player_count(Optional[WholeNumber], default: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 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
FlexMatchModeis set toSTANDALONE. -
custom_event_data(Optional[CustomEventData], default:None) –Information to add to all events related to the matchmaking configuration.
-
game_properties(Optional[GamePropertyList], default:None) –A set of key-value pairs that can store custom data in a game session. For example:
{"Key": "difficulty", "Value": "novice"}. This information is added to the newGameSessionobject that is created for a successful match. This parameter is not used ifFlexMatchModeis set toSTANDALONE.-
Avoid using periods (".") in property keys if you plan to search for game sessions by properties. Property keys containing periods cannot be searched and will be filtered out from search results due to search index limitations.
-
If you use SearchGameSessions API, there is a limit of 500 game property keys across all game sessions and all fleets per region. If the limit is exceeded, there will potentially be game session entries missing from SearchGameSessions API results.
-
-
game_session_data(Optional[GameSessionData], default:None) –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. For more information, see Start a game session. This information is added to the game session that is created for a successful match. This parameter is not used if
FlexMatchModeis set toSTANDALONE. -
backfill_mode(Optional[BackfillMode], default:None) –The method that is used to backfill game sessions created with this matchmaking configuration. Specify MANUAL when your game manages backfill requests manually or does not use the match backfill feature. Specify AUTOMATIC to have GameLift create a match backfill 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
FlexMatchModeis set toSTANDALONE. -
flex_match_mode(Optional[FlexMatchMode], default:None) –Indicates whether this matchmaking configuration is being used with Amazon GameLift Servers 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 Servers queue to start a game session for the match.
-
Raises:
-
InternalServiceException–The service encountered an unrecoverable internal failure while processing the request. Clients can retry such requests immediately or after a waiting period.
-
InvalidRequestException–One or more parameter values in the request are invalid. Correct the invalid parameter values before retrying.
-
NotFoundException–The requested resource was not found. The resource was either not created yet or deleted.
-
UnsupportedRegionException–The requested operation is not supported in the Region specified.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_gamelift/_services/game_lift.py
9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 | |