AWS DynamoDB trigger using Lambda in JAVA

前端 未结 5 1771
天命终不由人
天命终不由人 2021-01-12 13:44

I am trying to trigger an AWS lambda function written in Java, on dynamodb stream events. Amazon has a guide for the same, using NodeJS here http://docs.aws.amazon.com/lambd

5条回答
  •  -上瘾入骨i
    2021-01-12 14:01

    Your code caused the following exception in CloudWatch log,

    Class does not implement an appropriate handler interface....

    Once I changed the code to the following, I can get the SNS message just fine.

    public class RecomFunction implements RequestHandler {
    
        public Void handleRequest(SNSEvent event, Context context) {
    
            ...
            return null;
        }
    
    }
    

提交回复
热议问题