- Notifications
You must be signed in to change notification settings - Fork 5.8k
Add Amazon Personalize examples and tests to JavaScript v3 example code #2973
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Editorial comments
| import { PutUsersCommand } from | ||
| "@aws-sdk/client-personalize-events"; | ||
| import { personalizeEventsClient } from "./libs/personalizeClients.js"; | ||
| // or create the client here |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or, create the client here.
| // or create the client here | ||
| // const personalizeEventsClient = new PersonalizeEventsClient({ region: "REGION"}); | ||
| | ||
| // set the put users parameters. For string properties and values, use the \ character to escape quotes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Capitalize "Set"
| // or create the client here | ||
| // const personalizeEventsClient = new PersonalizeEventsClient({ region: "REGION"}); | ||
| | ||
| // set the put users parameters. For string properties and values, use the \ character to escape quotes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Capitalize "Set"
| | ||
| Purpose: | ||
| putUsers.js demonstrates how to incrementally import a user into an Amazon Personalize dataset. | ||
| See https://docs.aws.amazon.com/personalize/latest/dg/API_UBS_PutUsers.html |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For more information, see https://docs.aws.amazon.com/personalize/latest/dg/API_UBS_PutUsers.html.
javascriptv3/example_code/personalize/src/personalize_putUsers.js Outdated Show resolved Hide resolved
| cd javascriptv3/example_code/personalize/src | ||
| npm install | ||
| ``` | ||
| 3. In your text editor, update user variables specified in the ```Inputs``` section of the sample file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"update user variables" --> "update the user variables"
| ``` | ||
| 3. In your text editor, update user variables specified in the ```Inputs``` section of the sample file. | ||
| | ||
| 4. Run sample code: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Run the following sample code:
| ``` | ||
| | ||
| ## Unit tests | ||
| For more information see, the [README](../README.rst). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"For more information see, the" --> "For more information, see the"
| ``` | ||
| | ||
| ## Unit tests | ||
| For more information see, the [README](../README.rst). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"For more information see, the" --> "For more information, see the"
| For more information see, the [README](../README.rst). | ||
| | ||
| ## Resources | ||
| - [AWS SDK for JavaScript v3 repo](https://github.com/aws/aws-sdk-js-v3) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
put v3 in parentheses: "AWS SDK for JavaScript (v3) repo"
Merge branch 'master' of github.com:seashman/aws-doc-sdk-examples
| Recreated in #3247 |
aws-doc-sdk-examples Pull Request
Thank you for making a submission to the aws-doc-sdk-examples repository. For more information about submitting pull requests to this repository, see Guidelines for contributing.
NOTE: This PR template contains three sections. Depending on the reason for your pull request, please fill out the section that applies to you and then remove the other two sections.
New SDK Code Example
The submitter has:
Existing Example Update
The submitter has:
Resolve Issue
Issue #
Description of Changes
Add Amazon Personalize examples, tests, and README.md to JavaScript v3 example code.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.