@effect-aws/client-secrets-manager 1.10.9 → 2.0.0-beta.1

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.
Files changed (38) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +3 -3
  3. package/dist/dts/SecretsManagerClientInstance.d.ts +4 -2
  4. package/dist/dts/SecretsManagerClientInstance.d.ts.map +1 -1
  5. package/dist/dts/SecretsManagerService.d.ts +28 -28
  6. package/dist/dts/SecretsManagerService.d.ts.map +1 -1
  7. package/dist/dts/SecretsManagerServiceConfig.d.ts +2 -1
  8. package/dist/dts/SecretsManagerServiceConfig.d.ts.map +1 -1
  9. package/dist/esm/SecretsManagerClientInstance.js +5 -3
  10. package/dist/esm/SecretsManagerClientInstance.js.map +1 -1
  11. package/dist/esm/SecretsManagerService.js +4 -2
  12. package/dist/esm/SecretsManagerService.js.map +1 -1
  13. package/dist/esm/SecretsManagerServiceConfig.js +7 -6
  14. package/dist/esm/SecretsManagerServiceConfig.js.map +1 -1
  15. package/package.json +8 -14
  16. package/src/SecretsManagerClientInstance.ts +9 -5
  17. package/src/SecretsManagerService.ts +29 -27
  18. package/src/SecretsManagerServiceConfig.ts +8 -7
  19. package/dist/cjs/Errors.d.ts +0 -19
  20. package/dist/cjs/Errors.d.ts.map +0 -1
  21. package/dist/cjs/Errors.js +0 -18
  22. package/dist/cjs/Errors.js.map +0 -1
  23. package/dist/cjs/SecretsManagerClientInstance.d.ts +0 -24
  24. package/dist/cjs/SecretsManagerClientInstance.d.ts.map +0 -1
  25. package/dist/cjs/SecretsManagerClientInstance.js +0 -50
  26. package/dist/cjs/SecretsManagerClientInstance.js.map +0 -1
  27. package/dist/cjs/SecretsManagerService.d.ts +0 -138
  28. package/dist/cjs/SecretsManagerService.d.ts.map +0 -1
  29. package/dist/cjs/SecretsManagerService.js +0 -82
  30. package/dist/cjs/SecretsManagerService.js.map +0 -1
  31. package/dist/cjs/SecretsManagerServiceConfig.d.ts +0 -25
  32. package/dist/cjs/SecretsManagerServiceConfig.d.ts.map +0 -1
  33. package/dist/cjs/SecretsManagerServiceConfig.js +0 -35
  34. package/dist/cjs/SecretsManagerServiceConfig.js.map +0 -1
  35. package/dist/cjs/index.d.ts +0 -44
  36. package/dist/cjs/index.d.ts.map +0 -1
  37. package/dist/cjs/index.js +0 -56
  38. package/dist/cjs/index.js.map +0 -1
@@ -76,8 +76,10 @@ import {
76
76
  } from "@aws-sdk/client-secrets-manager";
77
77
  import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
78
78
  import { Service } from "@effect-aws/commons";
