aliases
Creates, updates, deletes, gets or lists an aliases resource.
Overview
| Name | aliases |
| Type | Resource |
| Id | aws.lambda.aliases |
Fields
The following fields are returned by SELECT queries:
- list_aliases
| Name | Datatype | Description |
|---|---|---|
alias_arn | string | The Amazon Resource Name (ARN) of the alias. (pattern: <code>arn:(aws[a-zA-Z-]*)?:lambda:(eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\d{1}:\d{12}:function:[a-zA-Z0-9-]+(:($LATEST|[a-zA-Z0-9-]+))?</code>) |
description | string | A description of the alias. |
function_version | string | The function version that the alias invokes. (pattern: <code>($LATEST|[0-9]+)</code>) |
name | string | The name of the alias. (pattern: <code>(?!^[0-9]+$)([a-zA-Z0-9-_]+)</code>) |
revision_id | string | A unique identifier that changes when you update the alias. |
routing_config | object | The traffic-shifting configuration of a Lambda function alias. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_aliases | select | function_name, region | FunctionVersion, Marker, MaxItems | Returns a list of aliases for a Lambda function. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
function_name | string | 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. |
region | string | AWS region (default: us-east-1) |
FunctionVersion | string | Specify a function version to only list aliases that invoke that version. |
Marker | string | Specify the pagination token that's returned by a previous request to retrieve the next page of results. |
MaxItems | integer | Limit the number of aliases returned. |
SELECT examples
- list_aliases
Returns a list of aliases for a Lambda function.
SELECT
alias_arn,
description,
function_version,
name,
revision_id,
routing_config
FROM aws.lambda.aliases
WHERE function_name = '{{ function_name }}' -- required
AND region = '{{ region }}' -- required
AND FunctionVersion = '{{ FunctionVersion }}'
AND Marker = '{{ Marker }}'
AND MaxItems = '{{ MaxItems }}'
;