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: Examples/Soto/README.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ sam deploy \
6
6
7
7
# API Gateway
8
8
9
-
This is a simple example of an AWS Lambda function that uses the [AWS SDK for Swift](https://github.com/awslabs/aws-sdk-swift) to read data from Amazon S3.
9
+
This is a simple example of an AWS Lambda function that uses the [Soto SDK for AWS](https://github.com/soto-project/soto) to read data from Amazon S3.
10
10
11
11
## Code
12
12
@@ -22,7 +22,7 @@ The function must return a `APIGatewayV2Response`.
22
22
23
23
`APIGatewayV2Request` and `APIGatewayV2Response` are defined in the [Swift AWS Lambda Events](https://github.com/swift-server/swift-aws-lambda-events) library.
24
24
25
-
The handler creates an S3 client and `ListBucketsInput` object. It passes the input object to the client and receives an output response.
25
+
The handler creates AWS and S3 clients. It then calls `listBuckets()` on the S3 client and receives an output response.
26
26
It then extract the list of bucket names from the output to create a `\n` separated list of names, as a `String`
27
27
28
28
## Build & Package
@@ -35,7 +35,7 @@ swift package archive --allow-network-access docker
35
35
```
36
36
37
37
If there is no error, there is a ZIP file ready to deploy.
38
-
The ZIP file is located at `.build/plugins/AWSLambdaPackager/outputs/AWSLambdaPackager/AWSSDKExample/AWSSDKExample.zip`
38
+
The ZIP file is located at `.build/plugins/AWSLambdaPackager/outputs/AWSLambdaPackager/SotoExample/SotoExample.zip`
39
39
40
40
## Deploy
41
41
@@ -51,7 +51,7 @@ To actually deploy your Lambda function and create the infrastructure, type the
0 commit comments