The AWS Lambda API is provided by the Lambda service which is used by all clients and services that invoke Lambda functions. When you invoke a function, you can choose to invoke it synchronously or asynchronously. You can pass any event payload structure, making it extremely flexible.