Smaws_Client_Comprehend.StopSentimentDetectionJobStops a sentiment detection job in progress.
If the job state is IN_PROGRESS, the job is marked for termination and put into the STOP_REQUESTED state. If the job completes before it can be stopped, it is put into the COMPLETED state; otherwise the job is be stopped and put into the STOPPED state.
If the job is in the COMPLETED or FAILED state when you call the StopDominantLanguageDetectionJob operation, the operation returns a 400 Internal Request Exception.
When a job is stopped, any documents already processed are written to the output location.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `InternalServerException of Types.internal_server_exception
| `InvalidRequestException of Types.invalid_request_exception
| `JobNotFoundException of Types.job_not_found_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.stop_sentiment_detection_job_request ->
(Types.stop_sentiment_detection_job_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `InternalServerException of Types.internal_server_exception
| `InvalidRequestException of Types.invalid_request_exception
| `JobNotFoundException of Types.job_not_found_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.stop_sentiment_detection_job_request ->
(Types.stop_sentiment_detection_job_response Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `InternalServerException of Types.internal_server_exception
| `InvalidRequestException of Types.invalid_request_exception
| `JobNotFoundException of Types.job_not_found_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result