Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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.
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.
This operation returns paginated results.
Synopsis
- data ListExecutions = ListExecutions' {}
- newListExecutions :: ListExecutions
- listExecutions_mapRunArn :: Lens' ListExecutions (Maybe Text)
- listExecutions_maxResults :: Lens' ListExecutions (Maybe Natural)
- listExecutions_nextToken :: Lens' ListExecutions (Maybe Text)
- listExecutions_stateMachineArn :: Lens' ListExecutions (Maybe Text)
- listExecutions_statusFilter :: Lens' ListExecutions (Maybe ExecutionStatus)
- data ListExecutionsResponse = ListExecutionsResponse' {
- nextToken :: Maybe Text
- httpStatus :: Int
- executions :: [ExecutionListItem]
- newListExecutionsResponse :: Int -> ListExecutionsResponse
- listExecutionsResponse_nextToken :: Lens' ListExecutionsResponse (Maybe Text)
- listExecutionsResponse_httpStatus :: Lens' ListExecutionsResponse Int
- listExecutionsResponse_executions :: Lens' ListExecutionsResponse [ExecutionListItem]
Creating a Request
data ListExecutions Source #
See: newListExecutions
smart constructor.
ListExecutions' | |
|
Instances
newListExecutions :: ListExecutions Source #
Create a value of ListExecutions
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
ListExecutions
, listExecutions_mapRunArn
- The Amazon Resource Name (ARN) of the Map Run that started the child
workflow executions. If the mapRunArn
field is specified, a list of
all of the child workflow executions started by a Map Run is returned.
For more information, see
Examining Map Run
in the Step Functions Developer Guide.
You can specify either a mapRunArn
or a stateMachineArn
, but not
both.
$sel:maxResults:ListExecutions'
, listExecutions_maxResults
- 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.
ListExecutions
, listExecutions_nextToken
- 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.
ListExecutions
, listExecutions_stateMachineArn
- The Amazon Resource Name (ARN) of the state machine whose executions is
listed.
You can specify either a mapRunArn
or a stateMachineArn
, but not
both.
$sel:statusFilter:ListExecutions'
, listExecutions_statusFilter
- If specified, only list the executions whose current execution status
matches the given filter.
Request Lenses
listExecutions_mapRunArn :: Lens' ListExecutions (Maybe Text) Source #
The Amazon Resource Name (ARN) of the Map Run that started the child
workflow executions. If the mapRunArn
field is specified, a list of
all of the child workflow executions started by a Map Run is returned.
For more information, see
Examining Map Run
in the Step Functions Developer Guide.
You can specify either a mapRunArn
or a stateMachineArn
, but not
both.
listExecutions_maxResults :: Lens' ListExecutions (Maybe Natural) Source #
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.
listExecutions_nextToken :: Lens' ListExecutions (Maybe Text) Source #
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.
listExecutions_stateMachineArn :: Lens' ListExecutions (Maybe Text) Source #
The Amazon Resource Name (ARN) of the state machine whose executions is listed.
You can specify either a mapRunArn
or a stateMachineArn
, but not
both.
listExecutions_statusFilter :: Lens' ListExecutions (Maybe ExecutionStatus) Source #
If specified, only list the executions whose current execution status matches the given filter.
Destructuring the Response
data ListExecutionsResponse Source #
See: newListExecutionsResponse
smart constructor.
ListExecutionsResponse' | |
|
Instances
newListExecutionsResponse Source #
Create a value of ListExecutionsResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
ListExecutions
, listExecutionsResponse_nextToken
- 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.
$sel:httpStatus:ListExecutionsResponse'
, listExecutionsResponse_httpStatus
- The response's http status code.
$sel:executions:ListExecutionsResponse'
, listExecutionsResponse_executions
- The list of matching executions.
Response Lenses
listExecutionsResponse_nextToken :: Lens' ListExecutionsResponse (Maybe Text) Source #
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.
listExecutionsResponse_httpStatus :: Lens' ListExecutionsResponse Int Source #
The response's http status code.
listExecutionsResponse_executions :: Lens' ListExecutionsResponse [ExecutionListItem] Source #
The list of matching executions.