/// <summary> /// Initiates the asynchronous execution of the ListHumanLoops operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListHumanLoops operation on AmazonAugmentedAIRuntimeClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListHumanLoops /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/ListHumanLoops">REST API Reference for ListHumanLoops Operation</seealso> public virtual IAsyncResult BeginListHumanLoops(ListHumanLoopsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListHumanLoopsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListHumanLoopsResponseUnmarshaller.Instance; return(BeginInvoke(request, options, callback, state)); }
/// <summary> /// Returns information about human loops, given the specified parameters. If a human /// loop was deleted, it will not be included. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListHumanLoops service method.</param> /// /// <returns>The response from the ListHumanLoops service method, as returned by AugmentedAIRuntime.</returns> /// <exception cref="Amazon.AugmentedAIRuntime.Model.InternalServerException"> /// Your request could not be processed. /// </exception> /// <exception cref="Amazon.AugmentedAIRuntime.Model.ThrottlingException"> /// Your request has exceeded the allowed amount of requests. /// </exception> /// <exception cref="Amazon.AugmentedAIRuntime.Model.ValidationException"> /// Your request was not valid. Check the syntax and try again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/ListHumanLoops">REST API Reference for ListHumanLoops Operation</seealso> public virtual ListHumanLoopsResponse ListHumanLoops(ListHumanLoopsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListHumanLoopsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListHumanLoopsResponseUnmarshaller.Instance; return(Invoke <ListHumanLoopsResponse>(request, options)); }
/// <summary> /// Returns information about human loops, given the specified parameters. If a human /// loop was deleted, it will not be included. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListHumanLoops service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListHumanLoops service method, as returned by AugmentedAIRuntime.</returns> /// <exception cref="Amazon.AugmentedAIRuntime.Model.InternalServerException"> /// We couldn't process your request because of an issue with the server. Try again later. /// </exception> /// <exception cref="Amazon.AugmentedAIRuntime.Model.ResourceNotFoundException"> /// We couldn't find the requested resource. Check that your resources exists and were /// created in the same AWS Region as your request, and try your request again. /// </exception> /// <exception cref="Amazon.AugmentedAIRuntime.Model.ThrottlingException"> /// You exceeded the maximum number of requests. /// </exception> /// <exception cref="Amazon.AugmentedAIRuntime.Model.ValidationException"> /// The request isn't valid. Check the syntax and try again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/ListHumanLoops">REST API Reference for ListHumanLoops Operation</seealso> public virtual Task <ListHumanLoopsResponse> ListHumanLoopsAsync(ListHumanLoopsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListHumanLoopsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListHumanLoopsResponseUnmarshaller.Instance; return(InvokeAsync <ListHumanLoopsResponse>(request, options, cancellationToken)); }