List Executions
sfn_list_executions | R Documentation |
Lists all executions of a state machine or a Map Run¶
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.
Usage¶
sfn_list_executions(stateMachineArn, statusFilter, maxResults,
nextToken, mapRunArn, redriveFilter)
Arguments¶
stateMachineArn |
The Amazon Resource Name (ARN) of the state machine whose executions is listed. You can specify either a You can also return a list of executions associated with a specific
alias
or version,
by specifying an alias ARN or a version ARN in the
|
statusFilter |
If specified, only list the executions whose current execution status matches the given filter. |
maxResults |
The maximum number of results that are returned per call. You can
use This is only an upper limit. The actual number of results returned per call might be fewer than the specified maximum. |
nextToken |
If |
mapRunArn |
The Amazon Resource Name (ARN) of the Map Run that started the
child workflow executions. If the You can specify either a |
redriveFilter |
Sets a filter to list executions based on whether or not they have been redriven. For a Distributed Map, If you do not provide a If you provide a state machine ARN in |
Value¶
A list with the following syntax:
list(
executions = list(
list(
executionArn = "string",
stateMachineArn = "string",
name = "string",
status = "RUNNING"|"SUCCEEDED"|"FAILED"|"TIMED_OUT"|"ABORTED"|"PENDING_REDRIVE",
startDate = as.POSIXct(
"2015-01-01"
),
stopDate = as.POSIXct(
"2015-01-01"
),
mapRunArn = "string",
itemCount = 123,
stateMachineVersionArn = "string",
stateMachineAliasArn = "string",
redriveCount = 123,
redriveDate = as.POSIXct(
"2015-01-01"
)
)
),
nextToken = "string"
)
Request syntax¶
svc$list_executions(
stateMachineArn = "string",
statusFilter = "RUNNING"|"SUCCEEDED"|"FAILED"|"TIMED_OUT"|"ABORTED"|"PENDING_REDRIVE",
maxResults = 123,
nextToken = "string",
mapRunArn = "string",
redriveFilter = "REDRIVEN"|"NOT_REDRIVEN"
)