File tree 4 files changed +84
-0
lines changed
src/main/java/com/amazonaws/services/lambda/runtime/events
4 files changed +84
-0
lines changed Original file line number Diff line number Diff line change 5
5
* ` APIGatewayProxyResponseEvent `
6
6
* ` APIGatewayV2ProxyRequestEvent `
7
7
* ` APIGatewayV2ProxyResponseEvent `
8
+ * ` ApplicationLoadBalancerRequestEvent `
9
+ * ` ApplicationLoadBalancerResponseEvent `
8
10
* ` CloudFrontEvent `
9
11
* ` CloudWatchLogsEvent `
10
12
* ` CodeCommitEvent `
Original file line number Diff line number Diff line change 56
56
<version >5.5.2</version >
57
57
<scope >test</scope >
58
58
</dependency >
59
+ <dependency >
60
+ <groupId >org.projectlombok</groupId >
61
+ <artifactId >lombok</artifactId >
62
+ <version >1.18.12</version >
63
+ <scope >provided</scope >
64
+ </dependency >
59
65
</dependencies >
60
66
61
67
<profiles >
Original file line number Diff line number Diff line change
1
+ package com .amazonaws .services .lambda .runtime .events ;
2
+
3
+ import lombok .Data ;
4
+ import lombok .NoArgsConstructor ;
5
+
6
+ import java .io .Serializable ;
7
+ import java .util .List ;
8
+ import java .util .Map ;
9
+
10
+ /**
11
+ * Class to represent the request event from Application Load Balancer.
12
+ *
13
+ * @see <a href="https://docs.aws.amazon.com/lambda/latest/dg/services-alb.html">Using AWS Lambda with an Application Load Balancer</a>
14
+ *
15
+ * @author msailes <[email protected] >
16
+ */
17
+
18
+ @ NoArgsConstructor
19
+ @ Data
20
+ public class ApplicationLoadBalancerRequestEvent implements Serializable , Cloneable {
21
+
22
+ @ NoArgsConstructor
23
+ @ Data
24
+ public static class Elb implements Serializable , Cloneable {
25
+
26
+ private String targetGroupArn ;
27
+
28
+ }
29
+
30
+ @ NoArgsConstructor
31
+ @ Data
32
+ public static class RequestContext implements Serializable , Cloneable {
33
+
34
+ private Elb elb ;
35
+
36
+ }
37
+
38
+ private RequestContext requestContext ;
39
+ private String httpMethod ;
40
+ private String path ;
41
+ private Map <String , String > queryStringParameters ;
42
+ private Map <String , String > headers ;
43
+ private Map <String , List <String >> multiValueHeaders ;
44
+ private String body ;
45
+ private boolean isBase64Encoded ;
46
+
47
+ }
Original file line number Diff line number Diff line change
1
+ package com .amazonaws .services .lambda .runtime .events ;
2
+
3
+ import lombok .Data ;
4
+ import lombok .NoArgsConstructor ;
5
+
6
+ import java .io .Serializable ;
7
+ import java .util .List ;
8
+ import java .util .Map ;
9
+
10
+ /**
11
+ * Class to represent the response event to Application Load Balancer.
12
+ *
13
+ * @see <a href="https://docs.aws.amazon.com/lambda/latest/dg/services-alb.html">Using AWS Lambda with an Application Load Balancer</a>
14
+ *
15
+ * @author msailes <[email protected] >
16
+ */
17
+
18
+ @ NoArgsConstructor
19
+ @ Data
20
+ public class ApplicationLoadBalancerResponseEvent implements Serializable , Cloneable {
21
+
22
+ private int statusCode ;
23
+ private String statusDescription ;
24
+ private boolean isBase64Encoded ;
25
+ private Map <String , String > headers ;
26
+ private Map <String , List <String >> multiValueHeaders ;
27
+ private String body ;
28
+
29
+ }
You can’t perform that action at this time.
0 commit comments