Amazon Athena Data Catalogs API

Operations for managing data catalogs

GitHub OpenAPI

Operations 5

POST /#CreateDataCatalog Create Data Catalog #
POST /#DeleteDataCatalog Delete Data Catalog #
POST /#GetDataCatalog Get Data Catalog #
POST /#ListDataCatalogs List Data Catalogs #
POST /#UpdateDataCatalog Update Data Catalog #

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:amazon-athena-data-catalogs-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

amazon-athena-data-catalogs-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Amazon Athena Data Catalogs API
  version: '2017-05-18'
  description: Generated from AWS's published Smithy model for Amazon Athena. 5 operation(s).
  contact:
    name: Amazon Web Services
    url: https://aws.amazon.com/contact-us/
  license:
    name: Apache 2.0
    identifier: Apache-2.0
    url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://athena.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /#CreateDataCatalog:
    post:
      operationId: CreateDataCatalog
      summary: Create Data Catalog
      description: Creates (registers) a data catalog with the specified name and properties. Catalogs created are visible
        to all users of the same Amazon Web Services account. For a FEDERATED catalog, this API operation creates the following
        resources. CFN Stack Name with a maximum length of 128 characters and prefix athenafederatedcatalog-CATALOG_NAME_SANITIZED
        with length 23 characters. Lambda Function Name with a maximum length of 64 characters and prefix athenafederatedcatalog_CATALOG_NAME_SANITIZED
        with length 23 characters. Glue Connection Name with a maximum length of 255 characters and a prefix athenafederatedcatalog_CATALOG_NAME_SANITIZED
        with length 23 characters.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/CreateDataCatalogOutput'
        '500':
          description: InternalServerException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '400':
          description: InvalidRequestException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InvalidRequestException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - AmazonAthena.CreateDataCatalog
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/CreateDataCatalogInput'
      tags:
      - Data Catalogs
  /#DeleteDataCatalog:
    post:
      operationId: DeleteDataCatalog
      summary: Delete Data Catalog
      description: Deletes a data catalog.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/DeleteDataCatalogOutput'
        '500':
          description: InternalServerException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '400':
          description: InvalidRequestException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InvalidRequestException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - AmazonAthena.DeleteDataCatalog
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/DeleteDataCatalogInput'
      tags:
      - Data Catalogs
  /#GetDataCatalog:
    post:
      operationId: GetDataCatalog
      summary: Get Data Catalog
      description: Returns the specified data catalog.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/GetDataCatalogOutput'
        '500':
          description: InternalServerException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '400':
          description: InvalidRequestException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InvalidRequestException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - AmazonAthena.GetDataCatalog
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/GetDataCatalogInput'
      tags:
      - Data Catalogs
  /#ListDataCatalogs:
    post:
      operationId: ListDataCatalogs
      summary: List Data Catalogs
      description: Lists the data catalogs in the current Amazon Web Services account. In the Athena console, data catalogs
        are listed as "data sources" on the Data sources page under the Data source name column.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ListDataCatalogsOutput'
        '500':
          description: InternalServerException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '400':
          description: InvalidRequestException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InvalidRequestException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - AmazonAthena.ListDataCatalogs
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/ListDataCatalogsInput'
      tags:
      - Data Catalogs
  /#UpdateDataCatalog:
    post:
      operationId: UpdateDataCatalog
      summary: Update Data Catalog
      description: Updates the data catalog that has the specified name.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/UpdateDataCatalogOutput'
        '500':
          description: InternalServerException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '400':
          description: InvalidRequestException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InvalidRequestException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - AmazonAthena.UpdateDataCatalog
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/UpdateDataCatalogInput'
      tags:
      - Data Catalogs
