<https://github.com/pulumi/pulumi-aws-serverless/blob/f945b2e88f67bda13fc2af3a3d8e384fe164e2a6/nodej...
l
https://github.com/pulumi/pulumi-aws-serverless/blob/f945b2e88f67bda13fc2af3a3d8e384fe164e2a6/nodejs/aws-serverless/examples/api/index.ts#L47-L57 then shows how to create an AWS API and have it trigger that same lambda in response to a specific query.