@aws-sdk/client-payment-cryptography 3.882.0 → 3.886.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/README.md +40 -0
  2. package/dist-cjs/index.js +336 -169
  3. package/dist-es/PaymentCryptography.js +10 -0
  4. package/dist-es/commands/AddKeyReplicationRegionsCommand.js +22 -0
  5. package/dist-es/commands/DisableDefaultKeyReplicationRegionsCommand.js +22 -0
  6. package/dist-es/commands/EnableDefaultKeyReplicationRegionsCommand.js +22 -0
  7. package/dist-es/commands/GetDefaultKeyReplicationRegionsCommand.js +22 -0
  8. package/dist-es/commands/GetParametersForExportCommand.js +1 -2
  9. package/dist-es/commands/GetParametersForImportCommand.js +1 -2
  10. package/dist-es/commands/GetPublicKeyCertificateCommand.js +1 -2
  11. package/dist-es/commands/RemoveKeyReplicationRegionsCommand.js +22 -0
  12. package/dist-es/commands/index.js +5 -0
  13. package/dist-es/models/models_0.js +112 -134
  14. package/dist-es/protocols/Aws_json1_0.js +112 -3
  15. package/dist-types/PaymentCryptography.d.ts +36 -0
  16. package/dist-types/PaymentCryptographyClient.d.ts +7 -2
  17. package/dist-types/commands/AddKeyReplicationRegionsCommand.d.ts +135 -0
  18. package/dist-types/commands/CreateAliasCommand.d.ts +8 -8
  19. package/dist-types/commands/CreateKeyCommand.d.ts +20 -8
  20. package/dist-types/commands/DeleteAliasCommand.d.ts +7 -7
  21. package/dist-types/commands/DeleteKeyCommand.d.ts +16 -7
  22. package/dist-types/commands/DisableDefaultKeyReplicationRegionsCommand.d.ts +97 -0
  23. package/dist-types/commands/EnableDefaultKeyReplicationRegionsCommand.d.ts +97 -0
  24. package/dist-types/commands/ExportKeyCommand.d.ts +7 -7
  25. package/dist-types/commands/GetAliasCommand.d.ts +6 -6
  26. package/dist-types/commands/GetDefaultKeyReplicationRegionsCommand.d.ts +93 -0
  27. package/dist-types/commands/GetKeyCommand.d.ts +16 -7
  28. package/dist-types/commands/GetParametersForExportCommand.d.ts +8 -8
  29. package/dist-types/commands/GetParametersForImportCommand.d.ts +8 -8
  30. package/dist-types/commands/GetPublicKeyCertificateCommand.d.ts +6 -6
  31. package/dist-types/commands/ImportKeyCommand.d.ts +20 -8
  32. package/dist-types/commands/ListAliasesCommand.d.ts +6 -6
  33. package/dist-types/commands/ListKeysCommand.d.ts +8 -6
  34. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -6
  35. package/dist-types/commands/RemoveKeyReplicationRegionsCommand.d.ts +135 -0
  36. package/dist-types/commands/RestoreKeyCommand.d.ts +17 -8
  37. package/dist-types/commands/StartKeyUsageCommand.d.ts +17 -8
  38. package/dist-types/commands/StopKeyUsageCommand.d.ts +17 -8
  39. package/dist-types/commands/TagResourceCommand.d.ts +8 -8
  40. package/dist-types/commands/UntagResourceCommand.d.ts +7 -7
  41. package/dist-types/commands/UpdateAliasCommand.d.ts +7 -7
  42. package/dist-types/commands/index.d.ts +5 -0
  43. package/dist-types/models/models_0.d.ts +538 -364
  44. package/dist-types/protocols/Aws_json1_0.d.ts +45 -0
  45. package/dist-types/ts3.4/PaymentCryptography.d.ts +98 -0
  46. package/dist-types/ts3.4/PaymentCryptographyClient.d.ts +30 -0
  47. package/dist-types/ts3.4/commands/AddKeyReplicationRegionsCommand.d.ts +51 -0
  48. package/dist-types/ts3.4/commands/DisableDefaultKeyReplicationRegionsCommand.d.ts +51 -0
  49. package/dist-types/ts3.4/commands/EnableDefaultKeyReplicationRegionsCommand.d.ts +51 -0
  50. package/dist-types/ts3.4/commands/GetDefaultKeyReplicationRegionsCommand.d.ts +51 -0
  51. package/dist-types/ts3.4/commands/RemoveKeyReplicationRegionsCommand.d.ts +51 -0
  52. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  53. package/dist-types/ts3.4/models/models_0.d.ts +159 -120
  54. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +60 -0
  55. package/package.json +6 -6
package/dist-cjs/index.js CHANGED
@@ -22,6 +22,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
22
22
  var index_exports = {};
