AWS Lambda Tags API

The Tags API from AWS Lambda — 1 operation(s) for tags.

GitHub OpenAPI

Operations 6

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /2015-03-31/tags/{ARN} List the tags on a function · Aws Lambda List Tags #
Ask an LLM
“What tags are attached to my Lambda function?”
“Which cost-center or team tags does this function carry?”
Tell an agent
List the tags on function {arn}.
Show me every tag key and value for {arn}.
POST /2015-03-31/tags/{ARN} Add tags to a function · Aws Lambda Add Tags #
Ask an LLM
“How do I tag a Lambda function for cost allocation?”
“Can I add several key-value tags to a function in one call?”
Tell an agent
Add tags {tags} to function {arn}.
Tag {arn} with {tags}.
DELETE /2015-03-31/tags/{ARN} Remove tags from a function · Aws Lambda Remove Tags #
Ask an LLM
“How do I strip outdated tags off a Lambda function?”
“Can I remove specific tag keys while leaving the rest in place?”
Tell an agent destructive · confirm first
Remove tag keys {keys} from function {arn}.
Untag {arn} by deleting the {keys} tags.
GET /2017-03-31/tags/{Resource} List Tags #
POST /2017-03-31/tags/{Resource} Tag Resource #
DELETE /2017-03-31/tags/{Resource} Untag Resource #

Documentation

Specifications

Code Examples

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/aws-lambda:aws-lambda-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. See our Privacy Policy and Terms.

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

OpenAPI Specification

aws-lambda-tags-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Aws Lambda Tags API
  version: '2015-03-31'
  description: 'Operations tagged Tags across 2 of this provider''s published API definitions: aws-lambda-api-openapi.yml, aws-lambda-tags-api-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://lambda.{region}.amazonaws.com
  description: AWS Lambda Regional Endpoint
  variables:
    region:
      description: The AWS region for the Lambda service endpoint
      default: us-east-1
      enum:
      - us-east-1
      - us-east-2
      - us-west-1
      - us-west-2
      - eu-west-1
      - eu-west-2
      - eu-west-3
      - eu-central-1
      - eu-north-1
      - ap-southeast-1
      - ap-southeast-2
      - ap-northeast-1
      - ap-northeast-2
      - ap-south-1
      - sa-east-1
      - ca-central-1
security:
- sigv4: []
tags:
- name: Tags
paths:
  /2015-03-31/tags/{ARN}:
    get:
      operationId: listTags
      summary: Aws Lambda List Tags
      description: Returns a function's tags. You can also view tags with GetFunction.
      tags:
      - Tags
      parameters:
      - name: ARN
        in: path
        required: true
        description: The function's Amazon Resource Name (ARN)
        schema:
          type: string
        example: example_value
      responses:
        '200':
          description: Tags for the resource
          content:
            application/json:
              schema:
                type: object
                properties:
                  Tags:
                    type: object
                    additionalProperties:
                      type: string
              examples:
                Listtags200Example:
                  summary: Default listTags 200 response
                  x-microcks-default: true
                  value:
                    Tags: example_value
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                Listtags404Example:
                  summary: Default listTags 404 response
                  x-microcks-default: true
                  value:
                    Type: example_value
                    Message: example_value
                    Code: example_value
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    post:
      operationId: tagResource
      summary: Aws Lambda Add Tags
      description: Adds tags to a function. Tags are key-value pairs used for grouping and filtering resources.
      tags:
      - Tags
      parameters:
      - name: ARN
        in: path
        required: true
        description: The function's Amazon Resource Name (ARN)
        schema:
          type: string
        example: example_value
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - Tags
              properties:
                Tags:
                  type: object
                  additionalProperties:
                    type: string
                  description: Key-value pairs to add as tags
            examples:
              TagresourceRequestExample:
                summary: Default tagResource request
                x-microcks-default: true
                value:
                  Tags: example_value
      responses:
        '204':
          description: Tags added successfully
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                Tagresource404Example:
                  summary: Default tagResource 404 response
                  x-microcks-default: true
                  value:
                    Type: example_value
                    Message: example_value
                    Code: example_value
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    delete:
      operationId: untagResource
      summary: Aws Lambda Remove Tags
      description: Removes tags from a function.
      tags:
      - Tags
      parameters:
      - name: ARN
        in: path
        required: true
        description: The function's Amazon Resource Name (ARN)
        schema:
          type: string
        example: example_value
      - name: tagKeys
        in: query
        required: true
        description: List of tag keys to remove
        schema:
          type: array
          items:
            type: string
        example: []
      responses:
        '204':
          description: Tags removed successfully
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                Untagresource404Example:
                  summary: Default untagResource 404 response
                  x-microcks-default: true
                  value:
                    Type: example_value
                    Message: example_value
                    Code: example_value
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    servers:
    - url: https://lambda.{region}.amazonaws.com
      description: AWS Lambda Regional Endpoint
      variables:
        region:
          description: The AWS region for the Lambda service endpoint
          default: us-east-1
          enum:
          - us-east-1
          - us-east-2
          - us-west-1
          - us-west-2
          - eu-west-1
          - eu-west-2
          - eu-west-3
          - eu-central-1
          - eu-north-1
          - ap-southeast-1
          - ap-southeast-2
          - ap-northeast-1
          - ap-northeast-2
          - ap-south-1
          - sa-east-1
          - ca-central-1
  /2017-03-31/tags/{Resource}:
    get:
      operationId: ListTags
      summary: List Tags
      description: Returns a function, event source mapping, or code signing configuration's tags. You can also view function tags with GetFunction.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListTagsResponse'
              example:
                Tags:
                  Category: Web Tools
                  Department: Sales
        '400':
          description: InvalidParameterValueException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidParameterValueException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '500':
          description: ServiceException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceException'
        '429':
          description: TooManyRequestsException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TooManyRequestsException'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ListTagsRequest'
            example:
              Resource: arn:aws:lambda:us-west-2:123456789012:function:my-function
      tags:
      - Tags
    post:
      operationId: TagResource
      summary: Tag Resource
      description: Adds tags to a function, event source mapping, or code signing configuration.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: string
        '400':
          description: InvalidParameterValueException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidParameterValueException'
        '409':
          description: ResourceConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceConflictException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '500':
          description: ServiceException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceException'
        '429':
          description: TooManyRequestsException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TooManyRequestsException'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TagResourceRequest'
            example:
              Resource: arn:aws:lambda:us-west-2:123456789012:function:my-function
              Tags:
                DEPARTMENT: Department A
      tags:
      - Tags
    delete:
      operationId: UntagResource
      summary: Untag Resource
      description: Removes tags from a function, event source mapping, or code signing configuration.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: string
        '400':
          description: InvalidParameterValueException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidParameterValueException'
        '409':
          description: ResourceConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceConflictException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '500':
          description: ServiceException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceException'
        '429':
          description: TooManyRequestsException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TooManyRequestsException'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UntagResourceRequest'
            example:
              Resource: arn:aws:lambda:us-west-2:123456789012:function:my-function
              TagKeys:
              - DEPARTMENT
      tags:
      - Tags
    servers:
    - url: https://lambda.{region}.amazonaws.com
      variables:
        region:
          default: us-east-1
