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: readme.md
+26-3Lines changed: 26 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -179,7 +179,7 @@ let runtime = LambdaRuntime {
179
179
try await runtime.run()
180
180
```
181
181
182
-
You can learn how to deploy and invoke this function in [the example README file](Examples/HelloJSON/README.md).
182
+
You can learn how to deploy and invoke this function in [the Hello JSON example README file](Examples/HelloJSON/README.md).
183
183
184
184
### Lambda Streaming Response
185
185
@@ -216,7 +216,30 @@ let runtime = LambdaRuntime.init(handler: SendNumbersWithPause())
216
216
tryawait runtime.run()
217
217
```
218
218
219
-
You can learn how to deploy and invoke this function in [the example README file](Examples/Streaming/README.md).
219
+
You can learn how to deploy and invoke this function in [the streaming example README file](Examples/Streaming/README.md).
220
+
221
+
### Integration with AWS Services
222
+
223
+
Most Lambda functions are triggered by events originating in other AWS services such as `Amazon SNS`, `Amazon SQS` or `AWS APIGateway`.
224
+
225
+
The [Swift AWS Lambda Events](http://github.com/swift-server/swift-aws-lambda-events) package includes an `AWSLambdaEvents` module that provides implementations for most common AWS event types further simplifying writing Lambda functions.
226
+
227
+
Here is an example Lambda function invoked when the AWS APIGateway receives an HTTP request.
228
+
229
+
```swift
230
+
importAWSLambdaEvents
231
+
importAWSLambdaRuntime
232
+
233
+
let runtime =LambdaRuntime {
234
+
(event: APIGatewayV2Request, context: LambdaContext) -> APIGatewayV2Response in
0 commit comments