amazonka-migrationhub-1.6.0: Amazon Migration Hub SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.MigrationHub.ListMigrationTasks

Contents

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.

Synopsis

Creating a Request

listMigrationTasks :: ListMigrationTasks Source #

Creates a value of ListMigrationTasks with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • lmtResourceName - Filter migration tasks by discovered resource name.
  • lmtNextToken - 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 .
  • lmtMaxResults - Value to specify how many results are returned per page.

data ListMigrationTasks Source #

See: listMigrationTasks smart constructor.

Instances

Eq ListMigrationTasks Source # 
Data ListMigrationTasks Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ListMigrationTasks -> c ListMigrationTasks #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ListMigrationTasks #

toConstr :: ListMigrationTasks -> Constr #

dataTypeOf :: ListMigrationTasks -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ListMigrationTasks) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ListMigrationTasks) #

gmapT :: (forall b. Data b => b -> b) -> ListMigrationTasks -> ListMigrationTasks #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ListMigrationTasks -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ListMigrationTasks -> r #

gmapQ :: (forall d. Data d => d -> u) -> ListMigrationTasks -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ListMigrationTasks -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ListMigrationTasks -> m ListMigrationTasks #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ListMigrationTasks -> m ListMigrationTasks #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ListMigrationTasks -> m ListMigrationTasks #

Read ListMigrationTasks Source # 
Show ListMigrationTasks Source # 
Generic ListMigrationTasks Source # 
Hashable ListMigrationTasks Source # 
ToJSON ListMigrationTasks Source # 
NFData ListMigrationTasks Source # 

Methods

rnf :: ListMigrationTasks -> () #

AWSRequest ListMigrationTasks Source # 
ToHeaders ListMigrationTasks Source # 
ToPath ListMigrationTasks Source # 
ToQuery ListMigrationTasks Source # 
type Rep ListMigrationTasks Source # 
type Rep ListMigrationTasks = D1 * (MetaData "ListMigrationTasks" "Network.AWS.MigrationHub.ListMigrationTasks" "amazonka-migrationhub-1.6.0-7kcto3lUXxtCXP9q5ELBxL" False) (C1 * (MetaCons "ListMigrationTasks'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_lmtResourceName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_lmtNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_lmtMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Nat))))))
type Rs ListMigrationTasks Source # 

Request Lenses

lmtResourceName :: Lens' ListMigrationTasks (Maybe Text) Source #

Filter migration tasks by discovered resource name.

lmtNextToken :: 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 .

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

Value to specify how many results are returned per page.

Destructuring the Response

listMigrationTasksResponse Source #

Creates a value of ListMigrationTasksResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • lmtrsMigrationTaskSummaryList - Lists the migration task's summary which includes: MigrationTaskName , ProgressPercent , ProgressUpdateStream , Status , and the UpdateDateTime for each task.
  • lmtrsNextToken - 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.
  • lmtrsResponseStatus - -- | The response status code.

data ListMigrationTasksResponse Source #

See: listMigrationTasksResponse smart constructor.

Instances

Eq ListMigrationTasksResponse Source # 
Data ListMigrationTasksResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ListMigrationTasksResponse -> c ListMigrationTasksResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ListMigrationTasksResponse #

toConstr :: ListMigrationTasksResponse -> Constr #

dataTypeOf :: ListMigrationTasksResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ListMigrationTasksResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ListMigrationTasksResponse) #

gmapT :: (forall b. Data b => b -> b) -> ListMigrationTasksResponse -> ListMigrationTasksResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ListMigrationTasksResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ListMigrationTasksResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> ListMigrationTasksResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ListMigrationTasksResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ListMigrationTasksResponse -> m ListMigrationTasksResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ListMigrationTasksResponse -> m ListMigrationTasksResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ListMigrationTasksResponse -> m ListMigrationTasksResponse #

Read ListMigrationTasksResponse Source # 
Show ListMigrationTasksResponse Source # 
Generic ListMigrationTasksResponse Source # 
NFData ListMigrationTasksResponse Source # 
type Rep ListMigrationTasksResponse Source # 
type Rep ListMigrationTasksResponse = D1 * (MetaData "ListMigrationTasksResponse" "Network.AWS.MigrationHub.ListMigrationTasks" "amazonka-migrationhub-1.6.0-7kcto3lUXxtCXP9q5ELBxL" False) (C1 * (MetaCons "ListMigrationTasksResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_lmtrsMigrationTaskSummaryList") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [MigrationTaskSummary]))) ((:*:) * (S1 * (MetaSel (Just Symbol "_lmtrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_lmtrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))))

Response Lenses

lmtrsMigrationTaskSummaryList :: Lens' ListMigrationTasksResponse [MigrationTaskSummary] Source #

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

lmtrsNextToken :: 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.