{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-gamelift/json-schema/amazon-gamelift-terminate-game-session-input-schema.json",
  "title": "TerminateGameSessionInput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-gamelift-operations-api-openapi.yml#/components/schemas/TerminateGameSessionInput",
  "type": "object",
  "properties": {
    "GameSessionId": {
      "type": "string",
      "description": "An identifier for the game session that is unique across all regions to be terminated. The value is always a full ARN in the following format: For Home Region game session - arn:aws:gamelift:::gamesession//. For Remote Location game session - arn:aws:gamelift:::gamesession///."
    },
    "TerminationMode": {
      "type": "string",
      "enum": [
        "TRIGGER_ON_PROCESS_TERMINATE",
        "FORCE_TERMINATE"
      ],
      "description": "The method to use to terminate the game session. Available methods include: TRIGGER_ON_PROCESS_TERMINATE – Prompts the Amazon GameLift Servers service to send an OnProcessTerminate() callback to the server process and initiate the normal game session shutdown sequence. The OnProcessTerminate method, which is implemented in the game server code, must include a call to the server SDK action ProcessEnding(), which is how the server process signals to Amazon GameLift Servers that a game session is ending. If the server process doesn't call ProcessEnding(), the game session termination won't conclu"
    }
  },
  "required": [
    "GameSessionId",
    "TerminationMode"
  ]
}