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
9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529 9530 9531 9532 | |