logo
pub trait PersonalizeRuntime {
    fn get_personalized_ranking<'life0, 'async_trait>(
        &'life0 self,
        input: GetPersonalizedRankingRequest
    ) -> Pin<Box<dyn Future<Output = Result<GetPersonalizedRankingResponse, RusotoError<GetPersonalizedRankingError>>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn get_recommendations<'life0, 'async_trait>(
        &'life0 self,
        input: GetRecommendationsRequest
    ) -> Pin<Box<dyn Future<Output = Result<GetRecommendationsResponse, RusotoError<GetRecommendationsError>>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

Trait representing the capabilities of the Amazon Personalize Runtime API. Amazon Personalize Runtime clients implement this trait.

Required Methods

Re-ranks a list of recommended items for the given user. The first item in the list is deemed the most likely item to be of interest to the user.

The solution backing the campaign must have been created using a recipe of type PERSONALIZED_RANKING.

Returns a list of recommended items. The required input depends on the recipe type used to create the solution backing the campaign, as follows:

  • RELATEDITEMS - itemId required, userId not used

  • USERPERSONALIZATION - itemId optional, userId required

Campaigns that are backed by a solution created using a recipe of type PERSONALIZED_RANKING use the API.

Implementors