How can we use FunctionInvoker of springcloud aws to invoke localstack lambda and listen for any S3 events

Hi, I have gone through Spring Cloud Function | Docs and its still not clear on How to setup a Function invoker in lambda localstack.

Normally, in aws console we upload the JAR on the lambda function to listen for any events but in localstack how do we achieve it ? can you please detail this in article and mention here with any Java example. Thanks in advance