Remove namespace around service models #1458
Labels
affects-docs
Things that will require changes to the SDK documentation.
feature-request
A feature should be added or improved.
needs-investigation
Describe the feature
Right now, generated service models (other than input & output models and modeled errors) are namespaced under an enum named
...ClientTypes
, i.e.S3ClientTypes.AccessControlPolicy
. This namespacing creates extra boilerplate in customer code, complicates IDE autocomplete, and generally makes for a worse user experience.Eliminate this namespace and let models exist in the service's root namespace along with the client. Be sure to code-generate all AWS services to help identify name collisions.
Some non-model types in the service (i.e. those associated with configuration, endpoints, identity & auth, waiters, paginators, etc.) may have to be renamed or placed into a namespace (i.e. under the client) to deconflict model names from others in the service module.
Use Case
To create a better, easier user experience for customers.
Proposed Solution
Eliminate namespace as suggested above.
Other Information
No response
Acknowledgements
The text was updated successfully, but these errors were encountered: