Skip to content
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

what to put as a config? #6097

Closed
dhavalpacewisdom opened this issue May 15, 2024 · 3 comments
Closed

what to put as a config? #6097

dhavalpacewisdom opened this issue May 15, 2024 · 3 comments
Assignees
Labels
closed-for-staleness documentation This is a problem with documentation. guidance General information and guidance, answers to FAQs, or recommended best practices/resources. p3 This is a minor priority issue response-requested Waiting on additional info and feedback. Will move to \"closing-soon\" in 7 days.

Comments

@dhavalpacewisdom
Copy link

Describe the issue

const client = new PersonalizeEventsClient(config);
In the above line, could you mention what to put as a config?

Links

https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/personalize-events/command/PutEventsCommand/

@dhavalpacewisdom dhavalpacewisdom added documentation This is a problem with documentation. needs-triage This issue or PR still needs to be triaged. labels May 15, 2024
@aBurmeseDev aBurmeseDev self-assigned this May 15, 2024
@aBurmeseDev aBurmeseDev removed the needs-triage This issue or PR still needs to be triaged. label May 15, 2024
@aBurmeseDev
Copy link
Member

Hi @dhavalpacewisdom - thanks for reaching out.

For service-level configuration, you can pass in objects like region or credentials which you'll have significant control over your default local configuration. If those configurations aren't defined, SDK will use your local config.

For example:
const client = new PersonalizeEventsClient({ region: 'us-east-1', credentials: {...} });
or if you have credentials configured locally, you can run it like
const client = new PersonalizeEventsClient();

You can read more about it here: https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/global-config-object.html

Hope it helps,
John

@aBurmeseDev aBurmeseDev added guidance General information and guidance, answers to FAQs, or recommended best practices/resources. p3 This is a minor priority issue response-requested Waiting on additional info and feedback. Will move to \"closing-soon\" in 7 days. labels May 15, 2024
Copy link

This issue has not received a response in 1 week. If you still think there is a problem, please leave a comment to avoid the issue from automatically closing.

@github-actions github-actions bot added closing-soon This issue will automatically close in 4 days unless further comments are made. closed-for-staleness and removed closing-soon This issue will automatically close in 4 days unless further comments are made. labels May 26, 2024
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
closed-for-staleness documentation This is a problem with documentation. guidance General information and guidance, answers to FAQs, or recommended best practices/resources. p3 This is a minor priority issue response-requested Waiting on additional info and feedback. Will move to \"closing-soon\" in 7 days.
Projects
None yet
Development

No branches or pull requests

2 participants