Skip to content

Add support for using read-only streams with AWS APIs #1898

Open
@itspolly

Description

@itspolly

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 of ReadableStream instead of Stream and rename ByteStream to ReadableByteStream
  • Add a new enumeration case to ByteStream, readableStream
  • Add a new type, ReadableByteStream, which has similar enumeration cases to ByteStream, but stores a ReadableStream as the associated value of the stream case

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestA feature should be added or improved.needs-triageThis issue or PR still needs to be triaged.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions