AWS Lamdba Invoke Conditionally

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.

Hello Kong Nation experts,

Let me know if we can combine both Lambda plugin and route by header plugin to conditionally invoke Lambda function?

Question - I see plus for this . Does it mean it will not work with OSS ?

Is there an option to dynamically enable/disable the plugin based on a condition ?

enabled boolean Whether or not the plugin is enabled.