[{"data":1,"prerenderedAt":80},["ShallowReactive",2],{"pattern-apigw-sns-filter-policy-lambda-sls-py":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":28,"level":29,"meta":30,"patternArch":31,"resources":56,"s3URL":6,"services":6,"stem":75,"testing":76,"videoId":6,"__hash__":79},"patterns\u002Fpatterns\u002Fapigw-sns-filter-policy-lambda-sls-py.json","REST API via Amazon API Gateway, acting as Amazon SNS proxy with Amazon SNS Filter Policy",null,{"text":8},[9],"Delete the stack: \u003Ccode>sls remove --verbose\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fbalasubrahmanya-balakrishna.json",{"text":13},[14],"sls deploy --verbose","REST API via API Gateway as an SNS proxy, triggering Lambda functions with MessageBody filtering.","json","Serverless Framework",{"template":19},{"repoURL":20,"templateURL":21,"projectFolder":22,"templateFile":23},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fapigw-sns-filter-policy-lambda-sls-py","serverless-patterns\u002Fapigw-sns-filter-policy-lambda-sls-py","apigw-sns-filter-policy-lambda-sls-py","serverless.yml",{"headline":25,"text":26},"How it works",[27],"This pattern leverages the Serverless Framework to deploy a REST API via Amazon API Gateway, functioning as an Amazon SNS proxy. It incorporates SNS Filter Policy for triggering Lambda functions based on MessageBody filters. Additionally, it enables CloudWatch Logs and X-Ray tracing for both API Gateway and Lambda through the Powertools for AWS Lambda developer toolkit.","Python","200",{},{"icon1":32,"icon2":37,"icon3":40,"icon4":45,"line1":47,"line2":51,"line3":54},{"x":33,"y":34,"service":35,"label":36},20,50,"apigw","Amazon API Gateway REST API",{"x":34,"y":34,"service":38,"label":39},"sns","Amazon SNS",{"x":41,"y":42,"service":43,"label":44},80,30,"lambda","AWS Lambda function",{"x":41,"y":46,"service":43,"label":44},70,{"from":48,"to":49,"label":50},"icon1","icon2","",{"from":49,"to":52,"label":53},"icon3","filter policy",{"from":49,"to":55,"label":53},"icon4",{"bullets":57},[58,61,64,66,69,72],{"text":59,"link":60},"AWS CLI","https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Fuserguide\u002Finstall-cliv2.html",{"text":62,"link":63},"Python 3","https:\u002F\u002Fwww.python.org\u002Fdownloads\u002F",{"text":17,"link":65},"https:\u002F\u002Fwww.serverless.com\u002Fframework\u002Fdocs",{"text":67,"link":68},"Serverless Framework Plugins","https:\u002F\u002Fwww.serverless.com\u002Fplugins",{"text":70,"link":71},"Powertools for AWS Lambda (Python)","https:\u002F\u002Fdocs.powertools.aws.dev\u002Flambda\u002Fpython\u002Flatest\u002F",{"text":73,"link":74},"Amazon SNS message filtering","https:\u002F\u002Fdocs.aws.amazon.com\u002Fsns\u002Flatest\u002Fdg\u002Fsns-message-filtering.html","patterns\u002Fapigw-sns-filter-policy-lambda-sls-py",{"text":77},[78],"See the GitHub repo for detailed testing instructions.","XKP8DOJof4mfuiz8i8RGOv6WJFfjptErN09jM64Le4M",1781692542805]