java - Setup DynamoDB Trigger using Lambda -


i'm trying create dynamodb trigger using dynamodb streams , aws lambda. researched lot couldn't find way read , process dynamodb stream event in java 8. i'm new both these technologies don't know how work this.

essentially, want create record in table b whenever record created in table a.

could of please point me code or post handles use case in java?

thanks :)

this code worked me. can use receive , process dynamodb events in lambda function -

public class handler implements requesthandler<dynamodbevent, void> {      @override     public void handlerequest(dynamodbevent dynamodbevent, context context) {          (dynamodbstreamrecord record : dynamodbevent.getrecords()) {              if (record == null) {                 continue;             }              // code here             // write table b using dynamodb java api         }          return null;     } } 

when create lambda, add stream table event source, , you're go


Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -

Nuget pack csproj using nuspec -