@effect-aws/client-kms 1.10.3 → 2.0.0-beta.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.
- package/LICENSE +1 -1
- package/README.md +3 -3
- package/dist/dts/KMSClientInstance.d.ts +2 -2
- package/dist/dts/KMSClientInstance.d.ts.map +1 -1
- package/dist/dts/KMSService.d.ts +55 -57
- package/dist/dts/KMSService.d.ts.map +1 -1
- package/dist/dts/KMSServiceConfig.d.ts.map +1 -1
- package/dist/esm/KMSClientInstance.js +3 -3
- package/dist/esm/KMSClientInstance.js.map +1 -1
- package/dist/esm/KMSService.js +2 -2
- package/dist/esm/KMSService.js.map +1 -1
- package/dist/esm/KMSServiceConfig.js +5 -6
- package/dist/esm/KMSServiceConfig.js.map +1 -1
- package/package.json +8 -14
- package/src/KMSClientInstance.ts +4 -4
- package/src/KMSService.ts +56 -62
- package/src/KMSServiceConfig.ts +6 -7
- package/dist/cjs/Errors.d.ts +0 -55
- package/dist/cjs/Errors.d.ts.map +0 -1
- package/dist/cjs/Errors.js +0 -54
- package/dist/cjs/Errors.js.map +0 -1
- package/dist/cjs/KMSClientInstance.d.ts +0 -24
- package/dist/cjs/KMSClientInstance.d.ts.map +0 -1
- package/dist/cjs/KMSClientInstance.js +0 -50
- package/dist/cjs/KMSClientInstance.js.map +0 -1
- package/dist/cjs/KMSService.d.ts +0 -258
- package/dist/cjs/KMSService.d.ts.map +0 -1
- package/dist/cjs/KMSService.js +0 -112
- package/dist/cjs/KMSService.js.map +0 -1
- package/dist/cjs/KMSServiceConfig.d.ts +0 -25
- package/dist/cjs/KMSServiceConfig.d.ts.map +0 -1
- package/dist/cjs/KMSServiceConfig.js +0 -35
- package/dist/cjs/KMSServiceConfig.js.map +0 -1
- package/dist/cjs/index.d.ts +0 -44
- package/dist/cjs/index.d.ts.map +0 -1
- package/dist/cjs/index.js +0 -56
- package/dist/cjs/index.js.map +0 -1
package/dist/cjs/Errors.d.ts.map
DELETED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,MAAM,MAAM,6BAA6B,GAAG,eAAe,CAAC,iCAAiC,CAAC,CAAC;AAC/F,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,yBAAyB,CAAC,CAAC;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;AACnH,MAAM,MAAM,QAAQ,GAAG,eAAe,CAAC,KAAK,GAAG;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,CAAC"}
|
package/dist/cjs/Errors.js
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AllServiceErrors = void 0;
|
|
4
|
-
exports.AllServiceErrors = [
|
|
5
|
-
"AlreadyExistsException",
|
|
6
|
-
"CloudHsmClusterInUseException",
|
|
7
|
-
"CloudHsmClusterInvalidConfigurationException",
|
|
8
|
-
"CloudHsmClusterNotActiveException",
|
|
9
|
-
"CloudHsmClusterNotFoundException",
|
|
10
|
-
"CloudHsmClusterNotRelatedException",
|
|
11
|
-
"ConflictException",
|
|
12
|
-
"CustomKeyStoreHasCMKsException",
|
|
13
|
-
"CustomKeyStoreInvalidStateException",
|
|
14
|
-
"CustomKeyStoreNameInUseException",
|
|
15
|
-
"CustomKeyStoreNotFoundException",
|
|
16
|
-
"DependencyTimeoutException",
|
|
17
|
-
"DisabledException",
|
|
18
|
-
"DryRunOperationException",
|
|
19
|
-
"ExpiredImportTokenException",
|
|
20
|
-
"IncorrectKeyException",
|
|
21
|
-
"IncorrectKeyMaterialException",
|
|
22
|
-
"IncorrectTrustAnchorException",
|
|
23
|
-
"InvalidAliasNameException",
|
|
24
|
-
"InvalidArnException",
|
|
25
|
-
"InvalidCiphertextException",
|
|
26
|
-
"InvalidGrantIdException",
|
|
27
|
-
"InvalidGrantTokenException",
|
|
28
|
-
"InvalidImportTokenException",
|
|
29
|
-
"InvalidKeyUsageException",
|
|
30
|
-
"InvalidMarkerException",
|
|
31
|
-
"KMSInternalException",
|
|
32
|
-
"KMSInvalidMacException",
|
|
33
|
-
"KMSInvalidSignatureException",
|
|
34
|
-
"KMSInvalidStateException",
|
|
35
|
-
"KeyUnavailableException",
|
|
36
|
-
"LimitExceededException",
|
|
37
|
-
"MalformedPolicyDocumentException",
|
|
38
|
-
"NotFoundException",
|
|
39
|
-
"TagException",
|
|
40
|
-
"UnsupportedOperationException",
|
|
41
|
-
"XksKeyAlreadyInUseException",
|
|
42
|
-
"XksKeyInvalidConfigurationException",
|
|
43
|
-
"XksKeyNotFoundException",
|
|
44
|
-
"XksProxyIncorrectAuthenticationCredentialException",
|
|
45
|
-
"XksProxyInvalidConfigurationException",
|
|
46
|
-
"XksProxyInvalidResponseException",
|
|
47
|
-
"XksProxyUriEndpointInUseException",
|
|
48
|
-
"XksProxyUriInUseException",
|
|
49
|
-
"XksProxyUriUnreachableException",
|
|
50
|
-
"XksProxyVpcEndpointServiceInUseException",
|
|
51
|
-
"XksProxyVpcEndpointServiceInvalidConfigurationException",
|
|
52
|
-
"XksProxyVpcEndpointServiceNotFoundException",
|
|
53
|
-
];
|
|
54
|
-
//# sourceMappingURL=Errors.js.map
|
package/dist/cjs/Errors.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":";;;AAoDa,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"}
|
|
@@ -1,24 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -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.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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
package/dist/cjs/KMSService.d.ts
DELETED
|
@@ -1,258 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @since 1.0.0
|
|
3
|
-
*/
|
|
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, ServiceLogger } from "@effect-aws/commons";
|
|
6
|
-
import type { Cause } from "effect";
|
|
7
|
-
import { Effect, Layer } from "effect";
|
|
8
|
-
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, SdkError, TagError, UnsupportedOperationError, XksKeyAlreadyInUseError, XksKeyInvalidConfigurationError, XksKeyNotFoundError, XksProxyIncorrectAuthenticationCredentialError, XksProxyInvalidConfigurationError, XksProxyInvalidResponseError, XksProxyUriEndpointInUseError, XksProxyUriInUseError, XksProxyUriUnreachableError, XksProxyVpcEndpointServiceInUseError, XksProxyVpcEndpointServiceInvalidConfigurationError, XksProxyVpcEndpointServiceNotFoundError } from "./Errors.js";
|
|
9
|
-
import * as Instance from "./KMSClientInstance.js";
|
|
10
|
-
interface KMSService$ {
|
|
11
|
-
readonly _: unique symbol;
|
|
12
|
-
/**
|
|
13
|
-
* @see {@link CancelKeyDeletionCommand}
|
|
14
|
-
*/
|
|
15
|
-
cancelKeyDeletion(args: CancelKeyDeletionCommandInput, options?: HttpHandlerOptions): Effect.Effect<CancelKeyDeletionCommandOutput, Cause.TimeoutException | SdkError | DependencyTimeoutError | InvalidArnError | KMSInternalError | KMSInvalidStateError | NotFoundError>;
|
|
16
|
-
/**
|
|
17
|
-
* @see {@link ConnectCustomKeyStoreCommand}
|
|
18
|
-
*/
|
|
19
|
-
connectCustomKeyStore(args: ConnectCustomKeyStoreCommandInput, options?: HttpHandlerOptions): Effect.Effect<ConnectCustomKeyStoreCommandOutput, Cause.TimeoutException | SdkError | CloudHsmClusterInvalidConfigurationError | CloudHsmClusterNotActiveError | CustomKeyStoreInvalidStateError | CustomKeyStoreNotFoundError | KMSInternalError>;
|
|
20
|
-
/**
|
|
21
|
-
* @see {@link CreateAliasCommand}
|
|
22
|
-
*/
|
|
23
|
-
createAlias(args: CreateAliasCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateAliasCommandOutput, Cause.TimeoutException | SdkError | AlreadyExistsError | DependencyTimeoutError | InvalidAliasNameError | KMSInternalError | KMSInvalidStateError | LimitExceededError | NotFoundError>;
|
|
24
|
-
/**
|
|
25
|
-
* @see {@link CreateCustomKeyStoreCommand}
|
|
26
|
-
*/
|
|
27
|
-
createCustomKeyStore(args: CreateCustomKeyStoreCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateCustomKeyStoreCommandOutput, Cause.TimeoutException | SdkError | CloudHsmClusterInUseError | CloudHsmClusterInvalidConfigurationError | CloudHsmClusterNotActiveError | CloudHsmClusterNotFoundError | CustomKeyStoreNameInUseError | IncorrectTrustAnchorError | KMSInternalError | LimitExceededError | XksProxyIncorrectAuthenticationCredentialError | XksProxyInvalidConfigurationError | XksProxyInvalidResponseError | XksProxyUriEndpointInUseError | XksProxyUriInUseError | XksProxyUriUnreachableError | XksProxyVpcEndpointServiceInUseError | XksProxyVpcEndpointServiceInvalidConfigurationError | XksProxyVpcEndpointServiceNotFoundError>;
|
|
28
|
-
/**
|
|
29
|
-
* @see {@link CreateGrantCommand}
|
|
30
|
-
*/
|
|
31
|
-
createGrant(args: CreateGrantCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateGrantCommandOutput, Cause.TimeoutException | SdkError | DependencyTimeoutError | DisabledError | DryRunOperationError | InvalidArnError | InvalidGrantTokenError | KMSInternalError | KMSInvalidStateError | LimitExceededError | NotFoundError>;
|
|
32
|
-
/**
|
|
33
|
-
* @see {@link CreateKeyCommand}
|
|
34
|
-
*/
|
|
35
|
-
createKey(args: CreateKeyCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateKeyCommandOutput, Cause.TimeoutException | SdkError | CloudHsmClusterInvalidConfigurationError | CustomKeyStoreInvalidStateError | CustomKeyStoreNotFoundError | DependencyTimeoutError | InvalidArnError | KMSInternalError | LimitExceededError | MalformedPolicyDocumentError | TagError | UnsupportedOperationError | XksKeyAlreadyInUseError | XksKeyInvalidConfigurationError | XksKeyNotFoundError>;
|
|
36
|
-
/**
|
|
37
|
-
* @see {@link DecryptCommand}
|
|
38
|
-
*/
|
|
39
|
-
decrypt(args: DecryptCommandInput, options?: HttpHandlerOptions): Effect.Effect<DecryptCommandOutput, Cause.TimeoutException | SdkError | DependencyTimeoutError | DisabledError | DryRunOperationError | IncorrectKeyError | InvalidCiphertextError | InvalidGrantTokenError | InvalidKeyUsageError | KeyUnavailableError | KMSInternalError | KMSInvalidStateError | NotFoundError>;
|
|
40
|
-
/**
|
|
41
|
-
* @see {@link DeleteAliasCommand}
|
|
42
|
-
*/
|
|
43
|
-
deleteAlias(args: DeleteAliasCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteAliasCommandOutput, Cause.TimeoutException | SdkError | DependencyTimeoutError | KMSInternalError | KMSInvalidStateError | NotFoundError>;
|
|
44
|
-
/**
|
|
45
|
-
* @see {@link DeleteCustomKeyStoreCommand}
|
|
46
|
-
*/
|
|
47
|
-
deleteCustomKeyStore(args: DeleteCustomKeyStoreCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteCustomKeyStoreCommandOutput, Cause.TimeoutException | SdkError | CustomKeyStoreHasCMKsError | CustomKeyStoreInvalidStateError | CustomKeyStoreNotFoundError | KMSInternalError>;
|
|
48
|
-
/**
|
|
49
|
-
* @see {@link DeleteImportedKeyMaterialCommand}
|
|
50
|
-
*/
|
|
51
|
-
deleteImportedKeyMaterial(args: DeleteImportedKeyMaterialCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteImportedKeyMaterialCommandOutput, Cause.TimeoutException | SdkError | DependencyTimeoutError | InvalidArnError | KMSInternalError | KMSInvalidStateError | NotFoundError | UnsupportedOperationError>;
|
|
52
|
-
/**
|
|
53
|
-
* @see {@link DeriveSharedSecretCommand}
|
|
54
|
-
*/
|
|
55
|
-
deriveSharedSecret(args: DeriveSharedSecretCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeriveSharedSecretCommandOutput, Cause.TimeoutException | SdkError | DependencyTimeoutError | DisabledError | DryRunOperationError | InvalidGrantTokenError | InvalidKeyUsageError | KeyUnavailableError | KMSInternalError | KMSInvalidStateError | NotFoundError>;
|
|
56
|
-
/**
|
|
57
|
-
* @see {@link DescribeCustomKeyStoresCommand}
|
|
58
|
-
*/
|
|
59
|
-
describeCustomKeyStores(args: DescribeCustomKeyStoresCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeCustomKeyStoresCommandOutput, Cause.TimeoutException | SdkError | CustomKeyStoreNotFoundError | InvalidMarkerError | KMSInternalError>;
|
|
60
|
-
/**
|
|
61
|
-
* @see {@link DescribeKeyCommand}
|
|
62
|
-
*/
|
|
63
|
-
describeKey(args: DescribeKeyCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeKeyCommandOutput, Cause.TimeoutException | SdkError | DependencyTimeoutError | InvalidArnError | KMSInternalError | NotFoundError>;
|
|
64
|
-
/**
|
|
65
|
-
* @see {@link DisableKeyCommand}
|
|
66
|
-
*/
|
|
67
|
-
disableKey(args: DisableKeyCommandInput, options?: HttpHandlerOptions): Effect.Effect<DisableKeyCommandOutput, Cause.TimeoutException | SdkError | DependencyTimeoutError | InvalidArnError | KMSInternalError | KMSInvalidStateError | NotFoundError>;
|
|
68
|
-
/**
|
|
69
|
-
* @see {@link DisableKeyRotationCommand}
|
|
70
|
-
*/
|
|
71
|
-
disableKeyRotation(args: DisableKeyRotationCommandInput, options?: HttpHandlerOptions): Effect.Effect<DisableKeyRotationCommandOutput, Cause.TimeoutException | SdkError | DependencyTimeoutError | DisabledError | InvalidArnError | KMSInternalError | KMSInvalidStateError | NotFoundError | UnsupportedOperationError>;
|
|
72
|
-
/**
|
|
73
|
-
* @see {@link DisconnectCustomKeyStoreCommand}
|
|
74
|
-
*/
|
|
75
|
-
disconnectCustomKeyStore(args: DisconnectCustomKeyStoreCommandInput, options?: HttpHandlerOptions): Effect.Effect<DisconnectCustomKeyStoreCommandOutput, Cause.TimeoutException | SdkError | CustomKeyStoreInvalidStateError | CustomKeyStoreNotFoundError | KMSInternalError>;
|
|
76
|
-
/**
|
|
77
|
-
* @see {@link EnableKeyCommand}
|
|
78
|
-
*/
|
|
79
|
-
enableKey(args: EnableKeyCommandInput, options?: HttpHandlerOptions): Effect.Effect<EnableKeyCommandOutput, Cause.TimeoutException | SdkError | DependencyTimeoutError | InvalidArnError | KMSInternalError | KMSInvalidStateError | LimitExceededError | NotFoundError>;
|
|
80
|
-
/**
|
|
81
|
-
* @see {@link EnableKeyRotationCommand}
|
|
82
|
-
*/
|
|
83
|
-
enableKeyRotation(args: EnableKeyRotationCommandInput, options?: HttpHandlerOptions): Effect.Effect<EnableKeyRotationCommandOutput, Cause.TimeoutException | SdkError | DependencyTimeoutError | DisabledError | InvalidArnError | KMSInternalError | KMSInvalidStateError | NotFoundError | UnsupportedOperationError>;
|
|
84
|
-
/**
|
|
85
|
-
* @see {@link EncryptCommand}
|
|
86
|
-
*/
|
|
87
|
-
encrypt(args: EncryptCommandInput, options?: HttpHandlerOptions): Effect.Effect<EncryptCommandOutput, Cause.TimeoutException | SdkError | DependencyTimeoutError | DisabledError | DryRunOperationError | InvalidGrantTokenError | InvalidKeyUsageError | KeyUnavailableError | KMSInternalError | KMSInvalidStateError | NotFoundError>;
|
|
88
|
-
/**
|
|
89
|
-
* @see {@link GenerateDataKeyCommand}
|
|
90
|
-
*/
|
|
91
|
-
generateDataKey(args: GenerateDataKeyCommandInput, options?: HttpHandlerOptions): Effect.Effect<GenerateDataKeyCommandOutput, Cause.TimeoutException | SdkError | DependencyTimeoutError | DisabledError | DryRunOperationError | InvalidGrantTokenError | InvalidKeyUsageError | KeyUnavailableError | KMSInternalError | KMSInvalidStateError | NotFoundError>;
|
|
92
|
-
/**
|
|
93
|
-
* @see {@link GenerateDataKeyPairCommand}
|
|
94
|
-
*/
|
|
95
|
-
generateDataKeyPair(args: GenerateDataKeyPairCommandInput, options?: HttpHandlerOptions): Effect.Effect<GenerateDataKeyPairCommandOutput, Cause.TimeoutException | SdkError | DependencyTimeoutError | DisabledError | DryRunOperationError | InvalidGrantTokenError | InvalidKeyUsageError | KeyUnavailableError | KMSInternalError | KMSInvalidStateError | NotFoundError | UnsupportedOperationError>;
|
|
96
|
-
/**
|
|
97
|
-
* @see {@link GenerateDataKeyPairWithoutPlaintextCommand}
|
|
98
|
-
*/
|
|
99
|
-
generateDataKeyPairWithoutPlaintext(args: GenerateDataKeyPairWithoutPlaintextCommandInput, options?: HttpHandlerOptions): Effect.Effect<GenerateDataKeyPairWithoutPlaintextCommandOutput, Cause.TimeoutException | SdkError | DependencyTimeoutError | DisabledError | DryRunOperationError | InvalidGrantTokenError | InvalidKeyUsageError | KeyUnavailableError | KMSInternalError | KMSInvalidStateError | NotFoundError | UnsupportedOperationError>;
|
|
100
|
-
/**
|
|
101
|
-
* @see {@link GenerateDataKeyWithoutPlaintextCommand}
|
|
102
|
-
*/
|
|
103
|
-
generateDataKeyWithoutPlaintext(args: GenerateDataKeyWithoutPlaintextCommandInput, options?: HttpHandlerOptions): Effect.Effect<GenerateDataKeyWithoutPlaintextCommandOutput, Cause.TimeoutException | SdkError | DependencyTimeoutError | DisabledError | DryRunOperationError | InvalidGrantTokenError | InvalidKeyUsageError | KeyUnavailableError | KMSInternalError | KMSInvalidStateError | NotFoundError>;
|
|
104
|
-
/**
|
|
105
|
-
* @see {@link GenerateMacCommand}
|
|
106
|
-
*/
|
|
107
|
-
generateMac(args: GenerateMacCommandInput, options?: HttpHandlerOptions): Effect.Effect<GenerateMacCommandOutput, Cause.TimeoutException | SdkError | DisabledError | DryRunOperationError | InvalidGrantTokenError | InvalidKeyUsageError | KeyUnavailableError | KMSInternalError | KMSInvalidStateError | NotFoundError>;
|
|
108
|
-
/**
|
|
109
|
-
* @see {@link GenerateRandomCommand}
|
|
110
|
-
*/
|
|
111
|
-
generateRandom(args: GenerateRandomCommandInput, options?: HttpHandlerOptions): Effect.Effect<GenerateRandomCommandOutput, Cause.TimeoutException | SdkError | CustomKeyStoreInvalidStateError | CustomKeyStoreNotFoundError | DependencyTimeoutError | KMSInternalError | UnsupportedOperationError>;
|
|
112
|
-
/**
|
|
113
|
-
* @see {@link GetKeyPolicyCommand}
|
|
114
|
-
*/
|
|
115
|
-
getKeyPolicy(args: GetKeyPolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetKeyPolicyCommandOutput, Cause.TimeoutException | SdkError | DependencyTimeoutError | InvalidArnError | KMSInternalError | KMSInvalidStateError | NotFoundError>;
|
|
116
|
-
/**
|
|
117
|
-
* @see {@link GetKeyRotationStatusCommand}
|
|
118
|
-
*/
|
|
119
|
-
getKeyRotationStatus(args: GetKeyRotationStatusCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetKeyRotationStatusCommandOutput, Cause.TimeoutException | SdkError | DependencyTimeoutError | InvalidArnError | KMSInternalError | KMSInvalidStateError | NotFoundError | UnsupportedOperationError>;
|
|
120
|
-
/**
|
|
121
|
-
* @see {@link GetParametersForImportCommand}
|
|
122
|
-
*/
|
|
123
|
-
getParametersForImport(args: GetParametersForImportCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetParametersForImportCommandOutput, Cause.TimeoutException | SdkError | DependencyTimeoutError | InvalidArnError | KMSInternalError | KMSInvalidStateError | NotFoundError | UnsupportedOperationError>;
|
|
124
|
-
/**
|
|
125
|
-
* @see {@link GetPublicKeyCommand}
|
|
126
|
-
*/
|
|
127
|
-
getPublicKey(args: GetPublicKeyCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetPublicKeyCommandOutput, Cause.TimeoutException | SdkError | DependencyTimeoutError | DisabledError | InvalidArnError | InvalidGrantTokenError | InvalidKeyUsageError | KeyUnavailableError | KMSInternalError | KMSInvalidStateError | NotFoundError | UnsupportedOperationError>;
|
|
128
|
-
/**
|
|
129
|
-
* @see {@link ImportKeyMaterialCommand}
|
|
130
|
-
*/
|
|
131
|
-
importKeyMaterial(args: ImportKeyMaterialCommandInput, options?: HttpHandlerOptions): Effect.Effect<ImportKeyMaterialCommandOutput, Cause.TimeoutException | SdkError | DependencyTimeoutError | ExpiredImportTokenError | IncorrectKeyMaterialError | InvalidArnError | InvalidCiphertextError | InvalidImportTokenError | KMSInternalError | KMSInvalidStateError | NotFoundError | UnsupportedOperationError>;
|
|
132
|
-
/**
|
|
133
|
-
* @see {@link ListAliasesCommand}
|
|
134
|
-
*/
|
|
135
|
-
listAliases(args: ListAliasesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListAliasesCommandOutput, Cause.TimeoutException | SdkError | DependencyTimeoutError | InvalidArnError | InvalidMarkerError | KMSInternalError | NotFoundError>;
|
|
136
|
-
/**
|
|
137
|
-
* @see {@link ListGrantsCommand}
|
|
138
|
-
*/
|
|
139
|
-
listGrants(args: ListGrantsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListGrantsCommandOutput, Cause.TimeoutException | SdkError | DependencyTimeoutError | InvalidArnError | InvalidGrantIdError | InvalidMarkerError | KMSInternalError | KMSInvalidStateError | NotFoundError>;
|
|
140
|
-
/**
|
|
141
|
-
* @see {@link ListKeyPoliciesCommand}
|
|
142
|
-
*/
|
|
143
|
-
listKeyPolicies(args: ListKeyPoliciesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListKeyPoliciesCommandOutput, Cause.TimeoutException | SdkError | DependencyTimeoutError | InvalidArnError | KMSInternalError | KMSInvalidStateError | NotFoundError>;
|
|
144
|
-
/**
|
|
145
|
-
* @see {@link ListKeyRotationsCommand}
|
|
146
|
-
*/
|
|
147
|
-
listKeyRotations(args: ListKeyRotationsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListKeyRotationsCommandOutput, Cause.TimeoutException | SdkError | InvalidArnError | InvalidMarkerError | KMSInternalError | KMSInvalidStateError | NotFoundError | UnsupportedOperationError>;
|
|
148
|
-
/**
|
|
149
|
-
* @see {@link ListKeysCommand}
|
|
150
|
-
*/
|
|
151
|
-
listKeys(args: ListKeysCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListKeysCommandOutput, Cause.TimeoutException | SdkError | DependencyTimeoutError | InvalidMarkerError | KMSInternalError>;
|
|
152
|
-
/**
|
|
153
|
-
* @see {@link ListResourceTagsCommand}
|
|
154
|
-
*/
|
|
155
|
-
listResourceTags(args: ListResourceTagsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListResourceTagsCommandOutput, Cause.TimeoutException | SdkError | InvalidArnError | InvalidMarkerError | KMSInternalError | NotFoundError>;
|
|
156
|
-
/**
|
|
157
|
-
* @see {@link ListRetirableGrantsCommand}
|
|
158
|
-
*/
|
|
159
|
-
listRetirableGrants(args: ListRetirableGrantsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListRetirableGrantsCommandOutput, Cause.TimeoutException | SdkError | DependencyTimeoutError | InvalidArnError | InvalidMarkerError | KMSInternalError | NotFoundError>;
|
|
160
|
-
/**
|
|
161
|
-
* @see {@link PutKeyPolicyCommand}
|
|
162
|
-
*/
|
|
163
|
-
putKeyPolicy(args: PutKeyPolicyCommandInput, options?: HttpHandlerOptions): Effect.Effect<PutKeyPolicyCommandOutput, Cause.TimeoutException | SdkError | DependencyTimeoutError | InvalidArnError | KMSInternalError | KMSInvalidStateError | LimitExceededError | MalformedPolicyDocumentError | NotFoundError | UnsupportedOperationError>;
|
|
164
|
-
/**
|
|
165
|
-
* @see {@link ReEncryptCommand}
|
|
166
|
-
*/
|
|
167
|
-
reEncrypt(args: ReEncryptCommandInput, options?: HttpHandlerOptions): Effect.Effect<ReEncryptCommandOutput, Cause.TimeoutException | SdkError | DependencyTimeoutError | DisabledError | DryRunOperationError | IncorrectKeyError | InvalidCiphertextError | InvalidGrantTokenError | InvalidKeyUsageError | KeyUnavailableError | KMSInternalError | KMSInvalidStateError | NotFoundError>;
|
|
168
|
-
/**
|
|
169
|
-
* @see {@link ReplicateKeyCommand}
|
|
170
|
-
*/
|
|
171
|
-
replicateKey(args: ReplicateKeyCommandInput, options?: HttpHandlerOptions): Effect.Effect<ReplicateKeyCommandOutput, Cause.TimeoutException | SdkError | AlreadyExistsError | DisabledError | InvalidArnError | KMSInternalError | KMSInvalidStateError | LimitExceededError | MalformedPolicyDocumentError | NotFoundError | TagError | UnsupportedOperationError>;
|
|
172
|
-
/**
|
|
173
|
-
* @see {@link RetireGrantCommand}
|
|
174
|
-
*/
|
|
175
|
-
retireGrant(args: RetireGrantCommandInput, options?: HttpHandlerOptions): Effect.Effect<RetireGrantCommandOutput, Cause.TimeoutException | SdkError | DependencyTimeoutError | DryRunOperationError | InvalidArnError | InvalidGrantIdError | InvalidGrantTokenError | KMSInternalError | KMSInvalidStateError | NotFoundError>;
|
|
176
|
-
/**
|
|
177
|
-
* @see {@link RevokeGrantCommand}
|
|
178
|
-
*/
|
|
179
|
-
revokeGrant(args: RevokeGrantCommandInput, options?: HttpHandlerOptions): Effect.Effect<RevokeGrantCommandOutput, Cause.TimeoutException | SdkError | DependencyTimeoutError | DryRunOperationError | InvalidArnError | InvalidGrantIdError | KMSInternalError | KMSInvalidStateError | NotFoundError>;
|
|
180
|
-
/**
|
|
181
|
-
* @see {@link RotateKeyOnDemandCommand}
|
|
182
|
-
*/
|
|
183
|
-
rotateKeyOnDemand(args: RotateKeyOnDemandCommandInput, options?: HttpHandlerOptions): Effect.Effect<RotateKeyOnDemandCommandOutput, Cause.TimeoutException | SdkError | ConflictError | DependencyTimeoutError | DisabledError | InvalidArnError | KMSInternalError | KMSInvalidStateError | LimitExceededError | NotFoundError | UnsupportedOperationError>;
|
|
184
|
-
/**
|
|
185
|
-
* @see {@link ScheduleKeyDeletionCommand}
|
|
186
|
-
*/
|
|
187
|
-
scheduleKeyDeletion(args: ScheduleKeyDeletionCommandInput, options?: HttpHandlerOptions): Effect.Effect<ScheduleKeyDeletionCommandOutput, Cause.TimeoutException | SdkError | DependencyTimeoutError | InvalidArnError | KMSInternalError | KMSInvalidStateError | NotFoundError>;
|
|
188
|
-
/**
|
|
189
|
-
* @see {@link SignCommand}
|
|
190
|
-
*/
|
|
191
|
-
sign(args: SignCommandInput, options?: HttpHandlerOptions): Effect.Effect<SignCommandOutput, Cause.TimeoutException | SdkError | DependencyTimeoutError | DisabledError | DryRunOperationError | InvalidGrantTokenError | InvalidKeyUsageError | KeyUnavailableError | KMSInternalError | KMSInvalidStateError | NotFoundError>;
|
|
192
|
-
/**
|
|
193
|
-
* @see {@link TagResourceCommand}
|
|
194
|
-
*/
|
|
195
|
-
tagResource(args: TagResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<TagResourceCommandOutput, Cause.TimeoutException | SdkError | InvalidArnError | KMSInternalError | KMSInvalidStateError | LimitExceededError | NotFoundError | TagError>;
|
|
196
|
-
/**
|
|
197
|
-
* @see {@link UntagResourceCommand}
|
|
198
|
-
*/
|
|
199
|
-
untagResource(args: UntagResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<UntagResourceCommandOutput, Cause.TimeoutException | SdkError | InvalidArnError | KMSInternalError | KMSInvalidStateError | NotFoundError | TagError>;
|
|
200
|
-
/**
|
|
201
|
-
* @see {@link UpdateAliasCommand}
|
|
202
|
-
*/
|
|
203
|
-
updateAlias(args: UpdateAliasCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateAliasCommandOutput, Cause.TimeoutException | SdkError | DependencyTimeoutError | KMSInternalError | KMSInvalidStateError | LimitExceededError | NotFoundError>;
|
|
204
|
-
/**
|
|
205
|
-
* @see {@link UpdateCustomKeyStoreCommand}
|
|
206
|
-
*/
|
|
207
|
-
updateCustomKeyStore(args: UpdateCustomKeyStoreCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateCustomKeyStoreCommandOutput, Cause.TimeoutException | SdkError | CloudHsmClusterInvalidConfigurationError | CloudHsmClusterNotActiveError | CloudHsmClusterNotFoundError | CloudHsmClusterNotRelatedError | CustomKeyStoreInvalidStateError | CustomKeyStoreNameInUseError | CustomKeyStoreNotFoundError | KMSInternalError | XksProxyIncorrectAuthenticationCredentialError | XksProxyInvalidConfigurationError | XksProxyInvalidResponseError | XksProxyUriEndpointInUseError | XksProxyUriInUseError | XksProxyUriUnreachableError | XksProxyVpcEndpointServiceInUseError | XksProxyVpcEndpointServiceInvalidConfigurationError | XksProxyVpcEndpointServiceNotFoundError>;
|
|
208
|
-
/**
|
|
209
|
-
* @see {@link UpdateKeyDescriptionCommand}
|
|
210
|
-
*/
|
|
211
|
-
updateKeyDescription(args: UpdateKeyDescriptionCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateKeyDescriptionCommandOutput, Cause.TimeoutException | SdkError | DependencyTimeoutError | InvalidArnError | KMSInternalError | KMSInvalidStateError | NotFoundError>;
|
|
212
|
-
/**
|
|
213
|
-
* @see {@link UpdatePrimaryRegionCommand}
|
|
214
|
-
*/
|
|
215
|
-
updatePrimaryRegion(args: UpdatePrimaryRegionCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdatePrimaryRegionCommandOutput, Cause.TimeoutException | SdkError | DisabledError | InvalidArnError | KMSInternalError | KMSInvalidStateError | NotFoundError | UnsupportedOperationError>;
|
|
216
|
-
/**
|
|
217
|
-
* @see {@link VerifyCommand}
|
|
218
|
-
*/
|
|
219
|
-
verify(args: VerifyCommandInput, options?: HttpHandlerOptions): Effect.Effect<VerifyCommandOutput, Cause.TimeoutException | SdkError | DependencyTimeoutError | DisabledError | DryRunOperationError | InvalidGrantTokenError | InvalidKeyUsageError | KeyUnavailableError | KMSInternalError | KMSInvalidSignatureError | KMSInvalidStateError | NotFoundError>;
|
|
220
|
-
/**
|
|
221
|
-
* @see {@link VerifyMacCommand}
|
|
222
|
-
*/
|
|
223
|
-
verifyMac(args: VerifyMacCommandInput, options?: HttpHandlerOptions): Effect.Effect<VerifyMacCommandOutput, Cause.TimeoutException | SdkError | DisabledError | DryRunOperationError | InvalidGrantTokenError | InvalidKeyUsageError | KeyUnavailableError | KMSInternalError | KMSInvalidMacError | KMSInvalidStateError | NotFoundError>;
|
|
224
|
-
}
|
|
225
|
-
/**
|
|
226
|
-
* @since 1.0.0
|
|
227
|
-
* @category constructors
|
|
228
|
-
*/
|
|
229
|
-
export declare const makeKMSService: Effect.Effect<KMSService$, never, Instance.KMSClientInstance>;
|
|
230
|
-
declare const KMSService_base: import("effect/Context").TagClass<KMSService, "@effect-aws/client-kms/KMSService", KMSService$> & Effect.Tag.Proxy<KMSService, KMSService$> & {
|
|
231
|
-
use: <X>(body: (_: KMSService$) => X) => [X] extends [Effect.Effect<infer A, infer E, infer R>] ? Effect.Effect<A, E, KMSService | R> : [X] extends [PromiseLike<infer A_1>] ? Effect.Effect<A_1, Cause.UnknownException, KMSService> : Effect.Effect<X, never, KMSService>;
|
|
232
|
-
};
|
|
233
|
-
/**
|
|
234
|
-
* @since 1.0.0
|
|
235
|
-
* @category models
|
|
236
|
-
*/
|
|
237
|
-
export declare class KMSService extends KMSService_base {
|
|
238
|
-
static readonly defaultLayer: Layer.Layer<KMSService, never, never>;
|
|
239
|
-
static readonly layer: (config: KMSService.Config) => Layer.Layer<KMSService, never, never>;
|
|
240
|
-
static readonly baseLayer: (evaluate: (defaultConfig: KMSClientConfig) => KMSClient) => Layer.Layer<KMSService, never, never>;
|
|
241
|
-
}
|
|
242
|
-
/**
|
|
243
|
-
* @since 1.0.0
|
|
244
|
-
*/
|
|
245
|
-
export declare namespace KMSService {
|
|
246
|
-
/**
|
|
247
|
-
* @since 1.0.0
|
|
248
|
-
*/
|
|
249
|
-
interface Config extends Omit<KMSClientConfig, "logger"> {
|
|
250
|
-
readonly logger?: ServiceLogger.ServiceLoggerConstructorProps | true;
|
|
251
|
-
}
|
|
252
|
-
/**
|
|
253
|
-
* @since 1.0.0
|
|
254
|
-
*/
|
|
255
|
-
type Type = KMSService$;
|
|
256
|
-
}
|
|
257
|
-
export {};
|
|
258
|
-
//# sourceMappingURL=KMSService.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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,KAA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aAAa,CAChB,CAAC;CACH;AAED;;;GAGG;AACH,eAAO,MAAM,cAAc,+DAWzB,CAAC;;;;AAEH;;;GAGG;AACH,qBAAa,UAAW,SAAQ,eAG7B;IACD,MAAM,CAAC,QAAQ,CAAC,YAAY,wCAA0E;IACtG,MAAM,CAAC,QAAQ,CAAC,KAAK,WAAY,WAAW,MAAM,2CAI9C;IACJ,MAAM,CAAC,QAAQ,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;IAED;;OAEG;IACH,KAAY,IAAI,GAAG,WAAW,CAAC;CAChC"}
|
package/dist/cjs/KMSService.js
DELETED
|
@@ -1,112 +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.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 yield* commons_1.Service.fromClientAndCommands(client, commands, {
|
|
98
|
-
errorTags: Errors_js_1.AllServiceErrors,
|
|
99
|
-
resolveClientConfig: KMSServiceConfig.toKMSClientConfig,
|
|
100
|
-
});
|
|
101
|
-
});
|
|
102
|
-
/**
|
|
103
|
-
* @since 1.0.0
|
|
104
|
-
* @category models
|
|
105
|
-
*/
|
|
106
|
-
class KMSService extends effect_1.Effect.Tag("@effect-aws/client-kms/KMSService")() {
|
|
107
|
-
static defaultLayer = effect_1.Layer.effect(this, exports.makeKMSService).pipe(effect_1.Layer.provide(Instance.layer));
|
|
108
|
-
static layer = (config) => effect_1.Layer.effect(this, exports.makeKMSService).pipe(effect_1.Layer.provide(Instance.layer), effect_1.Layer.provide(KMSServiceConfig.setKMSServiceConfig(config)));
|
|
109
|
-
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))));
|
|
110
|
-
}
|
|
111
|
-
exports.KMSService = KMSService;
|
|
112
|
-
//# sourceMappingURL=KMSService.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"KMSService.js","sourceRoot":"","sources":["../../src/KMSService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,oDAkK6B;AAE7B,iDAA8C;AAE9C,mCAAuC;AAoDvC,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;IAC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-
*/
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|