AWS Lambda is a serverless compute service that lets you run code without provisioning or managing servers, creating workload-aware cluster scaling logic, maintaining event integrations, or managing runtimes.
Go to the connectors tab of your account.
And create a new connector. Choose AWS lambda as type (you may add the additional
Authorization parameter as stated in the beginning of this doc.)
Click on save to save the connector.
Visit the alert source (view) whose incidents should trigger your serverless function. Navigate to the Incident actions tab and click on the Create new incident action button.
Choose AWS lambda as type and select your previously created connector. Enter a name and the url targeting your public function. You may also customize the HTTP request body that is used to invoke your function.
Click on save to create the incident action, you may test the incident action in the following screen.