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 |
Returns the status of tasks for one or more target devices.
This operation returns paginated results.
Synopsis
- data ListExecutions = ListExecutions' {}
- newListExecutions :: Text -> ListExecutions
- listExecutions_state :: Lens' ListExecutions (Maybe ExecutionState)
- listExecutions_nextToken :: Lens' ListExecutions (Maybe Text)
- listExecutions_maxResults :: Lens' ListExecutions (Maybe Natural)
- listExecutions_taskId :: Lens' ListExecutions Text
- data ListExecutionsResponse = ListExecutionsResponse' {
- executions :: Maybe [ExecutionSummary]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListExecutionsResponse :: Int -> ListExecutionsResponse
- listExecutionsResponse_executions :: Lens' ListExecutionsResponse (Maybe [ExecutionSummary])
- listExecutionsResponse_nextToken :: Lens' ListExecutionsResponse (Maybe Text)
- listExecutionsResponse_httpStatus :: Lens' ListExecutionsResponse Int
Creating a Request
data ListExecutions Source #
See: newListExecutions
smart constructor.
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:state:ListExecutions'
, listExecutions_state
- A structure used to filter the tasks by their current state.
$sel:nextToken:ListExecutions'
, listExecutions_nextToken
- A pagination token to continue to the next page of tasks.
$sel:maxResults:ListExecutions'
, listExecutions_maxResults
- The maximum number of tasks to list per page.
$sel:taskId:ListExecutions'
, listExecutions_taskId
- The ID of the task.
Request Lenses
listExecutions_state :: Lens' ListExecutions (Maybe ExecutionState) Source #
A structure used to filter the tasks by their current state.
listExecutions_nextToken :: Lens' ListExecutions (Maybe Text) Source #
A pagination token to continue to the next page of tasks.
listExecutions_maxResults :: Lens' ListExecutions (Maybe Natural) Source #
The maximum number of tasks to list per page.
listExecutions_taskId :: Lens' ListExecutions Text Source #
The ID of the task.
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:executions:ListExecutionsResponse'
, listExecutionsResponse_executions
- A list of executions. Each execution contains the task ID, the device
that the task is executing on, the execution ID, and the status of the
execution.
$sel:nextToken:ListExecutions'
, listExecutionsResponse_nextToken
- A pagination token to continue to the next page of executions.
$sel:httpStatus:ListExecutionsResponse'
, listExecutionsResponse_httpStatus
- The response's http status code.
Response Lenses
listExecutionsResponse_executions :: Lens' ListExecutionsResponse (Maybe [ExecutionSummary]) Source #
A list of executions. Each execution contains the task ID, the device that the task is executing on, the execution ID, and the status of the execution.
listExecutionsResponse_nextToken :: Lens' ListExecutionsResponse (Maybe Text) Source #
A pagination token to continue to the next page of executions.
listExecutionsResponse_httpStatus :: Lens' ListExecutionsResponse Int Source #
The response's http status code.