1- # AWS Lambda Java Events v2 .0
1+ # AWS Lambda Java Events v3 .0
22
3- ### New Event Models Supported
4- * APIGatewayProxyRequestEvent
5- * APIGatewayProxyResponseEvent
6- * APIGatewayV2ProxyRequestEvent
7- * APIGatewayV2ProxyResponseEvent
8- * CloudFrontEvent
9- * CloudWatchLogsEvent
10- * CodeCommitEvent
11- * IoTButtonEvent
12- * KinesisFirehoseEvent
13- * LexEvent
14- * ScheduledEvent
3+ ### Event Models Supported
4+ * ` APIGatewayProxyRequestEvent `
5+ * ` APIGatewayProxyResponseEvent `
6+ * ` APIGatewayV2ProxyRequestEvent `
7+ * ` APIGatewayV2ProxyResponseEvent `
8+ * ` CloudFrontEvent `
9+ * ` CloudWatchLogsEvent `
10+ * ` CodeCommitEvent `
11+ * ` CognitoEvent `
12+ * ` ConfigEvent `
13+ * ` DynamodbEvent `
14+ * ` IoTButtonEvent `
15+ * ` KinesisAnalyticsFirehoseInputPreprocessingEvent `
16+ * ` KinesisAnalyticsInputPreprocessingResponse `
17+ * ` KinesisAnalyticsOutputDeliveryEvent `
18+ * ` KinesisAnalyticsOutputDeliveryResponse `
19+ * ` KinesisAnalyticsStreamsInputPreprocessingEvent `
20+ * ` KinesisEvent `
21+ * ` KinesisFirehoseEvent `
22+ * ` LexEvent `
23+ * ` S3Event `
24+ * ` ScheduledEvent `
25+ * ` SNSEvent `
26+ * ` SQSEvent `
1527
16- ### New package inclusion model
17- The old package inclusion model required users to pull unused dependencies into
18- their package. We have removed this inclusion so that users' jars will be
19- smaller, which will results in reduced latency times. Customers using older
20- versions do not need to make any changes to their existing code.
28+ * As of version ` 3.0.0 ` , users are no longer required to pull in SDK dependencies in order to use this library.*
2129
22- The following event models do not require any SDK dependencies
23- * APIGatewayProxyRequestEvent
24- * APIGatewayProxyResponseEvent
25- * APIGatewayV2ProxyRequestEvent
26- * APIGatewayV2ProxyResponseEvent
27- * CloudFrontEvent
28- * CloudWatchLogsEvent
29- * CodeCommitEvent
30- * CognitoEvent
31- * ConfigEvent
32- * IoTButtonEvent
33- * KinesisFirehoseEvent
34- * LexEvent
35- * ScheduledEvent
36- * SNSEvent
3730
38- so the dependencies section in the pom.xml file would like this
31+ ### Getting Started
32+
33+ [ Maven] ( https://maven.apache.org )
3934
4035``` xml
4136<dependencies >
@@ -48,86 +43,29 @@ so the dependencies section in the pom.xml file would like this
4843 <dependency >
4944 <groupId >com.amazonaws</groupId >
5045 <artifactId >aws-lambda-java-events</artifactId >
51- <version >2.2.9 </version >
46+ <version >3.0.0 </version >
5247 </dependency >
5348 ...
5449</dependencies >
5550```
5651
57- #### S3 Event
58-
59- For the S3 event the pom would look like this:
52+ [ Gradle] ( https://gradle.org )
6053
61- ``` xml
62- <dependencies >
63- ...
64- <dependency >
65- <groupId >com.amazonaws</groupId >
66- <artifactId >aws-lambda-java-core</artifactId >
67- <version >1.2.1</version >
68- </dependency >
69- <dependency >
70- <groupId >com.amazonaws</groupId >
71- <artifactId >aws-lambda-java-events</artifactId >
72- <version >2.2.9</version >
73- </dependency >
74- <dependency >
75- <groupId >com.amazonaws</groupId >
76- <artifactId >aws-java-sdk-s3</artifactId >
77- <version >1.11.163</version >
78- </dependency >
79- ...
80- </dependencies >
54+ ``` groovy
55+ 'com.amazonaws:aws-lambda-java-core:1.2.1'
56+ 'com.amazonaws:aws-lambda-java-events:3.0.0'
8157```
8258
83- #### Kinesis Event
84-
85- For the Kinesis event
59+ [ Leiningen] ( http://leiningen.org ) and [ Boot] ( http://boot-clj.com )
8660
87- ``` xml
88- <dependencies >
89- ....
90- <dependency >
91- <groupId >com.amazonaws</groupId >
92- <artifactId >aws-lambda-java-core</artifactId >
93- <version >1.2.1</version >
94- </dependency >
95- <dependency >
96- <groupId >com.amazonaws</groupId >
97- <artifactId >aws-lambda-java-events</artifactId >
98- <version >2.2.9</version >
99- </dependency >
100- <dependency >
101- <groupId >com.amazonaws</groupId >
102- <artifactId >aws-java-sdk-kinesis</artifactId >
103- <version >1.11.163</version >
104- </dependency >
105- ...
106- </dependencies >
61+ ``` clojure
62+ [com.amazonaws/aws-lambda-java-core " 1.2.1" ]
63+ [com.amazonaws/aws-lambda-java-events " 3.0.0" ]
10764```
10865
109- #### Dynamodb Event
110-
111- For the Dynamodb event
66+ [ sbt] ( http://www.scala-sbt.org )
11267
113- ``` xml
114- <dependencies >
115- ...
116- <dependency >
117- <groupId >com.amazonaws</groupId >
118- <artifactId >aws-lambda-java-core</artifactId >
119- <version >1.2.1</version >
120- </dependency >
121- <dependency >
122- <groupId >com.amazonaws</groupId >
123- <artifactId >aws-lambda-java-events</artifactId >
124- <version >2.2.9</version >
125- </dependency >
126- <dependency >
127- <groupId >com.amazonaws</groupId >
128- <artifactId >aws-java-sdk-dynamodb</artifactId >
129- <version >1.11.163</version >
130- </dependency >
131- ...
132- </dependencies >
133- ```
68+ ``` scala
69+ " com.amazonaws" % " aws-lambda-java-core" % " 1.2.1"
70+ " com.amazonaws" % " aws-lambda-java-events" % " 3.0.0"
71+ ```
0 commit comments