| 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 |
Amazonka.DataSync.ListTasks
Description
Returns a list of all the tasks.
This operation returns paginated results.
Synopsis
- data ListTasks = ListTasks' {
- filters :: Maybe [TaskFilter]
- nextToken :: Maybe Text
- maxResults :: Maybe Natural
- newListTasks :: ListTasks
- listTasks_filters :: Lens' ListTasks (Maybe [TaskFilter])
- listTasks_nextToken :: Lens' ListTasks (Maybe Text)
- listTasks_maxResults :: Lens' ListTasks (Maybe Natural)
- data ListTasksResponse = ListTasksResponse' {
- tasks :: Maybe [TaskListEntry]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListTasksResponse :: Int -> ListTasksResponse
- listTasksResponse_tasks :: Lens' ListTasksResponse (Maybe [TaskListEntry])
- listTasksResponse_nextToken :: Lens' ListTasksResponse (Maybe Text)
- listTasksResponse_httpStatus :: Lens' ListTasksResponse Int
Creating a Request
ListTasksRequest
See: newListTasks smart constructor.
Constructors
| ListTasks' | |
Fields
| |
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:filters:ListTasks', listTasks_filters - You can use API filters to narrow down the list of resources returned by
ListTasks. For example, to retrieve all tasks on a specific source
location, you can use ListTasks with filter name LocationId and
Operator Equals with the ARN for the location.
$sel:nextToken:ListTasks', listTasks_nextToken - An opaque string that indicates the position at which to begin the next
list of tasks.
$sel:maxResults:ListTasks', listTasks_maxResults - The maximum number of tasks to return.
Request Lenses
listTasks_filters :: Lens' ListTasks (Maybe [TaskFilter]) Source #
You can use API filters to narrow down the list of resources returned by
ListTasks. For example, to retrieve all tasks on a specific source
location, you can use ListTasks with filter name LocationId and
Operator Equals with the ARN for the location.
listTasks_nextToken :: Lens' ListTasks (Maybe Text) Source #
An opaque string that indicates the position at which to begin the next list of tasks.
listTasks_maxResults :: Lens' ListTasks (Maybe Natural) Source #
The maximum number of tasks to return.
Destructuring the Response
data ListTasksResponse Source #
ListTasksResponse
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:
$sel:tasks:ListTasksResponse', listTasksResponse_tasks - A list of all the tasks that are returned.
$sel:nextToken:ListTasks', listTasksResponse_nextToken - An opaque string that indicates the position at which to begin returning
the next list of tasks.
$sel:httpStatus:ListTasksResponse', listTasksResponse_httpStatus - The response's http status code.
Response Lenses
listTasksResponse_tasks :: Lens' ListTasksResponse (Maybe [TaskListEntry]) Source #
A list of all the tasks that are returned.
listTasksResponse_nextToken :: Lens' ListTasksResponse (Maybe Text) Source #
An opaque string that indicates the position at which to begin returning the next list of tasks.
listTasksResponse_httpStatus :: Lens' ListTasksResponse Int Source #
The response's http status code.