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

************
update_model
************



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

  

  Updates a model in the account.

  

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


  **Request Syntax**
  ::

    response = client.update_model(
        ModelName='string',
        LabelsInputConfiguration={
            'S3InputConfiguration': {
                'Bucket': 'string',
                'Prefix': 'string'
            },
            'LabelGroupName': 'string'
        },
        RoleArn='string',
        ModelDiagnosticsOutputConfiguration={
            'S3OutputConfiguration': {
                'Bucket': 'string',
                'Prefix': 'string'
            },
            'KmsKeyId': 'string'
        }
    )
    
  :type ModelName: string
  :param ModelName: **[REQUIRED]** 

    The name of the model to update.

    

  
  :type LabelsInputConfiguration: dict
  :param LabelsInputConfiguration: 

    Contains the configuration information for the S3 location being used to hold label data.

    

  
    - **S3InputConfiguration** *(dict) --* 

      Contains location information for the S3 location being used for label data.

      

    
      - **Bucket** *(string) --* **[REQUIRED]** 

        The name of the S3 bucket holding the label data.

        

      
      - **Prefix** *(string) --* 

        The prefix for the S3 bucket used for the label data.

        

      
    
    - **LabelGroupName** *(string) --* 

      The name of the label group to be used for label data.

      

    
  
  :type RoleArn: string
  :param RoleArn: 

    The ARN of the model to update.

    

  
  :type ModelDiagnosticsOutputConfiguration: dict
  :param ModelDiagnosticsOutputConfiguration: 

    The Amazon S3 location where you want Amazon Lookout for Equipment to save the pointwise model diagnostics for the model. You must also specify the ``RoleArn`` request parameter.

    

  
    - **S3OutputConfiguration** *(dict) --* **[REQUIRED]** 

      The Amazon S3 location for the pointwise model diagnostics.

      

    
      - **Bucket** *(string) --* **[REQUIRED]** 

        The name of the Amazon S3 bucket where the pointwise model diagnostics are located. You must be the owner of the Amazon S3 bucket.

        

      
      - **Prefix** *(string) --* 

        The Amazon S3 prefix for the location of the pointwise model diagnostics. The prefix specifies the folder and evaluation result file name. ( ``bucket``).

         

        When you call ``CreateModel`` or ``UpdateModel``, specify the path within the bucket that you want Lookout for Equipment to save the model to. During training, Lookout for Equipment creates the model evaluation model as a compressed JSON file with the name ``model_diagnostics_results.json.gz``.

         

        When you call ``DescribeModel`` or ``DescribeModelVersion``, ``prefix`` contains the file path and filename of the model evaluation file.

        

      
    
    - **KmsKeyId** *(string) --* 

      The Amazon Web Services Key Management Service (KMS) key identifier to encrypt the pointwise model diagnostics files.

      

    
  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`LookoutEquipment.Client.exceptions.ConflictException`

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

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

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

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

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

  