Impossible to generate clients for non-aws services due to dependency on aws.api#Service trait #2522
Closed
1 of 2 tasks
Labels
feature-request
A feature should be added or improved.
Describe the feature
Looks like the only way to generate go smithy clients is to build both projects source - codegen: Move protocol generators out of aws-sdk-go-v2 into smithy-go:
However, it's not possible to generate basic http clients without modifying source of aws-sdk-go-v2. The reason for that is that most
GoIntegration
s specific to AWS residing inaws-sdk-go-v2
do something similar to lines below:This causes the code generation to fail if the service isn't annotated with aws.api#Service.
Relevant parts of the stacktrace showing the problem:
Use Case
Trying to generate go clients using smithy for non-aws services.
Proposed Solution
Would it be possible to first check if a service has the
aws.api#Service
trait and if it doesn't then skip applying the integration? This is how I've seen other aws smithy repos do it. Of course I'd prefer to just usesmithy-go
but this seems to be blocked/not prioritized.,Other Information
No response
Acknowledgements
AWS Go SDK V2 Module Versions Used
2024-02-28 release
Go version used
1.20
The text was updated successfully, but these errors were encountered: