@aws-sdk/client-kms 3.300.0 → 3.303.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 (55) hide show
  1. package/dist-cjs/models/models_0.js +166 -187
  2. package/dist-es/models/models_0.js +166 -187
  3. package/dist-types/commands/CancelKeyDeletionCommand.d.ts +1 -1
  4. package/dist-types/commands/ConnectCustomKeyStoreCommand.d.ts +1 -1
  5. package/dist-types/commands/CreateAliasCommand.d.ts +1 -1
  6. package/dist-types/commands/CreateCustomKeyStoreCommand.d.ts +2 -2
  7. package/dist-types/commands/CreateGrantCommand.d.ts +5 -5
  8. package/dist-types/commands/CreateKeyCommand.d.ts +3 -3
  9. package/dist-types/commands/DecryptCommand.d.ts +3 -3
  10. package/dist-types/commands/DeleteAliasCommand.d.ts +1 -1
  11. package/dist-types/commands/DeleteCustomKeyStoreCommand.d.ts +1 -1
  12. package/dist-types/commands/DeleteImportedKeyMaterialCommand.d.ts +1 -1
  13. package/dist-types/commands/DescribeCustomKeyStoresCommand.d.ts +1 -1
  14. package/dist-types/commands/DescribeKeyCommand.d.ts +2 -2
  15. package/dist-types/commands/DisableKeyCommand.d.ts +1 -1
  16. package/dist-types/commands/DisableKeyRotationCommand.d.ts +1 -1
  17. package/dist-types/commands/DisconnectCustomKeyStoreCommand.d.ts +1 -1
  18. package/dist-types/commands/EnableKeyCommand.d.ts +1 -1
  19. package/dist-types/commands/EnableKeyRotationCommand.d.ts +1 -1
  20. package/dist-types/commands/EncryptCommand.d.ts +3 -3
  21. package/dist-types/commands/GenerateDataKeyCommand.d.ts +3 -3
  22. package/dist-types/commands/GenerateDataKeyPairCommand.d.ts +3 -3
  23. package/dist-types/commands/GenerateDataKeyPairWithoutPlaintextCommand.d.ts +3 -3
  24. package/dist-types/commands/GenerateDataKeyWithoutPlaintextCommand.d.ts +3 -3
  25. package/dist-types/commands/GenerateMacCommand.d.ts +2 -2
  26. package/dist-types/commands/GenerateRandomCommand.d.ts +1 -1
  27. package/dist-types/commands/GetKeyPolicyCommand.d.ts +1 -1
  28. package/dist-types/commands/GetKeyRotationStatusCommand.d.ts +1 -1
  29. package/dist-types/commands/GetParametersForImportCommand.d.ts +1 -1
  30. package/dist-types/commands/GetPublicKeyCommand.d.ts +2 -2
  31. package/dist-types/commands/ImportKeyMaterialCommand.d.ts +1 -1
  32. package/dist-types/commands/ListAliasesCommand.d.ts +1 -1
  33. package/dist-types/commands/ListGrantsCommand.d.ts +1 -1
  34. package/dist-types/commands/ListKeyPoliciesCommand.d.ts +1 -1
  35. package/dist-types/commands/ListKeysCommand.d.ts +1 -1
  36. package/dist-types/commands/ListResourceTagsCommand.d.ts +1 -1
  37. package/dist-types/commands/ListRetirableGrantsCommand.d.ts +1 -1
  38. package/dist-types/commands/PutKeyPolicyCommand.d.ts +1 -1
  39. package/dist-types/commands/ReEncryptCommand.d.ts +3 -3
  40. package/dist-types/commands/ReplicateKeyCommand.d.ts +3 -3
  41. package/dist-types/commands/RetireGrantCommand.d.ts +1 -1
  42. package/dist-types/commands/RevokeGrantCommand.d.ts +1 -1
  43. package/dist-types/commands/ScheduleKeyDeletionCommand.d.ts +1 -1
  44. package/dist-types/commands/SignCommand.d.ts +2 -2
  45. package/dist-types/commands/TagResourceCommand.d.ts +3 -3
  46. package/dist-types/commands/UntagResourceCommand.d.ts +2 -2
  47. package/dist-types/commands/UpdateAliasCommand.d.ts +1 -1
  48. package/dist-types/commands/UpdateCustomKeyStoreCommand.d.ts +2 -2
  49. package/dist-types/commands/UpdateKeyDescriptionCommand.d.ts +1 -1
  50. package/dist-types/commands/UpdatePrimaryRegionCommand.d.ts +1 -1
  51. package/dist-types/commands/VerifyCommand.d.ts +2 -2
  52. package/dist-types/commands/VerifyMacCommand.d.ts +2 -2
  53. package/dist-types/models/models_0.d.ts +271 -166
  54. package/dist-types/ts3.4/models/models_0.d.ts +201 -166
  55. package/package.json +34 -34
@@ -1,11 +1,10 @@
1
1
  import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
2
2
  import { KMSServiceException as __BaseException } from "./KMSServiceException";
