Comprehend / Client / stop_dominant_language_detection_job
stop_dominant_language_detection_job¶
- Comprehend.Client.stop_dominant_language_detection_job(**kwargs)¶
- Stops a dominant language detection job in progress. - If the job state is - IN_PROGRESSthe job is marked for termination and put into the- STOP_REQUESTEDstate. If the job completes before it can be stopped, it is put into the- COMPLETEDstate; otherwise the job is stopped and put into the- STOPPEDstate.- If the job is in the - COMPLETEDor- FAILEDstate when you call the- StopDominantLanguageDetectionJoboperation, the operation returns a 400 Internal Request Exception.- When a job is stopped, any documents already processed are written to the output location. - See also: AWS API Documentation - Request Syntax- response = client.stop_dominant_language_detection_job( JobId='string' ) - Parameters:
- JobId (string) – - [REQUIRED] - The identifier of the dominant language detection job to stop. 
- Return type:
- dict 
- Returns:
- Response Syntax- { 'JobId': 'string', 'JobStatus': 'SUBMITTED'|'IN_PROGRESS'|'COMPLETED'|'FAILED'|'STOP_REQUESTED'|'STOPPED' } - Response Structure- (dict) – - JobId (string) – - The identifier of the dominant language detection job to stop. 
- JobStatus (string) – - Either - STOP_REQUESTEDif the job is currently running, or- STOPPEDif the job was previously stopped with the- StopDominantLanguageDetectionJoboperation.
 
 
 - Exceptions