this is piece of your own code that executes every time it is triggered by an event.
This function can be written in different programming languages. Refer Here for the specific versions of the runtimes
Node js
Python
Ruby
Java
Go
C#
Powershell
Anatomy of Lambda function
Handler function: This is entry point for all Lambda functions. Whenever the function executes, the service calls the handler function and passes in some event data and useful objects