update_game_server
async
¶
update_game_server(
*,
config_overrides: Optional[AsyncGameLiftClientConfig] = None,
game_server_group_name: Optional[GameServerGroupNameOrArn] = None,
game_server_id: Optional[GameServerId] = None,
game_server_data: Optional[GameServerData] = None,
utilization_status: Optional[GameServerUtilizationStatus] = None,
health_check: Optional[GameServerHealthCheck] = None,
) -> UpdateGameServerOutput
This API works with the following fleet types: EC2 (FleetIQ)
Updates information about a registered game server to help Amazon GameLift Servers FleetIQ track game server availability. This operation is called by a game server process that is running on an instance in a game server group.
Use this operation to update the following types of game server information. You can make all three types of updates in the same request:
-
To update the game server's utilization status from
AVAILABLE(when the game server is available to be claimed) toUTILIZED(when the game server is currently hosting games). Identify the game server and game server group and specify the new utilization status. You can't change the status fromUTILIZEDtoAVAILABLE. -
To report health status, identify the game server and game server group and set health check to
HEALTHY. If a game server does not report health status for a certain length of time, the game server is no longer considered healthy. As a result, it will be eventually deregistered from the game server group to avoid affecting utilization metrics. The best practice is to report health every 60 seconds. -
To change game server metadata, provide updated game server data.
Once a game server is successfully updated, the relevant statuses and timestamps are updated.
Learn more
Amazon GameLift Servers FleetIQ Guide
Parameters:
-
game_server_group_name(Optional[GameServerGroupNameOrArn], default:None) –A unique identifier for the game server group where the game server is running.
-
game_server_id(Optional[GameServerId], default:None) –A custom string that uniquely identifies the game server to update.
-
game_server_data(Optional[GameServerData], default:None) –A set of custom game server properties, formatted as a single string value. This data is passed to a game client or service when it requests information on game servers.
-
utilization_status(Optional[GameServerUtilizationStatus], default:None) –Indicates if the game server is available or is currently hosting gameplay. You can update a game server status from
AVAILABLEtoUTILIZED, but you can't change the status fromUTILIZEDtoAVAILABLE. -
health_check(Optional[GameServerHealthCheck], default:None) –Indicates health status of the game server. A request that includes this parameter updates the game server's LastHealthCheckTime timestamp.
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.
-
UnauthorizedException–The client failed authentication. Clients should not retry such requests.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_gamelift/_services/async_game_lift.py
10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 | |