feral
feral copied to clipboard
Support Scheduled Event
Hi 👋
Scheduled Event support was not yet available, so we created a pull request.
Please check when you are free.
Thanks!
Implementation Details
Create a model for Scheduled Event
Testing was performed using simple tests that can be set up on the AWS Management Console and the CloudWatch sample events described here.
We considered building a dedicated model for the detail property, but since it has a different type depending on the scheduled event and is defined as an Object in the Java implementation, we decided to make it have a value as a Circe JsonObject.
Issues
https://github.com/typelevel/feral/issues/48
References
- https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/aws-lambda/trigger/eventbridge.d.ts
- https://github.com/aws/aws-lambda-java-libs/blob/main/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/ScheduledEvent.java