The AWS Serverless Application Model (SAM) is an open-source framework for building serverless applications. It provides shorthand syntax to express functions, APIs, databases, and event source mappings. With just a few lines per resource, you can define the application you want and model it using YAML.
Microsoft azure functions,
AWS lambda API scripts
https://www.redhat.com/en/topics/cloud-native-apps/what-is-serverless