components:
  schemas:
    ErrorResponse:
      type: object
      description: Error response from the Lambda API
      properties:
        Type:
          type: string
          description: The error type
          example: example_value
        Message:
          type: string
          description: The error message
          example: example_value
        Code:
          type: string
          description: The error code
          example: example_value
    UntagResourceRequest:
      type: object
      properties:
        Resource:
          type: string
          description: The resource's Amazon Resource Name (ARN).
        TagKeys:
          type: array
          items:
            type: string
          description: A list of tag keys to remove from the resource.
      required:
      - Resource
      - TagKeys
    ResourceConflictException:
      type: object
      properties:
        Type:
          type: string
          description: The exception type.
        message:
          type: string
          description: The exception message.
    TagResourceRequest:
      type: object
      properties:
        Resource:
          type: string
          description: The resource's Amazon Resource Name (ARN).
        Tags:
          type: object
          additionalProperties:
            type: string
          description: A list of tags to apply to the resource.
      required:
      - Resource
      - Tags
    TooManyRequestsException:
      type: object
      properties:
        retryAfterSeconds:
          type: string
          description: The number of seconds the caller should wait before retrying.
        Type:
          type: string
        message:
          type: string
        Reason:
          type: string
          enum:
          - ConcurrentInvocationLimitExceeded
          - FunctionInvocationRateLimitExceeded
          - ReservedFunctionConcurrentInvocationLimitExceeded
          - ReservedFunctionInvocationRateLimitExceeded
          - CallerRateLimitExceeded
          - ConcurrentSnapshotCreateLimitExceeded
    ListTagsRequest:
      type: object
      properties:
        Resource:
          type: string
          description: 'The resource''s Amazon Resource Name (ARN). Note: Lambda does not support adding tags to function aliases or versions.'
      required:
      - Resource
    ResourceNotFoundException:
      type: object
      properties:
        Type:
          type: string
        Message:
          type: string
    ServiceException:
      type: object
      properties:
        Type:
          type: string
        Message:
          type: string
    InvalidParameterValueException:
      type: object
      properties:
        Type:
          type: string
          description: The exception type.
        message:
          type: string
          description: The exception message.
    ListTagsResponse:
      type: object
      properties:
        Tags:
          type: object
          additionalProperties:
            type: string
          description: The function's tags.
  securitySchemes:
    sigv4:
      type: apiKey
      in: header
      name: Authorization
      description: AWS Signature Version 4 authentication. Requests must be signed with valid AWS credentials that have the appropriate Lambda IAM permissions.
externalDocs:
  description: AWS Lambda API Reference
  url: https://docs.aws.amazon.com/lambda/latest/api/welcome.html
x-refined-from:
- aws-lambda-api-openapi.yml
- aws-lambda-tags-api-openapi.yml