Lists the executions of a state machine that meet the filtering criteria. 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.
sfn_list_executions(stateMachineArn, statusFilter, maxResults,
nextToken)
[required] The Amazon Resource Name (ARN) of the state machine whose executions is listed.
If specified, only list the executions whose current execution status matches the given filter.
The maximum number of results that are returned per call. You can use
nextToken
to obtain further pages of results. The default is 100 and
the maximum allowed page size is 1000. A value of 0 uses the default.
This is only an upper limit. The actual number of results returned per call might be fewer than the specified maximum.
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.
A list with the following syntax:
list( executions = list( list( executionArn = "string", stateMachineArn = "string", name = "string", status = "RUNNING"|"SUCCEEDED"|"FAILED"|"TIMED_OUT"|"ABORTED", startDate = as.POSIXct( "2015-01-01" ), stopDate = as.POSIXct( "2015-01-01" ) ) ), nextToken = "string" )
svc$list_executions( stateMachineArn = "string", statusFilter = "RUNNING"|"SUCCEEDED"|"FAILED"|"TIMED_OUT"|"ABORTED", maxResults = 123, nextToken = "string" )