3
- export var AlgorithmSpec;
4
- (function (AlgorithmSpec) {
5
- AlgorithmSpec["RSAES_OAEP_SHA_1"] = "RSAES_OAEP_SHA_1";
6
- AlgorithmSpec["RSAES_OAEP_SHA_256"] = "RSAES_OAEP_SHA_256";
7
- AlgorithmSpec["RSAES_PKCS1_V1_5"] = "RSAES_PKCS1_V1_5";
8
- })(AlgorithmSpec || (AlgorithmSpec = {}));
3
+ export const 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
+ };
9
8
  export class AlreadyExistsException extends __BaseException {
10
9
  constructor(opts) {
11
10
  super({
@@ -162,35 +161,33 @@ export class CustomKeyStoreNotFoundException extends __BaseException {
162
161
  Object.setPrototypeOf(this, CustomKeyStoreNotFoundException.prototype);
163
162
  }
164
163
  }
165
- export var ConnectionErrorCodeType;
166
- (function (ConnectionErrorCodeType) {
167
- ConnectionErrorCodeType["CLUSTER_NOT_FOUND"] = "CLUSTER_NOT_FOUND";
168
- ConnectionErrorCodeType["INSUFFICIENT_CLOUDHSM_HSMS"] = "INSUFFICIENT_CLOUDHSM_HSMS";
169
- ConnectionErrorCodeType["INSUFFICIENT_FREE_ADDRESSES_IN_SUBNET"] = "INSUFFICIENT_FREE_ADDRESSES_IN_SUBNET";
170
- ConnectionErrorCodeType["INTERNAL_ERROR"] = "INTERNAL_ERROR";
171
- ConnectionErrorCodeType["INVALID_CREDENTIALS"] = "INVALID_CREDENTIALS";
172
- ConnectionErrorCodeType["NETWORK_ERRORS"] = "NETWORK_ERRORS";
173
- ConnectionErrorCodeType["SUBNET_NOT_FOUND"] = "SUBNET_NOT_FOUND";
174
- ConnectionErrorCodeType["USER_LOCKED_OUT"] = "USER_LOCKED_OUT";
175
- ConnectionErrorCodeType["USER_LOGGED_IN"] = "USER_LOGGED_IN";
176
- ConnectionErrorCodeType["USER_NOT_FOUND"] = "USER_NOT_FOUND";
177
- ConnectionErrorCodeType["XKS_PROXY_ACCESS_DENIED"] = "XKS_PROXY_ACCESS_DENIED";
178
- ConnectionErrorCodeType["XKS_PROXY_INVALID_CONFIGURATION"] = "XKS_PROXY_INVALID_CONFIGURATION";
179
- ConnectionErrorCodeType["XKS_PROXY_INVALID_RESPONSE"] = "XKS_PROXY_INVALID_RESPONSE";
180
- ConnectionErrorCodeType["XKS_PROXY_INVALID_TLS_CONFIGURATION"] = "XKS_PROXY_INVALID_TLS_CONFIGURATION";
181
- ConnectionErrorCodeType["XKS_PROXY_NOT_REACHABLE"] = "XKS_PROXY_NOT_REACHABLE";
182
- ConnectionErrorCodeType["XKS_PROXY_TIMED_OUT"] = "XKS_PROXY_TIMED_OUT";
183
- ConnectionErrorCodeType["XKS_VPC_ENDPOINT_SERVICE_INVALID_CONFIGURATION"] = "XKS_VPC_ENDPOINT_SERVICE_INVALID_CONFIGURATION";
184
- ConnectionErrorCodeType["XKS_VPC_ENDPOINT_SERVICE_NOT_FOUND"] = "XKS_VPC_ENDPOINT_SERVICE_NOT_FOUND";
185
- })(ConnectionErrorCodeType || (ConnectionErrorCodeType = {}));
186
- export var ConnectionStateType;
187
- (function (ConnectionStateType) {
188
- ConnectionStateType["CONNECTED"] = "CONNECTED";
189
- ConnectionStateType["CONNECTING"] = "CONNECTING";
190
- ConnectionStateType["DISCONNECTED"] = "DISCONNECTED";
191
- ConnectionStateType["DISCONNECTING"] = "DISCONNECTING";
192
- ConnectionStateType["FAILED"] = "FAILED";
193
- })(ConnectionStateType || (ConnectionStateType = {}));
164
+ export const ConnectionErrorCodeType = {
165
+ CLUSTER_NOT_FOUND: "CLUSTER_NOT_FOUND",
166
+ INSUFFICIENT_CLOUDHSM_HSMS: "INSUFFICIENT_CLOUDHSM_HSMS",
167
+ INSUFFICIENT_FREE_ADDRESSES_IN_SUBNET: "INSUFFICIENT_FREE_ADDRESSES_IN_SUBNET",
168
+ INTERNAL_ERROR: "INTERNAL_ERROR",
169
+ INVALID_CREDENTIALS: "INVALID_CREDENTIALS",
170
+ NETWORK_ERRORS: "NETWORK_ERRORS",
171
+ SUBNET_NOT_FOUND: "SUBNET_NOT_FOUND",
172
+ USER_LOCKED_OUT: "USER_LOCKED_OUT",
173
+ USER_LOGGED_IN: "USER_LOGGED_IN",
174
+ USER_NOT_FOUND: "USER_NOT_FOUND",
175
+ XKS_PROXY_ACCESS_DENIED: "XKS_PROXY_ACCESS_DENIED",
176
+ XKS_PROXY_INVALID_CONFIGURATION: "XKS_PROXY_INVALID_CONFIGURATION",
177
+ XKS_PROXY_INVALID_RESPONSE: "XKS_PROXY_INVALID_RESPONSE",
178
+ XKS_PROXY_INVALID_TLS_CONFIGURATION: "XKS_PROXY_INVALID_TLS_CONFIGURATION",
179
+ XKS_PROXY_NOT_REACHABLE: "XKS_PROXY_NOT_REACHABLE",
180
+ XKS_PROXY_TIMED_OUT: "XKS_PROXY_TIMED_OUT",
181
+ XKS_VPC_ENDPOINT_SERVICE_INVALID_CONFIGURATION: "XKS_VPC_ENDPOINT_SERVICE_INVALID_CONFIGURATION",
182
+ XKS_VPC_ENDPOINT_SERVICE_NOT_FOUND: "XKS_VPC_ENDPOINT_SERVICE_NOT_FOUND",
183
+ };
184
+ export const ConnectionStateType = {
185
+ CONNECTED: "CONNECTED",
186
+ CONNECTING: "CONNECTING",
187
+ DISCONNECTED: "DISCONNECTED",
188
+ DISCONNECTING: "DISCONNECTING",
189
+ FAILED: "FAILED",
190
+ };
194
191
  export class InvalidAliasNameException extends __BaseException {
195
192
  constructor(opts) {
196
193
  super({
@@ -215,16 +212,14 @@ export class LimitExceededException extends __BaseException {
215
212
  Object.setPrototypeOf(this, LimitExceededException.prototype);
216
213
  }
217
214
  }
218
- export var CustomKeyStoreType;
219
- (function (CustomKeyStoreType) {
220
- CustomKeyStoreType["AWS_CLOUDHSM"] = "AWS_CLOUDHSM";
221
- CustomKeyStoreType["EXTERNAL_KEY_STORE"] = "EXTERNAL_KEY_STORE";
222
- })(CustomKeyStoreType || (CustomKeyStoreType = {}));
223
- export var XksProxyConnectivityType;
224
- (function (XksProxyConnectivityType) {
225
- XksProxyConnectivityType["PUBLIC_ENDPOINT"] = "PUBLIC_ENDPOINT";
226
- XksProxyConnectivityType["VPC_ENDPOINT_SERVICE"] = "VPC_ENDPOINT_SERVICE";
227
- })(XksProxyConnectivityType || (XksProxyConnectivityType = {}));
215
+ export const CustomKeyStoreType = {
216
+ AWS_CLOUDHSM: "AWS_CLOUDHSM",
217
+ EXTERNAL_KEY_STORE: "EXTERNAL_KEY_STORE",
218
+ };
219
+ export const XksProxyConnectivityType = {
220
+ PUBLIC_ENDPOINT: "PUBLIC_ENDPOINT",
221
+ VPC_ENDPOINT_SERVICE: "VPC_ENDPOINT_SERVICE",
222
+ };
228
223
  export class CustomKeyStoreNameInUseException extends __BaseException {
229
224
  constructor(opts) {
230
225
  super({
@@ -357,25 +352,24 @@ export class XksProxyVpcEndpointServiceNotFoundException extends __BaseException
357
352
  Object.setPrototypeOf(this, XksProxyVpcEndpointServiceNotFoundException.prototype);
358
353
  }
359
354
  }
360
- export var GrantOperation;
361
- (function (GrantOperation) {
362
- GrantOperation["CreateGrant"] = "CreateGrant";
363
- GrantOperation["Decrypt"] = "Decrypt";
364
- GrantOperation["DescribeKey"] = "DescribeKey";
365
- GrantOperation["Encrypt"] = "Encrypt";
366
- GrantOperation["GenerateDataKey"] = "GenerateDataKey";
367
- GrantOperation["GenerateDataKeyPair"] = "GenerateDataKeyPair";
368
- GrantOperation["GenerateDataKeyPairWithoutPlaintext"] = "GenerateDataKeyPairWithoutPlaintext";
369
- GrantOperation["GenerateDataKeyWithoutPlaintext"] = "GenerateDataKeyWithoutPlaintext";
370
- GrantOperation["GenerateMac"] = "GenerateMac";
371
- GrantOperation["GetPublicKey"] = "GetPublicKey";
372
- GrantOperation["ReEncryptFrom"] = "ReEncryptFrom";
373
- GrantOperation["ReEncryptTo"] = "ReEncryptTo";
374
- GrantOperation["RetireGrant"] = "RetireGrant";
375
- GrantOperation["Sign"] = "Sign";
376
- GrantOperation["Verify"] = "Verify";
377
- GrantOperation["VerifyMac"] = "VerifyMac";
378
- })(GrantOperation || (GrantOperation = {}));
355
+ export const GrantOperation = {
356
+ CreateGrant: "CreateGrant",
357
+ Decrypt: "Decrypt",
358
+ DescribeKey: "DescribeKey",
359
+ Encrypt: "Encrypt",
360
+ GenerateDataKey: "GenerateDataKey",
361
+ GenerateDataKeyPair: "GenerateDataKeyPair",
362
+ GenerateDataKeyPairWithoutPlaintext: "GenerateDataKeyPairWithoutPlaintext",
363
+ GenerateDataKeyWithoutPlaintext: "GenerateDataKeyWithoutPlaintext",
364
+ GenerateMac: "GenerateMac",
365
+ GetPublicKey: "GetPublicKey",
366
+ ReEncryptFrom: "ReEncryptFrom",
367
+ ReEncryptTo: "ReEncryptTo",
368
+ RetireGrant: "RetireGrant",
369
+ Sign: "Sign",
370
+ Verify: "Verify",
371
+ VerifyMac: "VerifyMac",
372
+ };
379
373
  export class DisabledException extends __BaseException {
380
374
  constructor(opts) {
381
375
  super({
@@ -400,104 +394,93 @@ export class InvalidGrantTokenException extends __BaseException {
400
394
  Object.setPrototypeOf(this, InvalidGrantTokenException.prototype);
401
395
  }
402
396
  }
403
- export var CustomerMasterKeySpec;
404
- (function (CustomerMasterKeySpec) {
405
- CustomerMasterKeySpec["ECC_NIST_P256"] = "ECC_NIST_P256";
406
- CustomerMasterKeySpec["ECC_NIST_P384"] = "ECC_NIST_P384";
407
- CustomerMasterKeySpec["ECC_NIST_P521"] = "ECC_NIST_P521";
408
- CustomerMasterKeySpec["ECC_SECG_P256K1"] = "ECC_SECG_P256K1";
409
- CustomerMasterKeySpec["HMAC_224"] = "HMAC_224";
410
- CustomerMasterKeySpec["HMAC_256"] = "HMAC_256";
411
- CustomerMasterKeySpec["HMAC_384"] = "HMAC_384";
412
- CustomerMasterKeySpec["HMAC_512"] = "HMAC_512";
413
- CustomerMasterKeySpec["RSA_2048"] = "RSA_2048";
414
- CustomerMasterKeySpec["RSA_3072"] = "RSA_3072";
415
- CustomerMasterKeySpec["RSA_4096"] = "RSA_4096";
416
- CustomerMasterKeySpec["SM2"] = "SM2";
417
- CustomerMasterKeySpec["SYMMETRIC_DEFAULT"] = "SYMMETRIC_DEFAULT";
418
- })(CustomerMasterKeySpec || (CustomerMasterKeySpec = {}));
419
- export var KeySpec;
420
- (function (KeySpec) {
421
- KeySpec["ECC_NIST_P256"] = "ECC_NIST_P256";
422
- KeySpec["ECC_NIST_P384"] = "ECC_NIST_P384";
423
- KeySpec["ECC_NIST_P521"] = "ECC_NIST_P521";
424
- KeySpec["ECC_SECG_P256K1"] = "ECC_SECG_P256K1";
425
- KeySpec["HMAC_224"] = "HMAC_224";
426
- KeySpec["HMAC_256"] = "HMAC_256";
427
- KeySpec["HMAC_384"] = "HMAC_384";
428
- KeySpec["HMAC_512"] = "HMAC_512";
429
- KeySpec["RSA_2048"] = "RSA_2048";
430
- KeySpec["RSA_3072"] = "RSA_3072";
431
- KeySpec["RSA_4096"] = "RSA_4096";
432
- KeySpec["SM2"] = "SM2";
433
- KeySpec["SYMMETRIC_DEFAULT"] = "SYMMETRIC_DEFAULT";
434
- })(KeySpec || (KeySpec = {}));
435
- export var KeyUsageType;
436
- (function (KeyUsageType) {
437
- KeyUsageType["ENCRYPT_DECRYPT"] = "ENCRYPT_DECRYPT";
438
- KeyUsageType["GENERATE_VERIFY_MAC"] = "GENERATE_VERIFY_MAC";
439
- KeyUsageType["SIGN_VERIFY"] = "SIGN_VERIFY";
440
- })(KeyUsageType || (KeyUsageType = {}));
441
- export var OriginType;
442
- (function (OriginType) {
443
- OriginType["AWS_CLOUDHSM"] = "AWS_CLOUDHSM";
444
- OriginType["AWS_KMS"] = "AWS_KMS";
445
- OriginType["EXTERNAL"] = "EXTERNAL";
446
- OriginType["EXTERNAL_KEY_STORE"] = "EXTERNAL_KEY_STORE";
447
- })(OriginType || (OriginType = {}));
448
- export var EncryptionAlgorithmSpec;
449
- (function (EncryptionAlgorithmSpec) {
450
- EncryptionAlgorithmSpec["RSAES_OAEP_SHA_1"] = "RSAES_OAEP_SHA_1";
451
- EncryptionAlgorithmSpec["RSAES_OAEP_SHA_256"] = "RSAES_OAEP_SHA_256";
452
- EncryptionAlgorithmSpec["SM2PKE"] = "SM2PKE";
453
- EncryptionAlgorithmSpec["SYMMETRIC_DEFAULT"] = "SYMMETRIC_DEFAULT";
454
- })(EncryptionAlgorithmSpec || (EncryptionAlgorithmSpec = {}));
455
- export var ExpirationModelType;
456
- (function (ExpirationModelType) {
457
- ExpirationModelType["KEY_MATERIAL_DOES_NOT_EXPIRE"] = "KEY_MATERIAL_DOES_NOT_EXPIRE";
458
- ExpirationModelType["KEY_MATERIAL_EXPIRES"] = "KEY_MATERIAL_EXPIRES";
459
- })(ExpirationModelType || (ExpirationModelType = {}));
460
- export var KeyManagerType;
461
- (function (KeyManagerType) {
462
- KeyManagerType["AWS"] = "AWS";
463
- KeyManagerType["CUSTOMER"] = "CUSTOMER";
464
- })(KeyManagerType || (KeyManagerType = {}));
465
- export var KeyState;
466
- (function (KeyState) {
467
- KeyState["Creating"] = "Creating";
468
- KeyState["Disabled"] = "Disabled";
469
- KeyState["Enabled"] = "Enabled";
470
- KeyState["PendingDeletion"] = "PendingDeletion";
471
- KeyState["PendingImport"] = "PendingImport";
472
- KeyState["PendingReplicaDeletion"] = "PendingReplicaDeletion";
473
- KeyState["Unavailable"] = "Unavailable";
474
- KeyState["Updating"] = "Updating";
475
- })(KeyState || (KeyState = {}));
476
- export var MacAlgorithmSpec;
477
- (function (MacAlgorithmSpec) {
478
- MacAlgorithmSpec["HMAC_SHA_224"] = "HMAC_SHA_224";
479
- MacAlgorithmSpec["HMAC_SHA_256"] = "HMAC_SHA_256";
480
- MacAlgorithmSpec["HMAC_SHA_384"] = "HMAC_SHA_384";
481
- MacAlgorithmSpec["HMAC_SHA_512"] = "HMAC_SHA_512";
482
- })(MacAlgorithmSpec || (MacAlgorithmSpec = {}));
483
- export var MultiRegionKeyType;
484
- (function (MultiRegionKeyType) {
485
- MultiRegionKeyType["PRIMARY"] = "PRIMARY";
486
- MultiRegionKeyType["REPLICA"] = "REPLICA";
487
- })(MultiRegionKeyType || (MultiRegionKeyType = {}));
488
- export var SigningAlgorithmSpec;
489
- (function (SigningAlgorithmSpec) {
490
- SigningAlgorithmSpec["ECDSA_SHA_256"] = "ECDSA_SHA_256";
491
- SigningAlgorithmSpec["ECDSA_SHA_384"] = "ECDSA_SHA_384";
492
- SigningAlgorithmSpec["ECDSA_SHA_512"] = "ECDSA_SHA_512";
493
- SigningAlgorithmSpec["RSASSA_PKCS1_V1_5_SHA_256"] = "RSASSA_PKCS1_V1_5_SHA_256";
494
- SigningAlgorithmSpec["RSASSA_PKCS1_V1_5_SHA_384"] = "RSASSA_PKCS1_V1_5_SHA_384";
495
- SigningAlgorithmSpec["RSASSA_PKCS1_V1_5_SHA_512"] = "RSASSA_PKCS1_V1_5_SHA_512";
496
- SigningAlgorithmSpec["RSASSA_PSS_SHA_256"] = "RSASSA_PSS_SHA_256";
497
- SigningAlgorithmSpec["RSASSA_PSS_SHA_384"] = "RSASSA_PSS_SHA_384";
498
- SigningAlgorithmSpec["RSASSA_PSS_SHA_512"] = "RSASSA_PSS_SHA_512";
499
- SigningAlgorithmSpec["SM2DSA"] = "SM2DSA";
500
- })(SigningAlgorithmSpec || (SigningAlgorithmSpec = {}));
397
+ export const CustomerMasterKeySpec = {
398
+ ECC_NIST_P256: "ECC_NIST_P256",
399
+ ECC_NIST_P384: "ECC_NIST_P384",
400
+ ECC_NIST_P521: "ECC_NIST_P521",
401
+ ECC_SECG_P256K1: "ECC_SECG_P256K1",
402
+ HMAC_224: "HMAC_224",
403
+ HMAC_256: "HMAC_256",
404
+ HMAC_384: "HMAC_384",
405
+ HMAC_512: "HMAC_512",
406
+ RSA_2048: "RSA_2048",
407
+ RSA_3072: "RSA_3072",
408
+ RSA_4096: "RSA_4096",
409
+ SM2: "SM2",
410
+ SYMMETRIC_DEFAULT: "SYMMETRIC_DEFAULT",
411
+ };
412
+ export const KeySpec = {
413
+ ECC_NIST_P256: "ECC_NIST_P256",
414
+ ECC_NIST_P384: "ECC_NIST_P384",
415
+ ECC_NIST_P521: "ECC_NIST_P521",
416
+ ECC_SECG_P256K1: "ECC_SECG_P256K1",
417
+ HMAC_224: "HMAC_224",
418
+ HMAC_256: "HMAC_256",
419
+ HMAC_384: "HMAC_384",
420
+ HMAC_512: "HMAC_512",
421
+ RSA_2048: "RSA_2048",
422
+ RSA_3072: "RSA_3072",
423
+ RSA_4096: "RSA_4096",
424
+ SM2: "SM2",
425
+ SYMMETRIC_DEFAULT: "SYMMETRIC_DEFAULT",
426
+ };
427
+ export const KeyUsageType = {
428
+ ENCRYPT_DECRYPT: "ENCRYPT_DECRYPT",
429
+ GENERATE_VERIFY_MAC: "GENERATE_VERIFY_MAC",
430
+ SIGN_VERIFY: "SIGN_VERIFY",
431
+ };
432
+ export const OriginType = {
433
+ AWS_CLOUDHSM: "AWS_CLOUDHSM",
434
+ AWS_KMS: "AWS_KMS",
435
+ EXTERNAL: "EXTERNAL",
436
+ EXTERNAL_KEY_STORE: "EXTERNAL_KEY_STORE",
437
+ };
438
+ export const EncryptionAlgorithmSpec = {
439
+ RSAES_OAEP_SHA_1: "RSAES_OAEP_SHA_1",
440
+ RSAES_OAEP_SHA_256: "RSAES_OAEP_SHA_256",
441
+ SM2PKE: "SM2PKE",
442
+ SYMMETRIC_DEFAULT: "SYMMETRIC_DEFAULT",
443
+ };
444
+ export const ExpirationModelType = {
445
+ KEY_MATERIAL_DOES_NOT_EXPIRE: "KEY_MATERIAL_DOES_NOT_EXPIRE",
446
+ KEY_MATERIAL_EXPIRES: "KEY_MATERIAL_EXPIRES",
447
+ };
448
+ export const KeyManagerType = {
449
+ AWS: "AWS",
450
+ CUSTOMER: "CUSTOMER",
451
+ };
452
+ export const KeyState = {
453
+ Creating: "Creating",
454
+ Disabled: "Disabled",
455
+ Enabled: "Enabled",
456
+ PendingDeletion: "PendingDeletion",
457
+ PendingImport: "PendingImport",
458
+ PendingReplicaDeletion: "PendingReplicaDeletion",
459
+ Unavailable: "Unavailable",
460
+ Updating: "Updating",
461
+ };
462
+ export const MacAlgorithmSpec = {
463
+ HMAC_SHA_224: "HMAC_SHA_224",
464
+ HMAC_SHA_256: "HMAC_SHA_256",
465
+ HMAC_SHA_384: "HMAC_SHA_384",
466
+ HMAC_SHA_512: "HMAC_SHA_512",
467
+ };
468
+ export const MultiRegionKeyType = {
469
+ PRIMARY: "PRIMARY",
470
+ REPLICA: "REPLICA",
471
+ };
472
+ export const SigningAlgorithmSpec = {
473
+ ECDSA_SHA_256: "ECDSA_SHA_256",
474
+ ECDSA_SHA_384: "ECDSA_SHA_384",
475
+ ECDSA_SHA_512: "ECDSA_SHA_512",
476
+ RSASSA_PKCS1_V1_5_SHA_256: "RSASSA_PKCS1_V1_5_SHA_256",
477
+ RSASSA_PKCS1_V1_5_SHA_384: "RSASSA_PKCS1_V1_5_SHA_384",
478
+ RSASSA_PKCS1_V1_5_SHA_512: "RSASSA_PKCS1_V1_5_SHA_512",
479
+ RSASSA_PSS_SHA_256: "RSASSA_PSS_SHA_256",
480
+ RSASSA_PSS_SHA_384: "RSASSA_PSS_SHA_384",
481
+ RSASSA_PSS_SHA_512: "RSASSA_PSS_SHA_512",
482
+ SM2DSA: "SM2DSA",
483
+ };
501
484
  export class MalformedPolicyDocumentException extends __BaseException {
502
485
  constructor(opts) {
503
486
  super({
@@ -582,22 +565,20 @@ export class CustomKeyStoreHasCMKsException extends __BaseException {
582
565
  Object.setPrototypeOf(this, CustomKeyStoreHasCMKsException.prototype);
583
566
  }
584
567
  }
585
- export var DataKeyPairSpec;
586
- (function (DataKeyPairSpec) {
587
- DataKeyPairSpec["ECC_NIST_P256"] = "ECC_NIST_P256";
588
- DataKeyPairSpec["ECC_NIST_P384"] = "ECC_NIST_P384";
589
- DataKeyPairSpec["ECC_NIST_P521"] = "ECC_NIST_P521";
590
- DataKeyPairSpec["ECC_SECG_P256K1"] = "ECC_SECG_P256K1";
591
- DataKeyPairSpec["RSA_2048"] = "RSA_2048";
592
- DataKeyPairSpec["RSA_3072"] = "RSA_3072";
593
- DataKeyPairSpec["RSA_4096"] = "RSA_4096";
594
- DataKeyPairSpec["SM2"] = "SM2";
595
- })(DataKeyPairSpec || (DataKeyPairSpec = {}));
596
- export var DataKeySpec;
597
- (function (DataKeySpec) {
598
- DataKeySpec["AES_128"] = "AES_128";
599
- DataKeySpec["AES_256"] = "AES_256";
600
- })(DataKeySpec || (DataKeySpec = {}));
568
+ export const DataKeyPairSpec = {
569
+ ECC_NIST_P256: "ECC_NIST_P256",
570
+ ECC_NIST_P384: "ECC_NIST_P384",
571
+ ECC_NIST_P521: "ECC_NIST_P521",
572
+ ECC_SECG_P256K1: "ECC_SECG_P256K1",
573
+ RSA_2048: "RSA_2048",
574
+ RSA_3072: "RSA_3072",
575
+ RSA_4096: "RSA_4096",
576
+ SM2: "SM2",
577
+ };
578
+ export const DataKeySpec = {
579
+ AES_128: "AES_128",
580
+ AES_256: "AES_256",
581
+ };
601
582
  export class IncorrectKeyException extends __BaseException {
602
583
  constructor(opts) {
603
584
  super({
@@ -670,10 +651,9 @@ export class ExpiredImportTokenException extends __BaseException {
670
651
  Object.setPrototypeOf(this, ExpiredImportTokenException.prototype);
671
652
  }
672
653
  }
673
- export var WrappingKeySpec;
674
- (function (WrappingKeySpec) {
675
- WrappingKeySpec["RSA_2048"] = "RSA_2048";
676
- })(WrappingKeySpec || (WrappingKeySpec = {}));
654
+ export const WrappingKeySpec = {
655
+ RSA_2048: "RSA_2048",
656
+ };
677
657
  export class IncorrectKeyMaterialException extends __BaseException {
678
658
  constructor(opts) {
679
659
  super({
@@ -734,11 +714,10 @@ export class KMSInvalidSignatureException extends __BaseException {
734
714
  Object.setPrototypeOf(this, KMSInvalidSignatureException.prototype);
735
715
  }
736
716
  }
737
- export var MessageType;
738
- (function (MessageType) {
739
- MessageType["DIGEST"] = "DIGEST";
740
- MessageType["RAW"] = "RAW";
741
- })(MessageType || (MessageType = {}));
717
+ export const MessageType = {
718
+ DIGEST: "DIGEST",
719
+ RAW: "RAW",
720
+ };
742
721
  export const XksProxyAuthenticationCredentialTypeFilterSensitiveLog = (obj) => ({
743
722
  ...obj,
744
723
  ...(obj.AccessKeyId && { AccessKeyId: SENSITIVE_STRING }),
@@ -38,7 +38,7 @@ export interface CancelKeyDeletionCommandOutput extends CancelKeyDeletionRespons
38
38
  * import { KMSClient, CancelKeyDeletionCommand } from "@aws-sdk/client-kms"; // ES Modules import
39
39
  * // const { KMSClient, CancelKeyDeletionCommand } = require("@aws-sdk/client-kms"); // CommonJS import
40
40
  * const client = new KMSClient(config);
41
- * const input = {
41
+ * const input = { // CancelKeyDeletionRequest
42
42
  * KeyId: "STRING_VALUE", // required
43
43
  * };
44
44
  * const command = new CancelKeyDeletionCommand(input);
@@ -112,7 +112,7 @@ export interface ConnectCustomKeyStoreCommandOutput extends ConnectCustomKeyStor
112
112
  * import { KMSClient, ConnectCustomKeyStoreCommand } from "@aws-sdk/client-kms"; // ES Modules import
113
113
  * // const { KMSClient, ConnectCustomKeyStoreCommand } = require("@aws-sdk/client-kms"); // CommonJS import
114
114
  * const client = new KMSClient(config);
115
- * const input = {
115
+ * const input = { // ConnectCustomKeyStoreRequest
116
116
  * CustomKeyStoreId: "STRING_VALUE", // required
117
117
  * };
118
118
  * const command = new ConnectCustomKeyStoreCommand(input);
@@ -82,7 +82,7 @@ export interface CreateAliasCommandOutput extends __MetadataBearer {
82
82
  * import { KMSClient, CreateAliasCommand } from "@aws-sdk/client-kms"; // ES Modules import
83
83
  * // const { KMSClient, CreateAliasCommand } = require("@aws-sdk/client-kms"); // CommonJS import
84
84
  * const client = new KMSClient(config);
85
- * const input = {
85
+ * const input = { // CreateAliasRequest
86
86
  * AliasName: "STRING_VALUE", // required
87
87
  * TargetKeyId: "STRING_VALUE", // required
88
88
  * };
@@ -113,7 +113,7 @@ export interface CreateCustomKeyStoreCommandOutput extends CreateCustomKeyStoreR
113
113
  * import { KMSClient, CreateCustomKeyStoreCommand } from "@aws-sdk/client-kms"; // ES Modules import
114
114
  * // const { KMSClient, CreateCustomKeyStoreCommand } = require("@aws-sdk/client-kms"); // CommonJS import
115
115
  * const client = new KMSClient(config);
116
- * const input = {
116
+ * const input = { // CreateCustomKeyStoreRequest
117
117
  * CustomKeyStoreName: "STRING_VALUE", // required
118
118
  * CloudHsmClusterId: "STRING_VALUE",
119
119
  * TrustAnchorCertificate: "STRING_VALUE",
@@ -122,7 +122,7 @@ export interface CreateCustomKeyStoreCommandOutput extends CreateCustomKeyStoreR
122
122
  * XksProxyUriEndpoint: "STRING_VALUE",
123
123
  * XksProxyUriPath: "STRING_VALUE",
124
124
  * XksProxyVpcEndpointServiceName: "STRING_VALUE",
125
- * XksProxyAuthenticationCredential: {
125
+ * XksProxyAuthenticationCredential: { // XksProxyAuthenticationCredentialType
126
126
  * AccessKeyId: "STRING_VALUE", // required
127
127
  * RawSecretAccessKey: "STRING_VALUE", // required
128
128
  * },
@@ -87,22 +87,22 @@ export interface CreateGrantCommandOutput extends CreateGrantResponse, __Metadat
87
87
  * import { KMSClient, CreateGrantCommand } from "@aws-sdk/client-kms"; // ES Modules import
88
88
  * // const { KMSClient, CreateGrantCommand } = require("@aws-sdk/client-kms"); // CommonJS import
89
89
  * const client = new KMSClient(config);
90
- * const input = {
90
+ * const input = { // CreateGrantRequest
91
91
  * KeyId: "STRING_VALUE", // required
92
92
  * GranteePrincipal: "STRING_VALUE", // required
93
93
  * RetiringPrincipal: "STRING_VALUE",
94
- * Operations: [ // required
94
+ * Operations: [ // GrantOperationList // required
95
95
  * "Decrypt" || "Encrypt" || "GenerateDataKey" || "GenerateDataKeyWithoutPlaintext" || "ReEncryptFrom" || "ReEncryptTo" || "Sign" || "Verify" || "GetPublicKey" || "CreateGrant" || "RetireGrant" || "DescribeKey" || "GenerateDataKeyPair" || "GenerateDataKeyPairWithoutPlaintext" || "GenerateMac" || "VerifyMac",
96
96
  * ],
97
- * Constraints: {
98
- * EncryptionContextSubset: {
97
+ * Constraints: { // GrantConstraints
98
+ * EncryptionContextSubset: { // EncryptionContextType
99
99
  * "<keys>": "STRING_VALUE",
100
100
  * },
101
101
  * EncryptionContextEquals: {
102
102
  * "<keys>": "STRING_VALUE",
103
103
  * },
104
104
  * },
105
- * GrantTokens: [
105
+ * GrantTokens: [ // GrantTokenList
106
106
  * "STRING_VALUE",
107
107
  * ],
108
108
  * Name: "STRING_VALUE",
@@ -192,7 +192,7 @@ export interface CreateKeyCommandOutput extends CreateKeyResponse, __MetadataBea
192
192
  * import { KMSClient, CreateKeyCommand } from "@aws-sdk/client-kms"; // ES Modules import
193
193
  * // const { KMSClient, CreateKeyCommand } = require("@aws-sdk/client-kms"); // CommonJS import
194
194
  * const client = new KMSClient(config);
195
- * const input = {
195
+ * const input = { // CreateKeyRequest
196
196
  * Policy: "STRING_VALUE",
197
197
  * Description: "STRING_VALUE",
198
198
  * KeyUsage: "SIGN_VERIFY" || "ENCRYPT_DECRYPT" || "GENERATE_VERIFY_MAC",
@@ -201,8 +201,8 @@ export interface CreateKeyCommandOutput extends CreateKeyResponse, __MetadataBea
201
201
  * Origin: "AWS_KMS" || "EXTERNAL" || "AWS_CLOUDHSM" || "EXTERNAL_KEY_STORE",
202
202
  * CustomKeyStoreId: "STRING_VALUE",
203
203
  * BypassPolicyLockoutSafetyCheck: true || false,
204
- * Tags: [
205
- * {
204
+ * Tags: [ // TagList
205
+ * { // Tag
206
206
  * TagKey: "STRING_VALUE", // required
207
207
  * TagValue: "STRING_VALUE", // required
208
208
  * },
@@ -113,12 +113,12 @@ export interface DecryptCommandOutput extends DecryptResponse, __MetadataBearer
113
113
  * import { KMSClient, DecryptCommand } from "@aws-sdk/client-kms"; // ES Modules import
114
114
  * // const { KMSClient, DecryptCommand } = require("@aws-sdk/client-kms"); // CommonJS import
115
115
  * const client = new KMSClient(config);
116
- * const input = {
116
+ * const input = { // DecryptRequest
117
117
  * CiphertextBlob: "BLOB_VALUE", // required
118
- * EncryptionContext: {
118
+ * EncryptionContext: { // EncryptionContextType
119
119
  * "<keys>": "STRING_VALUE",
120
120
  * },
121
- * GrantTokens: [
121
+ * GrantTokens: [ // GrantTokenList
122
122
  * "STRING_VALUE",
123
123
  * ],
124
124
  * KeyId: "STRING_VALUE",
@@ -73,7 +73,7 @@ export interface DeleteAliasCommandOutput extends __MetadataBearer {
73
73
  * import { KMSClient, DeleteAliasCommand } from "@aws-sdk/client-kms"; // ES Modules import
74
74
  * // const { KMSClient, DeleteAliasCommand } = require("@aws-sdk/client-kms"); // CommonJS import
75
75
  * const client = new KMSClient(config);
76
- * const input = {
76
+ * const input = { // DeleteAliasRequest
77
77
  * AliasName: "STRING_VALUE", // required
78
78
  * };
79
79
  * const command = new DeleteAliasCommand(input);
@@ -84,7 +84,7 @@ export interface DeleteCustomKeyStoreCommandOutput extends DeleteCustomKeyStoreR
84
84
  * import { KMSClient, DeleteCustomKeyStoreCommand } from "@aws-sdk/client-kms"; // ES Modules import
85
85
  * // const { KMSClient, DeleteCustomKeyStoreCommand } = require("@aws-sdk/client-kms"); // CommonJS import
86
86
  * const client = new KMSClient(config);
87
- * const input = {
87
+ * const input = { // DeleteCustomKeyStoreRequest
88
88
  * CustomKeyStoreId: "STRING_VALUE", // required
89
89
  * };
90
90
  * const command = new DeleteCustomKeyStoreCommand(input);
@@ -54,7 +54,7 @@ export interface DeleteImportedKeyMaterialCommandOutput extends __MetadataBearer
54
54
  * import { KMSClient, DeleteImportedKeyMaterialCommand } from "@aws-sdk/client-kms"; // ES Modules import
55
55
  * // const { KMSClient, DeleteImportedKeyMaterialCommand } = require("@aws-sdk/client-kms"); // CommonJS import
56
56
  * const client = new KMSClient(config);
57
- * const input = {
57
+ * const input = { // DeleteImportedKeyMaterialRequest
58
58
  * KeyId: "STRING_VALUE", // required
59
59
  * };
60
60
  * const command = new DeleteImportedKeyMaterialCommand(input);
@@ -84,7 +84,7 @@ export interface DescribeCustomKeyStoresCommandOutput extends DescribeCustomKeyS
84
84
  * import { KMSClient, DescribeCustomKeyStoresCommand } from "@aws-sdk/client-kms"; // ES Modules import
85
85
  * // const { KMSClient, DescribeCustomKeyStoresCommand } = require("@aws-sdk/client-kms"); // CommonJS import
86
86
  * const client = new KMSClient(config);
87
- * const input = {
87
+ * const input = { // DescribeCustomKeyStoresRequest
88
88
  * CustomKeyStoreId: "STRING_VALUE",
89
89
  * CustomKeyStoreName: "STRING_VALUE",
90
90
  * Limit: Number("int"),
@@ -108,9 +108,9 @@ export interface DescribeKeyCommandOutput extends DescribeKeyResponse, __Metadat
108
108
  * import { KMSClient, DescribeKeyCommand } from "@aws-sdk/client-kms"; // ES Modules import
109
109
  * // const { KMSClient, DescribeKeyCommand } = require("@aws-sdk/client-kms"); // CommonJS import
110
110
  * const client = new KMSClient(config);
111
- * const input = {
111
+ * const input = { // DescribeKeyRequest
112
112
  * KeyId: "STRING_VALUE", // required
113
- * GrantTokens: [
113
+ * GrantTokens: [ // GrantTokenList
114
114
  * "STRING_VALUE",
115
115
  * ],
116
116
  * };
@@ -40,7 +40,7 @@ export interface DisableKeyCommandOutput extends __MetadataBearer {
40
40
  * import { KMSClient, DisableKeyCommand } from "@aws-sdk/client-kms"; // ES Modules import
41
41
  * // const { KMSClient, DisableKeyCommand } = require("@aws-sdk/client-kms"); // CommonJS import
42
42
  * const client = new KMSClient(config);
43
- * const input = {
43
+ * const input = { // DisableKeyRequest
44
44
  * KeyId: "STRING_VALUE", // required
45
45
  * };
46
46
  * const command = new DisableKeyCommand(input);
@@ -58,7 +58,7 @@ export interface DisableKeyRotationCommandOutput extends __MetadataBearer {
58
58
  * import { KMSClient, DisableKeyRotationCommand } from "@aws-sdk/client-kms"; // ES Modules import
59
59
  * // const { KMSClient, DisableKeyRotationCommand } = require("@aws-sdk/client-kms"); // CommonJS import
60
60
  * const client = new KMSClient(config);
61
- * const input = {
61
+ * const input = { // DisableKeyRotationRequest
62
62
  * KeyId: "STRING_VALUE", // required
63
63
  * };
64
64
  * const command = new DisableKeyRotationCommand(input);
@@ -77,7 +77,7 @@ export interface DisconnectCustomKeyStoreCommandOutput extends DisconnectCustomK
77
77
  * import { KMSClient, DisconnectCustomKeyStoreCommand } from "@aws-sdk/client-kms"; // ES Modules import
78
78
  * // const { KMSClient, DisconnectCustomKeyStoreCommand } = require("@aws-sdk/client-kms"); // CommonJS import
79
79
  * const client = new KMSClient(config);
80
- * const input = {
80
+ * const input = { // DisconnectCustomKeyStoreRequest
81
81
  * CustomKeyStoreId: "STRING_VALUE", // required
82
82
  * };
83
83
  * const command = new DisconnectCustomKeyStoreCommand(input);