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