@aws-sdk/client-payment-cryptography 3.927.0 → 3.929.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 (50) hide show
  1. package/dist-cjs/index.js +762 -1031
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/PaymentCryptographyClient.js +2 -0
  4. package/dist-es/commands/AddKeyReplicationRegionsCommand.js +3 -9
  5. package/dist-es/commands/CreateAliasCommand.js +3 -9
  6. package/dist-es/commands/CreateKeyCommand.js +3 -9
  7. package/dist-es/commands/DeleteAliasCommand.js +3 -9
  8. package/dist-es/commands/DeleteKeyCommand.js +3 -9
  9. package/dist-es/commands/DisableDefaultKeyReplicationRegionsCommand.js +3 -9
  10. package/dist-es/commands/EnableDefaultKeyReplicationRegionsCommand.js +3 -9
  11. package/dist-es/commands/ExportKeyCommand.js +3 -10
  12. package/dist-es/commands/GetAliasCommand.js +3 -9
  13. package/dist-es/commands/GetCertificateSigningRequestCommand.js +3 -10
  14. package/dist-es/commands/GetDefaultKeyReplicationRegionsCommand.js +3 -9
  15. package/dist-es/commands/GetKeyCommand.js +3 -9
  16. package/dist-es/commands/GetParametersForExportCommand.js +3 -9
  17. package/dist-es/commands/GetParametersForImportCommand.js +3 -9
  18. package/dist-es/commands/GetPublicKeyCertificateCommand.js +3 -9
  19. package/dist-es/commands/ImportKeyCommand.js +3 -10
  20. package/dist-es/commands/ListAliasesCommand.js +3 -9
  21. package/dist-es/commands/ListKeysCommand.js +3 -9
  22. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  23. package/dist-es/commands/RemoveKeyReplicationRegionsCommand.js +3 -9
  24. package/dist-es/commands/RestoreKeyCommand.js +3 -9
  25. package/dist-es/commands/StartKeyUsageCommand.js +3 -9
  26. package/dist-es/commands/StopKeyUsageCommand.js +3 -9
  27. package/dist-es/commands/TagResourceCommand.js +3 -9
  28. package/dist-es/commands/UntagResourceCommand.js +3 -9
  29. package/dist-es/commands/UpdateAliasCommand.js +3 -9
  30. package/dist-es/models/models_0.js +0 -87
  31. package/dist-es/runtimeConfig.shared.js +7 -0
  32. package/dist-es/schemas/schemas_0.js +687 -0
  33. package/dist-types/PaymentCryptographyClient.d.ts +10 -1
  34. package/dist-types/models/models_0.d.ts +0 -60
  35. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  36. package/dist-types/runtimeConfig.d.ts +1 -0
  37. package/dist-types/runtimeConfig.native.d.ts +1 -0
  38. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  39. package/dist-types/schemas/schemas_0.d.ts +128 -0
  40. package/dist-types/ts3.4/PaymentCryptographyClient.d.ts +4 -0
  41. package/dist-types/ts3.4/models/models_0.d.ts +0 -43
  42. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  43. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  44. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  45. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  46. package/dist-types/ts3.4/schemas/schemas_0.d.ts +135 -0
  47. package/package.json +5 -5
  48. package/dist-es/protocols/Aws_json1_0.js +0 -728
  49. package/dist-types/protocols/Aws_json1_0.d.ts +0 -236
  50. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +0 -317
package/dist-cjs/index.js CHANGED
@@ -6,6 +6,7 @@ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detect
6
6
  var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
7
  var configResolver = require('@smithy/config-resolver');
8
8
  var core = require('@smithy/core');
9
+ var schema = require('@smithy/core/schema');
9
10
  var middlewareContentLength = require('@smithy/middleware-content-length');
10
11
  var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
12
  var middlewareRetry = require('@smithy/middleware-retry');
@@ -14,8 +15,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
15
  var runtimeConfig = require('./runtimeConfig');
15
16
  var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
17
  var protocolHttp = require('@smithy/protocol-http');
17
- var middlewareSerde = require('@smithy/middleware-serde');
18
- var core$1 = require('@aws-sdk/core');
19
18
 
