Class: AWS.PersonalizeEvents
- Inherits:
-
AWS.Service
- Object
- AWS.Service
- AWS.PersonalizeEvents
- Identifier:
- personalizeevents
- API Version:
- 2018-03-22
- Defined in:
- (unknown)
Overview
Constructs a service interface object. Each API operation is exposed as a function on service.
Service Description
Amazon Personalize can consume real-time user event data, such as stream or click data, and use it for model training either alone or combined with historical data. For more information see Recording Events.
Sending a Request Using PersonalizeEvents
var personalizeevents = new AWS.PersonalizeEvents();
personalizeevents.putEvents(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 PersonalizeEvents object uses this specific API, you can
construct the object by passing the apiVersion
option to the constructor:
var personalizeevents = new AWS.PersonalizeEvents({apiVersion: '2018-03-22'});
You can also set the API version globally in AWS.config.apiVersions
using
the personalizeevents service identifier:
AWS.config.apiVersions = {
personalizeevents: '2018-03-22',
// other service API versions
};
var personalizeevents = new AWS.PersonalizeEvents();
Constructor Summary collapse
-
new AWS.PersonalizeEvents(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
-
putEvents(params = {}, callback) ⇒ AWS.Request
Records user interaction event data.
-
putItems(params = {}, callback) ⇒ AWS.Request
Adds one or more items to an Items dataset.
-
putUsers(params = {}, callback) ⇒ AWS.Request
Adds one or more users to a Users dataset.
Methods inherited from AWS.Service
makeRequest, makeUnauthenticatedRequest, waitFor, setupRequestListeners, defineService
Constructor Details
new AWS.PersonalizeEvents(options = {}) ⇒ Object
Constructs a service object. This object has one method for each API operation.
Property Details
Method Details
putEvents(params = {}, callback) ⇒ AWS.Request
Records user interaction event data. For more information see Recording Events.
putItems(params = {}, callback) ⇒ AWS.Request
Adds one or more items to an Items dataset. For more information see Importing Items Incrementally.
putUsers(params = {}, callback) ⇒ AWS.Request
Adds one or more users to a Users dataset. For more information see Importing Users Incrementally.