Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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.
This operation returns paginated results.
Synopsis
- data ListExecutions = ListExecutions' {}
- newListExecutions :: Text -> ListExecutions
- listExecutions_statusFilter :: Lens' ListExecutions (Maybe ExecutionStatus)
- listExecutions_nextToken :: Lens' ListExecutions (Maybe Text)
- listExecutions_maxResults :: Lens' ListExecutions (Maybe Natural)
- listExecutions_stateMachineArn :: Lens' ListExecutions Text
- 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
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:
$sel:statusFilter:ListExecutions'
, listExecutions_statusFilter
- If specified, only list the executions whose current execution status
matches the given filter.
$sel:nextToken: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.
$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.
$sel:stateMachineArn:ListExecutions'
, listExecutions_stateMachineArn
- The Amazon Resource Name (ARN) of the state machine whose executions is
listed.
Request Lenses
listExecutions_statusFilter :: Lens' ListExecutions (Maybe ExecutionStatus) Source #
If specified, only list the executions whose current execution status matches the given filter.
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_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_stateMachineArn :: Lens' ListExecutions Text Source #
The Amazon Resource Name (ARN) of the state machine whose executions is listed.
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:
$sel:nextToken: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.