20
19
  const resolveClientEndpointParameters = (options) => {
21
20
  return Object.assign(options, {
@@ -91,6 +90,7 @@ class PaymentCryptographyClient extends smithyClient.Client {
91
90
  const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
92
91
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
93
92
  this.config = _config_8;
93
+ this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
94
94
  this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
95
95
  this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
96
96
  this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
@@ -110,14 +110,14 @@ class PaymentCryptographyClient extends smithyClient.Client {
110
110
  }
111
111
  }
112
112
 
113
- class PaymentCryptographyServiceException extends smithyClient.ServiceException {
113
+ let PaymentCryptographyServiceException$1 = class PaymentCryptographyServiceException extends smithyClient.ServiceException {
114
114
  constructor(options) {
115
115
  super(options);
116
116
  Object.setPrototypeOf(this, PaymentCryptographyServiceException.prototype);
117
117
  }
118
- }
118
+ };
119
119
 
120
- class AccessDeniedException extends PaymentCryptographyServiceException {
120
+ let AccessDeniedException$1 = class AccessDeniedException extends PaymentCryptographyServiceException$1 {
121
121
  name = "AccessDeniedException";
122
122
  $fault = "client";
123
123
  Message;
@@ -130,7 +130,7 @@ class AccessDeniedException extends PaymentCryptographyServiceException {
130
130
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
131
131
  this.Message = opts.Message;
132
132
  }
133
- }
133
+ };
134
134
  const DeriveKeyUsage = {
135
135
  TR31_B0_BASE_DERIVATION_KEY: "TR31_B0_BASE_DERIVATION_KEY",
136
136
  TR31_C0_CARD_VERIFICATION_KEY: "TR31_C0_CARD_VERIFICATION_KEY",
@@ -226,7 +226,7 @@ const KeyReplicationState = {
226
226
  IN_PROGRESS: "IN_PROGRESS",
227
227
  SYNCHRONIZED: "SYNCHRONIZED",
228
228
  };
229
- class ConflictException extends PaymentCryptographyServiceException {
229
+ let ConflictException$1 = class ConflictException extends PaymentCryptographyServiceException$1 {
230
230
  name = "ConflictException";
231
231
  $fault = "client";
232
232
  Message;
@@ -239,8 +239,8 @@ class ConflictException extends PaymentCryptographyServiceException {
239
239
  Object.setPrototypeOf(this, ConflictException.prototype);
240
240
  this.Message = opts.Message;
241
241
  }
242
- }
243
- class InternalServerException extends PaymentCryptographyServiceException {
242
+ };
243
+ let InternalServerException$1 = class InternalServerException extends PaymentCryptographyServiceException$1 {
244
244
  name = "InternalServerException";
245
245
  $fault = "server";
246
246
  Message;
@@ -253,8 +253,8 @@ class InternalServerException extends PaymentCryptographyServiceException {
253
253
  Object.setPrototypeOf(this, InternalServerException.prototype);
254
254
  this.Message = opts.Message;
255
255
  }
256
- }
257
- class ResourceNotFoundException extends PaymentCryptographyServiceException {
256
+ };
257
+ let ResourceNotFoundException$1 = class ResourceNotFoundException extends PaymentCryptographyServiceException$1 {
258
258
  name = "ResourceNotFoundException";
259
259
  $fault = "client";
260
260
  ResourceId;
@@ -267,8 +267,8 @@ class ResourceNotFoundException extends PaymentCryptographyServiceException {
267
267
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
268
268
  this.ResourceId = opts.ResourceId;
269
269
  }
270
- }
271
- class ServiceQuotaExceededException extends PaymentCryptographyServiceException {
270
+ };
271
+ let ServiceQuotaExceededException$1 = class ServiceQuotaExceededException extends PaymentCryptographyServiceException$1 {
272
272
  name = "ServiceQuotaExceededException";
273
273
  $fault = "client";
274
274
  Message;
@@ -281,8 +281,8 @@ class ServiceQuotaExceededException extends PaymentCryptographyServiceException
281
281
  Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
282
282
  this.Message = opts.Message;
283
283
  }
284
- }
285
- class ThrottlingException extends PaymentCryptographyServiceException {
284
+ };
285
+ let ThrottlingException$1 = class ThrottlingException extends PaymentCryptographyServiceException$1 {
286
286
  name = "ThrottlingException";
287
287
  $fault = "client";
288
288
  Message;
@@ -295,8 +295,8 @@ class ThrottlingException extends PaymentCryptographyServiceException {
295
295
  Object.setPrototypeOf(this, ThrottlingException.prototype);
296
296
  this.Message = opts.Message;
297
297
  }
298
- }
299
- class ValidationException extends PaymentCryptographyServiceException {
298
+ };
299
+ let ValidationException$1 = class ValidationException extends PaymentCryptographyServiceException$1 {
300
300
  name = "ValidationException";
301
301
  $fault = "client";
302
302
  Message;
@@ -309,8 +309,8 @@ class ValidationException extends PaymentCryptographyServiceException {
309
309
  Object.setPrototypeOf(this, ValidationException.prototype);
310
310
  this.Message = opts.Message;
311
311
  }
312
- }
313
- class ServiceUnavailableException extends PaymentCryptographyServiceException {
312
+ };
313
+ let ServiceUnavailableException$1 = class ServiceUnavailableException extends PaymentCryptographyServiceException$1 {
314
314
  name = "ServiceUnavailableException";
315
315
  $fault = "server";
316
316
  Message;
@@ -323,7 +323,7 @@ class ServiceUnavailableException extends PaymentCryptographyServiceException {
323
323
  Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
324
324
  this.Message = opts.Message;
325
325
  }
326
- }
326
+ };
327
327
  exports.DiffieHellmanDerivationData = void 0;
328
328
  (function (DiffieHellmanDerivationData) {
329
329
  DiffieHellmanDerivationData.visit = (value, visitor) => {
@@ -414,827 +414,698 @@ exports.ImportKeyMaterial = void 0;
414
414
  return visitor._(value.$unknown[0], value.$unknown[1]);
415
415
  };
416
416
  })(exports.ImportKeyMaterial || (exports.ImportKeyMaterial = {}));
417
- const KeyBlockHeadersFilterSensitiveLog = (obj) => ({
418
- ...obj,
419
- ...(obj.OptionalBlocks && { OptionalBlocks: smithyClient.SENSITIVE_STRING }),
420
- });
421
- const ExportDiffieHellmanTr31KeyBlockFilterSensitiveLog = (obj) => ({
422
- ...obj,
423
- ...(obj.DerivationData && { DerivationData: obj.DerivationData }),
424
- ...(obj.KeyBlockHeaders && { KeyBlockHeaders: KeyBlockHeadersFilterSensitiveLog(obj.KeyBlockHeaders) }),
425
- });
426
- const ExportTr31KeyBlockFilterSensitiveLog = (obj) => ({
427
- ...obj,
428
- ...(obj.KeyBlockHeaders && { KeyBlockHeaders: KeyBlockHeadersFilterSensitiveLog(obj.KeyBlockHeaders) }),
429
- });
430
- const ExportTr34KeyBlockFilterSensitiveLog = (obj) => ({
431
- ...obj,
432
- ...(obj.KeyBlockHeaders && { KeyBlockHeaders: KeyBlockHeadersFilterSensitiveLog(obj.KeyBlockHeaders) }),
433
- });
434
- const ExportKeyMaterialFilterSensitiveLog = (obj) => {
435
- if (obj.Tr31KeyBlock !== undefined)
436
- return { Tr31KeyBlock: ExportTr31KeyBlockFilterSensitiveLog(obj.Tr31KeyBlock) };
437
- if (obj.Tr34KeyBlock !== undefined)
438
- return { Tr34KeyBlock: ExportTr34KeyBlockFilterSensitiveLog(obj.Tr34KeyBlock) };
439
- if (obj.KeyCryptogram !== undefined)
440
- return { KeyCryptogram: obj.KeyCryptogram };
441
- if (obj.DiffieHellmanTr31KeyBlock !== undefined)
442
- return {
443
- DiffieHellmanTr31KeyBlock: ExportDiffieHellmanTr31KeyBlockFilterSensitiveLog(obj.DiffieHellmanTr31KeyBlock),
444
- };
445
- if (obj.$unknown !== undefined)
446
- return { [obj.$unknown[0]]: "UNKNOWN" };
447
- };
448
- const ExportKeyInputFilterSensitiveLog = (obj) => ({
449
- ...obj,
450
- ...(obj.KeyMaterial && { KeyMaterial: ExportKeyMaterialFilterSensitiveLog(obj.KeyMaterial) }),
451
- });
452
- const WrappedKeyFilterSensitiveLog = (obj) => ({
453
- ...obj,
454
- ...(obj.KeyMaterial && { KeyMaterial: smithyClient.SENSITIVE_STRING }),
455
- });
456
- const ExportKeyOutputFilterSensitiveLog = (obj) => ({
457
- ...obj,
458
- ...(obj.WrappedKey && { WrappedKey: WrappedKeyFilterSensitiveLog(obj.WrappedKey) }),
459
- });
460
- const GetCertificateSigningRequestOutputFilterSensitiveLog = (obj) => ({
461
- ...obj,
462
- ...(obj.CertificateSigningRequest && { CertificateSigningRequest: smithyClient.SENSITIVE_STRING }),
463
- });
464
- const ImportDiffieHellmanTr31KeyBlockFilterSensitiveLog = (obj) => ({
465
- ...obj,
466
- ...(obj.DerivationData && { DerivationData: obj.DerivationData }),
467
- ...(obj.WrappedKeyBlock && { WrappedKeyBlock: smithyClient.SENSITIVE_STRING }),
468
- });
469
- const ImportKeyCryptogramFilterSensitiveLog = (obj) => ({
470
- ...obj,
471
- ...(obj.WrappedKeyCryptogram && { WrappedKeyCryptogram: smithyClient.SENSITIVE_STRING }),
472
- });
473
- const ImportTr31KeyBlockFilterSensitiveLog = (obj) => ({
474
- ...obj,
475
- ...(obj.WrappedKeyBlock && { WrappedKeyBlock: smithyClient.SENSITIVE_STRING }),
476
- });
477
- const ImportTr34KeyBlockFilterSensitiveLog = (obj) => ({
478
- ...obj,
479
- ...(obj.WrappedKeyBlock && { WrappedKeyBlock: smithyClient.SENSITIVE_STRING }),
480
- });
481
- const ImportKeyMaterialFilterSensitiveLog = (obj) => {
482
- if (obj.RootCertificatePublicKey !== undefined)
483
- return { RootCertificatePublicKey: obj.RootCertificatePublicKey };
484
- if (obj.TrustedCertificatePublicKey !== undefined)
485
- return { TrustedCertificatePublicKey: obj.TrustedCertificatePublicKey };
486
- if (obj.Tr31KeyBlock !== undefined)
487
- return { Tr31KeyBlock: ImportTr31KeyBlockFilterSensitiveLog(obj.Tr31KeyBlock) };
488
- if (obj.Tr34KeyBlock !== undefined)
489
- return { Tr34KeyBlock: ImportTr34KeyBlockFilterSensitiveLog(obj.Tr34KeyBlock) };
490
- if (obj.KeyCryptogram !== undefined)
491
- return { KeyCryptogram: ImportKeyCryptogramFilterSensitiveLog(obj.KeyCryptogram) };
492
- if (obj.DiffieHellmanTr31KeyBlock !== undefined)
493
- return {
494
- DiffieHellmanTr31KeyBlock: ImportDiffieHellmanTr31KeyBlockFilterSensitiveLog(obj.DiffieHellmanTr31KeyBlock),
495
- };
496
- if (obj.$unknown !== undefined)
497
- return { [obj.$unknown[0]]: "UNKNOWN" };
498
- };
499
- const ImportKeyInputFilterSensitiveLog = (obj) => ({
500
- ...obj,
501
- ...(obj.KeyMaterial && { KeyMaterial: ImportKeyMaterialFilterSensitiveLog(obj.KeyMaterial) }),
502
- });
503
417
 
504
- const se_AddKeyReplicationRegionsCommand = async (input, context) => {
505
- const headers = sharedHeaders("AddKeyReplicationRegions");
506
- let body;
507
- body = JSON.stringify(smithyClient._json(input));
508
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
509
- };
510
- const se_CreateAliasCommand = async (input, context) => {
511
- const headers = sharedHeaders("CreateAlias");
512
- let body;
513
- body = JSON.stringify(smithyClient._json(input));
514
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
515
- };
516
- const se_CreateKeyCommand = async (input, context) => {
517
- const headers = sharedHeaders("CreateKey");
518
- let body;
519
- body = JSON.stringify(smithyClient._json(input));
520
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
521
- };
522
- const se_DeleteAliasCommand = async (input, context) => {
523
- const headers = sharedHeaders("DeleteAlias");
524
- let body;
525
- body = JSON.stringify(smithyClient._json(input));
526
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
527
- };
528
- const se_DeleteKeyCommand = async (input, context) => {
529
- const headers = sharedHeaders("DeleteKey");
530
- let body;
531
- body = JSON.stringify(smithyClient._json(input));
532
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
533
- };
534
- const se_DisableDefaultKeyReplicationRegionsCommand = async (input, context) => {
535
- const headers = sharedHeaders("DisableDefaultKeyReplicationRegions");
536
- let body;
537
- body = JSON.stringify(smithyClient._json(input));
538
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
539
- };
540
- const se_EnableDefaultKeyReplicationRegionsCommand = async (input, context) => {
541
- const headers = sharedHeaders("EnableDefaultKeyReplicationRegions");
542
- let body;
543
- body = JSON.stringify(smithyClient._json(input));
544
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
545
- };
546
- const se_ExportKeyCommand = async (input, context) => {
547
- const headers = sharedHeaders("ExportKey");
548
- let body;
549
- body = JSON.stringify(smithyClient._json(input));
550
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
551
- };
552
- const se_GetAliasCommand = async (input, context) => {
553
- const headers = sharedHeaders("GetAlias");
554
- let body;
555
- body = JSON.stringify(smithyClient._json(input));
556
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
557
- };
558
- const se_GetCertificateSigningRequestCommand = async (input, context) => {
559
- const headers = sharedHeaders("GetCertificateSigningRequest");
560
- let body;
561
- body = JSON.stringify(smithyClient._json(input));
562
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
563
- };
564
- const se_GetDefaultKeyReplicationRegionsCommand = async (input, context) => {
565
- const headers = sharedHeaders("GetDefaultKeyReplicationRegions");
566
- let body;
567
- body = JSON.stringify(smithyClient._json(input));
568
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
569
- };
570
- const se_GetKeyCommand = async (input, context) => {
571
- const headers = sharedHeaders("GetKey");
572
- let body;
573
- body = JSON.stringify(smithyClient._json(input));
574
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
575
- };
576
- const se_GetParametersForExportCommand = async (input, context) => {
577
- const headers = sharedHeaders("GetParametersForExport");
578
- let body;
579
- body = JSON.stringify(smithyClient._json(input));
580
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
581
- };
582
- const se_GetParametersForImportCommand = async (input, context) => {
583
- const headers = sharedHeaders("GetParametersForImport");
584
- let body;
585
- body = JSON.stringify(smithyClient._json(input));
586
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
587
- };
588
- const se_GetPublicKeyCertificateCommand = async (input, context) => {
589
- const headers = sharedHeaders("GetPublicKeyCertificate");
590
- let body;
591
- body = JSON.stringify(smithyClient._json(input));
592
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
593
- };
594
- const se_ImportKeyCommand = async (input, context) => {
595
- const headers = sharedHeaders("ImportKey");
596
- let body;
597
- body = JSON.stringify(smithyClient._json(input));
598
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
599
- };
600
- const se_ListAliasesCommand = async (input, context) => {
601
- const headers = sharedHeaders("ListAliases");
602
- let body;
603
- body = JSON.stringify(smithyClient._json(input));
604
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
605
- };
606
- const se_ListKeysCommand = async (input, context) => {
607
- const headers = sharedHeaders("ListKeys");
608
- let body;
609
- body = JSON.stringify(smithyClient._json(input));
610
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
611
- };
612
- const se_ListTagsForResourceCommand = async (input, context) => {
613
- const headers = sharedHeaders("ListTagsForResource");
614
- let body;
615
- body = JSON.stringify(smithyClient._json(input));
616
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
617
- };
618
- const se_RemoveKeyReplicationRegionsCommand = async (input, context) => {
619
- const headers = sharedHeaders("RemoveKeyReplicationRegions");
620
- let body;
621
- body = JSON.stringify(smithyClient._json(input));
622
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
623
- };
624
- const se_RestoreKeyCommand = async (input, context) => {
625
- const headers = sharedHeaders("RestoreKey");
626
- let body;
627
- body = JSON.stringify(smithyClient._json(input));
628
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
629
- };
630
- const se_StartKeyUsageCommand = async (input, context) => {
631
- const headers = sharedHeaders("StartKeyUsage");
632
- let body;
633
- body = JSON.stringify(smithyClient._json(input));
634
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
635
- };
636
- const se_StopKeyUsageCommand = async (input, context) => {
637
- const headers = sharedHeaders("StopKeyUsage");
638
- let body;
639
- body = JSON.stringify(smithyClient._json(input));
640
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
641
- };
642
- const se_TagResourceCommand = async (input, context) => {
643
- const headers = sharedHeaders("TagResource");
644
- let body;
645
- body = JSON.stringify(smithyClient._json(input));
646
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
647
- };
648
- const se_UntagResourceCommand = async (input, context) => {
649
- const headers = sharedHeaders("UntagResource");
650
- let body;
651
- body = JSON.stringify(smithyClient._json(input));
652
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
653
- };
654
- const se_UpdateAliasCommand = async (input, context) => {
655
- const headers = sharedHeaders("UpdateAlias");
656
- let body;
657
- body = JSON.stringify(smithyClient._json(input));
658
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
659
- };
660
- const de_AddKeyReplicationRegionsCommand = async (output, context) => {
661
- if (output.statusCode >= 300) {
662
- return de_CommandError(output, context);
663
- }
664
- const data = await core$1.parseJsonBody(output.body, context);
665
- let contents = {};
666
- contents = de_AddKeyReplicationRegionsOutput(data);
667
- const response = {
668
- $metadata: deserializeMetadata(output),
669
- ...contents,
670
- };
671
- return response;
672
- };
673
- const de_CreateAliasCommand = async (output, context) => {
674
- if (output.statusCode >= 300) {
675
- return de_CommandError(output, context);
676
- }
677
- const data = await core$1.parseJsonBody(output.body, context);
678
- let contents = {};
679
- contents = smithyClient._json(data);
680
- const response = {
681
- $metadata: deserializeMetadata(output),
682
- ...contents,
683
- };
684
- return response;
685
- };
686
- const de_CreateKeyCommand = async (output, context) => {
687
- if (output.statusCode >= 300) {
688
- return de_CommandError(output, context);
689
- }
690
- const data = await core$1.parseJsonBody(output.body, context);
691
- let contents = {};
692
- contents = de_CreateKeyOutput(data);
693
- const response = {
694
- $metadata: deserializeMetadata(output),
695
- ...contents,
696
- };
697
- return response;
698
- };
699
- const de_DeleteAliasCommand = async (output, context) => {
700
- if (output.statusCode >= 300) {
701
- return de_CommandError(output, context);
702
- }
703
- const data = await core$1.parseJsonBody(output.body, context);
704
- let contents = {};
705
- contents = smithyClient._json(data);
706
- const response = {
707
- $metadata: deserializeMetadata(output),
708
- ...contents,
709
- };
710
- return response;
711
- };
712
- const de_DeleteKeyCommand = async (output, context) => {
713
- if (output.statusCode >= 300) {
714
- return de_CommandError(output, context);
715
- }
716
- const data = await core$1.parseJsonBody(output.body, context);
717
- let contents = {};
718
- contents = de_DeleteKeyOutput(data);
719
- const response = {
720
- $metadata: deserializeMetadata(output),
721
- ...contents,
722
- };
723
- return response;
724
- };
725
- const de_DisableDefaultKeyReplicationRegionsCommand = async (output, context) => {
726
- if (output.statusCode >= 300) {
727
- return de_CommandError(output, context);
728
- }
729
- const data = await core$1.parseJsonBody(output.body, context);
730
- let contents = {};
731
- contents = smithyClient._json(data);
732
- const response = {
733
- $metadata: deserializeMetadata(output),
734
- ...contents,
735
- };
736
- return response;
737
- };
738
- const de_EnableDefaultKeyReplicationRegionsCommand = async (output, context) => {
739
- if (output.statusCode >= 300) {
740
- return de_CommandError(output, context);
741
- }
742
- const data = await core$1.parseJsonBody(output.body, context);
743
- let contents = {};
744
- contents = smithyClient._json(data);
745
- const response = {
746
- $metadata: deserializeMetadata(output),
747
- ...contents,
748
- };
749
- return response;
750
- };
751
- const de_ExportKeyCommand = async (output, context) => {
752
- if (output.statusCode >= 300) {
753
- return de_CommandError(output, context);
754
- }
755
- const data = await core$1.parseJsonBody(output.body, context);
756
- let contents = {};
757
- contents = smithyClient._json(data);
758
- const response = {
759
- $metadata: deserializeMetadata(output),
760
- ...contents,
761
- };
762
- return response;
763
- };
764
- const de_GetAliasCommand = async (output, context) => {
765
- if (output.statusCode >= 300) {
766
- return de_CommandError(output, context);
767
- }
768
- const data = await core$1.parseJsonBody(output.body, context);
769
- let contents = {};
770
- contents = smithyClient._json(data);
771
- const response = {
772
- $metadata: deserializeMetadata(output),
773
- ...contents,
774
- };
775
- return response;
776
- };
777
- const de_GetCertificateSigningRequestCommand = async (output, context) => {
778
- if (output.statusCode >= 300) {
779
- return de_CommandError(output, context);
780
- }
781
- const data = await core$1.parseJsonBody(output.body, context);
782
- let contents = {};
783
- contents = smithyClient._json(data);
784
- const response = {
785
- $metadata: deserializeMetadata(output),
786
- ...contents,
787
- };
788
- return response;
789
- };
790
- const de_GetDefaultKeyReplicationRegionsCommand = async (output, context) => {
791
- if (output.statusCode >= 300) {
792
- return de_CommandError(output, context);
793
- }
794
- const data = await core$1.parseJsonBody(output.body, context);
795
- let contents = {};
796
- contents = smithyClient._json(data);
797
- const response = {
798
- $metadata: deserializeMetadata(output),
799
- ...contents,
800
- };
801
- return response;
802
- };
803
- const de_GetKeyCommand = async (output, context) => {
804
- if (output.statusCode >= 300) {
805
- return de_CommandError(output, context);
806
- }
807
- const data = await core$1.parseJsonBody(output.body, context);
808
- let contents = {};
809
- contents = de_GetKeyOutput(data);
810
- const response = {
811
- $metadata: deserializeMetadata(output),
812
- ...contents,
813
- };
814
- return response;
815
- };
816
- const de_GetParametersForExportCommand = async (output, context) => {
817
- if (output.statusCode >= 300) {
818
- return de_CommandError(output, context);
819
- }
820
- const data = await core$1.parseJsonBody(output.body, context);
821
- let contents = {};
822
- contents = de_GetParametersForExportOutput(data);
823
- const response = {
824
- $metadata: deserializeMetadata(output),
825
- ...contents,
826
- };
827
- return response;
828
- };
829
- const de_GetParametersForImportCommand = async (output, context) => {
830
- if (output.statusCode >= 300) {
831
- return de_CommandError(output, context);
832
- }
833
- const data = await core$1.parseJsonBody(output.body, context);
834
- let contents = {};
835
- contents = de_GetParametersForImportOutput(data);
836
- const response = {
837
- $metadata: deserializeMetadata(output),
838
- ...contents,
839
- };
840
- return response;
841
- };
842
- const de_GetPublicKeyCertificateCommand = async (output, context) => {
843
- if (output.statusCode >= 300) {
844
- return de_CommandError(output, context);
845
- }
846
- const data = await core$1.parseJsonBody(output.body, context);
847
- let contents = {};
848
- contents = smithyClient._json(data);
849
- const response = {
850
- $metadata: deserializeMetadata(output),
851
- ...contents,
852
- };
853
- return response;
854
- };
855
- const de_ImportKeyCommand = async (output, context) => {
856
- if (output.statusCode >= 300) {
857
- return de_CommandError(output, context);
858
- }
859
- const data = await core$1.parseJsonBody(output.body, context);
860
- let contents = {};
861
- contents = de_ImportKeyOutput(data);
862
- const response = {
863
- $metadata: deserializeMetadata(output),
864
- ...contents,
865
- };
866
- return response;
867
- };
868
- const de_ListAliasesCommand = async (output, context) => {
869
- if (output.statusCode >= 300) {
870
- return de_CommandError(output, context);
871
- }
872
- const data = await core$1.parseJsonBody(output.body, context);
873
- let contents = {};
874
- contents = smithyClient._json(data);
875
- const response = {
876
- $metadata: deserializeMetadata(output),
877
- ...contents,
878
- };
879
- return response;
880
- };
881
- const de_ListKeysCommand = async (output, context) => {
882
- if (output.statusCode >= 300) {
883
- return de_CommandError(output, context);
884
- }
885
- const data = await core$1.parseJsonBody(output.body, context);
886
- let contents = {};
887
- contents = smithyClient._json(data);
888
- const response = {
889
- $metadata: deserializeMetadata(output),
890
- ...contents,
891
- };
892
- return response;
893
- };
894
- const de_ListTagsForResourceCommand = async (output, context) => {
895
- if (output.statusCode >= 300) {
896
- return de_CommandError(output, context);
897
- }
898
- const data = await core$1.parseJsonBody(output.body, context);
899
- let contents = {};
900
- contents = smithyClient._json(data);
901
- const response = {
902
- $metadata: deserializeMetadata(output),
903
- ...contents,
904
- };
905
- return response;
906
- };
907
- const de_RemoveKeyReplicationRegionsCommand = async (output, context) => {
908
- if (output.statusCode >= 300) {
909
- return de_CommandError(output, context);
910
- }
911
- const data = await core$1.parseJsonBody(output.body, context);
912
- let contents = {};
913
- contents = de_RemoveKeyReplicationRegionsOutput(data);
914
- const response = {
915
- $metadata: deserializeMetadata(output),
916
- ...contents,
917
- };
918
- return response;
919
- };
920
- const de_RestoreKeyCommand = async (output, context) => {
921
- if (output.statusCode >= 300) {
922
- return de_CommandError(output, context);
923
- }
924
- const data = await core$1.parseJsonBody(output.body, context);
925
- let contents = {};
926
- contents = de_RestoreKeyOutput(data);
927
- const response = {
928
- $metadata: deserializeMetadata(output),
929
- ...contents,
930
- };
931
- return response;
932
- };
933
- const de_StartKeyUsageCommand = async (output, context) => {
934
- if (output.statusCode >= 300) {
935
- return de_CommandError(output, context);
936
- }
937
- const data = await core$1.parseJsonBody(output.body, context);
938
- let contents = {};
939
- contents = de_StartKeyUsageOutput(data);
940
- const response = {
941
- $metadata: deserializeMetadata(output),
942
- ...contents,
943
- };
944
- return response;
945
- };
946
- const de_StopKeyUsageCommand = async (output, context) => {
947
- if (output.statusCode >= 300) {
948
- return de_CommandError(output, context);
949
- }
950
- const data = await core$1.parseJsonBody(output.body, context);
951
- let contents = {};
952
- contents = de_StopKeyUsageOutput(data);
953
- const response = {
954
- $metadata: deserializeMetadata(output),
955
- ...contents,
956
- };
957
- return response;
958
- };
959
- const de_TagResourceCommand = async (output, context) => {
960
- if (output.statusCode >= 300) {
961
- return de_CommandError(output, context);
962
- }
963
- const data = await core$1.parseJsonBody(output.body, context);
964
- let contents = {};
965
- contents = smithyClient._json(data);
966
- const response = {
967
- $metadata: deserializeMetadata(output),
968
- ...contents,
969
- };
970
- return response;
971
- };
972
- const de_UntagResourceCommand = async (output, context) => {
973
- if (output.statusCode >= 300) {
974
- return de_CommandError(output, context);
975
- }
976
- const data = await core$1.parseJsonBody(output.body, context);
977
- let contents = {};
978
- contents = smithyClient._json(data);
979
- const response = {
980
- $metadata: deserializeMetadata(output),
981
- ...contents,
982
- };
983
- return response;
984
- };
985
- const de_UpdateAliasCommand = async (output, context) => {
986
- if (output.statusCode >= 300) {
987
- return de_CommandError(output, context);
988
- }
989
- const data = await core$1.parseJsonBody(output.body, context);
990
- let contents = {};
991
- contents = smithyClient._json(data);
992
- const response = {
993
- $metadata: deserializeMetadata(output),
994
- ...contents,
995
- };
996
- return response;
997
- };
998
- const de_CommandError = async (output, context) => {
999
- const parsedOutput = {
1000
- ...output,
1001
- body: await core$1.parseJsonErrorBody(output.body, context),
1002
- };
1003
- const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
1004
- switch (errorCode) {
1005
- case "AccessDeniedException":
1006
- case "com.amazonaws.paymentcryptography#AccessDeniedException":
1007
- throw await de_AccessDeniedExceptionRes(parsedOutput);
1008
- case "ConflictException":
1009
- case "com.amazonaws.paymentcryptography#ConflictException":
1010
- throw await de_ConflictExceptionRes(parsedOutput);
1011
- case "InternalServerException":
1012
- case "com.amazonaws.paymentcryptography#InternalServerException":
1013
- throw await de_InternalServerExceptionRes(parsedOutput);
1014
- case "ResourceNotFoundException":
1015
- case "com.amazonaws.paymentcryptography#ResourceNotFoundException":
1016
- throw await de_ResourceNotFoundExceptionRes(parsedOutput);
1017
- case "ServiceQuotaExceededException":
1018
- case "com.amazonaws.paymentcryptography#ServiceQuotaExceededException":
1019
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
1020
- case "ThrottlingException":
1021
- case "com.amazonaws.paymentcryptography#ThrottlingException":
1022
- throw await de_ThrottlingExceptionRes(parsedOutput);
1023
- case "ValidationException":
1024
- case "com.amazonaws.paymentcryptography#ValidationException":
1025
- throw await de_ValidationExceptionRes(parsedOutput);
1026
- case "ServiceUnavailableException":
1027
- case "com.amazonaws.paymentcryptography#ServiceUnavailableException":
1028
- throw await de_ServiceUnavailableExceptionRes(parsedOutput);
1029
- default:
1030
- const parsedBody = parsedOutput.body;
1031
- return throwDefaultError({
1032
- output,
1033
- parsedBody,
1034
- errorCode,
1035
- });
1036
- }
1037
- };
1038
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1039
- const body = parsedOutput.body;
1040
- const deserialized = smithyClient._json(body);
1041
- const exception = new AccessDeniedException({
1042
- $metadata: deserializeMetadata(parsedOutput),
1043
- ...deserialized,
1044
- });
1045
- return smithyClient.decorateServiceException(exception, body);
1046
- };
1047
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
1048
- const body = parsedOutput.body;
1049
- const deserialized = smithyClient._json(body);
1050
- const exception = new ConflictException({
1051
- $metadata: deserializeMetadata(parsedOutput),
1052
- ...deserialized,
1053
- });
1054
- return smithyClient.decorateServiceException(exception, body);
1055
- };
1056
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
1057
- const body = parsedOutput.body;
1058
- const deserialized = smithyClient._json(body);
1059
- const exception = new InternalServerException({
1060
- $metadata: deserializeMetadata(parsedOutput),
1061
- ...deserialized,
1062
- });
1063
- return smithyClient.decorateServiceException(exception, body);
1064
- };
1065
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1066
- const body = parsedOutput.body;
1067
- const deserialized = smithyClient._json(body);
1068
- const exception = new ResourceNotFoundException({
1069
- $metadata: deserializeMetadata(parsedOutput),
1070
- ...deserialized,
1071
- });
1072
- return smithyClient.decorateServiceException(exception, body);
1073
- };
1074
- const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1075
- const body = parsedOutput.body;
1076
- const deserialized = smithyClient._json(body);
1077
- const exception = new ServiceQuotaExceededException({
1078
- $metadata: deserializeMetadata(parsedOutput),
1079
- ...deserialized,
1080
- });
1081
- return smithyClient.decorateServiceException(exception, body);
1082
- };
1083
- const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
1084
- const body = parsedOutput.body;
1085
- const deserialized = smithyClient._json(body);
1086
- const exception = new ServiceUnavailableException({
1087
- $metadata: deserializeMetadata(parsedOutput),
1088
- ...deserialized,
1089
- });
1090
- return smithyClient.decorateServiceException(exception, body);
1091
- };
1092
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
1093
- const body = parsedOutput.body;
1094
- const deserialized = smithyClient._json(body);
1095
- const exception = new ThrottlingException({
1096
- $metadata: deserializeMetadata(parsedOutput),
1097
- ...deserialized,
1098
- });
1099
- return smithyClient.decorateServiceException(exception, body);
1100
- };
1101
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
1102
- const body = parsedOutput.body;
1103
- const deserialized = smithyClient._json(body);
1104
- const exception = new ValidationException({
1105
- $metadata: deserializeMetadata(parsedOutput),
1106
- ...deserialized,
1107
- });
1108
- return smithyClient.decorateServiceException(exception, body);
1109
- };
1110
- const de_AddKeyReplicationRegionsOutput = (output, context) => {
1111
- return smithyClient.take(output, {
1112
- Key: (_) => de_Key(_),
1113
- });
1114
- };
1115
- const de_CreateKeyOutput = (output, context) => {
1116
- return smithyClient.take(output, {
1117
- Key: (_) => de_Key(_),
1118
- });
1119
- };
1120
- const de_DeleteKeyOutput = (output, context) => {
1121
- return smithyClient.take(output, {
1122
- Key: (_) => de_Key(_),
1123
- });
1124
- };
1125
- const de_GetKeyOutput = (output, context) => {
1126
- return smithyClient.take(output, {
1127
- Key: (_) => de_Key(_),
1128
- });
1129
- };
1130
- const de_GetParametersForExportOutput = (output, context) => {
1131
- return smithyClient.take(output, {
1132
- ExportToken: smithyClient.expectString,
1133
- ParametersValidUntilTimestamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1134
- SigningKeyAlgorithm: smithyClient.expectString,
1135
- SigningKeyCertificate: smithyClient.expectString,
1136
- SigningKeyCertificateChain: smithyClient.expectString,
1137
- });
1138
- };
1139
- const de_GetParametersForImportOutput = (output, context) => {
1140
- return smithyClient.take(output, {
1141
- ImportToken: smithyClient.expectString,
1142
- ParametersValidUntilTimestamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1143
- WrappingKeyAlgorithm: smithyClient.expectString,
1144
- WrappingKeyCertificate: smithyClient.expectString,
1145
- WrappingKeyCertificateChain: smithyClient.expectString,
1146
- });
1147
- };
1148
- const de_ImportKeyOutput = (output, context) => {
1149
- return smithyClient.take(output, {
1150
- Key: (_) => de_Key(_),
1151
- });
1152
- };
1153
- const de_Key = (output, context) => {
1154
- return smithyClient.take(output, {
1155
- CreateTimestamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1156
- DeletePendingTimestamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1157
- DeleteTimestamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1158
- DeriveKeyUsage: smithyClient.expectString,
1159
- Enabled: smithyClient.expectBoolean,
1160
- Exportable: smithyClient.expectBoolean,
1161
- KeyArn: smithyClient.expectString,
1162
- KeyAttributes: smithyClient._json,
1163
- KeyCheckValue: smithyClient.expectString,
1164
- KeyCheckValueAlgorithm: smithyClient.expectString,
1165
- KeyOrigin: smithyClient.expectString,
1166
- KeyState: smithyClient.expectString,
1167
- MultiRegionKeyType: smithyClient.expectString,
1168
- PrimaryRegion: smithyClient.expectString,
1169
- ReplicationStatus: smithyClient._json,
1170
- UsageStartTimestamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1171
- UsageStopTimestamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1172
- UsingDefaultReplicationRegions: smithyClient.expectBoolean,
1173
- });
1174
- };
1175
- const de_RemoveKeyReplicationRegionsOutput = (output, context) => {
1176
- return smithyClient.take(output, {
1177
- Key: (_) => de_Key(_),
1178
- });
1179
- };
1180
- const de_RestoreKeyOutput = (output, context) => {
1181
- return smithyClient.take(output, {
1182
- Key: (_) => de_Key(_),
1183
- });
1184
- };
1185
- const de_StartKeyUsageOutput = (output, context) => {
1186
- return smithyClient.take(output, {
1187
- Key: (_) => de_Key(_),
1188
- });
1189
- };
1190
- const de_StopKeyUsageOutput = (output, context) => {
1191
- return smithyClient.take(output, {
1192
- Key: (_) => de_Key(_),
1193
- });
1194
- };
1195
- const deserializeMetadata = (output) => ({
1196
- httpStatusCode: output.statusCode,
1197
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1198
- extendedRequestId: output.headers["x-amz-id-2"],
1199
- cfId: output.headers["x-amz-cf-id"],
1200
- });
1201
- const throwDefaultError = smithyClient.withBaseException(PaymentCryptographyServiceException);
1202
- const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
1203
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1204
- const contents = {
1205
- protocol,
1206
- hostname,
1207
- port,
1208
- method: "POST",
1209
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
1210
- headers,
1211
- };
1212
- if (body !== undefined) {
1213
- contents.body = body;
1214
- }
1215
- return new protocolHttp.HttpRequest(contents);
1216
- };
1217
- function sharedHeaders(operation) {
1218
- return {
1219
- "content-type": "application/x-amz-json-1.0",
1220
- "x-amz-target": `PaymentCryptographyControlPlane.${operation}`,
1221
- };
1222
- }
418
+ const _A = "Alias";
419
+ const _ADE = "AccessDeniedException";
420
+ const _AKRR = "AddKeyReplicationRegions";
421
+ const _AKRRI = "AddKeyReplicationRegionsInput";
422
+ const _AKRRO = "AddKeyReplicationRegionsOutput";
423
+ const _AN = "AliasName";
424
+ const _Al = "Aliases";
425
+ const _C = "City";
426
+ const _CA = "CreateAlias";
427
+ const _CAI = "CreateAliasInput";
428
+ const _CAO = "CreateAliasOutput";
429
+ const _CAPKI = "CertificateAuthorityPublicKeyIdentifier";
430
+ const _CE = "ConflictException";
431
+ const _CK = "CreateKey";
432
+ const _CKI = "CreateKeyInput";
433
+ const _CKO = "CreateKeyOutput";
434
+ const _CN = "CommonName";
435
+ const _CS = "CertificateSubject";
436
+ const _CSR = "CertificateSigningRequest";
437
+ const _CSRT = "CertificateSigningRequestType";
438
+ const _CST = "CertificateSubjectType";
439
+ const _CT = "CreateTimestamp";
440
+ const _Co = "Country";
441
+ const _D = "Decrypt";
442
+ const _DA = "DeleteAlias";
443
+ const _DAI = "DeleteAliasInput";
444
+ const _DAO = "DeleteAliasOutput";
445
+ const _DD = "DerivationData";
446
+ const _DDKRR = "DisableDefaultKeyReplicationRegions";
447
+ const _DDKRRI = "DisableDefaultKeyReplicationRegionsInput";
448
+ const _DDKRRO = "DisableDefaultKeyReplicationRegionsOutput";
449
+ const _DHDD = "DiffieHellmanDerivationData";
450
+ const _DHTKB = "DiffieHellmanTr31KeyBlock";
451
+ const _DK = "DeriveKey";
452
+ const _DKA = "DeriveKeyAlgorithm";
453
+ const _DKI = "DeleteKeyInput";
454
+ const _DKID = "DeleteKeyInDays";
455
+ const _DKO = "DeleteKeyOutput";
456
+ const _DKU = "DeriveKeyUsage";
457
+ const _DKe = "DeleteKey";
458
+ const _DPT = "DeletePendingTimestamp";
459
+ const _DT = "DeleteTimestamp";
460
+ const _E = "Exportable";
461
+ const _EA = "EmailAddress";
462
+ const _EAx = "ExportAttributes";
463
+ const _EDHTKB = "ExportDiffieHellmanTr31KeyBlock";
464
+ const _EDIK = "ExportDukptInitialKey";
465
+ const _EDKRR = "EnableDefaultKeyReplicationRegions";
466
+ const _EDKRRI = "EnableDefaultKeyReplicationRegionsInput";
467
+ const _EDKRRO = "EnableDefaultKeyReplicationRegionsOutput";
468
+ const _EK = "ExportKey";
469
+ const _EKC = "ExportKeyCryptogram";
470
+ const _EKI = "ExportKeyInput";
471
+ const _EKIx = "ExportKeyIdentifier";
472
+ const _EKM = "ExportKeyMaterial";
473
+ const _EKO = "ExportKeyOutput";
474
+ const _ERR = "EnabledReplicationRegions";
475
+ const _ET = "ExportToken";
476
+ const _ETKB = "ExportTr31KeyBlock";
477
+ const _ETKBx = "ExportTr34KeyBlock";
478
+ const _En = "Enabled";
479
+ const _Enc = "Encrypt";
480
+ const _G = "Generate";
481
+ const _GA = "GetAlias";
482
+ const _GAI = "GetAliasInput";
483
+ const _GAO = "GetAliasOutput";
484
+ const _GCSR = "GetCertificateSigningRequest";
485
+ const _GCSRI = "GetCertificateSigningRequestInput";
486
+ const _GCSRO = "GetCertificateSigningRequestOutput";
487
+ const _GDKRR = "GetDefaultKeyReplicationRegions";
488
+ const _GDKRRI = "GetDefaultKeyReplicationRegionsInput";
489
+ const _GDKRRO = "GetDefaultKeyReplicationRegionsOutput";
490
+ const _GK = "GetKey";
491
+ const _GKI = "GetKeyInput";
492
+ const _GKO = "GetKeyOutput";
493
+ const _GPFE = "GetParametersForExport";
494
+ const _GPFEI = "GetParametersForExportInput";
495
+ const _GPFEO = "GetParametersForExportOutput";
496
+ const _GPFI = "GetParametersForImport";
497
+ const _GPFII = "GetParametersForImportInput";
498
+ const _GPFIO = "GetParametersForImportOutput";
499
+ const _GPKC = "GetPublicKeyCertificate";
500
+ const _GPKCI = "GetPublicKeyCertificateInput";
501
+ const _GPKCO = "GetPublicKeyCertificateOutput";
502
+ const _IDHTKB = "ImportDiffieHellmanTr31KeyBlock";
503
+ const _IK = "ImportKey";
504
+ const _IKC = "ImportKeyCryptogram";
505
+ const _IKI = "ImportKeyInput";
506
+ const _IKM = "ImportKeyMaterial";
507
+ const _IKO = "ImportKeyOutput";
508
+ const _ISE = "InternalServerException";
509
+ const _IT = "ImportToken";
510
+ const _ITKB = "ImportTr31KeyBlock";
511
+ const _ITKBm = "ImportTr34KeyBlock";
512
+ const _K = "Key";
513
+ const _KA = "KeyArn";
514
+ const _KAe = "KeyAttributes";
515
+ const _KAey = "KeyAlgorithm";
516
+ const _KBF = "KeyBlockFormat";
517
+ const _KBH = "KeyBlockHeaders";
518
+ const _KC = "KeyCertificate";
519
+ const _KCC = "KeyCertificateChain";
520
+ const _KCV = "KeyCheckValue";
521
+ const _KCVA = "KeyCheckValueAlgorithm";
522
+ const _KCe = "KeyClass";
523
+ const _KCey = "KeyCryptogram";
524
+ const _KDF = "KeyDerivationFunction";
525
+ const _KDHA = "KeyDerivationHashAlgorithm";
526
+ const _KE = "KeyExportability";
527
+ const _KI = "KeyIdentifier";
528
+ const _KM = "KeyMaterial";
529
+ const _KMOU = "KeyModesOfUse";
530
+ const _KMT = "KeyMaterialType";
531
+ const _KO = "KeyOrigin";
532
+ const _KS = "KeyState";
533
+ const _KSL = "KeySummaryList";
534
+ const _KSN = "KeySerialNumber";
535
+ const _KSe = "KeySummary";
536
+ const _KU = "KeyUsage";
537
+ const _KV = "KeyVersion";
538
+ const _Ke = "Keys";
539
+ const _LA = "ListAliases";
540
+ const _LAI = "ListAliasesInput";
541
+ const _LAO = "ListAliasesOutput";
542
+ const _LK = "ListKeys";
543
+ const _LKI = "ListKeysInput";
544
+ const _LKO = "ListKeysOutput";
545
+ const _LTFR = "ListTagsForResource";
546
+ const _LTFRI = "ListTagsForResourceInput";
547
+ const _LTFRO = "ListTagsForResourceOutput";
548
+ const _M = "Message";
549
+ const _MR = "MaxResults";
550
+ const _MRKT = "MultiRegionKeyType";
551
+ const _NR = "NoRestrictions";
552
+ const _NT = "NextToken";
553
+ const _O = "Organization";
554
+ const _OB = "OptionalBlocks";
555
+ const _OBI = "OptionalBlockId";
556
+ const _OBV = "OptionalBlockValue";
557
+ const _OU = "OrganizationUnit";
558
+ const _PKC = "PublicKeyCertificate";
559
+ const _PKI = "PrivateKeyIdentifier";
560
+ const _PR = "PrimaryRegion";
561
+ const _PVUT = "ParametersValidUntilTimestamp";
562
+ const _RA = "ResourceArn";
563
+ const _RCPK = "RootCertificatePublicKey";
564
+ const _RI = "ResourceId";
565
+ const _RK = "RestoreKey";
566
+ const _RKI = "RestoreKeyInput";
567
+ const _RKO = "RestoreKeyOutput";
568
+ const _RKRR = "RemoveKeyReplicationRegions";
569
+ const _RKRRI = "RemoveKeyReplicationRegionsInput";
570
+ const _RKRRO = "RemoveKeyReplicationRegionsOutput";
571
+ const _RN = "RandomNonce";
572
+ const _RNFE = "ResourceNotFoundException";
573
+ const _RR = "ReplicationRegions";
574
+ const _RS = "ReplicationStatus";
575
+ const _RST = "ReplicationStatusType";
576
+ const _S = "Sign";
577
+ const _SA = "SigningAlgorithm";
578
+ const _SI = "SharedInformation";
579
+ const _SKA = "SigningKeyAlgorithm";
580
+ const _SKC = "SigningKeyCertificate";
581
+ const _SKCC = "SigningKeyCertificateChain";
582
+ const _SKI = "SigningKeyIdentifier";
583
+ const _SKU = "StartKeyUsage";
584
+ const _SKUI = "StartKeyUsageInput";
585
+ const _SKUIt = "StopKeyUsageInput";
586
+ const _SKUO = "StartKeyUsageOutput";
587
+ const _SKUOt = "StopKeyUsageOutput";
588
+ const _SKUt = "StopKeyUsage";
589
+ const _SM = "StatusMessage";
590
+ const _SOP = "StateOrProvince";
591
+ const _SQEE = "ServiceQuotaExceededException";
592
+ const _SUE = "ServiceUnavailableException";
593
+ const _St = "Status";
594
+ const _T = "Tags";
595
+ const _TCPK = "TrustedCertificatePublicKey";
596
+ const _TE = "ThrottlingException";
597
+ const _TK = "TagKeys";
598
+ const _TKB = "Tr31KeyBlock";
599
+ const _TKBr = "Tr34KeyBlock";
600
+ const _TR = "TagResource";
601
+ const _TRI = "TagResourceInput";
602
+ const _TRO = "TagResourceOutput";
603
+ const _TWKB = "Tr31WrappedKeyBlock";
604
+ const _TWKBr = "Tr34WrappedKeyBlock";
605
+ const _Ta = "Tag";
606
+ const _U = "Unwrap";
607
+ const _UA = "UpdateAlias";
608
+ const _UAI = "UpdateAliasInput";
609
+ const _UAO = "UpdateAliasOutput";
610
+ const _UDRR = "UsingDefaultReplicationRegions";
611
+ const _UR = "UntagResource";
612
+ const _URI = "UntagResourceInput";
613
+ const _URO = "UntagResourceOutput";
614
+ const _UST = "UsageStartTimestamp";
615
+ const _USTs = "UsageStopTimestamp";
616
+ const _V = "Verify";
617
+ const _VE = "ValidationException";
618
+ const _Va = "Value";
619
+ const _W = "Wrap";
620
+ const _WK = "WrappedKey";
621
+ const _WKA = "WrappingKeyAlgorithm";
622
+ const _WKAr = "WrappingKeyArn";
623
+ const _WKB = "WrappedKeyBlock";
624
+ const _WKC = "WrappedKeyCryptogram";
625
+ const _WKCC = "WrappingKeyCertificateChain";
626
+ const _WKCr = "WrappingKeyCertificate";
627
+ const _WKI = "WrappingKeyIdentifier";
628
+ const _WKMF = "WrappedKeyMaterialFormat";
629
+ const _WS = "WrappingSpec";
630
+ const _c = "client";
631
+ const _e = "error";
632
+ const _hE = "httpError";
633
+ const _s = "server";
634
+ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.paymentcryptography";
635
+ const n0 = "com.amazonaws.paymentcryptography";
636
+ var CertificateSigningRequestType = [0, n0, _CSRT, 8, 0];
637
+ var KeyMaterial = [0, n0, _KM, 8, 0];
638
+ var OptionalBlockId = [0, n0, _OBI, 8, 0];
639
+ var OptionalBlockValue = [0, n0, _OBV, 8, 0];
640
+ var Tr31WrappedKeyBlock = [0, n0, _TWKB, 8, 0];
641
+ var Tr34WrappedKeyBlock = [0, n0, _TWKBr, 8, 0];
642
+ var WrappedKeyCryptogram = [0, n0, _WKC, 8, 0];
643
+ var AccessDeniedException = [
644
+ -3,
645
+ n0,
646
+ _ADE,
647
+ {
648
+ [_e]: _c,
649
+ [_hE]: 403,
650
+ },
651
+ [_M],
652
+ [0],
653
+ ];
654
+ schema.TypeRegistry.for(n0).registerError(AccessDeniedException, AccessDeniedException$1);
655
+ var AddKeyReplicationRegionsInput = [3, n0, _AKRRI, 0, [_KI, _RR], [0, 64 | 0]];
656
+ var AddKeyReplicationRegionsOutput = [3, n0, _AKRRO, 0, [_K], [() => Key]];
657
+ var Alias = [3, n0, _A, 0, [_AN, _KA], [0, 0]];
658
+ var CertificateSubjectType = [
659
+ 3,
660
+ n0,
661
+ _CST,
662
+ 0,
663
+ [_CN, _OU, _O, _C, _Co, _SOP, _EA],
664
+ [0, 0, 0, 0, 0, 0, 0],
665
+ ];
666
+ var ConflictException = [
667
+ -3,
668
+ n0,
669
+ _CE,
670
+ {
671
+ [_e]: _c,
672
+ [_hE]: 409,
673
+ },
674
+ [_M],
675
+ [0],
676
+ ];
677
+ schema.TypeRegistry.for(n0).registerError(ConflictException, ConflictException$1);
678
+ var CreateAliasInput = [3, n0, _CAI, 0, [_AN, _KA], [0, 0]];
679
+ var CreateAliasOutput = [3, n0, _CAO, 0, [_A], [() => Alias]];
680
+ var CreateKeyInput = [
681
+ 3,
682
+ n0,
683
+ _CKI,
684
+ 0,
685
+ [_KAe, _KCVA, _E, _En, _T, _DKU, _RR],
686
+ [() => KeyAttributes, 0, 2, 2, () => Tags, 0, 64 | 0],
687
+ ];
688
+ var CreateKeyOutput = [3, n0, _CKO, 0, [_K], [() => Key]];
689
+ var DeleteAliasInput = [3, n0, _DAI, 0, [_AN], [0]];
690
+ var DeleteAliasOutput = [3, n0, _DAO, 0, [], []];
691
+ var DeleteKeyInput = [3, n0, _DKI, 0, [_KI, _DKID], [0, 1]];
692
+ var DeleteKeyOutput = [3, n0, _DKO, 0, [_K], [() => Key]];
693
+ var DisableDefaultKeyReplicationRegionsInput = [3, n0, _DDKRRI, 0, [_RR], [64 | 0]];
694
+ var DisableDefaultKeyReplicationRegionsOutput = [3, n0, _DDKRRO, 0, [_ERR], [64 | 0]];
695
+ var EnableDefaultKeyReplicationRegionsInput = [3, n0, _EDKRRI, 0, [_RR], [64 | 0]];
696
+ var EnableDefaultKeyReplicationRegionsOutput = [3, n0, _EDKRRO, 0, [_ERR], [64 | 0]];
697
+ var ExportAttributes = [3, n0, _EAx, 0, [_EDIK, _KCVA], [() => ExportDukptInitialKey, 0]];
698
+ var ExportDiffieHellmanTr31KeyBlock = [
699
+ 3,
700
+ n0,
701
+ _EDHTKB,
702
+ 0,
703
+ [_PKI, _CAPKI, _PKC, _DKA, _KDF, _KDHA, _DD, _KBH],
704
+ [0, 0, 0, 0, 0, 0, () => DiffieHellmanDerivationData, [() => KeyBlockHeaders, 0]],
705
+ ];
706
+ var ExportDukptInitialKey = [3, n0, _EDIK, 0, [_KSN], [0]];
707
+ var ExportKeyCryptogram = [3, n0, _EKC, 0, [_CAPKI, _WKCr, _WS], [0, 0, 0]];
708
+ var ExportKeyInput = [
709
+ 3,
710
+ n0,
711
+ _EKI,
712
+ 0,
713
+ [_KM, _EKIx, _EAx],
714
+ [[() => ExportKeyMaterial, 0], 0, () => ExportAttributes],
715
+ ];
716
+ var ExportKeyOutput = [3, n0, _EKO, 0, [_WK], [[() => WrappedKey, 0]]];
717
+ var ExportTr31KeyBlock = [3, n0, _ETKB, 0, [_WKI, _KBH], [0, [() => KeyBlockHeaders, 0]]];
718
+ var ExportTr34KeyBlock = [
719
+ 3,
720
+ n0,
721
+ _ETKBx,
722
+ 0,
723
+ [_CAPKI, _WKCr, _ET, _SKI, _SKC, _KBF, _RN, _KBH],
724
+ [0, 0, 0, 0, 0, 0, 0, [() => KeyBlockHeaders, 0]],
725
+ ];
726
+ var GetAliasInput = [3, n0, _GAI, 0, [_AN], [0]];
727
+ var GetAliasOutput = [3, n0, _GAO, 0, [_A], [() => Alias]];
728
+ var GetCertificateSigningRequestInput = [
729
+ 3,
730
+ n0,
731
+ _GCSRI,
732
+ 0,
733
+ [_KI, _SA, _CS],
734
+ [0, 0, () => CertificateSubjectType],
735
+ ];
736
+ var GetCertificateSigningRequestOutput = [
737
+ 3,
738
+ n0,
739
+ _GCSRO,
740
+ 0,
741
+ [_CSR],
742
+ [[() => CertificateSigningRequestType, 0]],
743
+ ];
744
+ var GetDefaultKeyReplicationRegionsInput = [3, n0, _GDKRRI, 0, [], []];
745
+ var GetDefaultKeyReplicationRegionsOutput = [3, n0, _GDKRRO, 0, [_ERR], [64 | 0]];
746
+ var GetKeyInput = [3, n0, _GKI, 0, [_KI], [0]];
747
+ var GetKeyOutput = [3, n0, _GKO, 0, [_K], [() => Key]];
748
+ var GetParametersForExportInput = [3, n0, _GPFEI, 0, [_KMT, _SKA], [0, 0]];
749
+ var GetParametersForExportOutput = [
750
+ 3,
751
+ n0,
752
+ _GPFEO,
753
+ 0,
754
+ [_SKC, _SKCC, _SKA, _ET, _PVUT],
755
+ [0, 0, 0, 0, 4],
756
+ ];
757
+ var GetParametersForImportInput = [3, n0, _GPFII, 0, [_KMT, _WKA], [0, 0]];
758
+ var GetParametersForImportOutput = [
759
+ 3,
760
+ n0,
761
+ _GPFIO,
762
+ 0,
763
+ [_WKCr, _WKCC, _WKA, _IT, _PVUT],
764
+ [0, 0, 0, 0, 4],
765
+ ];
766
+ var GetPublicKeyCertificateInput = [3, n0, _GPKCI, 0, [_KI], [0]];
767
+ var GetPublicKeyCertificateOutput = [3, n0, _GPKCO, 0, [_KC, _KCC], [0, 0]];
768
+ var ImportDiffieHellmanTr31KeyBlock = [
769
+ 3,
770
+ n0,
771
+ _IDHTKB,
772
+ 0,
773
+ [_PKI, _CAPKI, _PKC, _DKA, _KDF, _KDHA, _DD, _WKB],
774
+ [0, 0, 0, 0, 0, 0, () => DiffieHellmanDerivationData, [() => Tr31WrappedKeyBlock, 0]],
775
+ ];
776
+ var ImportKeyCryptogram = [
777
+ 3,
778
+ n0,
779
+ _IKC,
780
+ 0,
781
+ [_KAe, _E, _WKC, _IT, _WS],
782
+ [() => KeyAttributes, 2, [() => WrappedKeyCryptogram, 0], 0, 0],
783
+ ];
784
+ var ImportKeyInput = [
785
+ 3,
786
+ n0,
787
+ _IKI,
788
+ 0,
789
+ [_KM, _KCVA, _En, _T, _RR],
790
+ [[() => ImportKeyMaterial, 0], 0, 2, () => Tags, 64 | 0],
791
+ ];
792
+ var ImportKeyOutput = [3, n0, _IKO, 0, [_K], [() => Key]];
793
+ var ImportTr31KeyBlock = [
794
+ 3,
795
+ n0,
796
+ _ITKB,
797
+ 0,
798
+ [_WKI, _WKB],
799
+ [0, [() => Tr31WrappedKeyBlock, 0]],
800
+ ];
801
+ var ImportTr34KeyBlock = [
802
+ 3,
803
+ n0,
804
+ _ITKBm,
805
+ 0,
806
+ [_CAPKI, _SKC, _IT, _WKI, _WKCr, _WKB, _KBF, _RN],
807
+ [0, 0, 0, 0, 0, [() => Tr34WrappedKeyBlock, 0], 0, 0],
808
+ ];
809
+ var InternalServerException = [
810
+ -3,
811
+ n0,
812
+ _ISE,
813
+ {
814
+ [_e]: _s,
815
+ [_hE]: 500,
816
+ },
817
+ [_M],
818
+ [0],
819
+ ];
820
+ schema.TypeRegistry.for(n0).registerError(InternalServerException, InternalServerException$1);
821
+ var Key = [
822
+ 3,
823
+ n0,
824
+ _K,
825
+ 0,
826
+ [_KA, _KAe, _KCV, _KCVA, _En, _E, _KS, _KO, _CT, _UST, _USTs, _DPT, _DT, _DKU, _MRKT, _PR, _RS, _UDRR],
827
+ [0, () => KeyAttributes, 0, 0, 2, 2, 0, 0, 4, 4, 4, 4, 4, 0, 0, 0, () => ReplicationStatus, 2],
828
+ ];
829
+ var KeyAttributes = [
830
+ 3,
831
+ n0,
832
+ _KAe,
833
+ 0,
834
+ [_KU, _KCe, _KAey, _KMOU],
835
+ [0, 0, 0, () => KeyModesOfUse],
836
+ ];
837
+ var KeyBlockHeaders = [
838
+ 3,
839
+ n0,
840
+ _KBH,
841
+ 0,
842
+ [_KMOU, _KE, _KV, _OB],
843
+ [() => KeyModesOfUse, 0, 0, [() => OptionalBlocks, 0]],
844
+ ];
845
+ var KeyModesOfUse = [
846
+ 3,
847
+ n0,
848
+ _KMOU,
849
+ 0,
850
+ [_Enc, _D, _W, _U, _G, _S, _V, _DK, _NR],
851
+ [2, 2, 2, 2, 2, 2, 2, 2, 2],
852
+ ];
853
+ var KeySummary = [
854
+ 3,
855
+ n0,
856
+ _KSe,
857
+ 0,
858
+ [_KA, _KS, _KAe, _KCV, _E, _En, _MRKT, _PR],
859
+ [0, 0, () => KeyAttributes, 0, 2, 2, 0, 0],
860
+ ];
861
+ var ListAliasesInput = [3, n0, _LAI, 0, [_KA, _NT, _MR], [0, 0, 1]];
862
+ var ListAliasesOutput = [3, n0, _LAO, 0, [_Al, _NT], [() => Aliases, 0]];
863
+ var ListKeysInput = [3, n0, _LKI, 0, [_KS, _NT, _MR], [0, 0, 1]];
864
+ var ListKeysOutput = [3, n0, _LKO, 0, [_Ke, _NT], [() => KeySummaryList, 0]];
865
+ var ListTagsForResourceInput = [3, n0, _LTFRI, 0, [_RA, _NT, _MR], [0, 0, 1]];
866
+ var ListTagsForResourceOutput = [3, n0, _LTFRO, 0, [_T, _NT], [() => Tags, 0]];
867
+ var RemoveKeyReplicationRegionsInput = [3, n0, _RKRRI, 0, [_KI, _RR], [0, 64 | 0]];
868
+ var RemoveKeyReplicationRegionsOutput = [3, n0, _RKRRO, 0, [_K], [() => Key]];
869
+ var ReplicationStatusType = [3, n0, _RST, 0, [_St, _SM], [0, 0]];
870
+ var ResourceNotFoundException = [
871
+ -3,
872
+ n0,
873
+ _RNFE,
874
+ {
875
+ [_e]: _c,
876
+ [_hE]: 404,
877
+ },
878
+ [_RI],
879
+ [0],
880
+ ];
881
+ schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException, ResourceNotFoundException$1);
882
+ var RestoreKeyInput = [3, n0, _RKI, 0, [_KI], [0]];
883
+ var RestoreKeyOutput = [3, n0, _RKO, 0, [_K], [() => Key]];
884
+ var RootCertificatePublicKey = [3, n0, _RCPK, 0, [_KAe, _PKC], [() => KeyAttributes, 0]];
885
+ var ServiceQuotaExceededException = [
886
+ -3,
887
+ n0,
888
+ _SQEE,
889
+ {
890
+ [_e]: _c,
891
+ [_hE]: 402,
892
+ },
893
+ [_M],
894
+ [0],
895
+ ];
896
+ schema.TypeRegistry.for(n0).registerError(ServiceQuotaExceededException, ServiceQuotaExceededException$1);
897
+ var ServiceUnavailableException = [
898
+ -3,
899
+ n0,
900
+ _SUE,
901
+ {
902
+ [_e]: _s,
903
+ [_hE]: 503,
904
+ },
905
+ [_M],
906
+ [0],
907
+ ];
908
+ schema.TypeRegistry.for(n0).registerError(ServiceUnavailableException, ServiceUnavailableException$1);
909
+ var StartKeyUsageInput = [3, n0, _SKUI, 0, [_KI], [0]];
910
+ var StartKeyUsageOutput = [3, n0, _SKUO, 0, [_K], [() => Key]];
911
+ var StopKeyUsageInput = [3, n0, _SKUIt, 0, [_KI], [0]];
912
+ var StopKeyUsageOutput = [3, n0, _SKUOt, 0, [_K], [() => Key]];
913
+ var Tag = [3, n0, _Ta, 0, [_K, _Va], [0, 0]];
914
+ var TagResourceInput = [3, n0, _TRI, 0, [_RA, _T], [0, () => Tags]];
915
+ var TagResourceOutput = [3, n0, _TRO, 0, [], []];
916
+ var ThrottlingException = [
917
+ -3,
918
+ n0,
919
+ _TE,
920
+ {
921
+ [_e]: _c,
922
+ [_hE]: 429,
923
+ },
924
+ [_M],
925
+ [0],
926
+ ];
927
+ schema.TypeRegistry.for(n0).registerError(ThrottlingException, ThrottlingException$1);
928
+ var TrustedCertificatePublicKey = [
929
+ 3,
930
+ n0,
931
+ _TCPK,
932
+ 0,
933
+ [_KAe, _PKC, _CAPKI],
934
+ [() => KeyAttributes, 0, 0],
935
+ ];
936
+ var UntagResourceInput = [3, n0, _URI, 0, [_RA, _TK], [0, 64 | 0]];
937
+ var UntagResourceOutput = [3, n0, _URO, 0, [], []];
938
+ var UpdateAliasInput = [3, n0, _UAI, 0, [_AN, _KA], [0, 0]];
939
+ var UpdateAliasOutput = [3, n0, _UAO, 0, [_A], [() => Alias]];
940
+ var ValidationException = [
941
+ -3,
942
+ n0,
943
+ _VE,
944
+ {
945
+ [_e]: _c,
946
+ [_hE]: 400,
947
+ },
948
+ [_M],
949
+ [0],
950
+ ];
951
+ schema.TypeRegistry.for(n0).registerError(ValidationException, ValidationException$1);
952
+ var WrappedKey = [
953
+ 3,
954
+ n0,
955
+ _WK,
956
+ 0,
957
+ [_WKAr, _WKMF, _KM, _KCV, _KCVA],
958
+ [0, 0, [() => KeyMaterial, 0], 0, 0],
959
+ ];
960
+ var PaymentCryptographyServiceException = [
961
+ -3,
962
+ _sm,
963
+ "PaymentCryptographyServiceException",
964
+ 0,
965
+ [],
966
+ [],
967
+ ];
968
+ schema.TypeRegistry.for(_sm).registerError(PaymentCryptographyServiceException, PaymentCryptographyServiceException$1);
969
+ var Aliases = [1, n0, _Al, 0, () => Alias];
970
+ var KeySummaryList = [1, n0, _KSL, 0, () => KeySummary];
971
+ var Tags = [1, n0, _T, 0, () => Tag];
972
+ var OptionalBlocks = [2, n0, _OB, 0, [() => OptionalBlockId, 0], [() => OptionalBlockValue, 0]];
973
+ var ReplicationStatus = [2, n0, _RS, 0, 0, () => ReplicationStatusType];
974
+ var DiffieHellmanDerivationData = [3, n0, _DHDD, 0, [_SI], [0]];
975
+ var ExportKeyMaterial = [
976
+ 3,
977
+ n0,
978
+ _EKM,
979
+ 0,
980
+ [_TKB, _TKBr, _KCey, _DHTKB],
981
+ [
982
+ [() => ExportTr31KeyBlock, 0],
983
+ [() => ExportTr34KeyBlock, 0],
984
+ () => ExportKeyCryptogram,
985
+ [() => ExportDiffieHellmanTr31KeyBlock, 0],
986
+ ],
987
+ ];
988
+ var ImportKeyMaterial = [
989
+ 3,
990
+ n0,
991
+ _IKM,
992
+ 0,
993
+ [_RCPK, _TCPK, _TKB, _TKBr, _KCey, _DHTKB],
994
+ [
995
+ () => RootCertificatePublicKey,
996
+ () => TrustedCertificatePublicKey,
997
+ [() => ImportTr31KeyBlock, 0],
998
+ [() => ImportTr34KeyBlock, 0],
999
+ [() => ImportKeyCryptogram, 0],
1000
+ [() => ImportDiffieHellmanTr31KeyBlock, 0],
1001
+ ],
1002
+ ];
1003
+ var AddKeyReplicationRegions = [
1004
+ 9,
1005
+ n0,
1006
+ _AKRR,
1007
+ 0,
1008
+ () => AddKeyReplicationRegionsInput,
1009
+ () => AddKeyReplicationRegionsOutput,
1010
+ ];
1011
+ var CreateAlias = [9, n0, _CA, 2, () => CreateAliasInput, () => CreateAliasOutput];
1012
+ var CreateKey = [9, n0, _CK, 0, () => CreateKeyInput, () => CreateKeyOutput];
1013
+ var DeleteAlias = [9, n0, _DA, 2, () => DeleteAliasInput, () => DeleteAliasOutput];
1014
+ var DeleteKey = [9, n0, _DKe, 2, () => DeleteKeyInput, () => DeleteKeyOutput];
1015
+ var DisableDefaultKeyReplicationRegions = [
1016
+ 9,
1017
+ n0,
1018
+ _DDKRR,
1019
+ 0,
1020
+ () => DisableDefaultKeyReplicationRegionsInput,
1021
+ () => DisableDefaultKeyReplicationRegionsOutput,
1022
+ ];
1023
+ var EnableDefaultKeyReplicationRegions = [
1024
+ 9,
1025
+ n0,
1026
+ _EDKRR,
1027
+ 0,
1028
+ () => EnableDefaultKeyReplicationRegionsInput,
1029
+ () => EnableDefaultKeyReplicationRegionsOutput,
1030
+ ];
1031
+ var ExportKey = [9, n0, _EK, 0, () => ExportKeyInput, () => ExportKeyOutput];
1032
+ var GetAlias = [9, n0, _GA, 0, () => GetAliasInput, () => GetAliasOutput];
1033
+ var GetCertificateSigningRequest = [
1034
+ 9,
1035
+ n0,
1036
+ _GCSR,
1037
+ 0,
1038
+ () => GetCertificateSigningRequestInput,
1039
+ () => GetCertificateSigningRequestOutput,
1040
+ ];
1041
+ var GetDefaultKeyReplicationRegions = [
1042
+ 9,
1043
+ n0,
1044
+ _GDKRR,
1045
+ 0,
1046
+ () => GetDefaultKeyReplicationRegionsInput,
1047
+ () => GetDefaultKeyReplicationRegionsOutput,
1048
+ ];
1049
+ var GetKey = [9, n0, _GK, 0, () => GetKeyInput, () => GetKeyOutput];
1050
+ var GetParametersForExport = [
1051
+ 9,
1052
+ n0,
1053
+ _GPFE,
1054
+ 0,
1055
+ () => GetParametersForExportInput,
1056
+ () => GetParametersForExportOutput,
1057
+ ];
1058
+ var GetParametersForImport = [
1059
+ 9,
1060
+ n0,
1061
+ _GPFI,
1062
+ 0,
1063
+ () => GetParametersForImportInput,
1064
+ () => GetParametersForImportOutput,
1065
+ ];
1066
+ var GetPublicKeyCertificate = [
1067
+ 9,
1068
+ n0,
1069
+ _GPKC,
1070
+ 0,
1071
+ () => GetPublicKeyCertificateInput,
1072
+ () => GetPublicKeyCertificateOutput,
1073
+ ];
1074
+ var ImportKey = [9, n0, _IK, 0, () => ImportKeyInput, () => ImportKeyOutput];
1075
+ var ListAliases = [9, n0, _LA, 0, () => ListAliasesInput, () => ListAliasesOutput];
1076
+ var ListKeys = [9, n0, _LK, 0, () => ListKeysInput, () => ListKeysOutput];
1077
+ var ListTagsForResource = [
1078
+ 9,
1079
+ n0,
1080
+ _LTFR,
1081
+ 0,
1082
+ () => ListTagsForResourceInput,
1083
+ () => ListTagsForResourceOutput,
1084
+ ];
1085
+ var RemoveKeyReplicationRegions = [
1086
+ 9,
1087
+ n0,
1088
+ _RKRR,
1089
+ 0,
1090
+ () => RemoveKeyReplicationRegionsInput,
1091
+ () => RemoveKeyReplicationRegionsOutput,
1092
+ ];
1093
+ var RestoreKey = [9, n0, _RK, 0, () => RestoreKeyInput, () => RestoreKeyOutput];
1094
+ var StartKeyUsage = [9, n0, _SKU, 0, () => StartKeyUsageInput, () => StartKeyUsageOutput];
1095
+ var StopKeyUsage = [9, n0, _SKUt, 0, () => StopKeyUsageInput, () => StopKeyUsageOutput];
1096
+ var TagResource = [9, n0, _TR, 0, () => TagResourceInput, () => TagResourceOutput];
1097
+ var UntagResource = [9, n0, _UR, 0, () => UntagResourceInput, () => UntagResourceOutput];
1098
+ var UpdateAlias = [9, n0, _UA, 0, () => UpdateAliasInput, () => UpdateAliasOutput];
1223
1099
 
