Skip to content

Commit dd5f62b

Browse files
Update README.md S3Test
1 parent afcb9ba commit dd5f62b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Examples/S3Test/README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@ import Foundation
2222
#endif
2323
import LambdaSwiftSprinterNioPlugin
2424
import Logging
25-
import S3
25+
import AWSS3
2626
import NIO
2727
import NIOFoundationCompat
28+
import AWSSDKSwiftCore
2829

2930
struct Bucket: Codable {
3031
let name: String
@@ -39,7 +40,10 @@ struct Response: Codable {
3940
Change the region with the region of your S3 bucket.
4041

4142
```swift
42-
let s3 = S3(region: .euwest1)
43+
guard let awsClient: AWSHTTPClient = httpClient as? AWSHTTPClient else {
44+
preconditionFailure()
45+
}
46+
let s3 = S3(region: .euwest1, httpClientProvider: .shared(awsClient))
4347
```
4448

4549
add a logger:

0 commit comments

Comments
 (0)