:doc:`LookoutEquipment <../../lookoutequipment>` / Client / update_active_model_version

***************************
update_active_model_version
***************************



.. py:method:: LookoutEquipment.Client.update_active_model_version(**kwargs)

  

  Sets the active model version for a given machine learning model.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/lookoutequipment-2020-12-15/UpdateActiveModelVersion>`_  


  **Request Syntax**
  ::

    response = client.update_active_model_version(
        ModelName='string',
        ModelVersion=123
    )
    
  :type ModelName: string
  :param ModelName: **[REQUIRED]** 

    The name of the machine learning model for which the active model version is being set.

    

  
  :type ModelVersion: integer
  :param ModelVersion: **[REQUIRED]** 

    The version of the machine learning model for which the active model version is being set.

    

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

    
    ::

      {
          'ModelName': 'string',
          'ModelArn': 'string',
          'CurrentActiveVersion': 123,
          'PreviousActiveVersion': 123,
          'CurrentActiveVersionArn': 'string',
          'PreviousActiveVersionArn': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **ModelName** *(string) --* 

        The name of the machine learning model for which the active model version was set.

        
      

      - **ModelArn** *(string) --* 

        The Amazon Resource Name (ARN) of the machine learning model for which the active model version was set.

        
      

      - **CurrentActiveVersion** *(integer) --* 

        The version that is currently active of the machine learning model for which the active model version was set.

        
      

      - **PreviousActiveVersion** *(integer) --* 

        The previous version that was active of the machine learning model for which the active model version was set.

        
      

      - **CurrentActiveVersionArn** *(string) --* 

        The Amazon Resource Name (ARN) of the machine learning model version that is the current active model version.

        
      

      - **PreviousActiveVersionArn** *(string) --* 

        The Amazon Resource Name (ARN) of the machine learning model version that was the previous active model version.

        
  
  **Exceptions**
  
  *   :py:class:`LookoutEquipment.Client.exceptions.ValidationException`

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

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

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

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

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

  