23
23
  __export(index_exports, {
24
24
  AccessDeniedException: () => AccessDeniedException,
25
+ AddKeyReplicationRegionsCommand: () => AddKeyReplicationRegionsCommand,
25
26
  ConflictException: () => ConflictException,
26
27
  CreateAliasCommand: () => CreateAliasCommand,
27
28
  CreateKeyCommand: () => CreateKeyCommand,
@@ -29,9 +30,10 @@ __export(index_exports, {
29
30
  DeleteKeyCommand: () => DeleteKeyCommand,
30
31
  DeriveKeyUsage: () => DeriveKeyUsage,
31
32
  DiffieHellmanDerivationData: () => DiffieHellmanDerivationData,
33
+ DisableDefaultKeyReplicationRegionsCommand: () => DisableDefaultKeyReplicationRegionsCommand,
34
+ EnableDefaultKeyReplicationRegionsCommand: () => EnableDefaultKeyReplicationRegionsCommand,
32
35
  ExportDiffieHellmanTr31KeyBlockFilterSensitiveLog: () => ExportDiffieHellmanTr31KeyBlockFilterSensitiveLog,
33
36
  ExportKeyCommand: () => ExportKeyCommand,
34
- ExportKeyCryptogramFilterSensitiveLog: () => ExportKeyCryptogramFilterSensitiveLog,
35
37
  ExportKeyInputFilterSensitiveLog: () => ExportKeyInputFilterSensitiveLog,
36
38
  ExportKeyMaterial: () => ExportKeyMaterial,
37
39
  ExportKeyMaterialFilterSensitiveLog: () => ExportKeyMaterialFilterSensitiveLog,
@@ -39,13 +41,11 @@ __export(index_exports, {
39
41
  ExportTr31KeyBlockFilterSensitiveLog: () => ExportTr31KeyBlockFilterSensitiveLog,
40
42
  ExportTr34KeyBlockFilterSensitiveLog: () => ExportTr34KeyBlockFilterSensitiveLog,
41
43
  GetAliasCommand: () => GetAliasCommand,
44
+ GetDefaultKeyReplicationRegionsCommand: () => GetDefaultKeyReplicationRegionsCommand,
42
45
  GetKeyCommand: () => GetKeyCommand,
43
46
  GetParametersForExportCommand: () => GetParametersForExportCommand,
44
- GetParametersForExportOutputFilterSensitiveLog: () => GetParametersForExportOutputFilterSensitiveLog,
45
47
  GetParametersForImportCommand: () => GetParametersForImportCommand,
46
- GetParametersForImportOutputFilterSensitiveLog: () => GetParametersForImportOutputFilterSensitiveLog,
47
48
  GetPublicKeyCertificateCommand: () => GetPublicKeyCertificateCommand,
48
- GetPublicKeyCertificateOutputFilterSensitiveLog: () => GetPublicKeyCertificateOutputFilterSensitiveLog,
49
49
  ImportDiffieHellmanTr31KeyBlockFilterSensitiveLog: () => ImportDiffieHellmanTr31KeyBlockFilterSensitiveLog,
50
50
  ImportKeyCommand: () => ImportKeyCommand,
51
51
  ImportKeyCryptogramFilterSensitiveLog: () => ImportKeyCryptogramFilterSensitiveLog,
@@ -64,17 +64,19 @@ __export(index_exports, {
64
64
  KeyExportability: () => KeyExportability,
65
65
  KeyMaterialType: () => KeyMaterialType,
66
66
  KeyOrigin: () => KeyOrigin,
67
+ KeyReplicationState: () => KeyReplicationState,
67
68
  KeyState: () => KeyState,
68
69
  KeyUsage: () => KeyUsage,
69
70
  ListAliasesCommand: () => ListAliasesCommand,
70
71
  ListKeysCommand: () => ListKeysCommand,
71
72
  ListTagsForResourceCommand: () => ListTagsForResourceCommand,
73
+ MultiRegionKeyType: () => MultiRegionKeyType,
72
74
  PaymentCryptography: () => PaymentCryptography,
73
75
  PaymentCryptographyClient: () => PaymentCryptographyClient,
74
76
  PaymentCryptographyServiceException: () => PaymentCryptographyServiceException,
77
+ RemoveKeyReplicationRegionsCommand: () => RemoveKeyReplicationRegionsCommand,
75
78
  ResourceNotFoundException: () => ResourceNotFoundException,
76
79
  RestoreKeyCommand: () => RestoreKeyCommand,
77
- RootCertificatePublicKeyFilterSensitiveLog: () => RootCertificatePublicKeyFilterSensitiveLog,
78
80
  ServiceQuotaExceededException: () => ServiceQuotaExceededException,
79
81
  ServiceUnavailableException: () => ServiceUnavailableException,
80
82
  StartKeyUsageCommand: () => StartKeyUsageCommand,
@@ -83,7 +85,6 @@ __export(index_exports, {
83
85
  TagResourceCommand: () => TagResourceCommand,
84
86
  ThrottlingException: () => ThrottlingException,
85
87
  Tr34KeyBlockFormat: () => Tr34KeyBlockFormat,
86
- TrustedCertificatePublicKeyFilterSensitiveLog: () => TrustedCertificatePublicKeyFilterSensitiveLog,
87
88
  UntagResourceCommand: () => UntagResourceCommand,
88
89
  UpdateAliasCommand: () => UpdateAliasCommand,
89
90
  ValidationException: () => ValidationException,
@@ -241,7 +242,7 @@ var PaymentCryptographyClient = class extends import_smithy_client.Client {
241
242
  // src/PaymentCryptography.ts
242
243
 
243
244
 
244
- // src/commands/CreateAliasCommand.ts
245
+ // src/commands/AddKeyReplicationRegionsCommand.ts
245
246
 
246
247
  var import_middleware_serde = require("@smithy/middleware-serde");
247
248
 
@@ -290,6 +291,101 @@ var AccessDeniedException = class _AccessDeniedException extends PaymentCryptogr
290
291
  this.Message = opts.Message;
291
292
  }
292
293
  };
294
+ var DeriveKeyUsage = {
295
+ TR31_B0_BASE_DERIVATION_KEY: "TR31_B0_BASE_DERIVATION_KEY",
296
+ TR31_C0_CARD_VERIFICATION_KEY: "TR31_C0_CARD_VERIFICATION_KEY",
297
+ TR31_D0_SYMMETRIC_DATA_ENCRYPTION_KEY: "TR31_D0_SYMMETRIC_DATA_ENCRYPTION_KEY",
298
+ TR31_E0_EMV_MKEY_APP_CRYPTOGRAMS: "TR31_E0_EMV_MKEY_APP_CRYPTOGRAMS",
299
+ TR31_E1_EMV_MKEY_CONFIDENTIALITY: "TR31_E1_EMV_MKEY_CONFIDENTIALITY",
300
+ TR31_E2_EMV_MKEY_INTEGRITY: "TR31_E2_EMV_MKEY_INTEGRITY",
301
+ TR31_E4_EMV_MKEY_DYNAMIC_NUMBERS: "TR31_E4_EMV_MKEY_DYNAMIC_NUMBERS",
302
+ TR31_E5_EMV_MKEY_CARD_PERSONALIZATION: "TR31_E5_EMV_MKEY_CARD_PERSONALIZATION",
303
+ TR31_E6_EMV_MKEY_OTHER: "TR31_E6_EMV_MKEY_OTHER",
304
+ TR31_K0_KEY_ENCRYPTION_KEY: "TR31_K0_KEY_ENCRYPTION_KEY",
305
+ TR31_K1_KEY_BLOCK_PROTECTION_KEY: "TR31_K1_KEY_BLOCK_PROTECTION_KEY",
306
+ TR31_M1_ISO_9797_1_MAC_KEY: "TR31_M1_ISO_9797_1_MAC_KEY",
307
+ TR31_M3_ISO_9797_3_MAC_KEY: "TR31_M3_ISO_9797_3_MAC_KEY",
308
+ TR31_M6_ISO_9797_5_CMAC_KEY: "TR31_M6_ISO_9797_5_CMAC_KEY",
309
+ TR31_M7_HMAC_KEY: "TR31_M7_HMAC_KEY",
310
+ TR31_P0_PIN_ENCRYPTION_KEY: "TR31_P0_PIN_ENCRYPTION_KEY",
311
+ TR31_P1_PIN_GENERATION_KEY: "TR31_P1_PIN_GENERATION_KEY",
312
+ TR31_V1_IBM3624_PIN_VERIFICATION_KEY: "TR31_V1_IBM3624_PIN_VERIFICATION_KEY",
313
+ TR31_V2_VISA_PIN_VERIFICATION_KEY: "TR31_V2_VISA_PIN_VERIFICATION_KEY"
314
+ };
315
+ var KeyAlgorithm = {
316
+ AES_128: "AES_128",
317
+ AES_192: "AES_192",
318
+ AES_256: "AES_256",
319
+ ECC_NIST_P256: "ECC_NIST_P256",
320
+ ECC_NIST_P384: "ECC_NIST_P384",
321
+ ECC_NIST_P521: "ECC_NIST_P521",
322
+ HMAC_SHA224: "HMAC_SHA224",
323
+ HMAC_SHA256: "HMAC_SHA256",
324
+ HMAC_SHA384: "HMAC_SHA384",
325
+ HMAC_SHA512: "HMAC_SHA512",
326
+ RSA_2048: "RSA_2048",
327
+ RSA_3072: "RSA_3072",
328
+ RSA_4096: "RSA_4096",
329
+ TDES_2KEY: "TDES_2KEY",
330
+ TDES_3KEY: "TDES_3KEY"
331
+ };
332
+ var KeyClass = {
333
+ ASYMMETRIC_KEY_PAIR: "ASYMMETRIC_KEY_PAIR",
334
+ PRIVATE_KEY: "PRIVATE_KEY",
335
+ PUBLIC_KEY: "PUBLIC_KEY",
336
+ SYMMETRIC_KEY: "SYMMETRIC_KEY"
337
+ };
338
+ var KeyUsage = {
339
+ TR31_B0_BASE_DERIVATION_KEY: "TR31_B0_BASE_DERIVATION_KEY",
340
+ TR31_C0_CARD_VERIFICATION_KEY: "TR31_C0_CARD_VERIFICATION_KEY",
341
+ TR31_D0_SYMMETRIC_DATA_ENCRYPTION_KEY: "TR31_D0_SYMMETRIC_DATA_ENCRYPTION_KEY",
342
+ TR31_D1_ASYMMETRIC_KEY_FOR_DATA_ENCRYPTION: "TR31_D1_ASYMMETRIC_KEY_FOR_DATA_ENCRYPTION",
343
+ TR31_E0_EMV_MKEY_APP_CRYPTOGRAMS: "TR31_E0_EMV_MKEY_APP_CRYPTOGRAMS",
344
+ TR31_E1_EMV_MKEY_CONFIDENTIALITY: "TR31_E1_EMV_MKEY_CONFIDENTIALITY",
345
+ TR31_E2_EMV_MKEY_INTEGRITY: "TR31_E2_EMV_MKEY_INTEGRITY",
346
+ TR31_E4_EMV_MKEY_DYNAMIC_NUMBERS: "TR31_E4_EMV_MKEY_DYNAMIC_NUMBERS",
347
+ TR31_E5_EMV_MKEY_CARD_PERSONALIZATION: "TR31_E5_EMV_MKEY_CARD_PERSONALIZATION",
348
+ TR31_E6_EMV_MKEY_OTHER: "TR31_E6_EMV_MKEY_OTHER",
349
+ TR31_K0_KEY_ENCRYPTION_KEY: "TR31_K0_KEY_ENCRYPTION_KEY",
350
+ TR31_K1_KEY_BLOCK_PROTECTION_KEY: "TR31_K1_KEY_BLOCK_PROTECTION_KEY",
351
+ TR31_K2_TR34_ASYMMETRIC_KEY: "TR31_K2_TR34_ASYMMETRIC_KEY",
352
+ TR31_K3_ASYMMETRIC_KEY_FOR_KEY_AGREEMENT: "TR31_K3_ASYMMETRIC_KEY_FOR_KEY_AGREEMENT",
353
+ TR31_M1_ISO_9797_1_MAC_KEY: "TR31_M1_ISO_9797_1_MAC_KEY",
354
+ TR31_M3_ISO_9797_3_MAC_KEY: "TR31_M3_ISO_9797_3_MAC_KEY",
355
+ TR31_M6_ISO_9797_5_CMAC_KEY: "TR31_M6_ISO_9797_5_CMAC_KEY",
356
+ TR31_M7_HMAC_KEY: "TR31_M7_HMAC_KEY",
357
+ TR31_P0_PIN_ENCRYPTION_KEY: "TR31_P0_PIN_ENCRYPTION_KEY",
358
+ TR31_P1_PIN_GENERATION_KEY: "TR31_P1_PIN_GENERATION_KEY",
359
+ TR31_S0_ASYMMETRIC_KEY_FOR_DIGITAL_SIGNATURE: "TR31_S0_ASYMMETRIC_KEY_FOR_DIGITAL_SIGNATURE",
360
+ TR31_V1_IBM3624_PIN_VERIFICATION_KEY: "TR31_V1_IBM3624_PIN_VERIFICATION_KEY",
361
+ TR31_V2_VISA_PIN_VERIFICATION_KEY: "TR31_V2_VISA_PIN_VERIFICATION_KEY"
362
+ };
363
+ var KeyCheckValueAlgorithm = {
364
+ ANSI_X9_24: "ANSI_X9_24",
365
+ CMAC: "CMAC",
366
+ HMAC: "HMAC",
367
+ SHA_1: "SHA_1"
368
+ };
369
+ var KeyOrigin = {
370
+ AWS_PAYMENT_CRYPTOGRAPHY: "AWS_PAYMENT_CRYPTOGRAPHY",
371
+ EXTERNAL: "EXTERNAL"
372
+ };
373
+ var KeyState = {
374
+ CREATE_COMPLETE: "CREATE_COMPLETE",
375
+ CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS",
376
+ DELETE_COMPLETE: "DELETE_COMPLETE",
377
+ DELETE_PENDING: "DELETE_PENDING"
378
+ };
379
+ var MultiRegionKeyType = {
380
+ PRIMARY: "PRIMARY",
381
+ REPLICA: "REPLICA"
382
+ };
383
+ var KeyReplicationState = {
384
+ DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
385
+ FAILED: "FAILED",
386
+ IN_PROGRESS: "IN_PROGRESS",
387
+ SYNCHRONIZED: "SYNCHRONIZED"
388
+ };
293
389
  var ConflictException = class _ConflictException extends PaymentCryptographyServiceException {
294
390
  static {
295
391
  __name(this, "ConflictException");
@@ -337,7 +433,7 @@ var ResourceNotFoundException = class _ResourceNotFoundException extends Payment
337
433
  name = "ResourceNotFoundException";
338
434
  $fault = "client";
339
435
  /**
340
- * <p>The string for the exception.</p>
436
+ * <p>The identifier of the resource that was not found.</p> <p>This field contains the specific resource identifier (such as a key ARN or alias name) that could not be located.</p>
341
437
  * @public
342
438
  */
343
439
  ResourceId;
@@ -374,26 +470,6 @@ var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends
374
470
  this.Message = opts.Message;
375
471
  }
376
472
  };
377
- var ServiceUnavailableException = class _ServiceUnavailableException extends PaymentCryptographyServiceException {
378
- static {
379
- __name(this, "ServiceUnavailableException");
380
- }
381
- name = "ServiceUnavailableException";
382
- $fault = "server";
383
- Message;
384
- /**
385
- * @internal
386
- */
387
- constructor(opts) {
388
- super({
389
- name: "ServiceUnavailableException",
390
- $fault: "server",
391
- ...opts
392
- });
393
- Object.setPrototypeOf(this, _ServiceUnavailableException.prototype);
394
- this.Message = opts.Message;
395
- }
396
- };
397
473
  var ThrottlingException = class _ThrottlingException extends PaymentCryptographyServiceException {
398
474
  static {
399
475
  __name(this, "ThrottlingException");
@@ -434,89 +510,25 @@ var ValidationException = class _ValidationException extends PaymentCryptography
434
510
  this.Message = opts.Message;
435
511
  }
436
512
  };
437
- var DeriveKeyUsage = {
438
- TR31_B0_BASE_DERIVATION_KEY: "TR31_B0_BASE_DERIVATION_KEY",
439
- TR31_C0_CARD_VERIFICATION_KEY: "TR31_C0_CARD_VERIFICATION_KEY",
440
- TR31_D0_SYMMETRIC_DATA_ENCRYPTION_KEY: "TR31_D0_SYMMETRIC_DATA_ENCRYPTION_KEY",
441
- TR31_E0_EMV_MKEY_APP_CRYPTOGRAMS: "TR31_E0_EMV_MKEY_APP_CRYPTOGRAMS",
442
- TR31_E1_EMV_MKEY_CONFIDENTIALITY: "TR31_E1_EMV_MKEY_CONFIDENTIALITY",
443
- TR31_E2_EMV_MKEY_INTEGRITY: "TR31_E2_EMV_MKEY_INTEGRITY",
444
- TR31_E4_EMV_MKEY_DYNAMIC_NUMBERS: "TR31_E4_EMV_MKEY_DYNAMIC_NUMBERS",
445
- TR31_E5_EMV_MKEY_CARD_PERSONALIZATION: "TR31_E5_EMV_MKEY_CARD_PERSONALIZATION",
446
- TR31_E6_EMV_MKEY_OTHER: "TR31_E6_EMV_MKEY_OTHER",
447
- TR31_K0_KEY_ENCRYPTION_KEY: "TR31_K0_KEY_ENCRYPTION_KEY",
448
- TR31_K1_KEY_BLOCK_PROTECTION_KEY: "TR31_K1_KEY_BLOCK_PROTECTION_KEY",
449
- TR31_M1_ISO_9797_1_MAC_KEY: "TR31_M1_ISO_9797_1_MAC_KEY",
450
- TR31_M3_ISO_9797_3_MAC_KEY: "TR31_M3_ISO_9797_3_MAC_KEY",
451
- TR31_M6_ISO_9797_5_CMAC_KEY: "TR31_M6_ISO_9797_5_CMAC_KEY",
452
- TR31_M7_HMAC_KEY: "TR31_M7_HMAC_KEY",
453
- TR31_P0_PIN_ENCRYPTION_KEY: "TR31_P0_PIN_ENCRYPTION_KEY",
454
- TR31_P1_PIN_GENERATION_KEY: "TR31_P1_PIN_GENERATION_KEY",
455
- TR31_V1_IBM3624_PIN_VERIFICATION_KEY: "TR31_V1_IBM3624_PIN_VERIFICATION_KEY",
456
- TR31_V2_VISA_PIN_VERIFICATION_KEY: "TR31_V2_VISA_PIN_VERIFICATION_KEY"
457
- };
458
- var KeyAlgorithm = {
459
- AES_128: "AES_128",
460
- AES_192: "AES_192",
461
- AES_256: "AES_256",
462
- ECC_NIST_P256: "ECC_NIST_P256",
463
- ECC_NIST_P384: "ECC_NIST_P384",
464
- ECC_NIST_P521: "ECC_NIST_P521",
465
- HMAC_SHA224: "HMAC_SHA224",
466
- HMAC_SHA256: "HMAC_SHA256",
467
- HMAC_SHA384: "HMAC_SHA384",
468
- HMAC_SHA512: "HMAC_SHA512",
469
- RSA_2048: "RSA_2048",
470
- RSA_3072: "RSA_3072",
471
- RSA_4096: "RSA_4096",
472
- TDES_2KEY: "TDES_2KEY",
473
- TDES_3KEY: "TDES_3KEY"
474
- };
475
- var KeyClass = {
476
- ASYMMETRIC_KEY_PAIR: "ASYMMETRIC_KEY_PAIR",
477
- PRIVATE_KEY: "PRIVATE_KEY",
478
- PUBLIC_KEY: "PUBLIC_KEY",
479
- SYMMETRIC_KEY: "SYMMETRIC_KEY"
480
- };
481
- var KeyUsage = {
482
- TR31_B0_BASE_DERIVATION_KEY: "TR31_B0_BASE_DERIVATION_KEY",
483
- TR31_C0_CARD_VERIFICATION_KEY: "TR31_C0_CARD_VERIFICATION_KEY",
484
- TR31_D0_SYMMETRIC_DATA_ENCRYPTION_KEY: "TR31_D0_SYMMETRIC_DATA_ENCRYPTION_KEY",
485
- TR31_D1_ASYMMETRIC_KEY_FOR_DATA_ENCRYPTION: "TR31_D1_ASYMMETRIC_KEY_FOR_DATA_ENCRYPTION",
486
- TR31_E0_EMV_MKEY_APP_CRYPTOGRAMS: "TR31_E0_EMV_MKEY_APP_CRYPTOGRAMS",
487
- TR31_E1_EMV_MKEY_CONFIDENTIALITY: "TR31_E1_EMV_MKEY_CONFIDENTIALITY",
488
- TR31_E2_EMV_MKEY_INTEGRITY: "TR31_E2_EMV_MKEY_INTEGRITY",
489
- TR31_E4_EMV_MKEY_DYNAMIC_NUMBERS: "TR31_E4_EMV_MKEY_DYNAMIC_NUMBERS",
490
- TR31_E5_EMV_MKEY_CARD_PERSONALIZATION: "TR31_E5_EMV_MKEY_CARD_PERSONALIZATION",
491
- TR31_E6_EMV_MKEY_OTHER: "TR31_E6_EMV_MKEY_OTHER",
492
- TR31_K0_KEY_ENCRYPTION_KEY: "TR31_K0_KEY_ENCRYPTION_KEY",
493
- TR31_K1_KEY_BLOCK_PROTECTION_KEY: "TR31_K1_KEY_BLOCK_PROTECTION_KEY",
494
- TR31_K2_TR34_ASYMMETRIC_KEY: "TR31_K2_TR34_ASYMMETRIC_KEY",
495
- TR31_K3_ASYMMETRIC_KEY_FOR_KEY_AGREEMENT: "TR31_K3_ASYMMETRIC_KEY_FOR_KEY_AGREEMENT",
496
- TR31_M1_ISO_9797_1_MAC_KEY: "TR31_M1_ISO_9797_1_MAC_KEY",
497
- TR31_M3_ISO_9797_3_MAC_KEY: "TR31_M3_ISO_9797_3_MAC_KEY",
498
- TR31_M6_ISO_9797_5_CMAC_KEY: "TR31_M6_ISO_9797_5_CMAC_KEY",
499
- TR31_M7_HMAC_KEY: "TR31_M7_HMAC_KEY",
500
- TR31_P0_PIN_ENCRYPTION_KEY: "TR31_P0_PIN_ENCRYPTION_KEY",
501
- TR31_P1_PIN_GENERATION_KEY: "TR31_P1_PIN_GENERATION_KEY",
502
- TR31_S0_ASYMMETRIC_KEY_FOR_DIGITAL_SIGNATURE: "TR31_S0_ASYMMETRIC_KEY_FOR_DIGITAL_SIGNATURE",
503
- TR31_V1_IBM3624_PIN_VERIFICATION_KEY: "TR31_V1_IBM3624_PIN_VERIFICATION_KEY",
504
- TR31_V2_VISA_PIN_VERIFICATION_KEY: "TR31_V2_VISA_PIN_VERIFICATION_KEY"
505
- };
506
- var KeyCheckValueAlgorithm = {
507
- ANSI_X9_24: "ANSI_X9_24",
508
- CMAC: "CMAC",
509
- HMAC: "HMAC"
510
- };
511
- var KeyOrigin = {
512
- AWS_PAYMENT_CRYPTOGRAPHY: "AWS_PAYMENT_CRYPTOGRAPHY",
513
- EXTERNAL: "EXTERNAL"
514
- };
515
- var KeyState = {
516
- CREATE_COMPLETE: "CREATE_COMPLETE",
517
- CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS",
518
- DELETE_COMPLETE: "DELETE_COMPLETE",
519
- DELETE_PENDING: "DELETE_PENDING"
513
+ var ServiceUnavailableException = class _ServiceUnavailableException extends PaymentCryptographyServiceException {
514
+ static {
515
+ __name(this, "ServiceUnavailableException");
516
+ }
517
+ name = "ServiceUnavailableException";
518
+ $fault = "server";
519
+ Message;
520
+ /**
521
+ * @internal
522
+ */
523
+ constructor(opts) {
524
+ super({
525
+ name: "ServiceUnavailableException",
526
+ $fault: "server",
527
+ ...opts
528
+ });
529
+ Object.setPrototypeOf(this, _ServiceUnavailableException.prototype);
530
+ this.Message = opts.Message;
531
+ }
520
532
  };
521
533
  var DiffieHellmanDerivationData;
522
534
  ((DiffieHellmanDerivationData3) => {
@@ -601,28 +613,21 @@ var KeyBlockHeadersFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
601
613
  }), "KeyBlockHeadersFilterSensitiveLog");
602
614
  var ExportDiffieHellmanTr31KeyBlockFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
603
615
  ...obj,
604
- ...obj.PublicKeyCertificate && { PublicKeyCertificate: import_smithy_client.SENSITIVE_STRING },
605
616
  ...obj.DerivationData && { DerivationData: obj.DerivationData },
606
617
  ...obj.KeyBlockHeaders && { KeyBlockHeaders: KeyBlockHeadersFilterSensitiveLog(obj.KeyBlockHeaders) }
607
618
  }), "ExportDiffieHellmanTr31KeyBlockFilterSensitiveLog");
608
- var ExportKeyCryptogramFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
609
- ...obj,
610
- ...obj.WrappingKeyCertificate && { WrappingKeyCertificate: import_smithy_client.SENSITIVE_STRING }
611
- }), "ExportKeyCryptogramFilterSensitiveLog");
612
619
  var ExportTr31KeyBlockFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
613
620
  ...obj,
614
621
  ...obj.KeyBlockHeaders && { KeyBlockHeaders: KeyBlockHeadersFilterSensitiveLog(obj.KeyBlockHeaders) }
615
622
  }), "ExportTr31KeyBlockFilterSensitiveLog");
