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/AWSLambdaRuntimeCore/Documentation.docc/quick-setup.md
+2-4
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ swift package init --type executable
23
23
2. Add dependencies on `AWSLambdaRuntime` library
24
24
25
25
```swift
26
-
// swift-tools-version:5.8
26
+
// swift-tools-version:6.0
27
27
// The swift-tools-version declares the minimum version of Swift required to build this package.
28
28
29
29
importPackageDescription
@@ -53,9 +53,7 @@ let package = Package(
53
53
54
54
3. Write your function code.
55
55
56
-
> Be sure to rename the `main.swift` file to something else.
57
-
58
-
Create an instance of `LambdaRuntime` and pass as a closure a function with this signature: `(_ : Event, context: LambdaContext) async throws -> Output` (as defined in the `LambdaHandler` protocol). `Event` must be `Decodable`.
56
+
Create an instance of `LambdaRuntime` and pass a function as a closure. The function has this signature: `(_: Event, context: LambdaContext) async throws -> Output` (as defined in the `LambdaHandler` protocol). `Event` must be `Decodable`. `Output` must be `Encodable`.
59
57
60
58
If your Lambda function is invoked by another AWS service, use the `AWSLambdaEvent` library at [https://github.com/swift-server/swift-aws-lambda-events](https://github.com/swift-server/swift-aws-lambda-events) to represent the input event.
0 commit comments