I'm new to AWS and here is the task I'm trying to solve. SQS queue is set up and from time to time new messages are coming to it. I want to set up Lambda and retrieve those messages and perform some business logic on the content of that messages.
Searching across AWS site and Internet in general I understood that SQS itself can't be a trigger for Lambda, hence I need to set up Cloud Watch that will trigger Lambda by schedule (every minute for example). Here is code example from aws github how to consume a message.
So far so good. Now, when creating Lambda itself, I need to specify the input type to implement RequestHandler interface:
public interface RequestHandler<I, O> { O handleRequest(I var1, Context var2); }
But if my Lambda is not expecting any input, it will go to SQS on its own and pull the messages does it make any sense to have input? Can I leave it void or even use some other method signature at all (of course not implementing that interface in this case)?