1224
1100
  class AddKeyReplicationRegionsCommand extends smithyClient.Command
1225
1101
  .classBuilder()
1226
1102
  .ep(commonParams)
1227
1103
  .m(function (Command, cs, config, o) {
1228
- return [
1229
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1230
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1231
- ];
1104
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1232
1105
  })
1233
1106
  .s("PaymentCryptographyControlPlane", "AddKeyReplicationRegions", {})
1234
1107
  .n("PaymentCryptographyClient", "AddKeyReplicationRegionsCommand")
1235
- .f(void 0, void 0)
1236
- .ser(se_AddKeyReplicationRegionsCommand)
1237
- .de(de_AddKeyReplicationRegionsCommand)
1108
+ .sc(AddKeyReplicationRegions)
1238
1109
  .build() {
1239
1110
  }
1240
1111
 
@@ -1242,16 +1113,11 @@ class CreateAliasCommand extends smithyClient.Command
1242
1113
  .classBuilder()
1243
1114
  .ep(commonParams)
1244
1115
  .m(function (Command, cs, config, o) {
1245
- return [
1246
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1247
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1248
- ];
1116
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1249
1117
  })
1250
1118
  .s("PaymentCryptographyControlPlane", "CreateAlias", {})
1251
1119
  .n("PaymentCryptographyClient", "CreateAliasCommand")
1252
- .f(void 0, void 0)
1253
- .ser(se_CreateAliasCommand)
1254
- .de(de_CreateAliasCommand)
1120
+ .sc(CreateAlias)
1255
1121
  .build() {
1256
1122
  }
1257
1123
 
@@ -1259,16 +1125,11 @@ class CreateKeyCommand extends smithyClient.Command
1259
1125
  .classBuilder()
1260
1126
  .ep(commonParams)
1261
1127
  .m(function (Command, cs, config, o) {
1262
- return [
1263
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1264
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1265
- ];
1128
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1266
1129
  })
1267
1130
  .s("PaymentCryptographyControlPlane", "CreateKey", {})
1268
1131
  .n("PaymentCryptographyClient", "CreateKeyCommand")
1269
- .f(void 0, void 0)
1270
- .ser(se_CreateKeyCommand)
1271
- .de(de_CreateKeyCommand)
1132
+ .sc(CreateKey)
1272
1133
  .build() {
1273
1134
  }
1274
1135
 
@@ -1276,16 +1137,11 @@ class DeleteAliasCommand extends smithyClient.Command
1276
1137
  .classBuilder()
1277
1138
  .ep(commonParams)
1278
1139
  .m(function (Command, cs, config, o) {
1279
- return [
1280
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1281
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1282
- ];
1140
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1283
1141
  })
