File tree Expand file tree Collapse file tree 14 files changed +127
-13
lines changed Expand file tree Collapse file tree 14 files changed +127
-13
lines changed Original file line number Diff line number Diff line change 2
2
//
3
3
// This source file is part of the SwiftAWSLambdaRuntime open source project
4
4
//
5
- // Copyright (c) 2017-2020 Apple Inc. and the SwiftAWSLambdaRuntime project authors
5
+ // Copyright (c) 2017-2022 Apple Inc. and the SwiftAWSLambdaRuntime project authors
6
6
// Licensed under Apache License v2.0
7
7
//
8
8
// See LICENSE.txt for license information
@@ -73,3 +73,10 @@ public struct ALBTargetGroupResponse: Codable {
73
73
self . isBase64Encoded = isBase64Encoded
74
74
}
75
75
}
76
+
77
+ #if swift(>=5.6)
78
+ extension ALBTargetGroupRequest : Sendable { }
79
+ extension ALBTargetGroupRequest . Context : Sendable { }
80
+ extension ALBTargetGroupRequest . ELBContext : Sendable { }
81
+ extension ALBTargetGroupResponse : Sendable { }
82
+ #endif
Original file line number Diff line number Diff line change 2
2
//
3
3
// This source file is part of the SwiftAWSLambdaRuntime open source project
4
4
//
5
- // Copyright (c) 2017-2020 Apple Inc. and the SwiftAWSLambdaRuntime project authors
5
+ // Copyright (c) 2017-2022 Apple Inc. and the SwiftAWSLambdaRuntime project authors
6
6
// Licensed under Apache License v2.0
7
7
//
8
8
// See LICENSE.txt for license information
@@ -106,3 +106,12 @@ public struct APIGatewayV2Response: Codable {
106
106
self . cookies = cookies
107
107
}
108
108
}
109
+
110
+ #if swift(>=5.6)
111
+ extension APIGatewayV2Request : Sendable { }
112
+ extension APIGatewayV2Request . Context : Sendable { }
113
+ extension APIGatewayV2Request . Context . HTTP : Sendable { }
114
+ extension APIGatewayV2Request . Context . Authorizer : Sendable { }
115
+ extension APIGatewayV2Request . Context . Authorizer . JWT : Sendable { }
116
+ extension APIGatewayV2Response : Sendable { }
117
+ #endif
Original file line number Diff line number Diff line change 2
2
//
3
3
// This source file is part of the SwiftAWSLambdaRuntime open source project
4
4
//
5
- // Copyright (c) 2017-2020 Apple Inc. and the SwiftAWSLambdaRuntime project authors
5
+ // Copyright (c) 2017-2022 Apple Inc. and the SwiftAWSLambdaRuntime project authors
6
6
// Licensed under Apache License v2.0
7
7
//
8
8
// See LICENSE.txt for license information
@@ -87,3 +87,10 @@ public struct APIGatewayResponse: Codable {
87
87
self . isBase64Encoded = isBase64Encoded
88
88
}
89
89
}
90
+
91
+ #if swift(>=5.6)
92
+ extension APIGatewayRequest : Sendable { }
93
+ extension APIGatewayRequest . Context : Sendable { }
94
+ extension APIGatewayRequest . Context . Identity : Sendable { }
95
+ extension APIGatewayResponse : Sendable { }
96
+ #endif
Original file line number Diff line number Diff line change 2
2
//
3
3
// This source file is part of the SwiftAWSLambdaRuntime open source project
4
4
//
5
- // Copyright (c) 2017-2020 Apple Inc. and the SwiftAWSLambdaRuntime project authors
5
+ // Copyright (c) 2017-2022 Apple Inc. and the SwiftAWSLambdaRuntime project authors
6
6
// Licensed under Apache License v2.0
7
7
//
8
8
// See LICENSE.txt for license information
@@ -90,3 +90,7 @@ extension AWSRegion: Codable {
90
90
try container. encode ( self . rawValue)
91
91
}
92
92
}
93
+
94
+ #if swift(>=5.6)
95
+ extension AWSRegion : Sendable { }
96
+ #endif
Original file line number Diff line number Diff line change 2
2
//
3
3
// This source file is part of the SwiftAWSLambdaRuntime open source project
4
4
//
5
- // Copyright (c) 2017-2020 Apple Inc. and the SwiftAWSLambdaRuntime project authors
5
+ // Copyright (c) 2017-2022 Apple Inc. and the SwiftAWSLambdaRuntime project authors
6
6
// Licensed under Apache License v2.0
7
7
//
8
8
// See LICENSE.txt for license information
@@ -163,3 +163,14 @@ public enum AppSyncResponse<ResultType: Encodable>: Encodable {
163
163
}
164
164
165
165
public typealias AppSyncJSONResponse = AppSyncResponse < String >
166
+
167
+ #if swift(>=5.6)
168
+ extension AppSyncEvent : Sendable { }
169
+ extension AppSyncEvent . ArgumentValue : Sendable { }
170
+ extension AppSyncEvent . Request : Sendable { }
171
+ extension AppSyncEvent . Info : Sendable { }
172
+ extension AppSyncEvent . Identity : Sendable { }
173
+ extension AppSyncEvent . Identity . CognitoUserPoolIdentity : Sendable { }
174
+ extension AppSyncEvent . Identity . IAMIdentity : Sendable { }
175
+ extension AppSyncResponse : Sendable where ResultType: Sendable { }
176
+ #endif
Original file line number Diff line number Diff line change 2
2
//
3
3
// This source file is part of the SwiftAWSLambdaRuntime open source project
4
4
//
5
- // Copyright (c) 2017-2020 Apple Inc. and the SwiftAWSLambdaRuntime project authors
5
+ // Copyright (c) 2017-2022 Apple Inc. and the SwiftAWSLambdaRuntime project authors
6
6
// Licensed under Apache License v2.0
7
7
//
8
8
// See LICENSE.txt for license information
12
12
//
13
13
//===----------------------------------------------------------------------===//
14
14
15
+ #if swift(>=5.6)
16
+ @preconcurrency import struct Foundation. Date
17
+ #else
15
18
import struct Foundation. Date
19
+ #endif
16
20
17
21
/// EventBridge has the same events/notification types as CloudWatch
18
22
typealias EventBridgeEvent = CloudwatchEvent
@@ -130,3 +134,9 @@ public enum CloudwatchDetails {
130
134
let type : Any
131
135
}
132
136
}
137
+
138
+ #if swift(>=5.6)
139
+ extension CloudwatchEvent : Sendable where Detail: Sendable { }
140
+ extension CloudwatchDetails . EC2 : Sendable { }
141
+ extension CloudwatchDetails . Scheduled : Sendable { }
142
+ #endif
Original file line number Diff line number Diff line change 2
2
//
3
3
// This source file is part of the SwiftAWSLambdaRuntime open source project
4
4
//
5
- // Copyright (c) 2017-2020 Apple Inc. and the SwiftAWSLambdaRuntime project authors
5
+ // Copyright (c) 2017-2022 Apple Inc. and the SwiftAWSLambdaRuntime project authors
6
6
// Licensed under Apache License v2.0
7
7
//
8
8
// See LICENSE.txt for license information
12
12
//
13
13
//===----------------------------------------------------------------------===//
14
14
15
+ #if swift(>=5.6)
16
+ @preconcurrency import struct Foundation. Date
17
+ #else
15
18
import struct Foundation. Date
19
+ #endif
16
20
17
21
// https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html
18
22
public struct DynamoDBEvent : Decodable {
@@ -930,3 +934,13 @@ extension DynamoDBEvent.AttributeValue {
930
934
}
931
935
}
932
936
}
937
+
938
+ #if swift(>=5.6)
939
+ extension DynamoDBEvent : Sendable { }
940
+ extension DynamoDBEvent . EventRecord : Sendable { }
941
+ extension DynamoDBEvent . StreamRecord : Sendable { }
942
+ extension DynamoDBEvent . UserIdentity : Sendable { }
943
+ extension DynamoDBEvent . OperationType : Sendable { }
944
+ extension DynamoDBEvent . AttributeValue : Sendable { }
945
+ extension DynamoDBEvent . StreamViewType : Sendable { }
946
+ #endif
Original file line number Diff line number Diff line change 2
2
//
3
3
// This source file is part of the SwiftAWSLambdaRuntime open source project
4
4
//
5
- // Copyright (c) 2017-2020 Apple Inc. and the SwiftAWSLambdaRuntime project authors
5
+ // Copyright (c) 2017-2022 Apple Inc. and the SwiftAWSLambdaRuntime project authors
6
6
// Licensed under Apache License v2.0
7
7
//
8
8
// See LICENSE.txt for license information
@@ -77,3 +77,13 @@ public struct S3Event: Decodable {
77
77
public let sequencer : String
78
78
}
79
79
}
80
+
81
+ #if swift(>=5.6)
82
+ extension S3Event : Sendable { }
83
+ extension S3Event . Bucket : Sendable { }
84
+ extension S3Event . Entity : Sendable { }
85
+ extension S3Event . Object : Sendable { }
86
+ extension S3Event . Record : Sendable { }
87
+ extension S3Event . RequestParameters : Sendable { }
88
+ extension S3Event . UserIdentity : Sendable { }
89
+ #endif
Original file line number Diff line number Diff line change 2
2
//
3
3
// This source file is part of the SwiftAWSLambdaRuntime open source project
4
4
//
5
- // Copyright (c) 2017-2020 Apple Inc. and the SwiftAWSLambdaRuntime project authors
5
+ // Copyright (c) 2017-2022 Apple Inc. and the SwiftAWSLambdaRuntime project authors
6
6
// Licensed under Apache License v2.0
7
7
//
8
8
// See LICENSE.txt for license information
@@ -96,3 +96,17 @@ public struct SESEvent: Decodable {
96
96
case processingFailed = " PROCESSING_FAILED "
97
97
}
98
98
}
99
+
100
+ #if swift(>=5.6)
101
+ extension SESEvent : Sendable { }
102
+ extension SESEvent . Record : Sendable { }
103
+ extension SESEvent . Message : Sendable { }
104
+ extension SESEvent . Mail : Sendable { }
105
+ extension SESEvent . Receipt : Sendable { }
106
+ extension SESEvent . CommonHeaders : Sendable { }
107
+ extension SESEvent . Action : Sendable { }
108
+ extension SESEvent . Header : Sendable { }
109
+ extension SESEvent . DMARCPolicy : Sendable { }
110
+ extension SESEvent . Verdict : Sendable { }
111
+ extension SESEvent . Status : Sendable { }
112
+ #endif
Original file line number Diff line number Diff line change 2
2
//
3
3
// This source file is part of the SwiftAWSLambdaRuntime open source project
4
4
//
5
- // Copyright (c) 2017-2020 Apple Inc. and the SwiftAWSLambdaRuntime project authors
5
+ // Copyright (c) 2017-2022 Apple Inc. and the SwiftAWSLambdaRuntime project authors
6
6
// Licensed under Apache License v2.0
7
7
//
8
8
// See LICENSE.txt for license information
@@ -104,3 +104,10 @@ extension SNSEvent.Message.Attribute: Decodable {
104
104
}
105
105
}
106
106
}
107
+
108
+ #if swift(>=5.6)
109
+ extension SNSEvent : Sendable { }
110
+ extension SNSEvent . Record : Sendable { }
111
+ extension SNSEvent . Message : Sendable { }
112
+ extension SNSEvent . Message . Attribute : Sendable { }
113
+ #endif
Original file line number Diff line number Diff line change 2
2
//
3
3
// This source file is part of the SwiftAWSLambdaRuntime open source project
4
4
//
5
- // Copyright (c) 2017-2020 Apple Inc. and the SwiftAWSLambdaRuntime project authors
5
+ // Copyright (c) 2017-2022 Apple Inc. and the SwiftAWSLambdaRuntime project authors
6
6
// Licensed under Apache License v2.0
7
7
//
8
8
// See LICENSE.txt for license information
@@ -93,3 +93,9 @@ extension SQSEvent.Message.Attribute: Decodable {
93
93
}
94
94
}
95
95
}
96
+
97
+ #if swift(>=5.6)
98
+ extension SQSEvent : Sendable { }
99
+ extension SQSEvent . Message : Sendable { }
100
+ extension SQSEvent . Message . Attribute : Sendable { }
101
+ #endif
Original file line number Diff line number Diff line change 12
12
//
13
13
//===----------------------------------------------------------------------===//
14
14
15
+ #if swift(>=5.6)
16
+ @preconcurrency import struct Foundation. Date
17
+ #else
15
18
import struct Foundation. Date
19
+ #endif
16
20
import class Foundation. DateFormatter
17
21
import struct Foundation. Locale
18
22
import struct Foundation. TimeZone
@@ -114,3 +118,9 @@ public struct RFC5322DateTimeCoding: Decodable {
114
118
return [ formatterWithDay, formatterWithoutDay]
115
119
}
116
120
}
121
+
122
+ #if swift(>=5.6)
123
+ extension ISO8601Coding : Sendable { }
124
+ extension ISO8601WithFractionalSecondsCoding : Sendable { }
125
+ extension RFC5322DateTimeCoding : Sendable { }
126
+ #endif
Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ extension HTTPResponseStatus: Codable {
158
158
159
159
extension String {
160
160
internal var isValidHTTPToken : Bool {
161
- self . utf8. allSatisfy { ( char) -> Bool in
161
+ self . utf8. allSatisfy { char -> Bool in
162
162
switch char {
163
163
case UInt8 ( ascii: " a " ) ... UInt8 ( ascii: " z " ) ,
164
164
UInt8 ( ascii: " A " ) ... UInt8 ( ascii: " Z " ) ,
@@ -185,3 +185,8 @@ extension String {
185
185
}
186
186
}
187
187
}
188
+
189
+ #if swift(>=5.6)
190
+ extension HTTPMethod : Sendable { }
191
+ extension HTTPResponseStatus : Sendable { }
192
+ #endif
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ here="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
19
19
20
20
function replace_acceptable_years() {
21
21
# this needs to replace all acceptable forms with 'YEARS'
22
- sed -e ' s/2017-2018/YEARS/' -e ' s/2017-2020/YEARS/' -e ' s/2017-2021/YEARS/' -e ' s/2019/YEARS/' -e ' s/2020/YEARS/'
22
+ sed -e ' s/2017-2018/YEARS/' -e ' s/2017-2020/YEARS/' -e ' s/2017-2021/YEARS/' -e ' s/2017-2022/YEARS/ ' -e ' s/ 2019/YEARS/' -e ' s/2020/YEARS/'
23
23
}
24
24
25
25
printf " => Checking for unacceptable language... "
You can’t perform that action at this time.
0 commit comments