components:
  securitySchemes:
    sigv4:
      type: apiKey
      in: header
      name: Authorization
      description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical
        request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
      x-aws-sigv4:
        signingName: athena
  schemas:
    CreateDataCatalogInput:
      type: object
      properties:
        Name:
          type: string
          description: 'The name of the data catalog to create. The catalog name must be unique for the Amazon Web Services
            account and can use a maximum of 127 alphanumeric, underscore, at sign, or hyphen characters. The remainder of
            the length constraint of 256 is reserved for use by Athena. For FEDERATED type the catalog name has following
            considerations and limits: The catalog name allows special characters such as _ , @ , \ , - . These characters
            are replaced with a hyphen (-) when creating the CFN Stack Name and with an underscore (_) when creating the Lambda
            Function and Glue Connection Name. The catalog name '
        Type:
          type: string
          enum:
          - LAMBDA
          - GLUE
          - HIVE
          - FEDERATED
          description: 'The type of data catalog to create: LAMBDA for a federated catalog, GLUE for an Glue Data Catalog,
            and HIVE for an external Apache Hive metastore. FEDERATED is a federated catalog for which Athena creates the
            connection and the Lambda function for you based on the parameters that you pass. For FEDERATED type, we do not
            support IAM identity center.'
        Description:
          type: string
          description: A description of the data catalog to be created.
        Parameters:
          type: object
          additionalProperties:
            type: string
          description: Specifies the Lambda function or functions to use for creating the data catalog. This is a mapping
            whose values depend on the catalog type. For the HIVE data catalog type, use the following syntax. The metadata-function
            parameter is required. The sdk-version parameter is optional and defaults to the currently supported version.
            metadata-function=lambda_arn, sdk-version=version_number For the LAMBDA data catalog type, use one of the following
            sets of required parameters, but not both. If you have one Lambda function that processes metadata and another
            for reading the actual data, use the follow
        Tags:
          type: array
          items:
            $ref: '#/components/schemas/Tag'
          description: A list of comma separated tags to add to the data catalog that is created. All the resources that are
            created by the CreateDataCatalog API operation with FEDERATED type will have the tag federated_athena_datacatalog="true".
            This includes the CFN Stack, Glue Connection, Athena DataCatalog, and all the resources created as part of the
            CFN Stack (Lambda Function, IAM policies/roles).
      required:
      - Name
      - Type
    CreateDataCatalogOutput:
      type: object
      properties:
        DataCatalog:
          $ref: '#/components/schemas/DataCatalog'
    DataCatalog:
      type: object
      properties:
        Name:
          type: string
          description: The name of the data catalog. The catalog name must be unique for the Amazon Web Services account and
            can use a maximum of 127 alphanumeric, underscore, at sign, or hyphen characters. The remainder of the length
            constraint of 256 is reserved for use by Athena.
        Description:
          type: string
          description: An optional description of the data catalog.
        Type:
          type: string
          enum:
          - LAMBDA
          - GLUE
          - HIVE
          - FEDERATED
          description: 'The type of data catalog to create: LAMBDA for a federated catalog, GLUE for an Glue Data Catalog,
            and HIVE for an external Apache Hive metastore. FEDERATED is a federated catalog for which Athena creates the
            connection and the Lambda function for you based on the parameters that you pass.'
        Parameters:
          type: object
          additionalProperties:
            type: string
          description: Specifies the Lambda function or functions to use for the data catalog. This is a mapping whose values
            depend on the catalog type. For the HIVE data catalog type, use the following syntax. The metadata-function parameter
            is required. The sdk-version parameter is optional and defaults to the currently supported version. metadata-function=lambda_arn,
            sdk-version=version_number For the LAMBDA data catalog type, use one of the following sets of required parameters,
            but not both. If you have one Lambda function that processes metadata and another for reading the actual data,
            use the following synta
        Status:
          type: string
          enum:
          - CREATE_IN_PROGRESS
          - CREATE_COMPLETE
          - CREATE_FAILED
          - CREATE_FAILED_CLEANUP_IN_PROGRESS
          - CREATE_FAILED_CLEANUP_COMPLETE
          - CREATE_FAILED_CLEANUP_FAILED
          - DELETE_IN_PROGRESS
          - DELETE_COMPLETE
          - DELETE_FAILED
          description: 'The status of the creation or deletion of the data catalog. The LAMBDA, GLUE, and HIVE data catalog
            types are created synchronously. Their status is either CREATE_COMPLETE or CREATE_FAILED. The FEDERATED data catalog
            type is created asynchronously. Data catalog creation status: CREATE_IN_PROGRESS: Federated data catalog creation
            in progress. CREATE_COMPLETE: Data catalog creation complete. CREATE_FAILED: Data catalog could not be created.
            CREATE_FAILED_CLEANUP_IN_PROGRESS: Federated data catalog creation failed and is being removed. CREATE_FAILED_CLEANUP_COMPLETE:
            Federated data catalog creati'
        ConnectionType:
          type: string
          enum:
          - DYNAMODB
          - MYSQL
          - POSTGRESQL
          - REDSHIFT
          - ORACLE
          - SYNAPSE
          - SQLSERVER
          - DB2
          - OPENSEARCH
          - BIGQUERY
          - GOOGLECLOUDSTORAGE
          - HBASE
          - DOCUMENTDB
          - CMDB
          - TPCDS
          - TIMESTREAM
          - SAPHANA
          - SNOWFLAKE
          - DATALAKEGEN2
          - DB2AS400
          description: The type of connection for a FEDERATED data catalog (for example, REDSHIFT, MYSQL, or SQLSERVER). For
            information about individual connectors, see Available data source connectors.
        Error:
          type: string
          description: Text of the error that occurred during data catalog creation or deletion.
      required:
      - Name
      - Type
    DataCatalogSummary:
      type: object
      properties:
        CatalogName:
          type: string
          description: The name of the data catalog. The catalog name is unique for the Amazon Web Services account and can
            use a maximum of 127 alphanumeric, underscore, at sign, or hyphen characters. The remainder of the length constraint
            of 256 is reserved for use by Athena.
        Type:
          type: string
          enum:
          - LAMBDA
          - GLUE
          - HIVE
          - FEDERATED
          description: The data catalog type.
        Status:
          type: string
          enum:
          - CREATE_IN_PROGRESS
          - CREATE_COMPLETE
          - CREATE_FAILED
          - CREATE_FAILED_CLEANUP_IN_PROGRESS
          - CREATE_FAILED_CLEANUP_COMPLETE
          - CREATE_FAILED_CLEANUP_FAILED
          - DELETE_IN_PROGRESS
          - DELETE_COMPLETE
          - DELETE_FAILED
          description: 'The status of the creation or deletion of the data catalog. The LAMBDA, GLUE, and HIVE data catalog
            types are created synchronously. Their status is either CREATE_COMPLETE or CREATE_FAILED. The FEDERATED data catalog
            type is created asynchronously. Data catalog creation status: CREATE_IN_PROGRESS: Federated data catalog creation
            in progress. CREATE_COMPLETE: Data catalog creation complete. CREATE_FAILED: Data catalog could not be created.
            CREATE_FAILED_CLEANUP_IN_PROGRESS: Federated data catalog creation failed and is being removed. CREATE_FAILED_CLEANUP_COMPLETE:
            Federated data catalog creati'
        ConnectionType:
          type: string
          enum:
          - DYNAMODB
          - MYSQL
          - POSTGRESQL
          - REDSHIFT
          - ORACLE
          - SYNAPSE
          - SQLSERVER
          - DB2
          - OPENSEARCH
          - BIGQUERY
          - GOOGLECLOUDSTORAGE
          - HBASE
          - DOCUMENTDB
          - CMDB
          - TPCDS
          - TIMESTREAM
          - SAPHANA
          - SNOWFLAKE
          - DATALAKEGEN2
          - DB2AS400
          description: The type of connection for a FEDERATED data catalog (for example, REDSHIFT, MYSQL, or SQLSERVER). For
            information about individual connectors, see Available data source connectors.
        Error:
          type: string
          description: Text of the error that occurred during data catalog creation or deletion.
    DeleteDataCatalogInput:
      type: object
      properties:
        Name:
          type: string
          description: The name of the data catalog to delete.
        DeleteCatalogOnly:
          type: boolean
          description: Deletes the Athena Data Catalog. You can only use this with the FEDERATED catalogs. You usually perform
            this before registering the connector with Glue Data Catalog. After deletion, you will have to manage the Glue
            Connection and Lambda function.
      required:
      - Name
    DeleteDataCatalogOutput:
      type: object
      properties:
        DataCatalog:
          $ref: '#/components/schemas/DataCatalog'
    GetDataCatalogInput:
      type: object
      properties:
        Name:
          type: string
          description: The name of the data catalog to return.
        WorkGroup:
          type: string
          description: The name of the workgroup. Required if making an IAM Identity Center request.
      required:
      - Name
    GetDataCatalogOutput:
      type: object
      properties:
        DataCatalog:
          $ref: '#/components/schemas/DataCatalog'
    InternalServerException:
      type: object
      properties:
        Message:
          type: string
    InvalidRequestException:
      type: object
      properties:
        AthenaErrorCode:
          type: string
        Message:
          type: string
    ListDataCatalogsInput:
      type: object
      properties:
        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: Specifies the maximum number of data catalogs to return.
        WorkGroup:
          type: string
          description: The name of the workgroup. Required if making an IAM Identity Center request.
    ListDataCatalogsOutput:
      type: object
      properties:
        DataCatalogsSummary:
          type: array
          items:
            $ref: '#/components/schemas/DataCatalogSummary'
          description: A summary list of data catalogs.
        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.
    Tag:
      type: object
      properties:
        Key:
          type: string
          description: 'A tag key. The tag key length is from 1 to 128 Unicode characters in UTF-8. You can use letters and
            numbers representable in UTF-8, and the following characters: + - = . _ : / @. Tag keys are case-sensitive and
            must be unique per resource.'
        Value:
          type: string
          description: 'A tag value. The tag value length is from 0 to 256 Unicode characters in UTF-8. You can use letters
            and numbers representable in UTF-8, and the following characters: + - = . _ : / @. Tag values are case-sensitive.'
    UpdateDataCatalogInput:
      type: object
      properties:
        Name:
          type: string
          description: The name of the data catalog to update. The catalog name must be unique for the Amazon Web Services
            account and can use a maximum of 127 alphanumeric, underscore, at sign, or hyphen characters. The remainder of
            the length constraint of 256 is reserved for use by Athena.
        Type:
          type: string
          enum:
          - LAMBDA
          - GLUE
          - HIVE
          - FEDERATED
          description: Specifies the type of data catalog to update. Specify LAMBDA for a federated catalog, HIVE for an external
            hive metastore, or GLUE for an Glue Data Catalog.
        Description:
          type: string
          description: New or modified text that describes the data catalog.
        Parameters:
          type: object
          additionalProperties:
            type: string
          description: Specifies the Lambda function or functions to use for updating the data catalog. This is a mapping
            whose values depend on the catalog type. For the HIVE data catalog type, use the following syntax. The metadata-function
            parameter is required. The sdk-version parameter is optional and defaults to the currently supported version.
            metadata-function=lambda_arn, sdk-version=version_number For the LAMBDA data catalog type, use one of the following
            sets of required parameters, but not both. If you have one Lambda function that processes metadata and another
            for reading the actual data, use the follow
      required:
      - Name
      - Type
    UpdateDataCatalogOutput:
      type: object
      properties: {}
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/athena/service/2017-05-18/athena-2017-05-18.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)