1284
1142
  .s("PaymentCryptographyControlPlane", "DeleteAlias", {})
1285
1143
  .n("PaymentCryptographyClient", "DeleteAliasCommand")
1286
- .f(void 0, void 0)
1287
- .ser(se_DeleteAliasCommand)
1288
- .de(de_DeleteAliasCommand)
1144
+ .sc(DeleteAlias)
1289
1145
  .build() {
1290
1146
  }
1291
1147
 
@@ -1293,16 +1149,11 @@ class DeleteKeyCommand extends smithyClient.Command
1293
1149
  .classBuilder()
1294
1150
  .ep(commonParams)
1295
1151
  .m(function (Command, cs, config, o) {
1296
- return [
1297
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1298
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1299
- ];
1152
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1300
1153
  })
1301
1154
  .s("PaymentCryptographyControlPlane", "DeleteKey", {})
1302
1155
  .n("PaymentCryptographyClient", "DeleteKeyCommand")
1303
- .f(void 0, void 0)
1304
- .ser(se_DeleteKeyCommand)
1305
- .de(de_DeleteKeyCommand)
1156
+ .sc(DeleteKey)
1306
1157
  .build() {
1307
1158
  }
1308
1159
 
@@ -1310,16 +1161,11 @@ class DisableDefaultKeyReplicationRegionsCommand extends smithyClient.Command
1310
1161
  .classBuilder()
1311
1162
  .ep(commonParams)
1312
1163
  .m(function (Command, cs, config, o) {
1313
- return [
1314
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1315
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1316
- ];
1164
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1317
1165
  })
1318
1166
  .s("PaymentCryptographyControlPlane", "DisableDefaultKeyReplicationRegions", {})
1319
1167
  .n("PaymentCryptographyClient", "DisableDefaultKeyReplicationRegionsCommand")
1320
- .f(void 0, void 0)
1321
- .ser(se_DisableDefaultKeyReplicationRegionsCommand)
1322
- .de(de_DisableDefaultKeyReplicationRegionsCommand)
1168
+ .sc(DisableDefaultKeyReplicationRegions)
1323
1169
  .build() {
1324
1170
  }
1325
1171
 
@@ -1327,16 +1173,11 @@ class EnableDefaultKeyReplicationRegionsCommand extends smithyClient.Command
1327
1173
  .classBuilder()
1328
1174
  .ep(commonParams)
1329
1175
  .m(function (Command, cs, config, o) {
1330
- return [
1331
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1332
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1333
- ];
1176
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1334
1177
  })
1335
1178
  .s("PaymentCryptographyControlPlane", "EnableDefaultKeyReplicationRegions", {})
1336
1179
  .n("PaymentCryptographyClient", "EnableDefaultKeyReplicationRegionsCommand")
