[{"data":1,"prerenderedAt":65},["ShallowReactive",2],{"pattern-lambda-esm-ddb-filters-sam":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":11,"deploy":13,"description":17,"extension":18,"framework":19,"gitHub":20,"highlight":6,"introBox":26,"language":32,"level":33,"meta":34,"patternArch":35,"resources":53,"s3URL":6,"services":6,"stem":59,"testing":60,"videoId":6,"__hash__":64},"patterns\u002Fpatterns\u002Flambda-esm-ddb-filters-sam.json","AWS Event Source Mapping for AWS Lambda from Amazon DynamoDB Stream",null,{"headline":8,"text":9},"Cleanup",[10],"Delete the stack: \u003Ccode>sam delete --stack-name STACK_NAME\u003C\u002Fcode>.",[12],"content\u002Fcontributors\u002Fdmitry-gulin.json",{"text":14},[15,16],"sam build","sam deploy --guided","Sample Lambda ESM Filter rules for DynamoDB Stream triggers","json","AWS SAM",{"template":21},{"repoURL":22,"templateURL":23,"projectFolder":24,"templateFile":25},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Flambda-esm-ddb-filters-sam","serverless-patterns\u002Flambda-esm-ddb-filters-sam","lambda-esm-ddb-filters-sam","template.yaml",{"headline":27,"text":28},"How it works",[29,30,31],"Use this code to test out different trigger filters for your Lambda functions. You can use event filtering to control which events Lambda sends to your function for processing. You can use this template to explore and test how to configure event filtering for Amazon DynamoDB Stream messages triggering a Lambda function.","Please note that this template is meant for testing, you can subscribe more than two Lambda functions to a DynamoDB Stream, but you'll likely experience read throttling, refer to the GitHub template README for more information.","The SAM template deploys multiple Lambda functions, a single stream-enabled Amazon DynamoDB Table and the permissions required to run the application. The template enforces 3 days retention period for all AWS Lambda CloudWatch logs. All AWS Lambda functions are deployed to NodeJS 18 runtime running on ARM64 processors powered by AWS Graviton.","Node.js","200",{},{"icon1":36,"icon4":41,"icon2":45,"line1":49},{"x":37,"y":38,"service":39,"label":40},20,50,"dynamodb","Amazon DynamoDB Streams",{"x":42,"y":38,"service":43,"label":44},30,"dynamodb-stream","",{"x":46,"y":38,"service":47,"label":48},70,"lambda","7 x Lambda functions",{"from":50,"to":51,"label":52},"icon4","icon2","7 x ESM filters",{"headline":54,"bullets":55},"Additional resources",[56],{"text":57,"link":58},"Lambda event filtering","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Finvocation-eventfiltering.html","patterns\u002Flambda-esm-ddb-filters-sam",{"headline":61,"text":62},"Testing",[63],"See the GitHub repo for detailed testing instructions.","c76sxgqkjFLFj52gRaEvKCvrXIdqmtRbIaWxJrxUcDo",1779273337279]