-
Notifications
You must be signed in to change notification settings - Fork 95
Open
Labels
feature-requestA feature should be added or improved.A feature should be added or improved.needs-triageThis issue or PR still needs to be triaged.This issue or PR still needs to be triaged.
Description
Describe the feature
I'd like support for using read-only streams with AWS APIs.
Use Case
ByteStream in Smithy has a stream enumeration case with an associated value of type Stream. I have an object that conforms to ReadableStream which I want to upload to S3, which I cannot currently do without conforming my ReadableStream-conforming object to WriteableStream.
Proposed Solution
I've outlined a few options:
- Refactor the
ByteStream.streamenumeration case's associated value's type to be ofReadableStreaminstead ofStreamand renameByteStreamtoReadableByteStream - Add a new enumeration case to
ByteStream,readableStream - Add a new type,
ReadableByteStream, which has similar enumeration cases toByteStream, but stores aReadableStreamas the associated value of thestreamcase
Other Information
No response
Acknowledgements
- I may be able to implement this feature request
- This feature might incur a breaking change
Metadata
Metadata
Assignees
Labels
feature-requestA feature should be added or improved.A feature should be added or improved.needs-triageThis issue or PR still needs to be triaged.This issue or PR still needs to be triaged.