File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
swift/example_code/lambda/using-lambda-runtime/Sources Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import AWSS3
9
9
import protocol AWSClientRuntime. AWSServiceError
10
10
import enum Smithy. ByteStream
11
11
// snippet-end:[lambda.swift.function.imports]
12
+
12
13
// snippet-start:[lambda.swift.function.types]
13
14
// snippet-start:[lambda.swift.function.struct.request]
14
15
/// Represents the contents of the requests being received from the client.
@@ -19,6 +20,7 @@ struct Request: Decodable, Sendable {
19
20
let body : String
20
21
}
21
22
// snippet-end:[lambda.swift.function.struct.request]
23
+
22
24
// snippet-start:[lambda.swift.function.struct.response]
23
25
/// The contents of the response sent back to the client. This must be
24
26
/// `Encodable`.
@@ -29,6 +31,7 @@ struct Response: Encodable, Sendable {
29
31
let body : String
30
32
}
31
33
// snippet-end:[lambda.swift.function.struct.response]
34
+
32
35
// snippet-start:[lambda.swift.function.errors]
33
36
/// The errors that the Lambda function can return.
34
37
enum S3ExampleLambdaErrors : Error {
You can’t perform that action at this time.
0 commit comments