File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Examples/APIGateway+LambdaAuthorizer/Sources/AuthorizerLambda Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ import AWSLambdaRuntime
22
22
// This code is shown for the example only and is not used in this demo.
23
23
// This code doesn't perform any type of token validation. It should be used as a reference only.
24
24
let policyAuthorizerHandler :
25
- @ Sendable ( APIGatewayLambdaAuthorizerRequest, LambdaContext) async throws ->
25
+ ( APIGatewayLambdaAuthorizerRequest , LambdaContext ) async throws ->
26
26
APIGatewayLambdaAuthorizerPolicyResponse = {
27
27
( request: APIGatewayLambdaAuthorizerRequest , context: LambdaContext ) in
28
28
@@ -51,7 +51,9 @@ let policyAuthorizerHandler:
51
51
]
52
52
)
53
53
}
54
- // let runtime = LambdaRuntime(body: policyAuthorizerHandler)
54
+ // let runtime = LambdaRuntime() { try await policyAuthorizerHandler($0, $1) }
55
+ // start polling for new events.
56
+ // try await runtime.run()
55
57
56
58
//
57
59
// This is an example of a simple authorizer that always authorizes the request.
You can’t perform that action at this time.
0 commit comments