I am using a Java lambda function to put a custom event to the AWS EventBridge. The target of this eventbridge is another Java lambda function. How to receive the Event in the target lambda function? I mean what is the input type in the handleRequest method I have to use? Tried using ScheduledEvent as an input type but it didn't work. Searched many EventBridge API documents but didn't get the details as how to receive the data in the Java lambda function from Eventbridge.
The below is an example for receiving the SQS Event. In the same way what type I should use for the events triggered from EventBridge?
@Override
public String handleRequest(SQSEvent event, Context context)