@aws-sdk/client-cloudhsm-v2 3.504.0 → 3.509.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +17 -469
- package/dist-es/protocols/Aws_json1_1.js +16 -468
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -402,7 +402,7 @@ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
402
402
|
}, "se_UntagResourceCommand");
|
|
403
403
|
var de_CopyBackupToRegionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
404
404
|
if (output.statusCode >= 300) {
|
|
405
|
-
return
|
|
405
|
+
return de_CommandError(output, context);
|
|
406
406
|
}
|
|
407
407
|
const data = await parseBody(output.body, context);
|
|
408
408
|
let contents = {};
|
|
@@ -413,43 +413,9 @@ var de_CopyBackupToRegionCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
413
413
|
};
|
|
414
414
|
return response;
|
|
415
415
|
}, "de_CopyBackupToRegionCommand");
|
|
416
|
-
var de_CopyBackupToRegionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
417
|
-
const parsedOutput = {
|
|
418
|
-
...output,
|
|
419
|
-
body: await parseErrorBody(output.body, context)
|
|
420
|
-
};
|
|
421
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
422
|
-
switch (errorCode) {
|
|
423
|
-
case "CloudHsmAccessDeniedException":
|
|
424
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmAccessDeniedException":
|
|
425
|
-
throw await de_CloudHsmAccessDeniedExceptionRes(parsedOutput, context);
|
|
426
|
-
case "CloudHsmInternalFailureException":
|
|
427
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmInternalFailureException":
|
|
428
|
-
throw await de_CloudHsmInternalFailureExceptionRes(parsedOutput, context);
|
|
429
|
-
case "CloudHsmInvalidRequestException":
|
|
430
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmInvalidRequestException":
|
|
431
|
-
throw await de_CloudHsmInvalidRequestExceptionRes(parsedOutput, context);
|
|
432
|
-
case "CloudHsmResourceNotFoundException":
|
|
433
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmResourceNotFoundException":
|
|
434
|
-
throw await de_CloudHsmResourceNotFoundExceptionRes(parsedOutput, context);
|
|
435
|
-
case "CloudHsmServiceException":
|
|
436
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmServiceException":
|
|
437
|
-
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
438
|
-
case "CloudHsmTagException":
|
|
439
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmTagException":
|
|
440
|
-
throw await de_CloudHsmTagExceptionRes(parsedOutput, context);
|
|
441
|
-
default:
|
|
442
|
-
const parsedBody = parsedOutput.body;
|
|
443
|
-
return throwDefaultError({
|
|
444
|
-
output,
|
|
445
|
-
parsedBody,
|
|
446
|
-
errorCode
|
|
447
|
-
});
|
|
448
|
-
}
|
|
449
|
-
}, "de_CopyBackupToRegionCommandError");
|
|
450
416
|
var de_CreateClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
451
417
|
if (output.statusCode >= 300) {
|
|
452
|
-
return
|
|
418
|
+
return de_CommandError(output, context);
|
|
453
419
|
}
|
|
454
420
|
const data = await parseBody(output.body, context);
|
|
455
421
|
let contents = {};
|
|
@@ -460,43 +426,9 @@ var de_CreateClusterCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
460
426
|
};
|
|
461
427
|
return response;
|
|
462
428
|
}, "de_CreateClusterCommand");
|
|
463
|
-
var de_CreateClusterCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
464
|
-
const parsedOutput = {
|
|
465
|
-
...output,
|
|
466
|
-
body: await parseErrorBody(output.body, context)
|
|
467
|
-
};
|
|
468
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
469
|
-
switch (errorCode) {
|
|
470
|
-
case "CloudHsmAccessDeniedException":
|
|
471
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmAccessDeniedException":
|
|
472
|
-
throw await de_CloudHsmAccessDeniedExceptionRes(parsedOutput, context);
|
|
473
|
-
case "CloudHsmInternalFailureException":
|
|
474
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmInternalFailureException":
|
|
475
|
-
throw await de_CloudHsmInternalFailureExceptionRes(parsedOutput, context);
|
|
476
|
-
case "CloudHsmInvalidRequestException":
|
|
477
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmInvalidRequestException":
|
|
478
|
-
throw await de_CloudHsmInvalidRequestExceptionRes(parsedOutput, context);
|
|
479
|
-
case "CloudHsmResourceNotFoundException":
|
|
480
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmResourceNotFoundException":
|
|
481
|
-
throw await de_CloudHsmResourceNotFoundExceptionRes(parsedOutput, context);
|
|
482
|
-
case "CloudHsmServiceException":
|
|
483
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmServiceException":
|
|
484
|
-
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
485
|
-
case "CloudHsmTagException":
|
|
486
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmTagException":
|
|
487
|
-
throw await de_CloudHsmTagExceptionRes(parsedOutput, context);
|
|
488
|
-
default:
|
|
489
|
-
const parsedBody = parsedOutput.body;
|
|
490
|
-
return throwDefaultError({
|
|
491
|
-
output,
|
|
492
|
-
parsedBody,
|
|
493
|
-
errorCode
|
|
494
|
-
});
|
|
495
|
-
}
|
|
496
|
-
}, "de_CreateClusterCommandError");
|
|
497
429
|
var de_CreateHsmCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
498
430
|
if (output.statusCode >= 300) {
|
|
499
|
-
return
|
|
431
|
+
return de_CommandError(output, context);
|
|
500
432
|
}
|
|
501
433
|
const data = await parseBody(output.body, context);
|
|
502
434
|
let contents = {};
|
|
@@ -507,40 +439,9 @@ var de_CreateHsmCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
507
439
|
};
|
|
508
440
|
return response;
|
|
509
441
|
}, "de_CreateHsmCommand");
|
|
510
|
-
var de_CreateHsmCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
511
|
-
const parsedOutput = {
|
|
512
|
-
...output,
|
|
513
|
-
body: await parseErrorBody(output.body, context)
|
|
514
|
-
};
|
|
515
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
516
|
-
switch (errorCode) {
|
|
517
|
-
case "CloudHsmAccessDeniedException":
|
|
518
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmAccessDeniedException":
|
|
519
|
-
throw await de_CloudHsmAccessDeniedExceptionRes(parsedOutput, context);
|
|
520
|
-
case "CloudHsmInternalFailureException":
|
|
521
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmInternalFailureException":
|
|
522
|
-
throw await de_CloudHsmInternalFailureExceptionRes(parsedOutput, context);
|
|
523
|
-
case "CloudHsmInvalidRequestException":
|
|
524
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmInvalidRequestException":
|
|
525
|
-
throw await de_CloudHsmInvalidRequestExceptionRes(parsedOutput, context);
|
|
526
|
-
case "CloudHsmResourceNotFoundException":
|
|
527
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmResourceNotFoundException":
|
|
528
|
-
throw await de_CloudHsmResourceNotFoundExceptionRes(parsedOutput, context);
|
|
529
|
-
case "CloudHsmServiceException":
|
|
530
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmServiceException":
|
|
531
|
-
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
532
|
-
default:
|
|
533
|
-
const parsedBody = parsedOutput.body;
|
|
534
|
-
return throwDefaultError({
|
|
535
|
-
output,
|
|
536
|
-
parsedBody,
|
|
537
|
-
errorCode
|
|
538
|
-
});
|
|
539
|
-
}
|
|
540
|
-
}, "de_CreateHsmCommandError");
|
|
541
442
|
var de_DeleteBackupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
542
443
|
if (output.statusCode >= 300) {
|
|
543
|
-
return
|
|
444
|
+
return de_CommandError(output, context);
|
|
544
445
|
}
|
|
545
446
|
const data = await parseBody(output.body, context);
|
|
546
447
|
let contents = {};
|
|
@@ -551,40 +452,9 @@ var de_DeleteBackupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
551
452
|
};
|
|
552
453
|
return response;
|
|
553
454
|
}, "de_DeleteBackupCommand");
|
|
554
|
-
var de_DeleteBackupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
555
|
-
const parsedOutput = {
|
|
556
|
-
...output,
|
|
557
|
-
body: await parseErrorBody(output.body, context)
|
|
558
|
-
};
|
|
559
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
560
|
-
switch (errorCode) {
|
|
561
|
-
case "CloudHsmAccessDeniedException":
|
|
562
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmAccessDeniedException":
|
|
563
|
-
throw await de_CloudHsmAccessDeniedExceptionRes(parsedOutput, context);
|
|
564
|
-
case "CloudHsmInternalFailureException":
|
|
565
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmInternalFailureException":
|
|
566
|
-
throw await de_CloudHsmInternalFailureExceptionRes(parsedOutput, context);
|
|
567
|
-
case "CloudHsmInvalidRequestException":
|
|
568
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmInvalidRequestException":
|
|
569
|
-
throw await de_CloudHsmInvalidRequestExceptionRes(parsedOutput, context);
|
|
570
|
-
case "CloudHsmResourceNotFoundException":
|
|
571
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmResourceNotFoundException":
|
|
572
|
-
throw await de_CloudHsmResourceNotFoundExceptionRes(parsedOutput, context);
|
|
573
|
-
case "CloudHsmServiceException":
|
|
574
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmServiceException":
|
|
575
|
-
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
576
|
-
default:
|
|
577
|
-
const parsedBody = parsedOutput.body;
|
|
578
|
-
return throwDefaultError({
|
|
579
|
-
output,
|
|
580
|
-
parsedBody,
|
|
581
|
-
errorCode
|
|
582
|
-
});
|
|
583
|
-
}
|
|
584
|
-
}, "de_DeleteBackupCommandError");
|
|
585
455
|
var de_DeleteClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
586
456
|
if (output.statusCode >= 300) {
|
|
587
|
-
return
|
|
457
|
+
return de_CommandError(output, context);
|
|
588
458
|
}
|
|
589
459
|
const data = await parseBody(output.body, context);
|
|
590
460
|
let contents = {};
|
|
@@ -595,43 +465,9 @@ var de_DeleteClusterCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
595
465
|
};
|
|
596
466
|
return response;
|
|
597
467
|
}, "de_DeleteClusterCommand");
|
|
598
|
-
var de_DeleteClusterCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
599
|
-
const parsedOutput = {
|
|
600
|
-
...output,
|
|
601
|
-
body: await parseErrorBody(output.body, context)
|
|
602
|
-
};
|
|
603
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
604
|
-
switch (errorCode) {
|
|
605
|
-
case "CloudHsmAccessDeniedException":
|
|
606
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmAccessDeniedException":
|
|
607
|
-
throw await de_CloudHsmAccessDeniedExceptionRes(parsedOutput, context);
|
|
608
|
-
case "CloudHsmInternalFailureException":
|
|
609
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmInternalFailureException":
|
|
610
|
-
throw await de_CloudHsmInternalFailureExceptionRes(parsedOutput, context);
|
|
611
|
-
case "CloudHsmInvalidRequestException":
|
|
612
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmInvalidRequestException":
|
|
613
|
-
throw await de_CloudHsmInvalidRequestExceptionRes(parsedOutput, context);
|
|
614
|
-
case "CloudHsmResourceNotFoundException":
|
|
615
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmResourceNotFoundException":
|
|
616
|
-
throw await de_CloudHsmResourceNotFoundExceptionRes(parsedOutput, context);
|
|
617
|
-
case "CloudHsmServiceException":
|
|
618
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmServiceException":
|
|
619
|
-
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
620
|
-
case "CloudHsmTagException":
|
|
621
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmTagException":
|
|
622
|
-
throw await de_CloudHsmTagExceptionRes(parsedOutput, context);
|
|
623
|
-
default:
|
|
624
|
-
const parsedBody = parsedOutput.body;
|
|
625
|
-
return throwDefaultError({
|
|
626
|
-
output,
|
|
627
|
-
parsedBody,
|
|
628
|
-
errorCode
|
|
629
|
-
});
|
|
630
|
-
}
|
|
631
|
-
}, "de_DeleteClusterCommandError");
|
|
632
468
|
var de_DeleteHsmCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
633
469
|
if (output.statusCode >= 300) {
|
|
634
|
-
return
|
|
470
|
+
return de_CommandError(output, context);
|
|
635
471
|
}
|
|
636
472
|
const data = await parseBody(output.body, context);
|
|
637
473
|
let contents = {};
|
|
@@ -642,40 +478,9 @@ var de_DeleteHsmCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
642
478
|
};
|
|
643
479
|
return response;
|
|
644
480
|
}, "de_DeleteHsmCommand");
|
|
645
|
-
var de_DeleteHsmCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
646
|
-
const parsedOutput = {
|
|
647
|
-
...output,
|
|
648
|
-
body: await parseErrorBody(output.body, context)
|
|
649
|
-
};
|
|
650
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
651
|
-
switch (errorCode) {
|
|
652
|
-
case "CloudHsmAccessDeniedException":
|
|
653
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmAccessDeniedException":
|
|
654
|
-
throw await de_CloudHsmAccessDeniedExceptionRes(parsedOutput, context);
|
|
655
|
-
case "CloudHsmInternalFailureException":
|
|
656
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmInternalFailureException":
|
|
657
|
-
throw await de_CloudHsmInternalFailureExceptionRes(parsedOutput, context);
|
|
658
|
-
case "CloudHsmInvalidRequestException":
|
|
659
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmInvalidRequestException":
|
|
660
|
-
throw await de_CloudHsmInvalidRequestExceptionRes(parsedOutput, context);
|
|
661
|
-
case "CloudHsmResourceNotFoundException":
|
|
662
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmResourceNotFoundException":
|
|
663
|
-
throw await de_CloudHsmResourceNotFoundExceptionRes(parsedOutput, context);
|
|
664
|
-
case "CloudHsmServiceException":
|
|
665
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmServiceException":
|
|
666
|
-
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
667
|
-
default:
|
|
668
|
-
const parsedBody = parsedOutput.body;
|
|
669
|
-
return throwDefaultError({
|
|
670
|
-
output,
|
|
671
|
-
parsedBody,
|
|
672
|
-
errorCode
|
|
673
|
-
});
|
|
674
|
-
}
|
|
675
|
-
}, "de_DeleteHsmCommandError");
|
|
676
481
|
var de_DescribeBackupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
677
482
|
if (output.statusCode >= 300) {
|
|
678
|
-
return
|
|
483
|
+
return de_CommandError(output, context);
|
|
679
484
|
}
|
|
680
485
|
const data = await parseBody(output.body, context);
|
|
681
486
|
let contents = {};
|
|
@@ -686,43 +491,9 @@ var de_DescribeBackupsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
686
491
|
};
|
|
687
492
|
return response;
|
|
688
493
|
}, "de_DescribeBackupsCommand");
|
|
689
|
-
var de_DescribeBackupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
690
|
-
const parsedOutput = {
|
|
691
|
-
...output,
|
|
692
|
-
body: await parseErrorBody(output.body, context)
|
|
693
|
-
};
|
|
694
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
695
|
-
switch (errorCode) {
|
|
696
|
-
case "CloudHsmAccessDeniedException":
|
|
697
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmAccessDeniedException":
|
|
698
|
-
throw await de_CloudHsmAccessDeniedExceptionRes(parsedOutput, context);
|
|
699
|
-
case "CloudHsmInternalFailureException":
|
|
700
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmInternalFailureException":
|
|
701
|
-
throw await de_CloudHsmInternalFailureExceptionRes(parsedOutput, context);
|
|
702
|
-
case "CloudHsmInvalidRequestException":
|
|
703
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmInvalidRequestException":
|
|
704
|
-
throw await de_CloudHsmInvalidRequestExceptionRes(parsedOutput, context);
|
|
705
|
-
case "CloudHsmResourceNotFoundException":
|
|
706
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmResourceNotFoundException":
|
|
707
|
-
throw await de_CloudHsmResourceNotFoundExceptionRes(parsedOutput, context);
|
|
708
|
-
case "CloudHsmServiceException":
|
|
709
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmServiceException":
|
|
710
|
-
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
711
|
-
case "CloudHsmTagException":
|
|
712
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmTagException":
|
|
713
|
-
throw await de_CloudHsmTagExceptionRes(parsedOutput, context);
|
|
714
|
-
default:
|
|
715
|
-
const parsedBody = parsedOutput.body;
|
|
716
|
-
return throwDefaultError({
|
|
717
|
-
output,
|
|
718
|
-
parsedBody,
|
|
719
|
-
errorCode
|
|
720
|
-
});
|
|
721
|
-
}
|
|
722
|
-
}, "de_DescribeBackupsCommandError");
|
|
723
494
|
var de_DescribeClustersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
724
495
|
if (output.statusCode >= 300) {
|
|
725
|
-
return
|
|
496
|
+
return de_CommandError(output, context);
|
|
726
497
|
}
|
|
727
498
|
const data = await parseBody(output.body, context);
|
|
728
499
|
let contents = {};
|
|
@@ -733,40 +504,9 @@ var de_DescribeClustersCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
733
504
|
};
|
|
734
505
|
return response;
|
|
735
506
|
}, "de_DescribeClustersCommand");
|
|
736
|
-
var de_DescribeClustersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
737
|
-
const parsedOutput = {
|
|
738
|
-
...output,
|
|
739
|
-
body: await parseErrorBody(output.body, context)
|
|
740
|
-
};
|
|
741
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
742
|
-
switch (errorCode) {
|
|
743
|
-
case "CloudHsmAccessDeniedException":
|
|
744
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmAccessDeniedException":
|
|
745
|
-
throw await de_CloudHsmAccessDeniedExceptionRes(parsedOutput, context);
|
|
746
|
-
case "CloudHsmInternalFailureException":
|
|
747
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmInternalFailureException":
|
|
748
|
-
throw await de_CloudHsmInternalFailureExceptionRes(parsedOutput, context);
|
|
749
|
-
case "CloudHsmInvalidRequestException":
|
|
750
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmInvalidRequestException":
|
|
751
|
-
throw await de_CloudHsmInvalidRequestExceptionRes(parsedOutput, context);
|
|
752
|
-
case "CloudHsmServiceException":
|
|
753
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmServiceException":
|
|
754
|
-
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
755
|
-
case "CloudHsmTagException":
|
|
756
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmTagException":
|
|
757
|
-
throw await de_CloudHsmTagExceptionRes(parsedOutput, context);
|
|
758
|
-
default:
|
|
759
|
-
const parsedBody = parsedOutput.body;
|
|
760
|
-
return throwDefaultError({
|
|
761
|
-
output,
|
|
762
|
-
parsedBody,
|
|
763
|
-
errorCode
|
|
764
|
-
});
|
|
765
|
-
}
|
|
766
|
-
}, "de_DescribeClustersCommandError");
|
|
767
507
|
var de_InitializeClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
768
508
|
if (output.statusCode >= 300) {
|
|
769
|
-
return
|
|
509
|
+
return de_CommandError(output, context);
|
|
770
510
|
}
|
|
771
511
|
const data = await parseBody(output.body, context);
|
|
772
512
|
let contents = {};
|
|
@@ -777,40 +517,9 @@ var de_InitializeClusterCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
777
517
|
};
|
|
778
518
|
return response;
|
|
779
519
|
}, "de_InitializeClusterCommand");
|
|
780
|
-
var de_InitializeClusterCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
781
|
-
const parsedOutput = {
|
|
782
|
-
...output,
|
|
783
|
-
body: await parseErrorBody(output.body, context)
|
|
784
|
-
};
|
|
785
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
786
|
-
switch (errorCode) {
|
|
787
|
-
case "CloudHsmAccessDeniedException":
|
|
788
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmAccessDeniedException":
|
|
789
|
-
throw await de_CloudHsmAccessDeniedExceptionRes(parsedOutput, context);
|
|
790
|
-
case "CloudHsmInternalFailureException":
|
|
791
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmInternalFailureException":
|
|
792
|
-
throw await de_CloudHsmInternalFailureExceptionRes(parsedOutput, context);
|
|
793
|
-
case "CloudHsmInvalidRequestException":
|
|
794
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmInvalidRequestException":
|
|
795
|
-
throw await de_CloudHsmInvalidRequestExceptionRes(parsedOutput, context);
|
|
796
|
-
case "CloudHsmResourceNotFoundException":
|
|
797
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmResourceNotFoundException":
|
|
798
|
-
throw await de_CloudHsmResourceNotFoundExceptionRes(parsedOutput, context);
|
|
799
|
-
case "CloudHsmServiceException":
|
|
800
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmServiceException":
|
|
801
|
-
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
802
|
-
default:
|
|
803
|
-
const parsedBody = parsedOutput.body;
|
|
804
|
-
return throwDefaultError({
|
|
805
|
-
output,
|
|
806
|
-
parsedBody,
|
|
807
|
-
errorCode
|
|
808
|
-
});
|
|
809
|
-
}
|
|
810
|
-
}, "de_InitializeClusterCommandError");
|
|
811
520
|
var de_ListTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
812
521
|
if (output.statusCode >= 300) {
|
|
813
|
-
return
|
|
522
|
+
return de_CommandError(output, context);
|
|
814
523
|
}
|
|
815
524
|
const data = await parseBody(output.body, context);
|
|
816
525
|
let contents = {};
|
|
@@ -821,43 +530,9 @@ var de_ListTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
821
530
|
};
|
|
822
531
|
return response;
|
|
823
532
|
}, "de_ListTagsCommand");
|
|
824
|
-
var de_ListTagsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
825
|
-
const parsedOutput = {
|
|
826
|
-
...output,
|
|
827
|
-
body: await parseErrorBody(output.body, context)
|
|
828
|
-
};
|
|
829
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
830
|
-
switch (errorCode) {
|
|
831
|
-
case "CloudHsmAccessDeniedException":
|
|
832
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmAccessDeniedException":
|
|
833
|
-
throw await de_CloudHsmAccessDeniedExceptionRes(parsedOutput, context);
|
|
834
|
-
case "CloudHsmInternalFailureException":
|
|
835
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmInternalFailureException":
|
|
836
|
-
throw await de_CloudHsmInternalFailureExceptionRes(parsedOutput, context);
|
|
837
|
-
case "CloudHsmInvalidRequestException":
|
|
838
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmInvalidRequestException":
|
|
839
|
-
throw await de_CloudHsmInvalidRequestExceptionRes(parsedOutput, context);
|
|
840
|
-
case "CloudHsmResourceNotFoundException":
|
|
841
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmResourceNotFoundException":
|
|
842
|
-
throw await de_CloudHsmResourceNotFoundExceptionRes(parsedOutput, context);
|
|
843
|
-
case "CloudHsmServiceException":
|
|
844
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmServiceException":
|
|
845
|
-
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
846
|
-
case "CloudHsmTagException":
|
|
847
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmTagException":
|
|
848
|
-
throw await de_CloudHsmTagExceptionRes(parsedOutput, context);
|
|
849
|
-
default:
|
|
850
|
-
const parsedBody = parsedOutput.body;
|
|
851
|
-
return throwDefaultError({
|
|
852
|
-
output,
|
|
853
|
-
parsedBody,
|
|
854
|
-
errorCode
|
|
855
|
-
});
|
|
856
|
-
}
|
|
857
|
-
}, "de_ListTagsCommandError");
|
|
858
533
|
var de_ModifyBackupAttributesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
859
534
|
if (output.statusCode >= 300) {
|
|
860
|
-
return
|
|
535
|
+
return de_CommandError(output, context);
|
|
861
536
|
}
|
|
862
537
|
const data = await parseBody(output.body, context);
|
|
863
538
|
let contents = {};
|
|
@@ -868,40 +543,9 @@ var de_ModifyBackupAttributesCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
868
543
|
};
|
|
869
544
|
return response;
|
|
870
545
|
}, "de_ModifyBackupAttributesCommand");
|
|
871
|
-
var de_ModifyBackupAttributesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
872
|
-
const parsedOutput = {
|
|
873
|
-
...output,
|
|
874
|
-
body: await parseErrorBody(output.body, context)
|
|
875
|
-
};
|
|
876
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
877
|
-
switch (errorCode) {
|
|
878
|
-
case "CloudHsmAccessDeniedException":
|
|
879
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmAccessDeniedException":
|
|
880
|
-
throw await de_CloudHsmAccessDeniedExceptionRes(parsedOutput, context);
|
|
881
|
-
case "CloudHsmInternalFailureException":
|
|
882
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmInternalFailureException":
|
|
883
|
-
throw await de_CloudHsmInternalFailureExceptionRes(parsedOutput, context);
|
|
884
|
-
case "CloudHsmInvalidRequestException":
|
|
885
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmInvalidRequestException":
|
|
886
|
-
throw await de_CloudHsmInvalidRequestExceptionRes(parsedOutput, context);
|
|
887
|
-
case "CloudHsmResourceNotFoundException":
|
|
888
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmResourceNotFoundException":
|
|
889
|
-
throw await de_CloudHsmResourceNotFoundExceptionRes(parsedOutput, context);
|
|
890
|
-
case "CloudHsmServiceException":
|
|
891
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmServiceException":
|
|
892
|
-
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
893
|
-
default:
|
|
894
|
-
const parsedBody = parsedOutput.body;
|
|
895
|
-
return throwDefaultError({
|
|
896
|
-
output,
|
|
897
|
-
parsedBody,
|
|
898
|
-
errorCode
|
|
899
|
-
});
|
|
900
|
-
}
|
|
901
|
-
}, "de_ModifyBackupAttributesCommandError");
|
|
902
546
|
var de_ModifyClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
903
547
|
if (output.statusCode >= 300) {
|
|
904
|
-
return
|
|
548
|
+
return de_CommandError(output, context);
|
|
905
549
|
}
|
|
906
550
|
const data = await parseBody(output.body, context);
|
|
907
551
|
let contents = {};
|
|
@@ -912,40 +556,9 @@ var de_ModifyClusterCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
912
556
|
};
|
|
913
557
|
return response;
|
|
914
558
|
}, "de_ModifyClusterCommand");
|
|
915
|
-
var de_ModifyClusterCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
916
|
-
const parsedOutput = {
|
|
917
|
-
...output,
|
|
918
|
-
body: await parseErrorBody(output.body, context)
|
|
919
|
-
};
|
|
920
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
921
|
-
switch (errorCode) {
|
|
922
|
-
case "CloudHsmAccessDeniedException":
|
|
923
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmAccessDeniedException":
|
|
924
|
-
throw await de_CloudHsmAccessDeniedExceptionRes(parsedOutput, context);
|
|
925
|
-
case "CloudHsmInternalFailureException":
|
|
926
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmInternalFailureException":
|
|
927
|
-
throw await de_CloudHsmInternalFailureExceptionRes(parsedOutput, context);
|
|
928
|
-
case "CloudHsmInvalidRequestException":
|
|
929
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmInvalidRequestException":
|
|
930
|
-
throw await de_CloudHsmInvalidRequestExceptionRes(parsedOutput, context);
|
|
931
|
-
case "CloudHsmResourceNotFoundException":
|
|
932
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmResourceNotFoundException":
|
|
933
|
-
throw await de_CloudHsmResourceNotFoundExceptionRes(parsedOutput, context);
|
|
934
|
-
case "CloudHsmServiceException":
|
|
935
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmServiceException":
|
|
936
|
-
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
937
|
-
default:
|
|
938
|
-
const parsedBody = parsedOutput.body;
|
|
939
|
-
return throwDefaultError({
|
|
940
|
-
output,
|
|
941
|
-
parsedBody,
|
|
942
|
-
errorCode
|
|
943
|
-
});
|
|
944
|
-
}
|
|
945
|
-
}, "de_ModifyClusterCommandError");
|
|
946
559
|
var de_RestoreBackupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
947
560
|
if (output.statusCode >= 300) {
|
|
948
|
-
return
|
|
561
|
+
return de_CommandError(output, context);
|
|
949
562
|
}
|
|
950
563
|
const data = await parseBody(output.body, context);
|
|
951
564
|
let contents = {};
|
|
@@ -956,40 +569,9 @@ var de_RestoreBackupCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
956
569
|
};
|
|
957
570
|
return response;
|
|
958
571
|
}, "de_RestoreBackupCommand");
|
|
959
|
-
var de_RestoreBackupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
960
|
-
const parsedOutput = {
|
|
961
|
-
...output,
|
|
962
|
-
body: await parseErrorBody(output.body, context)
|
|
963
|
-
};
|
|
964
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
965
|
-
switch (errorCode) {
|
|
966
|
-
case "CloudHsmAccessDeniedException":
|
|
967
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmAccessDeniedException":
|
|
968
|
-
throw await de_CloudHsmAccessDeniedExceptionRes(parsedOutput, context);
|
|
969
|
-
case "CloudHsmInternalFailureException":
|
|
970
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmInternalFailureException":
|
|
971
|
-
throw await de_CloudHsmInternalFailureExceptionRes(parsedOutput, context);
|
|
972
|
-
case "CloudHsmInvalidRequestException":
|
|
973
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmInvalidRequestException":
|
|
974
|
-
throw await de_CloudHsmInvalidRequestExceptionRes(parsedOutput, context);
|
|
975
|
-
case "CloudHsmResourceNotFoundException":
|
|
976
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmResourceNotFoundException":
|
|
977
|
-
throw await de_CloudHsmResourceNotFoundExceptionRes(parsedOutput, context);
|
|
978
|
-
case "CloudHsmServiceException":
|
|
979
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmServiceException":
|
|
980
|
-
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
981
|
-
default:
|
|
982
|
-
const parsedBody = parsedOutput.body;
|
|
983
|
-
return throwDefaultError({
|
|
984
|
-
output,
|
|
985
|
-
parsedBody,
|
|
986
|
-
errorCode
|
|
987
|
-
});
|
|
988
|
-
}
|
|
989
|
-
}, "de_RestoreBackupCommandError");
|
|
990
572
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
991
573
|
if (output.statusCode >= 300) {
|
|
992
|
-
return
|
|
574
|
+
return de_CommandError(output, context);
|
|
993
575
|
}
|
|
994
576
|
const data = await parseBody(output.body, context);
|
|
995
577
|
let contents = {};
|
|
@@ -1000,43 +582,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1000
582
|
};
|
|
1001
583
|
return response;
|
|
1002
584
|
}, "de_TagResourceCommand");
|
|
1003
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1004
|
-
const parsedOutput = {
|
|
1005
|
-
...output,
|
|
1006
|
-
body: await parseErrorBody(output.body, context)
|
|
1007
|
-
};
|
|
1008
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1009
|
-
switch (errorCode) {
|
|
1010
|
-
case "CloudHsmAccessDeniedException":
|
|
1011
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmAccessDeniedException":
|
|
1012
|
-
throw await de_CloudHsmAccessDeniedExceptionRes(parsedOutput, context);
|
|
1013
|
-
case "CloudHsmInternalFailureException":
|
|
1014
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmInternalFailureException":
|
|
1015
|
-
throw await de_CloudHsmInternalFailureExceptionRes(parsedOutput, context);
|
|
1016
|
-
case "CloudHsmInvalidRequestException":
|
|
1017
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmInvalidRequestException":
|
|
1018
|
-
throw await de_CloudHsmInvalidRequestExceptionRes(parsedOutput, context);
|
|
1019
|
-
case "CloudHsmResourceNotFoundException":
|
|
1020
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmResourceNotFoundException":
|
|
1021
|
-
throw await de_CloudHsmResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1022
|
-
case "CloudHsmServiceException":
|
|
1023
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmServiceException":
|
|
1024
|
-
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
1025
|
-
case "CloudHsmTagException":
|
|
1026
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmTagException":
|
|
1027
|
-
throw await de_CloudHsmTagExceptionRes(parsedOutput, context);
|
|
1028
|
-
default:
|
|
1029
|
-
const parsedBody = parsedOutput.body;
|
|
1030
|
-
return throwDefaultError({
|
|
1031
|
-
output,
|
|
1032
|
-
parsedBody,
|
|
1033
|
-
errorCode
|
|
1034
|
-
});
|
|
1035
|
-
}
|
|
1036
|
-
}, "de_TagResourceCommandError");
|
|
1037
585
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1038
586
|
if (output.statusCode >= 300) {
|
|
1039
|
-
return
|
|
587
|
+
return de_CommandError(output, context);
|
|
1040
588
|
}
|
|
1041
589
|
const data = await parseBody(output.body, context);
|
|
1042
590
|
let contents = {};
|
|
@@ -1047,7 +595,7 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1047
595
|
};
|
|
1048
596
|
return response;
|
|
1049
597
|
}, "de_UntagResourceCommand");
|
|
1050
|
-
var
|
|
598
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1051
599
|
const parsedOutput = {
|
|
1052
600
|
...output,
|
|
1053
601
|
body: await parseErrorBody(output.body, context)
|
|
@@ -1080,7 +628,7 @@ var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context
|
|
|
1080
628
|
errorCode
|
|
1081
629
|
});
|
|
1082
630
|
}
|
|
1083
|
-
}, "
|
|
631
|
+
}, "de_CommandError");
|
|
1084
632
|
var de_CloudHsmAccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1085
633
|
const body = parsedOutput.body;
|
|
1086
634
|
const deserialized = (0, import_smithy_client._json)(body);
|
|
@@ -94,7 +94,7 @@ export const se_UntagResourceCommand = async (input, context) => {
|
|
|
94
94
|
};
|
|
95
95
|
export const de_CopyBackupToRegionCommand = async (output, context) => {
|
|
96
96
|
if (output.statusCode >= 300) {
|
|
97
|
-
return
|
|
97
|
+
return de_CommandError(output, context);
|
|
98
98
|
}
|
|
99
99
|
const data = await parseBody(output.body, context);
|
|
100
100
|
let contents = {};
|
|
@@ -105,43 +105,9 @@ export const de_CopyBackupToRegionCommand = async (output, context) => {
|
|
|
105
105
|
};
|
|
106
106
|
return response;
|
|
107
107
|
};
|
|
108
|
-
const de_CopyBackupToRegionCommandError = async (output, context) => {
|
|
109
|
-
const parsedOutput = {
|
|
110
|
-
...output,
|
|
111
|
-
body: await parseErrorBody(output.body, context),
|
|
112
|
-
};
|
|
113
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
114
|
-
switch (errorCode) {
|
|
115
|
-
case "CloudHsmAccessDeniedException":
|
|
116
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmAccessDeniedException":
|
|
117
|
-
throw await de_CloudHsmAccessDeniedExceptionRes(parsedOutput, context);
|
|
118
|
-
case "CloudHsmInternalFailureException":
|
|
119
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmInternalFailureException":
|
|
120
|
-
throw await de_CloudHsmInternalFailureExceptionRes(parsedOutput, context);
|
|
121
|
-
case "CloudHsmInvalidRequestException":
|
|
122
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmInvalidRequestException":
|
|
123
|
-
throw await de_CloudHsmInvalidRequestExceptionRes(parsedOutput, context);
|
|
124
|
-
case "CloudHsmResourceNotFoundException":
|
|
125
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmResourceNotFoundException":
|
|
126
|
-
throw await de_CloudHsmResourceNotFoundExceptionRes(parsedOutput, context);
|
|
127
|
-
case "CloudHsmServiceException":
|
|
128
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmServiceException":
|
|
129
|
-
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
130
|
-
case "CloudHsmTagException":
|
|
131
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmTagException":
|
|
132
|
-
throw await de_CloudHsmTagExceptionRes(parsedOutput, context);
|
|
133
|
-
default:
|
|
134
|
-
const parsedBody = parsedOutput.body;
|
|
135
|
-
return throwDefaultError({
|
|
136
|
-
output,
|
|
137
|
-
parsedBody,
|
|
138
|
-
errorCode,
|
|
139
|
-
});
|
|
140
|
-
}
|
|
141
|
-
};
|
|
142
108
|
export const de_CreateClusterCommand = async (output, context) => {
|
|
143
109
|
if (output.statusCode >= 300) {
|
|
144
|
-
return
|
|
110
|
+
return de_CommandError(output, context);
|
|
145
111
|
}
|
|
146
112
|
const data = await parseBody(output.body, context);
|
|
147
113
|
let contents = {};
|
|
@@ -152,43 +118,9 @@ export const de_CreateClusterCommand = async (output, context) => {
|
|
|
152
118
|
};
|
|
153
119
|
return response;
|
|
154
120
|
};
|
|
155
|
-
const de_CreateClusterCommandError = async (output, context) => {
|
|
156
|
-
const parsedOutput = {
|
|
157
|
-
...output,
|
|
158
|
-
body: await parseErrorBody(output.body, context),
|
|
159
|
-
};
|
|
160
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
161
|
-
switch (errorCode) {
|
|
162
|
-
case "CloudHsmAccessDeniedException":
|
|
163
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmAccessDeniedException":
|
|
164
|
-
throw await de_CloudHsmAccessDeniedExceptionRes(parsedOutput, context);
|
|
165
|
-
case "CloudHsmInternalFailureException":
|
|
166
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmInternalFailureException":
|
|
167
|
-
throw await de_CloudHsmInternalFailureExceptionRes(parsedOutput, context);
|
|
168
|
-
case "CloudHsmInvalidRequestException":
|
|
169
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmInvalidRequestException":
|
|
170
|
-
throw await de_CloudHsmInvalidRequestExceptionRes(parsedOutput, context);
|
|
171
|
-
case "CloudHsmResourceNotFoundException":
|
|
172
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmResourceNotFoundException":
|
|
173
|
-
throw await de_CloudHsmResourceNotFoundExceptionRes(parsedOutput, context);
|
|
174
|
-
case "CloudHsmServiceException":
|
|
175
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmServiceException":
|
|
176
|
-
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
177
|
-
case "CloudHsmTagException":
|
|
178
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmTagException":
|
|
179
|
-
throw await de_CloudHsmTagExceptionRes(parsedOutput, context);
|
|
180
|
-
default:
|
|
181
|
-
const parsedBody = parsedOutput.body;
|
|
182
|
-
return throwDefaultError({
|
|
183
|
-
output,
|
|
184
|
-
parsedBody,
|
|
185
|
-
errorCode,
|
|
186
|
-
});
|
|
187
|
-
}
|
|
188
|
-
};
|
|
189
121
|
export const de_CreateHsmCommand = async (output, context) => {
|
|
190
122
|
if (output.statusCode >= 300) {
|
|
191
|
-
return
|
|
123
|
+
return de_CommandError(output, context);
|
|
192
124
|
}
|
|
193
125
|
const data = await parseBody(output.body, context);
|
|
194
126
|
let contents = {};
|
|
@@ -199,40 +131,9 @@ export const de_CreateHsmCommand = async (output, context) => {
|
|
|
199
131
|
};
|
|
200
132
|
return response;
|
|
201
133
|
};
|
|
202
|
-
const de_CreateHsmCommandError = async (output, context) => {
|
|
203
|
-
const parsedOutput = {
|
|
204
|
-
...output,
|
|
205
|
-
body: await parseErrorBody(output.body, context),
|
|
206
|
-
};
|
|
207
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
208
|
-
switch (errorCode) {
|
|
209
|
-
case "CloudHsmAccessDeniedException":
|
|
210
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmAccessDeniedException":
|
|
211
|
-
throw await de_CloudHsmAccessDeniedExceptionRes(parsedOutput, context);
|
|
212
|
-
case "CloudHsmInternalFailureException":
|
|
213
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmInternalFailureException":
|
|
214
|
-
throw await de_CloudHsmInternalFailureExceptionRes(parsedOutput, context);
|
|
215
|
-
case "CloudHsmInvalidRequestException":
|
|
216
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmInvalidRequestException":
|
|
217
|
-
throw await de_CloudHsmInvalidRequestExceptionRes(parsedOutput, context);
|
|
218
|
-
case "CloudHsmResourceNotFoundException":
|
|
219
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmResourceNotFoundException":
|
|
220
|
-
throw await de_CloudHsmResourceNotFoundExceptionRes(parsedOutput, context);
|
|
221
|
-
case "CloudHsmServiceException":
|
|
222
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmServiceException":
|
|
223
|
-
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
224
|
-
default:
|
|
225
|
-
const parsedBody = parsedOutput.body;
|
|
226
|
-
return throwDefaultError({
|
|
227
|
-
output,
|
|
228
|
-
parsedBody,
|
|
229
|
-
errorCode,
|
|
230
|
-
});
|
|
231
|
-
}
|
|
232
|
-
};
|
|
233
134
|
export const de_DeleteBackupCommand = async (output, context) => {
|
|
234
135
|
if (output.statusCode >= 300) {
|
|
235
|
-
return
|
|
136
|
+
return de_CommandError(output, context);
|
|
236
137
|
}
|
|
237
138
|
const data = await parseBody(output.body, context);
|
|
238
139
|
let contents = {};
|
|
@@ -243,40 +144,9 @@ export const de_DeleteBackupCommand = async (output, context) => {
|
|
|
243
144
|
};
|
|
244
145
|
return response;
|
|
245
146
|
};
|
|
246
|
-
const de_DeleteBackupCommandError = async (output, context) => {
|
|
247
|
-
const parsedOutput = {
|
|
248
|
-
...output,
|
|
249
|
-
body: await parseErrorBody(output.body, context),
|
|
250
|
-
};
|
|
251
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
252
|
-
switch (errorCode) {
|
|
253
|
-
case "CloudHsmAccessDeniedException":
|
|
254
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmAccessDeniedException":
|
|
255
|
-
throw await de_CloudHsmAccessDeniedExceptionRes(parsedOutput, context);
|
|
256
|
-
case "CloudHsmInternalFailureException":
|
|
257
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmInternalFailureException":
|
|
258
|
-
throw await de_CloudHsmInternalFailureExceptionRes(parsedOutput, context);
|
|
259
|
-
case "CloudHsmInvalidRequestException":
|
|
260
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmInvalidRequestException":
|
|
261
|
-
throw await de_CloudHsmInvalidRequestExceptionRes(parsedOutput, context);
|
|
262
|
-
case "CloudHsmResourceNotFoundException":
|
|
263
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmResourceNotFoundException":
|
|
264
|
-
throw await de_CloudHsmResourceNotFoundExceptionRes(parsedOutput, context);
|
|
265
|
-
case "CloudHsmServiceException":
|
|
266
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmServiceException":
|
|
267
|
-
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
268
|
-
default:
|
|
269
|
-
const parsedBody = parsedOutput.body;
|
|
270
|
-
return throwDefaultError({
|
|
271
|
-
output,
|
|
272
|
-
parsedBody,
|
|
273
|
-
errorCode,
|
|
274
|
-
});
|
|
275
|
-
}
|
|
276
|
-
};
|
|
277
147
|
export const de_DeleteClusterCommand = async (output, context) => {
|
|
278
148
|
if (output.statusCode >= 300) {
|
|
279
|
-
return
|
|
149
|
+
return de_CommandError(output, context);
|
|
280
150
|
}
|
|
281
151
|
const data = await parseBody(output.body, context);
|
|
282
152
|
let contents = {};
|
|
@@ -287,43 +157,9 @@ export const de_DeleteClusterCommand = async (output, context) => {
|
|
|
287
157
|
};
|
|
288
158
|
return response;
|
|
289
159
|
};
|
|
290
|
-
const de_DeleteClusterCommandError = async (output, context) => {
|
|
291
|
-
const parsedOutput = {
|
|
292
|
-
...output,
|
|
293
|
-
body: await parseErrorBody(output.body, context),
|
|
294
|
-
};
|
|
295
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
296
|
-
switch (errorCode) {
|
|
297
|
-
case "CloudHsmAccessDeniedException":
|
|
298
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmAccessDeniedException":
|
|
299
|
-
throw await de_CloudHsmAccessDeniedExceptionRes(parsedOutput, context);
|
|
300
|
-
case "CloudHsmInternalFailureException":
|
|
301
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmInternalFailureException":
|
|
302
|
-
throw await de_CloudHsmInternalFailureExceptionRes(parsedOutput, context);
|
|
303
|
-
case "CloudHsmInvalidRequestException":
|
|
304
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmInvalidRequestException":
|
|
305
|
-
throw await de_CloudHsmInvalidRequestExceptionRes(parsedOutput, context);
|
|
306
|
-
case "CloudHsmResourceNotFoundException":
|
|
307
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmResourceNotFoundException":
|
|
308
|
-
throw await de_CloudHsmResourceNotFoundExceptionRes(parsedOutput, context);
|
|
309
|
-
case "CloudHsmServiceException":
|
|
310
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmServiceException":
|
|
311
|
-
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
312
|
-
case "CloudHsmTagException":
|
|
313
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmTagException":
|
|
314
|
-
throw await de_CloudHsmTagExceptionRes(parsedOutput, context);
|
|
315
|
-
default:
|
|
316
|
-
const parsedBody = parsedOutput.body;
|
|
317
|
-
return throwDefaultError({
|
|
318
|
-
output,
|
|
319
|
-
parsedBody,
|
|
320
|
-
errorCode,
|
|
321
|
-
});
|
|
322
|
-
}
|
|
323
|
-
};
|
|
324
160
|
export const de_DeleteHsmCommand = async (output, context) => {
|
|
325
161
|
if (output.statusCode >= 300) {
|
|
326
|
-
return
|
|
162
|
+
return de_CommandError(output, context);
|
|
327
163
|
}
|
|
328
164
|
const data = await parseBody(output.body, context);
|
|
329
165
|
let contents = {};
|
|
@@ -334,40 +170,9 @@ export const de_DeleteHsmCommand = async (output, context) => {
|
|
|
334
170
|
};
|
|
335
171
|
return response;
|
|
336
172
|
};
|
|
337
|
-
const de_DeleteHsmCommandError = async (output, context) => {
|
|
338
|
-
const parsedOutput = {
|
|
339
|
-
...output,
|
|
340
|
-
body: await parseErrorBody(output.body, context),
|
|
341
|
-
};
|
|
342
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
343
|
-
switch (errorCode) {
|
|
344
|
-
case "CloudHsmAccessDeniedException":
|
|
345
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmAccessDeniedException":
|
|
346
|
-
throw await de_CloudHsmAccessDeniedExceptionRes(parsedOutput, context);
|
|
347
|
-
case "CloudHsmInternalFailureException":
|
|
348
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmInternalFailureException":
|
|
349
|
-
throw await de_CloudHsmInternalFailureExceptionRes(parsedOutput, context);
|
|
350
|
-
case "CloudHsmInvalidRequestException":
|
|
351
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmInvalidRequestException":
|
|
352
|
-
throw await de_CloudHsmInvalidRequestExceptionRes(parsedOutput, context);
|
|
353
|
-
case "CloudHsmResourceNotFoundException":
|
|
354
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmResourceNotFoundException":
|
|
355
|
-
throw await de_CloudHsmResourceNotFoundExceptionRes(parsedOutput, context);
|
|
356
|
-
case "CloudHsmServiceException":
|
|
357
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmServiceException":
|
|
358
|
-
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
359
|
-
default:
|
|
360
|
-
const parsedBody = parsedOutput.body;
|
|
361
|
-
return throwDefaultError({
|
|
362
|
-
output,
|
|
363
|
-
parsedBody,
|
|
364
|
-
errorCode,
|
|
365
|
-
});
|
|
366
|
-
}
|
|
367
|
-
};
|
|
368
173
|
export const de_DescribeBackupsCommand = async (output, context) => {
|
|
369
174
|
if (output.statusCode >= 300) {
|
|
370
|
-
return
|
|
175
|
+
return de_CommandError(output, context);
|
|
371
176
|
}
|
|
372
177
|
const data = await parseBody(output.body, context);
|
|
373
178
|
let contents = {};
|
|
@@ -378,43 +183,9 @@ export const de_DescribeBackupsCommand = async (output, context) => {
|
|
|
378
183
|
};
|
|
379
184
|
return response;
|
|
380
185
|
};
|
|
381
|
-
const de_DescribeBackupsCommandError = async (output, context) => {
|
|
382
|
-
const parsedOutput = {
|
|
383
|
-
...output,
|
|
384
|
-
body: await parseErrorBody(output.body, context),
|
|
385
|
-
};
|
|
386
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
387
|
-
switch (errorCode) {
|
|
388
|
-
case "CloudHsmAccessDeniedException":
|
|
389
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmAccessDeniedException":
|
|
390
|
-
throw await de_CloudHsmAccessDeniedExceptionRes(parsedOutput, context);
|
|
391
|
-
case "CloudHsmInternalFailureException":
|
|
392
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmInternalFailureException":
|
|
393
|
-
throw await de_CloudHsmInternalFailureExceptionRes(parsedOutput, context);
|
|
394
|
-
case "CloudHsmInvalidRequestException":
|
|
395
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmInvalidRequestException":
|
|
396
|
-
throw await de_CloudHsmInvalidRequestExceptionRes(parsedOutput, context);
|
|
397
|
-
case "CloudHsmResourceNotFoundException":
|
|
398
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmResourceNotFoundException":
|
|
399
|
-
throw await de_CloudHsmResourceNotFoundExceptionRes(parsedOutput, context);
|
|
400
|
-
case "CloudHsmServiceException":
|
|
401
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmServiceException":
|
|
402
|
-
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
403
|
-
case "CloudHsmTagException":
|
|
404
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmTagException":
|
|
405
|
-
throw await de_CloudHsmTagExceptionRes(parsedOutput, context);
|
|
406
|
-
default:
|
|
407
|
-
const parsedBody = parsedOutput.body;
|
|
408
|
-
return throwDefaultError({
|
|
409
|
-
output,
|
|
410
|
-
parsedBody,
|
|
411
|
-
errorCode,
|
|
412
|
-
});
|
|
413
|
-
}
|
|
414
|
-
};
|
|
415
186
|
export const de_DescribeClustersCommand = async (output, context) => {
|
|
416
187
|
if (output.statusCode >= 300) {
|
|
417
|
-
return
|
|
188
|
+
return de_CommandError(output, context);
|
|
418
189
|
}
|
|
419
190
|
const data = await parseBody(output.body, context);
|
|
420
191
|
let contents = {};
|
|
@@ -425,40 +196,9 @@ export const de_DescribeClustersCommand = async (output, context) => {
|
|
|
425
196
|
};
|
|
426
197
|
return response;
|
|
427
198
|
};
|
|
428
|
-
const de_DescribeClustersCommandError = async (output, context) => {
|
|
429
|
-
const parsedOutput = {
|
|
430
|
-
...output,
|
|
431
|
-
body: await parseErrorBody(output.body, context),
|
|
432
|
-
};
|
|
433
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
434
|
-
switch (errorCode) {
|
|
435
|
-
case "CloudHsmAccessDeniedException":
|
|
436
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmAccessDeniedException":
|
|
437
|
-
throw await de_CloudHsmAccessDeniedExceptionRes(parsedOutput, context);
|
|
438
|
-
case "CloudHsmInternalFailureException":
|
|
439
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmInternalFailureException":
|
|
440
|
-
throw await de_CloudHsmInternalFailureExceptionRes(parsedOutput, context);
|
|
441
|
-
case "CloudHsmInvalidRequestException":
|
|
442
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmInvalidRequestException":
|
|
443
|
-
throw await de_CloudHsmInvalidRequestExceptionRes(parsedOutput, context);
|
|
444
|
-
case "CloudHsmServiceException":
|
|
445
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmServiceException":
|
|
446
|
-
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
447
|
-
case "CloudHsmTagException":
|
|
448
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmTagException":
|
|
449
|
-
throw await de_CloudHsmTagExceptionRes(parsedOutput, context);
|
|
450
|
-
default:
|
|
451
|
-
const parsedBody = parsedOutput.body;
|
|
452
|
-
return throwDefaultError({
|
|
453
|
-
output,
|
|
454
|
-
parsedBody,
|
|
455
|
-
errorCode,
|
|
456
|
-
});
|
|
457
|
-
}
|
|
458
|
-
};
|
|
459
199
|
export const de_InitializeClusterCommand = async (output, context) => {
|
|
460
200
|
if (output.statusCode >= 300) {
|
|
461
|
-
return
|
|
201
|
+
return de_CommandError(output, context);
|
|
462
202
|
}
|
|
463
203
|
const data = await parseBody(output.body, context);
|
|
464
204
|
let contents = {};
|
|
@@ -469,40 +209,9 @@ export const de_InitializeClusterCommand = async (output, context) => {
|
|
|
469
209
|
};
|
|
470
210
|
return response;
|
|
471
211
|
};
|
|
472
|
-
const de_InitializeClusterCommandError = async (output, context) => {
|
|
473
|
-
const parsedOutput = {
|
|
474
|
-
...output,
|
|
475
|
-
body: await parseErrorBody(output.body, context),
|
|
476
|
-
};
|
|
477
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
478
|
-
switch (errorCode) {
|
|
479
|
-
case "CloudHsmAccessDeniedException":
|
|
480
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmAccessDeniedException":
|
|
481
|
-
throw await de_CloudHsmAccessDeniedExceptionRes(parsedOutput, context);
|
|
482
|
-
case "CloudHsmInternalFailureException":
|
|
483
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmInternalFailureException":
|
|
484
|
-
throw await de_CloudHsmInternalFailureExceptionRes(parsedOutput, context);
|
|
485
|
-
case "CloudHsmInvalidRequestException":
|
|
486
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmInvalidRequestException":
|
|
487
|
-
throw await de_CloudHsmInvalidRequestExceptionRes(parsedOutput, context);
|
|
488
|
-
case "CloudHsmResourceNotFoundException":
|
|
489
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmResourceNotFoundException":
|
|
490
|
-
throw await de_CloudHsmResourceNotFoundExceptionRes(parsedOutput, context);
|
|
491
|
-
case "CloudHsmServiceException":
|
|
492
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmServiceException":
|
|
493
|
-
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
494
|
-
default:
|
|
495
|
-
const parsedBody = parsedOutput.body;
|
|
496
|
-
return throwDefaultError({
|
|
497
|
-
output,
|
|
498
|
-
parsedBody,
|
|
499
|
-
errorCode,
|
|
500
|
-
});
|
|
501
|
-
}
|
|
502
|
-
};
|
|
503
212
|
export const de_ListTagsCommand = async (output, context) => {
|
|
504
213
|
if (output.statusCode >= 300) {
|
|
505
|
-
return
|
|
214
|
+
return de_CommandError(output, context);
|
|
506
215
|
}
|
|
507
216
|
const data = await parseBody(output.body, context);
|
|
508
217
|
let contents = {};
|
|
@@ -513,43 +222,9 @@ export const de_ListTagsCommand = async (output, context) => {
|
|
|
513
222
|
};
|
|
514
223
|
return response;
|
|
515
224
|
};
|
|
516
|
-
const de_ListTagsCommandError = async (output, context) => {
|
|
517
|
-
const parsedOutput = {
|
|
518
|
-
...output,
|
|
519
|
-
body: await parseErrorBody(output.body, context),
|
|
520
|
-
};
|
|
521
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
522
|
-
switch (errorCode) {
|
|
523
|
-
case "CloudHsmAccessDeniedException":
|
|
524
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmAccessDeniedException":
|
|
525
|
-
throw await de_CloudHsmAccessDeniedExceptionRes(parsedOutput, context);
|
|
526
|
-
case "CloudHsmInternalFailureException":
|
|
527
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmInternalFailureException":
|
|
528
|
-
throw await de_CloudHsmInternalFailureExceptionRes(parsedOutput, context);
|
|
529
|
-
case "CloudHsmInvalidRequestException":
|
|
530
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmInvalidRequestException":
|
|
531
|
-
throw await de_CloudHsmInvalidRequestExceptionRes(parsedOutput, context);
|
|
532
|
-
case "CloudHsmResourceNotFoundException":
|
|
533
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmResourceNotFoundException":
|
|
534
|
-
throw await de_CloudHsmResourceNotFoundExceptionRes(parsedOutput, context);
|
|
535
|
-
case "CloudHsmServiceException":
|
|
536
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmServiceException":
|
|
537
|
-
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
538
|
-
case "CloudHsmTagException":
|
|
539
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmTagException":
|
|
540
|
-
throw await de_CloudHsmTagExceptionRes(parsedOutput, context);
|
|
541
|
-
default:
|
|
542
|
-
const parsedBody = parsedOutput.body;
|
|
543
|
-
return throwDefaultError({
|
|
544
|
-
output,
|
|
545
|
-
parsedBody,
|
|
546
|
-
errorCode,
|
|
547
|
-
});
|
|
548
|
-
}
|
|
549
|
-
};
|
|
550
225
|
export const de_ModifyBackupAttributesCommand = async (output, context) => {
|
|
551
226
|
if (output.statusCode >= 300) {
|
|
552
|
-
return
|
|
227
|
+
return de_CommandError(output, context);
|
|
553
228
|
}
|
|
554
229
|
const data = await parseBody(output.body, context);
|
|
555
230
|
let contents = {};
|
|
@@ -560,40 +235,9 @@ export const de_ModifyBackupAttributesCommand = async (output, context) => {
|
|
|
560
235
|
};
|
|
561
236
|
return response;
|
|
562
237
|
};
|
|
563
|
-
const de_ModifyBackupAttributesCommandError = async (output, context) => {
|
|
564
|
-
const parsedOutput = {
|
|
565
|
-
...output,
|
|
566
|
-
body: await parseErrorBody(output.body, context),
|
|
567
|
-
};
|
|
568
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
569
|
-
switch (errorCode) {
|
|
570
|
-
case "CloudHsmAccessDeniedException":
|
|
571
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmAccessDeniedException":
|
|
572
|
-
throw await de_CloudHsmAccessDeniedExceptionRes(parsedOutput, context);
|
|
573
|
-
case "CloudHsmInternalFailureException":
|
|
574
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmInternalFailureException":
|
|
575
|
-
throw await de_CloudHsmInternalFailureExceptionRes(parsedOutput, context);
|
|
576
|
-
case "CloudHsmInvalidRequestException":
|
|
577
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmInvalidRequestException":
|
|
578
|
-
throw await de_CloudHsmInvalidRequestExceptionRes(parsedOutput, context);
|
|
579
|
-
case "CloudHsmResourceNotFoundException":
|
|
580
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmResourceNotFoundException":
|
|
581
|
-
throw await de_CloudHsmResourceNotFoundExceptionRes(parsedOutput, context);
|
|
582
|
-
case "CloudHsmServiceException":
|
|
583
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmServiceException":
|
|
584
|
-
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
585
|
-
default:
|
|
586
|
-
const parsedBody = parsedOutput.body;
|
|
587
|
-
return throwDefaultError({
|
|
588
|
-
output,
|
|
589
|
-
parsedBody,
|
|
590
|
-
errorCode,
|
|
591
|
-
});
|
|
592
|
-
}
|
|
593
|
-
};
|
|
594
238
|
export const de_ModifyClusterCommand = async (output, context) => {
|
|
595
239
|
if (output.statusCode >= 300) {
|
|
596
|
-
return
|
|
240
|
+
return de_CommandError(output, context);
|
|
597
241
|
}
|
|
598
242
|
const data = await parseBody(output.body, context);
|
|
599
243
|
let contents = {};
|
|
@@ -604,40 +248,9 @@ export const de_ModifyClusterCommand = async (output, context) => {
|
|
|
604
248
|
};
|
|
605
249
|
return response;
|
|
606
250
|
};
|
|
607
|
-
const de_ModifyClusterCommandError = async (output, context) => {
|
|
608
|
-
const parsedOutput = {
|
|
609
|
-
...output,
|
|
610
|
-
body: await parseErrorBody(output.body, context),
|
|
611
|
-
};
|
|
612
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
613
|
-
switch (errorCode) {
|
|
614
|
-
case "CloudHsmAccessDeniedException":
|
|
615
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmAccessDeniedException":
|
|
616
|
-
throw await de_CloudHsmAccessDeniedExceptionRes(parsedOutput, context);
|
|
617
|
-
case "CloudHsmInternalFailureException":
|
|
618
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmInternalFailureException":
|
|
619
|
-
throw await de_CloudHsmInternalFailureExceptionRes(parsedOutput, context);
|
|
620
|
-
case "CloudHsmInvalidRequestException":
|
|
621
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmInvalidRequestException":
|
|
622
|
-
throw await de_CloudHsmInvalidRequestExceptionRes(parsedOutput, context);
|
|
623
|
-
case "CloudHsmResourceNotFoundException":
|
|
624
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmResourceNotFoundException":
|
|
625
|
-
throw await de_CloudHsmResourceNotFoundExceptionRes(parsedOutput, context);
|
|
626
|
-
case "CloudHsmServiceException":
|
|
627
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmServiceException":
|
|
628
|
-
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
629
|
-
default:
|
|
630
|
-
const parsedBody = parsedOutput.body;
|
|
631
|
-
return throwDefaultError({
|
|
632
|
-
output,
|
|
633
|
-
parsedBody,
|
|
634
|
-
errorCode,
|
|
635
|
-
});
|
|
636
|
-
}
|
|
637
|
-
};
|
|
638
251
|
export const de_RestoreBackupCommand = async (output, context) => {
|
|
639
252
|
if (output.statusCode >= 300) {
|
|
640
|
-
return
|
|
253
|
+
return de_CommandError(output, context);
|
|
641
254
|
}
|
|
642
255
|
const data = await parseBody(output.body, context);
|
|
643
256
|
let contents = {};
|
|
@@ -648,40 +261,9 @@ export const de_RestoreBackupCommand = async (output, context) => {
|
|
|
648
261
|
};
|
|
649
262
|
return response;
|
|
650
263
|
};
|
|
651
|
-
const de_RestoreBackupCommandError = async (output, context) => {
|
|
652
|
-
const parsedOutput = {
|
|
653
|
-
...output,
|
|
654
|
-
body: await parseErrorBody(output.body, context),
|
|
655
|
-
};
|
|
656
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
657
|
-
switch (errorCode) {
|
|
658
|
-
case "CloudHsmAccessDeniedException":
|
|
659
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmAccessDeniedException":
|
|
660
|
-
throw await de_CloudHsmAccessDeniedExceptionRes(parsedOutput, context);
|
|
661
|
-
case "CloudHsmInternalFailureException":
|
|
662
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmInternalFailureException":
|
|
663
|
-
throw await de_CloudHsmInternalFailureExceptionRes(parsedOutput, context);
|
|
664
|
-
case "CloudHsmInvalidRequestException":
|
|
665
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmInvalidRequestException":
|
|
666
|
-
throw await de_CloudHsmInvalidRequestExceptionRes(parsedOutput, context);
|
|
667
|
-
case "CloudHsmResourceNotFoundException":
|
|
668
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmResourceNotFoundException":
|
|
669
|
-
throw await de_CloudHsmResourceNotFoundExceptionRes(parsedOutput, context);
|
|
670
|
-
case "CloudHsmServiceException":
|
|
671
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmServiceException":
|
|
672
|
-
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
673
|
-
default:
|
|
674
|
-
const parsedBody = parsedOutput.body;
|
|
675
|
-
return throwDefaultError({
|
|
676
|
-
output,
|
|
677
|
-
parsedBody,
|
|
678
|
-
errorCode,
|
|
679
|
-
});
|
|
680
|
-
}
|
|
681
|
-
};
|
|
682
264
|
export const de_TagResourceCommand = async (output, context) => {
|
|
683
265
|
if (output.statusCode >= 300) {
|
|
684
|
-
return
|
|
266
|
+
return de_CommandError(output, context);
|
|
685
267
|
}
|
|
686
268
|
const data = await parseBody(output.body, context);
|
|
687
269
|
let contents = {};
|
|
@@ -692,43 +274,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
692
274
|
};
|
|
693
275
|
return response;
|
|
694
276
|
};
|
|
695
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
696
|
-
const parsedOutput = {
|
|
697
|
-
...output,
|
|
698
|
-
body: await parseErrorBody(output.body, context),
|
|
699
|
-
};
|
|
700
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
701
|
-
switch (errorCode) {
|
|
702
|
-
case "CloudHsmAccessDeniedException":
|
|
703
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmAccessDeniedException":
|
|
704
|
-
throw await de_CloudHsmAccessDeniedExceptionRes(parsedOutput, context);
|
|
705
|
-
case "CloudHsmInternalFailureException":
|
|
706
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmInternalFailureException":
|
|
707
|
-
throw await de_CloudHsmInternalFailureExceptionRes(parsedOutput, context);
|
|
708
|
-
case "CloudHsmInvalidRequestException":
|
|
709
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmInvalidRequestException":
|
|
710
|
-
throw await de_CloudHsmInvalidRequestExceptionRes(parsedOutput, context);
|
|
711
|
-
case "CloudHsmResourceNotFoundException":
|
|
712
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmResourceNotFoundException":
|
|
713
|
-
throw await de_CloudHsmResourceNotFoundExceptionRes(parsedOutput, context);
|
|
714
|
-
case "CloudHsmServiceException":
|
|
715
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmServiceException":
|
|
716
|
-
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
717
|
-
case "CloudHsmTagException":
|
|
718
|
-
case "com.amazonaws.cloudhsmv2#CloudHsmTagException":
|
|
719
|
-
throw await de_CloudHsmTagExceptionRes(parsedOutput, context);
|
|
720
|
-
default:
|
|
721
|
-
const parsedBody = parsedOutput.body;
|
|
722
|
-
return throwDefaultError({
|
|
723
|
-
output,
|
|
724
|
-
parsedBody,
|
|
725
|
-
errorCode,
|
|
726
|
-
});
|
|
727
|
-
}
|
|
728
|
-
};
|
|
729
277
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
730
278
|
if (output.statusCode >= 300) {
|
|
731
|
-
return
|
|
279
|
+
return de_CommandError(output, context);
|
|
732
280
|
}
|
|
733
281
|
const data = await parseBody(output.body, context);
|
|
734
282
|
let contents = {};
|
|
@@ -739,7 +287,7 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
739
287
|
};
|
|
740
288
|
return response;
|
|
741
289
|
};
|
|
742
|
-
const
|
|
290
|
+
const de_CommandError = async (output, context) => {
|
|
743
291
|
const parsedOutput = {
|
|
744
292
|
...output,
|
|
745
293
|
body: await parseErrorBody(output.body, context),
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-cloudhsm-v2",
|
|
3
3
|
"description": "AWS SDK for JavaScript Cloudhsm V2 Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.509.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-cloudhsm-v2",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.507.0",
|
|
24
24
|
"@aws-sdk/core": "3.496.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.509.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.502.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.502.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.502.0",
|