:doc:`CustomerProfiles <../../customer-profiles>` / Client / update_recommender

******************
update_recommender
******************



.. py:method:: CustomerProfiles.Client.update_recommender(**kwargs)

  

  Updates the properties of an existing recommender, allowing you to modify its configuration and description.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/customer-profiles-2020-08-15/UpdateRecommender>`_  


  **Request Syntax**
  ::

    response = client.update_recommender(
        DomainName='string',
        RecommenderName='string',
        Description='string',
        RecommenderConfig={
            'EventsConfig': {
                'EventParametersList': [
                    {
                        'EventType': 'string',
                        'EventValueThreshold': 123.0
                    },
                ]
            },
            'TrainingFrequency': 123
        }
    )
    
  :type DomainName: string
  :param DomainName: **[REQUIRED]** 

    The unique name of the domain.

    

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

    The name of the recommender to update.

    

  
  :type Description: string
  :param Description: 

    The new description to assign to the recommender.

    

  
  :type RecommenderConfig: dict
  :param RecommenderConfig: 

    The new configuration settings to apply to the recommender, including updated parameters and settings that define its behavior.

    

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

      Configuration settings for how the recommender processes and uses events.

      

    
      - **EventParametersList** *(list) --* **[REQUIRED]** 

        A list of event parameters configurations that specify how different event types should be handled.

        

      
        - *(dict) --* 

          Configuration parameters for events in the personalization system.

          

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

            The type of event being tracked (e.g., 'click', 'purchase', 'view').

            

          
          - **EventValueThreshold** *(float) --* 

            The minimum value threshold that an event must meet to be considered valid.

            

          
        
    
    
    - **TrainingFrequency** *(integer) --* 

      How often the recommender should retrain its model with new data.

      

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

    
    ::

      {
          'RecommenderName': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **RecommenderName** *(string) --* 

        The name of the recommender that was updated.

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

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

  
  *   :py:class:`CustomerProfiles.Client.exceptions.BadRequestException`

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

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

  