This repository was archived by the owner on Nov 14, 2017. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Original file line number Diff line number Diff line change @@ -19,19 +19,15 @@ libraryDependencies += "com.github.juan62" % "sqscala" % "1.0.1"
19
19
put application.conf in your classpath(resources).
20
20
21
21
``` 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
35
31
```
36
32
37
33
then your code, like
@@ -42,6 +38,9 @@ import com.github.juan62.sqscala._
42
38
val client = ConfiguredSqsClient ()
43
39
```
44
40
41
+ of course, you can wrap with container(e.g. ` aws.sqs { ... } ` ), then use ` ConfiguredSqsClient("aws.sqs") ` .
42
+
43
+
45
44
### 1b. prepare by code
46
45
47
46
You can use SqsClient with credential provider and regions.
You can’t perform that action at this time.
0 commit comments