@effect-aws/client-kms 1.1.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.
- package/Errors/package.json +6 -0
- package/KMSClientInstance/package.json +6 -0
- package/KMSService/package.json +6 -0
- package/KMSServiceConfig/package.json +6 -0
- package/LICENSE +1 -1
- package/{lib → dist/cjs}/Errors.d.ts +7 -12
- package/dist/cjs/Errors.d.ts.map +1 -0
- package/dist/cjs/Errors.js +56 -0
- package/dist/cjs/Errors.js.map +1 -0
- package/dist/cjs/KMSClientInstance.d.ts +24 -0
- package/dist/cjs/KMSClientInstance.d.ts.map +1 -0
- package/dist/cjs/KMSClientInstance.js +50 -0
- package/dist/cjs/KMSClientInstance.js.map +1 -0
- package/{lib → dist/cjs}/KMSService.d.ts +16 -38
- package/dist/cjs/KMSService.d.ts.map +1 -0
- package/dist/cjs/KMSService.js +109 -0
- package/dist/cjs/KMSService.js.map +1 -0
- package/dist/cjs/KMSServiceConfig.d.ts +25 -0
- package/dist/cjs/KMSServiceConfig.d.ts.map +1 -0
- package/dist/cjs/KMSServiceConfig.js +35 -0
- package/dist/cjs/KMSServiceConfig.js.map +1 -0
- package/dist/cjs/index.d.ts +39 -0
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/index.js +56 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/dts/Errors.d.ts +55 -0
- package/dist/dts/Errors.d.ts.map +1 -0
- package/dist/dts/KMSClientInstance.d.ts +24 -0
- package/dist/dts/KMSClientInstance.d.ts.map +1 -0
- package/dist/dts/KMSService.d.ts +308 -0
- package/dist/dts/KMSService.d.ts.map +1 -0
- package/dist/dts/KMSServiceConfig.d.ts +25 -0
- package/dist/dts/KMSServiceConfig.d.ts.map +1 -0
- package/dist/dts/index.d.ts +39 -0
- package/dist/dts/index.d.ts.map +1 -0
- package/dist/esm/Errors.js +53 -0
- package/dist/esm/Errors.js.map +1 -0
- package/dist/esm/KMSClientInstance.js +23 -0
- package/dist/esm/KMSClientInstance.js.map +1 -0
- package/dist/esm/KMSService.js +82 -0
- package/dist/esm/KMSService.js.map +1 -0
- package/dist/esm/KMSServiceConfig.js +31 -0
- package/dist/esm/KMSServiceConfig.js.map +1 -0
- package/dist/esm/index.js +27 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/package.json +4 -0
- package/package.json +60 -43
- package/src/Errors.ts +159 -0
- package/src/KMSClientInstance.ts +33 -0
- package/src/KMSService.ts +1224 -0
- package/src/KMSServiceConfig.ts +51 -0
- package/src/index.ts +44 -0
- package/CHANGELOG.md +0 -29
- package/docgen.json +0 -8
- package/lib/Errors.js +0 -56
- package/lib/KMSClientInstance.d.ts +0 -31
- package/lib/KMSClientInstance.js +0 -57
- package/lib/KMSClientInstanceConfig.d.ts +0 -23
- package/lib/KMSClientInstanceConfig.js +0 -44
- package/lib/KMSService.js +0 -141
- package/lib/esm/Errors.js +0 -53
- package/lib/esm/KMSClientInstance.js +0 -30
- package/lib/esm/KMSClientInstanceConfig.js +0 -40
- package/lib/esm/KMSService.js +0 -137
- package/lib/esm/index.js +0 -5
- package/lib/index.d.ts +0 -4
- package/lib/index.js +0 -21
- package/project.json +0 -77
- package/vitest.config.ts +0 -3
|
@@ -0,0 +1,1224 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 1.0.0
|
|
3
|
+
*/
|
|
4
|
+
import {
|
|
5
|
+
CancelKeyDeletionCommand,
|
|
6
|
+
type CancelKeyDeletionCommandInput,
|
|
7
|
+
type CancelKeyDeletionCommandOutput,
|
|
8
|
+
ConnectCustomKeyStoreCommand,
|
|
9
|
+
type ConnectCustomKeyStoreCommandInput,
|
|
10
|
+
type ConnectCustomKeyStoreCommandOutput,
|
|
11
|
+
CreateAliasCommand,
|
|
12
|
+
type CreateAliasCommandInput,
|
|
13
|
+
type CreateAliasCommandOutput,
|
|
14
|
+
CreateCustomKeyStoreCommand,
|
|
15
|
+
type CreateCustomKeyStoreCommandInput,
|
|
16
|
+
type CreateCustomKeyStoreCommandOutput,
|
|
17
|
+
CreateGrantCommand,
|
|
18
|
+
type CreateGrantCommandInput,
|
|
19
|
+
type CreateGrantCommandOutput,
|
|
20
|
+
CreateKeyCommand,
|
|
21
|
+
type CreateKeyCommandInput,
|
|
22
|
+
type CreateKeyCommandOutput,
|
|
23
|
+
DecryptCommand,
|
|
24
|
+
type DecryptCommandInput,
|
|
25
|
+
type DecryptCommandOutput,
|
|
26
|
+
DeleteAliasCommand,
|
|
27
|
+
type DeleteAliasCommandInput,
|
|
28
|
+
type DeleteAliasCommandOutput,
|
|
29
|
+
DeleteCustomKeyStoreCommand,
|
|
30
|
+
type DeleteCustomKeyStoreCommandInput,
|
|
31
|
+
type DeleteCustomKeyStoreCommandOutput,
|
|
32
|
+
DeleteImportedKeyMaterialCommand,
|
|
33
|
+
type DeleteImportedKeyMaterialCommandInput,
|
|
34
|
+
type DeleteImportedKeyMaterialCommandOutput,
|
|
35
|
+
DeriveSharedSecretCommand,
|
|
36
|
+
type DeriveSharedSecretCommandInput,
|
|
37
|
+
type DeriveSharedSecretCommandOutput,
|
|
38
|
+
DescribeCustomKeyStoresCommand,
|
|
39
|
+
type DescribeCustomKeyStoresCommandInput,
|
|
40
|
+
type DescribeCustomKeyStoresCommandOutput,
|
|
41
|
+
DescribeKeyCommand,
|
|
42
|
+
type DescribeKeyCommandInput,
|
|
43
|
+
type DescribeKeyCommandOutput,
|
|
44
|
+
DisableKeyCommand,
|
|
45
|
+
type DisableKeyCommandInput,
|
|
46
|
+
type DisableKeyCommandOutput,
|
|
47
|
+
DisableKeyRotationCommand,
|
|
48
|
+
type DisableKeyRotationCommandInput,
|
|
49
|
+
type DisableKeyRotationCommandOutput,
|
|
50
|
+
DisconnectCustomKeyStoreCommand,
|
|
51
|
+
type DisconnectCustomKeyStoreCommandInput,
|
|
52
|
+
type DisconnectCustomKeyStoreCommandOutput,
|
|
53
|
+
EnableKeyCommand,
|
|
54
|
+
type EnableKeyCommandInput,
|
|
55
|
+
type EnableKeyCommandOutput,
|
|
56
|
+
EnableKeyRotationCommand,
|
|
57
|
+
type EnableKeyRotationCommandInput,
|
|
58
|
+
type EnableKeyRotationCommandOutput,
|
|
59
|
+
EncryptCommand,
|
|
60
|
+
type EncryptCommandInput,
|
|
61
|
+
type EncryptCommandOutput,
|
|
62
|
+
GenerateDataKeyCommand,
|
|
63
|
+
type GenerateDataKeyCommandInput,
|
|
64
|
+
type GenerateDataKeyCommandOutput,
|
|
65
|
+
GenerateDataKeyPairCommand,
|
|
66
|
+
type GenerateDataKeyPairCommandInput,
|
|
67
|
+
type GenerateDataKeyPairCommandOutput,
|
|
68
|
+
GenerateDataKeyPairWithoutPlaintextCommand,
|
|
69
|
+
type GenerateDataKeyPairWithoutPlaintextCommandInput,
|
|
70
|
+
type GenerateDataKeyPairWithoutPlaintextCommandOutput,
|
|
71
|
+
GenerateDataKeyWithoutPlaintextCommand,
|
|
72
|
+
type GenerateDataKeyWithoutPlaintextCommandInput,
|
|
73
|
+
type GenerateDataKeyWithoutPlaintextCommandOutput,
|
|
74
|
+
GenerateMacCommand,
|
|
75
|
+
type GenerateMacCommandInput,
|
|
76
|
+
type GenerateMacCommandOutput,
|
|
77
|
+
GenerateRandomCommand,
|
|
78
|
+
type GenerateRandomCommandInput,
|
|
79
|
+
type GenerateRandomCommandOutput,
|
|
80
|
+
GetKeyPolicyCommand,
|
|
81
|
+
type GetKeyPolicyCommandInput,
|
|
82
|
+
type GetKeyPolicyCommandOutput,
|
|
83
|
+
GetKeyRotationStatusCommand,
|
|
84
|
+
type GetKeyRotationStatusCommandInput,
|
|
85
|
+
type GetKeyRotationStatusCommandOutput,
|
|
86
|
+
GetParametersForImportCommand,
|
|
87
|
+
type GetParametersForImportCommandInput,
|
|
88
|
+
type GetParametersForImportCommandOutput,
|
|
89
|
+
GetPublicKeyCommand,
|
|
90
|
+
type GetPublicKeyCommandInput,
|
|
91
|
+
type GetPublicKeyCommandOutput,
|
|
92
|
+
ImportKeyMaterialCommand,
|
|
93
|
+
type ImportKeyMaterialCommandInput,
|
|
94
|
+
type ImportKeyMaterialCommandOutput,
|
|
95
|
+
type KMSClient,
|
|
96
|
+
type KMSClientConfig,
|
|
97
|
+
ListAliasesCommand,
|
|
98
|
+
type ListAliasesCommandInput,
|
|
99
|
+
type ListAliasesCommandOutput,
|
|
100
|
+
ListGrantsCommand,
|
|
101
|
+
type ListGrantsCommandInput,
|
|
102
|
+
type ListGrantsCommandOutput,
|
|
103
|
+
ListKeyPoliciesCommand,
|
|
104
|
+
type ListKeyPoliciesCommandInput,
|
|
105
|
+
type ListKeyPoliciesCommandOutput,
|
|
106
|
+
ListKeyRotationsCommand,
|
|
107
|
+
type ListKeyRotationsCommandInput,
|
|
108
|
+
type ListKeyRotationsCommandOutput,
|
|
109
|
+
ListKeysCommand,
|
|
110
|
+
type ListKeysCommandInput,
|
|
111
|
+
type ListKeysCommandOutput,
|
|
112
|
+
ListResourceTagsCommand,
|
|
113
|
+
type ListResourceTagsCommandInput,
|
|
114
|
+
type ListResourceTagsCommandOutput,
|
|
115
|
+
ListRetirableGrantsCommand,
|
|
116
|
+
type ListRetirableGrantsCommandInput,
|
|
117
|
+
type ListRetirableGrantsCommandOutput,
|
|
118
|
+
PutKeyPolicyCommand,
|
|
119
|
+
type PutKeyPolicyCommandInput,
|
|
120
|
+
type PutKeyPolicyCommandOutput,
|
|
121
|
+
ReEncryptCommand,
|
|
122
|
+
type ReEncryptCommandInput,
|
|
123
|
+
type ReEncryptCommandOutput,
|
|
124
|
+
ReplicateKeyCommand,
|
|
125
|
+
type ReplicateKeyCommandInput,
|
|
126
|
+
type ReplicateKeyCommandOutput,
|
|
127
|
+
RetireGrantCommand,
|
|
128
|
+
type RetireGrantCommandInput,
|
|
129
|
+
type RetireGrantCommandOutput,
|
|
130
|
+
RevokeGrantCommand,
|
|
131
|
+
type RevokeGrantCommandInput,
|
|
132
|
+
type RevokeGrantCommandOutput,
|
|
133
|
+
RotateKeyOnDemandCommand,
|
|
134
|
+
type RotateKeyOnDemandCommandInput,
|
|
135
|
+
type RotateKeyOnDemandCommandOutput,
|
|
136
|
+
ScheduleKeyDeletionCommand,
|
|
137
|
+
type ScheduleKeyDeletionCommandInput,
|
|
138
|
+
type ScheduleKeyDeletionCommandOutput,
|
|
139
|
+
SignCommand,
|
|
140
|
+
type SignCommandInput,
|
|
141
|
+
type SignCommandOutput,
|
|
142
|
+
TagResourceCommand,
|
|
143
|
+
type TagResourceCommandInput,
|
|
144
|
+
type TagResourceCommandOutput,
|
|
145
|
+
UntagResourceCommand,
|
|
146
|
+
type UntagResourceCommandInput,
|
|
147
|
+
type UntagResourceCommandOutput,
|
|
148
|
+
UpdateAliasCommand,
|
|
149
|
+
type UpdateAliasCommandInput,
|
|
150
|
+
type UpdateAliasCommandOutput,
|
|
151
|
+
UpdateCustomKeyStoreCommand,
|
|
152
|
+
type UpdateCustomKeyStoreCommandInput,
|
|
153
|
+
type UpdateCustomKeyStoreCommandOutput,
|
|
154
|
+
UpdateKeyDescriptionCommand,
|
|
155
|
+
type UpdateKeyDescriptionCommandInput,
|
|
156
|
+
type UpdateKeyDescriptionCommandOutput,
|
|
157
|
+
UpdatePrimaryRegionCommand,
|
|
158
|
+
type UpdatePrimaryRegionCommandInput,
|
|
159
|
+
type UpdatePrimaryRegionCommandOutput,
|
|
160
|
+
VerifyCommand,
|
|
161
|
+
type VerifyCommandInput,
|
|
162
|
+
type VerifyCommandOutput,
|
|
163
|
+
VerifyMacCommand,
|
|
164
|
+
type VerifyMacCommandInput,
|
|
165
|
+
type VerifyMacCommandOutput,
|
|
166
|
+
} from "@aws-sdk/client-kms";
|
|
167
|
+
import type { HttpHandlerOptions, SdkError, ServiceLogger } from "@effect-aws/commons";
|
|
168
|
+
import { Service } from "@effect-aws/commons";
|
|
169
|
+
import { Effect, Layer } from "effect";
|
|
170
|
+
import type {
|
|
171
|
+
AlreadyExistsError,
|
|
172
|
+
CloudHsmClusterInUseError,
|
|
173
|
+
CloudHsmClusterInvalidConfigurationError,
|
|
174
|
+
CloudHsmClusterNotActiveError,
|
|
175
|
+
CloudHsmClusterNotFoundError,
|
|
176
|
+
CloudHsmClusterNotRelatedError,
|
|
177
|
+
ConflictError,
|
|
178
|
+
CustomKeyStoreHasCMKsError,
|
|
179
|
+
CustomKeyStoreInvalidStateError,
|
|
180
|
+
CustomKeyStoreNameInUseError,
|
|
181
|
+
CustomKeyStoreNotFoundError,
|
|
182
|
+
DependencyTimeoutError,
|
|
183
|
+
DisabledError,
|
|
184
|
+
DryRunOperationError,
|
|
185
|
+
ExpiredImportTokenError,
|
|
186
|
+
IncorrectKeyError,
|
|
187
|
+
IncorrectKeyMaterialError,
|
|
188
|
+
IncorrectTrustAnchorError,
|
|
189
|
+
InvalidAliasNameError,
|
|
190
|
+
InvalidArnError,
|
|
191
|
+
InvalidCiphertextError,
|
|
192
|
+
InvalidGrantIdError,
|
|
193
|
+
InvalidGrantTokenError,
|
|
194
|
+
InvalidImportTokenError,
|
|
195
|
+
InvalidKeyUsageError,
|
|
196
|
+
InvalidMarkerError,
|
|
197
|
+
KeyUnavailableError,
|
|
198
|
+
KMSInternalError,
|
|
199
|
+
KMSInvalidMacError,
|
|
200
|
+
KMSInvalidSignatureError,
|
|
201
|
+
KMSInvalidStateError,
|
|
202
|
+
LimitExceededError,
|
|
203
|
+
MalformedPolicyDocumentError,
|
|
204
|
+
NotFoundError,
|
|
205
|
+
TagError,
|
|
206
|
+
UnsupportedOperationError,
|
|
207
|
+
XksKeyAlreadyInUseError,
|
|
208
|
+
XksKeyInvalidConfigurationError,
|
|
209
|
+
XksKeyNotFoundError,
|
|
210
|
+
XksProxyIncorrectAuthenticationCredentialError,
|
|
211
|
+
XksProxyInvalidConfigurationError,
|
|
212
|
+
XksProxyInvalidResponseError,
|
|
213
|
+
XksProxyUriEndpointInUseError,
|
|
214
|
+
XksProxyUriInUseError,
|
|
215
|
+
XksProxyUriUnreachableError,
|
|
216
|
+
XksProxyVpcEndpointServiceInUseError,
|
|
217
|
+
XksProxyVpcEndpointServiceInvalidConfigurationError,
|
|
218
|
+
XksProxyVpcEndpointServiceNotFoundError,
|
|
219
|
+
} from "./Errors.js";
|
|
220
|
+
import { AllServiceErrors } from "./Errors.js";
|
|
221
|
+
import * as Instance from "./KMSClientInstance.js";
|
|
222
|
+
import * as KMSServiceConfig from "./KMSServiceConfig.js";
|
|
223
|
+
|
|
224
|
+
const commands = {
|
|
225
|
+
CancelKeyDeletionCommand,
|
|
226
|
+
ConnectCustomKeyStoreCommand,
|
|
227
|
+
CreateAliasCommand,
|
|
228
|
+
CreateCustomKeyStoreCommand,
|
|
229
|
+
CreateGrantCommand,
|
|
230
|
+
CreateKeyCommand,
|
|
231
|
+
DecryptCommand,
|
|
232
|
+
DeleteAliasCommand,
|
|
233
|
+
DeleteCustomKeyStoreCommand,
|
|
234
|
+
DeleteImportedKeyMaterialCommand,
|
|
235
|
+
DeriveSharedSecretCommand,
|
|
236
|
+
DescribeCustomKeyStoresCommand,
|
|
237
|
+
DescribeKeyCommand,
|
|
238
|
+
DisableKeyCommand,
|
|
239
|
+
DisableKeyRotationCommand,
|
|
240
|
+
DisconnectCustomKeyStoreCommand,
|
|
241
|
+
EnableKeyCommand,
|
|
242
|
+
EnableKeyRotationCommand,
|
|
243
|
+
EncryptCommand,
|
|
244
|
+
GenerateDataKeyCommand,
|
|
245
|
+
GenerateDataKeyPairCommand,
|
|
246
|
+
GenerateDataKeyPairWithoutPlaintextCommand,
|
|
247
|
+
GenerateDataKeyWithoutPlaintextCommand,
|
|
248
|
+
GenerateMacCommand,
|
|
249
|
+
GenerateRandomCommand,
|
|
250
|
+
GetKeyPolicyCommand,
|
|
251
|
+
GetKeyRotationStatusCommand,
|
|
252
|
+
GetParametersForImportCommand,
|
|
253
|
+
GetPublicKeyCommand,
|
|
254
|
+
ImportKeyMaterialCommand,
|
|
255
|
+
ListAliasesCommand,
|
|
256
|
+
ListGrantsCommand,
|
|
257
|
+
ListKeyPoliciesCommand,
|
|
258
|
+
ListKeyRotationsCommand,
|
|
259
|
+
ListKeysCommand,
|
|
260
|
+
ListResourceTagsCommand,
|
|
261
|
+
ListRetirableGrantsCommand,
|
|
262
|
+
PutKeyPolicyCommand,
|
|
263
|
+
ReEncryptCommand,
|
|
264
|
+
ReplicateKeyCommand,
|
|
265
|
+
RetireGrantCommand,
|
|
266
|
+
RevokeGrantCommand,
|
|
267
|
+
RotateKeyOnDemandCommand,
|
|
268
|
+
ScheduleKeyDeletionCommand,
|
|
269
|
+
SignCommand,
|
|
270
|
+
TagResourceCommand,
|
|
271
|
+
UntagResourceCommand,
|
|
272
|
+
UpdateAliasCommand,
|
|
273
|
+
UpdateCustomKeyStoreCommand,
|
|
274
|
+
UpdateKeyDescriptionCommand,
|
|
275
|
+
UpdatePrimaryRegionCommand,
|
|
276
|
+
VerifyCommand,
|
|
277
|
+
VerifyMacCommand,
|
|
278
|
+
};
|
|
279
|
+
|
|
280
|
+
interface KMSService$ {
|
|
281
|
+
readonly _: unique symbol;
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* @see {@link CancelKeyDeletionCommand}
|
|
285
|
+
*/
|
|
286
|
+
cancelKeyDeletion(
|
|
287
|
+
args: CancelKeyDeletionCommandInput,
|
|
288
|
+
options?: HttpHandlerOptions,
|
|
289
|
+
): Effect.Effect<
|
|
290
|
+
CancelKeyDeletionCommandOutput,
|
|
291
|
+
SdkError | DependencyTimeoutError | InvalidArnError | KMSInternalError | KMSInvalidStateError | NotFoundError
|
|
292
|
+
>;
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* @see {@link ConnectCustomKeyStoreCommand}
|
|
296
|
+
*/
|
|
297
|
+
connectCustomKeyStore(
|
|
298
|
+
args: ConnectCustomKeyStoreCommandInput,
|
|
299
|
+
options?: HttpHandlerOptions,
|
|
300
|
+
): Effect.Effect<
|
|
301
|
+
ConnectCustomKeyStoreCommandOutput,
|
|
302
|
+
| SdkError
|
|
303
|
+
| CloudHsmClusterInvalidConfigurationError
|
|
304
|
+
| CloudHsmClusterNotActiveError
|
|
305
|
+
| CustomKeyStoreInvalidStateError
|
|
306
|
+
| CustomKeyStoreNotFoundError
|
|
307
|
+
| KMSInternalError
|
|
308
|
+
>;
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* @see {@link CreateAliasCommand}
|
|
312
|
+
*/
|
|
313
|
+
createAlias(
|
|
314
|
+
args: CreateAliasCommandInput,
|
|
315
|
+
options?: HttpHandlerOptions,
|
|
316
|
+
): Effect.Effect<
|
|
317
|
+
CreateAliasCommandOutput,
|
|
318
|
+
| SdkError
|
|
319
|
+
| AlreadyExistsError
|
|
320
|
+
| DependencyTimeoutError
|
|
321
|
+
| InvalidAliasNameError
|
|
322
|
+
| KMSInternalError
|
|
323
|
+
| KMSInvalidStateError
|
|
324
|
+
| LimitExceededError
|
|
325
|
+
| NotFoundError
|
|
326
|
+
>;
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* @see {@link CreateCustomKeyStoreCommand}
|
|
330
|
+
*/
|
|
331
|
+
createCustomKeyStore(
|
|
332
|
+
args: CreateCustomKeyStoreCommandInput,
|
|
333
|
+
options?: HttpHandlerOptions,
|
|
334
|
+
): Effect.Effect<
|
|
335
|
+
CreateCustomKeyStoreCommandOutput,
|
|
336
|
+
| SdkError
|
|
337
|
+
| CloudHsmClusterInUseError
|
|
338
|
+
| CloudHsmClusterInvalidConfigurationError
|
|
339
|
+
| CloudHsmClusterNotActiveError
|
|
340
|
+
| CloudHsmClusterNotFoundError
|
|
341
|
+
| CustomKeyStoreNameInUseError
|
|
342
|
+
| IncorrectTrustAnchorError
|
|
343
|
+
| KMSInternalError
|
|
344
|
+
| LimitExceededError
|
|
345
|
+
| XksProxyIncorrectAuthenticationCredentialError
|
|
346
|
+
| XksProxyInvalidConfigurationError
|
|
347
|
+
| XksProxyInvalidResponseError
|
|
348
|
+
| XksProxyUriEndpointInUseError
|
|
349
|
+
| XksProxyUriInUseError
|
|
350
|
+
| XksProxyUriUnreachableError
|
|
351
|
+
| XksProxyVpcEndpointServiceInUseError
|
|
352
|
+
| XksProxyVpcEndpointServiceInvalidConfigurationError
|
|
353
|
+
| XksProxyVpcEndpointServiceNotFoundError
|
|
354
|
+
>;
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* @see {@link CreateGrantCommand}
|
|
358
|
+
*/
|
|
359
|
+
createGrant(
|
|
360
|
+
args: CreateGrantCommandInput,
|
|
361
|
+
options?: HttpHandlerOptions,
|
|
362
|
+
): Effect.Effect<
|
|
363
|
+
CreateGrantCommandOutput,
|
|
364
|
+
| SdkError
|
|
365
|
+
| DependencyTimeoutError
|
|
366
|
+
| DisabledError
|
|
367
|
+
| DryRunOperationError
|
|
368
|
+
| InvalidArnError
|
|
369
|
+
| InvalidGrantTokenError
|
|
370
|
+
| KMSInternalError
|
|
371
|
+
| KMSInvalidStateError
|
|
372
|
+
| LimitExceededError
|
|
373
|
+
| NotFoundError
|
|
374
|
+
>;
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* @see {@link CreateKeyCommand}
|
|
378
|
+
*/
|
|
379
|
+
createKey(
|
|
380
|
+
args: CreateKeyCommandInput,
|
|
381
|
+
options?: HttpHandlerOptions,
|
|
382
|
+
): Effect.Effect<
|
|
383
|
+
CreateKeyCommandOutput,
|
|
384
|
+
| SdkError
|
|
385
|
+
| CloudHsmClusterInvalidConfigurationError
|
|
386
|
+
| CustomKeyStoreInvalidStateError
|
|
387
|
+
| CustomKeyStoreNotFoundError
|
|
388
|
+
| DependencyTimeoutError
|
|
389
|
+
| InvalidArnError
|
|
390
|
+
| KMSInternalError
|
|
391
|
+
| LimitExceededError
|
|
392
|
+
| MalformedPolicyDocumentError
|
|
393
|
+
| TagError
|
|
394
|
+
| UnsupportedOperationError
|
|
395
|
+
| XksKeyAlreadyInUseError
|
|
396
|
+
| XksKeyInvalidConfigurationError
|
|
397
|
+
| XksKeyNotFoundError
|
|
398
|
+
>;
|
|
399
|
+
|
|
400
|
+
/**
|
|
401
|
+
* @see {@link DecryptCommand}
|
|
402
|
+
*/
|
|
403
|
+
decrypt(
|
|
404
|
+
args: DecryptCommandInput,
|
|
405
|
+
options?: HttpHandlerOptions,
|
|
406
|
+
): Effect.Effect<
|
|
407
|
+
DecryptCommandOutput,
|
|
408
|
+
| SdkError
|
|
409
|
+
| DependencyTimeoutError
|
|
410
|
+
| DisabledError
|
|
411
|
+
| DryRunOperationError
|
|
412
|
+
| IncorrectKeyError
|
|
413
|
+
| InvalidCiphertextError
|
|
414
|
+
| InvalidGrantTokenError
|
|
415
|
+
| InvalidKeyUsageError
|
|
416
|
+
| KeyUnavailableError
|
|
417
|
+
| KMSInternalError
|
|
418
|
+
| KMSInvalidStateError
|
|
419
|
+
| NotFoundError
|
|
420
|
+
>;
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* @see {@link DeleteAliasCommand}
|
|
424
|
+
*/
|
|
425
|
+
deleteAlias(
|
|
426
|
+
args: DeleteAliasCommandInput,
|
|
427
|
+
options?: HttpHandlerOptions,
|
|
428
|
+
): Effect.Effect<
|
|
429
|
+
DeleteAliasCommandOutput,
|
|
430
|
+
SdkError | DependencyTimeoutError | KMSInternalError | KMSInvalidStateError | NotFoundError
|
|
431
|
+
>;
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* @see {@link DeleteCustomKeyStoreCommand}
|
|
435
|
+
*/
|
|
436
|
+
deleteCustomKeyStore(
|
|
437
|
+
args: DeleteCustomKeyStoreCommandInput,
|
|
438
|
+
options?: HttpHandlerOptions,
|
|
439
|
+
): Effect.Effect<
|
|
440
|
+
DeleteCustomKeyStoreCommandOutput,
|
|
441
|
+
| SdkError
|
|
442
|
+
| CustomKeyStoreHasCMKsError
|
|
443
|
+
| CustomKeyStoreInvalidStateError
|
|
444
|
+
| CustomKeyStoreNotFoundError
|
|
445
|
+
| KMSInternalError
|
|
446
|
+
>;
|
|
447
|
+
|
|
448
|
+
/**
|
|
449
|
+
* @see {@link DeleteImportedKeyMaterialCommand}
|
|
450
|
+
*/
|
|
451
|
+
deleteImportedKeyMaterial(
|
|
452
|
+
args: DeleteImportedKeyMaterialCommandInput,
|
|
453
|
+
options?: HttpHandlerOptions,
|
|
454
|
+
): Effect.Effect<
|
|
455
|
+
DeleteImportedKeyMaterialCommandOutput,
|
|
456
|
+
| SdkError
|
|
457
|
+
| DependencyTimeoutError
|
|
458
|
+
| InvalidArnError
|
|
459
|
+
| KMSInternalError
|
|
460
|
+
| KMSInvalidStateError
|
|
461
|
+
| NotFoundError
|
|
462
|
+
| UnsupportedOperationError
|
|
463
|
+
>;
|
|
464
|
+
|
|
465
|
+
/**
|
|
466
|
+
* @see {@link DeriveSharedSecretCommand}
|
|
467
|
+
*/
|
|
468
|
+
deriveSharedSecret(
|
|
469
|
+
args: DeriveSharedSecretCommandInput,
|
|
470
|
+
options?: HttpHandlerOptions,
|
|
471
|
+
): Effect.Effect<
|
|
472
|
+
DeriveSharedSecretCommandOutput,
|
|
473
|
+
| SdkError
|
|
474
|
+
| DependencyTimeoutError
|
|
475
|
+
| DisabledError
|
|
476
|
+
| DryRunOperationError
|
|
477
|
+
| InvalidGrantTokenError
|
|
478
|
+
| InvalidKeyUsageError
|
|
479
|
+
| KeyUnavailableError
|
|
480
|
+
| KMSInternalError
|
|
481
|
+
| KMSInvalidStateError
|
|
482
|
+
| NotFoundError
|
|
483
|
+
>;
|
|
484
|
+
|
|
485
|
+
/**
|
|
486
|
+
* @see {@link DescribeCustomKeyStoresCommand}
|
|
487
|
+
*/
|
|
488
|
+
describeCustomKeyStores(
|
|
489
|
+
args: DescribeCustomKeyStoresCommandInput,
|
|
490
|
+
options?: HttpHandlerOptions,
|
|
491
|
+
): Effect.Effect<
|
|
492
|
+
DescribeCustomKeyStoresCommandOutput,
|
|
493
|
+
SdkError | CustomKeyStoreNotFoundError | InvalidMarkerError | KMSInternalError
|
|
494
|
+
>;
|
|
495
|
+
|
|
496
|
+
/**
|
|
497
|
+
* @see {@link DescribeKeyCommand}
|
|
498
|
+
*/
|
|
499
|
+
describeKey(
|
|
500
|
+
args: DescribeKeyCommandInput,
|
|
501
|
+
options?: HttpHandlerOptions,
|
|
502
|
+
): Effect.Effect<
|
|
503
|
+
DescribeKeyCommandOutput,
|
|
504
|
+
SdkError | DependencyTimeoutError | InvalidArnError | KMSInternalError | NotFoundError
|
|
505
|
+
>;
|
|
506
|
+
|
|
507
|
+
/**
|
|
508
|
+
* @see {@link DisableKeyCommand}
|
|
509
|
+
*/
|
|
510
|
+
disableKey(
|
|
511
|
+
args: DisableKeyCommandInput,
|
|
512
|
+
options?: HttpHandlerOptions,
|
|
513
|
+
): Effect.Effect<
|
|
514
|
+
DisableKeyCommandOutput,
|
|
515
|
+
SdkError | DependencyTimeoutError | InvalidArnError | KMSInternalError | KMSInvalidStateError | NotFoundError
|
|
516
|
+
>;
|
|
517
|
+
|
|
518
|
+
/**
|
|
519
|
+
* @see {@link DisableKeyRotationCommand}
|
|
520
|
+
*/
|
|
521
|
+
disableKeyRotation(
|
|
522
|
+
args: DisableKeyRotationCommandInput,
|
|
523
|
+
options?: HttpHandlerOptions,
|
|
524
|
+
): Effect.Effect<
|
|
525
|
+
DisableKeyRotationCommandOutput,
|
|
526
|
+
| SdkError
|
|
527
|
+
| DependencyTimeoutError
|
|
528
|
+
| DisabledError
|
|
529
|
+
| InvalidArnError
|
|
530
|
+
| KMSInternalError
|
|
531
|
+
| KMSInvalidStateError
|
|
532
|
+
| NotFoundError
|
|
533
|
+
| UnsupportedOperationError
|
|
534
|
+
>;
|
|
535
|
+
|
|
536
|
+
/**
|
|
537
|
+
* @see {@link DisconnectCustomKeyStoreCommand}
|
|
538
|
+
*/
|
|
539
|
+
disconnectCustomKeyStore(
|
|
540
|
+
args: DisconnectCustomKeyStoreCommandInput,
|
|
541
|
+
options?: HttpHandlerOptions,
|
|
542
|
+
): Effect.Effect<
|
|
543
|
+
DisconnectCustomKeyStoreCommandOutput,
|
|
544
|
+
SdkError | CustomKeyStoreInvalidStateError | CustomKeyStoreNotFoundError | KMSInternalError
|
|
545
|
+
>;
|
|
546
|
+
|
|
547
|
+
/**
|
|
548
|
+
* @see {@link EnableKeyCommand}
|
|
549
|
+
*/
|
|
550
|
+
enableKey(
|
|
551
|
+
args: EnableKeyCommandInput,
|
|
552
|
+
options?: HttpHandlerOptions,
|
|
553
|
+
): Effect.Effect<
|
|
554
|
+
EnableKeyCommandOutput,
|
|
555
|
+
| SdkError
|
|
556
|
+
| DependencyTimeoutError
|
|
557
|
+
| InvalidArnError
|
|
558
|
+
| KMSInternalError
|
|
559
|
+
| KMSInvalidStateError
|
|
560
|
+
| LimitExceededError
|
|
561
|
+
| NotFoundError
|
|
562
|
+
>;
|
|
563
|
+
|
|
564
|
+
/**
|
|
565
|
+
* @see {@link EnableKeyRotationCommand}
|
|
566
|
+
*/
|
|
567
|
+
enableKeyRotation(
|
|
568
|
+
args: EnableKeyRotationCommandInput,
|
|
569
|
+
options?: HttpHandlerOptions,
|
|
570
|
+
): Effect.Effect<
|
|
571
|
+
EnableKeyRotationCommandOutput,
|
|
572
|
+
| SdkError
|
|
573
|
+
| DependencyTimeoutError
|
|
574
|
+
| DisabledError
|
|
575
|
+
| InvalidArnError
|
|
576
|
+
| KMSInternalError
|
|
577
|
+
| KMSInvalidStateError
|
|
578
|
+
| NotFoundError
|
|
579
|
+
| UnsupportedOperationError
|
|
580
|
+
>;
|
|
581
|
+
|
|
582
|
+
/**
|
|
583
|
+
* @see {@link EncryptCommand}
|
|
584
|
+
*/
|
|
585
|
+
encrypt(
|
|
586
|
+
args: EncryptCommandInput,
|
|
587
|
+
options?: HttpHandlerOptions,
|
|
588
|
+
): Effect.Effect<
|
|
589
|
+
EncryptCommandOutput,
|
|
590
|
+
| SdkError
|
|
591
|
+
| DependencyTimeoutError
|
|
592
|
+
| DisabledError
|
|
593
|
+
| DryRunOperationError
|
|
594
|
+
| InvalidGrantTokenError
|
|
595
|
+
| InvalidKeyUsageError
|
|
596
|
+
| KeyUnavailableError
|
|
597
|
+
| KMSInternalError
|
|
598
|
+
| KMSInvalidStateError
|
|
599
|
+
| NotFoundError
|
|
600
|
+
>;
|
|
601
|
+
|
|
602
|
+
/**
|
|
603
|
+
* @see {@link GenerateDataKeyCommand}
|
|
604
|
+
*/
|
|
605
|
+
generateDataKey(
|
|
606
|
+
args: GenerateDataKeyCommandInput,
|
|
607
|
+
options?: HttpHandlerOptions,
|
|
608
|
+
): Effect.Effect<
|
|
609
|
+
GenerateDataKeyCommandOutput,
|
|
610
|
+
| SdkError
|
|
611
|
+
| DependencyTimeoutError
|
|
612
|
+
| DisabledError
|
|
613
|
+
| DryRunOperationError
|
|
614
|
+
| InvalidGrantTokenError
|
|
615
|
+
| InvalidKeyUsageError
|
|
616
|
+
| KeyUnavailableError
|
|
617
|
+
| KMSInternalError
|
|
618
|
+
| KMSInvalidStateError
|
|
619
|
+
| NotFoundError
|
|
620
|
+
>;
|
|
621
|
+
|
|
622
|
+
/**
|
|
623
|
+
* @see {@link GenerateDataKeyPairCommand}
|
|
624
|
+
*/
|
|
625
|
+
generateDataKeyPair(
|
|
626
|
+
args: GenerateDataKeyPairCommandInput,
|
|
627
|
+
options?: HttpHandlerOptions,
|
|
628
|
+
): Effect.Effect<
|
|
629
|
+
GenerateDataKeyPairCommandOutput,
|
|
630
|
+
| SdkError
|
|
631
|
+
| DependencyTimeoutError
|
|
632
|
+
| DisabledError
|
|
633
|
+
| DryRunOperationError
|
|
634
|
+
| InvalidGrantTokenError
|
|
635
|
+
| InvalidKeyUsageError
|
|
636
|
+
| KeyUnavailableError
|
|
637
|
+
| KMSInternalError
|
|
638
|
+
| KMSInvalidStateError
|
|
639
|
+
| NotFoundError
|
|
640
|
+
| UnsupportedOperationError
|
|
641
|
+
>;
|
|
642
|
+
|
|
643
|
+
/**
|
|
644
|
+
* @see {@link GenerateDataKeyPairWithoutPlaintextCommand}
|
|
645
|
+
*/
|
|
646
|
+
generateDataKeyPairWithoutPlaintext(
|
|
647
|
+
args: GenerateDataKeyPairWithoutPlaintextCommandInput,
|
|
648
|
+
options?: HttpHandlerOptions,
|
|
649
|
+
): Effect.Effect<
|
|
650
|
+
GenerateDataKeyPairWithoutPlaintextCommandOutput,
|
|
651
|
+
| SdkError
|
|
652
|
+
| DependencyTimeoutError
|
|
653
|
+
| DisabledError
|
|
654
|
+
| DryRunOperationError
|
|
655
|
+
| InvalidGrantTokenError
|
|
656
|
+
| InvalidKeyUsageError
|
|
657
|
+
| KeyUnavailableError
|
|
658
|
+
| KMSInternalError
|
|
659
|
+
| KMSInvalidStateError
|
|
660
|
+
| NotFoundError
|
|
661
|
+
| UnsupportedOperationError
|
|
662
|
+
>;
|
|
663
|
+
|
|
664
|
+
/**
|
|
665
|
+
* @see {@link GenerateDataKeyWithoutPlaintextCommand}
|
|
666
|
+
*/
|
|
667
|
+
generateDataKeyWithoutPlaintext(
|
|
668
|
+
args: GenerateDataKeyWithoutPlaintextCommandInput,
|
|
669
|
+
options?: HttpHandlerOptions,
|
|
670
|
+
): Effect.Effect<
|
|
671
|
+
GenerateDataKeyWithoutPlaintextCommandOutput,
|
|
672
|
+
| SdkError
|
|
673
|
+
| DependencyTimeoutError
|
|
674
|
+
| DisabledError
|
|
675
|
+
| DryRunOperationError
|
|
676
|
+
| InvalidGrantTokenError
|
|
677
|
+
| InvalidKeyUsageError
|
|
678
|
+
| KeyUnavailableError
|
|
679
|
+
| KMSInternalError
|
|
680
|
+
| KMSInvalidStateError
|
|
681
|
+
| NotFoundError
|
|
682
|
+
>;
|
|
683
|
+
|
|
684
|
+
/**
|
|
685
|
+
* @see {@link GenerateMacCommand}
|
|
686
|
+
*/
|
|
687
|
+
generateMac(
|
|
688
|
+
args: GenerateMacCommandInput,
|
|
689
|
+
options?: HttpHandlerOptions,
|
|
690
|
+
): Effect.Effect<
|
|
691
|
+
GenerateMacCommandOutput,
|
|
692
|
+
| SdkError
|
|
693
|
+
| DisabledError
|
|
694
|
+
| DryRunOperationError
|
|
695
|
+
| InvalidGrantTokenError
|
|
696
|
+
| InvalidKeyUsageError
|
|
697
|
+
| KeyUnavailableError
|
|
698
|
+
| KMSInternalError
|
|
699
|
+
| KMSInvalidStateError
|
|
700
|
+
| NotFoundError
|
|
701
|
+
>;
|
|
702
|
+
|
|
703
|
+
/**
|
|
704
|
+
* @see {@link GenerateRandomCommand}
|
|
705
|
+
*/
|
|
706
|
+
generateRandom(
|
|
707
|
+
args: GenerateRandomCommandInput,
|
|
708
|
+
options?: HttpHandlerOptions,
|
|
709
|
+
): Effect.Effect<
|
|
710
|
+
GenerateRandomCommandOutput,
|
|
711
|
+
| SdkError
|
|
712
|
+
| CustomKeyStoreInvalidStateError
|
|
713
|
+
| CustomKeyStoreNotFoundError
|
|
714
|
+
| DependencyTimeoutError
|
|
715
|
+
| KMSInternalError
|
|
716
|
+
| UnsupportedOperationError
|
|
717
|
+
>;
|
|
718
|
+
|
|
719
|
+
/**
|
|
720
|
+
* @see {@link GetKeyPolicyCommand}
|
|
721
|
+
*/
|
|
722
|
+
getKeyPolicy(
|
|
723
|
+
args: GetKeyPolicyCommandInput,
|
|
724
|
+
options?: HttpHandlerOptions,
|
|
725
|
+
): Effect.Effect<
|
|
726
|
+
GetKeyPolicyCommandOutput,
|
|
727
|
+
SdkError | DependencyTimeoutError | InvalidArnError | KMSInternalError | KMSInvalidStateError | NotFoundError
|
|
728
|
+
>;
|
|
729
|
+
|
|
730
|
+
/**
|
|
731
|
+
* @see {@link GetKeyRotationStatusCommand}
|
|
732
|
+
*/
|
|
733
|
+
getKeyRotationStatus(
|
|
734
|
+
args: GetKeyRotationStatusCommandInput,
|
|
735
|
+
options?: HttpHandlerOptions,
|
|
736
|
+
): Effect.Effect<
|
|
737
|
+
GetKeyRotationStatusCommandOutput,
|
|
738
|
+
| SdkError
|
|
739
|
+
| DependencyTimeoutError
|
|
740
|
+
| InvalidArnError
|
|
741
|
+
| KMSInternalError
|
|
742
|
+
| KMSInvalidStateError
|
|
743
|
+
| NotFoundError
|
|
744
|
+
| UnsupportedOperationError
|
|
745
|
+
>;
|
|
746
|
+
|
|
747
|
+
/**
|
|
748
|
+
* @see {@link GetParametersForImportCommand}
|
|
749
|
+
*/
|
|
750
|
+
getParametersForImport(
|
|
751
|
+
args: GetParametersForImportCommandInput,
|
|
752
|
+
options?: HttpHandlerOptions,
|
|
753
|
+
): Effect.Effect<
|
|
754
|
+
GetParametersForImportCommandOutput,
|
|
755
|
+
| SdkError
|
|
756
|
+
| DependencyTimeoutError
|
|
757
|
+
| InvalidArnError
|
|
758
|
+
| KMSInternalError
|
|
759
|
+
| KMSInvalidStateError
|
|
760
|
+
| NotFoundError
|
|
761
|
+
| UnsupportedOperationError
|
|
762
|
+
>;
|
|
763
|
+
|
|
764
|
+
/**
|
|
765
|
+
* @see {@link GetPublicKeyCommand}
|
|
766
|
+
*/
|
|
767
|
+
getPublicKey(
|
|
768
|
+
args: GetPublicKeyCommandInput,
|
|
769
|
+
options?: HttpHandlerOptions,
|
|
770
|
+
): Effect.Effect<
|
|
771
|
+
GetPublicKeyCommandOutput,
|
|
772
|
+
| SdkError
|
|
773
|
+
| DependencyTimeoutError
|
|
774
|
+
| DisabledError
|
|
775
|
+
| InvalidArnError
|
|
776
|
+
| InvalidGrantTokenError
|
|
777
|
+
| InvalidKeyUsageError
|
|
778
|
+
| KeyUnavailableError
|
|
779
|
+
| KMSInternalError
|
|
780
|
+
| KMSInvalidStateError
|
|
781
|
+
| NotFoundError
|
|
782
|
+
| UnsupportedOperationError
|
|
783
|
+
>;
|
|
784
|
+
|
|
785
|
+
/**
|
|
786
|
+
* @see {@link ImportKeyMaterialCommand}
|
|
787
|
+
*/
|
|
788
|
+
importKeyMaterial(
|
|
789
|
+
args: ImportKeyMaterialCommandInput,
|
|
790
|
+
options?: HttpHandlerOptions,
|
|
791
|
+
): Effect.Effect<
|
|
792
|
+
ImportKeyMaterialCommandOutput,
|
|
793
|
+
| SdkError
|
|
794
|
+
| DependencyTimeoutError
|
|
795
|
+
| ExpiredImportTokenError
|
|
796
|
+
| IncorrectKeyMaterialError
|
|
797
|
+
| InvalidArnError
|
|
798
|
+
| InvalidCiphertextError
|
|
799
|
+
| InvalidImportTokenError
|
|
800
|
+
| KMSInternalError
|
|
801
|
+
| KMSInvalidStateError
|
|
802
|
+
| NotFoundError
|
|
803
|
+
| UnsupportedOperationError
|
|
804
|
+
>;
|
|
805
|
+
|
|
806
|
+
/**
|
|
807
|
+
* @see {@link ListAliasesCommand}
|
|
808
|
+
*/
|
|
809
|
+
listAliases(
|
|
810
|
+
args: ListAliasesCommandInput,
|
|
811
|
+
options?: HttpHandlerOptions,
|
|
812
|
+
): Effect.Effect<
|
|
813
|
+
ListAliasesCommandOutput,
|
|
814
|
+
SdkError | DependencyTimeoutError | InvalidArnError | InvalidMarkerError | KMSInternalError | NotFoundError
|
|
815
|
+
>;
|
|
816
|
+
|
|
817
|
+
/**
|
|
818
|
+
* @see {@link ListGrantsCommand}
|
|
819
|
+
*/
|
|
820
|
+
listGrants(
|
|
821
|
+
args: ListGrantsCommandInput,
|
|
822
|
+
options?: HttpHandlerOptions,
|
|
823
|
+
): Effect.Effect<
|
|
824
|
+
ListGrantsCommandOutput,
|
|
825
|
+
| SdkError
|
|
826
|
+
| DependencyTimeoutError
|
|
827
|
+
| InvalidArnError
|
|
828
|
+
| InvalidGrantIdError
|
|
829
|
+
| InvalidMarkerError
|
|
830
|
+
| KMSInternalError
|
|
831
|
+
| KMSInvalidStateError
|
|
832
|
+
| NotFoundError
|
|
833
|
+
>;
|
|
834
|
+
|
|
835
|
+
/**
|
|
836
|
+
* @see {@link ListKeyPoliciesCommand}
|
|
837
|
+
*/
|
|
838
|
+
listKeyPolicies(
|
|
839
|
+
args: ListKeyPoliciesCommandInput,
|
|
840
|
+
options?: HttpHandlerOptions,
|
|
841
|
+
): Effect.Effect<
|
|
842
|
+
ListKeyPoliciesCommandOutput,
|
|
843
|
+
SdkError | DependencyTimeoutError | InvalidArnError | KMSInternalError | KMSInvalidStateError | NotFoundError
|
|
844
|
+
>;
|
|
845
|
+
|
|
846
|
+
/**
|
|
847
|
+
* @see {@link ListKeyRotationsCommand}
|
|
848
|
+
*/
|
|
849
|
+
listKeyRotations(
|
|
850
|
+
args: ListKeyRotationsCommandInput,
|
|
851
|
+
options?: HttpHandlerOptions,
|
|
852
|
+
): Effect.Effect<
|
|
853
|
+
ListKeyRotationsCommandOutput,
|
|
854
|
+
| SdkError
|
|
855
|
+
| InvalidArnError
|
|
856
|
+
| InvalidMarkerError
|
|
857
|
+
| KMSInternalError
|
|
858
|
+
| KMSInvalidStateError
|
|
859
|
+
| NotFoundError
|
|
860
|
+
| UnsupportedOperationError
|
|
861
|
+
>;
|
|
862
|
+
|
|
863
|
+
/**
|
|
864
|
+
* @see {@link ListKeysCommand}
|
|
865
|
+
*/
|
|
866
|
+
listKeys(
|
|
867
|
+
args: ListKeysCommandInput,
|
|
868
|
+
options?: HttpHandlerOptions,
|
|
869
|
+
): Effect.Effect<
|
|
870
|
+
ListKeysCommandOutput,
|
|
871
|
+
SdkError | DependencyTimeoutError | InvalidMarkerError | KMSInternalError
|
|
872
|
+
>;
|
|
873
|
+
|
|
874
|
+
/**
|
|
875
|
+
* @see {@link ListResourceTagsCommand}
|
|
876
|
+
*/
|
|
877
|
+
listResourceTags(
|
|
878
|
+
args: ListResourceTagsCommandInput,
|
|
879
|
+
options?: HttpHandlerOptions,
|
|
880
|
+
): Effect.Effect<
|
|
881
|
+
ListResourceTagsCommandOutput,
|
|
882
|
+
SdkError | InvalidArnError | InvalidMarkerError | KMSInternalError | NotFoundError
|
|
883
|
+
>;
|
|
884
|
+
|
|
885
|
+
/**
|
|
886
|
+
* @see {@link ListRetirableGrantsCommand}
|
|
887
|
+
*/
|
|
888
|
+
listRetirableGrants(
|
|
889
|
+
args: ListRetirableGrantsCommandInput,
|
|
890
|
+
options?: HttpHandlerOptions,
|
|
891
|
+
): Effect.Effect<
|
|
892
|
+
ListRetirableGrantsCommandOutput,
|
|
893
|
+
SdkError | DependencyTimeoutError | InvalidArnError | InvalidMarkerError | KMSInternalError | NotFoundError
|
|
894
|
+
>;
|
|
895
|
+
|
|
896
|
+
/**
|
|
897
|
+
* @see {@link PutKeyPolicyCommand}
|
|
898
|
+
*/
|
|
899
|
+
putKeyPolicy(
|
|
900
|
+
args: PutKeyPolicyCommandInput,
|
|
901
|
+
options?: HttpHandlerOptions,
|
|
902
|
+
): Effect.Effect<
|
|
903
|
+
PutKeyPolicyCommandOutput,
|
|
904
|
+
| SdkError
|
|
905
|
+
| DependencyTimeoutError
|
|
906
|
+
| InvalidArnError
|
|
907
|
+
| KMSInternalError
|
|
908
|
+
| KMSInvalidStateError
|
|
909
|
+
| LimitExceededError
|
|
910
|
+
| MalformedPolicyDocumentError
|
|
911
|
+
| NotFoundError
|
|
912
|
+
| UnsupportedOperationError
|
|
913
|
+
>;
|
|
914
|
+
|
|
915
|
+
/**
|
|
916
|
+
* @see {@link ReEncryptCommand}
|
|
917
|
+
*/
|
|
918
|
+
reEncrypt(
|
|
919
|
+
args: ReEncryptCommandInput,
|
|
920
|
+
options?: HttpHandlerOptions,
|
|
921
|
+
): Effect.Effect<
|
|
922
|
+
ReEncryptCommandOutput,
|
|
923
|
+
| SdkError
|
|
924
|
+
| DependencyTimeoutError
|
|
925
|
+
| DisabledError
|
|
926
|
+
| DryRunOperationError
|
|
927
|
+
| IncorrectKeyError
|
|
928
|
+
| InvalidCiphertextError
|
|
929
|
+
| InvalidGrantTokenError
|
|
930
|
+
| InvalidKeyUsageError
|
|
931
|
+
| KeyUnavailableError
|
|
932
|
+
| KMSInternalError
|
|
933
|
+
| KMSInvalidStateError
|
|
934
|
+
| NotFoundError
|
|
935
|
+
>;
|
|
936
|
+
|
|
937
|
+
/**
|
|
938
|
+
* @see {@link ReplicateKeyCommand}
|
|
939
|
+
*/
|
|
940
|
+
replicateKey(
|
|
941
|
+
args: ReplicateKeyCommandInput,
|
|
942
|
+
options?: HttpHandlerOptions,
|
|
943
|
+
): Effect.Effect<
|
|
944
|
+
ReplicateKeyCommandOutput,
|
|
945
|
+
| SdkError
|
|
946
|
+
| AlreadyExistsError
|
|
947
|
+
| DisabledError
|
|
948
|
+
| InvalidArnError
|
|
949
|
+
| KMSInternalError
|
|
950
|
+
| KMSInvalidStateError
|
|
951
|
+
| LimitExceededError
|
|
952
|
+
| MalformedPolicyDocumentError
|
|
953
|
+
| NotFoundError
|
|
954
|
+
| TagError
|
|
955
|
+
| UnsupportedOperationError
|
|
956
|
+
>;
|
|
957
|
+
|
|
958
|
+
/**
|
|
959
|
+
* @see {@link RetireGrantCommand}
|
|
960
|
+
*/
|
|
961
|
+
retireGrant(
|
|
962
|
+
args: RetireGrantCommandInput,
|
|
963
|
+
options?: HttpHandlerOptions,
|
|
964
|
+
): Effect.Effect<
|
|
965
|
+
RetireGrantCommandOutput,
|
|
966
|
+
| SdkError
|
|
967
|
+
| DependencyTimeoutError
|
|
968
|
+
| DryRunOperationError
|
|
969
|
+
| InvalidArnError
|
|
970
|
+
| InvalidGrantIdError
|
|
971
|
+
| InvalidGrantTokenError
|
|
972
|
+
| KMSInternalError
|
|
973
|
+
| KMSInvalidStateError
|
|
974
|
+
| NotFoundError
|
|
975
|
+
>;
|
|
976
|
+
|
|
977
|
+
/**
|
|
978
|
+
* @see {@link RevokeGrantCommand}
|
|
979
|
+
*/
|
|
980
|
+
revokeGrant(
|
|
981
|
+
args: RevokeGrantCommandInput,
|
|
982
|
+
options?: HttpHandlerOptions,
|
|
983
|
+
): Effect.Effect<
|
|
984
|
+
RevokeGrantCommandOutput,
|
|
985
|
+
| SdkError
|
|
986
|
+
| DependencyTimeoutError
|
|
987
|
+
| DryRunOperationError
|
|
988
|
+
| InvalidArnError
|
|
989
|
+
| InvalidGrantIdError
|
|
990
|
+
| KMSInternalError
|
|
991
|
+
| KMSInvalidStateError
|
|
992
|
+
| NotFoundError
|
|
993
|
+
>;
|
|
994
|
+
|
|
995
|
+
/**
|
|
996
|
+
* @see {@link RotateKeyOnDemandCommand}
|
|
997
|
+
*/
|
|
998
|
+
rotateKeyOnDemand(
|
|
999
|
+
args: RotateKeyOnDemandCommandInput,
|
|
1000
|
+
options?: HttpHandlerOptions,
|
|
1001
|
+
): Effect.Effect<
|
|
1002
|
+
RotateKeyOnDemandCommandOutput,
|
|
1003
|
+
| SdkError
|
|
1004
|
+
| ConflictError
|
|
1005
|
+
| DependencyTimeoutError
|
|
1006
|
+
| DisabledError
|
|
1007
|
+
| InvalidArnError
|
|
1008
|
+
| KMSInternalError
|
|
1009
|
+
| KMSInvalidStateError
|
|
1010
|
+
| LimitExceededError
|
|
1011
|
+
| NotFoundError
|
|
1012
|
+
| UnsupportedOperationError
|
|
1013
|
+
>;
|
|
1014
|
+
|
|
1015
|
+
/**
|
|
1016
|
+
* @see {@link ScheduleKeyDeletionCommand}
|
|
1017
|
+
*/
|
|
1018
|
+
scheduleKeyDeletion(
|
|
1019
|
+
args: ScheduleKeyDeletionCommandInput,
|
|
1020
|
+
options?: HttpHandlerOptions,
|
|
1021
|
+
): Effect.Effect<
|
|
1022
|
+
ScheduleKeyDeletionCommandOutput,
|
|
1023
|
+
SdkError | DependencyTimeoutError | InvalidArnError | KMSInternalError | KMSInvalidStateError | NotFoundError
|
|
1024
|
+
>;
|
|
1025
|
+
|
|
1026
|
+
/**
|
|
1027
|
+
* @see {@link SignCommand}
|
|
1028
|
+
*/
|
|
1029
|
+
sign(
|
|
1030
|
+
args: SignCommandInput,
|
|
1031
|
+
options?: HttpHandlerOptions,
|
|
1032
|
+
): Effect.Effect<
|
|
1033
|
+
SignCommandOutput,
|
|
1034
|
+
| SdkError
|
|
1035
|
+
| DependencyTimeoutError
|
|
1036
|
+
| DisabledError
|
|
1037
|
+
| DryRunOperationError
|
|
1038
|
+
| InvalidGrantTokenError
|
|
1039
|
+
| InvalidKeyUsageError
|
|
1040
|
+
| KeyUnavailableError
|
|
1041
|
+
| KMSInternalError
|
|
1042
|
+
| KMSInvalidStateError
|
|
1043
|
+
| NotFoundError
|
|
1044
|
+
>;
|
|
1045
|
+
|
|
1046
|
+
/**
|
|
1047
|
+
* @see {@link TagResourceCommand}
|
|
1048
|
+
*/
|
|
1049
|
+
tagResource(
|
|
1050
|
+
args: TagResourceCommandInput,
|
|
1051
|
+
options?: HttpHandlerOptions,
|
|
1052
|
+
): Effect.Effect<
|
|
1053
|
+
TagResourceCommandOutput,
|
|
1054
|
+
SdkError | InvalidArnError | KMSInternalError | KMSInvalidStateError | LimitExceededError | NotFoundError | TagError
|
|
1055
|
+
>;
|
|
1056
|
+
|
|
1057
|
+
/**
|
|
1058
|
+
* @see {@link UntagResourceCommand}
|
|
1059
|
+
*/
|
|
1060
|
+
untagResource(
|
|
1061
|
+
args: UntagResourceCommandInput,
|
|
1062
|
+
options?: HttpHandlerOptions,
|
|
1063
|
+
): Effect.Effect<
|
|
1064
|
+
UntagResourceCommandOutput,
|
|
1065
|
+
SdkError | InvalidArnError | KMSInternalError | KMSInvalidStateError | NotFoundError | TagError
|
|
1066
|
+
>;
|
|
1067
|
+
|
|
1068
|
+
/**
|
|
1069
|
+
* @see {@link UpdateAliasCommand}
|
|
1070
|
+
*/
|
|
1071
|
+
updateAlias(
|
|
1072
|
+
args: UpdateAliasCommandInput,
|
|
1073
|
+
options?: HttpHandlerOptions,
|
|
1074
|
+
): Effect.Effect<
|
|
1075
|
+
UpdateAliasCommandOutput,
|
|
1076
|
+
SdkError | DependencyTimeoutError | KMSInternalError | KMSInvalidStateError | LimitExceededError | NotFoundError
|
|
1077
|
+
>;
|
|
1078
|
+
|
|
1079
|
+
/**
|
|
1080
|
+
* @see {@link UpdateCustomKeyStoreCommand}
|
|
1081
|
+
*/
|
|
1082
|
+
updateCustomKeyStore(
|
|
1083
|
+
args: UpdateCustomKeyStoreCommandInput,
|
|
1084
|
+
options?: HttpHandlerOptions,
|
|
1085
|
+
): Effect.Effect<
|
|
1086
|
+
UpdateCustomKeyStoreCommandOutput,
|
|
1087
|
+
| SdkError
|
|
1088
|
+
| CloudHsmClusterInvalidConfigurationError
|
|
1089
|
+
| CloudHsmClusterNotActiveError
|
|
1090
|
+
| CloudHsmClusterNotFoundError
|
|
1091
|
+
| CloudHsmClusterNotRelatedError
|
|
1092
|
+
| CustomKeyStoreInvalidStateError
|
|
1093
|
+
| CustomKeyStoreNameInUseError
|
|
1094
|
+
| CustomKeyStoreNotFoundError
|
|
1095
|
+
| KMSInternalError
|
|
1096
|
+
| XksProxyIncorrectAuthenticationCredentialError
|
|
1097
|
+
| XksProxyInvalidConfigurationError
|
|
1098
|
+
| XksProxyInvalidResponseError
|
|
1099
|
+
| XksProxyUriEndpointInUseError
|
|
1100
|
+
| XksProxyUriInUseError
|
|
1101
|
+
| XksProxyUriUnreachableError
|
|
1102
|
+
| XksProxyVpcEndpointServiceInUseError
|
|
1103
|
+
| XksProxyVpcEndpointServiceInvalidConfigurationError
|
|
1104
|
+
| XksProxyVpcEndpointServiceNotFoundError
|
|
1105
|
+
>;
|
|
1106
|
+
|
|
1107
|
+
/**
|
|
1108
|
+
* @see {@link UpdateKeyDescriptionCommand}
|
|
1109
|
+
*/
|
|
1110
|
+
updateKeyDescription(
|
|
1111
|
+
args: UpdateKeyDescriptionCommandInput,
|
|
1112
|
+
options?: HttpHandlerOptions,
|
|
1113
|
+
): Effect.Effect<
|
|
1114
|
+
UpdateKeyDescriptionCommandOutput,
|
|
1115
|
+
SdkError | DependencyTimeoutError | InvalidArnError | KMSInternalError | KMSInvalidStateError | NotFoundError
|
|
1116
|
+
>;
|
|
1117
|
+
|
|
1118
|
+
/**
|
|
1119
|
+
* @see {@link UpdatePrimaryRegionCommand}
|
|
1120
|
+
*/
|
|
1121
|
+
updatePrimaryRegion(
|
|
1122
|
+
args: UpdatePrimaryRegionCommandInput,
|
|
1123
|
+
options?: HttpHandlerOptions,
|
|
1124
|
+
): Effect.Effect<
|
|
1125
|
+
UpdatePrimaryRegionCommandOutput,
|
|
1126
|
+
| SdkError
|
|
1127
|
+
| DisabledError
|
|
1128
|
+
| InvalidArnError
|
|
1129
|
+
| KMSInternalError
|
|
1130
|
+
| KMSInvalidStateError
|
|
1131
|
+
| NotFoundError
|
|
1132
|
+
| UnsupportedOperationError
|
|
1133
|
+
>;
|
|
1134
|
+
|
|
1135
|
+
/**
|
|
1136
|
+
* @see {@link VerifyCommand}
|
|
1137
|
+
*/
|
|
1138
|
+
verify(
|
|
1139
|
+
args: VerifyCommandInput,
|
|
1140
|
+
options?: HttpHandlerOptions,
|
|
1141
|
+
): Effect.Effect<
|
|
1142
|
+
VerifyCommandOutput,
|
|
1143
|
+
| SdkError
|
|
1144
|
+
| DependencyTimeoutError
|
|
1145
|
+
| DisabledError
|
|
1146
|
+
| DryRunOperationError
|
|
1147
|
+
| InvalidGrantTokenError
|
|
1148
|
+
| InvalidKeyUsageError
|
|
1149
|
+
| KeyUnavailableError
|
|
1150
|
+
| KMSInternalError
|
|
1151
|
+
| KMSInvalidSignatureError
|
|
1152
|
+
| KMSInvalidStateError
|
|
1153
|
+
| NotFoundError
|
|
1154
|
+
>;
|
|
1155
|
+
|
|
1156
|
+
/**
|
|
1157
|
+
* @see {@link VerifyMacCommand}
|
|
1158
|
+
*/
|
|
1159
|
+
verifyMac(
|
|
1160
|
+
args: VerifyMacCommandInput,
|
|
1161
|
+
options?: HttpHandlerOptions,
|
|
1162
|
+
): Effect.Effect<
|
|
1163
|
+
VerifyMacCommandOutput,
|
|
1164
|
+
| SdkError
|
|
1165
|
+
| DisabledError
|
|
1166
|
+
| DryRunOperationError
|
|
1167
|
+
| InvalidGrantTokenError
|
|
1168
|
+
| InvalidKeyUsageError
|
|
1169
|
+
| KeyUnavailableError
|
|
1170
|
+
| KMSInternalError
|
|
1171
|
+
| KMSInvalidMacError
|
|
1172
|
+
| KMSInvalidStateError
|
|
1173
|
+
| NotFoundError
|
|
1174
|
+
>;
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1177
|
+
/**
|
|
1178
|
+
* @since 1.0.0
|
|
1179
|
+
* @category constructors
|
|
1180
|
+
*/
|
|
1181
|
+
export const makeKMSService = Effect.gen(function*() {
|
|
1182
|
+
const client = yield* Instance.KMSClientInstance;
|
|
1183
|
+
|
|
1184
|
+
return Service.fromClientAndCommands<KMSService$>(client, commands, AllServiceErrors);
|
|
1185
|
+
});
|
|
1186
|
+
|
|
1187
|
+
/**
|
|
1188
|
+
* @since 1.0.0
|
|
1189
|
+
* @category models
|
|
1190
|
+
*/
|
|
1191
|
+
export class KMSService extends Effect.Tag("@effect-aws/client-kms/KMSService")<
|
|
1192
|
+
KMSService,
|
|
1193
|
+
KMSService$
|
|
1194
|
+
>() {
|
|
1195
|
+
static readonly defaultLayer = Layer.effect(this, makeKMSService).pipe(Layer.provide(Instance.layer));
|
|
1196
|
+
static readonly layer = (config: KMSService.Config) =>
|
|
1197
|
+
Layer.effect(this, makeKMSService).pipe(
|
|
1198
|
+
Layer.provide(Instance.layer),
|
|
1199
|
+
Layer.provide(KMSServiceConfig.setKMSServiceConfig(config)),
|
|
1200
|
+
);
|
|
1201
|
+
static readonly baseLayer = (
|
|
1202
|
+
evaluate: (defaultConfig: KMSClientConfig) => KMSClient,
|
|
1203
|
+
) =>
|
|
1204
|
+
Layer.effect(this, makeKMSService).pipe(
|
|
1205
|
+
Layer.provide(
|
|
1206
|
+
Layer.effect(
|
|
1207
|
+
Instance.KMSClientInstance,
|
|
1208
|
+
Effect.map(KMSServiceConfig.toKMSClientConfig, evaluate),
|
|
1209
|
+
),
|
|
1210
|
+
),
|
|
1211
|
+
);
|
|
1212
|
+
}
|
|
1213
|
+
|
|
1214
|
+
/**
|
|
1215
|
+
* @since 1.0.0
|
|
1216
|
+
*/
|
|
1217
|
+
export declare namespace KMSService {
|
|
1218
|
+
/**
|
|
1219
|
+
* @since 1.0.0
|
|
1220
|
+
*/
|
|
1221
|
+
export interface Config extends Omit<KMSClientConfig, "logger"> {
|
|
1222
|
+
readonly logger?: ServiceLogger.ServiceLoggerConstructorProps | true;
|
|
1223
|
+
}
|
|
1224
|
+
}
|