Amazon Athena Tags API

Operations for managing resource tags

GitHub OpenAPI

Operations 3

POST /#ListTagsForResource List Tags For Resource #
POST /#TagResource Tag Resource #
POST /#UntagResource Untag Resource #

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-tags-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-tags-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Amazon Athena Tags API
  version: '2017-05-18'
  description: Generated from AWS's published Smithy model for Amazon Athena. 3 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:
  /#ListTagsForResource:
    post:
      operationId: ListTagsForResource
      summary: List Tags For Resource
      description: Lists the tags associated with an Athena resource.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ListTagsForResourceOutput'
        '500':
          description: InternalServerException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '400':
          description: InvalidRequestException; ResourceNotFoundException
          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.ListTagsForResource
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/ListTagsForResourceInput'
      tags:
      - Tags
  /#TagResource:
    post:
      operationId: TagResource
      summary: Tag Resource
      description: 'Adds one or more tags to an Athena resource. A tag is a label that you assign to a resource. Each tag
        consists of a key and an optional value, both of which you define. For example, you can use tags to categorize Athena
        workgroups, data catalogs, or capacity reservations by purpose, owner, or environment. Use a consistent set of tag
        keys to make it easier to search and filter the resources in your account. For best practices, see Tagging Best Practices.
        Tag keys can be from 1 to 128 UTF-8 Unicode characters, and tag values can be from 0 to 256 UTF-8 Unicode characters.
        Tags can use letters and numbers representable in UTF-8, and the following characters: + - = . _ : / @. Tag keys and
        values are case-sensitive. Tag keys must be unique per resource. If you specify more than one tag, separate them by
        commas.'
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/TagResourceOutput'
        '500':
          description: InternalServerException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '400':
          description: InvalidRequestException; ResourceNotFoundException
          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.TagResource
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/TagResourceInput'
      tags:
      - Tags
  /#UntagResource:
    post:
      operationId: UntagResource
      summary: Untag Resource
      description: Removes one or more tags from an Athena resource.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/UntagResourceOutput'
        '500':
          description: InternalServerException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '400':
          description: InvalidRequestException; ResourceNotFoundException
          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.UntagResource
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/UntagResourceInput'
      tags:
      - Tags
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:
    InternalServerException:
      type: object
      properties:
        Message:
          type: string
    InvalidRequestException:
      type: object
      properties:
        AthenaErrorCode:
          type: string
        Message:
          type: string
    ListTagsForResourceInput:
      type: object
      properties:
        ResourceARN:
          type: string
          description: Lists the tags for the resource with the specified ARN.
        NextToken:
          type: string
          description: The token for the next set of results, or null if there are no additional results for this request,
            where the request lists the tags for the resource with the specified ARN.
        MaxResults:
          type: integer
          description: The maximum number of results to be returned per request that lists the tags for the resource.
      required:
      - ResourceARN
    ListTagsForResourceOutput:
      type: object
      properties:
        Tags:
          type: array
          items:
            $ref: '#/components/schemas/Tag'
          description: The list of tags associated with the specified resource.
        NextToken:
          type: string
          description: A token to be used by the next request if this request is truncated.
    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.'
    TagResourceInput:
      type: object
      properties:
        ResourceARN:
          type: string
          description: Specifies the ARN of the Athena resource to which tags are to be added.
        Tags:
          type: array
          items:
            $ref: '#/components/schemas/Tag'
          description: A collection of one or more tags, separated by commas, to be added to an Athena resource.
      required:
      - ResourceARN
      - Tags
    TagResourceOutput:
      type: object
      properties: {}
    UntagResourceInput:
      type: object
      properties:
        ResourceARN:
          type: string
          description: Specifies the ARN of the resource from which tags are to be removed.
        TagKeys:
          type: array
          items:
            type: string
          description: A comma-separated list of one or more tag keys whose tags are to be removed from the specified resource.
      required:
      - ResourceARN
      - TagKeys
    UntagResourceOutput:
      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)