internal ListMigrationTasksResponse ListMigrationTasks(ListMigrationTasksRequest request) { var marshaller = new ListMigrationTasksRequestMarshaller(); var unmarshaller = ListMigrationTasksResponseUnmarshaller.Instance; return(Invoke <ListMigrationTasksRequest, ListMigrationTasksResponse>(request, marshaller, unmarshaller)); }
public override void Invoke(AWSCredentials creds, RegionEndpoint region, int maxItems) { AmazonMigrationHubConfig config = new AmazonMigrationHubConfig(); config.RegionEndpoint = region; ConfigureClient(config); AmazonMigrationHubClient client = new AmazonMigrationHubClient(creds, config); ListMigrationTasksResponse resp = new ListMigrationTasksResponse(); do { ListMigrationTasksRequest req = new ListMigrationTasksRequest { NextToken = resp.NextToken , MaxResults = maxItems }; resp = client.ListMigrationTasks(req); CheckError(resp.HttpStatusCode, "200"); foreach (var obj in resp.MigrationTaskSummaryList) { AddObject(obj); } }while (!string.IsNullOrEmpty(resp.NextToken)); }
/// <summary> /// Initiates the asynchronous execution of the ListMigrationTasks operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListMigrationTasks operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/ListMigrationTasks">REST API Reference for ListMigrationTasks Operation</seealso> public Task <ListMigrationTasksResponse> ListMigrationTasksAsync(ListMigrationTasksRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ListMigrationTasksRequestMarshaller(); var unmarshaller = ListMigrationTasksResponseUnmarshaller.Instance; return(InvokeAsync <ListMigrationTasksRequest, ListMigrationTasksResponse>(request, marshaller, unmarshaller, cancellationToken)); }
/// <summary> /// Initiates the asynchronous execution of the ListMigrationTasks operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListMigrationTasks operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/ListMigrationTasks">REST API Reference for ListMigrationTasks Operation</seealso> public virtual Task <ListMigrationTasksResponse> ListMigrationTasksAsync(ListMigrationTasksRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListMigrationTasksRequestMarshaller.Instance; options.ResponseUnmarshaller = ListMigrationTasksResponseUnmarshaller.Instance; return(InvokeAsync <ListMigrationTasksResponse>(request, options, cancellationToken)); }
internal virtual ListMigrationTasksResponse ListMigrationTasks(ListMigrationTasksRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListMigrationTasksRequestMarshaller.Instance; options.ResponseUnmarshaller = ListMigrationTasksResponseUnmarshaller.Instance; return(Invoke <ListMigrationTasksResponse>(request, options)); }