:doc:`Rekognition <../../rekognition>` / Client / stop_project_version

********************
stop_project_version
********************



.. py:method:: Rekognition.Client.stop_project_version(**kwargs)

  

  .. note::

    

    This operation applies only to Amazon Rekognition Custom Labels.

    

   

  Stops a running model. The operation might take a while to complete. To check the current status, call  DescribeProjectVersions. Only applies to Custom Labels projects.

   

  This operation requires permissions to perform the ``rekognition:StopProjectVersion`` action.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/rekognition-2016-06-27/StopProjectVersion>`_  


  **Request Syntax**
  ::

    response = client.stop_project_version(
        ProjectVersionArn='string'
    )
    
  :type ProjectVersionArn: string
  :param ProjectVersionArn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the model version that you want to stop.

     

    This operation requires permissions to perform the ``rekognition:StopProjectVersion`` action.

    

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

    
    ::

      {
          'Status': 'TRAINING_IN_PROGRESS'|'TRAINING_COMPLETED'|'TRAINING_FAILED'|'STARTING'|'RUNNING'|'FAILED'|'STOPPING'|'STOPPED'|'DELETING'|'COPYING_IN_PROGRESS'|'COPYING_COMPLETED'|'COPYING_FAILED'|'DEPRECATED'|'EXPIRED'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Status** *(string) --* 

        The current status of the stop operation.

        
  
  **Exceptions**
  
  *   :py:class:`Rekognition.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`Rekognition.Client.exceptions.ResourceInUseException`

  
  *   :py:class:`Rekognition.Client.exceptions.InvalidParameterException`

  
  *   :py:class:`Rekognition.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`Rekognition.Client.exceptions.InternalServerError`

  
  *   :py:class:`Rekognition.Client.exceptions.ThrottlingException`

  
  *   :py:class:`Rekognition.Client.exceptions.ProvisionedThroughputExceededException`

  