/// <summary> /// Stops a protected health information (PHI) detection job in progress. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StopPHIDetectionJob 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 StopPHIDetectionJob service method, as returned by ComprehendMedical.</returns> /// <exception cref="Amazon.ComprehendMedical.Model.InternalServerException"> /// An internal server error occurred. Retry your request. /// </exception> /// <exception cref="Amazon.ComprehendMedical.Model.InvalidRequestException"> /// The request that you made is invalid. Check your request to determine why it's invalid /// and then retry the request. /// </exception> /// <exception cref="Amazon.ComprehendMedical.Model.ResourceNotFoundException"> /// The resource identified by the specified Amazon Resource Name (ARN) was not found. /// Check the ARN and try your request again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StopPHIDetectionJob">REST API Reference for StopPHIDetectionJob Operation</seealso> public virtual Task <StopPHIDetectionJobResponse> StopPHIDetectionJobAsync(StopPHIDetectionJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StopPHIDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StopPHIDetectionJobResponseUnmarshaller.Instance; return(InvokeAsync <StopPHIDetectionJobResponse>(request, options, cancellationToken)); }
internal virtual StopPHIDetectionJobResponse StopPHIDetectionJob(StopPHIDetectionJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StopPHIDetectionJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StopPHIDetectionJobResponseUnmarshaller.Instance; return(Invoke <StopPHIDetectionJobResponse>(request, options)); }