[{"data":1,"prerenderedAt":63},["ShallowReactive",2],{"pattern-apigw-lambda-validator":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":12,"deploy":14,"description":17,"extension":18,"framework":19,"gitHub":20,"highlight":6,"introBox":26,"language":30,"level":31,"meta":32,"patternArch":33,"resources":47,"s3URL":56,"services":6,"stem":57,"testing":58,"videoId":6,"__hash__":62},"patterns\u002Fpatterns\u002Fapigw-lambda-validator.json","Amazon API Gateway REST API to AWS Lambda",null,{"headline":8,"text":9},"Cleanup",[10,11],"1. Delete the stack: \u003Ccode>sam delete --stack-name STACK_NAME\u003C\u002Fcode>.","2. Confirm the stack has been deleted: \u003Ccode>aws cloudformation list-stacks --query \"StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus\"\u003C\u002Fcode>",[13],"content\u002Fcontributors\u002Fsudheer-yalamanchili.json",{"text":15},[16],"sam deploy --guided","Create an Amazon API Gateway REST API with request validation.","json","AWS SAM",{"template":21},{"projectFolder":22,"repoURL":23,"templateURL":24,"templateFile":25},"apigw-lambda-request-validator","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fapigw-lambda-request-validator","serverless-patterns\u002Fapigw-lambda-request-validator","template.yaml",{"headline":27,"text":28},"How it works",[29],"This pattern deploys an Amazon API Gateway REST API with a request validator and a default route integrated with an AWS Lambda function written in Node.js. The request validator is used to validate query string, header and request body passed on each REST API call. The lambda function returns a basic response when all validations are passed and when any validation fails API will return a response.","Node.js","100",{},{"icon1":34,"icon2":39,"line1":43},{"x":35,"y":36,"service":37,"label":38},20,50,"apigw","API Gateway HTTP API",{"x":40,"y":36,"service":41,"label":42},80,"lambda","AWS Lambda",{"from":44,"to":45,"label":46},"icon1","icon2","Validated request",{"headline":48,"bullets":49},"Additional resources",[50,53],{"text":51,"link":52},"Enable request validation in API Gateway","https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Fapi-gateway-method-request-validation.html",{"text":54,"link":55},"Lambda Function Handler","https:\u002F\u002Fdocs.aws.amazon.com\u002Fwhitepapers\u002Flatest\u002Fserverless-architectures-lambda\u002Fthe-handler.html","https:\u002F\u002Fda-public-assets.s3.amazonaws.com\u002Fpatterns\u002Fapigw-lambda-validator\u002Fcloudformation.yml","patterns\u002Fapigw-lambda-validator",{"headline":59,"text":60},"Testing",[61],"See the repo for testing instructions.","PQkG2S40-2_asYhIdcZ5W-qv4bn1GXIQTu4qARX8NsY",1779273332819]