PersonalizeRuntime
import { PersonalizeRuntime } from "https://aws-api.deno.dev/v0.2/services/personalizeruntime.ts?docs=full";
class PersonalizeRuntime { }
constructor(apiFactory: client.ApiFactory);
async getPersonalizedRanking(params: GetPersonalizedRankingRequest, opts?: client.RequestOptions): Promise<GetPersonalizedRankingResponse>;
async getRecommendations(params: GetRecommendationsRequest, opts?: client.RequestOptions): Promise<GetRecommendationsResponse>;
§Constructors
§
new PersonalizeRuntime(apiFactory: client.ApiFactory)
[src]§Methods
§
getPersonalizedRanking(params: GetPersonalizedRankingRequest, opts?: client.RequestOptions): Promise<GetPersonalizedRankingResponse>
[src]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.
Note: The solution backing the campaign must have been created using a recipe of type PERSONALIZED_RANKING.
§
getRecommendations(params: GetRecommendationsRequest, opts?: client.RequestOptions): Promise<GetRecommendationsResponse>
[src]Returns a list of recommended items. The required input depends on the recipe type used to create the solution backing the campaign, as follows:
- RELATED_ITEMS -
itemId
required,userId
not used - USER_PERSONALIZATION -
itemId
optional,userId
required
Note: Campaigns that are backed by a solution created using a recipe of type PERSONALIZED_RANKING use the API.
§Static Properties
§
ApiMetadata: client.ApiMetadata
[src]