:doc:`FraudDetector <../../frauddetector>` / Client / update_model_version_status

***************************
update_model_version_status
***************************



.. py:method:: FraudDetector.Client.update_model_version_status(**kwargs)

  

  Updates the status of a model version.

   

  You can perform the following status updates:

   

   
  * Change the ``TRAINING_IN_PROGRESS`` status to ``TRAINING_CANCELLED``.
   
  * Change the ``TRAINING_COMPLETE`` status to ``ACTIVE``.
   
  * Change ``ACTIVE`` to ``INACTIVE``.
  

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/UpdateModelVersionStatus>`_  


  **Request Syntax**
  ::

    response = client.update_model_version_status(
        modelId='string',
        modelType='ONLINE_FRAUD_INSIGHTS'|'TRANSACTION_FRAUD_INSIGHTS'|'ACCOUNT_TAKEOVER_INSIGHTS',
        modelVersionNumber='string',
        status='ACTIVE'|'INACTIVE'|'TRAINING_CANCELLED'
    )
    
  :type modelId: string
  :param modelId: **[REQUIRED]** 

    The model ID of the model version to update.

    

  
  :type modelType: string
  :param modelType: **[REQUIRED]** 

    The model type.

    

  
  :type modelVersionNumber: string
  :param modelVersionNumber: **[REQUIRED]** 

    The model version number.

    

  
  :type status: string
  :param status: **[REQUIRED]** 

    The model version status.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`FraudDetector.Client.exceptions.ValidationException`

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

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

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

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

  
  *   :py:class:`FraudDetector.Client.exceptions.ConflictException`

  