{ "swagger": "2.0", "schemes": [ "http" ], "host": "athena.amazonaws.com", "basePath": "/", "x-hasEquivalentPaths": true, "info": { "contact": { "email": "mike.ralphson@gmail.com", "name": "Mike Ralphson", "url": "https://github.com/mermade/aws2openapi" }, "description": "

Amazon Athena is an interactive query service that lets you use standard SQL to analyze data directly in Amazon S3. You can point Athena at your data in Amazon S3 and run ad-hoc queries and get results in seconds. Athena is serverless, so there is no infrastructure to set up or manage. You pay only for the queries you run. Athena scales automatically—executing queries in parallel—so results are fast, even with large datasets and complex queries. For more information, see What is Amazon Athena in the Amazon Athena User Guide.

For code samples using the AWS SDK for Java, see Examples and Code Samples in the Amazon Athena User Guide.

", "license": { "name": "Apache 2.0 License", "url": "http://www.apache.org/licenses/" }, "termsOfService": "https://aws.amazon.com/service-terms/", "title": "Amazon Athena", "version": "2017-05-18", "x-apiClientRegistration": { "url": "https://portal.aws.amazon.com/gp/aws/developer/registration/index.html?nc2=h_ct" }, "x-apisguru-categories": [ "cloud" ], "x-logo": { "backgroundColor": "#FFFFFF", "url": "https://api.apis.guru/v2/cache/logo/https_media.amazonwebservices.com_blog_2007_big_pbaws_logo_300px.jpg" }, "x-origin": [ { "contentType": "application/json", "converter": { "url": "https://github.com/mermade/aws2openapi", "version": "1.0.0" }, "url": "https://raw.githubusercontent.com/aws/aws-sdk-js/master/apis/athena-2017-05-18.normal.json", "x-apisguru-direct": true } ], "x-preferred": true, "x-providerName": "amazonaws.com", "x-release": "v4", "x-serviceName": "athena" }, "externalDocs": { "description": "Amazon Web Services documentation", "url": "https://aws.amazon.com/athena/" }, "consumes": [ "application/json" ], "produces": [ "application/json" ], "securityDefinitions": { "hmac": { "description": "Amazon Signature authorization v4", "in": "header", "name": "Authorization", "type": "apiKey", "x-amazon-apigateway-authtype": "awsSigv4" } }, "security": [ { "hmac": [] } ], "parameters": { "Action": { "in": "header", "name": "Action", "required": true, "type": "string" }, "Version": { "in": "header", "name": "Version", "required": true, "type": "string" }, "X-Amz-Algorithm": { "in": "header", "name": "X-Amz-Algorithm", "required": false, "type": "string" }, "X-Amz-Content-Sha256": { "in": "header", "name": "X-Amz-Content-Sha256", "required": false, "type": "string" }, "X-Amz-Credential": { "in": "header", "name": "X-Amz-Credential", "required": false, "type": "string" }, "X-Amz-Date": { "in": "header", "name": "X-Amz-Date", "required": false, "type": "string" }, "X-Amz-Security-Token": { "in": "header", "name": "X-Amz-Security-Token", "required": false, "type": "string" }, "X-Amz-Signature": { "in": "header", "name": "X-Amz-Signature", "required": false, "type": "string" }, "X-Amz-SignedHeaders": { "in": "header", "name": "X-Amz-SignedHeaders", "required": false, "type": "string" } }, "paths": { "/": { "parameters": [ { "$ref": "#/parameters/Action" }, { "$ref": "#/parameters/Version" }, { "$ref": "#/parameters/X-Amz-Content-Sha256" }, { "$ref": "#/parameters/X-Amz-Date" }, { "$ref": "#/parameters/X-Amz-Algorithm" }, { "$ref": "#/parameters/X-Amz-Credential" }, { "$ref": "#/parameters/X-Amz-Security-Token" }, { "$ref": "#/parameters/X-Amz-Signature" }, { "$ref": "#/parameters/X-Amz-SignedHeaders" } ], "post": { "description": "Returns the details of a single named query or a list of up to 50 queries, which you provide as an array of query ID strings. Use ListNamedQueries to get the list of named query IDs. If information could not be retrieved for a submitted query ID, information about the query ID submitted is listed under UnprocessedNamedQueryId. Named queries are different from executed queries. Use BatchGetQueryExecution to get details about each unique query execution, and ListQueryExecutions to get a list of query execution IDs.", "operationId": "BatchGetNamedQuery", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/BatchGetNamedQueryInput" } } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/BatchGetNamedQueryOutput" } }, "480": { "description": "InternalServerException", "schema": { "$ref": "#/definitions/InternalServerException" } }, "481": { "description": "InvalidRequestException", "schema": { "$ref": "#/definitions/InvalidRequestException" } } } } }, "/#BatchGetQueryExecution": { "parameters": [ { "$ref": "#/parameters/Action" }, { "$ref": "#/parameters/Version" }, { "$ref": "#/parameters/X-Amz-Content-Sha256" }, { "$ref": "#/parameters/X-Amz-Date" }, { "$ref": "#/parameters/X-Amz-Algorithm" }, { "$ref": "#/parameters/X-Amz-Credential" }, { "$ref": "#/parameters/X-Amz-Security-Token" }, { "$ref": "#/parameters/X-Amz-Signature" }, { "$ref": "#/parameters/X-Amz-SignedHeaders" } ], "post": { "description": "Returns the details of a single query execution or a list of up to 50 query executions, which you provide as an array of query execution ID strings. To get a list of query execution IDs, use ListQueryExecutions. Query executions are different from named (saved) queries. Use BatchGetNamedQuery to get details about named queries.", "operationId": "BatchGetQueryExecution", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/BatchGetQueryExecutionInput" } } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/BatchGetQueryExecutionOutput" } }, "480": { "description": "InternalServerException", "schema": { "$ref": "#/definitions/InternalServerException" } }, "481": { "description": "InvalidRequestException", "schema": { "$ref": "#/definitions/InvalidRequestException" } } } } }, "/#CreateNamedQuery": { "parameters": [ { "$ref": "#/parameters/Action" }, { "$ref": "#/parameters/Version" }, { "$ref": "#/parameters/X-Amz-Content-Sha256" }, { "$ref": "#/parameters/X-Amz-Date" }, { "$ref": "#/parameters/X-Amz-Algorithm" }, { "$ref": "#/parameters/X-Amz-Credential" }, { "$ref": "#/parameters/X-Amz-Security-Token" }, { "$ref": "#/parameters/X-Amz-Signature" }, { "$ref": "#/parameters/X-Amz-SignedHeaders" } ], "post": { "description": "

Creates a named query.

For code samples using the AWS SDK for Java, see Examples and Code Samples in the Amazon Athena User Guide.

", "operationId": "CreateNamedQuery", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/CreateNamedQueryInput" } } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/CreateNamedQueryOutput" } }, "480": { "description": "InternalServerException", "schema": { "$ref": "#/definitions/InternalServerException" } }, "481": { "description": "InvalidRequestException", "schema": { "$ref": "#/definitions/InvalidRequestException" } } } } }, "/#DeleteNamedQuery": { "parameters": [ { "$ref": "#/parameters/Action" }, { "$ref": "#/parameters/Version" }, { "$ref": "#/parameters/X-Amz-Content-Sha256" }, { "$ref": "#/parameters/X-Amz-Date" }, { "$ref": "#/parameters/X-Amz-Algorithm" }, { "$ref": "#/parameters/X-Amz-Credential" }, { "$ref": "#/parameters/X-Amz-Security-Token" }, { "$ref": "#/parameters/X-Amz-Signature" }, { "$ref": "#/parameters/X-Amz-SignedHeaders" } ], "post": { "description": "

