I have used this documentation to Invoke the Lambda Plugin and everything works fine so far.
However, I need to invoke the lambda function conditionally based on certain criteria, Is that possible? I know I can put the logic in the lambda function itself but the requirement is to avoid the call conditionally to lambda function to reduce the latency.