aws / aws-sdk-js-v3

Modularized AWS SDK for JavaScript.
Apache License 2.0
2.98k stars 560 forks source link

config is not defined #5944

Closed davidskingsley closed 3 months ago

davidskingsley commented 3 months ago

Describe the issue

Because the variable config on line 3 (const client = new CognitoIdentityProviderClient(config);) has no associated reference it is difficult to fully grasp the example. I appreciate it is most likely defined elsewhere but a link to the full code needs to be included with the example. AWS documentation is littered with examples that do not provide enough detail to be overly useful!

Links

https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-identity-provider/command/GetUserCommand/

aBurmeseDev commented 3 months ago

HI @davidskingsley - thanks for reaching out and sharing the feedback.

As every feedback is essential to our improvement process, I'll take note of your feedback to be considered in future updates.

I would like to share this doc around configuring the service that you might find it helpful.

There's also this page with code examples for different services but I understand that they might not be very specific.

If you have further questions around implementation, please let us know.

Best, John

github-actions[bot] commented 3 months ago

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[bot] commented 2 months ago

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.