Deletes a named query.

For code samples using the AWS SDK for Java, see Examples and Code Samples in the Amazon Athena User Guide.

", "operationId": "DeleteNamedQuery", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/DeleteNamedQueryInput" } } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/DeleteNamedQueryOutput" } }, "480": { "description": "InternalServerException", "schema": { "$ref": "#/definitions/InternalServerException" } }, "481": { "description": "InvalidRequestException", "schema": { "$ref": "#/definitions/InvalidRequestException" } } } } }, "/#GetNamedQuery": { "parameters": [ { "$ref": "#/parameters/Action" }, { "$ref": "#/parameters/Version" }, { "$ref": "#/parameters/X-Amz-Content-Sha256" }, { "$ref": "#/parameters/X-Amz-Date" }, { "$ref": "#/parameters/X-Amz-Algorithm" }, { "$ref": "#/parameters/X-Amz-Credential" }, { "$ref": "#/parameters/X-Amz-Security-Token" }, { "$ref": "#/parameters/X-Amz-Signature" }, { "$ref": "#/parameters/X-Amz-SignedHeaders" } ], "post": { "description": "Returns information about a single query.", "operationId": "GetNamedQuery", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/GetNamedQueryInput" } } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/GetNamedQueryOutput" } }, "480": { "description": "InternalServerException", "schema": { "$ref": "#/definitions/InternalServerException" } }, "481": { "description": "InvalidRequestException", "schema": { "$ref": "#/definitions/InvalidRequestException" } } } } }, "/#GetQueryExecution": { "parameters": [ { "$ref": "#/parameters/Action" }, { "$ref": "#/parameters/Version" }, { "$ref": "#/parameters/X-Amz-Content-Sha256" }, { "$ref": "#/parameters/X-Amz-Date" }, { "$ref": "#/parameters/X-Amz-Algorithm" }, { "$ref": "#/parameters/X-Amz-Credential" }, { "$ref": "#/parameters/X-Amz-Security-Token" }, { "$ref": "#/parameters/X-Amz-Signature" }, { "$ref": "#/parameters/X-Amz-SignedHeaders" } ], "post": { "description": "Returns information about a single execution of a query. Each time a query executes, information about the query execution is saved with a unique ID.", "operationId": "GetQueryExecution", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/GetQueryExecutionInput" } } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/GetQueryExecutionOutput" } }, "480": { "description": "InternalServerException", "schema": { "$ref": "#/definitions/InternalServerException" } }, "481": { "description": "InvalidRequestException", "schema": { "$ref": "#/definitions/InvalidRequestException" } } } } }, "/#GetQueryResults": { "parameters": [ { "$ref": "#/parameters/Action" }, { "$ref": "#/parameters/Version" }, { "$ref": "#/parameters/X-Amz-Content-Sha256" }, { "$ref": "#/parameters/X-Amz-Date" }, { "$ref": "#/parameters/X-Amz-Algorithm" }, { "$ref": "#/parameters/X-Amz-Credential" }, { "$ref": "#/parameters/X-Amz-Security-Token" }, { "$ref": "#/parameters/X-Amz-Signature" }, { "$ref": "#/parameters/X-Amz-SignedHeaders" } ], "post": { "description": "Returns the results of a single query execution specified by QueryExecutionId. This request does not execute the query but returns results. Use StartQueryExecution to run a query.", "operationId": "GetQueryResults", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/GetQueryResultsInput" } }, { "description": "Pagination limit", "in": "query", "name": "MaxResults", "required": false, "type": "string" }, { "description": "Pagination token", "in": "query", "name": "NextToken", "required": false, "type": "string" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/GetQueryResultsOutput" } }, "480": { "description": "InternalServerException", "schema": { "$ref": "#/definitions/InternalServerException" } }, "481": { "description": "InvalidRequestException", "schema": { "$ref": "#/definitions/InvalidRequestException" } } } } }, "/#ListNamedQueries": { "parameters": [ { "$ref": "#/parameters/Action" }, { "$ref": "#/parameters/Version" }, { "$ref": "#/parameters/X-Amz-Content-Sha256" }, { "$ref": "#/parameters/X-Amz-Date" }, { "$ref": "#/parameters/X-Amz-Algorithm" }, { "$ref": "#/parameters/X-Amz-Credential" }, { "$ref": "#/parameters/X-Amz-Security-Token" }, { "$ref": "#/parameters/X-Amz-Signature" }, { "$ref": "#/parameters/X-Amz-SignedHeaders" } ], "post": { "description": "

