You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/AWSLambdaRuntime/FoundationSupport/Lambda+JSON.swift
+32Lines changed: 32 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -160,5 +160,37 @@ extension LambdaRuntime {
160
160
161
161
self.init(handler: handler, logger: logger)
162
162
}
163
+
164
+
/// Initialize an instance directly with a `LambdaHandler`.
165
+
/// - Parameters:
166
+
/// - decoder: The decoder object that will be used to decode the incoming `ByteBuffer` event into the generic `Event` type. `JSONDecoder()` used as default.
167
+
/// - encoder: The encoder object that will be used to encode the generic `Output` into a `ByteBuffer`. `JSONEncoder()` used as default.
168
+
/// - logger: The logger to use for the runtime. Defaults to a logger with label "LambdaRuntime".
169
+
/// - lambdaHandler: A type that conforms to the `LambdaHandler` protocol, whose `Event` and `Output` types must be `Decodable`/`Encodable`
0 commit comments