Amazon Athena Prepared Statements API

Operations for managing prepared SQL statements

Operations 4

POST /?Action=CreatePreparedStatement Amazon Athena Create Prepared Statement #
POST /?Action=DeletePreparedStatement Amazon Athena Delete Prepared Statement #
POST /?Action=GetPreparedStatement Amazon Athena Get Prepared Statement #
POST /?Action=ListPreparedStatements Amazon Athena List Prepared Statements #

Specifications

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/amazon-athena-prepared-statements-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

amazon-athena-prepared-statements-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Amazon Athena Data Catalogs Prepared Statements API
  description: Amazon Athena is an interactive query service that makes it easy to analyze data in Amazon S3 using standard SQL. Athena is serverless, so there is no infrastructure to manage, and you pay only for the queries that you run.
  version: '2017-05-18'
  contact:
    name: AWS Support
    url: https://aws.amazon.com/premiumsupport/
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
servers:
- url: https://athena.us-east-1.amazonaws.com
  description: Amazon Athena API endpoint
security:
- sigv4: []
tags:
- name: Prepared Statements
  description: Operations for managing prepared SQL statements
paths:
  /?Action=CreatePreparedStatement:
    post:
      operationId: createPreparedStatement
      summary: Amazon Athena Create Prepared Statement
      description: Creates a prepared statement for use with SQL queries in Athena.
      tags:
      - Prepared Statements
      x-microcks-operation:
        delay: 100
        dispatcher: QUERY_MATCH
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreatePreparedStatementInput'
            examples:
              default:
                x-microcks-default: true
                value:
                  StatementName: my_prepared_statement
                  WorkGroup: primary
                  QueryStatement: SELECT * FROM my_table WHERE id = ?
                  Description: Query by ID
      responses:
        '200':
          description: Prepared statement created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreatePreparedStatementOutput'
              examples:
                default:
                  x-microcks-default: true
                  value: {}
  /?Action=DeletePreparedStatement:
    post:
      operationId: deletePreparedStatement
      summary: Amazon Athena Delete Prepared Statement
      description: Deletes the prepared statement with the specified name from the specified workgroup.
      tags:
      - Prepared Statements
      x-microcks-operation:
        delay: 100
        dispatcher: QUERY_MATCH
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeletePreparedStatementInput'
            examples:
              default:
                x-microcks-default: true
                value:
                  StatementName: my_prepared_statement
                  WorkGroup: primary
      responses:
        '200':
          description: Prepared statement deleted successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeletePreparedStatementOutput'
              examples:
                default:
                  x-microcks-default: true
                  value: {}
  /?Action=GetPreparedStatement:
    post:
      operationId: getPreparedStatement
      summary: Amazon Athena Get Prepared Statement
      description: Retrieves the prepared statement with the specified name from the specified workgroup.
      tags:
      - Prepared Statements
      x-microcks-operation:
        delay: 100
        dispatcher: QUERY_MATCH
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GetPreparedStatementInput'
            examples:
              default:
                x-microcks-default: true
                value:
                  StatementName: my_prepared_statement
                  WorkGroup: primary
      responses:
        '200':
          description: Prepared statement retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetPreparedStatementOutput'
              examples:
                default:
                  x-microcks-default: true
                  value:
                    PreparedStatement:
                      StatementName: my_prepared_statement
                      WorkGroupName: primary
                      QueryStatement: SELECT * FROM my_table WHERE id = ?
                      Description: Query by ID
  /?Action=ListPreparedStatements:
    post:
      operationId: listPreparedStatements
      summary: Amazon Athena List Prepared Statements
      description: Lists the prepared statements in the specified workgroup.
      tags:
      - Prepared Statements
      x-microcks-operation:
        delay: 100
        dispatcher: QUERY_MATCH
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ListPreparedStatementsInput'
            examples:
              default:
                x-microcks-default: true
                value:
                  WorkGroup: primary
                  MaxResults: 10
      responses:
        '200':
          description: Prepared statements listed successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListPreparedStatementsOutput'
              examples:
                default:
                  x-microcks-default: true
                  value:
                    PreparedStatements:
                    - StatementName: my_prepared_statement
                      LastModifiedTime: '2024-01-15T10:30:00Z'
                    NextToken: ''
components:
  schemas:
    CreatePreparedStatementOutput:
      type: object
    PreparedStatement:
      type: object
      properties:
        StatementName:
          type: string
        QueryStatement:
          type: string
        WorkGroupName:
          type: string
        Description:
          type: string
        LastModifiedTime:
          type: string
          format: date-time
    DeletePreparedStatementInput:
      type: object
      required:
      - StatementName
      - WorkGroup
      properties:
        StatementName:
          type: string
        WorkGroup:
          type: string
    PreparedStatementSummary:
      type: object
      properties:
        StatementName:
          type: string
        LastModifiedTime:
          type: string
          format: date-time
    ListPreparedStatementsOutput:
      type: object
      properties:
        PreparedStatements:
          type: array
          items:
            $ref: '#/components/schemas/PreparedStatementSummary'
        NextToken:
          type: string
    GetPreparedStatementOutput:
      type: object
      properties:
        PreparedStatement:
          $ref: '#/components/schemas/PreparedStatement'
    ListPreparedStatementsInput:
      type: object
      required:
      - WorkGroup
      properties:
        WorkGroup:
          type: string
        NextToken:
          type: string
        MaxResults:
          type: integer
    GetPreparedStatementInput:
      type: object
      required:
      - StatementName
      - WorkGroup
      properties:
        StatementName:
          type: string
        WorkGroup:
          type: string
    CreatePreparedStatementInput:
      type: object
      required:
      - StatementName
      - WorkGroup
      - QueryStatement
      properties:
        StatementName:
          type: string
          description: The name of the prepared statement
        WorkGroup:
          type: string
          description: The name of the workgroup to which the prepared statement belongs
        QueryStatement:
          type: string
          description: The query string for the prepared statement
        Description:
          type: string
    DeletePreparedStatementOutput:
      type: object
  securitySchemes:
    sigv4:
      type: apiKey
      name: Authorization
      in: header
      description: AWS Signature Version 4