GameSparks / Client / create_game

create_game#

GameSparks.Client.create_game(**kwargs)#

Creates a new game with an empty configuration. After creating your game, you can update the configuration using UpdateGameConfiguration or ImportGameConfiguration.

See also: AWS API Documentation

Request Syntax

response = client.create_game(
    ClientToken='string',
    Description='string',
    GameName='string',
    Tags={
        'string': 'string'
    }
)
Parameters:
  • ClientToken (string) – A client-defined token. With an active client token in the request, this action is idempotent.

  • Description (string) – The description of the game.

  • GameName (string) –

    [REQUIRED]

    The name of the game.

  • Tags (dict) –

    The list of tags to apply to the game.

    • (string) –

      • (string) –

Return type:

dict

Returns:

Response Syntax

{
    'Game': {
        'Arn': 'string',
        'Created': datetime(2015, 1, 1),
        'Description': 'string',
        'EnableTerminationProtection': True|False,
        'LastUpdated': datetime(2015, 1, 1),
        'Name': 'string',
        'State': 'ACTIVE'|'DELETING',
        'Tags': {
            'string': 'string'
        }
    }
}

Response Structure

  • (dict) –

    • Game (dict) –

      Details about the game that was created.

      • Arn (string) –

        The Amazon Resource Name (ARN) of this game.

      • Created (datetime) –

        The date when the game was created.

      • Description (string) –

        The description of the game.

      • EnableTerminationProtection (boolean) –

        Determines if the game can be deleted.

      • LastUpdated (datetime) –

        The date when the game was last modified.

      • Name (string) –

        The name of the game.

      • State (string) –

        The state of the game.

      • Tags (dict) –

        The tags associated with the game.

        • (string) –

          • (string) –

Exceptions

  • GameSparks.Client.exceptions.ValidationException

  • GameSparks.Client.exceptions.AccessDeniedException

  • GameSparks.Client.exceptions.ThrottlingException

  • GameSparks.Client.exceptions.ConflictException

  • GameSparks.Client.exceptions.InternalServerException

  • GameSparks.Client.exceptions.ServiceQuotaExceededException