1337
- .f(void 0, void 0)
1338
- .ser(se_EnableDefaultKeyReplicationRegionsCommand)
1339
- .de(de_EnableDefaultKeyReplicationRegionsCommand)
1180
+ .sc(EnableDefaultKeyReplicationRegions)
1340
1181
  .build() {
1341
1182
  }
1342
1183
 
@@ -1344,16 +1185,11 @@ class ExportKeyCommand extends smithyClient.Command
1344
1185
  .classBuilder()
1345
1186
  .ep(commonParams)
1346
1187
  .m(function (Command, cs, config, o) {
1347
- return [
1348
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1349
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1350
- ];
1188
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1351
1189
  })
1352
1190
  .s("PaymentCryptographyControlPlane", "ExportKey", {})
1353
1191
  .n("PaymentCryptographyClient", "ExportKeyCommand")
1354
- .f(ExportKeyInputFilterSensitiveLog, ExportKeyOutputFilterSensitiveLog)
1355
- .ser(se_ExportKeyCommand)
1356
- .de(de_ExportKeyCommand)
1192
+ .sc(ExportKey)
1357
1193
  .build() {
1358
1194
  }
1359
1195
 
@@ -1361,16 +1197,11 @@ class GetAliasCommand extends smithyClient.Command
1361
1197
  .classBuilder()
1362
1198
  .ep(commonParams)
1363
1199
  .m(function (Command, cs, config, o) {
1364
- return [
1365
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1366
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1367
- ];
1200
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1368
1201
  })
1369
1202
  .s("PaymentCryptographyControlPlane", "GetAlias", {})
1370
1203
  .n("PaymentCryptographyClient", "GetAliasCommand")
1371
- .f(void 0, void 0)
1372
- .ser(se_GetAliasCommand)
1373
- .de(de_GetAliasCommand)
1204
+ .sc(GetAlias)
1374
1205
  .build() {
1375
1206
  }
1376
1207
 
@@ -1378,16 +1209,11 @@ class GetCertificateSigningRequestCommand extends smithyClient.Command
1378
1209
  .classBuilder()
1379
1210
  .ep(commonParams)
1380
1211
  .m(function (Command, cs, config, o) {
1381
- return [
1382
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1383
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1384
- ];
1212
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1385
1213
  })
1386
1214
  .s("PaymentCryptographyControlPlane", "GetCertificateSigningRequest", {})
1387
1215
  .n("PaymentCryptographyClient", "GetCertificateSigningRequestCommand")
1388
- .f(void 0, GetCertificateSigningRequestOutputFilterSensitiveLog)
1389
- .ser(se_GetCertificateSigningRequestCommand)
1390
- .de(de_GetCertificateSigningRequestCommand)
1216
+ .sc(GetCertificateSigningRequest)
1391
1217
  .build() {
1392
1218
  }
1393
1219
 
@@ -1395,16 +1221,11 @@ class GetDefaultKeyReplicationRegionsCommand extends smithyClient.Command
1395
1221
  .classBuilder()
1396
1222
  .ep(commonParams)
1397
1223
  .m(function (Command, cs, config, o) {
1398
- return [
1399
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1400
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1401
- ];
1224
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1402
1225
  })
1403
1226
  .s("PaymentCryptographyControlPlane", "GetDefaultKeyReplicationRegions", {})
1404
1227
  .n("PaymentCryptographyClient", "GetDefaultKeyReplicationRegionsCommand")
1405
- .f(void 0, void 0)
1406
- .ser(se_GetDefaultKeyReplicationRegionsCommand)
1407
- .de(de_GetDefaultKeyReplicationRegionsCommand)
1228
+ .sc(GetDefaultKeyReplicationRegions)
1408
1229
  .build() {
1409
1230
  }
1410
1231
 
@@ -1412,16 +1233,11 @@ class GetKeyCommand extends smithyClient.Command
1412
1233
  .classBuilder()
1413
1234
  .ep(commonParams)
1414
1235
  .m(function (Command, cs, config, o) {
1415
- return [
1416
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1417
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1418
- ];
1236
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1419
1237
  })
1420
1238
  .s("PaymentCryptographyControlPlane", "GetKey", {})
1421
1239
  .n("PaymentCryptographyClient", "GetKeyCommand")
1422
- .f(void 0, void 0)
1423
- .ser(se_GetKeyCommand)
1424
- .de(de_GetKeyCommand)
1240
+ .sc(GetKey)
1425
1241
  .build() {
1426
1242
  }
1427
1243
 
@@ -1429,16 +1245,11 @@ class GetParametersForExportCommand extends smithyClient.Command
1429
1245
  .classBuilder()
1430
1246
  .ep(commonParams)
1431
1247
  .m(function (Command, cs, config, o) {
1432
- return [
1433
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1434
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1435
- ];
1248
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1436
1249
  })
1437
1250
  .s("PaymentCryptographyControlPlane", "GetParametersForExport", {})
1438
1251
  .n("PaymentCryptographyClient", "GetParametersForExportCommand")
1439
- .f(void 0, void 0)
1440
- .ser(se_GetParametersForExportCommand)
1441
- .de(de_GetParametersForExportCommand)
1252
+ .sc(GetParametersForExport)
1442
1253
  .build() {
1443
1254
  }
1444
1255
 
@@ -1446,16 +1257,11 @@ class GetParametersForImportCommand extends smithyClient.Command
1446
1257
  .classBuilder()
1447
1258
  .ep(commonParams)
1448
1259
  .m(function (Command, cs, config, o) {
1449
- return [
1450
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1451
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1452
- ];
1260
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1453
1261
  })
1454
1262
  .s("PaymentCryptographyControlPlane", "GetParametersForImport", {})
1455
1263
  .n("PaymentCryptographyClient", "GetParametersForImportCommand")
1456
- .f(void 0, void 0)
1457
- .ser(se_GetParametersForImportCommand)
1458
- .de(de_GetParametersForImportCommand)
1264
+ .sc(GetParametersForImport)
1459
1265
  .build() {
1460
1266
  }
1461
1267
 
@@ -1463,16 +1269,11 @@ class GetPublicKeyCertificateCommand extends smithyClient.Command
1463
1269
  .classBuilder()
1464
1270
  .ep(commonParams)
1465
1271
  .m(function (Command, cs, config, o) {
1466
- return [
1467
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1468
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1469
- ];
1272
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1470
1273
  })
1471
1274
  .s("PaymentCryptographyControlPlane", "GetPublicKeyCertificate", {})
1472
1275
  .n("PaymentCryptographyClient", "GetPublicKeyCertificateCommand")
1473
- .f(void 0, void 0)
1474
- .ser(se_GetPublicKeyCertificateCommand)
1475
- .de(de_GetPublicKeyCertificateCommand)
1276
+ .sc(GetPublicKeyCertificate)
1476
1277
  .build() {
1477
1278
  }
1478
1279
 
@@ -1480,16 +1281,11 @@ class ImportKeyCommand extends smithyClient.Command
1480
1281
  .classBuilder()
1481
1282
  .ep(commonParams)
1482
1283
  .m(function (Command, cs, config, o) {
1483
- return [
1484
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1485
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1486
- ];
1284
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1487
1285
  })
1488
1286
  .s("PaymentCryptographyControlPlane", "ImportKey", {})
1489
1287
  .n("PaymentCryptographyClient", "ImportKeyCommand")
1490
- .f(ImportKeyInputFilterSensitiveLog, void 0)
1491
- .ser(se_ImportKeyCommand)
1492
- .de(de_ImportKeyCommand)
1288
+ .sc(ImportKey)
1493
1289
  .build() {
1494
1290
  }
1495
1291
 
@@ -1497,16 +1293,11 @@ class ListAliasesCommand extends smithyClient.Command
1497
1293
  .classBuilder()
1498
1294
  .ep(commonParams)
1499
1295
  .m(function (Command, cs, config, o) {
1500
- return [
1501
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1502
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1503
- ];
1296
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1504
1297
  })
1505
1298
  .s("PaymentCryptographyControlPlane", "ListAliases", {})
1506
1299
  .n("PaymentCryptographyClient", "ListAliasesCommand")
1507
- .f(void 0, void 0)
1508
- .ser(se_ListAliasesCommand)
1509
- .de(de_ListAliasesCommand)
1300
+ .sc(ListAliases)
1510
1301
  .build() {
1511
1302
  }
1512
1303
 
@@ -1514,16 +1305,11 @@ class ListKeysCommand extends smithyClient.Command
1514
1305
  .classBuilder()
1515
1306
  .ep(commonParams)
1516
1307
  .m(function (Command, cs, config, o) {
1517
- return [
1518
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1519
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1520
- ];
1308
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1521
1309
  })
1522
1310
  .s("PaymentCryptographyControlPlane", "ListKeys", {})
1523
1311
  .n("PaymentCryptographyClient", "ListKeysCommand")
