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 e67650a commit 32b7459Copy full SHA for 32b7459
Examples/S3EventNotifier/Sources/main.swift
@@ -15,6 +15,12 @@
15
import AWSLambdaEvents
16
import AWSLambdaRuntime
17
18
+#if canImport(FoundationEssentials)
19
+import FoundationEssentials
20
+#else
21
+import Foundation
22
+#endif
23
+
24
let runtime = LambdaRuntime { (event: S3Event, context: LambdaContext) async throws in
25
context.logger.debug("Received S3 event: \(event)")
26
0 commit comments