@effect-aws/ssm 1.1.0 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -10
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -38,10 +38,9 @@ program.pipe(
|
|
|
38
38
|
With custom service layer:
|
|
39
39
|
|
|
40
40
|
```typescript
|
|
41
|
-
import {
|
|
42
|
-
import { SSMClient } from "@aws-sdk/client-ssm";
|
|
43
|
-
import { BaseSSMServiceLayer, SSMClientInstance } from "@effect-aws/client-ssm";
|
|
41
|
+
import { SSM } from "@effect-aws/client-ssm";
|
|
44
42
|
import { fromParameterStore } from "@effect-aws/ssm";
|
|
43
|
+
import { Config, Console, Effect } from "effect";
|
|
45
44
|
|
|
46
45
|
const program = Effect.gen(function* () {
|
|
47
46
|
const param: string = yield* Config.string("my_parameter_name");
|
|
@@ -49,15 +48,10 @@ const program = Effect.gen(function* () {
|
|
|
49
48
|
yield* Console.log("Parameter from Parameter Store: ", param);
|
|
50
49
|
});
|
|
51
50
|
|
|
52
|
-
const
|
|
53
|
-
SSMClientInstance,
|
|
54
|
-
new SSMClient({ region: "eu-central-1" }),
|
|
55
|
-
);
|
|
56
|
-
|
|
57
|
-
const serviceLayer = Layer.provide(BaseSSMServiceLayer, SSMClientInstanceLayer);
|
|
51
|
+
const serviceLayer = SSM.layer({ region: "eu-central-1" });
|
|
58
52
|
|
|
59
53
|
program.pipe(
|
|
60
54
|
Effect.withConfigProvider(fromParameterStore({ serviceLayer })),
|
|
61
|
-
Effect.runPromise
|
|
55
|
+
Effect.runPromise
|
|
62
56
|
);
|
|
63
57
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect-aws/ssm",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Effectful AWS SSM functions",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"homepage": "https://floydspace.github.io/effect-aws/docs/ssm",
|
|
17
17
|
"peerDependencies": {
|
|
18
18
|
"effect": ">=3.0.4 <4.0.0",
|
|
19
|
-
"@effect-aws/client-ssm": "^1.9.
|
|
19
|
+
"@effect-aws/client-ssm": "^1.9.5"
|
|
20
20
|
},
|
|
21
21
|
"main": "./dist/cjs/index.js",
|
|
22
22
|
"module": "./dist/esm/index.js",
|