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.getPersonalizedRanking(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
-
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
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. 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