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
99import protocol AWSClientRuntime. AWSServiceError
1010import enum Smithy. ByteStream
1111// snippet-end:[lambda.swift.function.imports]
12+
1213// snippet-start:[lambda.swift.function.types]
1314// snippet-start:[lambda.swift.function.struct.request]
1415/// Represents the contents of the requests being received from the client.
@@ -19,6 +20,7 @@ struct Request: Decodable, Sendable {
1920 let body : String
2021}
2122// snippet-end:[lambda.swift.function.struct.request]
23+
2224// snippet-start:[lambda.swift.function.struct.response]
2325/// The contents of the response sent back to the client. This must be
2426/// `Encodable`.
@@ -29,6 +31,7 @@ struct Response: Encodable, Sendable {
2931 let body : String
3032}
3133// snippet-end:[lambda.swift.function.struct.response]
34+
3235// snippet-start:[lambda.swift.function.errors]
3336/// The errors that the Lambda function can return.
3437enum S3ExampleLambdaErrors : Error {
You can’t perform that action at this time.
0 commit comments