We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f32927f commit a93eff2Copy full SHA for a93eff2
Examples/APIGateway/Sources/main.swift
@@ -14,8 +14,11 @@
14
15
import AWSLambdaEvents
16
import AWSLambdaRuntime
17
-import class Foundation.JSONEncoder
18
-
+#if canImport(FoundationEssentials)
+import FoundationEssentials
19
+#else
20
+import Foundation
21
+#endif
22
let encoder = JSONEncoder()
23
let runtime = LambdaRuntime {
24
(event: APIGatewayV2Request, context: LambdaContext) -> APIGatewayV2Response in
0 commit comments