get_game_session_log_url
(**kwargs)¶Retrieves the location of stored game session logs for a specified game session. When a game session is terminated, 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'
)
[REQUIRED]
A unique identifier for the game session to get logs for.
{
'PreSignedUrl': 'string'
}
Response Structure
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