-
Notifications
You must be signed in to change notification settings - Fork 55
feat: add event stream support #692
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
A new generated diff is ready to view: __generated-main...__generated-feat-event-streams2 |
d78ebd0 to
8eb18ac
Compare
|
A new generated diff is ready to view: __generated-main...__generated-feat-event-streams2 |
| // simulate async nature of this | ||
| // delay(1000) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question: Is there value in keeping this around? Or can it be deleted?
| }, | ||
| ) | ||
|
|
||
| println("emitting event") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Remove println.
| is TranscriptResultStream.TranscriptEvent -> { | ||
| event.value.transcript?.results?.forEach { result -> | ||
| val transcript = result.alternatives?.firstOrNull()?.transcript | ||
| println("received TranscriptEvent: isPartial=${result.isPartial}; transcript=$transcript") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Remove println.
8eb18ac to
1612b0a
Compare
|
Kudos, SonarCloud Quality Gate passed!
|
|
A new generated diff is ready to view: __generated-main...__generated-feat-event-streams2 |








Issue #
closes #543
Description of changes
Enable event stream operations on all rest protocols. There are only 5 operations today across AWS services that target event streams:
This PR enables support for all but Kinesis which targets the
awsJson1_1protocol. This will require additional follow on work to enable support for RPC based initial event stream request/responses (see #693)By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.