[{"data":1,"prerenderedAt":57},["ShallowReactive",2],{"pattern-apigw-mappingtemplate-lambda-nodejs":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":12,"description":15,"extension":16,"framework":17,"gitHub":18,"highlight":6,"introBox":24,"language":29,"level":30,"meta":31,"patternArch":32,"resources":46,"s3URL":6,"services":6,"stem":51,"testing":52,"videoId":6,"__hash__":56},"patterns\u002Fpatterns\u002Fapigw-mappingtemplate-lambda-nodejs.json","Amazon API Gateway Regional API with mapping template to AWS Lambda",null,{"text":8},[9],"Delete the stack: \u003Ccode>sam delete\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Falice-goumain.json",{"text":13},[14],"sam deploy","Create a Regional REST API with a mapping template in the integration request to pass to the lambda function.","json","AWS SAM",{"template":19},{"repoURL":20,"templateURL":21,"projectFolder":22,"templateFile":23},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fapigw-mappingtemplate-lambda-nodejs","serverless-patterns\u002Fapigw-mappingtemplate-lambda-nodejs","apigw-mappingtemplate-lambda-nodejs","template.yaml",{"headline":25,"text":26},"How it works",[27,28],"This SAM template creates a regional REST API with a mapping template in the integration request to pass to the Lambda function.","The AWS Lambda function is written in Node.js 18. The function returns a small message and a status code to the caller.","Node.js","200",{},{"icon1":33,"icon2":38,"line1":42},{"x":34,"y":35,"service":36,"label":37},20,50,"apigw","API Gateway",{"x":39,"y":35,"service":40,"label":41},80,"lambda","AWS Lambda",{"from":43,"to":44,"label":45},"icon1","icon2","",{"bullets":47},[48],{"text":49,"link":50},"Working with models and mapping templates","https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Fmodels-mappings.html","patterns\u002Fapigw-mappingtemplate-lambda-nodejs",{"text":53},[54,55],"Once the application is deployed, retrieve the API URL and open it in a browser page.","You can also make the request from Postman or from a terminal using the curl command.","OCAsAoi0Wsu8igG2En5p05jguv0mrBnjzgjrUFlNyZ0",1778846882488]