create_snapshot

GameSparks.Client.create_snapshot(**kwargs)

Creates a snapshot of the game configuration.

See also: AWS API Documentation

Request Syntax

response = client.create_snapshot(
    Description='string',
    GameName='string'
)
Parameters
  • Description (string) -- The description of the snapshot.
  • GameName (string) --

    [REQUIRED]

    The name of the game.

Return type

dict

Returns

Response Syntax

{
    'Snapshot': {
        'Created': datetime(2015, 1, 1),
        'Description': 'string',
        'Id': 'string',
        'LastUpdated': datetime(2015, 1, 1),
        'Sections': {
            'string': {
                'Attributes': {...}|[...]|123|123.4|'string'|True|None,
                'Name': 'string',
                'Size': 123
            }
        }
    }
}

Response Structure

  • (dict) --

    • Snapshot (dict) --

      Properties that provide details of the created snapshot.

      • Created (datetime) --

        The timestamp of when the snapshot was created.

      • Description (string) --

        The description of the snapshot.

      • Id (string) --

        The identifier of the snapshot.

      • LastUpdated (datetime) --

        The timestamp of when the snapshot was last updated.

      • Sections (dict) --

        The sections in the snapshot.

        • (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.ConflictException
  • GameSparks.Client.exceptions.ResourceNotFoundException
  • GameSparks.Client.exceptions.InternalServerException