@effect-aws/client-kms 1.2.0 → 1.9.0

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 (68) hide show
  1. package/Errors/package.json +6 -0
  2. package/KMSClientInstance/package.json +6 -0
  3. package/KMSService/package.json +6 -0
  4. package/KMSServiceConfig/package.json +6 -0
  5. package/{lib → dist/cjs}/Errors.d.ts +7 -12
  6. package/dist/cjs/Errors.d.ts.map +1 -0
  7. package/dist/cjs/Errors.js +56 -0
  8. package/dist/cjs/Errors.js.map +1 -0
  9. package/dist/cjs/KMSClientInstance.d.ts +24 -0
  10. package/dist/cjs/KMSClientInstance.d.ts.map +1 -0
  11. package/dist/cjs/KMSClientInstance.js +50 -0
  12. package/dist/cjs/KMSClientInstance.js.map +1 -0
  13. package/{lib → dist/cjs}/KMSService.d.ts +16 -38
  14. package/dist/cjs/KMSService.d.ts.map +1 -0
  15. package/dist/cjs/KMSService.js +109 -0
  16. package/dist/cjs/KMSService.js.map +1 -0
  17. package/dist/cjs/KMSServiceConfig.d.ts +25 -0
  18. package/dist/cjs/KMSServiceConfig.d.ts.map +1 -0
  19. package/dist/cjs/KMSServiceConfig.js +35 -0
  20. package/dist/cjs/KMSServiceConfig.js.map +1 -0
  21. package/dist/cjs/index.d.ts +39 -0
  22. package/dist/cjs/index.d.ts.map +1 -0
  23. package/dist/cjs/index.js +56 -0
  24. package/dist/cjs/index.js.map +1 -0
  25. package/dist/dts/Errors.d.ts +55 -0
  26. package/dist/dts/Errors.d.ts.map +1 -0
  27. package/dist/dts/KMSClientInstance.d.ts +24 -0
  28. package/dist/dts/KMSClientInstance.d.ts.map +1 -0
  29. package/dist/dts/KMSService.d.ts +308 -0
  30. package/dist/dts/KMSService.d.ts.map +1 -0
  31. package/dist/dts/KMSServiceConfig.d.ts +25 -0
  32. package/dist/dts/KMSServiceConfig.d.ts.map +1 -0
  33. package/dist/dts/index.d.ts +39 -0
  34. package/dist/dts/index.d.ts.map +1 -0
  35. package/dist/esm/Errors.js +53 -0
  36. package/dist/esm/Errors.js.map +1 -0
  37. package/dist/esm/KMSClientInstance.js +23 -0
  38. package/dist/esm/KMSClientInstance.js.map +1 -0
  39. package/dist/esm/KMSService.js +82 -0
  40. package/dist/esm/KMSService.js.map +1 -0
  41. package/dist/esm/KMSServiceConfig.js +31 -0
  42. package/dist/esm/KMSServiceConfig.js.map +1 -0
  43. package/dist/esm/index.js +27 -0
  44. package/dist/esm/index.js.map +1 -0
  45. package/dist/esm/package.json +4 -0
  46. package/package.json +60 -43
  47. package/src/Errors.ts +159 -0
  48. package/src/KMSClientInstance.ts +33 -0
  49. package/src/KMSService.ts +1224 -0
  50. package/src/KMSServiceConfig.ts +51 -0
  51. package/src/index.ts +44 -0
  52. package/CHANGELOG.md +0 -35
  53. package/docgen.json +0 -8
  54. package/lib/Errors.js +0 -56
  55. package/lib/KMSClientInstance.d.ts +0 -31
  56. package/lib/KMSClientInstance.js +0 -57
  57. package/lib/KMSClientInstanceConfig.d.ts +0 -23
  58. package/lib/KMSClientInstanceConfig.js +0 -44
  59. package/lib/KMSService.js +0 -141
  60. package/lib/esm/Errors.js +0 -53
  61. package/lib/esm/KMSClientInstance.js +0 -30
  62. package/lib/esm/KMSClientInstanceConfig.js +0 -40
  63. package/lib/esm/KMSService.js +0 -137
  64. package/lib/esm/index.js +0 -5
  65. package/lib/index.d.ts +0 -4
  66. package/lib/index.js +0 -21
  67. package/project.json +0 -77
  68. package/vitest.config.ts +0 -3
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../dist/cjs/Errors.js",
3
+ "module": "../dist/esm/Errors.js",
4
+ "types": "../dist/dts/Errors.d.ts",
5
+ "sideEffects": []
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../dist/cjs/KMSClientInstance.js",
3
+ "module": "../dist/esm/KMSClientInstance.js",
4
+ "types": "../dist/dts/KMSClientInstance.d.ts",
5
+ "sideEffects": []
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../dist/cjs/KMSService.js",
3
+ "module": "../dist/esm/KMSService.js",
4
+ "types": "../dist/dts/KMSService.d.ts",
5
+ "sideEffects": []
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../dist/cjs/KMSServiceConfig.js",
3
+ "module": "../dist/esm/KMSServiceConfig.js",
4
+ "types": "../dist/dts/KMSServiceConfig.d.ts",
5
+ "sideEffects": []
6
+ }
@@ -1,11 +1,7 @@
1
- import type { AlreadyExistsException, CloudHsmClusterInUseException, CloudHsmClusterInvalidConfigurationException, CloudHsmClusterNotActiveException, CloudHsmClusterNotFoundException, CloudHsmClusterNotRelatedException, ConflictException, CustomKeyStoreHasCMKsException, CustomKeyStoreInvalidStateException, CustomKeyStoreNameInUseException, CustomKeyStoreNotFoundException, DependencyTimeoutException, DisabledException, DryRunOperationException, ExpiredImportTokenException, IncorrectKeyException, IncorrectKeyMaterialException, IncorrectTrustAnchorException, InvalidAliasNameException, InvalidArnException, InvalidCiphertextException, InvalidGrantIdException, InvalidGrantTokenException, InvalidImportTokenException, InvalidKeyUsageException, InvalidMarkerException, KMSInternalException, KMSInvalidMacException, KMSInvalidSignatureException, KMSInvalidStateException, KeyUnavailableException, LimitExceededException, MalformedPolicyDocumentException, NotFoundException, TagException, UnsupportedOperationException, XksKeyAlreadyInUseException, XksKeyInvalidConfigurationException, XksKeyNotFoundException, XksProxyIncorrectAuthenticationCredentialException, XksProxyInvalidConfigurationException, XksProxyInvalidResponseException, XksProxyUriEndpointInUseException, XksProxyUriInUseException, XksProxyUriUnreachableException, XksProxyVpcEndpointServiceInUseException, XksProxyVpcEndpointServiceInvalidConfigurationException, XksProxyVpcEndpointServiceNotFoundException } from "@aws-sdk/client-kms";
2
- import { Data } from "effect";
3
- export declare const AllServiceErrors: string[];
4
- export type TaggedException<T extends {
5
- name: string;
6
- }> = T & {
7
- readonly _tag: T["name"];
8
- };
1
+ import type { AlreadyExistsException, CloudHsmClusterInUseException, CloudHsmClusterInvalidConfigurationException, CloudHsmClusterNotActiveException, CloudHsmClusterNotFoundException, CloudHsmClusterNotRelatedException, ConflictException, CustomKeyStoreHasCMKsException, CustomKeyStoreInvalidStateException, CustomKeyStoreNameInUseException, CustomKeyStoreNotFoundException, DependencyTimeoutException, DisabledException, DryRunOperationException, ExpiredImportTokenException, IncorrectKeyException, IncorrectKeyMaterialException, IncorrectTrustAnchorException, InvalidAliasNameException, InvalidArnException, InvalidCiphertextException, InvalidGrantIdException, InvalidGrantTokenException, InvalidImportTokenException, InvalidKeyUsageException, InvalidMarkerException, KeyUnavailableException, KMSInternalException, KMSInvalidMacException, KMSInvalidSignatureException, KMSInvalidStateException, LimitExceededException, MalformedPolicyDocumentException, NotFoundException, TagException, UnsupportedOperationException, XksKeyAlreadyInUseException, XksKeyInvalidConfigurationException, XksKeyNotFoundException, XksProxyIncorrectAuthenticationCredentialException, XksProxyInvalidConfigurationException, XksProxyInvalidResponseException, XksProxyUriEndpointInUseException, XksProxyUriInUseException, XksProxyUriUnreachableException, XksProxyVpcEndpointServiceInUseException, XksProxyVpcEndpointServiceInvalidConfigurationException, XksProxyVpcEndpointServiceNotFoundException } from "@aws-sdk/client-kms";
2
+ import type { TaggedException } from "@effect-aws/commons";
3
+ import { SdkError as CommonSdkError } from "@effect-aws/commons";
4
+ export declare const AllServiceErrors: readonly ["AlreadyExistsException", "CloudHsmClusterInUseException", "CloudHsmClusterInvalidConfigurationException", "CloudHsmClusterNotActiveException", "CloudHsmClusterNotFoundException", "CloudHsmClusterNotRelatedException", "ConflictException", "CustomKeyStoreHasCMKsException", "CustomKeyStoreInvalidStateException", "CustomKeyStoreNameInUseException", "CustomKeyStoreNotFoundException", "DependencyTimeoutException", "DisabledException", "DryRunOperationException", "ExpiredImportTokenException", "IncorrectKeyException", "IncorrectKeyMaterialException", "IncorrectTrustAnchorException", "InvalidAliasNameException", "InvalidArnException", "InvalidCiphertextException", "InvalidGrantIdException", "InvalidGrantTokenException", "InvalidImportTokenException", "InvalidKeyUsageException", "InvalidMarkerException", "KMSInternalException", "KMSInvalidMacException", "KMSInvalidSignatureException", "KMSInvalidStateException", "KeyUnavailableException", "LimitExceededException", "MalformedPolicyDocumentException", "NotFoundException", "TagException", "UnsupportedOperationException", "XksKeyAlreadyInUseException", "XksKeyInvalidConfigurationException", "XksKeyNotFoundException", "XksProxyIncorrectAuthenticationCredentialException", "XksProxyInvalidConfigurationException", "XksProxyInvalidResponseException", "XksProxyUriEndpointInUseException", "XksProxyUriInUseException", "XksProxyUriUnreachableException", "XksProxyVpcEndpointServiceInUseException", "XksProxyVpcEndpointServiceInvalidConfigurationException", "XksProxyVpcEndpointServiceNotFoundException"];
9
5
  export type AlreadyExistsError = TaggedException<AlreadyExistsException>;
10
6
  export type CloudHsmClusterInUseError = TaggedException<CloudHsmClusterInUseException>;
11
7
  export type CloudHsmClusterInvalidConfigurationError = TaggedException<CloudHsmClusterInvalidConfigurationException>;
@@ -54,7 +50,6 @@ export type XksProxyUriUnreachableError = TaggedException<XksProxyUriUnreachable
54
50
  export type XksProxyVpcEndpointServiceInUseError = TaggedException<XksProxyVpcEndpointServiceInUseException>;
55
51
  export type XksProxyVpcEndpointServiceInvalidConfigurationError = TaggedException<XksProxyVpcEndpointServiceInvalidConfigurationException>;
56
52
  export type XksProxyVpcEndpointServiceNotFoundError = TaggedException<XksProxyVpcEndpointServiceNotFoundException>;
57
- export type SdkError = TaggedException<Error & {
58
- name: "SdkError";
59
- }>;
60
- export declare const SdkError: Data.Case.Constructor<SdkError, "_tag">;
53
+ export type SdkError = CommonSdkError;
54
+ export declare const SdkError: import("effect/Data").Case.Constructor<CommonSdkError, "_tag">;
55
+ //# sourceMappingURL=Errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,sBAAsB,EACtB,6BAA6B,EAC7B,4CAA4C,EAC5C,iCAAiC,EACjC,gCAA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C;AAC/E,MAAM,MAAM,2BAA2B,GAAG,eAAe,CAAC,+BAA+B,CAAC,CAAC;AAC3F,MAAM,MAAM,oCAAoC,GAAG,eAAe,CAAC,wCAAwC,CAAC,CAAC;AAC7G,MAAM,MAAM,mDAAmD,GAAG,eAAe,CAC/E,uDAAuD,CACxD,CAAC;AACF,MAAM,MAAM,uCAAuC,GAAG,eAAe,CAAC,2CAA2C,CAAC,CAAC;AAEnH,MAAM,MAAM,QAAQ,GAAG,cAAc,CAAC;AACtC,eAAO,MAAM,QAAQ,gEAAiB,CAAC"}
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SdkError = exports.AllServiceErrors = void 0;
4
+ const commons_1 = require("@effect-aws/commons");
5
+ exports.AllServiceErrors = [
6
+ "AlreadyExistsException",
7
+ "CloudHsmClusterInUseException",
8
+ "CloudHsmClusterInvalidConfigurationException",
9
+ "CloudHsmClusterNotActiveException",
10
+ "CloudHsmClusterNotFoundException",
11
+ "CloudHsmClusterNotRelatedException",
12
+ "ConflictException",
13
+ "CustomKeyStoreHasCMKsException",
14
+ "CustomKeyStoreInvalidStateException",
15
+ "CustomKeyStoreNameInUseException",
16
+ "CustomKeyStoreNotFoundException",
17
+ "DependencyTimeoutException",
18
+ "DisabledException",
19
+ "DryRunOperationException",
20
+ "ExpiredImportTokenException",
21
+ "IncorrectKeyException",
22
+ "IncorrectKeyMaterialException",
23
+ "IncorrectTrustAnchorException",
24
+ "InvalidAliasNameException",
25
+ "InvalidArnException",
26
+ "InvalidCiphertextException",
27
+ "InvalidGrantIdException",
28
+ "InvalidGrantTokenException",
29
+ "InvalidImportTokenException",
30
+ "InvalidKeyUsageException",
31
+ "InvalidMarkerException",
32
+ "KMSInternalException",
33
+ "KMSInvalidMacException",
34
+ "KMSInvalidSignatureException",
35
+ "KMSInvalidStateException",
36
+ "KeyUnavailableException",
37
+ "LimitExceededException",
38
+ "MalformedPolicyDocumentException",
39
+ "NotFoundException",
40
+ "TagException",
41
+ "UnsupportedOperationException",
42
+ "XksKeyAlreadyInUseException",
43
+ "XksKeyInvalidConfigurationException",
44
+ "XksKeyNotFoundException",
45
+ "XksProxyIncorrectAuthenticationCredentialException",
46
+ "XksProxyInvalidConfigurationException",
47
+ "XksProxyInvalidResponseException",
48
+ "XksProxyUriEndpointInUseException",
49
+ "XksProxyUriInUseException",
50
+ "XksProxyUriUnreachableException",
51
+ "XksProxyVpcEndpointServiceInUseException",
52
+ "XksProxyVpcEndpointServiceInvalidConfigurationException",
53
+ "XksProxyVpcEndpointServiceNotFoundException",
54
+ ];
55
+ exports.SdkError = commons_1.SdkError;
56
+ //# sourceMappingURL=Errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":";;;AAmDA,iDAAiE;AAEpD,QAAA,gBAAgB,GAAG;IAC9B,wBAAwB;IACxB,+BAA+B;IAC/B,8CAA8C;IAC9C,mCAAmC;IACnC,kCAAkC;IAClC,oCAAoC;IACpC,mBAAmB;IACnB,gCAAgC;IAChC,qCAAqC;IACrC,kCAAkC;IAClC,iCAAiC;IACjC,4BAA4B;IAC5B,mBAAmB;IACnB,0BAA0B;IAC1B,6BAA6B;IAC7B,uBAAuB;IACvB,+BAA+B;IAC/B,+BAA+B;IAC/B,2BAA2B;IAC3B,qBAAqB;IACrB,4BAA4B;IAC5B,yBAAyB;IACzB,4BAA4B;IAC5B,6BAA6B;IAC7B,0BAA0B;IAC1B,wBAAwB;IACxB,sBAAsB;IACtB,wBAAwB;IACxB,8BAA8B;IAC9B,0BAA0B;IAC1B,yBAAyB;IACzB,wBAAwB;IACxB,kCAAkC;IAClC,mBAAmB;IACnB,cAAc;IACd,+BAA+B;IAC/B,6BAA6B;IAC7B,qCAAqC;IACrC,yBAAyB;IACzB,oDAAoD;IACpD,uCAAuC;IACvC,kCAAkC;IAClC,mCAAmC;IACnC,2BAA2B;IAC3B,iCAAiC;IACjC,0CAA0C;IAC1C,yDAAyD;IACzD,6CAA6C;CACrC,CAAC;AAwDE,QAAA,QAAQ,GAAG,kBAAc,CAAC"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import { KMSClient } from "@aws-sdk/client-kms";
5
+ import { Context, Effect, Layer } from "effect";
6
+ declare const KMSClientInstance_base: Context.TagClass<KMSClientInstance, "@effect-aws/client-kms/KMSClientInstance", KMSClient>;
7
+ /**
8
+ * @since 1.0.0
9
+ * @category tags
10
+ */
11
+ export declare class KMSClientInstance extends KMSClientInstance_base {
12
+ }
13
+ /**
14
+ * @since 1.0.0
15
+ * @category constructors
16
+ */
17
+ export declare const make: Effect.Effect<KMSClient, never, import("effect/Scope").Scope>;
18
+ /**
19
+ * @since 1.0.0
20
+ * @category layers
21
+ */
22
+ export declare const layer: Layer.Layer<KMSClientInstance, never, never>;
23
+ export {};
24
+ //# sourceMappingURL=KMSClientInstance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KMSClientInstance.d.ts","sourceRoot":"","sources":["../../src/KMSClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;;AAGhD;;;GAGG;AACH,qBAAa,iBAAkB,SAAQ,sBAEN;CAAG;AAEpC;;;GAGG;AACH,eAAO,MAAM,IAAI,+DAOhB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,KAAK,8CAAwC,CAAC"}
@@ -0,0 +1,50 @@
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.KMSClientInstance = void 0;
27
+ /**
28
+ * @since 1.0.0
29
+ */
30
+ const client_kms_1 = require("@aws-sdk/client-kms");
31
+ const effect_1 = require("effect");
32
+ const KMSServiceConfig = __importStar(require("./KMSServiceConfig.js"));
33
+ /**
34
+ * @since 1.0.0
35
+ * @category tags
36
+ */
37
+ class KMSClientInstance extends effect_1.Context.Tag("@effect-aws/client-kms/KMSClientInstance")() {
38
+ }
39
+ exports.KMSClientInstance = KMSClientInstance;
40
+ /**
41
+ * @since 1.0.0
42
+ * @category constructors
43
+ */
44
+ exports.make = effect_1.Effect.flatMap(KMSServiceConfig.toKMSClientConfig, (config) => effect_1.Effect.acquireRelease(effect_1.Effect.sync(() => new client_kms_1.KMSClient(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(KMSClientInstance, exports.make);
50
+ //# sourceMappingURL=KMSClientInstance.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KMSClientInstance.js","sourceRoot":"","sources":["../../src/KMSClientInstance.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,oDAAgD;AAChD,mCAAgD;AAChD,wEAA0D;AAE1D;;;GAGG;AACH,MAAa,iBAAkB,SAAQ,gBAAO,CAAC,GAAG,CAChD,0CAA0C,CAC3C,EAAgC;CAAG;AAFpC,8CAEoC;AAEpC;;;GAGG;AACU,QAAA,IAAI,GAAG,eAAM,CAAC,OAAO,CAChC,gBAAgB,CAAC,iBAAiB,EAClC,CAAC,MAAM,EAAE,EAAE,CACT,eAAM,CAAC,cAAc,CACnB,eAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,sBAAS,CAAC,MAAM,CAAC,CAAC,EACxC,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,iBAAiB,EAAE,YAAI,CAAC,CAAC"}
@@ -1,21 +1,11 @@
1
1
  /**
2
2
  * @since 1.0.0
3
3
  */
4
- import { type KMSClient, type KMSClientConfig, type CancelKeyDeletionCommandInput, type CancelKeyDeletionCommandOutput, type ConnectCustomKeyStoreCommandInput, type ConnectCustomKeyStoreCommandOutput, type CreateAliasCommandInput, type CreateAliasCommandOutput, type CreateCustomKeyStoreCommandInput, type CreateCustomKeyStoreCommandOutput, type CreateGrantCommandInput, type CreateGrantCommandOutput, type CreateKeyCommandInput, type CreateKeyCommandOutput, type DecryptCommandInput, type DecryptCommandOutput, type DeleteAliasCommandInput, type DeleteAliasCommandOutput, type DeleteCustomKeyStoreCommandInput, type DeleteCustomKeyStoreCommandOutput, type DeleteImportedKeyMaterialCommandInput, type DeleteImportedKeyMaterialCommandOutput, type DeriveSharedSecretCommandInput, type DeriveSharedSecretCommandOutput, type DescribeCustomKeyStoresCommandInput, type DescribeCustomKeyStoresCommandOutput, type DescribeKeyCommandInput, type DescribeKeyCommandOutput, type DisableKeyCommandInput, type DisableKeyCommandOutput, type DisableKeyRotationCommandInput, type DisableKeyRotationCommandOutput, type DisconnectCustomKeyStoreCommandInput, type DisconnectCustomKeyStoreCommandOutput, type EnableKeyCommandInput, type EnableKeyCommandOutput, type EnableKeyRotationCommandInput, type EnableKeyRotationCommandOutput, type EncryptCommandInput, type EncryptCommandOutput, type GenerateDataKeyCommandInput, type GenerateDataKeyCommandOutput, type GenerateDataKeyPairCommandInput, type GenerateDataKeyPairCommandOutput, type GenerateDataKeyPairWithoutPlaintextCommandInput, type GenerateDataKeyPairWithoutPlaintextCommandOutput, type GenerateDataKeyWithoutPlaintextCommandInput, type GenerateDataKeyWithoutPlaintextCommandOutput, type GenerateMacCommandInput, type GenerateMacCommandOutput, type GenerateRandomCommandInput, type GenerateRandomCommandOutput, type GetKeyPolicyCommandInput, type GetKeyPolicyCommandOutput, type GetKeyRotationStatusCommandInput, type GetKeyRotationStatusCommandOutput, type GetParametersForImportCommandInput, type GetParametersForImportCommandOutput, type GetPublicKeyCommandInput, type GetPublicKeyCommandOutput, type ImportKeyMaterialCommandInput, type ImportKeyMaterialCommandOutput, type ListAliasesCommandInput, type ListAliasesCommandOutput, type ListGrantsCommandInput, type ListGrantsCommandOutput, type ListKeyPoliciesCommandInput, type ListKeyPoliciesCommandOutput, type ListKeyRotationsCommandInput, type ListKeyRotationsCommandOutput, type ListKeysCommandInput, type ListKeysCommandOutput, type ListResourceTagsCommandInput, type ListResourceTagsCommandOutput, type ListRetirableGrantsCommandInput, type ListRetirableGrantsCommandOutput, type PutKeyPolicyCommandInput, type PutKeyPolicyCommandOutput, type ReEncryptCommandInput, type ReEncryptCommandOutput, type ReplicateKeyCommandInput, type ReplicateKeyCommandOutput, type RetireGrantCommandInput, type RetireGrantCommandOutput, type RevokeGrantCommandInput, type RevokeGrantCommandOutput, type RotateKeyOnDemandCommandInput, type RotateKeyOnDemandCommandOutput, type ScheduleKeyDeletionCommandInput, type ScheduleKeyDeletionCommandOutput, type SignCommandInput, type SignCommandOutput, type TagResourceCommandInput, type TagResourceCommandOutput, type UntagResourceCommandInput, type UntagResourceCommandOutput, type UpdateAliasCommandInput, type UpdateAliasCommandOutput, type UpdateCustomKeyStoreCommandInput, type UpdateCustomKeyStoreCommandOutput, type UpdateKeyDescriptionCommandInput, type UpdateKeyDescriptionCommandOutput, type UpdatePrimaryRegionCommandInput, type UpdatePrimaryRegionCommandOutput, type VerifyCommandInput, type VerifyCommandOutput, type VerifyMacCommandInput, type VerifyMacCommandOutput } from "@aws-sdk/client-kms";
4
+ import { type CancelKeyDeletionCommandInput, type CancelKeyDeletionCommandOutput, type ConnectCustomKeyStoreCommandInput, type ConnectCustomKeyStoreCommandOutput, type CreateAliasCommandInput, type CreateAliasCommandOutput, type CreateCustomKeyStoreCommandInput, type CreateCustomKeyStoreCommandOutput, type CreateGrantCommandInput, type CreateGrantCommandOutput, type CreateKeyCommandInput, type CreateKeyCommandOutput, type DecryptCommandInput, type DecryptCommandOutput, type DeleteAliasCommandInput, type DeleteAliasCommandOutput, type DeleteCustomKeyStoreCommandInput, type DeleteCustomKeyStoreCommandOutput, type DeleteImportedKeyMaterialCommandInput, type DeleteImportedKeyMaterialCommandOutput, type DeriveSharedSecretCommandInput, type DeriveSharedSecretCommandOutput, type DescribeCustomKeyStoresCommandInput, type DescribeCustomKeyStoresCommandOutput, type DescribeKeyCommandInput, type DescribeKeyCommandOutput, type DisableKeyCommandInput, type DisableKeyCommandOutput, type DisableKeyRotationCommandInput, type DisableKeyRotationCommandOutput, type DisconnectCustomKeyStoreCommandInput, type DisconnectCustomKeyStoreCommandOutput, type EnableKeyCommandInput, type EnableKeyCommandOutput, type EnableKeyRotationCommandInput, type EnableKeyRotationCommandOutput, type EncryptCommandInput, type EncryptCommandOutput, type GenerateDataKeyCommandInput, type GenerateDataKeyCommandOutput, type GenerateDataKeyPairCommandInput, type GenerateDataKeyPairCommandOutput, type GenerateDataKeyPairWithoutPlaintextCommandInput, type GenerateDataKeyPairWithoutPlaintextCommandOutput, type GenerateDataKeyWithoutPlaintextCommandInput, type GenerateDataKeyWithoutPlaintextCommandOutput, type GenerateMacCommandInput, type GenerateMacCommandOutput, type GenerateRandomCommandInput, type GenerateRandomCommandOutput, type GetKeyPolicyCommandInput, type GetKeyPolicyCommandOutput, type GetKeyRotationStatusCommandInput, type GetKeyRotationStatusCommandOutput, type GetParametersForImportCommandInput, type GetParametersForImportCommandOutput, type GetPublicKeyCommandInput, type GetPublicKeyCommandOutput, type ImportKeyMaterialCommandInput, type ImportKeyMaterialCommandOutput, type KMSClient, type KMSClientConfig, type ListAliasesCommandInput, type ListAliasesCommandOutput, type ListGrantsCommandInput, type ListGrantsCommandOutput, type ListKeyPoliciesCommandInput, type ListKeyPoliciesCommandOutput, type ListKeyRotationsCommandInput, type ListKeyRotationsCommandOutput, type ListKeysCommandInput, type ListKeysCommandOutput, type ListResourceTagsCommandInput, type ListResourceTagsCommandOutput, type ListRetirableGrantsCommandInput, type ListRetirableGrantsCommandOutput, type PutKeyPolicyCommandInput, type PutKeyPolicyCommandOutput, type ReEncryptCommandInput, type ReEncryptCommandOutput, type ReplicateKeyCommandInput, type ReplicateKeyCommandOutput, type RetireGrantCommandInput, type RetireGrantCommandOutput, type RevokeGrantCommandInput, type RevokeGrantCommandOutput, type RotateKeyOnDemandCommandInput, type RotateKeyOnDemandCommandOutput, type ScheduleKeyDeletionCommandInput, type ScheduleKeyDeletionCommandOutput, type SignCommandInput, type SignCommandOutput, type TagResourceCommandInput, type TagResourceCommandOutput, type UntagResourceCommandInput, type UntagResourceCommandOutput, type UpdateAliasCommandInput, type UpdateAliasCommandOutput, type UpdateCustomKeyStoreCommandInput, type UpdateCustomKeyStoreCommandOutput, type UpdateKeyDescriptionCommandInput, type UpdateKeyDescriptionCommandOutput, type UpdatePrimaryRegionCommandInput, type UpdatePrimaryRegionCommandOutput, type VerifyCommandInput, type VerifyCommandOutput, type VerifyMacCommandInput, type VerifyMacCommandOutput } from "@aws-sdk/client-kms";
5
+ import type { HttpHandlerOptions, SdkError, ServiceLogger } from "@effect-aws/commons";
5
6
  import { Effect, Layer } from "effect";
6
- import { AlreadyExistsError, CloudHsmClusterInUseError, CloudHsmClusterInvalidConfigurationError, CloudHsmClusterNotActiveError, CloudHsmClusterNotFoundError, CloudHsmClusterNotRelatedError, ConflictError, CustomKeyStoreHasCMKsError, CustomKeyStoreInvalidStateError, CustomKeyStoreNameInUseError, CustomKeyStoreNotFoundError, DependencyTimeoutError, DisabledError, DryRunOperationError, ExpiredImportTokenError, IncorrectKeyError, IncorrectKeyMaterialError, IncorrectTrustAnchorError, InvalidAliasNameError, InvalidArnError, InvalidCiphertextError, InvalidGrantIdError, InvalidGrantTokenError, InvalidImportTokenError, InvalidKeyUsageError, InvalidMarkerError, KMSInternalError, KMSInvalidMacError, KMSInvalidSignatureError, KMSInvalidStateError, KeyUnavailableError, LimitExceededError, MalformedPolicyDocumentError, NotFoundError, TagError, UnsupportedOperationError, XksKeyAlreadyInUseError, XksKeyInvalidConfigurationError, XksKeyNotFoundError, XksProxyIncorrectAuthenticationCredentialError, XksProxyInvalidConfigurationError, XksProxyInvalidResponseError, XksProxyUriEndpointInUseError, XksProxyUriInUseError, XksProxyUriUnreachableError, XksProxyVpcEndpointServiceInUseError, XksProxyVpcEndpointServiceInvalidConfigurationError, XksProxyVpcEndpointServiceNotFoundError, SdkError } from "./Errors";
7
- import { KMSClientInstance } from "./KMSClientInstance";
8
- import { KMSClientInstanceConfig } from "./KMSClientInstanceConfig";
9
- /**
10
- * @since 1.0.0
11
- */
12
- export interface HttpHandlerOptions {
13
- /**
14
- * The maximum time in milliseconds that the connection phase of a request
15
- * may take before the connection attempt is abandoned.
16
- */
17
- requestTimeout?: number;
18
- }
7
+ import type { AlreadyExistsError, CloudHsmClusterInUseError, CloudHsmClusterInvalidConfigurationError, CloudHsmClusterNotActiveError, CloudHsmClusterNotFoundError, CloudHsmClusterNotRelatedError, ConflictError, CustomKeyStoreHasCMKsError, CustomKeyStoreInvalidStateError, CustomKeyStoreNameInUseError, CustomKeyStoreNotFoundError, DependencyTimeoutError, DisabledError, DryRunOperationError, ExpiredImportTokenError, IncorrectKeyError, IncorrectKeyMaterialError, IncorrectTrustAnchorError, InvalidAliasNameError, InvalidArnError, InvalidCiphertextError, InvalidGrantIdError, InvalidGrantTokenError, InvalidImportTokenError, InvalidKeyUsageError, InvalidMarkerError, KeyUnavailableError, KMSInternalError, KMSInvalidMacError, KMSInvalidSignatureError, KMSInvalidStateError, LimitExceededError, MalformedPolicyDocumentError, NotFoundError, TagError, UnsupportedOperationError, XksKeyAlreadyInUseError, XksKeyInvalidConfigurationError, XksKeyNotFoundError, XksProxyIncorrectAuthenticationCredentialError, XksProxyInvalidConfigurationError, XksProxyInvalidResponseError, XksProxyUriEndpointInUseError, XksProxyUriInUseError, XksProxyUriUnreachableError, XksProxyVpcEndpointServiceInUseError, XksProxyVpcEndpointServiceInvalidConfigurationError, XksProxyVpcEndpointServiceNotFoundError } from "./Errors.js";
8
+ import * as Instance from "./KMSClientInstance.js";
19
9
  interface KMSService$ {
20
10
  readonly _: unique symbol;
21
11
  /**
@@ -235,7 +225,7 @@ interface KMSService$ {
235
225
  * @since 1.0.0
236
226
  * @category constructors
237
227
  */
238
- export declare const makeKMSService: Effect.Effect<KMSService$, never, KMSClientInstance>;
228
+ export declare const makeKMSService: Effect.Effect<KMSService$, never, Instance.KMSClientInstance>;
239
229
  declare const KMSService_base: import("effect/Context").TagClass<KMSService, "@effect-aws/client-kms/KMSService", KMSService$> & {
240
230
  readonly _: Effect.Effect<KMSService$["_"], never, KMSService>;
241
231
  cancelKeyDeletion: (args: CancelKeyDeletionCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<CancelKeyDeletionCommandOutput, DependencyTimeoutError | InvalidArnError | KMSInternalError | KMSInvalidStateError | NotFoundError | SdkError, KMSService>;
@@ -292,7 +282,7 @@ declare const KMSService_base: import("effect/Context").TagClass<KMSService, "@e
292
282
  verify: (args: VerifyCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<VerifyCommandOutput, DependencyTimeoutError | DisabledError | DryRunOperationError | InvalidGrantTokenError | InvalidKeyUsageError | KMSInternalError | KMSInvalidSignatureError | KMSInvalidStateError | KeyUnavailableError | NotFoundError | SdkError, KMSService>;
293
283
  verifyMac: (args: VerifyMacCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<VerifyMacCommandOutput, DisabledError | DryRunOperationError | InvalidGrantTokenError | InvalidKeyUsageError | KMSInternalError | KMSInvalidMacError | KMSInvalidStateError | KeyUnavailableError | NotFoundError | SdkError, KMSService>;
294
284
  } & {
295
- use: <X>(body: (_: KMSService$) => X) => X extends Effect.Effect<infer A, infer E, infer R> ? Effect.Effect<A, E, R | KMSService> : Effect.Effect<X, never, KMSService>;
285
+ use: <X>(body: (_: KMSService$) => X) => X extends Effect.Effect<infer A, infer E, infer R> ? Effect.Effect<A, E, KMSService | R> : Effect.Effect<X, never, KMSService>;
296
286
  };
297
287
  /**
298
288
  * @since 1.0.0
@@ -300,31 +290,19 @@ declare const KMSService_base: import("effect/Context").TagClass<KMSService, "@e
300
290
  */
301
291
  export declare class KMSService extends KMSService_base {
302
292
  static readonly defaultLayer: Layer.Layer<KMSService, never, never>;
303
- static readonly layer: (config: KMSClientConfig) => Layer.Layer<KMSService, never, never>;
293
+ static readonly layer: (config: KMSService.Config) => Layer.Layer<KMSService, never, never>;
304
294
  static readonly baseLayer: (evaluate: (defaultConfig: KMSClientConfig) => KMSClient) => Layer.Layer<KMSService, never, never>;
305
295
  }
306
296
  /**
307
297
  * @since 1.0.0
308
- * @category models
309
- * @alias KMSService
310
- */
311
- export declare const KMS: typeof KMSService;
312
- /**
313
- * @since 1.0.0
314
- * @category layers
315
- * @deprecated use KMS.baseLayer instead
316
298
  */
317
- export declare const BaseKMSServiceLayer: Layer.Layer<KMSService, never, KMSClientInstance>;
318
- /**
319
- * @since 1.0.0
320
- * @category layers
321
- * @deprecated use KMS.layer instead
322
- */
323
- export declare const KMSServiceLayer: Layer.Layer<KMSService, never, KMSClientInstanceConfig>;
324
- /**
325
- * @since 1.0.0
326
- * @category layers
327
- * @deprecated use KMS.defaultLayer instead
328
- */
329
- export declare const DefaultKMSServiceLayer: Layer.Layer<KMSService, never, never>;
299
+ export declare namespace KMSService {
300
+ /**
301
+ * @since 1.0.0
302
+ */
303
+ interface Config extends Omit<KMSClientConfig, "logger"> {
304
+ readonly logger?: ServiceLogger.ServiceLoggerConstructorProps | true;
305
+ }
306
+ }
330
307
  export {};
308
+ //# sourceMappingURL=KMSService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KMSService.d.ts","sourceRoot":"","sources":["../../src/KMSService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAEL,KAAK,6BAA6B,EAClC,KAAK,8BAA8B,EAEnC,KAAK,iCAAiC,EACtC,KAAK,kCAAkC,EAEvC,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAE7B,KAAK,gCAAgC,EACrC,KAAK,iCAAiC,EAEtC,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAE7B,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAE3B,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EAEzB,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAE7B,KAAK,gCAAgC,EACrC,KAAK,iCAAiC,EAEtC,KAAK,qCAAqC,EAC1C,KAAK,sCAAsC,EAE3C,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EAEpC,KAAK,mCAAmC,EACxC,KAAK,oCAAoC,EAEzC,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAE7B,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAE5B,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EAEpC,KAAK,oCAAoC,EACzC,KAAK,qCAAqC,EAE1C,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAE3B,KAAK,6BAA6B,EAClC,KAAK,8BAA8B,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,CAAC,SAAS,aACb,CAAC,aAAa,EAAE,eAAe,KAAK,SAAS,2CASrD;CACL;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC;;OAEG;IACH,UAAiB,MAAO,SAAQ,IAAI,CAAC,eAAe,EAAE,QAAQ,CAAC;QAC7D,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,6BAA6B,GAAG,IAAI,CAAC;KACtE;CACF"}
@@ -0,0 +1,109 @@
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.KMSService = exports.makeKMSService = void 0;
27
+ /**
28
+ * @since 1.0.0
29
+ */
30
+ const client_kms_1 = require("@aws-sdk/client-kms");
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("./KMSClientInstance.js"));
35
+ const KMSServiceConfig = __importStar(require("./KMSServiceConfig.js"));
36
+ const commands = {
37
+ CancelKeyDeletionCommand: client_kms_1.CancelKeyDeletionCommand,
38
+ ConnectCustomKeyStoreCommand: client_kms_1.ConnectCustomKeyStoreCommand,
39
+ CreateAliasCommand: client_kms_1.CreateAliasCommand,
40
+ CreateCustomKeyStoreCommand: client_kms_1.CreateCustomKeyStoreCommand,
41
+ CreateGrantCommand: client_kms_1.CreateGrantCommand,
42
+ CreateKeyCommand: client_kms_1.CreateKeyCommand,
43
+ DecryptCommand: client_kms_1.DecryptCommand,
44
+ DeleteAliasCommand: client_kms_1.DeleteAliasCommand,
45
+ DeleteCustomKeyStoreCommand: client_kms_1.DeleteCustomKeyStoreCommand,
46
+ DeleteImportedKeyMaterialCommand: client_kms_1.DeleteImportedKeyMaterialCommand,
47
+ DeriveSharedSecretCommand: client_kms_1.DeriveSharedSecretCommand,
48
+ DescribeCustomKeyStoresCommand: client_kms_1.DescribeCustomKeyStoresCommand,
49
+ DescribeKeyCommand: client_kms_1.DescribeKeyCommand,
50
+ DisableKeyCommand: client_kms_1.DisableKeyCommand,
51
+ DisableKeyRotationCommand: client_kms_1.DisableKeyRotationCommand,
52
+ DisconnectCustomKeyStoreCommand: client_kms_1.DisconnectCustomKeyStoreCommand,
53
+ EnableKeyCommand: client_kms_1.EnableKeyCommand,
54
+ EnableKeyRotationCommand: client_kms_1.EnableKeyRotationCommand,
55
+ EncryptCommand: client_kms_1.EncryptCommand,
56
+ GenerateDataKeyCommand: client_kms_1.GenerateDataKeyCommand,
57
+ GenerateDataKeyPairCommand: client_kms_1.GenerateDataKeyPairCommand,
58
+ GenerateDataKeyPairWithoutPlaintextCommand: client_kms_1.GenerateDataKeyPairWithoutPlaintextCommand,
59
+ GenerateDataKeyWithoutPlaintextCommand: client_kms_1.GenerateDataKeyWithoutPlaintextCommand,
60
+ GenerateMacCommand: client_kms_1.GenerateMacCommand,
61
+ GenerateRandomCommand: client_kms_1.GenerateRandomCommand,
62
+ GetKeyPolicyCommand: client_kms_1.GetKeyPolicyCommand,
63
+ GetKeyRotationStatusCommand: client_kms_1.GetKeyRotationStatusCommand,
64
+ GetParametersForImportCommand: client_kms_1.GetParametersForImportCommand,
65
+ GetPublicKeyCommand: client_kms_1.GetPublicKeyCommand,
66
+ ImportKeyMaterialCommand: client_kms_1.ImportKeyMaterialCommand,
67
+ ListAliasesCommand: client_kms_1.ListAliasesCommand,
68
+ ListGrantsCommand: client_kms_1.ListGrantsCommand,
69
+ ListKeyPoliciesCommand: client_kms_1.ListKeyPoliciesCommand,
70
+ ListKeyRotationsCommand: client_kms_1.ListKeyRotationsCommand,
71
+ ListKeysCommand: client_kms_1.ListKeysCommand,
72
+ ListResourceTagsCommand: client_kms_1.ListResourceTagsCommand,
73
+ ListRetirableGrantsCommand: client_kms_1.ListRetirableGrantsCommand,
74
+ PutKeyPolicyCommand: client_kms_1.PutKeyPolicyCommand,
75
+ ReEncryptCommand: client_kms_1.ReEncryptCommand,
76
+ ReplicateKeyCommand: client_kms_1.ReplicateKeyCommand,
77
+ RetireGrantCommand: client_kms_1.RetireGrantCommand,
78
+ RevokeGrantCommand: client_kms_1.RevokeGrantCommand,
79
+ RotateKeyOnDemandCommand: client_kms_1.RotateKeyOnDemandCommand,
80
+ ScheduleKeyDeletionCommand: client_kms_1.ScheduleKeyDeletionCommand,
81
+ SignCommand: client_kms_1.SignCommand,
82
+ TagResourceCommand: client_kms_1.TagResourceCommand,
83
+ UntagResourceCommand: client_kms_1.UntagResourceCommand,
84
+ UpdateAliasCommand: client_kms_1.UpdateAliasCommand,
85
+ UpdateCustomKeyStoreCommand: client_kms_1.UpdateCustomKeyStoreCommand,
86
+ UpdateKeyDescriptionCommand: client_kms_1.UpdateKeyDescriptionCommand,
87
+ UpdatePrimaryRegionCommand: client_kms_1.UpdatePrimaryRegionCommand,
88
+ VerifyCommand: client_kms_1.VerifyCommand,
89
+ VerifyMacCommand: client_kms_1.VerifyMacCommand,
90
+ };
91
+ /**
92
+ * @since 1.0.0
93
+ * @category constructors
94
+ */
95
+ exports.makeKMSService = effect_1.Effect.gen(function* () {
96
+ const client = yield* Instance.KMSClientInstance;
97
+ return commons_1.Service.fromClientAndCommands(client, commands, Errors_js_1.AllServiceErrors);
98
+ });
99
+ /**
100
+ * @since 1.0.0
101
+ * @category models
102
+ */
103
+ class KMSService extends effect_1.Effect.Tag("@effect-aws/client-kms/KMSService")() {
104
+ static defaultLayer = effect_1.Layer.effect(this, exports.makeKMSService).pipe(effect_1.Layer.provide(Instance.layer));
105
+ static layer = (config) => effect_1.Layer.effect(this, exports.makeKMSService).pipe(effect_1.Layer.provide(Instance.layer), effect_1.Layer.provide(KMSServiceConfig.setKMSServiceConfig(config)));
106
+ static baseLayer = (evaluate) => effect_1.Layer.effect(this, exports.makeKMSService).pipe(effect_1.Layer.provide(effect_1.Layer.effect(Instance.KMSClientInstance, effect_1.Effect.map(KMSServiceConfig.toKMSClientConfig, evaluate))));
107
+ }
108
+ exports.KMSService = KMSService;
109
+ //# sourceMappingURL=KMSService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KMSService.js","sourceRoot":"","sources":["../../src/KMSService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,oDAkK6B;AAE7B,iDAA8C;AAC9C,mCAAuC;AAmDvC,2CAA+C;AAC/C,iEAAmD;AACnD,wEAA0D;AAE1D,MAAM,QAAQ,GAAG;IACf,wBAAwB,EAAxB,qCAAwB;IACxB,4BAA4B,EAA5B,yCAA4B;IAC5B,kBAAkB,EAAlB,+BAAkB;IAClB,2BAA2B,EAA3B,wCAA2B;IAC3B,kBAAkB,EAAlB,+BAAkB;IAClB,gBAAgB,EAAhB,6BAAgB;IAChB,cAAc,EAAd,2BAAc;IACd,kBAAkB,EAAlB,+BAAkB;IAClB,2BAA2B,EAA3B,wCAA2B;IAC3B,gCAAgC,EAAhC,6CAAgC;IAChC,yBAAyB,EAAzB,sCAAyB;IACzB,8BAA8B,EAA9B,2CAA8B;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AAm4BF;;;GAGG;AACU,QAAA,cAAc,GAAG,eAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAChD,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,QAAQ,CAAC,iBAAiB,CAAC;IAEjD,OAAO,iBAAO,CAAC,qBAAqB,CAAc,MAAM,EAAE,QAAQ,EAAE,4BAAgB,CAAC,CAAC;AACxF,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAa,UAAW,SAAQ,eAAM,CAAC,GAAG,CAAC,mCAAmC,CAAC,EAG5E;IACD,MAAM,CAAU,YAAY,GAAG,cAAK,CAAC,MAAM,CAAC,IAAI,EAAE,sBAAc,CAAC,CAAC,IAAI,CAAC,cAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;IACtG,MAAM,CAAU,KAAK,GAAG,CAAC,MAAyB,EAAE,EAAE,CACpD,cAAK,CAAC,MAAM,CAAC,IAAI,EAAE,sBAAc,CAAC,CAAC,IAAI,CACrC,cAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,EAC7B,cAAK,CAAC,OAAO,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC,CAC5D,CAAC;IACJ,MAAM,CAAU,SAAS,GAAG,CAC1B,QAAuD,EACvD,EAAE,CACF,cAAK,CAAC,MAAM,CAAC,IAAI,EAAE,sBAAc,CAAC,CAAC,IAAI,CACrC,cAAK,CAAC,OAAO,CACX,cAAK,CAAC,MAAM,CACV,QAAQ,CAAC,iBAAiB,EAC1B,eAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC,iBAAiB,EAAE,QAAQ,CAAC,CACzD,CACF,CACF,CAAC;;AApBN,gCAqBC"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import type { KMSClientConfig } from "@aws-sdk/client-kms";
5
+ import { Effect, Layer } from "effect";
6
+ import type { KMSService } from "./KMSService.js";
7
+ /**
8
+ * @since 1.0.0
9
+ * @category kms service config
10
+ */
11
+ export declare const withKMSServiceConfig: {
12
+ (config: KMSService.Config): <A, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>;
13
+ <A, E, R>(effect: Effect.Effect<A, E, R>, config: KMSService.Config): Effect.Effect<A, E, R>;
14
+ };
15
+ /**
16
+ * @since 1.0.0
17
+ * @category kms service config
18
+ */
19
+ export declare const setKMSServiceConfig: (config: KMSService.Config) => Layer.Layer<never, never, never>;
20
+ /**
21
+ * @since 1.0.0
22
+ * @category adapters
23
+ */
24
+ export declare const toKMSClientConfig: Effect.Effect<KMSClientConfig>;
25
+ //# sourceMappingURL=KMSServiceConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KMSServiceConfig.d.ts","sourceRoot":"","sources":["../../src/KMSServiceConfig.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,OAAO,EAAE,MAAM,EAAY,KAAK,EAAE,MAAM,QAAQ,CAAC;AAGjD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAWlD;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE;IACjC,CAAC,MAAM,EAAE,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,KAAK,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IACjG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;CAK9F,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,WAAY,WAAW,MAAM,qCAAyD,CAAC;AAEvH;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,CAAC,eAAe,CAQ3D,CAAC"}
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toKMSClientConfig = exports.setKMSServiceConfig = exports.withKMSServiceConfig = void 0;
4
+ const commons_1 = require("@effect-aws/commons");
5
+ const effect_1 = require("effect");
6
+ const Function_1 = require("effect/Function");
7
+ const GlobalValue_1 = require("effect/GlobalValue");
8
+ /**
9
+ * @since 1.0.0
10
+ * @category kms service config
11
+ */
12
+ const currentKMSServiceConfig = (0, GlobalValue_1.globalValue)("@effect-aws/client-kms/currentKMSServiceConfig", () => effect_1.FiberRef.unsafeMake({}));
13
+ /**
14
+ * @since 1.0.0
15
+ * @category kms service config
16
+ */
17
+ exports.withKMSServiceConfig = (0, Function_1.dual)(2, (effect, config) => effect_1.Effect.locally(effect, currentKMSServiceConfig, config));
18
+ /**
19
+ * @since 1.0.0
20
+ * @category kms service config
21
+ */
22
+ const setKMSServiceConfig = (config) => effect_1.Layer.locallyScoped(currentKMSServiceConfig, config);
23
+ exports.setKMSServiceConfig = setKMSServiceConfig;
24
+ /**
25
+ * @since 1.0.0
26
+ * @category adapters
27
+ */
28
+ exports.toKMSClientConfig = effect_1.Effect.gen(function* () {
29
+ const { logger: serviceLogger, ...config } = yield* effect_1.FiberRef.get(currentKMSServiceConfig);
30
+ const logger = serviceLogger === true
31
+ ? yield* commons_1.ServiceLogger.toClientLogger(commons_1.ServiceLogger.defaultServiceLogger)
32
+ : (serviceLogger ? yield* commons_1.ServiceLogger.toClientLogger(commons_1.ServiceLogger.make(serviceLogger)) : undefined);
33
+ return { logger, ...config };
34
+ });
35
+ //# sourceMappingURL=KMSServiceConfig.js.map
@@ -0,0 +1 @@
1
+ {"version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 +1,39 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import { KMSService } from "./KMSService.js";
5
+ /**
6
+ * @since 1.0.0
7
+ */
8
+ export * from "./Errors.js";
9
+ /**
10
+ * @since 1.0.0
11
+ */
12
+ export * as KMSClientInstance from "./KMSClientInstance.js";
13
+ /**
14
+ * @since 1.0.0
15
+ */
16
+ export * as KMSServiceConfig from "./KMSServiceConfig.js";
17
+ /**
18
+ * @since 1.0.0
19
+ */
20
+ export * from "./KMSService.js";
21
+ /**
22
+ * @since 1.0.0
23
+ * @category exports
24
+ * @alias KMSService
25
+ */
26
+ export declare namespace KMS {
27
+ /**
28
+ * @since 1.0.0
29
+ * @alias KMSService.Config
30
+ */
31
+ type Config = KMSService.Config;
32
+ }
33
+ /**
34
+ * @since 1.0.0
35
+ * @category exports
36
+ * @alias KMSService
37
+ */
38
+ export declare const KMS: typeof KMSService;
39
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C;;GAEG;AACH,cAAc,aAAa,CAAC;AAE5B;;GAEG;AACH,OAAO,KAAK,iBAAiB,MAAM,wBAAwB,CAAC;AAE5D;;GAEG;AACH,OAAO,KAAK,gBAAgB,MAAM,uBAAuB,CAAC;AAE1D;;GAEG;AACH,cAAc,iBAAiB,CAAC;AAEhC;;;;GAIG;AACH,MAAM,CAAC,OAAO,WAAW,GAAG,CAAC;IAC3B;;;OAGG;IACH,KAAY,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;CACxC;AAED;;;;GAIG;AACH,eAAO,MAAM,GAAG,mBAAa,CAAC"}