@aws-sdk/client-kms 3.169.0 → 3.170.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist-types/ts3.4/KMS.d.ts +907 -255
  3. package/dist-types/ts3.4/KMSClient.d.ts +425 -123
  4. package/dist-types/ts3.4/commands/CancelKeyDeletionCommand.d.ts +38 -17
  5. package/dist-types/ts3.4/commands/ConnectCustomKeyStoreCommand.d.ts +41 -17
  6. package/dist-types/ts3.4/commands/CreateAliasCommand.d.ts +32 -17
  7. package/dist-types/ts3.4/commands/CreateCustomKeyStoreCommand.d.ts +41 -17
  8. package/dist-types/ts3.4/commands/CreateGrantCommand.d.ts +34 -17
  9. package/dist-types/ts3.4/commands/CreateKeyCommand.d.ts +34 -17
  10. package/dist-types/ts3.4/commands/DecryptCommand.d.ts +34 -17
  11. package/dist-types/ts3.4/commands/DeleteAliasCommand.d.ts +32 -17
  12. package/dist-types/ts3.4/commands/DeleteCustomKeyStoreCommand.d.ts +41 -17
  13. package/dist-types/ts3.4/commands/DeleteImportedKeyMaterialCommand.d.ts +37 -17
  14. package/dist-types/ts3.4/commands/DescribeCustomKeyStoresCommand.d.ts +41 -17
  15. package/dist-types/ts3.4/commands/DescribeKeyCommand.d.ts +34 -17
  16. package/dist-types/ts3.4/commands/DisableKeyCommand.d.ts +32 -17
  17. package/dist-types/ts3.4/commands/DisableKeyRotationCommand.d.ts +33 -17
  18. package/dist-types/ts3.4/commands/DisconnectCustomKeyStoreCommand.d.ts +41 -17
  19. package/dist-types/ts3.4/commands/EnableKeyCommand.d.ts +32 -17
  20. package/dist-types/ts3.4/commands/EnableKeyRotationCommand.d.ts +33 -17
  21. package/dist-types/ts3.4/commands/EncryptCommand.d.ts +34 -17
  22. package/dist-types/ts3.4/commands/GenerateDataKeyCommand.d.ts +37 -17
  23. package/dist-types/ts3.4/commands/GenerateDataKeyPairCommand.d.ts +38 -17
  24. package/dist-types/ts3.4/commands/GenerateDataKeyPairWithoutPlaintextCommand.d.ts +41 -17
  25. package/dist-types/ts3.4/commands/GenerateDataKeyWithoutPlaintextCommand.d.ts +41 -17
  26. package/dist-types/ts3.4/commands/GenerateMacCommand.d.ts +34 -17
  27. package/dist-types/ts3.4/commands/GenerateRandomCommand.d.ts +37 -17
  28. package/dist-types/ts3.4/commands/GetKeyPolicyCommand.d.ts +34 -17
  29. package/dist-types/ts3.4/commands/GetKeyRotationStatusCommand.d.ts +41 -17
  30. package/dist-types/ts3.4/commands/GetParametersForImportCommand.d.ts +41 -17
  31. package/dist-types/ts3.4/commands/GetPublicKeyCommand.d.ts +34 -17
  32. package/dist-types/ts3.4/commands/ImportKeyMaterialCommand.d.ts +38 -17
  33. package/dist-types/ts3.4/commands/ListAliasesCommand.d.ts +34 -17
  34. package/dist-types/ts3.4/commands/ListGrantsCommand.d.ts +34 -17
  35. package/dist-types/ts3.4/commands/ListKeyPoliciesCommand.d.ts +37 -17
  36. package/dist-types/ts3.4/commands/ListKeysCommand.d.ts +34 -17
  37. package/dist-types/ts3.4/commands/ListResourceTagsCommand.d.ts +37 -17
  38. package/dist-types/ts3.4/commands/ListRetirableGrantsCommand.d.ts +38 -17
  39. package/dist-types/ts3.4/commands/PutKeyPolicyCommand.d.ts +32 -17
  40. package/dist-types/ts3.4/commands/ReEncryptCommand.d.ts +34 -17
  41. package/dist-types/ts3.4/commands/ReplicateKeyCommand.d.ts +34 -17
  42. package/dist-types/ts3.4/commands/RetireGrantCommand.d.ts +32 -17
  43. package/dist-types/ts3.4/commands/RevokeGrantCommand.d.ts +32 -17
  44. package/dist-types/ts3.4/commands/ScheduleKeyDeletionCommand.d.ts +38 -17
  45. package/dist-types/ts3.4/commands/SignCommand.d.ts +32 -17
  46. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +32 -17
  47. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +32 -17
  48. package/dist-types/ts3.4/commands/UpdateAliasCommand.d.ts +32 -17
  49. package/dist-types/ts3.4/commands/UpdateCustomKeyStoreCommand.d.ts +41 -17
  50. package/dist-types/ts3.4/commands/UpdateKeyDescriptionCommand.d.ts +36 -17
  51. package/dist-types/ts3.4/commands/UpdatePrimaryRegionCommand.d.ts +33 -17
  52. package/dist-types/ts3.4/commands/VerifyCommand.d.ts +32 -17
  53. package/dist-types/ts3.4/commands/VerifyMacCommand.d.ts +34 -17
  54. package/dist-types/ts3.4/commands/index.d.ts +50 -50
  55. package/dist-types/ts3.4/endpoints.d.ts +2 -2
  56. package/dist-types/ts3.4/index.d.ts +6 -6
  57. package/dist-types/ts3.4/models/KMSServiceException.d.ts +8 -6
  58. package/dist-types/ts3.4/models/index.d.ts +1 -1
  59. package/dist-types/ts3.4/models/models_0.d.ts +1533 -1364
  60. package/dist-types/ts3.4/pagination/DescribeCustomKeyStoresPaginator.d.ts +11 -4
  61. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -6
  62. package/dist-types/ts3.4/pagination/ListAliasesPaginator.d.ts +11 -4
  63. package/dist-types/ts3.4/pagination/ListGrantsPaginator.d.ts +11 -4
  64. package/dist-types/ts3.4/pagination/ListKeyPoliciesPaginator.d.ts +11 -4
  65. package/dist-types/ts3.4/pagination/ListKeysPaginator.d.ts +11 -4
  66. package/dist-types/ts3.4/pagination/ListResourceTagsPaginator.d.ts +11 -4
  67. package/dist-types/ts3.4/pagination/ListRetirableGrantsPaginator.d.ts +11 -4
  68. package/dist-types/ts3.4/pagination/index.d.ts +8 -8
  69. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +602 -152
  70. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +66 -38
  71. package/dist-types/ts3.4/runtimeConfig.d.ts +66 -38
  72. package/dist-types/ts3.4/runtimeConfig.native.d.ts +67 -37
  73. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -11
  74. package/package.json +34 -34
@@ -1,1364 +1,1533 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
- import { KMSServiceException as __BaseException } from "./KMSServiceException";
3
- export declare enum AlgorithmSpec {
4
- RSAES_OAEP_SHA_1 = "RSAES_OAEP_SHA_1",
5
- RSAES_OAEP_SHA_256 = "RSAES_OAEP_SHA_256",
6
- RSAES_PKCS1_V1_5 = "RSAES_PKCS1_V1_5"
7
- }
8
-
9
- export interface AliasListEntry {
10
-
11
- AliasName?: string;
12
-
13
- AliasArn?: string;
14
-
15
- TargetKeyId?: string;
16
-
17
- CreationDate?: Date;
18
-
19
- LastUpdatedDate?: Date;
20
- }
21
-
22
- export declare class AlreadyExistsException extends __BaseException {
23
- readonly name: "AlreadyExistsException";
24
- readonly $fault: "client";
25
-
26
- constructor(opts: __ExceptionOptionType<AlreadyExistsException, __BaseException>);
27
- }
28
- export interface CancelKeyDeletionRequest {
29
-
30
- KeyId: string | undefined;
31
- }
32
- export interface CancelKeyDeletionResponse {
33
-
34
- KeyId?: string;
35
- }
36
-
37
- export declare class DependencyTimeoutException extends __BaseException {
38
- readonly name: "DependencyTimeoutException";
39
- readonly $fault: "server";
40
-
41
- constructor(opts: __ExceptionOptionType<DependencyTimeoutException, __BaseException>);
42
- }
43
-
44
- export declare class InvalidArnException extends __BaseException {
45
- readonly name: "InvalidArnException";
46
- readonly $fault: "client";
47
-
48
- constructor(opts: __ExceptionOptionType<InvalidArnException, __BaseException>);
49
- }
50
-
51
- export declare class KMSInternalException extends __BaseException {
52
- readonly name: "KMSInternalException";
53
- readonly $fault: "server";
54
-
55
- constructor(opts: __ExceptionOptionType<KMSInternalException, __BaseException>);
56
- }
57
-
58
- export declare class KMSInvalidStateException extends __BaseException {
59
- readonly name: "KMSInvalidStateException";
60
- readonly $fault: "client";
61
-
62
- constructor(opts: __ExceptionOptionType<KMSInvalidStateException, __BaseException>);
63
- }
64
-
65
- export declare class NotFoundException extends __BaseException {
66
- readonly name: "NotFoundException";
67
- readonly $fault: "client";
68
-
69
- constructor(opts: __ExceptionOptionType<NotFoundException, __BaseException>);
70
- }
71
-
72
- export declare class CloudHsmClusterInUseException extends __BaseException {
73
- readonly name: "CloudHsmClusterInUseException";
74
- readonly $fault: "client";
75
-
76
- constructor(opts: __ExceptionOptionType<CloudHsmClusterInUseException, __BaseException>);
77
- }
78
-
79
- export declare class CloudHsmClusterInvalidConfigurationException extends __BaseException {
80
- readonly name: "CloudHsmClusterInvalidConfigurationException";
81
- readonly $fault: "client";
82
-
83
- constructor(opts: __ExceptionOptionType<CloudHsmClusterInvalidConfigurationException, __BaseException>);
84
- }
85
-
86
- export declare class CloudHsmClusterNotActiveException extends __BaseException {
87
- readonly name: "CloudHsmClusterNotActiveException";
88
- readonly $fault: "client";
89
-
90
- constructor(opts: __ExceptionOptionType<CloudHsmClusterNotActiveException, __BaseException>);
91
- }
92
-
93
- export declare class CloudHsmClusterNotFoundException extends __BaseException {
94
- readonly name: "CloudHsmClusterNotFoundException";
95
- readonly $fault: "client";
96
-
97
- constructor(opts: __ExceptionOptionType<CloudHsmClusterNotFoundException, __BaseException>);
98
- }
99
-
100
- export declare class CloudHsmClusterNotRelatedException extends __BaseException {
101
- readonly name: "CloudHsmClusterNotRelatedException";
102
- readonly $fault: "client";
103
-
104
- constructor(opts: __ExceptionOptionType<CloudHsmClusterNotRelatedException, __BaseException>);
105
- }
106
- export interface ConnectCustomKeyStoreRequest {
107
-
108
- CustomKeyStoreId: string | undefined;
109
- }
110
- export interface ConnectCustomKeyStoreResponse {
111
- }
112
-
113
- export declare class CustomKeyStoreInvalidStateException extends __BaseException {
114
- readonly name: "CustomKeyStoreInvalidStateException";
115
- readonly $fault: "client";
116
-
117
- constructor(opts: __ExceptionOptionType<CustomKeyStoreInvalidStateException, __BaseException>);
118
- }
119
-
120
- export declare class CustomKeyStoreNotFoundException extends __BaseException {
121
- readonly name: "CustomKeyStoreNotFoundException";
122
- readonly $fault: "client";
123
-
124
- constructor(opts: __ExceptionOptionType<CustomKeyStoreNotFoundException, __BaseException>);
125
- }
126
- export declare enum ConnectionErrorCodeType {
127
- CLUSTER_NOT_FOUND = "CLUSTER_NOT_FOUND",
128
- INSUFFICIENT_CLOUDHSM_HSMS = "INSUFFICIENT_CLOUDHSM_HSMS",
129
- INSUFFICIENT_FREE_ADDRESSES_IN_SUBNET = "INSUFFICIENT_FREE_ADDRESSES_IN_SUBNET",
130
- INTERNAL_ERROR = "INTERNAL_ERROR",
131
- INVALID_CREDENTIALS = "INVALID_CREDENTIALS",
132
- NETWORK_ERRORS = "NETWORK_ERRORS",
133
- SUBNET_NOT_FOUND = "SUBNET_NOT_FOUND",
134
- USER_LOCKED_OUT = "USER_LOCKED_OUT",
135
- USER_LOGGED_IN = "USER_LOGGED_IN",
136
- USER_NOT_FOUND = "USER_NOT_FOUND"
137
- }
138
- export declare enum ConnectionStateType {
139
- CONNECTED = "CONNECTED",
140
- CONNECTING = "CONNECTING",
141
- DISCONNECTED = "DISCONNECTED",
142
- DISCONNECTING = "DISCONNECTING",
143
- FAILED = "FAILED"
144
- }
145
- export interface CreateAliasRequest {
146
-
147
- AliasName: string | undefined;
148
-
149
- TargetKeyId: string | undefined;
150
- }
151
-
152
- export declare class InvalidAliasNameException extends __BaseException {
153
- readonly name: "InvalidAliasNameException";
154
- readonly $fault: "client";
155
-
156
- constructor(opts: __ExceptionOptionType<InvalidAliasNameException, __BaseException>);
157
- }
158
-
159
- export declare class LimitExceededException extends __BaseException {
160
- readonly name: "LimitExceededException";
161
- readonly $fault: "client";
162
-
163
- constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
164
- }
165
- export interface CreateCustomKeyStoreRequest {
166
-
167
- CustomKeyStoreName: string | undefined;
168
-
169
- CloudHsmClusterId?: string;
170
-
171
- TrustAnchorCertificate?: string;
172
-
173
- KeyStorePassword?: string;
174
- }
175
- export interface CreateCustomKeyStoreResponse {
176
-
177
- CustomKeyStoreId?: string;
178
- }
179
-
180
- export declare class CustomKeyStoreNameInUseException extends __BaseException {
181
- readonly name: "CustomKeyStoreNameInUseException";
182
- readonly $fault: "client";
183
-
184
- constructor(opts: __ExceptionOptionType<CustomKeyStoreNameInUseException, __BaseException>);
185
- }
186
-
187
- export declare class IncorrectTrustAnchorException extends __BaseException {
188
- readonly name: "IncorrectTrustAnchorException";
189
- readonly $fault: "client";
190
-
191
- constructor(opts: __ExceptionOptionType<IncorrectTrustAnchorException, __BaseException>);
192
- }
193
-
194
- export interface GrantConstraints {
195
-
196
- EncryptionContextSubset?: Record<string, string>;
197
-
198
- EncryptionContextEquals?: Record<string, string>;
199
- }
200
- export declare enum GrantOperation {
201
- CreateGrant = "CreateGrant",
202
- Decrypt = "Decrypt",
203
- DescribeKey = "DescribeKey",
204
- Encrypt = "Encrypt",
205
- GenerateDataKey = "GenerateDataKey",
206
- GenerateDataKeyPair = "GenerateDataKeyPair",
207
- GenerateDataKeyPairWithoutPlaintext = "GenerateDataKeyPairWithoutPlaintext",
208
- GenerateDataKeyWithoutPlaintext = "GenerateDataKeyWithoutPlaintext",
209
- GenerateMac = "GenerateMac",
210
- GetPublicKey = "GetPublicKey",
211
- ReEncryptFrom = "ReEncryptFrom",
212
- ReEncryptTo = "ReEncryptTo",
213
- RetireGrant = "RetireGrant",
214
- Sign = "Sign",
215
- Verify = "Verify",
216
- VerifyMac = "VerifyMac"
217
- }
218
- export interface CreateGrantRequest {
219
-
220
- KeyId: string | undefined;
221
-
222
- GranteePrincipal: string | undefined;
223
-
224
- RetiringPrincipal?: string;
225
-
226
- Operations: (GrantOperation | string)[] | undefined;
227
-
228
- Constraints?: GrantConstraints;
229
-
230
- GrantTokens?: string[];
231
-
232
- Name?: string;
233
- }
234
- export interface CreateGrantResponse {
235
-
236
- GrantToken?: string;
237
-
238
- GrantId?: string;
239
- }
240
-
241
- export declare class DisabledException extends __BaseException {
242
- readonly name: "DisabledException";
243
- readonly $fault: "client";
244
-
245
- constructor(opts: __ExceptionOptionType<DisabledException, __BaseException>);
246
- }
247
-
248
- export declare class InvalidGrantTokenException extends __BaseException {
249
- readonly name: "InvalidGrantTokenException";
250
- readonly $fault: "client";
251
-
252
- constructor(opts: __ExceptionOptionType<InvalidGrantTokenException, __BaseException>);
253
- }
254
- export declare enum CustomerMasterKeySpec {
255
- ECC_NIST_P256 = "ECC_NIST_P256",
256
- ECC_NIST_P384 = "ECC_NIST_P384",
257
- ECC_NIST_P521 = "ECC_NIST_P521",
258
- ECC_SECG_P256K1 = "ECC_SECG_P256K1",
259
- HMAC_224 = "HMAC_224",
260
- HMAC_256 = "HMAC_256",
261
- HMAC_384 = "HMAC_384",
262
- HMAC_512 = "HMAC_512",
263
- RSA_2048 = "RSA_2048",
264
- RSA_3072 = "RSA_3072",
265
- RSA_4096 = "RSA_4096",
266
- SM2 = "SM2",
267
- SYMMETRIC_DEFAULT = "SYMMETRIC_DEFAULT"
268
- }
269
- export declare enum KeySpec {
270
- ECC_NIST_P256 = "ECC_NIST_P256",
271
- ECC_NIST_P384 = "ECC_NIST_P384",
272
- ECC_NIST_P521 = "ECC_NIST_P521",
273
- ECC_SECG_P256K1 = "ECC_SECG_P256K1",
274
- HMAC_224 = "HMAC_224",
275
- HMAC_256 = "HMAC_256",
276
- HMAC_384 = "HMAC_384",
277
- HMAC_512 = "HMAC_512",
278
- RSA_2048 = "RSA_2048",
279
- RSA_3072 = "RSA_3072",
280
- RSA_4096 = "RSA_4096",
281
- SM2 = "SM2",
282
- SYMMETRIC_DEFAULT = "SYMMETRIC_DEFAULT"
283
- }
284
- export declare enum KeyUsageType {
285
- ENCRYPT_DECRYPT = "ENCRYPT_DECRYPT",
286
- GENERATE_VERIFY_MAC = "GENERATE_VERIFY_MAC",
287
- SIGN_VERIFY = "SIGN_VERIFY"
288
- }
289
- export declare enum OriginType {
290
- AWS_CLOUDHSM = "AWS_CLOUDHSM",
291
- AWS_KMS = "AWS_KMS",
292
- EXTERNAL = "EXTERNAL"
293
- }
294
-
295
- export interface Tag {
296
-
297
- TagKey: string | undefined;
298
-
299
- TagValue: string | undefined;
300
- }
301
- export interface CreateKeyRequest {
302
-
303
- Policy?: string;
304
-
305
- Description?: string;
306
-
307
- KeyUsage?: KeyUsageType | string;
308
-
309
- CustomerMasterKeySpec?: CustomerMasterKeySpec | string;
310
-
311
- KeySpec?: KeySpec | string;
312
-
313
- Origin?: OriginType | string;
314
-
315
- CustomKeyStoreId?: string;
316
-
317
- BypassPolicyLockoutSafetyCheck?: boolean;
318
-
319
- Tags?: Tag[];
320
-
321
- MultiRegion?: boolean;
322
- }
323
- export declare enum EncryptionAlgorithmSpec {
324
- RSAES_OAEP_SHA_1 = "RSAES_OAEP_SHA_1",
325
- RSAES_OAEP_SHA_256 = "RSAES_OAEP_SHA_256",
326
- SM2PKE = "SM2PKE",
327
- SYMMETRIC_DEFAULT = "SYMMETRIC_DEFAULT"
328
- }
329
- export declare enum ExpirationModelType {
330
- KEY_MATERIAL_DOES_NOT_EXPIRE = "KEY_MATERIAL_DOES_NOT_EXPIRE",
331
- KEY_MATERIAL_EXPIRES = "KEY_MATERIAL_EXPIRES"
332
- }
333
- export declare enum KeyManagerType {
334
- AWS = "AWS",
335
- CUSTOMER = "CUSTOMER"
336
- }
337
- export declare enum KeyState {
338
- Creating = "Creating",
339
- Disabled = "Disabled",
340
- Enabled = "Enabled",
341
- PendingDeletion = "PendingDeletion",
342
- PendingImport = "PendingImport",
343
- PendingReplicaDeletion = "PendingReplicaDeletion",
344
- Unavailable = "Unavailable",
345
- Updating = "Updating"
346
- }
347
- export declare enum MacAlgorithmSpec {
348
- HMAC_SHA_224 = "HMAC_SHA_224",
349
- HMAC_SHA_256 = "HMAC_SHA_256",
350
- HMAC_SHA_384 = "HMAC_SHA_384",
351
- HMAC_SHA_512 = "HMAC_SHA_512"
352
- }
353
- export declare enum MultiRegionKeyType {
354
- PRIMARY = "PRIMARY",
355
- REPLICA = "REPLICA"
356
- }
357
-
358
- export interface MultiRegionKey {
359
-
360
- Arn?: string;
361
-
362
- Region?: string;
363
- }
364
-
365
- export interface MultiRegionConfiguration {
366
-
367
- MultiRegionKeyType?: MultiRegionKeyType | string;
368
-
369
- PrimaryKey?: MultiRegionKey;
370
-
371
- ReplicaKeys?: MultiRegionKey[];
372
- }
373
- export declare enum SigningAlgorithmSpec {
374
- ECDSA_SHA_256 = "ECDSA_SHA_256",
375
- ECDSA_SHA_384 = "ECDSA_SHA_384",
376
- ECDSA_SHA_512 = "ECDSA_SHA_512",
377
- RSASSA_PKCS1_V1_5_SHA_256 = "RSASSA_PKCS1_V1_5_SHA_256",
378
- RSASSA_PKCS1_V1_5_SHA_384 = "RSASSA_PKCS1_V1_5_SHA_384",
379
- RSASSA_PKCS1_V1_5_SHA_512 = "RSASSA_PKCS1_V1_5_SHA_512",
380
- RSASSA_PSS_SHA_256 = "RSASSA_PSS_SHA_256",
381
- RSASSA_PSS_SHA_384 = "RSASSA_PSS_SHA_384",
382
- RSASSA_PSS_SHA_512 = "RSASSA_PSS_SHA_512",
383
- SM2DSA = "SM2DSA"
384
- }
385
-
386
- export interface KeyMetadata {
387
-
388
- AWSAccountId?: string;
389
-
390
- KeyId: string | undefined;
391
-
392
- Arn?: string;
393
-
394
- CreationDate?: Date;
395
-
396
- Enabled?: boolean;
397
-
398
- Description?: string;
399
-
400
- KeyUsage?: KeyUsageType | string;
401
-
402
- KeyState?: KeyState | string;
403
-
404
- DeletionDate?: Date;
405
-
406
- ValidTo?: Date;
407
-
408
- Origin?: OriginType | string;
409
-
410
- CustomKeyStoreId?: string;
411
-
412
- CloudHsmClusterId?: string;
413
-
414
- ExpirationModel?: ExpirationModelType | string;
415
-
416
- KeyManager?: KeyManagerType | string;
417
-
418
- CustomerMasterKeySpec?: CustomerMasterKeySpec | string;
419
-
420
- KeySpec?: KeySpec | string;
421
-
422
- EncryptionAlgorithms?: (EncryptionAlgorithmSpec | string)[];
423
-
424
- SigningAlgorithms?: (SigningAlgorithmSpec | string)[];
425
-
426
- MultiRegion?: boolean;
427
-
428
- MultiRegionConfiguration?: MultiRegionConfiguration;
429
-
430
- PendingDeletionWindowInDays?: number;
431
-
432
- MacAlgorithms?: (MacAlgorithmSpec | string)[];
433
- }
434
- export interface CreateKeyResponse {
435
-
436
- KeyMetadata?: KeyMetadata;
437
- }
438
-
439
- export declare class MalformedPolicyDocumentException extends __BaseException {
440
- readonly name: "MalformedPolicyDocumentException";
441
- readonly $fault: "client";
442
-
443
- constructor(opts: __ExceptionOptionType<MalformedPolicyDocumentException, __BaseException>);
444
- }
445
-
446
- export declare class TagException extends __BaseException {
447
- readonly name: "TagException";
448
- readonly $fault: "client";
449
-
450
- constructor(opts: __ExceptionOptionType<TagException, __BaseException>);
451
- }
452
-
453
- export declare class UnsupportedOperationException extends __BaseException {
454
- readonly name: "UnsupportedOperationException";
455
- readonly $fault: "client";
456
-
457
- constructor(opts: __ExceptionOptionType<UnsupportedOperationException, __BaseException>);
458
- }
459
-
460
- export declare class CustomKeyStoreHasCMKsException extends __BaseException {
461
- readonly name: "CustomKeyStoreHasCMKsException";
462
- readonly $fault: "client";
463
-
464
- constructor(opts: __ExceptionOptionType<CustomKeyStoreHasCMKsException, __BaseException>);
465
- }
466
-
467
- export interface CustomKeyStoresListEntry {
468
-
469
- CustomKeyStoreId?: string;
470
-
471
- CustomKeyStoreName?: string;
472
-
473
- CloudHsmClusterId?: string;
474
-
475
- TrustAnchorCertificate?: string;
476
-
477
- ConnectionState?: ConnectionStateType | string;
478
-
479
- ConnectionErrorCode?: ConnectionErrorCodeType | string;
480
-
481
- CreationDate?: Date;
482
- }
483
- export declare enum DataKeyPairSpec {
484
- ECC_NIST_P256 = "ECC_NIST_P256",
485
- ECC_NIST_P384 = "ECC_NIST_P384",
486
- ECC_NIST_P521 = "ECC_NIST_P521",
487
- ECC_SECG_P256K1 = "ECC_SECG_P256K1",
488
- RSA_2048 = "RSA_2048",
489
- RSA_3072 = "RSA_3072",
490
- RSA_4096 = "RSA_4096",
491
- SM2 = "SM2"
492
- }
493
- export declare enum DataKeySpec {
494
- AES_128 = "AES_128",
495
- AES_256 = "AES_256"
496
- }
497
- export interface DecryptRequest {
498
-
499
- CiphertextBlob: Uint8Array | undefined;
500
-
501
- EncryptionContext?: Record<string, string>;
502
-
503
- GrantTokens?: string[];
504
-
505
- KeyId?: string;
506
-
507
- EncryptionAlgorithm?: EncryptionAlgorithmSpec | string;
508
- }
509
- export interface DecryptResponse {
510
-
511
- KeyId?: string;
512
-
513
- Plaintext?: Uint8Array;
514
-
515
- EncryptionAlgorithm?: EncryptionAlgorithmSpec | string;
516
- }
517
-
518
- export declare class IncorrectKeyException extends __BaseException {
519
- readonly name: "IncorrectKeyException";
520
- readonly $fault: "client";
521
-
522
- constructor(opts: __ExceptionOptionType<IncorrectKeyException, __BaseException>);
523
- }
524
-
525
- export declare class InvalidCiphertextException extends __BaseException {
526
- readonly name: "InvalidCiphertextException";
527
- readonly $fault: "client";
528
-
529
- constructor(opts: __ExceptionOptionType<InvalidCiphertextException, __BaseException>);
530
- }
531
-
532
- export declare class InvalidKeyUsageException extends __BaseException {
533
- readonly name: "InvalidKeyUsageException";
534
- readonly $fault: "client";
535
-
536
- constructor(opts: __ExceptionOptionType<InvalidKeyUsageException, __BaseException>);
537
- }
538
-
539
- export declare class KeyUnavailableException extends __BaseException {
540
- readonly name: "KeyUnavailableException";
541
- readonly $fault: "server";
542
-
543
- constructor(opts: __ExceptionOptionType<KeyUnavailableException, __BaseException>);
544
- }
545
- export interface DeleteAliasRequest {
546
-
547
- AliasName: string | undefined;
548
- }
549
- export interface DeleteCustomKeyStoreRequest {
550
-
551
- CustomKeyStoreId: string | undefined;
552
- }
553
- export interface DeleteCustomKeyStoreResponse {
554
- }
555
- export interface DeleteImportedKeyMaterialRequest {
556
-
557
- KeyId: string | undefined;
558
- }
559
- export interface DescribeCustomKeyStoresRequest {
560
-
561
- CustomKeyStoreId?: string;
562
-
563
- CustomKeyStoreName?: string;
564
-
565
- Limit?: number;
566
-
567
- Marker?: string;
568
- }
569
- export interface DescribeCustomKeyStoresResponse {
570
-
571
- CustomKeyStores?: CustomKeyStoresListEntry[];
572
-
573
- NextMarker?: string;
574
-
575
- Truncated?: boolean;
576
- }
577
-
578
- export declare class InvalidMarkerException extends __BaseException {
579
- readonly name: "InvalidMarkerException";
580
- readonly $fault: "client";
581
-
582
- constructor(opts: __ExceptionOptionType<InvalidMarkerException, __BaseException>);
583
- }
584
- export interface DescribeKeyRequest {
585
-
586
- KeyId: string | undefined;
587
-
588
- GrantTokens?: string[];
589
- }
590
- export interface DescribeKeyResponse {
591
-
592
- KeyMetadata?: KeyMetadata;
593
- }
594
- export interface DisableKeyRequest {
595
-
596
- KeyId: string | undefined;
597
- }
598
- export interface DisableKeyRotationRequest {
599
-
600
- KeyId: string | undefined;
601
- }
602
- export interface DisconnectCustomKeyStoreRequest {
603
-
604
- CustomKeyStoreId: string | undefined;
605
- }
606
- export interface DisconnectCustomKeyStoreResponse {
607
- }
608
- export interface EnableKeyRequest {
609
-
610
- KeyId: string | undefined;
611
- }
612
- export interface EnableKeyRotationRequest {
613
-
614
- KeyId: string | undefined;
615
- }
616
- export interface EncryptRequest {
617
-
618
- KeyId: string | undefined;
619
-
620
- Plaintext: Uint8Array | undefined;
621
-
622
- EncryptionContext?: Record<string, string>;
623
-
624
- GrantTokens?: string[];
625
-
626
- EncryptionAlgorithm?: EncryptionAlgorithmSpec | string;
627
- }
628
- export interface EncryptResponse {
629
-
630
- CiphertextBlob?: Uint8Array;
631
-
632
- KeyId?: string;
633
-
634
- EncryptionAlgorithm?: EncryptionAlgorithmSpec | string;
635
- }
636
-
637
- export declare class ExpiredImportTokenException extends __BaseException {
638
- readonly name: "ExpiredImportTokenException";
639
- readonly $fault: "client";
640
-
641
- constructor(opts: __ExceptionOptionType<ExpiredImportTokenException, __BaseException>);
642
- }
643
- export interface GenerateDataKeyRequest {
644
-
645
- KeyId: string | undefined;
646
-
647
- EncryptionContext?: Record<string, string>;
648
-
649
- NumberOfBytes?: number;
650
-
651
- KeySpec?: DataKeySpec | string;
652
-
653
- GrantTokens?: string[];
654
- }
655
- export interface GenerateDataKeyResponse {
656
-
657
- CiphertextBlob?: Uint8Array;
658
-
659
- Plaintext?: Uint8Array;
660
-
661
- KeyId?: string;
662
- }
663
- export interface GenerateDataKeyPairRequest {
664
-
665
- EncryptionContext?: Record<string, string>;
666
-
667
- KeyId: string | undefined;
668
-
669
- KeyPairSpec: DataKeyPairSpec | string | undefined;
670
-
671
- GrantTokens?: string[];
672
- }
673
- export interface GenerateDataKeyPairResponse {
674
-
675
- PrivateKeyCiphertextBlob?: Uint8Array;
676
-
677
- PrivateKeyPlaintext?: Uint8Array;
678
-
679
- PublicKey?: Uint8Array;
680
-
681
- KeyId?: string;
682
-
683
- KeyPairSpec?: DataKeyPairSpec | string;
684
- }
685
- export interface GenerateDataKeyPairWithoutPlaintextRequest {
686
-
687
- EncryptionContext?: Record<string, string>;
688
-
689
- KeyId: string | undefined;
690
-
691
- KeyPairSpec: DataKeyPairSpec | string | undefined;
692
-
693
- GrantTokens?: string[];
694
- }
695
- export interface GenerateDataKeyPairWithoutPlaintextResponse {
696
-
697
- PrivateKeyCiphertextBlob?: Uint8Array;
698
-
699
- PublicKey?: Uint8Array;
700
-
701
- KeyId?: string;
702
-
703
- KeyPairSpec?: DataKeyPairSpec | string;
704
- }
705
- export interface GenerateDataKeyWithoutPlaintextRequest {
706
-
707
- KeyId: string | undefined;
708
-
709
- EncryptionContext?: Record<string, string>;
710
-
711
- KeySpec?: DataKeySpec | string;
712
-
713
- NumberOfBytes?: number;
714
-
715
- GrantTokens?: string[];
716
- }
717
- export interface GenerateDataKeyWithoutPlaintextResponse {
718
-
719
- CiphertextBlob?: Uint8Array;
720
-
721
- KeyId?: string;
722
- }
723
- export interface GenerateMacRequest {
724
-
725
- Message: Uint8Array | undefined;
726
-
727
- KeyId: string | undefined;
728
-
729
- MacAlgorithm: MacAlgorithmSpec | string | undefined;
730
-
731
- GrantTokens?: string[];
732
- }
733
- export interface GenerateMacResponse {
734
-
735
- Mac?: Uint8Array;
736
-
737
- MacAlgorithm?: MacAlgorithmSpec | string;
738
-
739
- KeyId?: string;
740
- }
741
- export interface GenerateRandomRequest {
742
-
743
- NumberOfBytes?: number;
744
-
745
- CustomKeyStoreId?: string;
746
- }
747
- export interface GenerateRandomResponse {
748
-
749
- Plaintext?: Uint8Array;
750
- }
751
- export interface GetKeyPolicyRequest {
752
-
753
- KeyId: string | undefined;
754
-
755
- PolicyName: string | undefined;
756
- }
757
- export interface GetKeyPolicyResponse {
758
-
759
- Policy?: string;
760
- }
761
- export interface GetKeyRotationStatusRequest {
762
-
763
- KeyId: string | undefined;
764
- }
765
- export interface GetKeyRotationStatusResponse {
766
-
767
- KeyRotationEnabled?: boolean;
768
- }
769
- export declare enum WrappingKeySpec {
770
- RSA_2048 = "RSA_2048"
771
- }
772
- export interface GetParametersForImportRequest {
773
-
774
- KeyId: string | undefined;
775
-
776
- WrappingAlgorithm: AlgorithmSpec | string | undefined;
777
-
778
- WrappingKeySpec: WrappingKeySpec | string | undefined;
779
- }
780
- export interface GetParametersForImportResponse {
781
-
782
- KeyId?: string;
783
-
784
- ImportToken?: Uint8Array;
785
-
786
- PublicKey?: Uint8Array;
787
-
788
- ParametersValidTo?: Date;
789
- }
790
- export interface GetPublicKeyRequest {
791
-
792
- KeyId: string | undefined;
793
-
794
- GrantTokens?: string[];
795
- }
796
- export interface GetPublicKeyResponse {
797
-
798
- KeyId?: string;
799
-
800
- PublicKey?: Uint8Array;
801
-
802
- CustomerMasterKeySpec?: CustomerMasterKeySpec | string;
803
-
804
- KeySpec?: KeySpec | string;
805
-
806
- KeyUsage?: KeyUsageType | string;
807
-
808
- EncryptionAlgorithms?: (EncryptionAlgorithmSpec | string)[];
809
-
810
- SigningAlgorithms?: (SigningAlgorithmSpec | string)[];
811
- }
812
-
813
- export interface GrantListEntry {
814
-
815
- KeyId?: string;
816
-
817
- GrantId?: string;
818
-
819
- Name?: string;
820
-
821
- CreationDate?: Date;
822
-
823
- GranteePrincipal?: string;
824
-
825
- RetiringPrincipal?: string;
826
-
827
- IssuingAccount?: string;
828
-
829
- Operations?: (GrantOperation | string)[];
830
-
831
- Constraints?: GrantConstraints;
832
- }
833
- export interface ImportKeyMaterialRequest {
834
-
835
- KeyId: string | undefined;
836
-
837
- ImportToken: Uint8Array | undefined;
838
-
839
- EncryptedKeyMaterial: Uint8Array | undefined;
840
-
841
- ValidTo?: Date;
842
-
843
- ExpirationModel?: ExpirationModelType | string;
844
- }
845
- export interface ImportKeyMaterialResponse {
846
- }
847
-
848
- export declare class IncorrectKeyMaterialException extends __BaseException {
849
- readonly name: "IncorrectKeyMaterialException";
850
- readonly $fault: "client";
851
-
852
- constructor(opts: __ExceptionOptionType<IncorrectKeyMaterialException, __BaseException>);
853
- }
854
-
855
- export declare class InvalidImportTokenException extends __BaseException {
856
- readonly name: "InvalidImportTokenException";
857
- readonly $fault: "client";
858
-
859
- constructor(opts: __ExceptionOptionType<InvalidImportTokenException, __BaseException>);
860
- }
861
-
862
- export declare class InvalidGrantIdException extends __BaseException {
863
- readonly name: "InvalidGrantIdException";
864
- readonly $fault: "client";
865
-
866
- constructor(opts: __ExceptionOptionType<InvalidGrantIdException, __BaseException>);
867
- }
868
-
869
- export interface KeyListEntry {
870
-
871
- KeyId?: string;
872
-
873
- KeyArn?: string;
874
- }
875
-
876
- export declare class KMSInvalidMacException extends __BaseException {
877
- readonly name: "KMSInvalidMacException";
878
- readonly $fault: "client";
879
-
880
- constructor(opts: __ExceptionOptionType<KMSInvalidMacException, __BaseException>);
881
- }
882
-
883
- export declare class KMSInvalidSignatureException extends __BaseException {
884
- readonly name: "KMSInvalidSignatureException";
885
- readonly $fault: "client";
886
-
887
- constructor(opts: __ExceptionOptionType<KMSInvalidSignatureException, __BaseException>);
888
- }
889
- export interface ListAliasesRequest {
890
-
891
- KeyId?: string;
892
-
893
- Limit?: number;
894
-
895
- Marker?: string;
896
- }
897
- export interface ListAliasesResponse {
898
-
899
- Aliases?: AliasListEntry[];
900
-
901
- NextMarker?: string;
902
-
903
- Truncated?: boolean;
904
- }
905
- export interface ListGrantsRequest {
906
-
907
- Limit?: number;
908
-
909
- Marker?: string;
910
-
911
- KeyId: string | undefined;
912
-
913
- GrantId?: string;
914
-
915
- GranteePrincipal?: string;
916
- }
917
- export interface ListGrantsResponse {
918
-
919
- Grants?: GrantListEntry[];
920
-
921
- NextMarker?: string;
922
-
923
- Truncated?: boolean;
924
- }
925
- export interface ListKeyPoliciesRequest {
926
-
927
- KeyId: string | undefined;
928
-
929
- Limit?: number;
930
-
931
- Marker?: string;
932
- }
933
- export interface ListKeyPoliciesResponse {
934
-
935
- PolicyNames?: string[];
936
-
937
- NextMarker?: string;
938
-
939
- Truncated?: boolean;
940
- }
941
- export interface ListKeysRequest {
942
-
943
- Limit?: number;
944
-
945
- Marker?: string;
946
- }
947
- export interface ListKeysResponse {
948
-
949
- Keys?: KeyListEntry[];
950
-
951
- NextMarker?: string;
952
-
953
- Truncated?: boolean;
954
- }
955
- export interface ListResourceTagsRequest {
956
-
957
- KeyId: string | undefined;
958
-
959
- Limit?: number;
960
-
961
- Marker?: string;
962
- }
963
- export interface ListResourceTagsResponse {
964
-
965
- Tags?: Tag[];
966
-
967
- NextMarker?: string;
968
-
969
- Truncated?: boolean;
970
- }
971
- export interface ListRetirableGrantsRequest {
972
-
973
- Limit?: number;
974
-
975
- Marker?: string;
976
-
977
- RetiringPrincipal: string | undefined;
978
- }
979
- export declare enum MessageType {
980
- DIGEST = "DIGEST",
981
- RAW = "RAW"
982
- }
983
- export interface PutKeyPolicyRequest {
984
-
985
- KeyId: string | undefined;
986
-
987
- PolicyName: string | undefined;
988
-
989
- Policy: string | undefined;
990
-
991
- BypassPolicyLockoutSafetyCheck?: boolean;
992
- }
993
- export interface ReEncryptRequest {
994
-
995
- CiphertextBlob: Uint8Array | undefined;
996
-
997
- SourceEncryptionContext?: Record<string, string>;
998
-
999
- SourceKeyId?: string;
1000
-
1001
- DestinationKeyId: string | undefined;
1002
-
1003
- DestinationEncryptionContext?: Record<string, string>;
1004
-
1005
- SourceEncryptionAlgorithm?: EncryptionAlgorithmSpec | string;
1006
-
1007
- DestinationEncryptionAlgorithm?: EncryptionAlgorithmSpec | string;
1008
-
1009
- GrantTokens?: string[];
1010
- }
1011
- export interface ReEncryptResponse {
1012
-
1013
- CiphertextBlob?: Uint8Array;
1014
-
1015
- SourceKeyId?: string;
1016
-
1017
- KeyId?: string;
1018
-
1019
- SourceEncryptionAlgorithm?: EncryptionAlgorithmSpec | string;
1020
-
1021
- DestinationEncryptionAlgorithm?: EncryptionAlgorithmSpec | string;
1022
- }
1023
- export interface ReplicateKeyRequest {
1024
-
1025
- KeyId: string | undefined;
1026
-
1027
- ReplicaRegion: string | undefined;
1028
-
1029
- Policy?: string;
1030
-
1031
- BypassPolicyLockoutSafetyCheck?: boolean;
1032
-
1033
- Description?: string;
1034
-
1035
- Tags?: Tag[];
1036
- }
1037
- export interface ReplicateKeyResponse {
1038
-
1039
- ReplicaKeyMetadata?: KeyMetadata;
1040
-
1041
- ReplicaPolicy?: string;
1042
-
1043
- ReplicaTags?: Tag[];
1044
- }
1045
- export interface RetireGrantRequest {
1046
-
1047
- GrantToken?: string;
1048
-
1049
- KeyId?: string;
1050
-
1051
- GrantId?: string;
1052
- }
1053
- export interface RevokeGrantRequest {
1054
-
1055
- KeyId: string | undefined;
1056
-
1057
- GrantId: string | undefined;
1058
- }
1059
- export interface ScheduleKeyDeletionRequest {
1060
-
1061
- KeyId: string | undefined;
1062
-
1063
- PendingWindowInDays?: number;
1064
- }
1065
- export interface ScheduleKeyDeletionResponse {
1066
-
1067
- KeyId?: string;
1068
-
1069
- DeletionDate?: Date;
1070
-
1071
- KeyState?: KeyState | string;
1072
-
1073
- PendingWindowInDays?: number;
1074
- }
1075
- export interface SignRequest {
1076
-
1077
- KeyId: string | undefined;
1078
-
1079
- Message: Uint8Array | undefined;
1080
-
1081
- MessageType?: MessageType | string;
1082
-
1083
- GrantTokens?: string[];
1084
-
1085
- SigningAlgorithm: SigningAlgorithmSpec | string | undefined;
1086
- }
1087
- export interface SignResponse {
1088
-
1089
- KeyId?: string;
1090
-
1091
- Signature?: Uint8Array;
1092
-
1093
- SigningAlgorithm?: SigningAlgorithmSpec | string;
1094
- }
1095
- export interface TagResourceRequest {
1096
-
1097
- KeyId: string | undefined;
1098
-
1099
- Tags: Tag[] | undefined;
1100
- }
1101
- export interface UntagResourceRequest {
1102
-
1103
- KeyId: string | undefined;
1104
-
1105
- TagKeys: string[] | undefined;
1106
- }
1107
- export interface UpdateAliasRequest {
1108
-
1109
- AliasName: string | undefined;
1110
-
1111
- TargetKeyId: string | undefined;
1112
- }
1113
- export interface UpdateCustomKeyStoreRequest {
1114
-
1115
- CustomKeyStoreId: string | undefined;
1116
-
1117
- NewCustomKeyStoreName?: string;
1118
-
1119
- KeyStorePassword?: string;
1120
-
1121
- CloudHsmClusterId?: string;
1122
- }
1123
- export interface UpdateCustomKeyStoreResponse {
1124
- }
1125
- export interface UpdateKeyDescriptionRequest {
1126
-
1127
- KeyId: string | undefined;
1128
-
1129
- Description: string | undefined;
1130
- }
1131
- export interface UpdatePrimaryRegionRequest {
1132
-
1133
- KeyId: string | undefined;
1134
-
1135
- PrimaryRegion: string | undefined;
1136
- }
1137
- export interface VerifyRequest {
1138
-
1139
- KeyId: string | undefined;
1140
-
1141
- Message: Uint8Array | undefined;
1142
-
1143
- MessageType?: MessageType | string;
1144
-
1145
- Signature: Uint8Array | undefined;
1146
-
1147
- SigningAlgorithm: SigningAlgorithmSpec | string | undefined;
1148
-
1149
- GrantTokens?: string[];
1150
- }
1151
- export interface VerifyResponse {
1152
-
1153
- KeyId?: string;
1154
-
1155
- SignatureValid?: boolean;
1156
-
1157
- SigningAlgorithm?: SigningAlgorithmSpec | string;
1158
- }
1159
- export interface VerifyMacRequest {
1160
-
1161
- Message: Uint8Array | undefined;
1162
-
1163
- KeyId: string | undefined;
1164
-
1165
- MacAlgorithm: MacAlgorithmSpec | string | undefined;
1166
-
1167
- Mac: Uint8Array | undefined;
1168
-
1169
- GrantTokens?: string[];
1170
- }
1171
- export interface VerifyMacResponse {
1172
-
1173
- KeyId?: string;
1174
-
1175
- MacValid?: boolean;
1176
-
1177
- MacAlgorithm?: MacAlgorithmSpec | string;
1178
- }
1179
-
1180
- export declare const AliasListEntryFilterSensitiveLog: (obj: AliasListEntry) => any;
1181
-
1182
- export declare const CancelKeyDeletionRequestFilterSensitiveLog: (obj: CancelKeyDeletionRequest) => any;
1183
-
1184
- export declare const CancelKeyDeletionResponseFilterSensitiveLog: (obj: CancelKeyDeletionResponse) => any;
1185
-
1186
- export declare const ConnectCustomKeyStoreRequestFilterSensitiveLog: (obj: ConnectCustomKeyStoreRequest) => any;
1187
-
1188
- export declare const ConnectCustomKeyStoreResponseFilterSensitiveLog: (obj: ConnectCustomKeyStoreResponse) => any;
1189
-
1190
- export declare const CreateAliasRequestFilterSensitiveLog: (obj: CreateAliasRequest) => any;
1191
-
1192
- export declare const CreateCustomKeyStoreRequestFilterSensitiveLog: (obj: CreateCustomKeyStoreRequest) => any;
1193
-
1194
- export declare const CreateCustomKeyStoreResponseFilterSensitiveLog: (obj: CreateCustomKeyStoreResponse) => any;
1195
-
1196
- export declare const GrantConstraintsFilterSensitiveLog: (obj: GrantConstraints) => any;
1197
-
1198
- export declare const CreateGrantRequestFilterSensitiveLog: (obj: CreateGrantRequest) => any;
1199
-
1200
- export declare const CreateGrantResponseFilterSensitiveLog: (obj: CreateGrantResponse) => any;
1201
-
1202
- export declare const TagFilterSensitiveLog: (obj: Tag) => any;
1203
-
1204
- export declare const CreateKeyRequestFilterSensitiveLog: (obj: CreateKeyRequest) => any;
1205
-
1206
- export declare const MultiRegionKeyFilterSensitiveLog: (obj: MultiRegionKey) => any;
1207
-
1208
- export declare const MultiRegionConfigurationFilterSensitiveLog: (obj: MultiRegionConfiguration) => any;
1209
-
1210
- export declare const KeyMetadataFilterSensitiveLog: (obj: KeyMetadata) => any;
1211
-
1212
- export declare const CreateKeyResponseFilterSensitiveLog: (obj: CreateKeyResponse) => any;
1213
-
1214
- export declare const CustomKeyStoresListEntryFilterSensitiveLog: (obj: CustomKeyStoresListEntry) => any;
1215
-
1216
- export declare const DecryptRequestFilterSensitiveLog: (obj: DecryptRequest) => any;
1217
-
1218
- export declare const DecryptResponseFilterSensitiveLog: (obj: DecryptResponse) => any;
1219
-
1220
- export declare const DeleteAliasRequestFilterSensitiveLog: (obj: DeleteAliasRequest) => any;
1221
-
1222
- export declare const DeleteCustomKeyStoreRequestFilterSensitiveLog: (obj: DeleteCustomKeyStoreRequest) => any;
1223
-
1224
- export declare const DeleteCustomKeyStoreResponseFilterSensitiveLog: (obj: DeleteCustomKeyStoreResponse) => any;
1225
-
1226
- export declare const DeleteImportedKeyMaterialRequestFilterSensitiveLog: (obj: DeleteImportedKeyMaterialRequest) => any;
1227
-
1228
- export declare const DescribeCustomKeyStoresRequestFilterSensitiveLog: (obj: DescribeCustomKeyStoresRequest) => any;
1229
-
1230
- export declare const DescribeCustomKeyStoresResponseFilterSensitiveLog: (obj: DescribeCustomKeyStoresResponse) => any;
1231
-
1232
- export declare const DescribeKeyRequestFilterSensitiveLog: (obj: DescribeKeyRequest) => any;
1233
-
1234
- export declare const DescribeKeyResponseFilterSensitiveLog: (obj: DescribeKeyResponse) => any;
1235
-
1236
- export declare const DisableKeyRequestFilterSensitiveLog: (obj: DisableKeyRequest) => any;
1237
-
1238
- export declare const DisableKeyRotationRequestFilterSensitiveLog: (obj: DisableKeyRotationRequest) => any;
1239
-
1240
- export declare const DisconnectCustomKeyStoreRequestFilterSensitiveLog: (obj: DisconnectCustomKeyStoreRequest) => any;
1241
-
1242
- export declare const DisconnectCustomKeyStoreResponseFilterSensitiveLog: (obj: DisconnectCustomKeyStoreResponse) => any;
1243
-
1244
- export declare const EnableKeyRequestFilterSensitiveLog: (obj: EnableKeyRequest) => any;
1245
-
1246
- export declare const EnableKeyRotationRequestFilterSensitiveLog: (obj: EnableKeyRotationRequest) => any;
1247
-
1248
- export declare const EncryptRequestFilterSensitiveLog: (obj: EncryptRequest) => any;
1249
-
1250
- export declare const EncryptResponseFilterSensitiveLog: (obj: EncryptResponse) => any;
1251
-
1252
- export declare const GenerateDataKeyRequestFilterSensitiveLog: (obj: GenerateDataKeyRequest) => any;
1253
-
1254
- export declare const GenerateDataKeyResponseFilterSensitiveLog: (obj: GenerateDataKeyResponse) => any;
1255
-
1256
- export declare const GenerateDataKeyPairRequestFilterSensitiveLog: (obj: GenerateDataKeyPairRequest) => any;
1257
-
1258
- export declare const GenerateDataKeyPairResponseFilterSensitiveLog: (obj: GenerateDataKeyPairResponse) => any;
1259
-
1260
- export declare const GenerateDataKeyPairWithoutPlaintextRequestFilterSensitiveLog: (obj: GenerateDataKeyPairWithoutPlaintextRequest) => any;
1261
-
1262
- export declare const GenerateDataKeyPairWithoutPlaintextResponseFilterSensitiveLog: (obj: GenerateDataKeyPairWithoutPlaintextResponse) => any;
1263
-
1264
- export declare const GenerateDataKeyWithoutPlaintextRequestFilterSensitiveLog: (obj: GenerateDataKeyWithoutPlaintextRequest) => any;
1265
-
1266
- export declare const GenerateDataKeyWithoutPlaintextResponseFilterSensitiveLog: (obj: GenerateDataKeyWithoutPlaintextResponse) => any;
1267
-
1268
- export declare const GenerateMacRequestFilterSensitiveLog: (obj: GenerateMacRequest) => any;
1269
-
1270
- export declare const GenerateMacResponseFilterSensitiveLog: (obj: GenerateMacResponse) => any;
1271
-
1272
- export declare const GenerateRandomRequestFilterSensitiveLog: (obj: GenerateRandomRequest) => any;
1273
-
1274
- export declare const GenerateRandomResponseFilterSensitiveLog: (obj: GenerateRandomResponse) => any;
1275
-
1276
- export declare const GetKeyPolicyRequestFilterSensitiveLog: (obj: GetKeyPolicyRequest) => any;
1277
-
1278
- export declare const GetKeyPolicyResponseFilterSensitiveLog: (obj: GetKeyPolicyResponse) => any;
1279
-
1280
- export declare const GetKeyRotationStatusRequestFilterSensitiveLog: (obj: GetKeyRotationStatusRequest) => any;
1281
-
1282
- export declare const GetKeyRotationStatusResponseFilterSensitiveLog: (obj: GetKeyRotationStatusResponse) => any;
1283
-
1284
- export declare const GetParametersForImportRequestFilterSensitiveLog: (obj: GetParametersForImportRequest) => any;
1285
-
1286
- export declare const GetParametersForImportResponseFilterSensitiveLog: (obj: GetParametersForImportResponse) => any;
1287
-
1288
- export declare const GetPublicKeyRequestFilterSensitiveLog: (obj: GetPublicKeyRequest) => any;
1289
-
1290
- export declare const GetPublicKeyResponseFilterSensitiveLog: (obj: GetPublicKeyResponse) => any;
1291
-
1292
- export declare const GrantListEntryFilterSensitiveLog: (obj: GrantListEntry) => any;
1293
-
1294
- export declare const ImportKeyMaterialRequestFilterSensitiveLog: (obj: ImportKeyMaterialRequest) => any;
1295
-
1296
- export declare const ImportKeyMaterialResponseFilterSensitiveLog: (obj: ImportKeyMaterialResponse) => any;
1297
-
1298
- export declare const KeyListEntryFilterSensitiveLog: (obj: KeyListEntry) => any;
1299
-
1300
- export declare const ListAliasesRequestFilterSensitiveLog: (obj: ListAliasesRequest) => any;
1301
-
1302
- export declare const ListAliasesResponseFilterSensitiveLog: (obj: ListAliasesResponse) => any;
1303
-
1304
- export declare const ListGrantsRequestFilterSensitiveLog: (obj: ListGrantsRequest) => any;
1305
-
1306
- export declare const ListGrantsResponseFilterSensitiveLog: (obj: ListGrantsResponse) => any;
1307
-
1308
- export declare const ListKeyPoliciesRequestFilterSensitiveLog: (obj: ListKeyPoliciesRequest) => any;
1309
-
1310
- export declare const ListKeyPoliciesResponseFilterSensitiveLog: (obj: ListKeyPoliciesResponse) => any;
1311
-
1312
- export declare const ListKeysRequestFilterSensitiveLog: (obj: ListKeysRequest) => any;
1313
-
1314
- export declare const ListKeysResponseFilterSensitiveLog: (obj: ListKeysResponse) => any;
1315
-
1316
- export declare const ListResourceTagsRequestFilterSensitiveLog: (obj: ListResourceTagsRequest) => any;
1317
-
1318
- export declare const ListResourceTagsResponseFilterSensitiveLog: (obj: ListResourceTagsResponse) => any;
1319
-
1320
- export declare const ListRetirableGrantsRequestFilterSensitiveLog: (obj: ListRetirableGrantsRequest) => any;
1321
-
1322
- export declare const PutKeyPolicyRequestFilterSensitiveLog: (obj: PutKeyPolicyRequest) => any;
1323
-
1324
- export declare const ReEncryptRequestFilterSensitiveLog: (obj: ReEncryptRequest) => any;
1325
-
1326
- export declare const ReEncryptResponseFilterSensitiveLog: (obj: ReEncryptResponse) => any;
1327
-
1328
- export declare const ReplicateKeyRequestFilterSensitiveLog: (obj: ReplicateKeyRequest) => any;
1329
-
1330
- export declare const ReplicateKeyResponseFilterSensitiveLog: (obj: ReplicateKeyResponse) => any;
1331
-
1332
- export declare const RetireGrantRequestFilterSensitiveLog: (obj: RetireGrantRequest) => any;
1333
-
1334
- export declare const RevokeGrantRequestFilterSensitiveLog: (obj: RevokeGrantRequest) => any;
1335
-
1336
- export declare const ScheduleKeyDeletionRequestFilterSensitiveLog: (obj: ScheduleKeyDeletionRequest) => any;
1337
-
1338
- export declare const ScheduleKeyDeletionResponseFilterSensitiveLog: (obj: ScheduleKeyDeletionResponse) => any;
1339
-
1340
- export declare const SignRequestFilterSensitiveLog: (obj: SignRequest) => any;
1341
-
1342
- export declare const SignResponseFilterSensitiveLog: (obj: SignResponse) => any;
1343
-
1344
- export declare const TagResourceRequestFilterSensitiveLog: (obj: TagResourceRequest) => any;
1345
-
1346
- export declare const UntagResourceRequestFilterSensitiveLog: (obj: UntagResourceRequest) => any;
1347
-
1348
- export declare const UpdateAliasRequestFilterSensitiveLog: (obj: UpdateAliasRequest) => any;
1349
-
1350
- export declare const UpdateCustomKeyStoreRequestFilterSensitiveLog: (obj: UpdateCustomKeyStoreRequest) => any;
1351
-
1352
- export declare const UpdateCustomKeyStoreResponseFilterSensitiveLog: (obj: UpdateCustomKeyStoreResponse) => any;
1353
-
1354
- export declare const UpdateKeyDescriptionRequestFilterSensitiveLog: (obj: UpdateKeyDescriptionRequest) => any;
1355
-
1356
- export declare const UpdatePrimaryRegionRequestFilterSensitiveLog: (obj: UpdatePrimaryRegionRequest) => any;
1357
-
1358
- export declare const VerifyRequestFilterSensitiveLog: (obj: VerifyRequest) => any;
1359
-
1360
- export declare const VerifyResponseFilterSensitiveLog: (obj: VerifyResponse) => any;
1361
-
1362
- export declare const VerifyMacRequestFilterSensitiveLog: (obj: VerifyMacRequest) => any;
1363
-
1364
- export declare const VerifyMacResponseFilterSensitiveLog: (obj: VerifyMacResponse) => any;
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { KMSServiceException as __BaseException } from "./KMSServiceException";
3
+ export declare enum AlgorithmSpec {
4
+ RSAES_OAEP_SHA_1 = "RSAES_OAEP_SHA_1",
5
+ RSAES_OAEP_SHA_256 = "RSAES_OAEP_SHA_256",
6
+ RSAES_PKCS1_V1_5 = "RSAES_PKCS1_V1_5",
7
+ }
8
+
9
+ export interface AliasListEntry {
10
+ AliasName?: string;
11
+
12
+ AliasArn?: string;
13
+
14
+ TargetKeyId?: string;
15
+
16
+ CreationDate?: Date;
17
+
18
+ LastUpdatedDate?: Date;
19
+ }
20
+
21
+ export declare class AlreadyExistsException extends __BaseException {
22
+ readonly name: "AlreadyExistsException";
23
+ readonly $fault: "client";
24
+
25
+ constructor(
26
+ opts: __ExceptionOptionType<AlreadyExistsException, __BaseException>
27
+ );
28
+ }
29
+ export interface CancelKeyDeletionRequest {
30
+ KeyId: string | undefined;
31
+ }
32
+ export interface CancelKeyDeletionResponse {
33
+ KeyId?: string;
34
+ }
35
+
36
+ export declare class DependencyTimeoutException extends __BaseException {
37
+ readonly name: "DependencyTimeoutException";
38
+ readonly $fault: "server";
39
+
40
+ constructor(
41
+ opts: __ExceptionOptionType<DependencyTimeoutException, __BaseException>
42
+ );
43
+ }
44
+
45
+ export declare class InvalidArnException extends __BaseException {
46
+ readonly name: "InvalidArnException";
47
+ readonly $fault: "client";
48
+
49
+ constructor(
50
+ opts: __ExceptionOptionType<InvalidArnException, __BaseException>
51
+ );
52
+ }
53
+
54
+ export declare class KMSInternalException extends __BaseException {
55
+ readonly name: "KMSInternalException";
56
+ readonly $fault: "server";
57
+
58
+ constructor(
59
+ opts: __ExceptionOptionType<KMSInternalException, __BaseException>
60
+ );
61
+ }
62
+
63
+ export declare class KMSInvalidStateException extends __BaseException {
64
+ readonly name: "KMSInvalidStateException";
65
+ readonly $fault: "client";
66
+
67
+ constructor(
68
+ opts: __ExceptionOptionType<KMSInvalidStateException, __BaseException>
69
+ );
70
+ }
71
+
72
+ export declare class NotFoundException extends __BaseException {
73
+ readonly name: "NotFoundException";
74
+ readonly $fault: "client";
75
+
76
+ constructor(opts: __ExceptionOptionType<NotFoundException, __BaseException>);
77
+ }
78
+
79
+ export declare class CloudHsmClusterInUseException extends __BaseException {
80
+ readonly name: "CloudHsmClusterInUseException";
81
+ readonly $fault: "client";
82
+
83
+ constructor(
84
+ opts: __ExceptionOptionType<CloudHsmClusterInUseException, __BaseException>
85
+ );
86
+ }
87
+
88
+ export declare class CloudHsmClusterInvalidConfigurationException extends __BaseException {
89
+ readonly name: "CloudHsmClusterInvalidConfigurationException";
90
+ readonly $fault: "client";
91
+
92
+ constructor(
93
+ opts: __ExceptionOptionType<
94
+ CloudHsmClusterInvalidConfigurationException,
95
+ __BaseException
96
+ >
97
+ );
98
+ }
99
+
100
+ export declare class CloudHsmClusterNotActiveException extends __BaseException {
101
+ readonly name: "CloudHsmClusterNotActiveException";
102
+ readonly $fault: "client";
103
+
104
+ constructor(
105
+ opts: __ExceptionOptionType<
106
+ CloudHsmClusterNotActiveException,
107
+ __BaseException
108
+ >
109
+ );
110
+ }
111
+
112
+ export declare class CloudHsmClusterNotFoundException extends __BaseException {
113
+ readonly name: "CloudHsmClusterNotFoundException";
114
+ readonly $fault: "client";
115
+
116
+ constructor(
117
+ opts: __ExceptionOptionType<
118
+ CloudHsmClusterNotFoundException,
119
+ __BaseException
120
+ >
121
+ );
122
+ }
123
+
124
+ export declare class CloudHsmClusterNotRelatedException extends __BaseException {
125
+ readonly name: "CloudHsmClusterNotRelatedException";
126
+ readonly $fault: "client";
127
+
128
+ constructor(
129
+ opts: __ExceptionOptionType<
130
+ CloudHsmClusterNotRelatedException,
131
+ __BaseException
132
+ >
133
+ );
134
+ }
135
+ export interface ConnectCustomKeyStoreRequest {
136
+ CustomKeyStoreId: string | undefined;
137
+ }
138
+ export interface ConnectCustomKeyStoreResponse {}
139
+
140
+ export declare class CustomKeyStoreInvalidStateException extends __BaseException {
141
+ readonly name: "CustomKeyStoreInvalidStateException";
142
+ readonly $fault: "client";
143
+
144
+ constructor(
145
+ opts: __ExceptionOptionType<
146
+ CustomKeyStoreInvalidStateException,
147
+ __BaseException
148
+ >
149
+ );
150
+ }
151
+
152
+ export declare class CustomKeyStoreNotFoundException extends __BaseException {
153
+ readonly name: "CustomKeyStoreNotFoundException";
154
+ readonly $fault: "client";
155
+
156
+ constructor(
157
+ opts: __ExceptionOptionType<
158
+ CustomKeyStoreNotFoundException,
159
+ __BaseException
160
+ >
161
+ );
162
+ }
163
+ export declare enum ConnectionErrorCodeType {
164
+ CLUSTER_NOT_FOUND = "CLUSTER_NOT_FOUND",
165
+ INSUFFICIENT_CLOUDHSM_HSMS = "INSUFFICIENT_CLOUDHSM_HSMS",
166
+ INSUFFICIENT_FREE_ADDRESSES_IN_SUBNET = "INSUFFICIENT_FREE_ADDRESSES_IN_SUBNET",
167
+ INTERNAL_ERROR = "INTERNAL_ERROR",
168
+ INVALID_CREDENTIALS = "INVALID_CREDENTIALS",
169
+ NETWORK_ERRORS = "NETWORK_ERRORS",
170
+ SUBNET_NOT_FOUND = "SUBNET_NOT_FOUND",
171
+ USER_LOCKED_OUT = "USER_LOCKED_OUT",
172
+ USER_LOGGED_IN = "USER_LOGGED_IN",
173
+ USER_NOT_FOUND = "USER_NOT_FOUND",
174
+ }
175
+ export declare enum ConnectionStateType {
176
+ CONNECTED = "CONNECTED",
177
+ CONNECTING = "CONNECTING",
178
+ DISCONNECTED = "DISCONNECTED",
179
+ DISCONNECTING = "DISCONNECTING",
180
+ FAILED = "FAILED",
181
+ }
182
+ export interface CreateAliasRequest {
183
+ AliasName: string | undefined;
184
+
185
+ TargetKeyId: string | undefined;
186
+ }
187
+
188
+ export declare class InvalidAliasNameException extends __BaseException {
189
+ readonly name: "InvalidAliasNameException";
190
+ readonly $fault: "client";
191
+
192
+ constructor(
193
+ opts: __ExceptionOptionType<InvalidAliasNameException, __BaseException>
194
+ );
195
+ }
196
+
197
+ export declare class LimitExceededException extends __BaseException {
198
+ readonly name: "LimitExceededException";
199
+ readonly $fault: "client";
200
+
201
+ constructor(
202
+ opts: __ExceptionOptionType<LimitExceededException, __BaseException>
203
+ );
204
+ }
205
+ export interface CreateCustomKeyStoreRequest {
206
+ CustomKeyStoreName: string | undefined;
207
+
208
+ CloudHsmClusterId?: string;
209
+
210
+ TrustAnchorCertificate?: string;
211
+
212
+ KeyStorePassword?: string;
213
+ }
214
+ export interface CreateCustomKeyStoreResponse {
215
+ CustomKeyStoreId?: string;
216
+ }
217
+
218
+ export declare class CustomKeyStoreNameInUseException extends __BaseException {
219
+ readonly name: "CustomKeyStoreNameInUseException";
220
+ readonly $fault: "client";
221
+
222
+ constructor(
223
+ opts: __ExceptionOptionType<
224
+ CustomKeyStoreNameInUseException,
225
+ __BaseException
226
+ >
227
+ );
228
+ }
229
+
230
+ export declare class IncorrectTrustAnchorException extends __BaseException {
231
+ readonly name: "IncorrectTrustAnchorException";
232
+ readonly $fault: "client";
233
+
234
+ constructor(
235
+ opts: __ExceptionOptionType<IncorrectTrustAnchorException, __BaseException>
236
+ );
237
+ }
238
+
239
+ export interface GrantConstraints {
240
+ EncryptionContextSubset?: Record<string, string>;
241
+
242
+ EncryptionContextEquals?: Record<string, string>;
243
+ }
244
+ export declare enum GrantOperation {
245
+ CreateGrant = "CreateGrant",
246
+ Decrypt = "Decrypt",
247
+ DescribeKey = "DescribeKey",
248
+ Encrypt = "Encrypt",
249
+ GenerateDataKey = "GenerateDataKey",
250
+ GenerateDataKeyPair = "GenerateDataKeyPair",
251
+ GenerateDataKeyPairWithoutPlaintext = "GenerateDataKeyPairWithoutPlaintext",
252
+ GenerateDataKeyWithoutPlaintext = "GenerateDataKeyWithoutPlaintext",
253
+ GenerateMac = "GenerateMac",
254
+ GetPublicKey = "GetPublicKey",
255
+ ReEncryptFrom = "ReEncryptFrom",
256
+ ReEncryptTo = "ReEncryptTo",
257
+ RetireGrant = "RetireGrant",
258
+ Sign = "Sign",
259
+ Verify = "Verify",
260
+ VerifyMac = "VerifyMac",
261
+ }
262
+ export interface CreateGrantRequest {
263
+ KeyId: string | undefined;
264
+
265
+ GranteePrincipal: string | undefined;
266
+
267
+ RetiringPrincipal?: string;
268
+
269
+ Operations: (GrantOperation | string)[] | undefined;
270
+
271
+ Constraints?: GrantConstraints;
272
+
273
+ GrantTokens?: string[];
274
+
275
+ Name?: string;
276
+ }
277
+ export interface CreateGrantResponse {
278
+ GrantToken?: string;
279
+
280
+ GrantId?: string;
281
+ }
282
+
283
+ export declare class DisabledException extends __BaseException {
284
+ readonly name: "DisabledException";
285
+ readonly $fault: "client";
286
+
287
+ constructor(opts: __ExceptionOptionType<DisabledException, __BaseException>);
288
+ }
289
+
290
+ export declare class InvalidGrantTokenException extends __BaseException {
291
+ readonly name: "InvalidGrantTokenException";
292
+ readonly $fault: "client";
293
+
294
+ constructor(
295
+ opts: __ExceptionOptionType<InvalidGrantTokenException, __BaseException>
296
+ );
297
+ }
298
+ export declare enum CustomerMasterKeySpec {
299
+ ECC_NIST_P256 = "ECC_NIST_P256",
300
+ ECC_NIST_P384 = "ECC_NIST_P384",
301
+ ECC_NIST_P521 = "ECC_NIST_P521",
302
+ ECC_SECG_P256K1 = "ECC_SECG_P256K1",
303
+ HMAC_224 = "HMAC_224",
304
+ HMAC_256 = "HMAC_256",
305
+ HMAC_384 = "HMAC_384",
306
+ HMAC_512 = "HMAC_512",
307
+ RSA_2048 = "RSA_2048",
308
+ RSA_3072 = "RSA_3072",
309
+ RSA_4096 = "RSA_4096",
310
+ SM2 = "SM2",
311
+ SYMMETRIC_DEFAULT = "SYMMETRIC_DEFAULT",
312
+ }
313
+ export declare enum KeySpec {
314
+ ECC_NIST_P256 = "ECC_NIST_P256",
315
+ ECC_NIST_P384 = "ECC_NIST_P384",
316
+ ECC_NIST_P521 = "ECC_NIST_P521",
317
+ ECC_SECG_P256K1 = "ECC_SECG_P256K1",
318
+ HMAC_224 = "HMAC_224",
319
+ HMAC_256 = "HMAC_256",
320
+ HMAC_384 = "HMAC_384",
321
+ HMAC_512 = "HMAC_512",
322
+ RSA_2048 = "RSA_2048",
323
+ RSA_3072 = "RSA_3072",
324
+ RSA_4096 = "RSA_4096",
325
+ SM2 = "SM2",
326
+ SYMMETRIC_DEFAULT = "SYMMETRIC_DEFAULT",
327
+ }
328
+ export declare enum KeyUsageType {
329
+ ENCRYPT_DECRYPT = "ENCRYPT_DECRYPT",
330
+ GENERATE_VERIFY_MAC = "GENERATE_VERIFY_MAC",
331
+ SIGN_VERIFY = "SIGN_VERIFY",
332
+ }
333
+ export declare enum OriginType {
334
+ AWS_CLOUDHSM = "AWS_CLOUDHSM",
335
+ AWS_KMS = "AWS_KMS",
336
+ EXTERNAL = "EXTERNAL",
337
+ }
338
+
339
+ export interface Tag {
340
+ TagKey: string | undefined;
341
+
342
+ TagValue: string | undefined;
343
+ }
344
+ export interface CreateKeyRequest {
345
+ Policy?: string;
346
+
347
+ Description?: string;
348
+
349
+ KeyUsage?: KeyUsageType | string;
350
+
351
+ CustomerMasterKeySpec?: CustomerMasterKeySpec | string;
352
+
353
+ KeySpec?: KeySpec | string;
354
+
355
+ Origin?: OriginType | string;
356
+
357
+ CustomKeyStoreId?: string;
358
+
359
+ BypassPolicyLockoutSafetyCheck?: boolean;
360
+
361
+ Tags?: Tag[];
362
+
363
+ MultiRegion?: boolean;
364
+ }
365
+ export declare enum EncryptionAlgorithmSpec {
366
+ RSAES_OAEP_SHA_1 = "RSAES_OAEP_SHA_1",
367
+ RSAES_OAEP_SHA_256 = "RSAES_OAEP_SHA_256",
368
+ SM2PKE = "SM2PKE",
369
+ SYMMETRIC_DEFAULT = "SYMMETRIC_DEFAULT",
370
+ }
371
+ export declare enum ExpirationModelType {
372
+ KEY_MATERIAL_DOES_NOT_EXPIRE = "KEY_MATERIAL_DOES_NOT_EXPIRE",
373
+ KEY_MATERIAL_EXPIRES = "KEY_MATERIAL_EXPIRES",
374
+ }
375
+ export declare enum KeyManagerType {
376
+ AWS = "AWS",
377
+ CUSTOMER = "CUSTOMER",
378
+ }
379
+ export declare enum KeyState {
380
+ Creating = "Creating",
381
+ Disabled = "Disabled",
382
+ Enabled = "Enabled",
383
+ PendingDeletion = "PendingDeletion",
384
+ PendingImport = "PendingImport",
385
+ PendingReplicaDeletion = "PendingReplicaDeletion",
386
+ Unavailable = "Unavailable",
387
+ Updating = "Updating",
388
+ }
389
+ export declare enum MacAlgorithmSpec {
390
+ HMAC_SHA_224 = "HMAC_SHA_224",
391
+ HMAC_SHA_256 = "HMAC_SHA_256",
392
+ HMAC_SHA_384 = "HMAC_SHA_384",
393
+ HMAC_SHA_512 = "HMAC_SHA_512",
394
+ }
395
+ export declare enum MultiRegionKeyType {
396
+ PRIMARY = "PRIMARY",
397
+ REPLICA = "REPLICA",
398
+ }
399
+
400
+ export interface MultiRegionKey {
401
+ Arn?: string;
402
+
403
+ Region?: string;
404
+ }
405
+
406
+ export interface MultiRegionConfiguration {
407
+ MultiRegionKeyType?: MultiRegionKeyType | string;
408
+
409
+ PrimaryKey?: MultiRegionKey;
410
+
411
+ ReplicaKeys?: MultiRegionKey[];
412
+ }
413
+ export declare enum SigningAlgorithmSpec {
414
+ ECDSA_SHA_256 = "ECDSA_SHA_256",
415
+ ECDSA_SHA_384 = "ECDSA_SHA_384",
416
+ ECDSA_SHA_512 = "ECDSA_SHA_512",
417
+ RSASSA_PKCS1_V1_5_SHA_256 = "RSASSA_PKCS1_V1_5_SHA_256",
418
+ RSASSA_PKCS1_V1_5_SHA_384 = "RSASSA_PKCS1_V1_5_SHA_384",
419
+ RSASSA_PKCS1_V1_5_SHA_512 = "RSASSA_PKCS1_V1_5_SHA_512",
420
+ RSASSA_PSS_SHA_256 = "RSASSA_PSS_SHA_256",
421
+ RSASSA_PSS_SHA_384 = "RSASSA_PSS_SHA_384",
422
+ RSASSA_PSS_SHA_512 = "RSASSA_PSS_SHA_512",
423
+ SM2DSA = "SM2DSA",
424
+ }
425
+
426
+ export interface KeyMetadata {
427
+ AWSAccountId?: string;
428
+
429
+ KeyId: string | undefined;
430
+
431
+ Arn?: string;
432
+
433
+ CreationDate?: Date;
434
+
435
+ Enabled?: boolean;
436
+
437
+ Description?: string;
438
+
439
+ KeyUsage?: KeyUsageType | string;
440
+
441
+ KeyState?: KeyState | string;
442
+
443
+ DeletionDate?: Date;
444
+
445
+ ValidTo?: Date;
446
+
447
+ Origin?: OriginType | string;
448
+
449
+ CustomKeyStoreId?: string;
450
+
451
+ CloudHsmClusterId?: string;
452
+
453
+ ExpirationModel?: ExpirationModelType | string;
454
+
455
+ KeyManager?: KeyManagerType | string;
456
+
457
+ CustomerMasterKeySpec?: CustomerMasterKeySpec | string;
458
+
459
+ KeySpec?: KeySpec | string;
460
+
461
+ EncryptionAlgorithms?: (EncryptionAlgorithmSpec | string)[];
462
+
463
+ SigningAlgorithms?: (SigningAlgorithmSpec | string)[];
464
+
465
+ MultiRegion?: boolean;
466
+
467
+ MultiRegionConfiguration?: MultiRegionConfiguration;
468
+
469
+ PendingDeletionWindowInDays?: number;
470
+
471
+ MacAlgorithms?: (MacAlgorithmSpec | string)[];
472
+ }
473
+ export interface CreateKeyResponse {
474
+ KeyMetadata?: KeyMetadata;
475
+ }
476
+
477
+ export declare class MalformedPolicyDocumentException extends __BaseException {
478
+ readonly name: "MalformedPolicyDocumentException";
479
+ readonly $fault: "client";
480
+
481
+ constructor(
482
+ opts: __ExceptionOptionType<
483
+ MalformedPolicyDocumentException,
484
+ __BaseException
485
+ >
486
+ );
487
+ }
488
+
489
+ export declare class TagException extends __BaseException {
490
+ readonly name: "TagException";
491
+ readonly $fault: "client";
492
+
493
+ constructor(opts: __ExceptionOptionType<TagException, __BaseException>);
494
+ }
495
+
496
+ export declare class UnsupportedOperationException extends __BaseException {
497
+ readonly name: "UnsupportedOperationException";
498
+ readonly $fault: "client";
499
+
500
+ constructor(
501
+ opts: __ExceptionOptionType<UnsupportedOperationException, __BaseException>
502
+ );
503
+ }
504
+
505
+ export declare class CustomKeyStoreHasCMKsException extends __BaseException {
506
+ readonly name: "CustomKeyStoreHasCMKsException";
507
+ readonly $fault: "client";
508
+
509
+ constructor(
510
+ opts: __ExceptionOptionType<CustomKeyStoreHasCMKsException, __BaseException>
511
+ );
512
+ }
513
+
514
+ export interface CustomKeyStoresListEntry {
515
+ CustomKeyStoreId?: string;
516
+
517
+ CustomKeyStoreName?: string;
518
+
519
+ CloudHsmClusterId?: string;
520
+
521
+ TrustAnchorCertificate?: string;
522
+
523
+ ConnectionState?: ConnectionStateType | string;
524
+
525
+ ConnectionErrorCode?: ConnectionErrorCodeType | string;
526
+
527
+ CreationDate?: Date;
528
+ }
529
+ export declare enum DataKeyPairSpec {
530
+ ECC_NIST_P256 = "ECC_NIST_P256",
531
+ ECC_NIST_P384 = "ECC_NIST_P384",
532
+ ECC_NIST_P521 = "ECC_NIST_P521",
533
+ ECC_SECG_P256K1 = "ECC_SECG_P256K1",
534
+ RSA_2048 = "RSA_2048",
535
+ RSA_3072 = "RSA_3072",
536
+ RSA_4096 = "RSA_4096",
537
+ SM2 = "SM2",
538
+ }
539
+ export declare enum DataKeySpec {
540
+ AES_128 = "AES_128",
541
+ AES_256 = "AES_256",
542
+ }
543
+ export interface DecryptRequest {
544
+ CiphertextBlob: Uint8Array | undefined;
545
+
546
+ EncryptionContext?: Record<string, string>;
547
+
548
+ GrantTokens?: string[];
549
+
550
+ KeyId?: string;
551
+
552
+ EncryptionAlgorithm?: EncryptionAlgorithmSpec | string;
553
+ }
554
+ export interface DecryptResponse {
555
+ KeyId?: string;
556
+
557
+ Plaintext?: Uint8Array;
558
+
559
+ EncryptionAlgorithm?: EncryptionAlgorithmSpec | string;
560
+ }
561
+
562
+ export declare class IncorrectKeyException extends __BaseException {
563
+ readonly name: "IncorrectKeyException";
564
+ readonly $fault: "client";
565
+
566
+ constructor(
567
+ opts: __ExceptionOptionType<IncorrectKeyException, __BaseException>
568
+ );
569
+ }
570
+
571
+ export declare class InvalidCiphertextException extends __BaseException {
572
+ readonly name: "InvalidCiphertextException";
573
+ readonly $fault: "client";
574
+
575
+ constructor(
576
+ opts: __ExceptionOptionType<InvalidCiphertextException, __BaseException>
577
+ );
578
+ }
579
+
580
+ export declare class InvalidKeyUsageException extends __BaseException {
581
+ readonly name: "InvalidKeyUsageException";
582
+ readonly $fault: "client";
583
+
584
+ constructor(
585
+ opts: __ExceptionOptionType<InvalidKeyUsageException, __BaseException>
586
+ );
587
+ }
588
+
589
+ export declare class KeyUnavailableException extends __BaseException {
590
+ readonly name: "KeyUnavailableException";
591
+ readonly $fault: "server";
592
+
593
+ constructor(
594
+ opts: __ExceptionOptionType<KeyUnavailableException, __BaseException>
595
+ );
596
+ }
597
+ export interface DeleteAliasRequest {
598
+ AliasName: string | undefined;
599
+ }
600
+ export interface DeleteCustomKeyStoreRequest {
601
+ CustomKeyStoreId: string | undefined;
602
+ }
603
+ export interface DeleteCustomKeyStoreResponse {}
604
+ export interface DeleteImportedKeyMaterialRequest {
605
+ KeyId: string | undefined;
606
+ }
607
+ export interface DescribeCustomKeyStoresRequest {
608
+ CustomKeyStoreId?: string;
609
+
610
+ CustomKeyStoreName?: string;
611
+
612
+ Limit?: number;
613
+
614
+ Marker?: string;
615
+ }
616
+ export interface DescribeCustomKeyStoresResponse {
617
+ CustomKeyStores?: CustomKeyStoresListEntry[];
618
+
619
+ NextMarker?: string;
620
+
621
+ Truncated?: boolean;
622
+ }
623
+
624
+ export declare class InvalidMarkerException extends __BaseException {
625
+ readonly name: "InvalidMarkerException";
626
+ readonly $fault: "client";
627
+
628
+ constructor(
629
+ opts: __ExceptionOptionType<InvalidMarkerException, __BaseException>
630
+ );
631
+ }
632
+ export interface DescribeKeyRequest {
633
+ KeyId: string | undefined;
634
+
635
+ GrantTokens?: string[];
636
+ }
637
+ export interface DescribeKeyResponse {
638
+ KeyMetadata?: KeyMetadata;
639
+ }
640
+ export interface DisableKeyRequest {
641
+ KeyId: string | undefined;
642
+ }
643
+ export interface DisableKeyRotationRequest {
644
+ KeyId: string | undefined;
645
+ }
646
+ export interface DisconnectCustomKeyStoreRequest {
647
+ CustomKeyStoreId: string | undefined;
648
+ }
649
+ export interface DisconnectCustomKeyStoreResponse {}
650
+ export interface EnableKeyRequest {
651
+ KeyId: string | undefined;
652
+ }
653
+ export interface EnableKeyRotationRequest {
654
+ KeyId: string | undefined;
655
+ }
656
+ export interface EncryptRequest {
657
+ KeyId: string | undefined;
658
+
659
+ Plaintext: Uint8Array | undefined;
660
+
661
+ EncryptionContext?: Record<string, string>;
662
+
663
+ GrantTokens?: string[];
664
+
665
+ EncryptionAlgorithm?: EncryptionAlgorithmSpec | string;
666
+ }
667
+ export interface EncryptResponse {
668
+ CiphertextBlob?: Uint8Array;
669
+
670
+ KeyId?: string;
671
+
672
+ EncryptionAlgorithm?: EncryptionAlgorithmSpec | string;
673
+ }
674
+
675
+ export declare class ExpiredImportTokenException extends __BaseException {
676
+ readonly name: "ExpiredImportTokenException";
677
+ readonly $fault: "client";
678
+
679
+ constructor(
680
+ opts: __ExceptionOptionType<ExpiredImportTokenException, __BaseException>
681
+ );
682
+ }
683
+ export interface GenerateDataKeyRequest {
684
+ KeyId: string | undefined;
685
+
686
+ EncryptionContext?: Record<string, string>;
687
+
688
+ NumberOfBytes?: number;
689
+
690
+ KeySpec?: DataKeySpec | string;
691
+
692
+ GrantTokens?: string[];
693
+ }
694
+ export interface GenerateDataKeyResponse {
695
+ CiphertextBlob?: Uint8Array;
696
+
697
+ Plaintext?: Uint8Array;
698
+
699
+ KeyId?: string;
700
+ }
701
+ export interface GenerateDataKeyPairRequest {
702
+ EncryptionContext?: Record<string, string>;
703
+
704
+ KeyId: string | undefined;
705
+
706
+ KeyPairSpec: DataKeyPairSpec | string | undefined;
707
+
708
+ GrantTokens?: string[];
709
+ }
710
+ export interface GenerateDataKeyPairResponse {
711
+ PrivateKeyCiphertextBlob?: Uint8Array;
712
+
713
+ PrivateKeyPlaintext?: Uint8Array;
714
+
715
+ PublicKey?: Uint8Array;
716
+
717
+ KeyId?: string;
718
+
719
+ KeyPairSpec?: DataKeyPairSpec | string;
720
+ }
721
+ export interface GenerateDataKeyPairWithoutPlaintextRequest {
722
+ EncryptionContext?: Record<string, string>;
723
+
724
+ KeyId: string | undefined;
725
+
726
+ KeyPairSpec: DataKeyPairSpec | string | undefined;
727
+
728
+ GrantTokens?: string[];
729
+ }
730
+ export interface GenerateDataKeyPairWithoutPlaintextResponse {
731
+ PrivateKeyCiphertextBlob?: Uint8Array;
732
+
733
+ PublicKey?: Uint8Array;
734
+
735
+ KeyId?: string;
736
+
737
+ KeyPairSpec?: DataKeyPairSpec | string;
738
+ }
739
+ export interface GenerateDataKeyWithoutPlaintextRequest {
740
+ KeyId: string | undefined;
741
+
742
+ EncryptionContext?: Record<string, string>;
743
+
744
+ KeySpec?: DataKeySpec | string;
745
+
746
+ NumberOfBytes?: number;
747
+
748
+ GrantTokens?: string[];
749
+ }
750
+ export interface GenerateDataKeyWithoutPlaintextResponse {
751
+ CiphertextBlob?: Uint8Array;
752
+
753
+ KeyId?: string;
754
+ }
755
+ export interface GenerateMacRequest {
756
+ Message: Uint8Array | undefined;
757
+
758
+ KeyId: string | undefined;
759
+
760
+ MacAlgorithm: MacAlgorithmSpec | string | undefined;
761
+
762
+ GrantTokens?: string[];
763
+ }
764
+ export interface GenerateMacResponse {
765
+ Mac?: Uint8Array;
766
+
767
+ MacAlgorithm?: MacAlgorithmSpec | string;
768
+
769
+ KeyId?: string;
770
+ }
771
+ export interface GenerateRandomRequest {
772
+ NumberOfBytes?: number;
773
+
774
+ CustomKeyStoreId?: string;
775
+ }
776
+ export interface GenerateRandomResponse {
777
+ Plaintext?: Uint8Array;
778
+ }
779
+ export interface GetKeyPolicyRequest {
780
+ KeyId: string | undefined;
781
+
782
+ PolicyName: string | undefined;
783
+ }
784
+ export interface GetKeyPolicyResponse {
785
+ Policy?: string;
786
+ }
787
+ export interface GetKeyRotationStatusRequest {
788
+ KeyId: string | undefined;
789
+ }
790
+ export interface GetKeyRotationStatusResponse {
791
+ KeyRotationEnabled?: boolean;
792
+ }
793
+ export declare enum WrappingKeySpec {
794
+ RSA_2048 = "RSA_2048",
795
+ }
796
+ export interface GetParametersForImportRequest {
797
+ KeyId: string | undefined;
798
+
799
+ WrappingAlgorithm: AlgorithmSpec | string | undefined;
800
+
801
+ WrappingKeySpec: WrappingKeySpec | string | undefined;
802
+ }
803
+ export interface GetParametersForImportResponse {
804
+ KeyId?: string;
805
+
806
+ ImportToken?: Uint8Array;
807
+
808
+ PublicKey?: Uint8Array;
809
+
810
+ ParametersValidTo?: Date;
811
+ }
812
+ export interface GetPublicKeyRequest {
813
+ KeyId: string | undefined;
814
+
815
+ GrantTokens?: string[];
816
+ }
817
+ export interface GetPublicKeyResponse {
818
+ KeyId?: string;
819
+
820
+ PublicKey?: Uint8Array;
821
+
822
+ CustomerMasterKeySpec?: CustomerMasterKeySpec | string;
823
+
824
+ KeySpec?: KeySpec | string;
825
+
826
+ KeyUsage?: KeyUsageType | string;
827
+
828
+ EncryptionAlgorithms?: (EncryptionAlgorithmSpec | string)[];
829
+
830
+ SigningAlgorithms?: (SigningAlgorithmSpec | string)[];
831
+ }
832
+
833
+ export interface GrantListEntry {
834
+ KeyId?: string;
835
+
836
+ GrantId?: string;
837
+
838
+ Name?: string;
839
+
840
+ CreationDate?: Date;
841
+
842
+ GranteePrincipal?: string;
843
+
844
+ RetiringPrincipal?: string;
845
+
846
+ IssuingAccount?: string;
847
+
848
+ Operations?: (GrantOperation | string)[];
849
+
850
+ Constraints?: GrantConstraints;
851
+ }
852
+ export interface ImportKeyMaterialRequest {
853
+ KeyId: string | undefined;
854
+
855
+ ImportToken: Uint8Array | undefined;
856
+
857
+ EncryptedKeyMaterial: Uint8Array | undefined;
858
+
859
+ ValidTo?: Date;
860
+
861
+ ExpirationModel?: ExpirationModelType | string;
862
+ }
863
+ export interface ImportKeyMaterialResponse {}
864
+
865
+ export declare class IncorrectKeyMaterialException extends __BaseException {
866
+ readonly name: "IncorrectKeyMaterialException";
867
+ readonly $fault: "client";
868
+
869
+ constructor(
870
+ opts: __ExceptionOptionType<IncorrectKeyMaterialException, __BaseException>
871
+ );
872
+ }
873
+
874
+ export declare class InvalidImportTokenException extends __BaseException {
875
+ readonly name: "InvalidImportTokenException";
876
+ readonly $fault: "client";
877
+
878
+ constructor(
879
+ opts: __ExceptionOptionType<InvalidImportTokenException, __BaseException>
880
+ );
881
+ }
882
+
883
+ export declare class InvalidGrantIdException extends __BaseException {
884
+ readonly name: "InvalidGrantIdException";
885
+ readonly $fault: "client";
886
+
887
+ constructor(
888
+ opts: __ExceptionOptionType<InvalidGrantIdException, __BaseException>
889
+ );
890
+ }
891
+
892
+ export interface KeyListEntry {
893
+ KeyId?: string;
894
+
895
+ KeyArn?: string;
896
+ }
897
+
898
+ export declare class KMSInvalidMacException extends __BaseException {
899
+ readonly name: "KMSInvalidMacException";
900
+ readonly $fault: "client";
901
+
902
+ constructor(
903
+ opts: __ExceptionOptionType<KMSInvalidMacException, __BaseException>
904
+ );
905
+ }
906
+
907
+ export declare class KMSInvalidSignatureException extends __BaseException {
908
+ readonly name: "KMSInvalidSignatureException";
909
+ readonly $fault: "client";
910
+
911
+ constructor(
912
+ opts: __ExceptionOptionType<KMSInvalidSignatureException, __BaseException>
913
+ );
914
+ }
915
+ export interface ListAliasesRequest {
916
+ KeyId?: string;
917
+
918
+ Limit?: number;
919
+
920
+ Marker?: string;
921
+ }
922
+ export interface ListAliasesResponse {
923
+ Aliases?: AliasListEntry[];
924
+
925
+ NextMarker?: string;
926
+
927
+ Truncated?: boolean;
928
+ }
929
+ export interface ListGrantsRequest {
930
+ Limit?: number;
931
+
932
+ Marker?: string;
933
+
934
+ KeyId: string | undefined;
935
+
936
+ GrantId?: string;
937
+
938
+ GranteePrincipal?: string;
939
+ }
940
+ export interface ListGrantsResponse {
941
+ Grants?: GrantListEntry[];
942
+
943
+ NextMarker?: string;
944
+
945
+ Truncated?: boolean;
946
+ }
947
+ export interface ListKeyPoliciesRequest {
948
+ KeyId: string | undefined;
949
+
950
+ Limit?: number;
951
+
952
+ Marker?: string;
953
+ }
954
+ export interface ListKeyPoliciesResponse {
955
+ PolicyNames?: string[];
956
+
957
+ NextMarker?: string;
958
+
959
+ Truncated?: boolean;
960
+ }
961
+ export interface ListKeysRequest {
962
+ Limit?: number;
963
+
964
+ Marker?: string;
965
+ }
966
+ export interface ListKeysResponse {
967
+ Keys?: KeyListEntry[];
968
+
969
+ NextMarker?: string;
970
+
971
+ Truncated?: boolean;
972
+ }
973
+ export interface ListResourceTagsRequest {
974
+ KeyId: string | undefined;
975
+
976
+ Limit?: number;
977
+
978
+ Marker?: string;
979
+ }
980
+ export interface ListResourceTagsResponse {
981
+ Tags?: Tag[];
982
+
983
+ NextMarker?: string;
984
+
985
+ Truncated?: boolean;
986
+ }
987
+ export interface ListRetirableGrantsRequest {
988
+ Limit?: number;
989
+
990
+ Marker?: string;
991
+
992
+ RetiringPrincipal: string | undefined;
993
+ }
994
+ export declare enum MessageType {
995
+ DIGEST = "DIGEST",
996
+ RAW = "RAW",
997
+ }
998
+ export interface PutKeyPolicyRequest {
999
+ KeyId: string | undefined;
1000
+
1001
+ PolicyName: string | undefined;
1002
+
1003
+ Policy: string | undefined;
1004
+
1005
+ BypassPolicyLockoutSafetyCheck?: boolean;
1006
+ }
1007
+ export interface ReEncryptRequest {
1008
+ CiphertextBlob: Uint8Array | undefined;
1009
+
1010
+ SourceEncryptionContext?: Record<string, string>;
1011
+
1012
+ SourceKeyId?: string;
1013
+
1014
+ DestinationKeyId: string | undefined;
1015
+
1016
+ DestinationEncryptionContext?: Record<string, string>;
1017
+
1018
+ SourceEncryptionAlgorithm?: EncryptionAlgorithmSpec | string;
1019
+
1020
+ DestinationEncryptionAlgorithm?: EncryptionAlgorithmSpec | string;
1021
+
1022
+ GrantTokens?: string[];
1023
+ }
1024
+ export interface ReEncryptResponse {
1025
+ CiphertextBlob?: Uint8Array;
1026
+
1027
+ SourceKeyId?: string;
1028
+
1029
+ KeyId?: string;
1030
+
1031
+ SourceEncryptionAlgorithm?: EncryptionAlgorithmSpec | string;
1032
+
1033
+ DestinationEncryptionAlgorithm?: EncryptionAlgorithmSpec | string;
1034
+ }
1035
+ export interface ReplicateKeyRequest {
1036
+ KeyId: string | undefined;
1037
+
1038
+ ReplicaRegion: string | undefined;
1039
+
1040
+ Policy?: string;
1041
+
1042
+ BypassPolicyLockoutSafetyCheck?: boolean;
1043
+
1044
+ Description?: string;
1045
+
1046
+ Tags?: Tag[];
1047
+ }
1048
+ export interface ReplicateKeyResponse {
1049
+ ReplicaKeyMetadata?: KeyMetadata;
1050
+
1051
+ ReplicaPolicy?: string;
1052
+
1053
+ ReplicaTags?: Tag[];
1054
+ }
1055
+ export interface RetireGrantRequest {
1056
+ GrantToken?: string;
1057
+
1058
+ KeyId?: string;
1059
+
1060
+ GrantId?: string;
1061
+ }
1062
+ export interface RevokeGrantRequest {
1063
+ KeyId: string | undefined;
1064
+
1065
+ GrantId: string | undefined;
1066
+ }
1067
+ export interface ScheduleKeyDeletionRequest {
1068
+ KeyId: string | undefined;
1069
+
1070
+ PendingWindowInDays?: number;
1071
+ }
1072
+ export interface ScheduleKeyDeletionResponse {
1073
+ KeyId?: string;
1074
+
1075
+ DeletionDate?: Date;
1076
+
1077
+ KeyState?: KeyState | string;
1078
+
1079
+ PendingWindowInDays?: number;
1080
+ }
1081
+ export interface SignRequest {
1082
+ KeyId: string | undefined;
1083
+
1084
+ Message: Uint8Array | undefined;
1085
+
1086
+ MessageType?: MessageType | string;
1087
+
1088
+ GrantTokens?: string[];
1089
+
1090
+ SigningAlgorithm: SigningAlgorithmSpec | string | undefined;
1091
+ }
1092
+ export interface SignResponse {
1093
+ KeyId?: string;
1094
+
1095
+ Signature?: Uint8Array;
1096
+
1097
+ SigningAlgorithm?: SigningAlgorithmSpec | string;
1098
+ }
1099
+ export interface TagResourceRequest {
1100
+ KeyId: string | undefined;
1101
+
1102
+ Tags: Tag[] | undefined;
1103
+ }
1104
+ export interface UntagResourceRequest {
1105
+ KeyId: string | undefined;
1106
+
1107
+ TagKeys: string[] | undefined;
1108
+ }
1109
+ export interface UpdateAliasRequest {
1110
+ AliasName: string | undefined;
1111
+
1112
+ TargetKeyId: string | undefined;
1113
+ }
1114
+ export interface UpdateCustomKeyStoreRequest {
1115
+ CustomKeyStoreId: string | undefined;
1116
+
1117
+ NewCustomKeyStoreName?: string;
1118
+
1119
+ KeyStorePassword?: string;
1120
+
1121
+ CloudHsmClusterId?: string;
1122
+ }
1123
+ export interface UpdateCustomKeyStoreResponse {}
1124
+ export interface UpdateKeyDescriptionRequest {
1125
+ KeyId: string | undefined;
1126
+
1127
+ Description: string | undefined;
1128
+ }
1129
+ export interface UpdatePrimaryRegionRequest {
1130
+ KeyId: string | undefined;
1131
+
1132
+ PrimaryRegion: string | undefined;
1133
+ }
1134
+ export interface VerifyRequest {
1135
+ KeyId: string | undefined;
1136
+
1137
+ Message: Uint8Array | undefined;
1138
+
1139
+ MessageType?: MessageType | string;
1140
+
1141
+ Signature: Uint8Array | undefined;
1142
+
1143
+ SigningAlgorithm: SigningAlgorithmSpec | string | undefined;
1144
+
1145
+ GrantTokens?: string[];
1146
+ }
1147
+ export interface VerifyResponse {
1148
+ KeyId?: string;
1149
+
1150
+ SignatureValid?: boolean;
1151
+
1152
+ SigningAlgorithm?: SigningAlgorithmSpec | string;
1153
+ }
1154
+ export interface VerifyMacRequest {
1155
+ Message: Uint8Array | undefined;
1156
+
1157
+ KeyId: string | undefined;
1158
+
1159
+ MacAlgorithm: MacAlgorithmSpec | string | undefined;
1160
+
1161
+ Mac: Uint8Array | undefined;
1162
+
1163
+ GrantTokens?: string[];
1164
+ }
1165
+ export interface VerifyMacResponse {
1166
+ KeyId?: string;
1167
+
1168
+ MacValid?: boolean;
1169
+
1170
+ MacAlgorithm?: MacAlgorithmSpec | string;
1171
+ }
1172
+
1173
+ export declare const AliasListEntryFilterSensitiveLog: (
1174
+ obj: AliasListEntry
1175
+ ) => any;
1176
+
1177
+ export declare const CancelKeyDeletionRequestFilterSensitiveLog: (
1178
+ obj: CancelKeyDeletionRequest
1179
+ ) => any;
1180
+
1181
+ export declare const CancelKeyDeletionResponseFilterSensitiveLog: (
1182
+ obj: CancelKeyDeletionResponse
1183
+ ) => any;
1184
+
1185
+ export declare const ConnectCustomKeyStoreRequestFilterSensitiveLog: (
1186
+ obj: ConnectCustomKeyStoreRequest
1187
+ ) => any;
1188
+
1189
+ export declare const ConnectCustomKeyStoreResponseFilterSensitiveLog: (
1190
+ obj: ConnectCustomKeyStoreResponse
1191
+ ) => any;
1192
+
1193
+ export declare const CreateAliasRequestFilterSensitiveLog: (
1194
+ obj: CreateAliasRequest
1195
+ ) => any;
1196
+
1197
+ export declare const CreateCustomKeyStoreRequestFilterSensitiveLog: (
1198
+ obj: CreateCustomKeyStoreRequest
1199
+ ) => any;
1200
+
1201
+ export declare const CreateCustomKeyStoreResponseFilterSensitiveLog: (
1202
+ obj: CreateCustomKeyStoreResponse
1203
+ ) => any;
1204
+
1205
+ export declare const GrantConstraintsFilterSensitiveLog: (
1206
+ obj: GrantConstraints
1207
+ ) => any;
1208
+
1209
+ export declare const CreateGrantRequestFilterSensitiveLog: (
1210
+ obj: CreateGrantRequest
1211
+ ) => any;
1212
+
1213
+ export declare const CreateGrantResponseFilterSensitiveLog: (
1214
+ obj: CreateGrantResponse
1215
+ ) => any;
1216
+
1217
+ export declare const TagFilterSensitiveLog: (obj: Tag) => any;
1218
+
1219
+ export declare const CreateKeyRequestFilterSensitiveLog: (
1220
+ obj: CreateKeyRequest
1221
+ ) => any;
1222
+
1223
+ export declare const MultiRegionKeyFilterSensitiveLog: (
1224
+ obj: MultiRegionKey
1225
+ ) => any;
1226
+
1227
+ export declare const MultiRegionConfigurationFilterSensitiveLog: (
1228
+ obj: MultiRegionConfiguration
1229
+ ) => any;
1230
+
1231
+ export declare const KeyMetadataFilterSensitiveLog: (obj: KeyMetadata) => any;
1232
+
1233
+ export declare const CreateKeyResponseFilterSensitiveLog: (
1234
+ obj: CreateKeyResponse
1235
+ ) => any;
1236
+
1237
+ export declare const CustomKeyStoresListEntryFilterSensitiveLog: (
1238
+ obj: CustomKeyStoresListEntry
1239
+ ) => any;
1240
+
1241
+ export declare const DecryptRequestFilterSensitiveLog: (
1242
+ obj: DecryptRequest
1243
+ ) => any;
1244
+
1245
+ export declare const DecryptResponseFilterSensitiveLog: (
1246
+ obj: DecryptResponse
1247
+ ) => any;
1248
+
1249
+ export declare const DeleteAliasRequestFilterSensitiveLog: (
1250
+ obj: DeleteAliasRequest
1251
+ ) => any;
1252
+
1253
+ export declare const DeleteCustomKeyStoreRequestFilterSensitiveLog: (
1254
+ obj: DeleteCustomKeyStoreRequest
1255
+ ) => any;
1256
+
1257
+ export declare const DeleteCustomKeyStoreResponseFilterSensitiveLog: (
1258
+ obj: DeleteCustomKeyStoreResponse
1259
+ ) => any;
1260
+
1261
+ export declare const DeleteImportedKeyMaterialRequestFilterSensitiveLog: (
1262
+ obj: DeleteImportedKeyMaterialRequest
1263
+ ) => any;
1264
+
1265
+ export declare const DescribeCustomKeyStoresRequestFilterSensitiveLog: (
1266
+ obj: DescribeCustomKeyStoresRequest
1267
+ ) => any;
1268
+
1269
+ export declare const DescribeCustomKeyStoresResponseFilterSensitiveLog: (
1270
+ obj: DescribeCustomKeyStoresResponse
1271
+ ) => any;
1272
+
1273
+ export declare const DescribeKeyRequestFilterSensitiveLog: (
1274
+ obj: DescribeKeyRequest
1275
+ ) => any;
1276
+
1277
+ export declare const DescribeKeyResponseFilterSensitiveLog: (
1278
+ obj: DescribeKeyResponse
1279
+ ) => any;
1280
+
1281
+ export declare const DisableKeyRequestFilterSensitiveLog: (
1282
+ obj: DisableKeyRequest
1283
+ ) => any;
1284
+
1285
+ export declare const DisableKeyRotationRequestFilterSensitiveLog: (
1286
+ obj: DisableKeyRotationRequest
1287
+ ) => any;
1288
+
1289
+ export declare const DisconnectCustomKeyStoreRequestFilterSensitiveLog: (
1290
+ obj: DisconnectCustomKeyStoreRequest
1291
+ ) => any;
1292
+
1293
+ export declare const DisconnectCustomKeyStoreResponseFilterSensitiveLog: (
1294
+ obj: DisconnectCustomKeyStoreResponse
1295
+ ) => any;
1296
+
1297
+ export declare const EnableKeyRequestFilterSensitiveLog: (
1298
+ obj: EnableKeyRequest
1299
+ ) => any;
1300
+
1301
+ export declare const EnableKeyRotationRequestFilterSensitiveLog: (
1302
+ obj: EnableKeyRotationRequest
1303
+ ) => any;
1304
+
1305
+ export declare const EncryptRequestFilterSensitiveLog: (
1306
+ obj: EncryptRequest
1307
+ ) => any;
1308
+
1309
+ export declare const EncryptResponseFilterSensitiveLog: (
1310
+ obj: EncryptResponse
1311
+ ) => any;
1312
+
1313
+ export declare const GenerateDataKeyRequestFilterSensitiveLog: (
1314
+ obj: GenerateDataKeyRequest
1315
+ ) => any;
1316
+
1317
+ export declare const GenerateDataKeyResponseFilterSensitiveLog: (
1318
+ obj: GenerateDataKeyResponse
1319
+ ) => any;
1320
+
1321
+ export declare const GenerateDataKeyPairRequestFilterSensitiveLog: (
1322
+ obj: GenerateDataKeyPairRequest
1323
+ ) => any;
1324
+
1325
+ export declare const GenerateDataKeyPairResponseFilterSensitiveLog: (
1326
+ obj: GenerateDataKeyPairResponse
1327
+ ) => any;
1328
+
1329
+ export declare const GenerateDataKeyPairWithoutPlaintextRequestFilterSensitiveLog: (
1330
+ obj: GenerateDataKeyPairWithoutPlaintextRequest
1331
+ ) => any;
1332
+
1333
+ export declare const GenerateDataKeyPairWithoutPlaintextResponseFilterSensitiveLog: (
1334
+ obj: GenerateDataKeyPairWithoutPlaintextResponse
1335
+ ) => any;
1336
+
1337
+ export declare const GenerateDataKeyWithoutPlaintextRequestFilterSensitiveLog: (
1338
+ obj: GenerateDataKeyWithoutPlaintextRequest
1339
+ ) => any;
1340
+
1341
+ export declare const GenerateDataKeyWithoutPlaintextResponseFilterSensitiveLog: (
1342
+ obj: GenerateDataKeyWithoutPlaintextResponse
1343
+ ) => any;
1344
+
1345
+ export declare const GenerateMacRequestFilterSensitiveLog: (
1346
+ obj: GenerateMacRequest
1347
+ ) => any;
1348
+
1349
+ export declare const GenerateMacResponseFilterSensitiveLog: (
1350
+ obj: GenerateMacResponse
1351
+ ) => any;
1352
+
1353
+ export declare const GenerateRandomRequestFilterSensitiveLog: (
1354
+ obj: GenerateRandomRequest
1355
+ ) => any;
1356
+
1357
+ export declare const GenerateRandomResponseFilterSensitiveLog: (
1358
+ obj: GenerateRandomResponse
1359
+ ) => any;
1360
+
1361
+ export declare const GetKeyPolicyRequestFilterSensitiveLog: (
1362
+ obj: GetKeyPolicyRequest
1363
+ ) => any;
1364
+
1365
+ export declare const GetKeyPolicyResponseFilterSensitiveLog: (
1366
+ obj: GetKeyPolicyResponse
1367
+ ) => any;
1368
+
1369
+ export declare const GetKeyRotationStatusRequestFilterSensitiveLog: (
1370
+ obj: GetKeyRotationStatusRequest
1371
+ ) => any;
1372
+
1373
+ export declare const GetKeyRotationStatusResponseFilterSensitiveLog: (
1374
+ obj: GetKeyRotationStatusResponse
1375
+ ) => any;
1376
+
1377
+ export declare const GetParametersForImportRequestFilterSensitiveLog: (
1378
+ obj: GetParametersForImportRequest
1379
+ ) => any;
1380
+
1381
+ export declare const GetParametersForImportResponseFilterSensitiveLog: (
1382
+ obj: GetParametersForImportResponse
1383
+ ) => any;
1384
+
1385
+ export declare const GetPublicKeyRequestFilterSensitiveLog: (
1386
+ obj: GetPublicKeyRequest
1387
+ ) => any;
1388
+
1389
+ export declare const GetPublicKeyResponseFilterSensitiveLog: (
1390
+ obj: GetPublicKeyResponse
1391
+ ) => any;
1392
+
1393
+ export declare const GrantListEntryFilterSensitiveLog: (
1394
+ obj: GrantListEntry
1395
+ ) => any;
1396
+
1397
+ export declare const ImportKeyMaterialRequestFilterSensitiveLog: (
1398
+ obj: ImportKeyMaterialRequest
1399
+ ) => any;
1400
+
1401
+ export declare const ImportKeyMaterialResponseFilterSensitiveLog: (
1402
+ obj: ImportKeyMaterialResponse
1403
+ ) => any;
1404
+
1405
+ export declare const KeyListEntryFilterSensitiveLog: (obj: KeyListEntry) => any;
1406
+
1407
+ export declare const ListAliasesRequestFilterSensitiveLog: (
1408
+ obj: ListAliasesRequest
1409
+ ) => any;
1410
+
1411
+ export declare const ListAliasesResponseFilterSensitiveLog: (
1412
+ obj: ListAliasesResponse
1413
+ ) => any;
1414
+
1415
+ export declare const ListGrantsRequestFilterSensitiveLog: (
1416
+ obj: ListGrantsRequest
1417
+ ) => any;
1418
+
1419
+ export declare const ListGrantsResponseFilterSensitiveLog: (
1420
+ obj: ListGrantsResponse
1421
+ ) => any;
1422
+
1423
+ export declare const ListKeyPoliciesRequestFilterSensitiveLog: (
1424
+ obj: ListKeyPoliciesRequest
1425
+ ) => any;
1426
+
1427
+ export declare const ListKeyPoliciesResponseFilterSensitiveLog: (
1428
+ obj: ListKeyPoliciesResponse
1429
+ ) => any;
1430
+
1431
+ export declare const ListKeysRequestFilterSensitiveLog: (
1432
+ obj: ListKeysRequest
1433
+ ) => any;
1434
+
1435
+ export declare const ListKeysResponseFilterSensitiveLog: (
1436
+ obj: ListKeysResponse
1437
+ ) => any;
1438
+
1439
+ export declare const ListResourceTagsRequestFilterSensitiveLog: (
1440
+ obj: ListResourceTagsRequest
1441
+ ) => any;
1442
+
1443
+ export declare const ListResourceTagsResponseFilterSensitiveLog: (
1444
+ obj: ListResourceTagsResponse
1445
+ ) => any;
1446
+
1447
+ export declare const ListRetirableGrantsRequestFilterSensitiveLog: (
1448
+ obj: ListRetirableGrantsRequest
1449
+ ) => any;
1450
+
1451
+ export declare const PutKeyPolicyRequestFilterSensitiveLog: (
1452
+ obj: PutKeyPolicyRequest
1453
+ ) => any;
1454
+
1455
+ export declare const ReEncryptRequestFilterSensitiveLog: (
1456
+ obj: ReEncryptRequest
1457
+ ) => any;
1458
+
1459
+ export declare const ReEncryptResponseFilterSensitiveLog: (
1460
+ obj: ReEncryptResponse
1461
+ ) => any;
1462
+
1463
+ export declare const ReplicateKeyRequestFilterSensitiveLog: (
1464
+ obj: ReplicateKeyRequest
1465
+ ) => any;
1466
+
1467
+ export declare const ReplicateKeyResponseFilterSensitiveLog: (
1468
+ obj: ReplicateKeyResponse
1469
+ ) => any;
1470
+
1471
+ export declare const RetireGrantRequestFilterSensitiveLog: (
1472
+ obj: RetireGrantRequest
1473
+ ) => any;
1474
+
1475
+ export declare const RevokeGrantRequestFilterSensitiveLog: (
1476
+ obj: RevokeGrantRequest
1477
+ ) => any;
1478
+
1479
+ export declare const ScheduleKeyDeletionRequestFilterSensitiveLog: (
1480
+ obj: ScheduleKeyDeletionRequest
1481
+ ) => any;
1482
+
1483
+ export declare const ScheduleKeyDeletionResponseFilterSensitiveLog: (
1484
+ obj: ScheduleKeyDeletionResponse
1485
+ ) => any;
1486
+
1487
+ export declare const SignRequestFilterSensitiveLog: (obj: SignRequest) => any;
1488
+
1489
+ export declare const SignResponseFilterSensitiveLog: (obj: SignResponse) => any;
1490
+
1491
+ export declare const TagResourceRequestFilterSensitiveLog: (
1492
+ obj: TagResourceRequest
1493
+ ) => any;
1494
+
1495
+ export declare const UntagResourceRequestFilterSensitiveLog: (
1496
+ obj: UntagResourceRequest
1497
+ ) => any;
1498
+
1499
+ export declare const UpdateAliasRequestFilterSensitiveLog: (
1500
+ obj: UpdateAliasRequest
1501
+ ) => any;
1502
+
1503
+ export declare const UpdateCustomKeyStoreRequestFilterSensitiveLog: (
1504
+ obj: UpdateCustomKeyStoreRequest
1505
+ ) => any;
1506
+
1507
+ export declare const UpdateCustomKeyStoreResponseFilterSensitiveLog: (
1508
+ obj: UpdateCustomKeyStoreResponse
1509
+ ) => any;
1510
+
1511
+ export declare const UpdateKeyDescriptionRequestFilterSensitiveLog: (
1512
+ obj: UpdateKeyDescriptionRequest
1513
+ ) => any;
1514
+
1515
+ export declare const UpdatePrimaryRegionRequestFilterSensitiveLog: (
1516
+ obj: UpdatePrimaryRegionRequest
1517
+ ) => any;
1518
+
1519
+ export declare const VerifyRequestFilterSensitiveLog: (
1520
+ obj: VerifyRequest
1521
+ ) => any;
1522
+
1523
+ export declare const VerifyResponseFilterSensitiveLog: (
1524
+ obj: VerifyResponse
1525
+ ) => any;
1526
+
1527
+ export declare const VerifyMacRequestFilterSensitiveLog: (
1528
+ obj: VerifyMacRequest
1529
+ ) => any;
1530
+
1531
+ export declare const VerifyMacResponseFilterSensitiveLog: (
1532
+ obj: VerifyMacResponse
1533
+ ) => any;