616
623
  var ExportTr34KeyBlockFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
617
624
  ...obj,
618
- ...obj.WrappingKeyCertificate && { WrappingKeyCertificate: import_smithy_client.SENSITIVE_STRING },
619
625
  ...obj.KeyBlockHeaders && { KeyBlockHeaders: KeyBlockHeadersFilterSensitiveLog(obj.KeyBlockHeaders) }
620
626
  }), "ExportTr34KeyBlockFilterSensitiveLog");
621
627
  var ExportKeyMaterialFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
622
628
  if (obj.Tr31KeyBlock !== void 0) return { Tr31KeyBlock: ExportTr31KeyBlockFilterSensitiveLog(obj.Tr31KeyBlock) };
623
629
  if (obj.Tr34KeyBlock !== void 0) return { Tr34KeyBlock: ExportTr34KeyBlockFilterSensitiveLog(obj.Tr34KeyBlock) };
624
- if (obj.KeyCryptogram !== void 0)
625
- return { KeyCryptogram: ExportKeyCryptogramFilterSensitiveLog(obj.KeyCryptogram) };
630
+ if (obj.KeyCryptogram !== void 0) return { KeyCryptogram: obj.KeyCryptogram };
626
631
  if (obj.DiffieHellmanTr31KeyBlock !== void 0)
