Class: AWS.PersonalizeRuntime
- Inherits:
-
AWS.Service
- Object
- AWS.Service
- AWS.PersonalizeRuntime
- Identifier:
- personalizeruntime
- API Version:
- 2018-05-22
- Defined in:
- (unknown)
Overview
Constructs a service interface object. Each API operation is exposed as a function on service.
Service Description
Sending a Request Using PersonalizeRuntime
var personalizeruntime = new AWS.PersonalizeRuntime();
personalizeruntime.getActionRecommendations(params, function (err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Locking the API Version
In order to ensure that the PersonalizeRuntime object uses this specific API, you can
construct the object by passing the apiVersion
option to the constructor:
var personalizeruntime = new AWS.PersonalizeRuntime({apiVersion: '2018-05-22'});
You can also set the API version globally in AWS.config.apiVersions
using
the personalizeruntime service identifier:
AWS.config.apiVersions = {
personalizeruntime: '2018-05-22',
// other service API versions
};
var personalizeruntime = new AWS.PersonalizeRuntime();
Constructor Summary collapse
-
new AWS.PersonalizeRuntime(options = {}) ⇒ Object
constructor
Constructs a service object.
Property Summary collapse
-
endpoint ⇒ AWS.Endpoint
readwrite
An Endpoint object representing the endpoint URL for service requests.
Properties inherited from AWS.Service
Method Summary collapse
-
getActionRecommendations(params = {}, callback) ⇒ AWS.Request
Returns a list of recommended actions in sorted in descending order by prediction score.
-
getPersonalizedRanking(params = {}, callback) ⇒ AWS.Request
Re-ranks a list of recommended items for the given user.
-
getRecommendations(params = {}, callback) ⇒ AWS.Request
Returns a list of recommended items.
Methods inherited from AWS.Service
makeRequest, makeUnauthenticatedRequest, waitFor, setupRequestListeners, defineService
Constructor Details
new AWS.PersonalizeRuntime(options = {}) ⇒ Object
Constructs a service object. This object has one method for each API operation.
Property Details
Method Details
getActionRecommendations(params = {}, callback) ⇒ AWS.Request
Returns a list of recommended actions in sorted in descending order by prediction score. Use the GetActionRecommendations
API if you have a custom campaign that deploys a solution version trained with a PERSONALIZED_ACTIONS recipe.
For more information about PERSONALIZED_ACTIONS recipes, see PERSONALIZED_ACTIONS recipes. For more information about getting action recommendations, see Getting action recommendations.
getPersonalizedRanking(params = {}, callback) ⇒ AWS.Request
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.
getRecommendations(params = {}, callback) ⇒ AWS.Request
Returns a list of recommended items. For campaigns, the campaign's Amazon Resource Name (ARN) is required and the required user and item input depends on the recipe type used to create the solution backing the campaign as follows:
-
USER_PERSONALIZATION -
userId
required,itemId
not used -
RELATED_ITEMS -
itemId
required,userId
not used
For recommenders, the recommender's ARN is required and the required item and user input depends on the use case (domain-based recipe) backing the recommender. For information on use case requirements see Choosing recommender use cases.