{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-redshift/json-schema/amazon-redshift-list-statements-response-schema.json",
  "title": "ListStatementsResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-redshift-statement-management-api-openapi.yml#/components/schemas/ListStatementsResponse",
  "type": "object",
  "properties": {
    "Statements": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/StatementData"
      },
      "description": "The SQL statements."
    },
    "NextToken": {
      "type": "string",
      "description": "A value that indicates the starting point for the next set of response records in a subsequent request. If a value is returned in a response, you can retrieve the next set of records by providing this returned NextToken value in the next NextToken parameter and retrying the command. If the NextToken field is empty, all response records have been retrieved for the request."
    }
  },
  "required": [
    "Statements"
  ],
  "$defs": {
    "SqlParameter": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the parameter."
        },
        "value": {
          "type": "string",
          "description": "The value of the parameter. Amazon Redshift implicitly converts to the proper data type. For more information, see Data types in the Amazon Redshift Database Developer Guide."
        }
      },
      "required": [
        "name",
        "value"
      ]
    },
    "StatementData": {
      "type": "object",
      "properties": {
        "Id": {
          "type": "string",
          "description": "The SQL statement identifier. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API."
        },
        "QueryString": {
          "type": "string",
          "description": "The SQL statement."
        },
        "QueryStrings": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "One or more SQL statements. Each query string in the array corresponds to one of the queries in a batch query request."
        },
        "SecretArn": {
          "type": "string",
          "description": "The name or Amazon Resource Name (ARN) of the secret that enables access to the database."
        },
        "Status": {
          "type": "string",
          "description": "The status of the SQL statement. An example is the that the SQL statement finished."
        },
        "StatementName": {
          "type": "string",
          "description": "The name of the SQL statement."
        },
        "CreatedAt": {
          "type": "string",
          "description": "The date and time (UTC) the statement was created."
        },
        "UpdatedAt": {
          "type": "string",
          "description": "The date and time (UTC) that the statement metadata was last updated."
        },
        "QueryParameters": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/SqlParameter"
          },
          "description": "The parameters used in a SQL statement."
        },
        "IsBatchStatement": {
          "type": "boolean",
          "description": "A value that indicates whether the statement is a batch query request."
        },
        "ResultFormat": {
          "type": "string",
          "description": "The data format of the result of the SQL statement."
        },
        "SessionId": {
          "type": "string",
          "description": "The session identifier of the query."
        }
      },
      "required": [
        "Id"
      ]
    }
  }
}