627
632
  return {
628
633
  DiffieHellmanTr31KeyBlock: ExportDiffieHellmanTr31KeyBlockFilterSensitiveLog(obj.DiffieHellmanTr31KeyBlock)
@@ -641,24 +646,8 @@ var ExportKeyOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
641
646
  ...obj,
642
647
  ...obj.WrappedKey && { WrappedKey: WrappedKeyFilterSensitiveLog(obj.WrappedKey) }
643
648
  }), "ExportKeyOutputFilterSensitiveLog");
644
- var GetParametersForExportOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
645
- ...obj,
646
- ...obj.SigningKeyCertificate && { SigningKeyCertificate: import_smithy_client.SENSITIVE_STRING },
647
- ...obj.SigningKeyCertificateChain && { SigningKeyCertificateChain: import_smithy_client.SENSITIVE_STRING }
648
- }), "GetParametersForExportOutputFilterSensitiveLog");
649
- var GetParametersForImportOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
650
- ...obj,
651
- ...obj.WrappingKeyCertificate && { WrappingKeyCertificate: import_smithy_client.SENSITIVE_STRING },
652
- ...obj.WrappingKeyCertificateChain && { WrappingKeyCertificateChain: import_smithy_client.SENSITIVE_STRING }
653
- }), "GetParametersForImportOutputFilterSensitiveLog");
654
- var GetPublicKeyCertificateOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
655
- ...obj,
656
- ...obj.KeyCertificate && { KeyCertificate: import_smithy_client.SENSITIVE_STRING },
657
- ...obj.KeyCertificateChain && { KeyCertificateChain: import_smithy_client.SENSITIVE_STRING }
658
- }), "GetPublicKeyCertificateOutputFilterSensitiveLog");
659
649
  var ImportDiffieHellmanTr31KeyBlockFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
660
650
  ...obj,
661
- ...obj.PublicKeyCertificate && { PublicKeyCertificate: import_smithy_client.SENSITIVE_STRING },
662
651
  ...obj.DerivationData && { DerivationData: obj.DerivationData },
663
652
  ...obj.WrappedKeyBlock && { WrappedKeyBlock: import_smithy_client.SENSITIVE_STRING }
664
653
  }), "ImportDiffieHellmanTr31KeyBlockFilterSensitiveLog");
@@ -666,30 +655,18 @@ var ImportKeyCryptogramFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
666
655
  ...obj,
667
656
  ...obj.WrappedKeyCryptogram && { WrappedKeyCryptogram: import_smithy_client.SENSITIVE_STRING }
668
657
  }), "ImportKeyCryptogramFilterSensitiveLog");
669
- var RootCertificatePublicKeyFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
670
- ...obj,
671
- ...obj.PublicKeyCertificate && { PublicKeyCertificate: import_smithy_client.SENSITIVE_STRING }
672
- }), "RootCertificatePublicKeyFilterSensitiveLog");
673
658
  var ImportTr31KeyBlockFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
674
659
  ...obj,
675
660
  ...obj.WrappedKeyBlock && { WrappedKeyBlock: import_smithy_client.SENSITIVE_STRING }
676
661
  }), "ImportTr31KeyBlockFilterSensitiveLog");
677
662
  var ImportTr34KeyBlockFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
678
663
  ...obj,
679
- ...obj.SigningKeyCertificate && { SigningKeyCertificate: import_smithy_client.SENSITIVE_STRING },
680
664
  ...obj.WrappedKeyBlock && { WrappedKeyBlock: import_smithy_client.SENSITIVE_STRING }
681
665
  }), "ImportTr34KeyBlockFilterSensitiveLog");
682
- var TrustedCertificatePublicKeyFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
683
- ...obj,
684
- ...obj.PublicKeyCertificate && { PublicKeyCertificate: import_smithy_client.SENSITIVE_STRING }
685
- }), "TrustedCertificatePublicKeyFilterSensitiveLog");
686
666
  var ImportKeyMaterialFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
687
- if (obj.RootCertificatePublicKey !== void 0)
688
- return { RootCertificatePublicKey: RootCertificatePublicKeyFilterSensitiveLog(obj.RootCertificatePublicKey) };
667
+ if (obj.RootCertificatePublicKey !== void 0) return { RootCertificatePublicKey: obj.RootCertificatePublicKey };
689
668
  if (obj.TrustedCertificatePublicKey !== void 0)
690
- return {
691
- TrustedCertificatePublicKey: TrustedCertificatePublicKeyFilterSensitiveLog(obj.TrustedCertificatePublicKey)
692
- };
669
+ return { TrustedCertificatePublicKey: obj.TrustedCertificatePublicKey };
693
670
  if (obj.Tr31KeyBlock !== void 0) return { Tr31KeyBlock: ImportTr31KeyBlockFilterSensitiveLog(obj.Tr31KeyBlock) };
694
671
  if (obj.Tr34KeyBlock !== void 0) return { Tr34KeyBlock: ImportTr34KeyBlockFilterSensitiveLog(obj.Tr34KeyBlock) };
695
672
  if (obj.KeyCryptogram !== void 0)
@@ -706,6 +683,12 @@ var ImportKeyInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
706
683
  }), "ImportKeyInputFilterSensitiveLog");
707
684
 
708
685
  // src/protocols/Aws_json1_0.ts
686
+ var se_AddKeyReplicationRegionsCommand = /* @__PURE__ */ __name(async (input, context) => {
687
+ const headers = sharedHeaders("AddKeyReplicationRegions");
688
+ let body;
689
+ body = JSON.stringify((0, import_smithy_client._json)(input));
690
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
691
+ }, "se_AddKeyReplicationRegionsCommand");
709
692
  var se_CreateAliasCommand = /* @__PURE__ */ __name(async (input, context) => {
710
693
  const headers = sharedHeaders("CreateAlias");
711
694
  let body;
@@ -730,6 +713,18 @@ var se_DeleteKeyCommand = /* @__PURE__ */ __name(async (input, context) => {
730
713
  body = JSON.stringify((0, import_smithy_client._json)(input));
731
714
  return buildHttpRpcRequest(context, headers, "/", void 0, body);
732
715
  }, "se_DeleteKeyCommand");
716
+ var se_DisableDefaultKeyReplicationRegionsCommand = /* @__PURE__ */ __name(async (input, context) => {
717
+ const headers = sharedHeaders("DisableDefaultKeyReplicationRegions");
718
+ let body;
719
+ body = JSON.stringify((0, import_smithy_client._json)(input));
720
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
721
+ }, "se_DisableDefaultKeyReplicationRegionsCommand");
722
+ var se_EnableDefaultKeyReplicationRegionsCommand = /* @__PURE__ */ __name(async (input, context) => {
723
+ const headers = sharedHeaders("EnableDefaultKeyReplicationRegions");
724
+ let body;
725
+ body = JSON.stringify((0, import_smithy_client._json)(input));
726
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
727
+ }, "se_EnableDefaultKeyReplicationRegionsCommand");
733
728
  var se_ExportKeyCommand = /* @__PURE__ */ __name(async (input, context) => {
734
729
  const headers = sharedHeaders("ExportKey");
735
730
  let body;
@@ -742,6 +737,12 @@ var se_GetAliasCommand = /* @__PURE__ */ __name(async (input, context) => {
742
737
  body = JSON.stringify((0, import_smithy_client._json)(input));
743
738
  return buildHttpRpcRequest(context, headers, "/", void 0, body);
744
739
  }, "se_GetAliasCommand");
740
+ var se_GetDefaultKeyReplicationRegionsCommand = /* @__PURE__ */ __name(async (input, context) => {
741
+ const headers = sharedHeaders("GetDefaultKeyReplicationRegions");
742
+ let body;
743
+ body = JSON.stringify((0, import_smithy_client._json)(input));
744
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
745
+ }, "se_GetDefaultKeyReplicationRegionsCommand");
745
746
  var se_GetKeyCommand = /* @__PURE__ */ __name(async (input, context) => {
746
747
  const headers = sharedHeaders("GetKey");
747
748
  let body;
@@ -790,6 +791,12 @@ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context
790
791
  body = JSON.stringify((0, import_smithy_client._json)(input));
791
792
  return buildHttpRpcRequest(context, headers, "/", void 0, body);
792
793
  }, "se_ListTagsForResourceCommand");
794
+ var se_RemoveKeyReplicationRegionsCommand = /* @__PURE__ */ __name(async (input, context) => {
795
+ const headers = sharedHeaders("RemoveKeyReplicationRegions");
796
+ let body;
797
+ body = JSON.stringify((0, import_smithy_client._json)(input));
798
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
799
+ }, "se_RemoveKeyReplicationRegionsCommand");
793
800
  var se_RestoreKeyCommand = /* @__PURE__ */ __name(async (input, context) => {
794
801
  const headers = sharedHeaders("RestoreKey");
795
802
  let body;
@@ -826,6 +833,19 @@ var se_UpdateAliasCommand = /* @__PURE__ */ __name(async (input, context) => {
826
833
  body = JSON.stringify((0, import_smithy_client._json)(input));
827
834
  return buildHttpRpcRequest(context, headers, "/", void 0, body);
828
835
  }, "se_UpdateAliasCommand");
836
+ var de_AddKeyReplicationRegionsCommand = /* @__PURE__ */ __name(async (output, context) => {
837
+ if (output.statusCode >= 300) {
838
+ return de_CommandError(output, context);
839
+ }
840
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
841
+ let contents = {};
842
+ contents = de_AddKeyReplicationRegionsOutput(data, context);
843
+ const response = {
844
+ $metadata: deserializeMetadata(output),
845
+ ...contents
846
+ };
847
+ return response;
848
+ }, "de_AddKeyReplicationRegionsCommand");
829
849
  var de_CreateAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
830
850
  if (output.statusCode >= 300) {
831
851
  return de_CommandError(output, context);
@@ -878,6 +898,32 @@ var de_DeleteKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
878
898
  };
879
899
  return response;
880
900
  }, "de_DeleteKeyCommand");
901
+ var de_DisableDefaultKeyReplicationRegionsCommand = /* @__PURE__ */ __name(async (output, context) => {
902
+ if (output.statusCode >= 300) {
903
+ return de_CommandError(output, context);
904
+ }
905
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
906
+ let contents = {};
907
+ contents = (0, import_smithy_client._json)(data);
908
+ const response = {
909
+ $metadata: deserializeMetadata(output),
910
+ ...contents
911
+ };
912
+ return response;
913
+ }, "de_DisableDefaultKeyReplicationRegionsCommand");
914
+ var de_EnableDefaultKeyReplicationRegionsCommand = /* @__PURE__ */ __name(async (output, context) => {
915
+ if (output.statusCode >= 300) {
916
+ return de_CommandError(output, context);
917
+ }
918
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
919
+ let contents = {};
920
+ contents = (0, import_smithy_client._json)(data);
921
+ const response = {
922
+ $metadata: deserializeMetadata(output),
923
+ ...contents
924
+ };
925
+ return response;
926
+ }, "de_EnableDefaultKeyReplicationRegionsCommand");
881
927
  var de_ExportKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
882
928
  if (output.statusCode >= 300) {
883
929
  return de_CommandError(output, context);
@@ -904,6 +950,19 @@ var de_GetAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
904
950
  };
905
951
  return response;
906
952
  }, "de_GetAliasCommand");
953
+ var de_GetDefaultKeyReplicationRegionsCommand = /* @__PURE__ */ __name(async (output, context) => {
954
+ if (output.statusCode >= 300) {
955
+ return de_CommandError(output, context);
956
+ }
957
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
958
+ let contents = {};
959
+ contents = (0, import_smithy_client._json)(data);
960
+ const response = {
961
+ $metadata: deserializeMetadata(output),
962
+ ...contents
963
+ };
964
+ return response;
965
+ }, "de_GetDefaultKeyReplicationRegionsCommand");
907
966
  var de_GetKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
908
967
  if (output.statusCode >= 300) {
909
968
  return de_CommandError(output, context);
@@ -1008,6 +1067,19 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
1008
1067
  };
1009
1068
  return response;
1010
1069
  }, "de_ListTagsForResourceCommand");
1070
+ var de_RemoveKeyReplicationRegionsCommand = /* @__PURE__ */ __name(async (output, context) => {
1071
+ if (output.statusCode >= 300) {
1072
+ return de_CommandError(output, context);
1073
+ }
1074
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1075
+ let contents = {};
1076
+ contents = de_RemoveKeyReplicationRegionsOutput(data, context);
1077
+ const response = {
1078
+ $metadata: deserializeMetadata(output),
1079
+ ...contents
1080
+ };
1081
+ return response;
1082
+ }, "de_RemoveKeyReplicationRegionsCommand");
1011
1083
  var de_RestoreKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
1012
1084
  if (output.statusCode >= 300) {
1013
1085
  return de_CommandError(output, context);
@@ -1108,15 +1180,15 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1108
1180
  case "ServiceQuotaExceededException":
1109
1181
  case "com.amazonaws.paymentcryptography#ServiceQuotaExceededException":
1110
1182
  throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1111
- case "ServiceUnavailableException":
1112
- case "com.amazonaws.paymentcryptography#ServiceUnavailableException":
1113
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1114
1183
  case "ThrottlingException":
1115
1184
  case "com.amazonaws.paymentcryptography#ThrottlingException":
1116
1185
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
1117
1186
  case "ValidationException":
1118
1187
  case "com.amazonaws.paymentcryptography#ValidationException":
1119
1188
  throw await de_ValidationExceptionRes(parsedOutput, context);
1189
+ case "ServiceUnavailableException":
1190
+ case "com.amazonaws.paymentcryptography#ServiceUnavailableException":
1191
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1120
1192
  default:
1121
1193
  const parsedBody = parsedOutput.body;
1122
1194
  return throwDefaultError({
@@ -1198,6 +1270,11 @@ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, cont
1198
1270
  });
1199
1271
  return (0, import_smithy_client.decorateServiceException)(exception, body);
1200
1272
  }, "de_ValidationExceptionRes");
