Skip to content

Commit 32b7459

Browse files
committed
Add back foundation
1 parent e67650a commit 32b7459

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Examples/S3EventNotifier/Sources/main.swift

+6
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@
1515
import AWSLambdaEvents
1616
import AWSLambdaRuntime
1717

18+
#if canImport(FoundationEssentials)
19+
import FoundationEssentials
20+
#else
21+
import Foundation
22+
#endif
23+
1824
let runtime = LambdaRuntime { (event: S3Event, context: LambdaContext) async throws in
1925
context.logger.debug("Received S3 event: \(event)")
2026

0 commit comments

Comments
 (0)