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 a list of tasks that can be filtered by state.
This operation returns paginated results.
Synopsis
- data ListTasks = ListTasks' {}
- newListTasks :: ListTasks
- listTasks_state :: Lens' ListTasks (Maybe TaskState)
- listTasks_nextToken :: Lens' ListTasks (Maybe Text)
- listTasks_maxResults :: Lens' ListTasks (Maybe Natural)
- data ListTasksResponse = ListTasksResponse' {
- tasks :: Maybe [TaskSummary]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListTasksResponse :: Int -> ListTasksResponse
- listTasksResponse_tasks :: Lens' ListTasksResponse (Maybe [TaskSummary])
- listTasksResponse_nextToken :: Lens' ListTasksResponse (Maybe Text)
- listTasksResponse_httpStatus :: Lens' ListTasksResponse Int
Creating a Request
See: newListTasks
smart constructor.
Instances
newListTasks :: ListTasks Source #
Create a value of ListTasks
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:ListTasks'
, listTasks_state
- A structure used to filter the list of tasks.
$sel:nextToken:ListTasks'
, listTasks_nextToken
- A pagination token to continue to the next page of tasks.
$sel:maxResults:ListTasks'
, listTasks_maxResults
- The maximum number of tasks per page.
Request Lenses
listTasks_state :: Lens' ListTasks (Maybe TaskState) Source #
A structure used to filter the list of tasks.
listTasks_nextToken :: Lens' ListTasks (Maybe Text) Source #
A pagination token to continue to the next page of tasks.
listTasks_maxResults :: Lens' ListTasks (Maybe Natural) Source #
The maximum number of tasks per page.
Destructuring the Response
data ListTasksResponse Source #
See: newListTasksResponse
smart constructor.
ListTasksResponse' | |
|
Instances
Create a value of ListTasksResponse
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:tasks:ListTasksResponse'
, listTasksResponse_tasks
- A list of task structures containing details about each task.
$sel:nextToken:ListTasks'
, listTasksResponse_nextToken
- A pagination token to continue to the next page of tasks.
$sel:httpStatus:ListTasksResponse'
, listTasksResponse_httpStatus
- The response's http status code.
Response Lenses
listTasksResponse_tasks :: Lens' ListTasksResponse (Maybe [TaskSummary]) Source #
A list of task structures containing details about each task.
listTasksResponse_nextToken :: Lens' ListTasksResponse (Maybe Text) Source #
A pagination token to continue to the next page of tasks.
listTasksResponse_httpStatus :: Lens' ListTasksResponse Int Source #
The response's http status code.