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(smithy-typescript-codegen): allow deferred resolution for api key config #588

Merged

Conversation

eduardomourar
Copy link
Contributor

@eduardomourar eduardomourar commented Sep 13, 2022

Issue #, if available: N/A

Description of changes:

In order to defer resolving the API Key configuration to when we actually make the API call, we need to allow a function to be passed in the apiKey property. Now that we are importing the library @aws-sdk/util-middleware as part of the API Key middleware, we included it explicitly as a dependency to our generated project.

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

@eduardomourar eduardomourar requested a review from a team as a code owner September 13, 2022 13:18
@eduardomourar eduardomourar changed the title fix(smithy-typescript-codegen): missing util-middleware dependency feat(smithy-typescript-codegen): allow delayed resolution for api key config Sep 30, 2022
@eduardomourar eduardomourar changed the title feat(smithy-typescript-codegen): allow delayed resolution for api key config feat(smithy-typescript-codegen): allow deferred resolution for api key config Sep 30, 2022
Copy link
Contributor

@gosar gosar left a comment

Choose a reason for hiding this comment

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

LG pending minor documentation comment

@eduardomourar
Copy link
Contributor Author

@gosar and @kuhe, thank you for approving this. Can this be merged, please?

@eduardomourar eduardomourar force-pushed the fix/dependency-api-key-middleware branch from c00e4a0 to 5147e54 Compare October 27, 2022 14:41
@kuhe kuhe merged commit 50867ab into smithy-lang:main Nov 11, 2022
milesziemer pushed a commit to milesziemer/smithy-typescript that referenced this pull request Dec 14, 2022
…y config (smithy-lang#588)

Co-authored-by: Eduardo Rodrigues <eduardomourar@users.noreply.github.com>
srchase pushed a commit to srchase/smithy-typescript that referenced this pull request Mar 17, 2023
…y config (smithy-lang#588)

Co-authored-by: Eduardo Rodrigues <eduardomourar@users.noreply.github.com>
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.

None yet

3 participants