update_game_server
¶
update_game_server(
*,
config_overrides: Optional[GameLiftClientConfig] = 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/game_lift.py
10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 | |