:doc:`Comprehend <../../comprehend>` / Client / stop_training_document_classifier

*********************************
stop_training_document_classifier
*********************************



.. py:method:: Comprehend.Client.stop_training_document_classifier(**kwargs)

  

  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.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopTrainingDocumentClassifier>`_  


  **Request Syntax**
  ::

    response = client.stop_training_document_classifier(
        DocumentClassifierArn='string'
    )
    
  :type DocumentClassifierArn: string
  :param DocumentClassifierArn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) that identifies the document classifier currently being trained.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`Comprehend.Client.exceptions.InvalidRequestException`

  
  *   :py:class:`Comprehend.Client.exceptions.TooManyRequestsException`

  
  *   :py:class:`Comprehend.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`Comprehend.Client.exceptions.InternalServerException`

  