1273
+ var de_AddKeyReplicationRegionsOutput = /* @__PURE__ */ __name((output, context) => {
1274
+ return (0, import_smithy_client.take)(output, {
1275
+ Key: /* @__PURE__ */ __name((_) => de_Key(_, context), "Key")
1276
+ });
1277
+ }, "de_AddKeyReplicationRegionsOutput");
1201
1278
  var de_CreateKeyOutput = /* @__PURE__ */ __name((output, context) => {
1202
1279
  return (0, import_smithy_client.take)(output, {
1203
1280
  Key: /* @__PURE__ */ __name((_) => de_Key(_, context), "Key")
@@ -1250,10 +1327,19 @@ var de_Key = /* @__PURE__ */ __name((output, context) => {
1250
1327
  KeyCheckValueAlgorithm: import_smithy_client.expectString,
1251
1328
  KeyOrigin: import_smithy_client.expectString,
1252
1329
  KeyState: import_smithy_client.expectString,
1330
+ MultiRegionKeyType: import_smithy_client.expectString,
1331
+ PrimaryRegion: import_smithy_client.expectString,
1332
+ ReplicationStatus: import_smithy_client._json,
1253
1333
  UsageStartTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "UsageStartTimestamp"),
1254
- UsageStopTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "UsageStopTimestamp")
1334
+ UsageStopTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "UsageStopTimestamp"),
1335
+ UsingDefaultReplicationRegions: import_smithy_client.expectBoolean
1255
1336
  });
1256
1337
  }, "de_Key");
1338
+ var de_RemoveKeyReplicationRegionsOutput = /* @__PURE__ */ __name((output, context) => {
1339
+ return (0, import_smithy_client.take)(output, {
1340
+ Key: /* @__PURE__ */ __name((_) => de_Key(_, context), "Key")
1341
+ });
1342
+ }, "de_RemoveKeyReplicationRegionsOutput");
1257
1343
  var de_RestoreKeyOutput = /* @__PURE__ */ __name((output, context) => {
1258
1344
  return (0, import_smithy_client.take)(output, {
1259
1345
  Key: /* @__PURE__ */ __name((_) => de_Key(_, context), "Key")
@@ -1302,7 +1388,22 @@ function sharedHeaders(operation) {
1302
1388
  }
1303
1389
  __name(sharedHeaders, "sharedHeaders");
1304
1390
 
1391
+ // src/commands/AddKeyReplicationRegionsCommand.ts
1392
+ var AddKeyReplicationRegionsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1393
+ return [
1394
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1395
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1396
+ ];
1397
+ }).s("PaymentCryptographyControlPlane", "AddKeyReplicationRegions", {}).n("PaymentCryptographyClient", "AddKeyReplicationRegionsCommand").f(void 0, void 0).ser(se_AddKeyReplicationRegionsCommand).de(de_AddKeyReplicationRegionsCommand).build() {
1398
+ static {
1399
+ __name(this, "AddKeyReplicationRegionsCommand");
1400
+ }
1401
+ };
1402
+
1305
1403
  // src/commands/CreateAliasCommand.ts
1404
+
1405
+
1406
+
1306
1407
  var CreateAliasCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1307
1408
  return [
1308
1409
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
@@ -1359,6 +1460,36 @@ var DeleteKeyCommand = class extends import_smithy_client.Command.classBuilder()
1359
1460
  }
1360
1461
  };
1361
1462
 
1463
+ // src/commands/DisableDefaultKeyReplicationRegionsCommand.ts
1464
+
1465
+
1466
+
1467
+ var DisableDefaultKeyReplicationRegionsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1468
+ return [
1469
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1470
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1471
+ ];
1472
+ }).s("PaymentCryptographyControlPlane", "DisableDefaultKeyReplicationRegions", {}).n("PaymentCryptographyClient", "DisableDefaultKeyReplicationRegionsCommand").f(void 0, void 0).ser(se_DisableDefaultKeyReplicationRegionsCommand).de(de_DisableDefaultKeyReplicationRegionsCommand).build() {
1473
+ static {
1474
+ __name(this, "DisableDefaultKeyReplicationRegionsCommand");
1475
+ }
1476
+ };
1477
+
1478
+ // src/commands/EnableDefaultKeyReplicationRegionsCommand.ts
1479
+
1480
+
1481
+
1482
+ var EnableDefaultKeyReplicationRegionsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1483
+ return [
1484
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1485
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1486
+ ];
1487
+ }).s("PaymentCryptographyControlPlane", "EnableDefaultKeyReplicationRegions", {}).n("PaymentCryptographyClient", "EnableDefaultKeyReplicationRegionsCommand").f(void 0, void 0).ser(se_EnableDefaultKeyReplicationRegionsCommand).de(de_EnableDefaultKeyReplicationRegionsCommand).build() {
1488
+ static {
1489
+ __name(this, "EnableDefaultKeyReplicationRegionsCommand");
1490
+ }
1491
+ };
1492
+
1362
1493
  // src/commands/ExportKeyCommand.ts
1363
1494
 
1364
1495
 
@@ -1389,6 +1520,21 @@ var GetAliasCommand = class extends import_smithy_client.Command.classBuilder().
1389
1520
  }
1390
1521
  };
1391
1522
 
1523
+ // src/commands/GetDefaultKeyReplicationRegionsCommand.ts
1524
+
1525
+
1526
+
1527
+ var GetDefaultKeyReplicationRegionsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1528
+ return [
1529
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1530
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1531
+ ];
1532
+ }).s("PaymentCryptographyControlPlane", "GetDefaultKeyReplicationRegions", {}).n("PaymentCryptographyClient", "GetDefaultKeyReplicationRegionsCommand").f(void 0, void 0).ser(se_GetDefaultKeyReplicationRegionsCommand).de(de_GetDefaultKeyReplicationRegionsCommand).build() {
1533
+ static {
1534
+ __name(this, "GetDefaultKeyReplicationRegionsCommand");
1535
+ }
1536
+ };
1537
+
1392
1538
  // src/commands/GetKeyCommand.ts
1393
1539
 
1394
1540
 
@@ -1413,7 +1559,7 @@ var GetParametersForExportCommand = class extends import_smithy_client.Command.c
1413
1559
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1414
1560
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1415
1561
  ];
1416
- }).s("PaymentCryptographyControlPlane", "GetParametersForExport", {}).n("PaymentCryptographyClient", "GetParametersForExportCommand").f(void 0, GetParametersForExportOutputFilterSensitiveLog).ser(se_GetParametersForExportCommand).de(de_GetParametersForExportCommand).build() {
1562
+ }).s("PaymentCryptographyControlPlane", "GetParametersForExport", {}).n("PaymentCryptographyClient", "GetParametersForExportCommand").f(void 0, void 0).ser(se_GetParametersForExportCommand).de(de_GetParametersForExportCommand).build() {
1417
1563
  static {
1418
1564
  __name(this, "GetParametersForExportCommand");
1419
1565
  }
@@ -1428,7 +1574,7 @@ var GetParametersForImportCommand = class extends import_smithy_client.Command.c
1428
1574
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1429
1575
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1430
1576
  ];
1431
- }).s("PaymentCryptographyControlPlane", "GetParametersForImport", {}).n("PaymentCryptographyClient", "GetParametersForImportCommand").f(void 0, GetParametersForImportOutputFilterSensitiveLog).ser(se_GetParametersForImportCommand).de(de_GetParametersForImportCommand).build() {
1577
+ }).s("PaymentCryptographyControlPlane", "GetParametersForImport", {}).n("PaymentCryptographyClient", "GetParametersForImportCommand").f(void 0, void 0).ser(se_GetParametersForImportCommand).de(de_GetParametersForImportCommand).build() {
1432
1578
  static {
1433
1579
  __name(this, "GetParametersForImportCommand");
1434
1580
  }
@@ -1443,7 +1589,7 @@ var GetPublicKeyCertificateCommand = class extends import_smithy_client.Command.
1443
1589
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1444
1590
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1445
1591
  ];
1446
- }).s("PaymentCryptographyControlPlane", "GetPublicKeyCertificate", {}).n("PaymentCryptographyClient", "GetPublicKeyCertificateCommand").f(void 0, GetPublicKeyCertificateOutputFilterSensitiveLog).ser(se_GetPublicKeyCertificateCommand).de(de_GetPublicKeyCertificateCommand).build() {
1592
+ }).s("PaymentCryptographyControlPlane", "GetPublicKeyCertificate", {}).n("PaymentCryptographyClient", "GetPublicKeyCertificateCommand").f(void 0, void 0).ser(se_GetPublicKeyCertificateCommand).de(de_GetPublicKeyCertificateCommand).build() {
1447
1593
  static {
1448
1594
  __name(this, "GetPublicKeyCertificateCommand");
1449
1595
  }
@@ -1509,6 +1655,21 @@ var ListTagsForResourceCommand = class extends import_smithy_client.Command.clas
1509
1655
  }
1510
1656
  };
1511
1657
 
1658
+ // src/commands/RemoveKeyReplicationRegionsCommand.ts
1659
+
1660
+
1661
+
1662
+ var RemoveKeyReplicationRegionsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1663
+ return [
1664
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1665
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1666
+ ];
1667
+ }).s("PaymentCryptographyControlPlane", "RemoveKeyReplicationRegions", {}).n("PaymentCryptographyClient", "RemoveKeyReplicationRegionsCommand").f(void 0, void 0).ser(se_RemoveKeyReplicationRegionsCommand).de(de_RemoveKeyReplicationRegionsCommand).build() {
1668
+ static {
1669
+ __name(this, "RemoveKeyReplicationRegionsCommand");
1670
+ }
1671
+ };
1672
+
1512
1673
  // src/commands/RestoreKeyCommand.ts
1513
1674
 
1514
1675
 
@@ -1601,12 +1762,16 @@ var UpdateAliasCommand = class extends import_smithy_client.Command.classBuilder
1601
1762
 
1602
1763
  // src/PaymentCryptography.ts
1603
1764
  var commands = {
1765
+ AddKeyReplicationRegionsCommand,
1604
1766
  CreateAliasCommand,
1605
1767
  CreateKeyCommand,
1606
1768
  DeleteAliasCommand,
1607
1769
  DeleteKeyCommand,
1770
+ DisableDefaultKeyReplicationRegionsCommand,
1771
+ EnableDefaultKeyReplicationRegionsCommand,
1608
1772
  ExportKeyCommand,
1609
1773
  GetAliasCommand,
1774
+ GetDefaultKeyReplicationRegionsCommand,
1610
1775
  GetKeyCommand,
1611
1776
  GetParametersForExportCommand,
1612
1777
  GetParametersForImportCommand,
@@ -1615,6 +1780,7 @@ var commands = {
1615
1780
  ListAliasesCommand,
1616
1781
  ListKeysCommand,
1617
1782
  ListTagsForResourceCommand,
1783
+ RemoveKeyReplicationRegionsCommand,
1618
1784
  RestoreKeyCommand,
1619
1785
  StartKeyUsageCommand,
1620
1786
  StopKeyUsageCommand,
@@ -1648,12 +1814,16 @@ var paginateListTagsForResource = (0, import_core.createPaginator)(PaymentCrypto
1648
1814
  PaymentCryptographyClient,
1649
1815
  PaymentCryptography,
1650
1816
  $Command,
1817
+ AddKeyReplicationRegionsCommand,
1651
1818
  CreateAliasCommand,
1652
1819
  CreateKeyCommand,
1653
1820
  DeleteAliasCommand,
1654
1821
  DeleteKeyCommand,
1822
+ DisableDefaultKeyReplicationRegionsCommand,
1823
+ EnableDefaultKeyReplicationRegionsCommand,
1655
1824
  ExportKeyCommand,
1656
1825
  GetAliasCommand,
1826
+ GetDefaultKeyReplicationRegionsCommand,
1657
1827
  GetKeyCommand,
1658
1828
  GetParametersForExportCommand,
1659
1829
  GetParametersForImportCommand,
@@ -1662,6 +1832,7 @@ var paginateListTagsForResource = (0, import_core.createPaginator)(PaymentCrypto
1662
1832
  ListAliasesCommand,
1663
1833
  ListKeysCommand,
1664
1834
  ListTagsForResourceCommand,
1835
+ RemoveKeyReplicationRegionsCommand,
1665
1836
  RestoreKeyCommand,
1666
1837
  StartKeyUsageCommand,
1667
1838
  StopKeyUsageCommand,
@@ -1672,13 +1843,6 @@ var paginateListTagsForResource = (0, import_core.createPaginator)(PaymentCrypto
1672
1843
  paginateListKeys,
1673
1844
  paginateListTagsForResource,
1674
1845
  AccessDeniedException,
1675
- ConflictException,
1676
- InternalServerException,
1677
- ResourceNotFoundException,
1678
- ServiceQuotaExceededException,
1679
- ServiceUnavailableException,
1680
- ThrottlingException,
1681
- ValidationException,
1682
1846
  DeriveKeyUsage,
1683
1847
  KeyAlgorithm,
1684
1848
  KeyClass,
@@ -1686,6 +1850,15 @@ var paginateListTagsForResource = (0, import_core.createPaginator)(PaymentCrypto
1686
1850
  KeyCheckValueAlgorithm,
1687
1851
  KeyOrigin,
1688
1852
  KeyState,
1853
+ MultiRegionKeyType,
1854
+ KeyReplicationState,
1855
+ ConflictException,
1856
+ InternalServerException,
1857
+ ResourceNotFoundException,
1858
+ ServiceQuotaExceededException,
1859
+ ThrottlingException,
1860
+ ValidationException,
1861
+ ServiceUnavailableException,
1689
1862
  DiffieHellmanDerivationData,
1690
1863
  SymmetricKeyAlgorithm,
1691
1864
  KeyExportability,
@@ -1699,22 +1872,16 @@ var paginateListTagsForResource = (0, import_core.createPaginator)(PaymentCrypto
1699
1872
  ImportKeyMaterial,
1700
1873
  KeyBlockHeadersFilterSensitiveLog,
1701
1874
  ExportDiffieHellmanTr31KeyBlockFilterSensitiveLog,
1702
- ExportKeyCryptogramFilterSensitiveLog,
1703
1875
  ExportTr31KeyBlockFilterSensitiveLog,
1704
1876
  ExportTr34KeyBlockFilterSensitiveLog,
1705
1877
  ExportKeyMaterialFilterSensitiveLog,
1706
1878
  ExportKeyInputFilterSensitiveLog,
1707
1879
  WrappedKeyFilterSensitiveLog,
1708
1880
  ExportKeyOutputFilterSensitiveLog,
1709
- GetParametersForExportOutputFilterSensitiveLog,
1710
- GetParametersForImportOutputFilterSensitiveLog,
1711
- GetPublicKeyCertificateOutputFilterSensitiveLog,
1712
1881
  ImportDiffieHellmanTr31KeyBlockFilterSensitiveLog,
1713
1882
  ImportKeyCryptogramFilterSensitiveLog,
1714
- RootCertificatePublicKeyFilterSensitiveLog,
1715
1883
  ImportTr31KeyBlockFilterSensitiveLog,
1716
1884
  ImportTr34KeyBlockFilterSensitiveLog,
1717
- TrustedCertificatePublicKeyFilterSensitiveLog,
1718
1885
  ImportKeyMaterialFilterSensitiveLog,
1719
1886
  ImportKeyInputFilterSensitiveLog
1720
1887
  });