Skip to content

Returns a list of aliases for a Lambda function

Description

Returns a list of aliases for a Lambda function.

Usage

lambda_list_aliases(FunctionName, FunctionVersion, Marker, MaxItems)

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.

  • FunctionVersion

    Specify a function version to only list aliases that invoke that version.

  • Marker

    Specify the pagination token that's returned by a previous request to retrieve the next page of results.

  • MaxItems

    Limit the number of aliases returned.

Value

A list with the following syntax:

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

Request syntax

svc$list_aliases(
  FunctionName = "string",
  FunctionVersion = "string",
  Marker = "string",
  MaxItems = 123
)

Examples

# The following example returns a list of aliases for a function named
# my-function.
svc$list_aliases(
  FunctionName = "my-function"
)