{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-athena/json-schema/amazon-athena-get-query-results-input-schema.json",
  "title": "GetQueryResultsInput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-athena-operations-api-openapi.yml#/components/schemas/GetQueryResultsInput",
  "type": "object",
  "properties": {
    "QueryExecutionId": {
      "type": "string",
      "description": "The unique ID of the query execution."
    },
    "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."
    },
    "MaxResults": {
      "type": "integer",
      "description": "The maximum number of results (rows) to return in this request."
    },
    "QueryResultType": {
      "type": "string",
      "enum": [
        "DATA_MANIFEST",
        "DATA_ROWS"
      ],
      "description": "When you set this to DATA_ROWS or empty, GetQueryResults returns the query results in rows. If set to DATA_MANIFEST, it returns the manifest file in rows. Only the query types CREATE TABLE AS SELECT, UNLOAD, and INSERT can generate a manifest file. If you use DATA_MANIFEST for other query types, the query will fail."
    }
  },
  "required": [
    "QueryExecutionId"
  ]
}