AWS SDK Version 4 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Stops a document classifier training job while in progress.

If the training job state is TRAINING, the job is marked for termination and put into the STOP_REQUESTED state. If the training job completes before it can be stopped, it is put into the TRAINED; otherwise the training job is stopped and put into the STOPPED state and the service sends back an HTTP 200 response with an empty HTTP body.

Note:

For .NET Core this operation is only available in asynchronous form. Please refer to StopTrainingDocumentClassifierAsync.

Namespace: Amazon.Comprehend
Assembly: AWSSDK.Comprehend.dll
Version: 3.x.y.z

Syntax

C#
public virtual StopTrainingDocumentClassifierResponse StopTrainingDocumentClassifier(
         StopTrainingDocumentClassifierRequest request
)

Parameters

request
Type: Amazon.Comprehend.Model.StopTrainingDocumentClassifierRequest

Container for the necessary parameters to execute the StopTrainingDocumentClassifier service method.

Return Value


The response from the StopTrainingDocumentClassifier service method, as returned by Comprehend.

Exceptions

ExceptionCondition
InternalServerException An internal server error occurred. Retry your request.
InvalidRequestException The request is invalid.
ResourceNotFoundException The specified resource ARN was not found. Check the ARN and try your request again.
TooManyRequestsException The number of requests exceeds the limit. Resubmit your request later.

Version Information

.NET Framework:
Supported in: 4.7.2 and newer

See Also