[{"data":1,"prerenderedAt":62},["ShallowReactive",2],{"pattern-apigw-lambda-comprehend-sam":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":13,"description":16,"extension":17,"framework":18,"gitHub":19,"highlight":6,"introBox":25,"language":30,"level":31,"meta":32,"patternArch":33,"resources":52,"s3URL":6,"services":6,"stem":57,"testing":58,"videoId":6,"__hash__":61},"patterns\u002Fpatterns\u002Fapigw-lambda-comprehend-sam.json","AWS Lambda to Amazon Comprehend using REST API",null,{"text":8},[9],"Delete the stack: \u003Ccode>sam delete\u003C\u002Fcode>.",[11,12],"content\u002Fcontributors\u002Fpascal-vogel.json","content\u002Fcontributors\u002Fdiana-cheng.json",{"text":14},[15],"sam deploy --guided","REST API backed by a Lambda function that invokes the Comprehend DetectSentiment API.","json","AWS SAM",{"template":20},{"repoURL":21,"templateURL":22,"projectFolder":23,"templateFile":24},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fapigw-lambda-comprehend-sam","serverless-patterns\u002Fapigw-lambda-comprehend-sam","apigw-lambda-comprehend-sam","template.yaml",{"headline":26,"text":27},"How it works",[28,29],"This sample project deploys an Amazon API Gateway REST API with an AWS Lambda integration.","The Lambda function is written in Python, calls the Amazon Comprehend DetectSentiment API, and returns a response containing the detected sentiment.","Python","100",{},{"icon1":34,"icon2":39,"icon3":42,"line1":46,"line2":50},{"x":35,"y":36,"service":37,"label":38},20,50,"apigw","Amazon API Gateway",{"x":36,"y":36,"service":40,"label":41},"lambda","AWS Lambda",{"x":43,"y":36,"service":44,"label":45},80,"comprehend","Amazon Comprehend",{"from":47,"to":48,"label":49},"icon1","icon2","",{"from":48,"to":51,"label":49},"icon3",{"bullets":53},[54],{"text":55,"link":56},"Lambda to Comprehend - Serverless Pattern","https:\u002F\u002Fserverlessland.com\u002Fpatterns\u002Flambda-comprehend","patterns\u002Fapigw-lambda-comprehend-sam",{"text":59},[60],"See the GitHub repo for detailed testing instructions.","2Ntj6yyM-yKNHj71eT0957Zs3z6rhVUa4FIgv7S24T8",1778846882163]