Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f09228b

Browse files
committedApr 22, 2022
Initial Serialization V2 Implementation
1 parent a9819fb commit f09228b

File tree

135 files changed

+6974
-3016
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

135 files changed

+6974
-3016
lines changed
 
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/*
2+
* Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5+
* the License. A copy of the License is located at
6+
*
7+
* http://aws.amazon.com/apache2.0
8+
*
9+
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
10+
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
11+
* and limitations under the License.
12+
*/
13+
14+
package com.amazonaws.services.lambda.runtime.events;
15+
16+
import lombok.AllArgsConstructor;
17+
import lombok.Builder;
18+
import lombok.Data;
19+
import lombok.NoArgsConstructor;
20+
21+
@Data
22+
@Builder(setterPrefix = "with")
23+
@NoArgsConstructor
24+
@AllArgsConstructor
25+
public class TimeWindow {
26+
private String start;
27+
private String end;
28+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
/*
2+
* Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5+
* the License. A copy of the License is located at
6+
*
7+
* http://aws.amazon.com/apache2.0
8+
*
9+
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
10+
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
11+
* and limitations under the License.
12+
*/
13+
14+
package com.amazonaws.services.lambda.runtime.events.api_gateway;
15+
16+
import lombok.AllArgsConstructor;
17+
import lombok.Builder;
18+
import lombok.Data;
19+
import lombok.NoArgsConstructor;
20+
21+
import java.util.Map;
22+
23+
/**
24+
* The API Gateway customer authorizer event object as described - https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-lambda-authorizer.html
25+
*
26+
*/
27+
28+
@Data
29+
@Builder(setterPrefix = "with")
30+
@NoArgsConstructor
31+
@AllArgsConstructor
32+
public class APIGatewayCustomAuthorizerEvent {
33+
34+
private String version;
35+
private String type;
36+
private String methodArn;
37+
private String identitySource;
38+
private String authorizationToken;
39+
private String resource;
40+
private String path;
41+
private String httpMethod;
42+
private Map<String, String> headers;
43+
private Map<String, String> queryStringParameters;
44+
private Map<String, String> pathParameters;
45+
private Map<String, String> stageVariables;
46+
private RequestContext requestContext;
47+
48+
@Data
49+
@Builder(setterPrefix = "with")
50+
@NoArgsConstructor
51+
@AllArgsConstructor
52+
public static class RequestContext {
53+
private String path;
54+
private String accountId;
55+
private String resourceId;
56+
private String stage;
57+
private String requestId;
58+
private Identity identity;
59+
private String resourcePath;
60+
private String httpMethod;
61+
private String apiId;
62+
}
63+
64+
@Data
65+
@Builder(setterPrefix = "with")
66+
@NoArgsConstructor
67+
@AllArgsConstructor
68+
public static class Identity {
69+
private String apiKey;
70+
private String sourceIp;
71+
}
72+
}

0 commit comments

Comments
 (0)
Please sign in to comment.