[{"data":1,"prerenderedAt":52},["ShallowReactive",2],{"pattern-dynamodb-lambda-cdk-kotlin":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":30,"level":31,"meta":32,"patternArch":33,"resources":6,"s3URL":6,"services":6,"stem":47,"testing":48,"videoId":6,"__hash__":51},"patterns\u002Fpatterns\u002Fdynamodb-lambda-cdk-kotlin.json","Amazon DynamoDB Stream to AWS Lambda using CDK in Kotlin",null,{"text":8},[9],"Delete the stack: \u003Ccode>cdk delete\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fsidharta-rezende.json",{"text":13},[14],"cdk deploy","Create an AWS Lambda function that receives DynamoDB change items.","json","AWS CDK",{"template":19},{"repoURL":20,"templateURL":21,"projectFolder":22,"templateFile":23},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fdynamodb-lambda-cdk-kotlin","serverless-patterns\u002Fdynamodb-lambda-cdk-kotlin","dynamodb-lambda-cdk-kotlin","stack\u002Fsrc\u002Fmain\u002Fkotlin\u002Forg\u002Fmyorg\u002Fexample\u002FMyStack.kt",{"headline":25,"text":26},"How it works",[27,28,29],"This CDK application demonstrates how to establish an Amazon DynamoDB table stream, an AWS Lambda function, and the minimal IAM permissions needed for the application to function properly.","When items are inserted or updated in a DynamoDB table, the changes are sent to a stream. This pattern configures a Lambda function to poll this stream. The function is invoked with a payload containing the contents of the table item that changed.","The application was made using Kotlin for both the CDK and Lambda code.","Java","200",{},{"icon1":34,"icon2":39,"line1":43},{"x":35,"y":36,"service":37,"label":38},20,50,"dynamodb","Amazon DynamoDB",{"x":40,"y":36,"service":41,"label":42},80,"lambda","AWS Lambda",{"from":44,"to":45,"label":46},"icon1","icon2","","patterns\u002Fdynamodb-lambda-cdk-kotlin",{"text":49},[50],"See the GitHub repo for detailed testing instructions.","_OZBm9sjMJq8ed8l2TvNnkFpjkunNlDwjaPlwfXYKk4",1778927707170]