79
- import type { Cause } from "effect";
80
- import { Effect, Layer } from "effect";
79
+ import type * as Cause from "effect/Cause";
80
+ import * as Effect from "effect/Effect";
81
+ import * as Layer from "effect/Layer";
82
+ import * as ServiceMap from "effect/ServiceMap";
81
83
  import type {
82
84
  DecryptionError,
83
85
  EncryptionError,
@@ -134,7 +136,7 @@ interface SecretsManagerService$ {
134
136
  options?: HttpHandlerOptions,
135
137
  ): Effect.Effect<
136
138
  BatchGetSecretValueCommandOutput,
137
- | Cause.TimeoutException
139
+ | Cause.TimeoutError
138
140
  | SdkError
139
141
  | DecryptionError
140
142
  | InternalServiceError
@@ -152,7 +154,7 @@ interface SecretsManagerService$ {
152
154
  options?: HttpHandlerOptions,
153
155
  ): Effect.Effect<
154
156
  CancelRotateSecretCommandOutput,
155
- | Cause.TimeoutException
157
+ | Cause.TimeoutError
156
158
  | SdkError
157
159
  | InternalServiceError
158
160
  | InvalidParameterError
@@ -168,7 +170,7 @@ interface SecretsManagerService$ {
168
170
  options?: HttpHandlerOptions,
169
171
  ): Effect.Effect<
170
172
  CreateSecretCommandOutput,
171
- | Cause.TimeoutException
173
+ | Cause.TimeoutError
172
174
  | SdkError
173
175
  | DecryptionError
174
176
  | EncryptionError
@@ -190,7 +192,7 @@ interface SecretsManagerService$ {
190
192
  options?: HttpHandlerOptions,
191
193
  ): Effect.Effect<
192
194
  DeleteResourcePolicyCommandOutput,
193
- | Cause.TimeoutException
195
+ | Cause.TimeoutError
194
196
  | SdkError
195
197
  | InternalServiceError
196
198
  | InvalidParameterError
@@ -206,7 +208,7 @@ interface SecretsManagerService$ {
206
208
  options?: HttpHandlerOptions,
207
209
  ): Effect.Effect<
208
210
  DeleteSecretCommandOutput,
209
- | Cause.TimeoutException
211
+ | Cause.TimeoutError
210
212
  | SdkError
211
213
  | InternalServiceError
212
214
  | InvalidParameterError
@@ -222,7 +224,7 @@ interface SecretsManagerService$ {
222
224
  options?: HttpHandlerOptions,
223
225
  ): Effect.Effect<
224
226
  DescribeSecretCommandOutput,
225
- Cause.TimeoutException | SdkError | InternalServiceError | InvalidParameterError | ResourceNotFoundError
227
+ Cause.TimeoutError | SdkError | InternalServiceError | InvalidParameterError | ResourceNotFoundError
226
228
  >;
227
229
 
228
230
  /**
@@ -233,7 +235,7 @@ interface SecretsManagerService$ {
233
235
  options?: HttpHandlerOptions,
234
236
  ): Effect.Effect<
235
237
  GetRandomPasswordCommandOutput,
236
- Cause.TimeoutException | SdkError | InternalServiceError | InvalidParameterError | InvalidRequestError
238
+ Cause.TimeoutError | SdkError | InternalServiceError | InvalidParameterError | InvalidRequestError
237
239
  >;
238
240
 
239
241
  /**
@@ -244,7 +246,7 @@ interface SecretsManagerService$ {
244
246
  options?: HttpHandlerOptions,
245
247
  ): Effect.Effect<
246
248
  GetResourcePolicyCommandOutput,
247
- | Cause.TimeoutException
249
+ | Cause.TimeoutError
248
250
  | SdkError
249
251
  | InternalServiceError
250
252
  | InvalidParameterError
@@ -260,7 +262,7 @@ interface SecretsManagerService$ {
260
262
  options?: HttpHandlerOptions,
261
263
  ): Effect.Effect<
262
264
  GetSecretValueCommandOutput,
263
- | Cause.TimeoutException
265
+ | Cause.TimeoutError
264
266
  | SdkError
265
267
  | DecryptionError
266
268
  | InternalServiceError
@@ -277,7 +279,7 @@ interface SecretsManagerService$ {
277
279
  options?: HttpHandlerOptions,
278
280
  ): Effect.Effect<
279
281
  ListSecretVersionIdsCommandOutput,
280
- | Cause.TimeoutException
282
+ | Cause.TimeoutError
281
283
  | SdkError
282
284
  | InternalServiceError
283
285
  | InvalidNextTokenError
@@ -293,7 +295,7 @@ interface SecretsManagerService$ {
293
295
  options?: HttpHandlerOptions,
294
296
  ): Effect.Effect<
295
297
  ListSecretsCommandOutput,
296
- | Cause.TimeoutException
298
+ | Cause.TimeoutError
297
299
  | SdkError
298
300
  | InternalServiceError
299
301
  | InvalidNextTokenError
@@ -309,7 +311,7 @@ interface SecretsManagerService$ {
309
311
  options?: HttpHandlerOptions,
310
312
  ): Effect.Effect<
311
313
  PutResourcePolicyCommandOutput,
312
- | Cause.TimeoutException
314
+ | Cause.TimeoutError
313
315
  | SdkError
314
316
  | InternalServiceError
315
317
  | InvalidParameterError
@@ -327,7 +329,7 @@ interface SecretsManagerService$ {
327
329
  options?: HttpHandlerOptions,
328
330
  ): Effect.Effect<
329
331
  PutSecretValueCommandOutput,
330
- | Cause.TimeoutException
332
+ | Cause.TimeoutError
331
333
  | SdkError
332
334
  | DecryptionError
333
335
  | EncryptionError
@@ -347,7 +349,7 @@ interface SecretsManagerService$ {
347
349
  options?: HttpHandlerOptions,
348
350
  ): Effect.Effect<
349
351
  RemoveRegionsFromReplicationCommandOutput,
350
- | Cause.TimeoutException
352
+ | Cause.TimeoutError
351
353
  | SdkError
352
354
  | InternalServiceError
353
355
  | InvalidParameterError
@@ -363,7 +365,7 @@ interface SecretsManagerService$ {
363
365
  options?: HttpHandlerOptions,
364
366
  ): Effect.Effect<
365
367
  ReplicateSecretToRegionsCommandOutput,
366
- | Cause.TimeoutException
368
+ | Cause.TimeoutError
367
369
  | SdkError
368
370
  | InternalServiceError
369
371
  | InvalidParameterError
@@ -379,7 +381,7 @@ interface SecretsManagerService$ {
379
381
  options?: HttpHandlerOptions,
380
382
  ): Effect.Effect<
381
383
  RestoreSecretCommandOutput,
382
- | Cause.TimeoutException
384
+ | Cause.TimeoutError
383
385
  | SdkError
384
386
  | InternalServiceError
385
387
  | InvalidParameterError
@@ -395,7 +397,7 @@ interface SecretsManagerService$ {
395
397
  options?: HttpHandlerOptions,
396
398
  ): Effect.Effect<
397
399
  RotateSecretCommandOutput,
398
- | Cause.TimeoutException
400
+ | Cause.TimeoutError
399
401
  | SdkError
400
402
  | InternalServiceError
401
403
  | InvalidParameterError
@@ -411,7 +413,7 @@ interface SecretsManagerService$ {
411
413
  options?: HttpHandlerOptions,
412
414
  ): Effect.Effect<
413
415
  StopReplicationToReplicaCommandOutput,
414
- | Cause.TimeoutException
416
+ | Cause.TimeoutError
415
417
  | SdkError
416
418
  | InternalServiceError
417
419
  | InvalidParameterError
@@ -427,7 +429,7 @@ interface SecretsManagerService$ {
427
429
  options?: HttpHandlerOptions,
428
430
  ): Effect.Effect<
429
431
  TagResourceCommandOutput,
430
- | Cause.TimeoutException
432
+ | Cause.TimeoutError
431
433
  | SdkError
432
434
  | InternalServiceError
433
435
  | InvalidParameterError
@@ -443,7 +445,7 @@ interface SecretsManagerService$ {
443
445
  options?: HttpHandlerOptions,
444
446
  ): Effect.Effect<
445
447
  UntagResourceCommandOutput,
446
- | Cause.TimeoutException
448
+ | Cause.TimeoutError
447
449
  | SdkError
448
450
  | InternalServiceError
449
451
  | InvalidParameterError
@@ -459,7 +461,7 @@ interface SecretsManagerService$ {
459
461
  options?: HttpHandlerOptions,
460
462
  ): Effect.Effect<
461
463
  UpdateSecretCommandOutput,
462
- | Cause.TimeoutException
464
+ | Cause.TimeoutError
463
465
  | SdkError
464
466
  | DecryptionError
465
467
  | EncryptionError
@@ -481,7 +483,7 @@ interface SecretsManagerService$ {
481
483
  options?: HttpHandlerOptions,
482
484
  ): Effect.Effect<
483
485
  UpdateSecretVersionStageCommandOutput,
484
- | Cause.TimeoutException
486
+ | Cause.TimeoutError
485
487
  | SdkError
486
488
  | InternalServiceError
487
489
  | InvalidParameterError
@@ -498,7 +500,7 @@ interface SecretsManagerService$ {
498
500
  options?: HttpHandlerOptions,
499
501
  ): Effect.Effect<
500
502
  ValidateResourcePolicyCommandOutput,
501
- | Cause.TimeoutException
503
+ | Cause.TimeoutError
502
504
  | SdkError
503
505
  | InternalServiceError
504
506
  | InvalidParameterError
@@ -529,10 +531,10 @@ export const makeSecretsManagerService = Effect.gen(function*() {
529
531
  * @since 1.0.0
530
532
  * @category models
531
533
  */
532
- export class SecretsManagerService extends Effect.Tag("@effect-aws/client-secrets-manager/SecretsManagerService")<
534
+ export class SecretsManagerService extends ServiceMap.Service<
533
535
  SecretsManagerService,
534
536
  SecretsManagerService$
535
- >() {
537
+ >()("@effect-aws/client-secrets-manager/SecretsManagerService") {
536
538
  static readonly defaultLayer = Layer.effect(this, makeSecretsManagerService).pipe(Layer.provide(Instance.layer));
537
539
  static readonly layer = (config: SecretsManagerService.Config) =>
538
540
  Layer.effect(this, makeSecretsManagerService).pipe(
@@ -3,18 +3,19 @@
3
3
  */
4
4
  import type { SecretsManagerClientConfig } from "@aws-sdk/client-secrets-manager";
5
5
  import { ServiceLogger } from "@effect-aws/commons";
6
- import { Effect, FiberRef, Layer } from "effect";
6
+ import * as Effect from "effect/Effect";
7
7
  import { dual } from "effect/Function";
8
- import { globalValue } from "effect/GlobalValue";
8
+ import * as Layer from "effect/Layer";
9
+ import * as ServiceMap from "effect/ServiceMap";
9
10
  import type { SecretsManagerService } from "./SecretsManagerService.js";
10
11
 
11
12
  /**
12
13
  * @since 1.0.0
13
14
  * @category secrets-manager service config
14
15
  */
15
- const currentSecretsManagerServiceConfig = globalValue(
16
+ const currentSecretsManagerServiceConfig = ServiceMap.Reference<SecretsManagerService.Config>(
16
17
  "@effect-aws/client-secrets-manager/currentSecretsManagerServiceConfig",
17
- () => FiberRef.unsafeMake<SecretsManagerService.Config>({}),
18
+ { defaultValue: () => ({}) },
18
19
  );
19
20
 
20
21
  /**
@@ -27,7 +28,7 @@ export const withSecretsManagerServiceConfig: {
27
28
  } = dual(
28
29
  2,
29
30
  <A, E, R>(effect: Effect.Effect<A, E, R>, config: SecretsManagerService.Config): Effect.Effect<A, E, R> =>
30
- Effect.locally(effect, currentSecretsManagerServiceConfig, config),
31
+ Effect.provideService(effect, currentSecretsManagerServiceConfig, config),
31
32
  );
32
33
 
33
34
  /**
@@ -35,14 +36,14 @@ export const withSecretsManagerServiceConfig: {
35
36
  * @category secrets-manager service config
36
37
  */
37
38
  export const setSecretsManagerServiceConfig = (config: SecretsManagerService.Config) =>
38
- Layer.locallyScoped(currentSecretsManagerServiceConfig, config);
39
+ Layer.succeed(currentSecretsManagerServiceConfig, config);
39
40
 
40
41
  /**
41
42
  * @since 1.0.0
42
43
  * @category adapters
43
44
  */
44
45
  export const toSecretsManagerClientConfig: Effect.Effect<SecretsManagerClientConfig> = Effect.gen(function*() {
45
- const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentSecretsManagerServiceConfig);
46
+ const { logger: serviceLogger, ...config } = yield* currentSecretsManagerServiceConfig;
46
47
 
47
48
  const logger = serviceLogger === true
48
49
  ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger)
@@ -1,19 +0,0 @@
1
- import type { DecryptionFailure, EncryptionFailure, InternalServiceError as InternalServiceException, InvalidNextTokenException, InvalidParameterException, InvalidRequestException, LimitExceededException, MalformedPolicyDocumentException, PreconditionNotMetException, PublicPolicyException, ResourceExistsException, ResourceNotFoundException } from "@aws-sdk/client-secrets-manager";
2
- import type { TaggedException } from "@effect-aws/commons";
3
- export declare const AllServiceErrors: readonly ["DecryptionFailure", "EncryptionFailure", "InternalServiceError", "InvalidNextTokenException", "InvalidParameterException", "InvalidRequestException", "LimitExceededException", "MalformedPolicyDocumentException", "PreconditionNotMetException", "PublicPolicyException", "ResourceExistsException", "ResourceNotFoundException"];
4
- export type DecryptionError = TaggedException<DecryptionFailure>;
5
- export type EncryptionError = TaggedException<EncryptionFailure>;
6
- export type InternalServiceError = TaggedException<InternalServiceException>;
7
- export type InvalidNextTokenError = TaggedException<InvalidNextTokenException>;
8
- export type InvalidParameterError = TaggedException<InvalidParameterException>;
9
- export type InvalidRequestError = TaggedException<InvalidRequestException>;
10
- export type LimitExceededError = TaggedException<LimitExceededException>;
11
- export type MalformedPolicyDocumentError = TaggedException<MalformedPolicyDocumentException>;
12
- export type PreconditionNotMetError = TaggedException<PreconditionNotMetException>;
13
- export type PublicPolicyError = TaggedException<PublicPolicyException>;
14
- export type ResourceExistsError = TaggedException<ResourceExistsException>;
15
- export type ResourceNotFoundError = TaggedException<ResourceNotFoundException>;
16
- export type SdkError = TaggedException<Error & {
17
- name: "SdkError";
18
- }>;
19
- //# sourceMappingURL=Errors.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,iBAAiB,EACjB,oBAAoB,IAAI,wBAAwB,EAChD,yBAAyB,EACzB,yBAAyB,EACzB,uBAAuB,EACvB,sBAAsB,EACtB,gCAAgC,EAChC,2BAA2B,EAC3B,qBAAqB,EACrB,uBAAuB,EACvB,yBAAyB,EAC1B,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,eAAO,MAAM,gBAAgB,gVAanB,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC,iBAAiB,CAAC,CAAC;AACjE,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC,iBAAiB,CAAC,CAAC;AACjE,MAAM,MAAM,oBAAoB,GAAG,eAAe,CAAC,wBAAwB,CAAC,CAAC;AAC7E,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,yBAAyB,CAAC,CAAC;AAC/E,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,yBAAyB,CAAC,CAAC;AAC/E,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC,uBAAuB,CAAC,CAAC;AAC3E,MAAM,MAAM,kBAAkB,GAAG,eAAe,CAAC,sBAAsB,CAAC,CAAC;AACzE,MAAM,MAAM,4BAA4B,GAAG,eAAe,CAAC,gCAAgC,CAAC,CAAC;AAC7F,MAAM,MAAM,uBAAuB,GAAG,eAAe,CAAC,2BAA2B,CAAC,CAAC;AACnF,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC,qBAAqB,CAAC,CAAC;AACvE,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC,uBAAuB,CAAC,CAAC;AAC3E,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,yBAAyB,CAAC,CAAC;AAC/E,MAAM,MAAM,QAAQ,GAAG,eAAe,CAAC,KAAK,GAAG;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,CAAC"}
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AllServiceErrors = void 0;
4
- exports.AllServiceErrors = [
5
- "DecryptionFailure",
6
- "EncryptionFailure",
7
- "InternalServiceError",
8
- "InvalidNextTokenException",
9
- "InvalidParameterException",
10
- "InvalidRequestException",
11
- "LimitExceededException",
12
- "MalformedPolicyDocumentException",
13
- "PreconditionNotMetException",
14
- "PublicPolicyException",
15
- "ResourceExistsException",
16
- "ResourceNotFoundException",
17
- ];
18
- //# sourceMappingURL=Errors.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":";;;AAgBa,QAAA,gBAAgB,GAAG;IAC9B,mBAAmB;IACnB,mBAAmB;IACnB,sBAAsB;IACtB,2BAA2B;IAC3B,2BAA2B;IAC3B,yBAAyB;IACzB,wBAAwB;IACxB,kCAAkC;IAClC,6BAA6B;IAC7B,uBAAuB;IACvB,yBAAyB;IACzB,2BAA2B;CACnB,CAAC"}
@@ -1,24 +0,0 @@
1
- /**
2
- * @since 1.0.0
3
- */
4
- import { SecretsManagerClient } from "@aws-sdk/client-secrets-manager";
5
- import { Context, Effect, Layer } from "effect";
6
- declare const SecretsManagerClientInstance_base: Context.TagClass<SecretsManagerClientInstance, "@effect-aws/client-secrets-manager/SecretsManagerClientInstance", SecretsManagerClient>;
7
- /**
8
- * @since 1.0.0
9
- * @category tags
10
- */
11
- export declare class SecretsManagerClientInstance extends SecretsManagerClientInstance_base {
12
- }
13
- /**
14
- * @since 1.0.0
15
- * @category constructors
16
- */
17
- export declare const make: Effect.Effect<SecretsManagerClient, never, import("effect/Scope").Scope>;
18
- /**
19
- * @since 1.0.0
20
- * @category layers
21
- */
22
- export declare const layer: Layer.Layer<SecretsManagerClientInstance, never, never>;
23
- export {};
24
- //# sourceMappingURL=SecretsManagerClientInstance.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SecretsManagerClientInstance.d.ts","sourceRoot":"","sources":["../../src/SecretsManagerClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;;AAGhD;;;GAGG;AACH,qBAAa,4BAA6B,SAAQ,iCAEK;CAAG;AAE1D;;;GAGG;AACH,eAAO,MAAM,IAAI,0EAOhB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,KAAK,yDAAmD,CAAC"}
@@ -1,50 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.layer = exports.make = exports.SecretsManagerClientInstance = void 0;
27
- /**
28
- * @since 1.0.0
29
- */
30
- const client_secrets_manager_1 = require("@aws-sdk/client-secrets-manager");
31
- const effect_1 = require("effect");
32
- const SecretsManagerServiceConfig = __importStar(require("./SecretsManagerServiceConfig.js"));
33
- /**
34
- * @since 1.0.0
35
- * @category tags
36
- */
37
- class SecretsManagerClientInstance extends effect_1.Context.Tag("@effect-aws/client-secrets-manager/SecretsManagerClientInstance")() {
38
- }
39
- exports.SecretsManagerClientInstance = SecretsManagerClientInstance;
40
- /**
41
- * @since 1.0.0
42
- * @category constructors
43
- */
44
- exports.make = effect_1.Effect.flatMap(SecretsManagerServiceConfig.toSecretsManagerClientConfig, (config) => effect_1.Effect.acquireRelease(effect_1.Effect.sync(() => new client_secrets_manager_1.SecretsManagerClient(config)), (client) => effect_1.Effect.sync(() => client.destroy())));
45
- /**
46
- * @since 1.0.0
47
- * @category layers
48
- */
49
- exports.layer = effect_1.Layer.scoped(SecretsManagerClientInstance, exports.make);
50
- //# sourceMappingURL=SecretsManagerClientInstance.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SecretsManagerClientInstance.js","sourceRoot":"","sources":["../../src/SecretsManagerClientInstance.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,4EAAuE;AACvE,mCAAgD;AAChD,8FAAgF;AAEhF;;;GAGG;AACH,MAAa,4BAA6B,SAAQ,gBAAO,CAAC,GAAG,CAC3D,iEAAiE,CAClE,EAAsD;CAAG;AAF1D,oEAE0D;AAE1D;;;GAGG;AACU,QAAA,IAAI,GAAG,eAAM,CAAC,OAAO,CAChC,2BAA2B,CAAC,4BAA4B,EACxD,CAAC,MAAM,EAAE,EAAE,CACT,eAAM,CAAC,cAAc,CACnB,eAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,6CAAoB,CAAC,MAAM,CAAC,CAAC,EACnD,CAAC,MAAM,EAAE,EAAE,CAAC,eAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,CAChD,CACJ,CAAC;AAEF;;;GAGG;AACU,QAAA,KAAK,GAAG,cAAK,CAAC,MAAM,CAAC,4BAA4B,EAAE,YAAI,CAAC,CAAC"}
@@ -1,138 +0,0 @@
1
- /**
2
- * @since 1.0.0
3
- */
4
- import { type BatchGetSecretValueCommandInput, type BatchGetSecretValueCommandOutput, type CancelRotateSecretCommandInput, type CancelRotateSecretCommandOutput, type CreateSecretCommandInput, type CreateSecretCommandOutput, type DeleteResourcePolicyCommandInput, type DeleteResourcePolicyCommandOutput, type DeleteSecretCommandInput, type DeleteSecretCommandOutput, type DescribeSecretCommandInput, type DescribeSecretCommandOutput, type GetRandomPasswordCommandInput, type GetRandomPasswordCommandOutput, type GetResourcePolicyCommandInput, type GetResourcePolicyCommandOutput, type GetSecretValueCommandInput, type GetSecretValueCommandOutput, type ListSecretsCommandInput, type ListSecretsCommandOutput, type ListSecretVersionIdsCommandInput, type ListSecretVersionIdsCommandOutput, type PutResourcePolicyCommandInput, type PutResourcePolicyCommandOutput, type PutSecretValueCommandInput, type PutSecretValueCommandOutput, type RemoveRegionsFromReplicationCommandInput, type RemoveRegionsFromReplicationCommandOutput, type ReplicateSecretToRegionsCommandInput, type ReplicateSecretToRegionsCommandOutput, type RestoreSecretCommandInput, type RestoreSecretCommandOutput, type RotateSecretCommandInput, type RotateSecretCommandOutput, type SecretsManagerClient, type SecretsManagerClientConfig, type StopReplicationToReplicaCommandInput, type StopReplicationToReplicaCommandOutput, type TagResourceCommandInput, type TagResourceCommandOutput, type UntagResourceCommandInput, type UntagResourceCommandOutput, type UpdateSecretCommandInput, type UpdateSecretCommandOutput, type UpdateSecretVersionStageCommandInput, type UpdateSecretVersionStageCommandOutput, type ValidateResourcePolicyCommandInput, type ValidateResourcePolicyCommandOutput } from "@aws-sdk/client-secrets-manager";
5
- import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
6
- import type { Cause } from "effect";
7
- import { Effect, Layer } from "effect";
8
- import type { DecryptionError, EncryptionError, InternalServiceError, InvalidNextTokenError, InvalidParameterError, InvalidRequestError, LimitExceededError, MalformedPolicyDocumentError, PreconditionNotMetError, PublicPolicyError, ResourceExistsError, ResourceNotFoundError, SdkError } from "./Errors.js";
9
- import * as Instance from "./SecretsManagerClientInstance.js";
10
- interface SecretsManagerService$ {
11
- readonly _: unique symbol;
12
- /**
13
- * @see {@link BatchGetSecretValueCommand}
14
- */
15
- batchGetSecretValue(args: BatchGetSecretValueCommandInput, options?: HttpHandlerOptions): Effect.Effect<BatchGetSecretValueCommandOutput, Cause.TimeoutException | SdkError | DecryptionError | InternalServiceError | InvalidNextTokenError | InvalidParameterError | InvalidRequestError | ResourceNotFoundError>;
16
- /**
17
- * @see {@link CancelRotateSecretCommand}
18
- */
19
- cancelRotateSecret(args: CancelRotateSecretCommandInput, options?: HttpHandlerOptions): Effect.Effect<CancelRotateSecretCommandOutput, Cause.TimeoutException | SdkError | InternalServiceError | InvalidParameterError | InvalidRequestError | ResourceNotFoundError>;
20
- /**
21
- * @see {@link CreateSecretCommand}
22
- */
23
- createSecret(args: CreateSecretCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateSecretCommandOutput, Cause.TimeoutException | SdkError | DecryptionError | EncryptionError | InternalServiceError | InvalidParameterError | InvalidRequestError | LimitExceededError | MalformedPolicyDocumentError | PreconditionNotMetError | ResourceExistsError | ResourceNotFoundError>;
24
- /**
25
- * @see {@link DeleteResourcePolicyCommand}
26
- */
27
- deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteResourcePolicyCommandOutput, Cause.TimeoutException | SdkError | InternalServiceError | InvalidParameterError | InvalidRequestError | ResourceNotFoundError>;
28
- /**
29
- * @see {@link DeleteSecretCommand}
30
- */
31
- deleteSecret(args: DeleteSecretCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteSecretCommandOutput, Cause.TimeoutException | SdkError | InternalServiceError | InvalidParameterError | InvalidRequestError | ResourceNotFoundError>;
32
- /**
33
- * @see {@link DescribeSecretCommand}
34
- */
35
- describeSecret(args: DescribeSecretCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeSecretCommandOutput, Cause.TimeoutException | SdkError | InternalServiceError | InvalidParameterError | ResourceNotFoundError>;
36
- /**
37
- * @see {@link GetRandomPasswordCommand}
38
- */
39
- getRandomPassword(args: GetRandomPasswordCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetRandomPasswordCommandOutput, Cause.TimeoutException | SdkError | InternalServiceError | InvalidParameterError | InvalidRequestError>;
40
- /**
41
- * @see {@link GetResourcePolicyCommand}
42
- */
43
- getResourcePolicy(args: GetResourcePolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetResourcePolicyCommandOutput, Cause.TimeoutException | SdkError | InternalServiceError | InvalidParameterError | InvalidRequestError | ResourceNotFoundError>;
44
- /**
45
- * @see {@link GetSecretValueCommand}
46
- */
47
- getSecretValue(args: GetSecretValueCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetSecretValueCommandOutput, Cause.TimeoutException | SdkError | DecryptionError | InternalServiceError | InvalidParameterError | InvalidRequestError | ResourceNotFoundError>;
48
- /**
49
- * @see {@link ListSecretVersionIdsCommand}
50
- */
51
- listSecretVersionIds(args: ListSecretVersionIdsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListSecretVersionIdsCommandOutput, Cause.TimeoutException | SdkError | InternalServiceError | InvalidNextTokenError | InvalidParameterError | ResourceNotFoundError>;
52
- /**
53
- * @see {@link ListSecretsCommand}
54
- */
55
- listSecrets(args: ListSecretsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListSecretsCommandOutput, Cause.TimeoutException | SdkError | InternalServiceError | InvalidNextTokenError | InvalidParameterError | InvalidRequestError>;
56
- /**
57
- * @see {@link PutResourcePolicyCommand}
58
- */
59
- putResourcePolicy(args: PutResourcePolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<PutResourcePolicyCommandOutput, Cause.TimeoutException | SdkError | InternalServiceError | InvalidParameterError | InvalidRequestError | MalformedPolicyDocumentError | PublicPolicyError | ResourceNotFoundError>;
60
- /**
61
- * @see {@link PutSecretValueCommand}
62
- */
63
- putSecretValue(args: PutSecretValueCommandInput, options?: HttpHandlerOptions): Effect.Effect<PutSecretValueCommandOutput, Cause.TimeoutException | SdkError | DecryptionError | EncryptionError | InternalServiceError | InvalidParameterError | InvalidRequestError | LimitExceededError | ResourceExistsError | ResourceNotFoundError>;
64
- /**
65
- * @see {@link RemoveRegionsFromReplicationCommand}
66
- */
67
- removeRegionsFromReplication(args: RemoveRegionsFromReplicationCommandInput, options?: HttpHandlerOptions): Effect.Effect<RemoveRegionsFromReplicationCommandOutput, Cause.TimeoutException | SdkError | InternalServiceError | InvalidParameterError | InvalidRequestError | ResourceNotFoundError>;
68
- /**
69
- * @see {@link ReplicateSecretToRegionsCommand}
70
- */
71
- replicateSecretToRegions(args: ReplicateSecretToRegionsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ReplicateSecretToRegionsCommandOutput, Cause.TimeoutException | SdkError | InternalServiceError | InvalidParameterError | InvalidRequestError | ResourceNotFoundError>;
72
- /**
73
- * @see {@link RestoreSecretCommand}
74
- */
75
- restoreSecret(args: RestoreSecretCommandInput, options?: HttpHandlerOptions): Effect.Effect<RestoreSecretCommandOutput, Cause.TimeoutException | SdkError | InternalServiceError | InvalidParameterError | InvalidRequestError | ResourceNotFoundError>;
76
- /**
77
- * @see {@link RotateSecretCommand}
78
- */
79
- rotateSecret(args: RotateSecretCommandInput, options?: HttpHandlerOptions): Effect.Effect<RotateSecretCommandOutput, Cause.TimeoutException | SdkError | InternalServiceError | InvalidParameterError | InvalidRequestError | ResourceNotFoundError>;
80
- /**
81
- * @see {@link StopReplicationToReplicaCommand}
82
- */
83
- stopReplicationToReplica(args: StopReplicationToReplicaCommandInput, options?: HttpHandlerOptions): Effect.Effect<StopReplicationToReplicaCommandOutput, Cause.TimeoutException | SdkError | InternalServiceError | InvalidParameterError | InvalidRequestError | ResourceNotFoundError>;
84
- /**
85
- * @see {@link TagResourceCommand}
86
- */
87
- tagResource(args: TagResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<TagResourceCommandOutput, Cause.TimeoutException | SdkError | InternalServiceError | InvalidParameterError | InvalidRequestError | ResourceNotFoundError>;
88
- /**
89
- * @see {@link UntagResourceCommand}
90
- */
91
- untagResource(args: UntagResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<UntagResourceCommandOutput, Cause.TimeoutException | SdkError | InternalServiceError | InvalidParameterError | InvalidRequestError | ResourceNotFoundError>;
92
- /**
93
- * @see {@link UpdateSecretCommand}
94
- */
95
- updateSecret(args: UpdateSecretCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateSecretCommandOutput, Cause.TimeoutException | SdkError | DecryptionError | EncryptionError | InternalServiceError | InvalidParameterError | InvalidRequestError | LimitExceededError | MalformedPolicyDocumentError | PreconditionNotMetError | ResourceExistsError | ResourceNotFoundError>;
96
- /**
97
- * @see {@link UpdateSecretVersionStageCommand}
98
- */
99
- updateSecretVersionStage(args: UpdateSecretVersionStageCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateSecretVersionStageCommandOutput, Cause.TimeoutException | SdkError | InternalServiceError | InvalidParameterError | InvalidRequestError | LimitExceededError | ResourceNotFoundError>;
100
- /**
101
- * @see {@link ValidateResourcePolicyCommand}
102
- */
103
- validateResourcePolicy(args: ValidateResourcePolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<ValidateResourcePolicyCommandOutput, Cause.TimeoutException | SdkError | InternalServiceError | InvalidParameterError | InvalidRequestError | MalformedPolicyDocumentError | ResourceNotFoundError>;
104
- }
105
- /**
106
- * @since 1.0.0
107
- * @category constructors
108
- */
109
- export declare const makeSecretsManagerService: Effect.Effect<SecretsManagerService$, never, Instance.SecretsManagerClientInstance>;
110
- declare const SecretsManagerService_base: import("effect/Context").TagClass<SecretsManagerService, "@effect-aws/client-secrets-manager/SecretsManagerService", SecretsManagerService$> & Effect.Tag.Proxy<SecretsManagerService, SecretsManagerService$> & {
111
- use: <X>(body: (_: SecretsManagerService$) => X) => [X] extends [Effect.Effect<infer A, infer E, infer R>] ? Effect.Effect<A, E, SecretsManagerService | R> : [X] extends [PromiseLike<infer A_1>] ? Effect.Effect<A_1, Cause.UnknownException, SecretsManagerService> : Effect.Effect<X, never, SecretsManagerService>;
112
- };
113
- /**
114
- * @since 1.0.0
115
- * @category models
116
- */
117
- export declare class SecretsManagerService extends SecretsManagerService_base {
118
- static readonly defaultLayer: Layer.Layer<SecretsManagerService, never, never>;
119
- static readonly layer: (config: SecretsManagerService.Config) => Layer.Layer<SecretsManagerService, never, never>;
120
- static readonly baseLayer: (evaluate: (defaultConfig: SecretsManagerClientConfig) => SecretsManagerClient) => Layer.Layer<SecretsManagerService, never, never>;
121
- }
122
- /**
123
- * @since 1.0.0
124
- */
125
- export declare namespace SecretsManagerService {
126
- /**
127
- * @since 1.0.0
128
- */
129
- interface Config extends Omit<SecretsManagerClientConfig, "logger"> {
130
- readonly logger?: ServiceLogger.ServiceLoggerConstructorProps | true;
131
- }
132
- /**
133
- * @since 1.0.0
134
- */
135
- type Type = SecretsManagerService$;
136
- }
137
- export {};
138
- //# sourceMappingURL=SecretsManagerService.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SecretsManagerService.d.ts","sourceRoot":"","sources":["../../src/SecretsManagerService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,E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,MAAM,sDAIzD;IACJ,MAAM,CAAC,QAAQ,CAAC,SAAS,aACb,CAAC,aAAa,EAAE,0BAA0B,KAAK,oBAAoB,sDAS3E;CACL;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,qBAAqB,CAAC;IAC7C;;OAEG;IACH,UAAiB,MAAO,SAAQ,IAAI,CAAC,0BAA0B,EAAE,QAAQ,CAAC;QACxE,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,6BAA6B,GAAG,IAAI,CAAC;KACtE;IAED;;OAEG;IACH,KAAY,IAAI,GAAG,sBAAsB,CAAC;CAC3C"}
@@ -1,82 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.SecretsManagerService = exports.makeSecretsManagerService = void 0;
27
- /**
28
- * @since 1.0.0
29
- */
30
- const client_secrets_manager_1 = require("@aws-sdk/client-secrets-manager");
31
- const commons_1 = require("@effect-aws/commons");
32
- const effect_1 = require("effect");
33
- const Errors_js_1 = require("./Errors.js");
34
- const Instance = __importStar(require("./SecretsManagerClientInstance.js"));
35
- const SecretsManagerServiceConfig = __importStar(require("./SecretsManagerServiceConfig.js"));
36
- const commands = {
37
- BatchGetSecretValueCommand: client_secrets_manager_1.BatchGetSecretValueCommand,
38
- CancelRotateSecretCommand: client_secrets_manager_1.CancelRotateSecretCommand,
39
- CreateSecretCommand: client_secrets_manager_1.CreateSecretCommand,
40
- DeleteResourcePolicyCommand: client_secrets_manager_1.DeleteResourcePolicyCommand,
41
- DeleteSecretCommand: client_secrets_manager_1.DeleteSecretCommand,
42
- DescribeSecretCommand: client_secrets_manager_1.DescribeSecretCommand,
43
- GetRandomPasswordCommand: client_secrets_manager_1.GetRandomPasswordCommand,
44
- GetResourcePolicyCommand: client_secrets_manager_1.GetResourcePolicyCommand,
45
- GetSecretValueCommand: client_secrets_manager_1.GetSecretValueCommand,
46
- ListSecretVersionIdsCommand: client_secrets_manager_1.ListSecretVersionIdsCommand,
47
- ListSecretsCommand: client_secrets_manager_1.ListSecretsCommand,
48
- PutResourcePolicyCommand: client_secrets_manager_1.PutResourcePolicyCommand,
49
- PutSecretValueCommand: client_secrets_manager_1.PutSecretValueCommand,
50
- RemoveRegionsFromReplicationCommand: client_secrets_manager_1.RemoveRegionsFromReplicationCommand,
51
- ReplicateSecretToRegionsCommand: client_secrets_manager_1.ReplicateSecretToRegionsCommand,
52
- RestoreSecretCommand: client_secrets_manager_1.RestoreSecretCommand,
53
- RotateSecretCommand: client_secrets_manager_1.RotateSecretCommand,
54
- StopReplicationToReplicaCommand: client_secrets_manager_1.StopReplicationToReplicaCommand,
55
- TagResourceCommand: client_secrets_manager_1.TagResourceCommand,
56
- UntagResourceCommand: client_secrets_manager_1.UntagResourceCommand,
57
- UpdateSecretCommand: client_secrets_manager_1.UpdateSecretCommand,
58
- UpdateSecretVersionStageCommand: client_secrets_manager_1.UpdateSecretVersionStageCommand,
59
- ValidateResourcePolicyCommand: client_secrets_manager_1.ValidateResourcePolicyCommand,
60
- };
61
- /**
62
- * @since 1.0.0
63
- * @category constructors
64
- */
65
- exports.makeSecretsManagerService = effect_1.Effect.gen(function* () {
66
- const client = yield* Instance.SecretsManagerClientInstance;
67
- return yield* commons_1.Service.fromClientAndCommands(client, commands, {
68
- errorTags: Errors_js_1.AllServiceErrors,
69
- resolveClientConfig: SecretsManagerServiceConfig.toSecretsManagerClientConfig,
70
- });
71
- });
72
- /**
73
- * @since 1.0.0
74
- * @category models
75
- */
76
- class SecretsManagerService extends effect_1.Effect.Tag("@effect-aws/client-secrets-manager/SecretsManagerService")() {
77
- static defaultLayer = effect_1.Layer.effect(this, exports.makeSecretsManagerService).pipe(effect_1.Layer.provide(Instance.layer));
78
- static layer = (config) => effect_1.Layer.effect(this, exports.makeSecretsManagerService).pipe(effect_1.Layer.provide(Instance.layer), effect_1.Layer.provide(SecretsManagerServiceConfig.setSecretsManagerServiceConfig(config)));
79
- static baseLayer = (evaluate) => effect_1.Layer.effect(this, exports.makeSecretsManagerService).pipe(effect_1.Layer.provide(effect_1.Layer.effect(Instance.SecretsManagerClientInstance, effect_1.Effect.map(SecretsManagerServiceConfig.toSecretsManagerClientConfig, evaluate))));
80
- }
81
- exports.SecretsManagerService = SecretsManagerService;
82
- //# sourceMappingURL=SecretsManagerService.js.map