| 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.DataSync.ListTasks
Description
Returns a list of the DataSync tasks you created.
This operation returns paginated results.
Synopsis
- data ListTasks = ListTasks' {
- filters :: Maybe [TaskFilter]
- maxResults :: Maybe Natural
- nextToken :: Maybe Text
- newListTasks :: ListTasks
- listTasks_filters :: Lens' ListTasks (Maybe [TaskFilter])
- listTasks_maxResults :: Lens' ListTasks (Maybe Natural)
- listTasks_nextToken :: Lens' ListTasks (Maybe Text)
- data ListTasksResponse = ListTasksResponse' {
- nextToken :: Maybe Text
- tasks :: Maybe [TaskListEntry]
- httpStatus :: Int
- newListTasksResponse :: Int -> ListTasksResponse
- listTasksResponse_nextToken :: Lens' ListTasksResponse (Maybe Text)
- listTasksResponse_tasks :: Lens' ListTasksResponse (Maybe [TaskListEntry])
- 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:maxResults:ListTasks', listTasks_maxResults - The maximum number of tasks to return.
ListTasks, listTasks_nextToken - An opaque string that indicates the position at which to begin the next
list of tasks.
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_maxResults :: Lens' ListTasks (Maybe Natural) Source #
The maximum number of tasks to return.
listTasks_nextToken :: Lens' ListTasks (Maybe Text) Source #
An opaque string that indicates the position at which to begin the next list of tasks.
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:
ListTasks, listTasksResponse_nextToken - An opaque string that indicates the position at which to begin returning
the next list of tasks.
$sel:tasks:ListTasksResponse', listTasksResponse_tasks - A list of all the tasks that are returned.
$sel:httpStatus:ListTasksResponse', listTasksResponse_httpStatus - The response's http status code.
Response Lenses
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_tasks :: Lens' ListTasksResponse (Maybe [TaskListEntry]) Source #
A list of all the tasks that are returned.
listTasksResponse_httpStatus :: Lens' ListTasksResponse Int Source #
The response's http status code.