GameSparks.Client.
disconnect_player
(**kwargs)¶Disconnects a player from the game runtime.
If a player has multiple connections, this operation attempts to close all of them.
See also: AWS API Documentation
Request Syntax
response = client.disconnect_player(
GameName='string',
PlayerId='string',
StageName='string'
)
[REQUIRED]
The name of the game.
[REQUIRED]
The unique identifier representing a player.
[REQUIRED]
The name of the stage.
dict
Response Syntax
{
'DisconnectFailures': [
'string',
],
'DisconnectSuccesses': [
'string',
]
}
Response Structure
(dict) --
DisconnectFailures (list) --
The list of the connection ids that could not be disconnected.
DisconnectSuccesses (list) --
The list of the connection ids that were disconnected.
Exceptions
GameSparks.Client.exceptions.ValidationException
GameSparks.Client.exceptions.AccessDeniedException
GameSparks.Client.exceptions.ThrottlingException
GameSparks.Client.exceptions.ResourceNotFoundException
GameSparks.Client.exceptions.InternalServerException