Open
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.stream
enumeration case's associated value's type to be ofReadableStream
instead ofStream
and renameByteStream
toReadableByteStream
- Add a new enumeration case to
ByteStream
,readableStream
- Add a new type,
ReadableByteStream
, which has similar enumeration cases toByteStream
, but stores aReadableStream
as the associated value of thestream
case
Other Information
No response
Acknowledgements
- I may be able to implement this feature request
- This feature might incur a breaking change