---
title: "PUT /2015-03-31/functions/{FunctionName}/aliases/{Name}"
method: PUT
path: "/2015-03-31/functions/{FunctionName}/aliases/{Name}"
---

# PUT /2015-03-31/functions/{FunctionName}/aliases/{Name}

`PUT /2015-03-31/functions/{FunctionName}/aliases/{Name}`

Updates the configuration of a Lambda function <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html">alias</a>.

## Path parameters

- `FunctionName` string, required
- `Name` string, required

## Request body

- object
  - `FunctionVersion` string — The function version that the alias invokes.
  - `Description` string — A description of the alias.
  - `RoutingConfig` object — The <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-traffic-shifting-using-aliases.html">traffic-shifting</a> configuration of a Lambda function alias.
    - `AdditionalVersionWeights` object — The second version, and the percentage of traffic that's routed to it.
  - `RevisionId` string — 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.

## Response `200`

Success

- AliasConfiguration — Provides configuration information about a Lambda function <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html">alias</a>.
  - `AliasArn` string — The Amazon Resource Name (ARN) of the alias.
  - `Name` string — The name of the alias.
  - `FunctionVersion` string — The function version that the alias invokes.
  - `Description` string — A description of the alias.
  - `RoutingConfig` object — The <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-traffic-shifting-using-aliases.html">routing configuration</a> of the alias.
    - `AdditionalVersionWeights` object — The second version, and the percentage of traffic that's routed to it.
  - `RevisionId` string — A unique identifier that changes when you update the alias.

## Other responses

- `480` — ServiceException
- `481` — ResourceNotFoundException
- `482` — InvalidParameterValueException
- `483` — TooManyRequestsException
- `484` — PreconditionFailedException
- `485` — ResourceConflictException

---

[API](https://skmtc.net/aws/apis/lambda.md) · [All operations](https://skmtc.net/aws/apis/lambda/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/lambda/versions/2d9fde023ce9/schema)