Provides a list of all available query IDs.

For code samples using the AWS SDK for Java, see Examples and Code Samples in the Amazon Athena User Guide.

", "operationId": "ListNamedQueries", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/ListNamedQueriesInput" } }, { "description": "Pagination limit", "in": "query", "name": "MaxResults", "required": false, "type": "string" }, { "description": "Pagination token", "in": "query", "name": "NextToken", "required": false, "type": "string" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/ListNamedQueriesOutput" } }, "480": { "description": "InternalServerException", "schema": { "$ref": "#/definitions/InternalServerException" } }, "481": { "description": "InvalidRequestException", "schema": { "$ref": "#/definitions/InvalidRequestException" } } } } }, "/#ListQueryExecutions": { "parameters": [ { "$ref": "#/parameters/Action" }, { "$ref": "#/parameters/Version" }, { "$ref": "#/parameters/X-Amz-Content-Sha256" }, { "$ref": "#/parameters/X-Amz-Date" }, { "$ref": "#/parameters/X-Amz-Algorithm" }, { "$ref": "#/parameters/X-Amz-Credential" }, { "$ref": "#/parameters/X-Amz-Security-Token" }, { "$ref": "#/parameters/X-Amz-Signature" }, { "$ref": "#/parameters/X-Amz-SignedHeaders" } ], "post": { "description": "

Provides a list of all available query execution IDs.

For code samples using the AWS SDK for Java, see Examples and Code Samples in the Amazon Athena User Guide.

", "operationId": "ListQueryExecutions", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/ListQueryExecutionsInput" } }, { "description": "Pagination limit", "in": "query", "name": "MaxResults", "required": false, "type": "string" }, { "description": "Pagination token", "in": "query", "name": "NextToken", "required": false, "type": "string" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/ListQueryExecutionsOutput" } }, "480": { "description": "InternalServerException", "schema": { "$ref": "#/definitions/InternalServerException" } }, "481": { "description": "InvalidRequestException", "schema": { "$ref": "#/definitions/InvalidRequestException" } } } } }, "/#StartQueryExecution": { "parameters": [ { "$ref": "#/parameters/Action" }, { "$ref": "#/parameters/Version" }, { "$ref": "#/parameters/X-Amz-Content-Sha256" }, { "$ref": "#/parameters/X-Amz-Date" }, { "$ref": "#/parameters/X-Amz-Algorithm" }, { "$ref": "#/parameters/X-Amz-Credential" }, { "$ref": "#/parameters/X-Amz-Security-Token" }, { "$ref": "#/parameters/X-Amz-Signature" }, { "$ref": "#/parameters/X-Amz-SignedHeaders" } ], "post": { "description": "

Runs (executes) the SQL query statements contained in the Query string.

For code samples using the AWS SDK for Java, see Examples and Code Samples in the Amazon Athena User Guide.

", "operationId": "StartQueryExecution", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/StartQueryExecutionInput" } } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/StartQueryExecutionOutput" } }, "480": { "description": "InternalServerException", "schema": { "$ref": "#/definitions/InternalServerException" } }, "481": { "description": "InvalidRequestException", "schema": { "$ref": "#/definitions/InvalidRequestException" } }, "482": { "description": "TooManyRequestsException", "schema": { "$ref": "#/definitions/TooManyRequestsException" } } } } }, "/#StopQueryExecution": { "parameters": [ { "$ref": "#/parameters/Action" }, { "$ref": "#/parameters/Version" }, { "$ref": "#/parameters/X-Amz-Content-Sha256" }, { "$ref": "#/parameters/X-Amz-Date" }, { "$ref": "#/parameters/X-Amz-Algorithm" }, { "$ref": "#/parameters/X-Amz-Credential" }, { "$ref": "#/parameters/X-Amz-Security-Token" }, { "$ref": "#/parameters/X-Amz-Signature" }, { "$ref": "#/parameters/X-Amz-SignedHeaders" } ], "post": { "description": "

