Skip to content
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

Kinesis Stream type-safe Integration class #59

Open
sam-goodwin opened this issue Mar 30, 2022 · 0 comments
Open

Kinesis Stream type-safe Integration class #59

sam-goodwin opened this issue Mar 30, 2022 · 0 comments
Assignees
Labels
Projects

Comments

@sam-goodwin
Copy link
Collaborator

Provide a wrapper class, Stream<T>, that models the Kinesis Stream Functionless integrations.

Must integrates with the following:

  1. AppSync
const stream = new Stream<string>(new aws_sqs.Stream(..))

new AppsyncResolver<{id: string}>($context => {
  stream.putRecord({
    Data: id,
    PartitionKey: id
  });
});
  1. Step Functions
new StepFunction(scope, id, (id: string) => {
  stream.sendMessage({
    Data: id,
    PartitionKey: id
  })
})
  1. Event Bridge
bus
  .when(scope, "rule", event => event.source === "lambda")
  .map(event => event.record)
  .pipe(stream)
@sam-goodwin sam-goodwin added this to To do in Release May 20, 2022
@sam-goodwin sam-goodwin self-assigned this May 28, 2022
@sam-goodwin sam-goodwin changed the title Kinesis Stream type-safe Functionless wrapper class Kinesis Stream type-safe Integration class Jun 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Release
To do
Development

No branches or pull requests

2 participants