Skip to main content

durable_executions_by_functions

Creates, updates, deletes, gets or lists a durable_executions_by_functions resource.

Overview

Namedurable_executions_by_functions
TypeResource
Idaws.lambda.durable_executions_by_functions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
durable_execution_arnstringThe Amazon Resource Name (ARN) of the durable execution, if this execution is a durable execution. (pattern: <code>arn:([a-zA-Z0-9-]+):lambda:([a-zA-Z0-9-]+):(\d{12}):function:([a-zA-Z0-9_-]+):($LATEST(?:.PUBLISHED)?|[0-9]+)/durable-execution/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)</code>)
durable_execution_namestringThe unique name of the durable execution, if one was provided when the execution was started. (pattern: <code>[a-zA-Z0-9-_]+</code>)
end_timestampstring (date-time)The date and time when the durable execution ended, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
function_arnstringThe Amazon Resource Name (ARN) of the Lambda function. (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(.PUBLISHED)?|[a-zA-Z0-9-]+))?</code>)
kms_key_arnstringThe ARN of the Key Management Service (KMS) customer managed key that is used to encrypt your durable execution's payload data, including input, output, and error payloads. (pattern: <code>(arn:(aws[a-zA-Z-])?:[a-z0-9-.]+:.)|()</code>)
start_timestampstring (date-time)The date and time when the durable execution started, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
statusstringThe current status of the durable execution. (RUNNING, SUCCEEDED, FAILED, TIMED_OUT, STOPPED)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_durable_executions_by_functionselectfunction_name, regionQualifier, DurableExecutionName, Statuses, StartedAfter, StartedBefore, ReverseOrder, Marker, MaxItemsReturns a list of durable executions for a specified Lambda function. You can filter the results by execution name, status, and start time range. This API supports pagination for large result sets.

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.

NameDatatypeDescription
function_namestringThe name or ARN of the Lambda function. You can specify a function name, a partial ARN, or a full ARN.
regionstringAWS region (default: us-east-1)
DurableExecutionNamestringFilter executions by name. Only executions with names that matches this string are returned.
MarkerstringPagination token from a previous request to continue retrieving results.
MaxItemsintegerMaximum number of executions to return (1-1000). Default is 100.
QualifierstringThe function version or alias. If not specified, lists executions for the $LATEST version.
ReverseOrderbooleanSet to true to return results in chronological order (oldest first). Default is false.
StartedAfterstring (date-time)Filter executions that started after this timestamp (ISO 8601 format).
StartedBeforestring (date-time)Filter executions that started before this timestamp (ISO 8601 format).
StatusesarrayFilter executions by status. Valid values: RUNNING, SUCCEEDED, FAILED, TIMED_OUT, STOPPED.

SELECT examples

Returns a list of durable executions for a specified Lambda function. You can filter the results by execution name, status, and start time range. This API supports pagination for large result sets.

SELECT
durable_execution_arn,
durable_execution_name,
end_timestamp,
function_arn,
kms_key_arn,
start_timestamp,
status
FROM aws.lambda.durable_executions_by_functions
WHERE function_name = '{{ function_name }}' -- required
AND region = '{{ region }}' -- required
AND Qualifier = '{{ Qualifier }}'
AND DurableExecutionName = '{{ DurableExecutionName }}'
AND Statuses = '{{ Statuses }}'
AND StartedAfter = '{{ StartedAfter }}'
AND StartedBefore = '{{ StartedBefore }}'
AND ReverseOrder = '{{ ReverseOrder }}'
AND Marker = '{{ Marker }}'
AND MaxItems = '{{ MaxItems }}'
;