1524
- .f(void 0, void 0)
1525
- .ser(se_ListKeysCommand)
1526
- .de(de_ListKeysCommand)
1312
+ .sc(ListKeys)
1527
1313
  .build() {
1528
1314
  }
1529
1315
 
@@ -1531,16 +1317,11 @@ class ListTagsForResourceCommand extends smithyClient.Command
1531
1317
  .classBuilder()
1532
1318
  .ep(commonParams)
1533
1319
  .m(function (Command, cs, config, o) {
1534
- return [
1535
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1536
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1537
- ];
1320
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1538
1321
  })
1539
1322
  .s("PaymentCryptographyControlPlane", "ListTagsForResource", {})
1540
1323
  .n("PaymentCryptographyClient", "ListTagsForResourceCommand")
1541
- .f(void 0, void 0)
1542
- .ser(se_ListTagsForResourceCommand)
1543
- .de(de_ListTagsForResourceCommand)
1324
+ .sc(ListTagsForResource)
1544
1325
  .build() {
1545
1326
  }
1546
1327
 
@@ -1548,16 +1329,11 @@ class RemoveKeyReplicationRegionsCommand extends smithyClient.Command
1548
1329
  .classBuilder()
1549
1330
  .ep(commonParams)
1550
1331
  .m(function (Command, cs, config, o) {
1551
- return [
1552
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1553
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1554
- ];
1332
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1555
1333
  })
1556
1334
  .s("PaymentCryptographyControlPlane", "RemoveKeyReplicationRegions", {})
1557
1335
  .n("PaymentCryptographyClient", "RemoveKeyReplicationRegionsCommand")
1558
- .f(void 0, void 0)
1559
- .ser(se_RemoveKeyReplicationRegionsCommand)
1560
- .de(de_RemoveKeyReplicationRegionsCommand)
1336
+ .sc(RemoveKeyReplicationRegions)
1561
1337
  .build() {
1562
1338
  }
1563
1339
 
@@ -1565,16 +1341,11 @@ class RestoreKeyCommand extends smithyClient.Command
1565
1341
  .classBuilder()
1566
1342
  .ep(commonParams)
1567
1343
  .m(function (Command, cs, config, o) {
1568
- return [
1569
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1570
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1571
- ];
1344
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1572
1345
  })
1573
1346
  .s("PaymentCryptographyControlPlane", "RestoreKey", {})
1574
1347
  .n("PaymentCryptographyClient", "RestoreKeyCommand")
1575
- .f(void 0, void 0)
1576
- .ser(se_RestoreKeyCommand)
1577
- .de(de_RestoreKeyCommand)
1348
+ .sc(RestoreKey)
1578
1349
  .build() {
1579
1350
  }
1580
1351
 
@@ -1582,16 +1353,11 @@ class StartKeyUsageCommand extends smithyClient.Command
1582
1353
  .classBuilder()
1583
1354
  .ep(commonParams)
1584
1355
  .m(function (Command, cs, config, o) {
1585
- return [
1586
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1587
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1588
- ];
1356
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1589
1357
  })
1590
1358
  .s("PaymentCryptographyControlPlane", "StartKeyUsage", {})
1591
1359
  .n("PaymentCryptographyClient", "StartKeyUsageCommand")
1592
- .f(void 0, void 0)
1593
- .ser(se_StartKeyUsageCommand)
1594
- .de(de_StartKeyUsageCommand)
1360
+ .sc(StartKeyUsage)
1595
1361
  .build() {
1596
1362
  }
1597
1363
 
@@ -1599,16 +1365,11 @@ class StopKeyUsageCommand extends smithyClient.Command
1599
1365
  .classBuilder()
1600
1366
  .ep(commonParams)
1601
1367
  .m(function (Command, cs, config, o) {
1602
- return [
1603
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1604
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1605
- ];
1368
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1606
1369
  })
1607
1370
  .s("PaymentCryptographyControlPlane", "StopKeyUsage", {})
1608
1371
  .n("PaymentCryptographyClient", "StopKeyUsageCommand")
1609
- .f(void 0, void 0)
1610
- .ser(se_StopKeyUsageCommand)
1611
- .de(de_StopKeyUsageCommand)
1372
+ .sc(StopKeyUsage)
1612
1373
  .build() {
1613
1374
  }
1614
1375
 
@@ -1616,16 +1377,11 @@ class TagResourceCommand extends smithyClient.Command
1616
1377
  .classBuilder()
1617
1378
  .ep(commonParams)
1618
1379
  .m(function (Command, cs, config, o) {
1619
- return [
1620
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1621
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1622
- ];
1380
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1623
1381
  })
1624
1382
  .s("PaymentCryptographyControlPlane", "TagResource", {})
1625
1383
  .n("PaymentCryptographyClient", "TagResourceCommand")
1626
- .f(void 0, void 0)
1627
- .ser(se_TagResourceCommand)
1628
- .de(de_TagResourceCommand)
1384
+ .sc(TagResource)
1629
1385
  .build() {
1630
1386
  }
1631
1387
 
@@ -1633,16 +1389,11 @@ class UntagResourceCommand extends smithyClient.Command
1633
1389
  .classBuilder()
1634
1390
  .ep(commonParams)
1635
1391
  .m(function (Command, cs, config, o) {
1636
- return [
1637
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1638
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1639
- ];
1392
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1640
1393
  })
1641
1394
  .s("PaymentCryptographyControlPlane", "UntagResource", {})
1642
1395
  .n("PaymentCryptographyClient", "UntagResourceCommand")
1643
- .f(void 0, void 0)
1644
- .ser(se_UntagResourceCommand)
1645
- .de(de_UntagResourceCommand)
1396
+ .sc(UntagResource)
1646
1397
  .build() {
1647
1398
  }
1648
1399
 
@@ -1650,16 +1401,11 @@ class UpdateAliasCommand extends smithyClient.Command
1650
1401
  .classBuilder()
1651
1402
  .ep(commonParams)
1652
1403
  .m(function (Command, cs, config, o) {
1653
- return [
1654
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1655
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1656
- ];
1404
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1657
1405
  })
1658
1406
  .s("PaymentCryptographyControlPlane", "UpdateAlias", {})
1659
1407
  .n("PaymentCryptographyClient", "UpdateAliasCommand")
1660
- .f(void 0, void 0)
1661
- .ser(se_UpdateAliasCommand)
1662
- .de(de_UpdateAliasCommand)
1408
+ .sc(UpdateAlias)
1663
1409
  .build() {
1664
1410
  }
1665
1411
 
@@ -1709,9 +1455,9 @@ Object.defineProperty(exports, "__Client", {
1709
1455
  enumerable: true,
1710
1456
  get: function () { return smithyClient.Client; }
1711
1457
  });
1712
- exports.AccessDeniedException = AccessDeniedException;
1458
+ exports.AccessDeniedException = AccessDeniedException$1;
1713
1459
  exports.AddKeyReplicationRegionsCommand = AddKeyReplicationRegionsCommand;
1714
- exports.ConflictException = ConflictException;
1460
+ exports.ConflictException = ConflictException$1;
1715
1461
  exports.CreateAliasCommand = CreateAliasCommand;
1716
1462
  exports.CreateKeyCommand = CreateKeyCommand;
1717
1463
  exports.DeleteAliasCommand = DeleteAliasCommand;
@@ -1719,31 +1465,17 @@ exports.DeleteKeyCommand = DeleteKeyCommand;
1719
1465
  exports.DeriveKeyUsage = DeriveKeyUsage;
1720
1466
  exports.DisableDefaultKeyReplicationRegionsCommand = DisableDefaultKeyReplicationRegionsCommand;
1721
1467
  exports.EnableDefaultKeyReplicationRegionsCommand = EnableDefaultKeyReplicationRegionsCommand;
1722
- exports.ExportDiffieHellmanTr31KeyBlockFilterSensitiveLog = ExportDiffieHellmanTr31KeyBlockFilterSensitiveLog;
1723
1468
  exports.ExportKeyCommand = ExportKeyCommand;
1724
- exports.ExportKeyInputFilterSensitiveLog = ExportKeyInputFilterSensitiveLog;
1725
- exports.ExportKeyMaterialFilterSensitiveLog = ExportKeyMaterialFilterSensitiveLog;
1726
- exports.ExportKeyOutputFilterSensitiveLog = ExportKeyOutputFilterSensitiveLog;
1727
- exports.ExportTr31KeyBlockFilterSensitiveLog = ExportTr31KeyBlockFilterSensitiveLog;
1728
- exports.ExportTr34KeyBlockFilterSensitiveLog = ExportTr34KeyBlockFilterSensitiveLog;
1729
1469
  exports.GetAliasCommand = GetAliasCommand;
1730
1470
  exports.GetCertificateSigningRequestCommand = GetCertificateSigningRequestCommand;
1731
- exports.GetCertificateSigningRequestOutputFilterSensitiveLog = GetCertificateSigningRequestOutputFilterSensitiveLog;
1732
1471
  exports.GetDefaultKeyReplicationRegionsCommand = GetDefaultKeyReplicationRegionsCommand;
1733
1472
  exports.GetKeyCommand = GetKeyCommand;
1734
1473
  exports.GetParametersForExportCommand = GetParametersForExportCommand;
1735
1474
  exports.GetParametersForImportCommand = GetParametersForImportCommand;
1736
1475
  exports.GetPublicKeyCertificateCommand = GetPublicKeyCertificateCommand;
1737
- exports.ImportDiffieHellmanTr31KeyBlockFilterSensitiveLog = ImportDiffieHellmanTr31KeyBlockFilterSensitiveLog;
1738
1476
  exports.ImportKeyCommand = ImportKeyCommand;
1739
- exports.ImportKeyCryptogramFilterSensitiveLog = ImportKeyCryptogramFilterSensitiveLog;
1740
- exports.ImportKeyInputFilterSensitiveLog = ImportKeyInputFilterSensitiveLog;
1741
- exports.ImportKeyMaterialFilterSensitiveLog = ImportKeyMaterialFilterSensitiveLog;
1742
- exports.ImportTr31KeyBlockFilterSensitiveLog = ImportTr31KeyBlockFilterSensitiveLog;
1743
- exports.ImportTr34KeyBlockFilterSensitiveLog = ImportTr34KeyBlockFilterSensitiveLog;
1744
- exports.InternalServerException = InternalServerException;
1477
+ exports.InternalServerException = InternalServerException$1;
1745
1478
  exports.KeyAlgorithm = KeyAlgorithm;
1746
- exports.KeyBlockHeadersFilterSensitiveLog = KeyBlockHeadersFilterSensitiveLog;
1747
1479
  exports.KeyCheckValueAlgorithm = KeyCheckValueAlgorithm;
1748
1480
  exports.KeyClass = KeyClass;
1749
1481
  exports.KeyDerivationFunction = KeyDerivationFunction;
@@ -1760,23 +1492,22 @@ exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1760
1492
  exports.MultiRegionKeyType = MultiRegionKeyType;
1761
1493
  exports.PaymentCryptography = PaymentCryptography;
1762
1494
  exports.PaymentCryptographyClient = PaymentCryptographyClient;
1763
- exports.PaymentCryptographyServiceException = PaymentCryptographyServiceException;
1495
+ exports.PaymentCryptographyServiceException = PaymentCryptographyServiceException$1;
1764
1496
  exports.RemoveKeyReplicationRegionsCommand = RemoveKeyReplicationRegionsCommand;
1765
- exports.ResourceNotFoundException = ResourceNotFoundException;
1497
+ exports.ResourceNotFoundException = ResourceNotFoundException$1;
1766
1498
  exports.RestoreKeyCommand = RestoreKeyCommand;
1767
- exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
1768
- exports.ServiceUnavailableException = ServiceUnavailableException;
1499
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException$1;
1500
+ exports.ServiceUnavailableException = ServiceUnavailableException$1;
1769
1501
  exports.SigningAlgorithmType = SigningAlgorithmType;
1770
1502
  exports.StartKeyUsageCommand = StartKeyUsageCommand;
1771
1503
  exports.StopKeyUsageCommand = StopKeyUsageCommand;
1772
1504
  exports.SymmetricKeyAlgorithm = SymmetricKeyAlgorithm;
1773
1505
  exports.TagResourceCommand = TagResourceCommand;
1774
- exports.ThrottlingException = ThrottlingException;
1506
+ exports.ThrottlingException = ThrottlingException$1;
1775
1507
  exports.Tr34KeyBlockFormat = Tr34KeyBlockFormat;
1776
1508
  exports.UntagResourceCommand = UntagResourceCommand;
1777
1509
  exports.UpdateAliasCommand = UpdateAliasCommand;
1778
- exports.ValidationException = ValidationException;
1779
- exports.WrappedKeyFilterSensitiveLog = WrappedKeyFilterSensitiveLog;
1510
+ exports.ValidationException = ValidationException$1;
1780
1511
  exports.WrappedKeyMaterialFormat = WrappedKeyMaterialFormat;
1781
1512
  exports.WrappingKeySpec = WrappingKeySpec;
1782
1513
  exports.paginateListAliases = paginateListAliases;