Stops a query execution.

For code samples using the AWS SDK for Java, see Examples and Code Samples in the Amazon Athena User Guide.

", "operationId": "StopQueryExecution", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { "$ref": "#/definitions/StopQueryExecutionInput" } } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/StopQueryExecutionOutput" } }, "480": { "description": "InternalServerException", "schema": { "$ref": "#/definitions/InternalServerException" } }, "481": { "description": "InvalidRequestException", "schema": { "$ref": "#/definitions/InvalidRequestException" } } } } } }, "definitions": { "BatchGetNamedQueryInput": { "properties": { "NamedQueryIds": { "$ref": "#/definitions/NamedQueryIdList", "description": "An array of query IDs." } }, "required": [ "NamedQueryIds" ], "type": "object" }, "BatchGetNamedQueryOutput": { "properties": { "NamedQueries": { "$ref": "#/definitions/NamedQueryList", "description": "Information about the named query IDs submitted." }, "UnprocessedNamedQueryIds": { "$ref": "#/definitions/UnprocessedNamedQueryIdList", "description": "Information about provided query IDs." } }, "type": "object" }, "BatchGetQueryExecutionInput": { "properties": { "QueryExecutionIds": { "$ref": "#/definitions/QueryExecutionIdList", "description": "An array of query execution IDs." } }, "required": [ "QueryExecutionIds" ], "type": "object" }, "BatchGetQueryExecutionOutput": { "properties": { "QueryExecutions": { "$ref": "#/definitions/QueryExecutionList", "description": "Information about a query execution." }, "UnprocessedQueryExecutionIds": { "$ref": "#/definitions/UnprocessedQueryExecutionIdList", "description": "Information about the query executions that failed to run." } }, "type": "object" }, "Boolean": { "type": "boolean" }, "ColumnInfo": { "description": "Information about the columns in a query execution result.", "properties": { "CaseSensitive": { "$ref": "#/definitions/Boolean", "description": "Indicates whether values in the column are case-sensitive." }, "CatalogName": { "$ref": "#/definitions/String", "description": "The catalog to which the query results belong." }, "Label": { "$ref": "#/definitions/String", "description": "A column label." }, "Name": { "$ref": "#/definitions/String", "description": "The name of the column." }, "Nullable": { "$ref": "#/definitions/ColumnNullable", "description": "Indicates the column's nullable status." }, "Precision": { "$ref": "#/definitions/Integer", "description": "For DECIMAL data types, specifies the total number of digits, up to 38. For performance reasons, we recommend up to 18 digits." }, "Scale": { "$ref": "#/definitions/Integer", "description": "For DECIMAL data types, specifies the total number of digits in the fractional part of the value. Defaults to 0." }, "SchemaName": { "$ref": "#/definitions/String", "description": "The schema name (database name) to which the query results belong." }, "TableName": { "$ref": "#/definitions/String", "description": "The table name for the query results." }, "Type": { "$ref": "#/definitions/String", "description": "The data type of the column." } }, "required": [ "Name", "Type" ], "type": "object" }, "ColumnInfoList": { "items": { "$ref": "#/definitions/ColumnInfo" }, "type": "array" }, "ColumnNullable": { "enum": [ "NOT_NULL", "NULLABLE", "UNKNOWN" ], "type": "string" }, "CreateNamedQueryInput": { "properties": { "ClientRequestToken": { "$ref": "#/definitions/IdempotencyToken", "description": "

