AWS Lambda Aliases API

Create named pointers to function versions with routing configuration

GitHub OpenAPI

Operations 5

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

POST /2015-03-31/functions/{FunctionName}/aliases Create an alias pointing at a function version · Create Alias #
Ask an LLM
“How do I give clients a stable name like prod that points at a function version?”
“Can a new alias split traffic between two versions for a canary release?”
Tell an agent
Create alias {alias} on function {function} pointing at version {version}.
Create new alias {alias} for {function} on version {version} with weighted routing {routing}.
GET /2015-03-31/functions/{FunctionName}/aliases List a function's aliases · List Aliases #
Ask an LLM
“Which aliases exist for my Lambda function and which versions do they point to?”
“Can I see only the aliases that point at a particular version?”
Tell an agent
List all aliases of function {function}.
List the aliases of {function} that point at version {version}.
GET /2015-03-31/functions/{FunctionName}/aliases/{Name} Get Alias #
PUT /2015-03-31/functions/{FunctionName}/aliases/{Name} Update Alias #
DELETE /2015-03-31/functions/{FunctionName}/aliases/{Name} Delete Alias #

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-aliases-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

aws-lambda-aliases-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: AWS Lambda Aliases API
  version: '2015-03-31'
  description: Generated from AWS's published Smithy model for AWS Lambda. 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://lambda.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /2015-03-31/functions/{FunctionName}/aliases:
    post:
      operationId: CreateAlias
      summary: Create Alias
      description: Creates an alias for a Lambda Event Function version. Use aliases to provide clients with a function identifier
        that you can update to invoke a different version. You can also map an alias to split invocation requests between
        two versions. Use the RoutingConfig parameter to specify a second version and the percentage of invocation requests
        that it receives.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AliasConfiguration'
              example:
                AliasArn: arn:aws:lambda:us-east-2:123456789012:function:my-function:LIVE
                Description: alias for live version of function
                FunctionVersion: '1'
                Name: LIVE
                RevisionId: 873282ed-xmpl-4dc8-a069-d0c647e470c6
        '400':
          description: AliasLimitExceededException; InvalidParameterValueException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AliasLimitExceededException'
        '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'
      parameters:
      - name: FunctionName
        in: path
        required: true
        schema:
          type: string
        description: The name or ARN of the Lambda function. Name formats Function name - MyFunction. Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.
          Partial ARN - 123456789012:function:MyFunction. The length constraint applies only to the full ARN. If you specify
          only the function name, it is limited to 64 characters in length.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                Name:
                  type: string
                  description: The name of the alias.
                FunctionVersion:
                  type: string
                  description: The function version that the alias invokes.
                Description:
                  type: string
                  description: A description of the alias.
                RoutingConfig:
                  $ref: '#/components/schemas/AliasRoutingConfiguration'
              required:
              - Name
              - FunctionVersion
            example:
              Description: alias for live version of function
              FunctionName: my-function
              FunctionVersion: '1'
              Name: LIVE
      tags:
      - Aliases
    get:
      operationId: ListAliases
      summary: List Aliases
      description: Returns a list of aliases for a Lambda Event Function.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListAliasesResponse'
              example:
                Aliases:
                - AliasArn: arn:aws:lambda:us-west-2:123456789012:function:my-function:BETA
                  Description: Production environment BLUE.
                  FunctionVersion: '2'
                  Name: BLUE
                  RevisionId: a410117f-xmpl-494e-8035-7e204bb7933b
                  RoutingConfig:
                    AdditionalVersionWeights:
                      '1': 0.7
                - AliasArn: arn:aws:lambda:us-west-2:123456789012:function:my-function:LIVE
                  Description: Production environment GREEN.
                  FunctionVersion: '1'
                  Name: GREEN
                  RevisionId: 21d40116-xmpl-40ba-9360-3ea284da1bb5
        '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'
      parameters:
      - name: FunctionName
        in: path
        required: true
        schema:
          type: string
        description: The name or ARN of the Lambda function. Name formats Function name - MyFunction. Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.
          Partial ARN - 123456789012:function:MyFunction. The length constraint applies only to the full ARN. If you specify
          only the function name, it is limited to 64 characters in length.
      - name: FunctionVersion
        in: query
        schema:
          type: string
        description: Specify a function version to only list aliases that invoke that version.
      - name: Marker
        in: query
        schema:
          type: string
        description: Specify the pagination token that's returned by a previous request to retrieve the next page of results.
      - name: MaxItems
        in: query
        schema:
          type: integer
        description: Limit the number of aliases returned.
      tags:
      - Aliases
  /2015-03-31/functions/{FunctionName}/aliases/{Name}:
    get:
      operationId: GetAlias
      summary: Get Alias
      description: Returns details about a Lambda Event Function alias.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AliasConfiguration'
              example:
                AliasArn: arn:aws:lambda:us-west-2:123456789012:function:my-function:BLUE
                Description: Production environment BLUE.
                FunctionVersion: '3'
                Name: BLUE
                RevisionId: 594f41fb-xmpl-4c20-95c7-6ca5f2a92c93
        '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'
      parameters:
      - name: FunctionName
        in: path
        required: true
        schema:
          type: string
        description: The name or ARN of the Lambda function. Name formats Function name - MyFunction. Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.
          Partial ARN - 123456789012:function:MyFunction. The length constraint applies only to the full ARN. If you specify
          only the function name, it is limited to 64 characters in length.
      - name: Name
        in: path
        required: true
        schema:
          type: string
        description: The name of the alias.
      tags:
      - Aliases
    put:
      operationId: UpdateAlias
      summary: Update Alias
      description: Updates the configuration of a Lambda Event Function alias.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AliasConfiguration'
              example:
                AliasArn: arn:aws:lambda:us-west-2:123456789012:function:my-function:BLUE
                Description: Production environment BLUE.
                FunctionVersion: '2'
                Name: BLUE
                RevisionId: 594f41fb-xmpl-4c20-95c7-6ca5f2a92c93
                RoutingConfig:
                  AdditionalVersionWeights:
                    '1': 0.7
        '400':
          description: InvalidParameterValueException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidParameterValueException'
        '412':
          description: PreconditionFailedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PreconditionFailedException'
        '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'
      parameters:
      - name: FunctionName
        in: path
        required: true
        schema:
          type: string
        description: The name or ARN of the Lambda function. Name formats Function name - MyFunction. Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.
          Partial ARN - 123456789012:function:MyFunction. The length constraint applies only to the full ARN. If you specify
          only the function name, it is limited to 64 characters in length.
      - name: Name
        in: path
        required: true
        schema:
          type: string
        description: The name of the alias.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                FunctionVersion:
                  type: string
                  description: The function version that the alias invokes.
                Description:
                  type: string
                  description: A description of the alias.
                RoutingConfig:
                  $ref: '#/components/schemas/AliasRoutingConfiguration'
                RevisionId:
                  type: string
                  description: Only update the alias if the revision ID matches the ID that's specified. Use this option to
                    avoid modifying an alias that has changed since you last read it.
            example:
              FunctionName: my-function
              FunctionVersion: '2'
              Name: BLUE
              RoutingConfig:
                AdditionalVersionWeights:
                  '1': 0.7
      tags:
      - Aliases
    delete:
      operationId: DeleteAlias
      summary: Delete Alias
      description: Deletes a Lambda Event Function alias.
      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'
      parameters:
      - name: FunctionName
        in: path
        required: true
        schema:
          type: string
        description: The name or ARN of the Lambda function. Name formats Function name - MyFunction. Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.
          Partial ARN - 123456789012:function:MyFunction. The length constraint applies only to the full ARN. If you specify
          only the function name, it is limited to 64 characters in length.
      - name: Name
        in: path
        required: true
        schema:
          type: string
        description: The name of the alias.
      tags:
      - Aliases
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: lambda
  schemas:
    AliasConfiguration:
      type: object
      properties:
        AliasArn:
          type: string
          description: The Amazon Resource Name (ARN) of the alias.
        Name:
          type: string
          description: The name of the alias.
        FunctionVersion:
          type: string
          description: The function version that the alias invokes.
        Description:
          type: string
          description: A description of the alias.
        RoutingConfig:
          $ref: '#/components/schemas/AliasRoutingConfiguration'
        RevisionId:
          type: string
          description: A unique identifier that changes when you update the alias.
    AliasLimitExceededException:
      type: object
      properties:
        Type:
          type: string
          description: The exception type.
        message:
          type: string
          description: The exception message.
    AliasRoutingConfiguration:
      type: object
      properties:
        AdditionalVersionWeights:
          type: object
          additionalProperties:
            type: number
          description: The second version, and the percentage of traffic that's routed to it.
    InvalidParameterValueException:
      type: object
      properties:
        Type:
          type: string
          description: The exception type.
        message:
          type: string
          description: The exception message.
    ListAliasesResponse:
      type: object
      properties:
        NextMarker:
          type: string
          description: The pagination token that's included if more results are available.
        Aliases:
          type: array
          items:
            $ref: '#/components/schemas/AliasConfiguration'
          description: A list of aliases.
    PreconditionFailedException:
      type: object
      properties:
        Type:
          type: string
          description: The exception type.
        message:
          type: string
          description: The exception message.
    ResourceConflictException:
      type: object
      properties:
        Type:
          type: string
          description: The exception type.
        message:
          type: string
          description: The exception message.
    ResourceNotFoundException:
      type: object
      properties:
        Type:
          type: string
        Message:
          type: string
    ServiceException:
      type: object
      properties:
        Type:
          type: string
        Message:
          type: string
    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
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/lambda/service/2015-03-31/lambda-2015-03-31.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)