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

feat(docs): add client config option reference #1517

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

aBurmeseDev
Copy link
Contributor

Issue #, if available:

Description of changes:

  • Add a comment with client config options to developer guide link in code example syntax for reference
  • // See AWS SDK config options: https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/configuring-the-jssdk.html

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@aBurmeseDev aBurmeseDev requested a review from a team as a code owner January 30, 2025 22:34
@@ -254,6 +254,7 @@ private String getCommandExample(String serviceName, String configName, String c
packageName)
+ String.format("// const { %s, %s } = require(\"%s\"); // CommonJS import%n", serviceName, commandName,
packageName)
+ "// See AWS SDK config options: https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/configuring-the-jssdk.html\n"
+ String.format("const client = new %s(config);%n", serviceName)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is smithy, we shouldn't link to AWS docs.

A preface block to the line containing the client init should be injectable by the downstream code generator. You can refer to the CodeSection interface usage in this repo on how to do that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants