Skip to content
This repository was archived by the owner on Nov 14, 2017. It is now read-only.

Commit a06d493

Browse files
author
juan62
committed
# mod: README
1 parent 8be1b5a commit a06d493

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

README.md

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,15 @@ libraryDependencies += "com.github.juan62" % "sqscala" % "1.0.1"
1919
put application.conf in your classpath(resources).
2020

2121
```conf
22-
aws {
23-
sqs {
24-
# endpoint-url or region
25-
# If you want to connect to localhost, example 'endpoint-url="http://localhost:9324"'
26-
# endpoint-url = null
27-
region = "us-west-2"
28-
29-
# max-retry = 3
30-
# max-connections = 50
31-
# connection-timeout-ms = 50000 # millis
32-
# socket-timeout-ms = 50000 # millis
33-
}
34-
}
22+
# endpoint-url or region
23+
# If you want to connect to localhost, example 'endpoint-url="http://localhost:9324"'
24+
# endpoint-url = null
25+
region = "us-west-2"
26+
27+
# max-retry = 3
28+
# max-connections = 50
29+
# connection-timeout-ms = 50000 # millis
30+
# socket-timeout-ms = 50000 # millis
3531
```
3632

3733
then your code, like
@@ -42,6 +38,9 @@ import com.github.juan62.sqscala._
4238
val client = ConfiguredSqsClient()
4339
```
4440

41+
of course, you can wrap with container(e.g. `aws.sqs { ... }`), then use `ConfiguredSqsClient("aws.sqs")`.
42+
43+
4544
### 1b. prepare by code
4645

4746
You can use SqsClient with credential provider and regions.

0 commit comments

Comments
 (0)