{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-athena/json-schema/amazon-athena-start-calculation-execution-request-schema.json",
  "title": "StartCalculationExecutionRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-athena-calculation-execution-api-openapi.yml#/components/schemas/StartCalculationExecutionRequest",
  "type": "object",
  "properties": {
    "SessionId": {
      "type": "string",
      "description": "The session ID."
    },
    "Description": {
      "type": "string",
      "description": "A description of the calculation."
    },
    "CalculationConfiguration": {
      "$ref": "#/$defs/CalculationConfiguration"
    },
    "CodeBlock": {
      "type": "string",
      "description": "A string that contains the code of the calculation. Use this parameter instead of CalculationConfiguration$CodeBlock, which is deprecated."
    },
    "ClientRequestToken": {
      "type": "string",
      "description": "A unique case-sensitive string used to ensure the request to create the calculation is idempotent (executes only once). If another StartCalculationExecutionRequest is received, the same response is returned and another calculation is not created. If a parameter has changed, an error is returned. This token is listed as not required because Amazon Web Services SDKs (for example the Amazon Web Services SDK for Java) auto-generate the token for users. If you are not using the Amazon Web Services SDK or the Amazon Web Services CLI, you must provide this token or the action will fail."
    }
  },
  "required": [
    "SessionId"
  ],
  "$defs": {
    "CalculationConfiguration": {
      "type": "object",
      "properties": {
        "CodeBlock": {
          "type": "string",
          "description": "A string that contains the code for the calculation."
        }
      }
    }
  }
}