Skip to content

Commit c75c999

Browse files
committed
update soto example readme
1 parent 0398590 commit c75c999

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Examples/Soto/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ sam deploy \
66

77
# API Gateway
88

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.
1010

1111
## Code
1212

@@ -22,7 +22,7 @@ The function must return a `APIGatewayV2Response`.
2222

2323
`APIGatewayV2Request` and `APIGatewayV2Response` are defined in the [Swift AWS Lambda Events](https://github.com/swift-server/swift-aws-lambda-events) library.
2424

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.
2626
It then extract the list of bucket names from the output to create a `\n` separated list of names, as a `String`
2727

2828
## Build & Package
@@ -35,7 +35,7 @@ swift package archive --allow-network-access docker
3535
```
3636

3737
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`
3939

4040
## Deploy
4141

@@ -51,7 +51,7 @@ To actually deploy your Lambda function and create the infrastructure, type the
5151
sam deploy \
5252
--resolve-s3 \
5353
--template-file template.yaml \
54-
--stack-name AWSSDKExample \
54+
--stack-name SotoExample \
5555
--capabilities CAPABILITY_IAM
5656
```
5757

0 commit comments

Comments
 (0)