create a type alias for http payloads #4933
Labels
feature-request
New feature or enhancement. May require GitHub community feedback.
p2
This is a standard priority issue
queued
This issues is on the AWS team's backlog
Describe the feature
Currently payloads' runtime-acceptable type depends on the request handler implementation. To allow for multiple possible implementations we have a wide http payload type, e.g.
for PutObjectCommandInput.Body.
This is confusing for users, and more-so now that Node.js has made many previously browser-only types available.
Use Case
improve documentation ease of use for http payload types
Proposed Solution
Create a type alias for the union of blob types.
The type alias will have attached documentation describing when each of the union types is acceptable or preferred.
Similar to: https://github.com/aws/aws-sdk-js-v3/blob/main/packages/types/src/blob/blob-types.ts
Codegen the alias to operations with streaming body inputs so that the documentation is easy to access.
Other Information
No response
Acknowledgements
SDK version used
Environment details (OS name and version, etc.)
The text was updated successfully, but these errors were encountered: