{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-redshift/json-schema/amazon-redshift-execute-statement-output-schema.json",
  "title": "ExecuteStatementOutput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-redshift-statement-execution-api-openapi.yml#/components/schemas/ExecuteStatementOutput",
  "type": "object",
  "properties": {
    "Id": {
      "type": "string",
      "description": "The identifier of the SQL statement whose results are to be fetched. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API."
    },
    "CreatedAt": {
      "type": "string",
      "description": "The date and time (UTC) the statement was created."
    },
    "ClusterIdentifier": {
      "type": "string",
      "description": "The cluster identifier. This element is not returned when connecting to a serverless workgroup."
    },
    "DbUser": {
      "type": "string",
      "description": "The database user name."
    },
    "DbGroups": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "A list of colon (:) separated names of database groups."
    },
    "Database": {
      "type": "string",
      "description": "The name of the database."
    },
    "SecretArn": {
      "type": "string",
      "description": "The name or ARN of the secret that enables access to the database."
    },
    "WorkgroupName": {
      "type": "string",
      "description": "The serverless workgroup name or Amazon Resource Name (ARN). This element is not returned when connecting to a provisioned cluster."
    },
    "SessionId": {
      "type": "string",
      "description": "The session identifier of the query."
    },
    "Status": {
      "type": "string",
      "description": "The status of the SQL statement. Status values are defined as follows: ABORTED - The query run was stopped by the user. FAILED - The query run failed. FINISHED - The query has finished running. PICKED - The query has been chosen to be run. STARTED - The query run has started. SUBMITTED - The query was submitted, but not yet processed."
    },
    "RedshiftPid": {
      "type": "integer",
      "description": "The process identifier from Amazon Redshift."
    },
    "HasResultSet": {
      "type": "boolean",
      "description": "A value that indicates whether the statement has a result set. The result set can be empty. The value is true for an empty result set."
    }
  }
}