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

******************
create_recommender
******************



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

  

  Creates a recommender

  

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


  **Request Syntax**
  ::

    response = client.create_recommender(
        DomainName='string',
        RecommenderName='string',
        RecommenderRecipeName='recommended-for-you'|'similar-items'|'frequently-paired-items'|'popular-items'|'trending-now',
        RecommenderConfig={
            'EventsConfig': {
                'EventParametersList': [
                    {
                        'EventType': 'string',
                        'EventValueThreshold': 123.0
                    },
                ]
            },
            'TrainingFrequency': 123
        },
        Description='string',
        Tags={
            'string': 'string'
        }
    )
    
  :type DomainName: string
  :param DomainName: **[REQUIRED]** 

    The unique name of the domain.

    

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

    The name of the recommender.

    

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

    The name of the recommeder recipe.

    

  
  :type RecommenderConfig: dict
  :param RecommenderConfig: 

    The recommender configuration.

    

  
    - **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.

      

    
  
  :type Description: string
  :param Description: 

    The description of the domain object type.

    

  
  :type Tags: dict
  :param Tags: 

    The tags used to organize, track, or control access for this resource.

    

  
    - *(string) --* 

    
      - *(string) --* 

      


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

    
    ::

      {
          'RecommenderArn': 'string',
          'Tags': {
              'string': 'string'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **RecommenderArn** *(string) --* 

        The ARN of the recommender

        
      

      - **Tags** *(dict) --* 

        The tags used to organize, track, or control access for this resource.

        
        

        - *(string) --* 
          

          - *(string) --* 
    
  
  
  **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`

  