Add support for using read-only streams with AWS APIs #1898
Labels
feature-request
A feature should be added or improved.
needs-triage
This issue or PR still needs to be triaged.
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 typeStream
. I have an object that conforms toReadableStream
which I want to upload to S3, which I cannot currently do without conforming myReadableStream
-conforming object toWriteableStream
.Proposed Solution
I've outlined a few options:
ByteStream.stream
enumeration case's associated value's type to be ofReadableStream
instead ofStream
and renameByteStream
toReadableByteStream
ByteStream
,readableStream
ReadableByteStream
, which has similar enumeration cases toByteStream
, but stores aReadableStream
as the associated value of thestream
caseOther Information
No response
Acknowledgements
The text was updated successfully, but these errors were encountered: