GameLift / Client / get_game_session_log_url
get_game_session_log_url#
- GameLift.Client.get_game_session_log_url(**kwargs)#
Retrieves the location of stored game session logs for a specified game session on Amazon GameLift managed fleets. When a game session is terminated, Amazon GameLift automatically stores the logs in Amazon S3 and retains them for 14 days. Use this URL to download the logs.
Note
See the Amazon Web Services Service Limits page for maximum log file sizes. Log files that exceed this limit are not saved.
See also: AWS API Documentation
Request Syntax
response = client.get_game_session_log_url( GameSessionId='string' )
- Parameters:
GameSessionId (string) –
[REQUIRED]
A unique identifier for the game session to get logs for.
- Return type:
dict
- Returns:
Response Syntax
{ 'PreSignedUrl': 'string' }
Response Structure
(dict) –
PreSignedUrl (string) –
Location of the requested game session logs, available for download. This URL is valid for 15 minutes, after which S3 will reject any download request using this URL. You can request a new URL any time within the 14-day period that the logs are retained.
Exceptions
GameLift.Client.exceptions.InternalServiceException
GameLift.Client.exceptions.NotFoundException
GameLift.Client.exceptions.UnauthorizedException
GameLift.Client.exceptions.InvalidRequestException