aws.stepfunctions.list_executions
Example SQL Queries
SELECT * FROMaws.stepfunctions.list_executions;Description
Lists all executions of a state machine or a Map Run. You can list all executions related to a state machine by specifying a state machine Amazon Resource Name (ARN), or those related to a Map Run by specifying a Map Run ARN. Using this API action, you can also list all redriven executions.
You can also provide a state machine alias ARN or version ARN to list the executions associated with a specific alias or version.
Results are sorted by time, with the most recent execution first.
If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error.
This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.
This API action is not supported by EXPRESS state machines.
Table Definition
| Column Name | Column Data Type |
|---|---|
| map_run_arn Input Column The Amazon Resource Name (ARN) of a Map Run. This field is returned only if mapRunArn was specified in the ListExecutions API action. If stateMachineArn was specified in ListExecutions, the mapRunArn isn't returned. | VARCHAR |
| redrive_filter Input Column Sets a filter to list executions based on whether or not they have been redriven. For a Distributed Map, redriveFilter sets a filter to list child workflow executions based on whether or not they have been redriven. If you do not provide a redriveFilter, Step Functions returns a list of both redriven and non-redriven executions. If you provide a state machine ARN in redriveFilter, the API returns a validation exception. | VARCHAR |
| state_machine_arn Input Column The Amazon Resource Name (ARN) of the state machine that ran the execution. | VARCHAR |
| status_filter Input Column If specified, only list the executions whose current execution status matches the given filter. | VARCHAR |
| _aws_profile Input Column The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role. | STRUCT( |
Show child fields
| |
| execution_arn The Amazon Resource Name (ARN) that identifies the execution. | VARCHAR |
| item_count The total number of items processed in a child workflow execution. This field is returned only if mapRunArn was specified in the ListExecutions API action. If stateMachineArn was specified in ListExecutions, the itemCount field isn't returned. | BIGINT |
| name The name of the execution. A name must not contain:
To enable logging with CloudWatch Logs, the name should only contain 0-9, A-Z, a-z, - and _. | VARCHAR |
| redrive_count The number of times you've redriven an execution. If you have not yet redriven an execution, the redriveCount is 0. This count is only updated when you successfully redrive an execution. | BIGINT |
| redrive_date The date the execution was last redriven. | TIMESTAMP_S |
| start_date The date the execution started. | TIMESTAMP_S |
| state_machine_alias_arn The Amazon Resource Name (ARN) of the state machine alias used to start an execution. If the state machine execution was started with an unqualified ARN or a version ARN, it returns null. | VARCHAR |
| state_machine_version_arn The Amazon Resource Name (ARN) of the state machine version associated with the execution. If the state machine execution was started with an unqualified ARN, it returns null. If the execution was started using a stateMachineAliasArn, both the stateMachineAliasArn and stateMachineVersionArn parameters contain the respective values. | VARCHAR |
| status The current status of the execution. | VARCHAR |
| stop_date If the execution already ended, the date the execution stopped. | TIMESTAMP_S |