简体   繁体   English

SQSEvent在aws-lambda-java-events 1.x中不存在,而AmazonS3在aws-lambda-java-events 2.x中不存在?

[英]SQSEvent doesn't exist in aws-lambda-java-events 1.x and AmazonS3 doesn't exist in aws-lambda-java-events 2.x?

I'm writing a lambda function that read message from SQS event and and to store the message in S3, but I found that the Java class SQSEvent doesn't exist in the default "aws-lambda-java-events 1.3.0", and when I upgrade it to 2.2.2, it includes the class SQSEvent. 我正在编写一个Lambda函数,该函数从SQS事件读取消息并将消息存储在S3中,但是我发现Java类SQSEvent在默认的“ aws-lambda-java-events 1.3.0”中不存在,当我将其升级到2.2.2时,它包括类SQSEvent。 However, the class AmazonS3 can't be found anymore. 但是,现在找不到类AmazonS3。

Could anyone give some tips? 有人可以给一些提示吗? Does "aws-lambda-java-events 2.2.2" removed AmazonS3? “ aws-lambda-java-events 2.2.2”是否删除了AmazonS3?

update your POM dependency of aws-lambda-java-events to higher version such as : 2.2.6 FYI: 将aws-lambda-java-events的POM依赖关系更新为更高版本,例如:2.2.6 FYI:

     <dependency>
        <groupId>com.amazonaws</groupId>
        <artifactId>aws-lambda-java-events</artifactId>
        <version>2.2.6</version>
    </dependency>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM