import_game_configuration
(**kwargs)¶Imports a game configuration.
This operation replaces the current configuration of the game with the provided input. This is not a reversible operation. If you want to preserve the previous configuration, use CreateSnapshot
to make a new snapshot before importing.
See also: AWS API Documentation
Request Syntax
response = client.import_game_configuration(
GameName='string',
ImportSource={
'File': b'bytes'
}
)
[REQUIRED]
The name of the game.
[REQUIRED]
The source used to import configuration sections.
The JSON string containing the configuration sections.
dict
Response Syntax
{
'GameConfiguration': {
'Created': datetime(2015, 1, 1),
'LastUpdated': datetime(2015, 1, 1),
'Sections': {
'string': {
'Attributes': {...}|[...]|123|123.4|'string'|True|None,
'Name': 'string',
'Size': 123
}
}
}
}
Response Structure
(dict) --
GameConfiguration (dict) --
Details about the game configuration.
Created (datetime) --
The date when the game was created.
LastUpdated (datetime) --
The date when the game was last modified.
Sections (dict) --
Configuration data, organized by section name.
(string) --
(dict) --
The configuration section.
Attributes (document) --
The content of a configuration section.
Name (string) --
The name of the section.
Size (integer) --
The size, in bytes, of the section contents.
Exceptions
GameSparks.Client.exceptions.ValidationException
GameSparks.Client.exceptions.AccessDeniedException
GameSparks.Client.exceptions.ThrottlingException
GameSparks.Client.exceptions.ResourceNotFoundException
GameSparks.Client.exceptions.InternalServerException
GameSparks.Client.exceptions.ServiceQuotaExceededException