Skip to content

Update Alias

lambda_update_alias R Documentation

Updates the configuration of a Lambda function alias

Description

Updates the configuration of a Lambda function alias.

Usage

lambda_update_alias(FunctionName, Name, FunctionVersion, Description,
  RoutingConfig, RevisionId)

Arguments

FunctionName

[required] 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

[required] The name of the alias.

FunctionVersion

The function version that the alias invokes.

Description

A description of the alias.

RoutingConfig

The routing configuration of the alias.

RevisionId

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.

Value

A list with the following syntax:

list(
  AliasArn = "string",
  Name = "string",
  FunctionVersion = "string",
  Description = "string",
  RoutingConfig = list(
    AdditionalVersionWeights = list(
      123.0
    )
  ),
  RevisionId = "string"
)

Request syntax

svc$update_alias(
  FunctionName = "string",
  Name = "string",
  FunctionVersion = "string",
  Description = "string",
  RoutingConfig = list(
    AdditionalVersionWeights = list(
      123.0
    )
  ),
  RevisionId = "string"
)