Skip to content
This repository has been archived by the owner on Nov 19, 2023. It is now read-only.

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
tib committed May 4, 2023
1 parent 9d70915 commit ee54ea9
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,25 +26,26 @@ import HummingbirdAWS

let app = HBApplication()

// get default client
let client = app.aws.client

// setup default client
app.services.setUpBasicAWSService(eventLoopGroup: app.eventLoopGroup)

// set custom client
app.aws.client = .init(
app.services.aws = .init(
credentialProvider: .static(
accessKeyId: "",
secretAccessKey: ""
accessKeyId: "foo",
secretAccessKey: "bar"
),
retryPolicy: .noRetry,
middlewares: [],
options: .init(
requestLogLevel: .critical,
errorLogLevel: .critical
),
httpClientProvider: .createNewWithEventLoopGroup(
app.eventLoopGroup
),
httpClientProvider: .createNewWithEventLoopGroup(app.eventLoopGroup),
logger: app.logger
)

// get aws client
let client = app.aws
let client = req.aws
```

0 comments on commit ee54ea9

Please sign in to comment.