File tree 9 files changed +39
-18
lines changed
9 files changed +39
-18
lines changed Original file line number Diff line number Diff line change 14
14
15
15
import HTTPTypes
16
16
17
- import class Foundation. JSONEncoder
17
+ #if canImport(FoundationEssentials)
18
+ import FoundationEssentials
19
+ #else
20
+ import Foundation
21
+ #endif
18
22
19
23
// https://github.com/aws/aws-lambda-go/blob/master/events/alb.go
20
24
/// `ALBTargetGroupRequest` contains data originating from the ALB Lambda target group integration.
Original file line number Diff line number Diff line change 14
14
15
15
import HTTPTypes
16
16
17
- import class Foundation. JSONEncoder
17
+ #if canImport(FoundationEssentials)
18
+ import FoundationEssentials
19
+ #else
20
+ import Foundation
21
+ #endif
18
22
19
23
// https://docs.aws.amazon.com/lambda/latest/dg/services-apigateway.html
20
24
// https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-lambda-proxy-integrations.html
Original file line number Diff line number Diff line change 12
12
//
13
13
//===----------------------------------------------------------------------===//
14
14
15
- #if canImport(Darwin )
16
- import struct Foundation . Date
15
+ #if canImport(FoundationEssentials )
16
+ import FoundationEssentials
17
17
#else
18
- @ preconcurrency import struct Foundation. Date
18
+ import Foundation
19
19
#endif
20
20
21
21
/// EventBridge has the same events/notification types as CloudWatch
Original file line number Diff line number Diff line change 12
12
//
13
13
//===----------------------------------------------------------------------===//
14
14
15
- #if canImport(Darwin )
16
- import struct Foundation . Date
15
+ #if canImport(FoundationEssentials )
16
+ import FoundationEssentials
17
17
#else
18
- @ preconcurrency import struct Foundation. Date
18
+ import Foundation
19
19
#endif
20
20
21
21
// https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html
Original file line number Diff line number Diff line change 13
13
//===----------------------------------------------------------------------===//
14
14
import HTTPTypes
15
15
16
- import class Foundation. JSONEncoder
16
+ #if canImport(FoundationEssentials)
17
+ import FoundationEssentials
18
+ #else
19
+ import Foundation
20
+ #endif
17
21
18
22
// https://docs.aws.amazon.com/lambda/latest/dg/urls-invocation.html
19
23
Original file line number Diff line number Diff line change 12
12
//
13
13
//===----------------------------------------------------------------------===//
14
14
15
- import struct Foundation. Date
15
+ #if canImport(FoundationEssentials)
16
+ import FoundationEssentials
17
+ #else
18
+ import Foundation
19
+ #endif
16
20
17
21
// https://docs.aws.amazon.com/lambda/latest/dg/with-s3.html
18
22
Original file line number Diff line number Diff line change 12
12
//
13
13
//===----------------------------------------------------------------------===//
14
14
15
- import struct Foundation. Date
15
+ #if canImport(FoundationEssentials)
16
+ import FoundationEssentials
17
+ #else
18
+ import Foundation
19
+ #endif
16
20
17
21
// https://docs.aws.amazon.com/lambda/latest/dg/services-ses.html
18
22
Original file line number Diff line number Diff line change 12
12
//
13
13
//===----------------------------------------------------------------------===//
14
14
15
- import struct Foundation. Date
15
+ #if canImport(FoundationEssentials)
16
+ import FoundationEssentials
17
+ #else
18
+ import Foundation
19
+ #endif
16
20
17
21
// https://docs.aws.amazon.com/lambda/latest/dg/with-sns.html
18
22
Original file line number Diff line number Diff line change 12
12
//
13
13
//===----------------------------------------------------------------------===//
14
14
15
- #if canImport(Darwin )
16
- import struct Foundation . Date
15
+ #if canImport(FoundationEssentials )
16
+ import FoundationEssentials
17
17
#else
18
- @ preconcurrency import struct Foundation. Date
18
+ import Foundation
19
19
#endif
20
- import class Foundation. DateFormatter
21
- import struct Foundation. Locale
22
- import struct Foundation. TimeZone
23
20
24
21
@propertyWrapper
25
22
public struct ISO8601Coding : Decodable , Sendable {
You can’t perform that action at this time.
0 commit comments