I believe what you are trying to achieve is not how lambda functions work. I shall point you to these resources: