{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-athena/json-schema/amazon-athena-list-calculation-executions-response-schema.json",
  "title": "ListCalculationExecutionsResponse",
  "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/ListCalculationExecutionsResponse",
  "type": "object",
  "properties": {
    "NextToken": {
      "type": "string",
      "description": "A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call."
    },
    "Calculations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CalculationSummary"
      },
      "description": "A list of CalculationSummary objects."
    }
  },
  "$defs": {
    "CalculationStatus": {
      "type": "object",
      "properties": {
        "SubmissionDateTime": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time the calculation was submitted for processing."
        },
        "CompletionDateTime": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time the calculation completed processing."
        },
        "State": {
          "type": "string",
          "enum": [
            "CREATING",
            "CREATED",
            "QUEUED",
            "RUNNING",
            "CANCELING",
            "CANCELED",
            "COMPLETED",
            "FAILED"
          ],
          "description": "The state of the calculation execution. A description of each state follows. CREATING - The calculation is in the process of being created. CREATED - The calculation has been created and is ready to run. QUEUED - The calculation has been queued for processing. RUNNING - The calculation is running. CANCELING - A request to cancel the calculation has been received and the system is working to stop it. CANCELED - The calculation is no longer running as the result of a cancel request. COMPLETED - The calculation has completed without error. FAILED - The calculation failed and is no longer running."
        },
        "StateChangeReason": {
          "type": "string",
          "description": "The reason for the calculation state change (for example, the calculation was canceled because the session was terminated)."
        }
      }
    },
    "CalculationSummary": {
      "type": "object",
      "properties": {
        "CalculationExecutionId": {
          "type": "string",
          "description": "The calculation execution UUID."
        },
        "Description": {
          "type": "string",
          "description": "A description of the calculation."
        },
        "Status": {
          "$ref": "#/$defs/CalculationStatus"
        }
      }
    }
  }
}