Skip to content

Commit 52b47d3

Browse files
committed
[1.0.0-SNAPSHOT]
RabbitMQEvent added APIGatewayProxyEvent#version added README.md graalvm badge added
1 parent 7983e0b commit 52b47d3

File tree

3 files changed

+56
-0
lines changed

3 files changed

+56
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# AWS Lambda Java Events v3
22

3+
![GraalVM Enabled](https://img.shields.io/badge/GraalVM-Ready-orange?style=plastic)
4+
35
This is fork of [official AWS Lambda Java Events](https://github.com/aws/aws-lambda-java-libs) that aims to provide simplified Java models **without JodaTime**.
46

57
## Dependency :rocket:
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
package io.goodforgod.aws.lambda.events;
2+
3+
import java.util.List;
4+
import java.util.Map;
5+
import lombok.Data;
6+
import lombok.experimental.Accessors;
7+
8+
/**
9+
* Represents a Rabbit MQ event sent to Lambda
10+
* <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-mq.html">Onboarding Amazon MQ as event
11+
* source to Lambda</a>
12+
*
13+
* @author Anton Kurako (GoodforGod)
14+
* @since 28.10.2021
15+
*/
16+
@Data
17+
@Accessors(chain = true)
18+
public class RabbitMQEvent {
19+
20+
private String eventSource;
21+
private String eventSourceArn;
22+
private Map<String, List<RabbitMessage>> rmqMessagesByQueue;
23+
24+
@Data
25+
@Accessors(chain = true)
26+
public static class RabbitMessage {
27+
28+
private BasicProperties basicProperties;
29+
private boolean redelivered;
30+
private String data;
31+
}
32+
33+
@Data
34+
@Accessors(chain = true)
35+
public static class BasicProperties {
36+
37+
private String contentType;
38+
private String contentEncoding;
39+
private Map<String, Object> headers;
40+
private int deliveryMode;
41+
private int priority;
42+
private String correlationId;
43+
private String replyTo;
44+
private int expiration;
45+
private String messageId;
46+
private String timestamp;
47+
private String type;
48+
private String userId;
49+
private String appId;
50+
private String clusterId;
51+
private int bodySize;
52+
}
53+
}

src/main/java/io/goodforgod/aws/lambda/events/gateway/APIGatewayProxyEvent.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
@EqualsAndHashCode(callSuper = true)
1919
public class APIGatewayProxyEvent extends Base64BodyEvent<APIGatewayProxyEvent> implements Serializable {
2020

21+
private String version;
2122
private String resource;
2223
private String path;
2324
private String httpMethod;

0 commit comments

Comments
 (0)