A unique case-sensitive string used to ensure the request to create the query is idempotent (executes only once). If another CreateNamedQuery request is received, the same response is returned and another query is not created. If a parameter has changed, for example, the QueryString, an error is returned.

This token is listed as not required because AWS SDKs (for example the AWS SDK for Java) auto-generate the token for users. If you are not using the AWS SDK or the AWS CLI, you must provide this token or the action will fail.

" }, "Database": { "$ref": "#/definitions/DatabaseString", "description": "The database to which the query belongs." }, "Description": { "$ref": "#/definitions/DescriptionString", "description": "A brief explanation of the query." }, "Name": { "$ref": "#/definitions/NameString", "description": "The plain language name for the query." }, "QueryString": { "$ref": "#/definitions/QueryString", "description": "The text of the query itself. In other words, all query statements." } }, "required": [ "Name", "Database", "QueryString" ], "type": "object" }, "CreateNamedQueryOutput": { "properties": { "NamedQueryId": { "$ref": "#/definitions/NamedQueryId", "description": "The unique ID of the query." } }, "type": "object" }, "DatabaseString": { "maxLength": 32, "minLength": 1, "type": "string" }, "Date": { "format": "date-time", "type": "string" }, "Datum": { "description": "A piece of data (a field in the table).", "properties": { "VarCharValue": { "$ref": "#/definitions/datumString", "description": "The value of the datum." } }, "type": "object" }, "DeleteNamedQueryInput": { "properties": { "NamedQueryId": { "$ref": "#/definitions/NamedQueryId", "description": "The unique ID of the query to delete." } }, "required": [ "NamedQueryId" ], "type": "object" }, "DeleteNamedQueryOutput": { "properties": {}, "type": "object" }, "DescriptionString": { "maxLength": 1024, "minLength": 1, "type": "string" }, "EncryptionConfiguration": { "description": "If query results are encrypted in Amazon S3, indicates the Amazon S3 encryption option used.", "properties": { "EncryptionOption": { "$ref": "#/definitions/EncryptionOption", "description": "Indicates whether Amazon S3 server-side encryption with Amazon S3-managed keys (SSE-S3), server-side encryption with KMS-managed keys (SSE-KMS), or client-side encryption with KMS-managed keys (CSE-KMS) is used." }, "KmsKey": { "$ref": "#/definitions/String", "description": "For SSE-KMS and CSE-KMS, this is the KMS key ARN or ID." } }, "required": [ "EncryptionOption" ], "type": "object" }, "EncryptionOption": { "enum": [ "SSE_S3", "SSE_KMS", "CSE_KMS" ], "type": "string" }, "ErrorCode": { "maxLength": 256, "minLength": 1, "type": "string" }, "ErrorMessage": { "type": "string" }, "GetNamedQueryInput": { "properties": { "NamedQueryId": { "$ref": "#/definitions/NamedQueryId", "description": "The unique ID of the query. Use ListNamedQueries to get query IDs." } }, "required": [ "NamedQueryId" ], "type": "object" }, "GetNamedQueryOutput": { "properties": { "NamedQuery": { "$ref": "#/definitions/NamedQuery", "description": "Information about the query." } }, "type": "object" }, "GetQueryExecutionInput": { "properties": { "QueryExecutionId": { "$ref": "#/definitions/QueryExecutionId", "description": "The unique ID of the query execution." } }, "required": [ "QueryExecutionId" ], "type": "object" }, "GetQueryExecutionOutput": { "properties": { "QueryExecution": { "$ref": "#/definitions/QueryExecution", "description": "Information about the query execution." } }, "type": "object" }, "GetQueryResultsInput": { "properties": { "MaxResults": { "$ref": "#/definitions/MaxQueryResults", "description": "The maximum number of results (rows) to return in this request." }, "NextToken": { "$ref": "#/definitions/Token", "description": "The token that specifies where to start pagination if a previous request was truncated." }, "QueryExecutionId": { "$ref": "#/definitions/QueryExecutionId", "description": "The unique ID of the query execution." } }, "required": [ "QueryExecutionId" ], "type": "object" }, "GetQueryResultsOutput": { "properties": { "NextToken": { "$ref": "#/definitions/Token", "description": "A token to be used by the next request if this request is truncated." }, "ResultSet": { "$ref": "#/definitions/ResultSet", "description": "The results of the query execution." } }, "type": "object" }, "IdempotencyToken": { "maxLength": 128, "minLength": 32, "type": "string" }, "Integer": { "type": "integer" }, "InternalServerException": { "description": "Indicates a platform issue, which may be due to a transient condition or outage.", "properties": { "Message": { "$ref": "#/definitions/ErrorMessage" } }, "type": "object" }, "InvalidRequestException": { "description": "Indicates that something is wrong with the input to the request. For example, a required parameter may be missing or out of range.", "properties": { "AthenaErrorCode": { "$ref": "#/definitions/ErrorCode" }, "Message": { "$ref": "#/definitions/ErrorMessage" } }, "type": "object" }, "ListNamedQueriesInput": { "properties": { "MaxResults": { "$ref": "#/definitions/MaxNamedQueriesCount", "description": "The maximum number of queries to return in this request." }, "NextToken": { "$ref": "#/definitions/Token", "description": "The token that specifies where to start pagination if a previous request was truncated." } }, "type": "object" }, "ListNamedQueriesOutput": { "properties": { "NamedQueryIds": { "$ref": "#/definitions/NamedQueryIdList", "description": "The list of unique query IDs." }, "NextToken": { "$ref": "#/definitions/Token", "description": "A token to be used by the next request if this request is truncated." } }, "type": "object" }, "ListQueryExecutionsInput": { "properties": { "MaxResults": { "$ref": "#/definitions/MaxQueryExecutionsCount", "description": "The maximum number of query executions to return in this request." }, "NextToken": { "$ref": "#/definitions/Token", "description": "The token that specifies where to start pagination if a previous request was truncated." } }, "type": "object" }, "ListQueryExecutionsOutput": { "properties": { "NextToken": { "$ref": "#/definitions/Token", "description": "A token to be used by the next request if this request is truncated." }, "QueryExecutionIds": { "$ref": "#/definitions/QueryExecutionIdList", "description": "The unique IDs of each query execution as an array of strings." } }, "type": "object" }, "Long": { "type": "integer" }, "MaxNamedQueriesCount": { "maximum": 50, "minimum": 0, "type": "integer" }, "MaxQueryExecutionsCount": { "maximum": 50, "minimum": 0, "type": "integer" }, "MaxQueryResults": { "maximum": 1000, "minimum": 0, "type": "integer" }, "NameString": { "maxLength": 128, "minLength": 1, "type": "string" }, "NamedQuery": { "description": "A query, where QueryString is the SQL query statements that comprise the query.", "properties": { "Database": { "$ref": "#/definitions/DatabaseString", "description": "The database to which the query belongs." }, "Description": { "$ref": "#/definitions/DescriptionString", "description": "A brief description of the query." }, "Name": { "$ref": "#/definitions/NameString", "description": "The plain-language name of the query." }, "NamedQueryId": { "$ref": "#/definitions/NamedQueryId", "description": "The unique identifier of the query." }, "QueryString": { "$ref": "#/definitions/QueryString", "description": "The SQL query statements that comprise the query." } }, "required": [ "Name", "Database", "QueryString" ], "type": "object" }, "NamedQueryId": { "type": "string" }, "NamedQueryIdList": { "items": { "$ref": "#/definitions/NamedQueryId" }, "maxItems": 50, "minItems": 1, "type": "array" }, "NamedQueryList": { "items": { "$ref": "#/definitions/NamedQuery" }, "type": "array" }, "QueryExecution": { "description": "Information about a single instance of a query execution.", "properties": { "Query": { "$ref": "#/definitions/QueryString", "description": "The SQL query statements which the query execution ran." }, "QueryExecutionContext": { "$ref": "#/definitions/QueryExecutionContext", "description": "The database in which the query execution occurred." }, "QueryExecutionId": { "$ref": "#/definitions/QueryExecutionId", "description": "The unique identifier for each query execution." }, "ResultConfiguration": { "$ref": "#/definitions/ResultConfiguration", "description": "The location in Amazon S3 where query results were stored and the encryption option, if any, used for query results." }, "Statistics": { "$ref": "#/definitions/QueryExecutionStatistics", "description": "The amount of data scanned during the query execution and the amount of time that it took to execute." }, "Status": { "$ref": "#/definitions/QueryExecutionStatus", "description": "The completion date, current state, submission time, and state change reason (if applicable) for the query execution." } }, "type": "object" }, "QueryExecutionContext": { "description": "The database in which the query execution occurs.", "properties": { "Database": { "$ref": "#/definitions/DatabaseString", "description": "The name of the database." } }, "type": "object" }, "QueryExecutionId": { "type": "string" }, "QueryExecutionIdList": { "items": { "$ref": "#/definitions/QueryExecutionId" }, "maxItems": 50, "minItems": 1, "type": "array" }, "QueryExecutionList": { "items": { "$ref": "#/definitions/QueryExecution" }, "type": "array" }, "QueryExecutionState": { "enum": [ "QUEUED", "RUNNING", "SUCCEEDED", "FAILED", "CANCELLED" ], "type": "string" }, "QueryExecutionStatistics": { "description": "The amount of data scanned during the query execution and the amount of time that it took to execute.", "properties": { "DataScannedInBytes": { "$ref": "#/definitions/Long", "description": "The number of bytes in the data that was queried." }, "EngineExecutionTimeInMillis": { "$ref": "#/definitions/Long", "description": "The number of milliseconds that the query took to execute." } }, "type": "object" }, "QueryExecutionStatus": { "description": "The completion date, current state, submission time, and state change reason (if applicable) for the query execution.", "properties": { "CompletionDateTime": { "$ref": "#/definitions/Date", "description": "The date and time that the query completed." }, "State": { "$ref": "#/definitions/QueryExecutionState", "description": "The state of query execution. SUBMITTED indicates that the query is queued for execution. RUNNING indicates that the query is scanning data and returning results. SUCCEEDED indicates that the query completed without error. FAILED indicates that the query experienced an error and did not complete processing. CANCELLED indicates that user input interrupted query execution." }, "StateChangeReason": { "$ref": "#/definitions/String", "description": "Further detail about the status of the query." }, "SubmissionDateTime": { "$ref": "#/definitions/Date", "description": "The date and time that the query was submitted." } }, "type": "object" }, "QueryString": { "maxLength": 262144, "minLength": 1, "type": "string" }, "ResultConfiguration": { "description": "The location in Amazon S3 where query results are stored and the encryption option, if any, used for query results.", "properties": { "EncryptionConfiguration": { "$ref": "#/definitions/EncryptionConfiguration", "description": "If query results are encrypted in S3, indicates the S3 encryption option used (for example, SSE-KMS or CSE-KMS and key information." }, "OutputLocation": { "$ref": "#/definitions/String", "description": "The location in S3 where query results are stored." } }, "required": [ "OutputLocation" ], "type": "object" }, "ResultSet": { "description": "The metadata and rows that comprise a query result set. The metadata describes the column structure and data types.", "properties": { "ResultSetMetadata": { "$ref": "#/definitions/ResultSetMetadata", "description": "The metadata that describes the column structure and data types of a table of query results." }, "Rows": { "$ref": "#/definitions/RowList", "description": "The rows in the table." } }, "type": "object" }, "ResultSetMetadata": { "description": "The metadata that describes the column structure and data types of a table of query results.", "properties": { "ColumnInfo": { "$ref": "#/definitions/ColumnInfoList", "description": "Information about the columns in a query execution result." } }, "type": "object" }, "Row": { "description": "The rows that comprise a query result table.", "properties": { "Data": { "$ref": "#/definitions/datumList", "description": "The data that populates a row in a query result table." } }, "type": "object" }, "RowList": { "items": { "$ref": "#/definitions/Row" }, "type": "array" }, "StartQueryExecutionInput": { "properties": { "ClientRequestToken": { "$ref": "#/definitions/IdempotencyToken", "description": "

