/// <summary> /// Inspects the clinical text for personal health information (PHI) entities and entity /// category, location, and confidence score on that information. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetectPHI service method.</param> /// /// <returns>The response from the DetectPHI 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.InvalidEncodingException"> /// The input text was not in valid UTF-8 character encoding. Check your text then 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.ServiceUnavailableException"> /// The Comprehend Medical service is temporarily unavailable. Please wait and then retry /// your request. /// </exception> /// <exception cref="Amazon.ComprehendMedical.Model.TextSizeLimitExceededException"> /// The size of the text you submitted exceeds the size limit. Reduce the size of the /// text or use a smaller document and then retry your request. /// </exception> /// <exception cref="Amazon.ComprehendMedical.Model.TooManyRequestsException"> /// You have made too many requests within a short period of time. Wait for a short time /// and then try your request again. Contact customer support for more information about /// a service limit increase. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/DetectPHI">REST API Reference for DetectPHI Operation</seealso> public virtual DetectPHIResponse DetectPHI(DetectPHIRequest request) { var marshaller = DetectPHIRequestMarshaller.Instance; var unmarshaller = DetectPHIResponseUnmarshaller.Instance; return(Invoke <DetectPHIRequest, DetectPHIResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the DetectPHI operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DetectPHI operation on AmazonComprehendMedicalClient.</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 EndDetectPHI /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/DetectPHI">REST API Reference for DetectPHI Operation</seealso> public virtual IAsyncResult BeginDetectPHI(DetectPHIRequest request, AsyncCallback callback, object state) { var marshaller = DetectPHIRequestMarshaller.Instance; var unmarshaller = DetectPHIResponseUnmarshaller.Instance; return(BeginInvoke <DetectPHIRequest>(request, marshaller, unmarshaller, callback, state)); }
/// <summary> /// Initiates the asynchronous execution of the DetectPHI operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DetectPHI 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/comprehendmedical-2018-10-30/DetectPHI">REST API Reference for DetectPHI Operation</seealso> public virtual Task <DetectPHIResponse> DetectPHIAsync(DetectPHIRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = DetectPHIRequestMarshaller.Instance; var unmarshaller = DetectPHIResponseUnmarshaller.Instance; return(InvokeAsync <DetectPHIRequest, DetectPHIResponse>(request, marshaller, unmarshaller, cancellationToken)); }
/// <summary> /// Initiates the asynchronous execution of the DetectPHI operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DetectPHI 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/comprehendmedical-2018-10-30/DetectPHI">REST API Reference for DetectPHI Operation</seealso> public virtual Task <DetectPHIResponse> DetectPHIAsync(DetectPHIRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DetectPHIRequestMarshaller.Instance; options.ResponseUnmarshaller = DetectPHIResponseUnmarshaller.Instance; return(InvokeAsync <DetectPHIResponse>(request, options, cancellationToken)); }
internal virtual DetectPHIResponse DetectPHI(DetectPHIRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DetectPHIRequestMarshaller.Instance; options.ResponseUnmarshaller = DetectPHIResponseUnmarshaller.Instance; return(Invoke <DetectPHIResponse>(request, options)); }
/// <summary> /// Initiates the asynchronous execution of the DetectPHI operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DetectPHI operation on AmazonComprehendMedicalClient.</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 EndDetectPHI /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/DetectPHI">REST API Reference for DetectPHI Operation</seealso> public virtual IAsyncResult BeginDetectPHI(DetectPHIRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DetectPHIRequestMarshaller.Instance; options.ResponseUnmarshaller = DetectPHIResponseUnmarshaller.Instance; return(BeginInvoke(request, options, callback, state)); }