amazonka-migrationhub-2.0: Amazon Migration Hub SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.MigrationHub.ListMigrationTasks

Description

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

Creating a Request

data ListMigrationTasks Source #

See: newListMigrationTasks smart constructor.

Constructors

ListMigrationTasks' 

Fields

  • maxResults :: Maybe Natural

    Value to specify how many results are returned per page.

  • nextToken :: Maybe Text

    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.

  • resourceName :: Maybe Text

    Filter migration tasks by discovered resource name.

Instances

Instances details
ToJSON ListMigrationTasks Source # 
Instance details

Defined in Amazonka.MigrationHub.ListMigrationTasks

ToHeaders ListMigrationTasks Source # 
Instance details

Defined in Amazonka.MigrationHub.ListMigrationTasks

ToPath ListMigrationTasks Source # 
Instance details

Defined in Amazonka.MigrationHub.ListMigrationTasks

ToQuery ListMigrationTasks Source # 
Instance details

Defined in Amazonka.MigrationHub.ListMigrationTasks

AWSPager ListMigrationTasks Source # 
Instance details

Defined in Amazonka.MigrationHub.ListMigrationTasks

AWSRequest ListMigrationTasks Source # 
Instance details

Defined in Amazonka.MigrationHub.ListMigrationTasks

Associated Types

type AWSResponse ListMigrationTasks #

Generic ListMigrationTasks Source # 
Instance details

Defined in Amazonka.MigrationHub.ListMigrationTasks

Associated Types

type Rep ListMigrationTasks :: Type -> Type #

Read ListMigrationTasks Source # 
Instance details

Defined in Amazonka.MigrationHub.ListMigrationTasks

Show ListMigrationTasks Source # 
Instance details

Defined in Amazonka.MigrationHub.ListMigrationTasks

NFData ListMigrationTasks Source # 
Instance details

Defined in Amazonka.MigrationHub.ListMigrationTasks

Methods

rnf :: ListMigrationTasks -> () #

Eq ListMigrationTasks Source # 
Instance details

Defined in Amazonka.MigrationHub.ListMigrationTasks

Hashable ListMigrationTasks Source # 
Instance details

Defined in Amazonka.MigrationHub.ListMigrationTasks

type AWSResponse ListMigrationTasks Source # 
Instance details

Defined in Amazonka.MigrationHub.ListMigrationTasks

type Rep ListMigrationTasks Source # 
Instance details

Defined in Amazonka.MigrationHub.ListMigrationTasks

type Rep ListMigrationTasks = D1 ('MetaData "ListMigrationTasks" "Amazonka.MigrationHub.ListMigrationTasks" "amazonka-migrationhub-2.0-HPFHfkzHnlJDPxcpvPbrRQ" 'False) (C1 ('MetaCons "ListMigrationTasks'" 'PrefixI 'True) (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "resourceName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

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:maxResults:ListMigrationTasks', listMigrationTasks_maxResults - Value to specify how many results are returned per page.

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:resourceName:ListMigrationTasks', listMigrationTasks_resourceName - Filter migration tasks by discovered resource name.

Request Lenses

listMigrationTasks_maxResults :: Lens' ListMigrationTasks (Maybe Natural) Source #

Value to specify how many results are returned per page.

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_resourceName :: Lens' ListMigrationTasks (Maybe Text) Source #

Filter migration tasks by discovered resource name.

Destructuring the Response

data ListMigrationTasksResponse Source #

See: newListMigrationTasksResponse smart constructor.

Constructors

ListMigrationTasksResponse' 

Fields

  • migrationTaskSummaryList :: Maybe [MigrationTaskSummary]

    Lists the migration task's summary which includes: MigrationTaskName, ProgressPercent, ProgressUpdateStream, Status, and the UpdateDateTime for each task.

  • nextToken :: Maybe Text

    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.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic ListMigrationTasksResponse Source # 
Instance details

Defined in Amazonka.MigrationHub.ListMigrationTasks

Associated Types

type Rep ListMigrationTasksResponse :: Type -> Type #

Read ListMigrationTasksResponse Source # 
Instance details

Defined in Amazonka.MigrationHub.ListMigrationTasks

Show ListMigrationTasksResponse Source # 
Instance details

Defined in Amazonka.MigrationHub.ListMigrationTasks

NFData ListMigrationTasksResponse Source # 
Instance details

Defined in Amazonka.MigrationHub.ListMigrationTasks

Eq ListMigrationTasksResponse Source # 
Instance details

Defined in Amazonka.MigrationHub.ListMigrationTasks

type Rep ListMigrationTasksResponse Source # 
Instance details

Defined in Amazonka.MigrationHub.ListMigrationTasks

type Rep ListMigrationTasksResponse = D1 ('MetaData "ListMigrationTasksResponse" "Amazonka.MigrationHub.ListMigrationTasks" "amazonka-migrationhub-2.0-HPFHfkzHnlJDPxcpvPbrRQ" 'False) (C1 ('MetaCons "ListMigrationTasksResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "migrationTaskSummaryList") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [MigrationTaskSummary])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

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.

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.