-
Notifications
You must be signed in to change notification settings - Fork 75
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
[FEATURE] Generate aws-sdk style client #687
Comments
Thanks for raising this Cyprian! We'd definitely like to build in better support for Smithy generated libraries (the existing runtimes/libraries etc are all generated from the OpenAPI projection for Smithy). As you mentioned it is a bit of extra effort, but it is possible to get Smithy generators working and the generated code hooked up with the monorepo. I put together an example of this a little while ago here: https:/cogwirrel/tsapi-smithy-client-example/ - it's pretty old but the same method should still work, essentially:
The workaround is a bit cumbersome though and it'd be awesome if Type Safe API could configure everything for you. To take it a step further it would be great if it could generate handler stubs which utilise the Smithy TS-SSDK instead of the Type Safe API handlers if users prefer. I'm not sure when we'll be able to pick this up but it's certainly something we'd like to incorporate into Type Safe API! |
Describe the feature
AWS SDK v3 client follows a pattern of Command/Input/Output. I can generate this type of client when I add this into
type_safe_api.TypeSafeApiProject
config:This config generates a client package in
api/model/build/smithyprojections/<packageName>/ts-client/typescript-codegen
but pdk/projen/nx do not see it, so it requires additional effort to publish this code to npm.I'd like pdk to generate this code into
api/generated
similar togenerated/runtime/typescript
with all required projen configsUse Case
It would be more consistent with existing AWS SDK to have client generated by smithy typescript generator.
Proposed Solution
No response
Other Information
No response
Acknowledgements
PDK version used
0.22.49
What languages will this feature affect?
No response
Environment details (OS name and version, etc.)
macOS
The text was updated successfully, but these errors were encountered: