File tree 2 files changed +84
-0
lines changed
aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events
2 files changed +84
-0
lines changed Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright 2015-2020 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
+ package com .amazonaws .services .lambda .runtime .events ;
14
+
15
+ import java .util .Map ;
16
+
17
+ import lombok .AllArgsConstructor ;
18
+ import lombok .Builder ;
19
+ import lombok .Data ;
20
+ import lombok .NoArgsConstructor ;
21
+
22
+ /**
23
+ * Class that represents the input to an AppSync Lambda authorizer invocation.
24
+ */
25
+ @ Data
26
+ @ Builder (setterPrefix = "with" )
27
+ @ NoArgsConstructor
28
+ @ AllArgsConstructor
29
+ public class AppSyncLambdaAuthorizerEvent {
30
+
31
+ private RequestContext requestContext ;
32
+ private String authorizationToken ;
33
+
34
+ @ Data
35
+ @ Builder (setterPrefix = "with" )
36
+ @ NoArgsConstructor
37
+ @ AllArgsConstructor
38
+ public static class RequestContext {
39
+
40
+ private String apiId ;
41
+ private String accountId ;
42
+ private String requestId ;
43
+ private String queryDocument ;
44
+ private String operationName ;
45
+ private Map <String , Object > variables ;
46
+ }
47
+
48
+ }
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright 2015-2020 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
+ package com .amazonaws .services .lambda .runtime .events ;
14
+
15
+ import java .util .Map ;
16
+ import java .util .List ;
17
+
18
+ import lombok .AllArgsConstructor ;
19
+ import lombok .Builder ;
20
+ import lombok .Data ;
21
+ import lombok .NoArgsConstructor ;
22
+
23
+ /**
24
+ * Class that represents the output from an AppSync Lambda authorizer invocation.
25
+ */
26
+ @ Data
27
+ @ Builder (setterPrefix = "with" )
28
+ @ NoArgsConstructor
29
+ @ AllArgsConstructor
30
+ public class AppSyncLambdaAuthorizerResponse {
31
+
32
+ private boolean isAuthorized ;
33
+ private Map <String , String > resolverContext ;
34
+ private List <String > deniedFields ;
35
+ private int ttlOverride ;
36
+ }
You can’t perform that action at this time.
0 commit comments