Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Amazon Personalize code examples for SDK for JavaScript (v3)

The code examples in this directory demonstrate how to work with Amazon Personalize using the AWS SDK for JavaScript version 3 (v3).

Amazon Personalize is a fully managed machine learning service that makes it easy for developers to deliver personalized experiences to their users.

Code examples

This directory contains the following SDK for JavaScript (v3) examples for Amazon Personalize:

Single action

Note: All code examples are written in ECMAscript 6 (ES6). For guidelines on converting to CommonJS, see JavaScript ES6/CommonJS syntax.

Important

  • Running this code might result in charges to your AWS account.
  • We recommend that you grant your code least privilege. At most, grant only the minimum permissions required to perform the task. For more information, see Grant least privilege in the AWS Identity and Access Management User Guide.
  • This code is not tested in every AWS Region. Some AWS services are available only in specific AWS Regions. For more information, see the AWS Regional Services.

Running the examples

Prerequisites

  1. Clone the AWS SDK Code Samples repo to your local environment. For instructions, see the the Github documentation.

  2. Install the dependencies listed in the package.json.

cd javascriptv3/example_code/personalize/src
npm install
  1. In your text editor, update the user variables specified in the Inputs section of the sample file.

  2. Run the following sample code:

cd src
node [example name].js

Resources