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 |
Lists all, or filtered by resource name, migration tasks associated with the user account making this call. This API has the following traits:
- Can show a summary list of the most recent migration tasks.
- Can show a summary list of migration tasks associated with a given discovered resource.
- Lists migration tasks in a paginated interface.
This operation returns paginated results.
Synopsis
- data ListMigrationTasks = ListMigrationTasks' {}
- newListMigrationTasks :: ListMigrationTasks
- listMigrationTasks_resourceName :: Lens' ListMigrationTasks (Maybe Text)
- listMigrationTasks_nextToken :: Lens' ListMigrationTasks (Maybe Text)
- listMigrationTasks_maxResults :: Lens' ListMigrationTasks (Maybe Natural)
- data ListMigrationTasksResponse = ListMigrationTasksResponse' {}
- newListMigrationTasksResponse :: Int -> ListMigrationTasksResponse
- listMigrationTasksResponse_migrationTaskSummaryList :: Lens' ListMigrationTasksResponse (Maybe [MigrationTaskSummary])
- listMigrationTasksResponse_nextToken :: Lens' ListMigrationTasksResponse (Maybe Text)
- listMigrationTasksResponse_httpStatus :: Lens' ListMigrationTasksResponse Int
Creating a Request
data ListMigrationTasks Source #
See: newListMigrationTasks
smart constructor.
ListMigrationTasks' | |
|
Instances
newListMigrationTasks :: ListMigrationTasks Source #
Create a value of ListMigrationTasks
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:resourceName:ListMigrationTasks'
, listMigrationTasks_resourceName
- Filter migration tasks by discovered resource name.
$sel:nextToken:ListMigrationTasks'
, listMigrationTasks_nextToken
- If a NextToken
was returned by a previous call, there are more results
available. To retrieve the next page of results, make the call again
using the returned token in NextToken
.
$sel:maxResults:ListMigrationTasks'
, listMigrationTasks_maxResults
- Value to specify how many results are returned per page.
Request Lenses
listMigrationTasks_resourceName :: Lens' ListMigrationTasks (Maybe Text) Source #
Filter migration tasks by discovered resource name.
listMigrationTasks_nextToken :: Lens' ListMigrationTasks (Maybe Text) Source #
If a NextToken
was returned by a previous call, there are more results
available. To retrieve the next page of results, make the call again
using the returned token in NextToken
.
listMigrationTasks_maxResults :: Lens' ListMigrationTasks (Maybe Natural) Source #
Value to specify how many results are returned per page.
Destructuring the Response
data ListMigrationTasksResponse Source #
See: newListMigrationTasksResponse
smart constructor.
ListMigrationTasksResponse' | |
|
Instances
newListMigrationTasksResponse Source #
Create a value of ListMigrationTasksResponse
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:migrationTaskSummaryList:ListMigrationTasksResponse'
, listMigrationTasksResponse_migrationTaskSummaryList
- Lists the migration task's summary which includes: MigrationTaskName
,
ProgressPercent
, ProgressUpdateStream
, Status
, and the
UpdateDateTime
for each task.
$sel:nextToken:ListMigrationTasks'
, listMigrationTasksResponse_nextToken
- If there are more migration tasks than the max result, return the next
token to be passed to the next call as a bookmark of where to start
from.
$sel:httpStatus:ListMigrationTasksResponse'
, listMigrationTasksResponse_httpStatus
- The response's http status code.
Response Lenses
listMigrationTasksResponse_migrationTaskSummaryList :: Lens' ListMigrationTasksResponse (Maybe [MigrationTaskSummary]) Source #
Lists the migration task's summary which includes: MigrationTaskName
,
ProgressPercent
, ProgressUpdateStream
, Status
, and the
UpdateDateTime
for each task.
listMigrationTasksResponse_nextToken :: Lens' ListMigrationTasksResponse (Maybe Text) Source #
If there are more migration tasks than the max result, return the next token to be passed to the next call as a bookmark of where to start from.
listMigrationTasksResponse_httpStatus :: Lens' ListMigrationTasksResponse Int Source #
The response's http status code.