chore: generate client name according to sdkId #2536
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue
Right now all SDK clients are generated with name specified in
aws-models
folder. Even though model file names are generated from the model'ssdkId
, mistakenly renaming these model files could result in generating new clients.Instead clients shuold be generated irrelavant of the file name. This change generates the package name from the model directly. It has also been fixed in Go v2 SDK.
This change also:
-n
option togenerate-clients
script to disable generating protocol tests. It eliminating protocol test clients generation when developer wants to generate a single model.3.0.0
, previously it was1.0.0-rc.1
Description
What does this implement/fix? Explain your changes.
Testing
How was this change tested?
Additional context
Add any other context about the PR here.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.