Skip to content

Conversation

@aajtodd
Copy link
Contributor

@aajtodd aajtodd commented Sep 2, 2022

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_1 protocol. 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.

@github-actions
Copy link

github-actions bot commented Sep 2, 2022

A new generated diff is ready to view: __generated-main...__generated-feat-event-streams2

@github-actions
Copy link

github-actions bot commented Sep 7, 2022

A new generated diff is ready to view: __generated-main...__generated-feat-event-streams2

@aajtodd aajtodd marked this pull request as ready for review September 7, 2022 18:34
@aajtodd aajtodd requested a review from a team as a code owner September 7, 2022 18:34
Comment on lines 61 to 62
// simulate async nature of this
// delay(1000)
Copy link
Contributor

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")
Copy link
Contributor

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")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Remove println.

@aajtodd aajtodd force-pushed the feat-event-streams2 branch from 8eb18ac to 1612b0a Compare September 13, 2022 22:34
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@github-actions
Copy link

A new generated diff is ready to view: __generated-main...__generated-feat-event-streams2

@aajtodd aajtodd merged commit 83a9703 into main Sep 19, 2022
@aajtodd aajtodd deleted the feat-event-streams2 branch September 19, 2022 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Event Stream Support

3 participants