A unique case-sensitive string used to ensure the request to create the query is idempotent (executes only once). If another StartQueryExecution request is received, the same response is returned and another query is not created. If a parameter has changed, for example, the QueryString, an error is returned.

This token is listed as not required because AWS SDKs (for example the AWS SDK for Java) auto-generate the token for users. If you are not using the AWS SDK or the AWS CLI, you must provide this token or the action will fail.

" }, "QueryExecutionContext": { "$ref": "#/definitions/QueryExecutionContext", "description": "The database within which the query executes." }, "QueryString": { "$ref": "#/definitions/QueryString", "description": "The SQL query statements to be executed." }, "ResultConfiguration": { "$ref": "#/definitions/ResultConfiguration", "description": "Specifies information about where and how to save the results of the query execution." } }, "required": [ "QueryString", "ResultConfiguration" ], "type": "object" }, "StartQueryExecutionOutput": { "properties": { "QueryExecutionId": { "$ref": "#/definitions/QueryExecutionId", "description": "The unique ID of the query that ran as a result of this request." } }, "type": "object" }, "StopQueryExecutionInput": { "properties": { "QueryExecutionId": { "$ref": "#/definitions/QueryExecutionId", "description": "The unique ID of the query execution to stop." } }, "required": [ "QueryExecutionId" ], "type": "object" }, "StopQueryExecutionOutput": { "properties": {}, "type": "object" }, "String": { "type": "string" }, "ThrottleReason": { "enum": [ "CONCURRENT_QUERY_LIMIT_EXCEEDED" ], "type": "string" }, "Token": { "type": "string" }, "TooManyRequestsException": { "description": "Indicates that the request was throttled.", "properties": { "Message": { "$ref": "#/definitions/ErrorMessage" }, "Reason": { "$ref": "#/definitions/ThrottleReason" } }, "type": "object" }, "UnprocessedNamedQueryId": { "description": "Information about a named query ID that could not be processed.", "properties": { "ErrorCode": { "$ref": "#/definitions/ErrorCode", "description": "The error code returned when the processing request for the named query failed, if applicable." }, "ErrorMessage": { "$ref": "#/definitions/ErrorMessage", "description": "The error message returned when the processing request for the named query failed, if applicable." }, "NamedQueryId": { "$ref": "#/definitions/NamedQueryId", "description": "The unique identifier of the named query." } }, "type": "object" }, "UnprocessedNamedQueryIdList": { "items": { "$ref": "#/definitions/UnprocessedNamedQueryId" }, "type": "array" }, "UnprocessedQueryExecutionId": { "description": "Describes a query execution that failed to process.", "properties": { "ErrorCode": { "$ref": "#/definitions/ErrorCode", "description": "The error code returned when the query execution failed to process, if applicable." }, "ErrorMessage": { "$ref": "#/definitions/ErrorMessage", "description": "The error message returned when the query execution failed to process, if applicable." }, "QueryExecutionId": { "$ref": "#/definitions/QueryExecutionId", "description": "The unique identifier of the query execution." } }, "type": "object" }, "UnprocessedQueryExecutionIdList": { "items": { "$ref": "#/definitions/UnprocessedQueryExecutionId" }, "type": "array" }, "datumList": { "items": { "$ref": "#/definitions/Datum" }, "type": "array" }, "datumString": { "type": "string" } } }