@aws-sdk/client-backup-gateway 3.503.1 → 3.507.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 +51 -741
- package/dist-es/protocols/Aws_json1_0.js +43 -733
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -481,7 +481,7 @@ var se_UpdateHypervisorCommand = /* @__PURE__ */ __name(async (input, context) =
|
|
|
481
481
|
}, "se_UpdateHypervisorCommand");
|
|
482
482
|
var de_AssociateGatewayToServerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
483
483
|
if (output.statusCode >= 300) {
|
|
484
|
-
return
|
|
484
|
+
return de_CommandError(output, context);
|
|
485
485
|
}
|
|
486
486
|
const data = await parseBody(output.body, context);
|
|
487
487
|
let contents = {};
|
|
@@ -492,37 +492,9 @@ var de_AssociateGatewayToServerCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
492
492
|
};
|
|
493
493
|
return response;
|
|
494
494
|
}, "de_AssociateGatewayToServerCommand");
|
|
495
|
-
var de_AssociateGatewayToServerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
496
|
-
const parsedOutput = {
|
|
497
|
-
...output,
|
|
498
|
-
body: await parseErrorBody(output.body, context)
|
|
499
|
-
};
|
|
500
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
501
|
-
switch (errorCode) {
|
|
502
|
-
case "ConflictException":
|
|
503
|
-
case "com.amazonaws.backupgateway#ConflictException":
|
|
504
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
505
|
-
case "InternalServerException":
|
|
506
|
-
case "com.amazonaws.backupgateway#InternalServerException":
|
|
507
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
508
|
-
case "ThrottlingException":
|
|
509
|
-
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
510
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
511
|
-
case "ValidationException":
|
|
512
|
-
case "com.amazonaws.backupgateway#ValidationException":
|
|
513
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
514
|
-
default:
|
|
515
|
-
const parsedBody = parsedOutput.body;
|
|
516
|
-
return throwDefaultError({
|
|
517
|
-
output,
|
|
518
|
-
parsedBody,
|
|
519
|
-
errorCode
|
|
520
|
-
});
|
|
521
|
-
}
|
|
522
|
-
}, "de_AssociateGatewayToServerCommandError");
|
|
523
495
|
var de_CreateGatewayCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
524
496
|
if (output.statusCode >= 300) {
|
|
525
|
-
return
|
|
497
|
+
return de_CommandError(output, context);
|
|
526
498
|
}
|
|
527
499
|
const data = await parseBody(output.body, context);
|
|
528
500
|
let contents = {};
|
|
@@ -533,34 +505,9 @@ var de_CreateGatewayCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
533
505
|
};
|
|
534
506
|
return response;
|
|
535
507
|
}, "de_CreateGatewayCommand");
|
|
536
|
-
var de_CreateGatewayCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
537
|
-
const parsedOutput = {
|
|
538
|
-
...output,
|
|
539
|
-
body: await parseErrorBody(output.body, context)
|
|
540
|
-
};
|
|
541
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
542
|
-
switch (errorCode) {
|
|
543
|
-
case "InternalServerException":
|
|
544
|
-
case "com.amazonaws.backupgateway#InternalServerException":
|
|
545
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
546
|
-
case "ThrottlingException":
|
|
547
|
-
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
548
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
549
|
-
case "ValidationException":
|
|
550
|
-
case "com.amazonaws.backupgateway#ValidationException":
|
|
551
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
552
|
-
default:
|
|
553
|
-
const parsedBody = parsedOutput.body;
|
|
554
|
-
return throwDefaultError({
|
|
555
|
-
output,
|
|
556
|
-
parsedBody,
|
|
557
|
-
errorCode
|
|
558
|
-
});
|
|
559
|
-
}
|
|
560
|
-
}, "de_CreateGatewayCommandError");
|
|
561
508
|
var de_DeleteGatewayCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
562
509
|
if (output.statusCode >= 300) {
|
|
563
|
-
return
|
|
510
|
+
return de_CommandError(output, context);
|
|
564
511
|
}
|
|
565
512
|
const data = await parseBody(output.body, context);
|
|
566
513
|
let contents = {};
|
|
@@ -571,37 +518,9 @@ var de_DeleteGatewayCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
571
518
|
};
|
|
572
519
|
return response;
|
|
573
520
|
}, "de_DeleteGatewayCommand");
|
|
574
|
-
var de_DeleteGatewayCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
575
|
-
const parsedOutput = {
|
|
576
|
-
...output,
|
|
577
|
-
body: await parseErrorBody(output.body, context)
|
|
578
|
-
};
|
|
579
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
580
|
-
switch (errorCode) {
|
|
581
|
-
case "InternalServerException":
|
|
582
|
-
case "com.amazonaws.backupgateway#InternalServerException":
|
|
583
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
584
|
-
case "ResourceNotFoundException":
|
|
585
|
-
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
586
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
587
|
-
case "ThrottlingException":
|
|
588
|
-
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
589
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
590
|
-
case "ValidationException":
|
|
591
|
-
case "com.amazonaws.backupgateway#ValidationException":
|
|
592
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
593
|
-
default:
|
|
594
|
-
const parsedBody = parsedOutput.body;
|
|
595
|
-
return throwDefaultError({
|
|
596
|
-
output,
|
|
597
|
-
parsedBody,
|
|
598
|
-
errorCode
|
|
599
|
-
});
|
|
600
|
-
}
|
|
601
|
-
}, "de_DeleteGatewayCommandError");
|
|
602
521
|
var de_DeleteHypervisorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
603
522
|
if (output.statusCode >= 300) {
|
|
604
|
-
return
|
|
523
|
+
return de_CommandError(output, context);
|
|
605
524
|
}
|
|
606
525
|
const data = await parseBody(output.body, context);
|
|
607
526
|
let contents = {};
|
|
@@ -612,43 +531,9 @@ var de_DeleteHypervisorCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
612
531
|
};
|
|
613
532
|
return response;
|
|
614
533
|
}, "de_DeleteHypervisorCommand");
|
|
615
|
-
var de_DeleteHypervisorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
616
|
-
const parsedOutput = {
|
|
617
|
-
...output,
|
|
618
|
-
body: await parseErrorBody(output.body, context)
|
|
619
|
-
};
|
|
620
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
621
|
-
switch (errorCode) {
|
|
622
|
-
case "AccessDeniedException":
|
|
623
|
-
case "com.amazonaws.backupgateway#AccessDeniedException":
|
|
624
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
625
|
-
case "ConflictException":
|
|
626
|
-
case "com.amazonaws.backupgateway#ConflictException":
|
|
627
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
628
|
-
case "InternalServerException":
|
|
629
|
-
case "com.amazonaws.backupgateway#InternalServerException":
|
|
630
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
631
|
-
case "ResourceNotFoundException":
|
|
632
|
-
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
633
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
634
|
-
case "ThrottlingException":
|
|
635
|
-
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
636
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
637
|
-
case "ValidationException":
|
|
638
|
-
case "com.amazonaws.backupgateway#ValidationException":
|
|
639
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
640
|
-
default:
|
|
641
|
-
const parsedBody = parsedOutput.body;
|
|
642
|
-
return throwDefaultError({
|
|
643
|
-
output,
|
|
644
|
-
parsedBody,
|
|
645
|
-
errorCode
|
|
646
|
-
});
|
|
647
|
-
}
|
|
648
|
-
}, "de_DeleteHypervisorCommandError");
|
|
649
534
|
var de_DisassociateGatewayFromServerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
650
535
|
if (output.statusCode >= 300) {
|
|
651
|
-
return
|
|
536
|
+
return de_CommandError(output, context);
|
|
652
537
|
}
|
|
653
538
|
const data = await parseBody(output.body, context);
|
|
654
539
|
let contents = {};
|
|
@@ -659,40 +544,9 @@ var de_DisassociateGatewayFromServerCommand = /* @__PURE__ */ __name(async (outp
|
|
|
659
544
|
};
|
|
660
545
|
return response;
|
|
661
546
|
}, "de_DisassociateGatewayFromServerCommand");
|
|
662
|
-
var de_DisassociateGatewayFromServerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
663
|
-
const parsedOutput = {
|
|
664
|
-
...output,
|
|
665
|
-
body: await parseErrorBody(output.body, context)
|
|
666
|
-
};
|
|
667
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
668
|
-
switch (errorCode) {
|
|
669
|
-
case "ConflictException":
|
|
670
|
-
case "com.amazonaws.backupgateway#ConflictException":
|
|
671
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
672
|
-
case "InternalServerException":
|
|
673
|
-
case "com.amazonaws.backupgateway#InternalServerException":
|
|
674
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
675
|
-
case "ResourceNotFoundException":
|
|
676
|
-
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
677
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
678
|
-
case "ThrottlingException":
|
|
679
|
-
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
680
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
681
|
-
case "ValidationException":
|
|
682
|
-
case "com.amazonaws.backupgateway#ValidationException":
|
|
683
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
684
|
-
default:
|
|
685
|
-
const parsedBody = parsedOutput.body;
|
|
686
|
-
return throwDefaultError({
|
|
687
|
-
output,
|
|
688
|
-
parsedBody,
|
|
689
|
-
errorCode
|
|
690
|
-
});
|
|
691
|
-
}
|
|
692
|
-
}, "de_DisassociateGatewayFromServerCommandError");
|
|
693
547
|
var de_GetBandwidthRateLimitScheduleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
694
548
|
if (output.statusCode >= 300) {
|
|
695
|
-
return
|
|
549
|
+
return de_CommandError(output, context);
|
|
696
550
|
}
|
|
697
551
|
const data = await parseBody(output.body, context);
|
|
698
552
|
let contents = {};
|
|
@@ -703,37 +557,9 @@ var de_GetBandwidthRateLimitScheduleCommand = /* @__PURE__ */ __name(async (outp
|
|
|
703
557
|
};
|
|
704
558
|
return response;
|
|
705
559
|
}, "de_GetBandwidthRateLimitScheduleCommand");
|
|
706
|
-
var de_GetBandwidthRateLimitScheduleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
707
|
-
const parsedOutput = {
|
|
708
|
-
...output,
|
|
709
|
-
body: await parseErrorBody(output.body, context)
|
|
710
|
-
};
|
|
711
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
712
|
-
switch (errorCode) {
|
|
713
|
-
case "InternalServerException":
|
|
714
|
-
case "com.amazonaws.backupgateway#InternalServerException":
|
|
715
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
716
|
-
case "ResourceNotFoundException":
|
|
717
|
-
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
718
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
719
|
-
case "ThrottlingException":
|
|
720
|
-
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
721
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
722
|
-
case "ValidationException":
|
|
723
|
-
case "com.amazonaws.backupgateway#ValidationException":
|
|
724
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
725
|
-
default:
|
|
726
|
-
const parsedBody = parsedOutput.body;
|
|
727
|
-
return throwDefaultError({
|
|
728
|
-
output,
|
|
729
|
-
parsedBody,
|
|
730
|
-
errorCode
|
|
731
|
-
});
|
|
732
|
-
}
|
|
733
|
-
}, "de_GetBandwidthRateLimitScheduleCommandError");
|
|
734
560
|
var de_GetGatewayCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
735
561
|
if (output.statusCode >= 300) {
|
|
736
|
-
return
|
|
562
|
+
return de_CommandError(output, context);
|
|
737
563
|
}
|
|
738
564
|
const data = await parseBody(output.body, context);
|
|
739
565
|
let contents = {};
|
|
@@ -744,37 +570,9 @@ var de_GetGatewayCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
744
570
|
};
|
|
745
571
|
return response;
|
|
746
572
|
}, "de_GetGatewayCommand");
|
|
747
|
-
var de_GetGatewayCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
748
|
-
const parsedOutput = {
|
|
749
|
-
...output,
|
|
750
|
-
body: await parseErrorBody(output.body, context)
|
|
751
|
-
};
|
|
752
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
753
|
-
switch (errorCode) {
|
|
754
|
-
case "InternalServerException":
|
|
755
|
-
case "com.amazonaws.backupgateway#InternalServerException":
|
|
756
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
757
|
-
case "ResourceNotFoundException":
|
|
758
|
-
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
759
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
760
|
-
case "ThrottlingException":
|
|
761
|
-
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
762
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
763
|
-
case "ValidationException":
|
|
764
|
-
case "com.amazonaws.backupgateway#ValidationException":
|
|
765
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
766
|
-
default:
|
|
767
|
-
const parsedBody = parsedOutput.body;
|
|
768
|
-
return throwDefaultError({
|
|
769
|
-
output,
|
|
770
|
-
parsedBody,
|
|
771
|
-
errorCode
|
|
772
|
-
});
|
|
773
|
-
}
|
|
774
|
-
}, "de_GetGatewayCommandError");
|
|
775
573
|
var de_GetHypervisorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
776
574
|
if (output.statusCode >= 300) {
|
|
777
|
-
return
|
|
575
|
+
return de_CommandError(output, context);
|
|
778
576
|
}
|
|
779
577
|
const data = await parseBody(output.body, context);
|
|
780
578
|
let contents = {};
|
|
@@ -785,37 +583,9 @@ var de_GetHypervisorCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
785
583
|
};
|
|
786
584
|
return response;
|
|
787
585
|
}, "de_GetHypervisorCommand");
|
|
788
|
-
var de_GetHypervisorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
789
|
-
const parsedOutput = {
|
|
790
|
-
...output,
|
|
791
|
-
body: await parseErrorBody(output.body, context)
|
|
792
|
-
};
|
|
793
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
794
|
-
switch (errorCode) {
|
|
795
|
-
case "InternalServerException":
|
|
796
|
-
case "com.amazonaws.backupgateway#InternalServerException":
|
|
797
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
798
|
-
case "ResourceNotFoundException":
|
|
799
|
-
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
800
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
801
|
-
case "ThrottlingException":
|
|
802
|
-
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
803
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
804
|
-
case "ValidationException":
|
|
805
|
-
case "com.amazonaws.backupgateway#ValidationException":
|
|
806
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
807
|
-
default:
|
|
808
|
-
const parsedBody = parsedOutput.body;
|
|
809
|
-
return throwDefaultError({
|
|
810
|
-
output,
|
|
811
|
-
parsedBody,
|
|
812
|
-
errorCode
|
|
813
|
-
});
|
|
814
|
-
}
|
|
815
|
-
}, "de_GetHypervisorCommandError");
|
|
816
586
|
var de_GetHypervisorPropertyMappingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
817
587
|
if (output.statusCode >= 300) {
|
|
818
|
-
return
|
|
588
|
+
return de_CommandError(output, context);
|
|
819
589
|
}
|
|
820
590
|
const data = await parseBody(output.body, context);
|
|
821
591
|
let contents = {};
|
|
@@ -826,37 +596,9 @@ var de_GetHypervisorPropertyMappingsCommand = /* @__PURE__ */ __name(async (outp
|
|
|
826
596
|
};
|
|
827
597
|
return response;
|
|
828
598
|
}, "de_GetHypervisorPropertyMappingsCommand");
|
|
829
|
-
var de_GetHypervisorPropertyMappingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
830
|
-
const parsedOutput = {
|
|
831
|
-
...output,
|
|
832
|
-
body: await parseErrorBody(output.body, context)
|
|
833
|
-
};
|
|
834
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
835
|
-
switch (errorCode) {
|
|
836
|
-
case "InternalServerException":
|
|
837
|
-
case "com.amazonaws.backupgateway#InternalServerException":
|
|
838
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
839
|
-
case "ResourceNotFoundException":
|
|
840
|
-
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
841
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
842
|
-
case "ThrottlingException":
|
|
843
|
-
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
844
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
845
|
-
case "ValidationException":
|
|
846
|
-
case "com.amazonaws.backupgateway#ValidationException":
|
|
847
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
848
|
-
default:
|
|
849
|
-
const parsedBody = parsedOutput.body;
|
|
850
|
-
return throwDefaultError({
|
|
851
|
-
output,
|
|
852
|
-
parsedBody,
|
|
853
|
-
errorCode
|
|
854
|
-
});
|
|
855
|
-
}
|
|
856
|
-
}, "de_GetHypervisorPropertyMappingsCommandError");
|
|
857
599
|
var de_GetVirtualMachineCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
858
600
|
if (output.statusCode >= 300) {
|
|
859
|
-
return
|
|
601
|
+
return de_CommandError(output, context);
|
|
860
602
|
}
|
|
861
603
|
const data = await parseBody(output.body, context);
|
|
862
604
|
let contents = {};
|
|
@@ -867,37 +609,9 @@ var de_GetVirtualMachineCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
867
609
|
};
|
|
868
610
|
return response;
|
|
869
611
|
}, "de_GetVirtualMachineCommand");
|
|
870
|
-
var de_GetVirtualMachineCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
871
|
-
const parsedOutput = {
|
|
872
|
-
...output,
|
|
873
|
-
body: await parseErrorBody(output.body, context)
|
|
874
|
-
};
|
|
875
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
876
|
-
switch (errorCode) {
|
|
877
|
-
case "InternalServerException":
|
|
878
|
-
case "com.amazonaws.backupgateway#InternalServerException":
|
|
879
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
880
|
-
case "ResourceNotFoundException":
|
|
881
|
-
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
882
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
883
|
-
case "ThrottlingException":
|
|
884
|
-
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
885
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
886
|
-
case "ValidationException":
|
|
887
|
-
case "com.amazonaws.backupgateway#ValidationException":
|
|
888
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
889
|
-
default:
|
|
890
|
-
const parsedBody = parsedOutput.body;
|
|
891
|
-
return throwDefaultError({
|
|
892
|
-
output,
|
|
893
|
-
parsedBody,
|
|
894
|
-
errorCode
|
|
895
|
-
});
|
|
896
|
-
}
|
|
897
|
-
}, "de_GetVirtualMachineCommandError");
|
|
898
612
|
var de_ImportHypervisorConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
899
613
|
if (output.statusCode >= 300) {
|
|
900
|
-
return
|
|
614
|
+
return de_CommandError(output, context);
|
|
901
615
|
}
|
|
902
616
|
const data = await parseBody(output.body, context);
|
|
903
617
|
let contents = {};
|
|
@@ -908,40 +622,9 @@ var de_ImportHypervisorConfigurationCommand = /* @__PURE__ */ __name(async (outp
|
|
|
908
622
|
};
|
|
909
623
|
return response;
|
|
910
624
|
}, "de_ImportHypervisorConfigurationCommand");
|
|
911
|
-
var de_ImportHypervisorConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
912
|
-
const parsedOutput = {
|
|
913
|
-
...output,
|
|
914
|
-
body: await parseErrorBody(output.body, context)
|
|
915
|
-
};
|
|
916
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
917
|
-
switch (errorCode) {
|
|
918
|
-
case "AccessDeniedException":
|
|
919
|
-
case "com.amazonaws.backupgateway#AccessDeniedException":
|
|
920
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
921
|
-
case "ConflictException":
|
|
922
|
-
case "com.amazonaws.backupgateway#ConflictException":
|
|
923
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
924
|
-
case "InternalServerException":
|
|
925
|
-
case "com.amazonaws.backupgateway#InternalServerException":
|
|
926
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
927
|
-
case "ThrottlingException":
|
|
928
|
-
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
929
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
930
|
-
case "ValidationException":
|
|
931
|
-
case "com.amazonaws.backupgateway#ValidationException":
|
|
932
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
933
|
-
default:
|
|
934
|
-
const parsedBody = parsedOutput.body;
|
|
935
|
-
return throwDefaultError({
|
|
936
|
-
output,
|
|
937
|
-
parsedBody,
|
|
938
|
-
errorCode
|
|
939
|
-
});
|
|
940
|
-
}
|
|
941
|
-
}, "de_ImportHypervisorConfigurationCommandError");
|
|
942
625
|
var de_ListGatewaysCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
943
626
|
if (output.statusCode >= 300) {
|
|
944
|
-
return
|
|
627
|
+
return de_CommandError(output, context);
|
|
945
628
|
}
|
|
946
629
|
const data = await parseBody(output.body, context);
|
|
947
630
|
let contents = {};
|
|
@@ -952,34 +635,9 @@ var de_ListGatewaysCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
952
635
|
};
|
|
953
636
|
return response;
|
|
954
637
|
}, "de_ListGatewaysCommand");
|
|
955
|
-
var de_ListGatewaysCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
956
|
-
const parsedOutput = {
|
|
957
|
-
...output,
|
|
958
|
-
body: await parseErrorBody(output.body, context)
|
|
959
|
-
};
|
|
960
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
961
|
-
switch (errorCode) {
|
|
962
|
-
case "InternalServerException":
|
|
963
|
-
case "com.amazonaws.backupgateway#InternalServerException":
|
|
964
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
965
|
-
case "ThrottlingException":
|
|
966
|
-
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
967
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
968
|
-
case "ValidationException":
|
|
969
|
-
case "com.amazonaws.backupgateway#ValidationException":
|
|
970
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
971
|
-
default:
|
|
972
|
-
const parsedBody = parsedOutput.body;
|
|
973
|
-
return throwDefaultError({
|
|
974
|
-
output,
|
|
975
|
-
parsedBody,
|
|
976
|
-
errorCode
|
|
977
|
-
});
|
|
978
|
-
}
|
|
979
|
-
}, "de_ListGatewaysCommandError");
|
|
980
638
|
var de_ListHypervisorsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
981
639
|
if (output.statusCode >= 300) {
|
|
982
|
-
return
|
|
640
|
+
return de_CommandError(output, context);
|
|
983
641
|
}
|
|
984
642
|
const data = await parseBody(output.body, context);
|
|
985
643
|
let contents = {};
|
|
@@ -990,34 +648,9 @@ var de_ListHypervisorsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
990
648
|
};
|
|
991
649
|
return response;
|
|
992
650
|
}, "de_ListHypervisorsCommand");
|
|
993
|
-
var de_ListHypervisorsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
994
|
-
const parsedOutput = {
|
|
995
|
-
...output,
|
|
996
|
-
body: await parseErrorBody(output.body, context)
|
|
997
|
-
};
|
|
998
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
999
|
-
switch (errorCode) {
|
|
1000
|
-
case "InternalServerException":
|
|
1001
|
-
case "com.amazonaws.backupgateway#InternalServerException":
|
|
1002
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1003
|
-
case "ThrottlingException":
|
|
1004
|
-
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
1005
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1006
|
-
case "ValidationException":
|
|
1007
|
-
case "com.amazonaws.backupgateway#ValidationException":
|
|
1008
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1009
|
-
default:
|
|
1010
|
-
const parsedBody = parsedOutput.body;
|
|
1011
|
-
return throwDefaultError({
|
|
1012
|
-
output,
|
|
1013
|
-
parsedBody,
|
|
1014
|
-
errorCode
|
|
1015
|
-
});
|
|
1016
|
-
}
|
|
1017
|
-
}, "de_ListHypervisorsCommandError");
|
|
1018
651
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1019
652
|
if (output.statusCode >= 300) {
|
|
1020
|
-
return
|
|
653
|
+
return de_CommandError(output, context);
|
|
1021
654
|
}
|
|
1022
655
|
const data = await parseBody(output.body, context);
|
|
1023
656
|
let contents = {};
|
|
@@ -1028,116 +661,35 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1028
661
|
};
|
|
1029
662
|
return response;
|
|
1030
663
|
}, "de_ListTagsForResourceCommand");
|
|
1031
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1032
|
-
const parsedOutput = {
|
|
1033
|
-
...output,
|
|
1034
|
-
body: await parseErrorBody(output.body, context)
|
|
1035
|
-
};
|
|
1036
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1037
|
-
switch (errorCode) {
|
|
1038
|
-
case "InternalServerException":
|
|
1039
|
-
case "com.amazonaws.backupgateway#InternalServerException":
|
|
1040
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1041
|
-
case "ResourceNotFoundException":
|
|
1042
|
-
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
1043
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1044
|
-
case "ThrottlingException":
|
|
1045
|
-
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
1046
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1047
|
-
case "ValidationException":
|
|
1048
|
-
case "com.amazonaws.backupgateway#ValidationException":
|
|
1049
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1050
|
-
default:
|
|
1051
|
-
const parsedBody = parsedOutput.body;
|
|
1052
|
-
return throwDefaultError({
|
|
1053
|
-
output,
|
|
1054
|
-
parsedBody,
|
|
1055
|
-
errorCode
|
|
1056
|
-
});
|
|
1057
|
-
}
|
|
1058
|
-
}, "de_ListTagsForResourceCommandError");
|
|
1059
664
|
var de_ListVirtualMachinesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1060
665
|
if (output.statusCode >= 300) {
|
|
1061
|
-
return
|
|
1062
|
-
}
|
|
1063
|
-
const data = await parseBody(output.body, context);
|
|
1064
|
-
let contents = {};
|
|
1065
|
-
contents = de_ListVirtualMachinesOutput(data, context);
|
|
1066
|
-
const response = {
|
|
1067
|
-
$metadata: deserializeMetadata(output),
|
|
1068
|
-
...contents
|
|
1069
|
-
};
|
|
1070
|
-
return response;
|
|
1071
|
-
}, "de_ListVirtualMachinesCommand");
|
|
1072
|
-
var de_ListVirtualMachinesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1073
|
-
const parsedOutput = {
|
|
1074
|
-
...output,
|
|
1075
|
-
body: await parseErrorBody(output.body, context)
|
|
1076
|
-
};
|
|
1077
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1078
|
-
switch (errorCode) {
|
|
1079
|
-
case "InternalServerException":
|
|
1080
|
-
case "com.amazonaws.backupgateway#InternalServerException":
|
|
1081
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1082
|
-
case "ThrottlingException":
|
|
1083
|
-
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
1084
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1085
|
-
case "ValidationException":
|
|
1086
|
-
case "com.amazonaws.backupgateway#ValidationException":
|
|
1087
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1088
|
-
default:
|
|
1089
|
-
const parsedBody = parsedOutput.body;
|
|
1090
|
-
return throwDefaultError({
|
|
1091
|
-
output,
|
|
1092
|
-
parsedBody,
|
|
1093
|
-
errorCode
|
|
1094
|
-
});
|
|
1095
|
-
}
|
|
1096
|
-
}, "de_ListVirtualMachinesCommandError");
|
|
1097
|
-
var de_PutBandwidthRateLimitScheduleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1098
|
-
if (output.statusCode >= 300) {
|
|
1099
|
-
return de_PutBandwidthRateLimitScheduleCommandError(output, context);
|
|
666
|
+
return de_CommandError(output, context);
|
|
1100
667
|
}
|
|
1101
668
|
const data = await parseBody(output.body, context);
|
|
1102
669
|
let contents = {};
|
|
1103
|
-
contents = (
|
|
1104
|
-
const response = {
|
|
1105
|
-
$metadata: deserializeMetadata(output),
|
|
1106
|
-
...contents
|
|
1107
|
-
};
|
|
1108
|
-
return response;
|
|
1109
|
-
}, "
|
|
1110
|
-
var
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
body: await parseErrorBody(output.body, context)
|
|
1114
|
-
};
|
|
1115
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1116
|
-
switch (errorCode) {
|
|
1117
|
-
case "InternalServerException":
|
|
1118
|
-
case "com.amazonaws.backupgateway#InternalServerException":
|
|
1119
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1120
|
-
case "ResourceNotFoundException":
|
|
1121
|
-
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
1122
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1123
|
-
case "ThrottlingException":
|
|
1124
|
-
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
1125
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1126
|
-
case "ValidationException":
|
|
1127
|
-
case "com.amazonaws.backupgateway#ValidationException":
|
|
1128
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1129
|
-
default:
|
|
1130
|
-
const parsedBody = parsedOutput.body;
|
|
1131
|
-
return throwDefaultError({
|
|
1132
|
-
output,
|
|
1133
|
-
parsedBody,
|
|
1134
|
-
errorCode
|
|
1135
|
-
});
|
|
670
|
+
contents = de_ListVirtualMachinesOutput(data, context);
|
|
671
|
+
const response = {
|
|
672
|
+
$metadata: deserializeMetadata(output),
|
|
673
|
+
...contents
|
|
674
|
+
};
|
|
675
|
+
return response;
|
|
676
|
+
}, "de_ListVirtualMachinesCommand");
|
|
677
|
+
var de_PutBandwidthRateLimitScheduleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
678
|
+
if (output.statusCode >= 300) {
|
|
679
|
+
return de_CommandError(output, context);
|
|
1136
680
|
}
|
|
1137
|
-
|
|
681
|
+
const data = await parseBody(output.body, context);
|
|
682
|
+
let contents = {};
|
|
683
|
+
contents = (0, import_smithy_client._json)(data);
|
|
684
|
+
const response = {
|
|
685
|
+
$metadata: deserializeMetadata(output),
|
|
686
|
+
...contents
|
|
687
|
+
};
|
|
688
|
+
return response;
|
|
689
|
+
}, "de_PutBandwidthRateLimitScheduleCommand");
|
|
1138
690
|
var de_PutHypervisorPropertyMappingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1139
691
|
if (output.statusCode >= 300) {
|
|
1140
|
-
return
|
|
692
|
+
return de_CommandError(output, context);
|
|
1141
693
|
}
|
|
1142
694
|
const data = await parseBody(output.body, context);
|
|
1143
695
|
let contents = {};
|
|
@@ -1148,43 +700,9 @@ var de_PutHypervisorPropertyMappingsCommand = /* @__PURE__ */ __name(async (outp
|
|
|
1148
700
|
};
|
|
1149
701
|
return response;
|
|
1150
702
|
}, "de_PutHypervisorPropertyMappingsCommand");
|
|
1151
|
-
var de_PutHypervisorPropertyMappingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1152
|
-
const parsedOutput = {
|
|
1153
|
-
...output,
|
|
1154
|
-
body: await parseErrorBody(output.body, context)
|
|
1155
|
-
};
|
|
1156
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1157
|
-
switch (errorCode) {
|
|
1158
|
-
case "AccessDeniedException":
|
|
1159
|
-
case "com.amazonaws.backupgateway#AccessDeniedException":
|
|
1160
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1161
|
-
case "ConflictException":
|
|
1162
|
-
case "com.amazonaws.backupgateway#ConflictException":
|
|
1163
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1164
|
-
case "InternalServerException":
|
|
1165
|
-
case "com.amazonaws.backupgateway#InternalServerException":
|
|
1166
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1167
|
-
case "ResourceNotFoundException":
|
|
1168
|
-
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
1169
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1170
|
-
case "ThrottlingException":
|
|
1171
|
-
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
1172
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1173
|
-
case "ValidationException":
|
|
1174
|
-
case "com.amazonaws.backupgateway#ValidationException":
|
|
1175
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1176
|
-
default:
|
|
1177
|
-
const parsedBody = parsedOutput.body;
|
|
1178
|
-
return throwDefaultError({
|
|
1179
|
-
output,
|
|
1180
|
-
parsedBody,
|
|
1181
|
-
errorCode
|
|
1182
|
-
});
|
|
1183
|
-
}
|
|
1184
|
-
}, "de_PutHypervisorPropertyMappingsCommandError");
|
|
1185
703
|
var de_PutMaintenanceStartTimeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1186
704
|
if (output.statusCode >= 300) {
|
|
1187
|
-
return
|
|
705
|
+
return de_CommandError(output, context);
|
|
1188
706
|
}
|
|
1189
707
|
const data = await parseBody(output.body, context);
|
|
1190
708
|
let contents = {};
|
|
@@ -1195,40 +713,9 @@ var de_PutMaintenanceStartTimeCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1195
713
|
};
|
|
1196
714
|
return response;
|
|
1197
715
|
}, "de_PutMaintenanceStartTimeCommand");
|
|
1198
|
-
var de_PutMaintenanceStartTimeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1199
|
-
const parsedOutput = {
|
|
1200
|
-
...output,
|
|
1201
|
-
body: await parseErrorBody(output.body, context)
|
|
1202
|
-
};
|
|
1203
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1204
|
-
switch (errorCode) {
|
|
1205
|
-
case "ConflictException":
|
|
1206
|
-
case "com.amazonaws.backupgateway#ConflictException":
|
|
1207
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1208
|
-
case "InternalServerException":
|
|
1209
|
-
case "com.amazonaws.backupgateway#InternalServerException":
|
|
1210
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1211
|
-
case "ResourceNotFoundException":
|
|
1212
|
-
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
1213
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1214
|
-
case "ThrottlingException":
|
|
1215
|
-
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
1216
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1217
|
-
case "ValidationException":
|
|
1218
|
-
case "com.amazonaws.backupgateway#ValidationException":
|
|
1219
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1220
|
-
default:
|
|
1221
|
-
const parsedBody = parsedOutput.body;
|
|
1222
|
-
return throwDefaultError({
|
|
1223
|
-
output,
|
|
1224
|
-
parsedBody,
|
|
1225
|
-
errorCode
|
|
1226
|
-
});
|
|
1227
|
-
}
|
|
1228
|
-
}, "de_PutMaintenanceStartTimeCommandError");
|
|
1229
716
|
var de_StartVirtualMachinesMetadataSyncCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1230
717
|
if (output.statusCode >= 300) {
|
|
1231
|
-
return
|
|
718
|
+
return de_CommandError(output, context);
|
|
1232
719
|
}
|
|
1233
720
|
const data = await parseBody(output.body, context);
|
|
1234
721
|
let contents = {};
|
|
@@ -1239,40 +726,9 @@ var de_StartVirtualMachinesMetadataSyncCommand = /* @__PURE__ */ __name(async (o
|
|
|
1239
726
|
};
|
|
1240
727
|
return response;
|
|
1241
728
|
}, "de_StartVirtualMachinesMetadataSyncCommand");
|
|
1242
|
-
var de_StartVirtualMachinesMetadataSyncCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1243
|
-
const parsedOutput = {
|
|
1244
|
-
...output,
|
|
1245
|
-
body: await parseErrorBody(output.body, context)
|
|
1246
|
-
};
|
|
1247
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1248
|
-
switch (errorCode) {
|
|
1249
|
-
case "AccessDeniedException":
|
|
1250
|
-
case "com.amazonaws.backupgateway#AccessDeniedException":
|
|
1251
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1252
|
-
case "InternalServerException":
|
|
1253
|
-
case "com.amazonaws.backupgateway#InternalServerException":
|
|
1254
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1255
|
-
case "ResourceNotFoundException":
|
|
1256
|
-
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
1257
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1258
|
-
case "ThrottlingException":
|
|
1259
|
-
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
1260
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1261
|
-
case "ValidationException":
|
|
1262
|
-
case "com.amazonaws.backupgateway#ValidationException":
|
|
1263
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1264
|
-
default:
|
|
1265
|
-
const parsedBody = parsedOutput.body;
|
|
1266
|
-
return throwDefaultError({
|
|
1267
|
-
output,
|
|
1268
|
-
parsedBody,
|
|
1269
|
-
errorCode
|
|
1270
|
-
});
|
|
1271
|
-
}
|
|
1272
|
-
}, "de_StartVirtualMachinesMetadataSyncCommandError");
|
|
1273
729
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1274
730
|
if (output.statusCode >= 300) {
|
|
1275
|
-
return
|
|
731
|
+
return de_CommandError(output, context);
|
|
1276
732
|
}
|
|
1277
733
|
const data = await parseBody(output.body, context);
|
|
1278
734
|
let contents = {};
|
|
@@ -1283,37 +739,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1283
739
|
};
|
|
1284
740
|
return response;
|
|
1285
741
|
}, "de_TagResourceCommand");
|
|
1286
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1287
|
-
const parsedOutput = {
|
|
1288
|
-
...output,
|
|
1289
|
-
body: await parseErrorBody(output.body, context)
|
|
1290
|
-
};
|
|
1291
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1292
|
-
switch (errorCode) {
|
|
1293
|
-
case "InternalServerException":
|
|
1294
|
-
case "com.amazonaws.backupgateway#InternalServerException":
|
|
1295
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1296
|
-
case "ResourceNotFoundException":
|
|
1297
|
-
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
1298
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1299
|
-
case "ThrottlingException":
|
|
1300
|
-
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
1301
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1302
|
-
case "ValidationException":
|
|
1303
|
-
case "com.amazonaws.backupgateway#ValidationException":
|
|
1304
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1305
|
-
default:
|
|
1306
|
-
const parsedBody = parsedOutput.body;
|
|
1307
|
-
return throwDefaultError({
|
|
1308
|
-
output,
|
|
1309
|
-
parsedBody,
|
|
1310
|
-
errorCode
|
|
1311
|
-
});
|
|
1312
|
-
}
|
|
1313
|
-
}, "de_TagResourceCommandError");
|
|
1314
742
|
var de_TestHypervisorConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1315
743
|
if (output.statusCode >= 300) {
|
|
1316
|
-
return
|
|
744
|
+
return de_CommandError(output, context);
|
|
1317
745
|
}
|
|
1318
746
|
const data = await parseBody(output.body, context);
|
|
1319
747
|
let contents = {};
|
|
@@ -1324,40 +752,9 @@ var de_TestHypervisorConfigurationCommand = /* @__PURE__ */ __name(async (output
|
|
|
1324
752
|
};
|
|
1325
753
|
return response;
|
|
1326
754
|
}, "de_TestHypervisorConfigurationCommand");
|
|
1327
|
-
var de_TestHypervisorConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1328
|
-
const parsedOutput = {
|
|
1329
|
-
...output,
|
|
1330
|
-
body: await parseErrorBody(output.body, context)
|
|
1331
|
-
};
|
|
1332
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1333
|
-
switch (errorCode) {
|
|
1334
|
-
case "ConflictException":
|
|
1335
|
-
case "com.amazonaws.backupgateway#ConflictException":
|
|
1336
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1337
|
-
case "InternalServerException":
|
|
1338
|
-
case "com.amazonaws.backupgateway#InternalServerException":
|
|
1339
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1340
|
-
case "ResourceNotFoundException":
|
|
1341
|
-
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
1342
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1343
|
-
case "ThrottlingException":
|
|
1344
|
-
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
1345
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1346
|
-
case "ValidationException":
|
|
1347
|
-
case "com.amazonaws.backupgateway#ValidationException":
|
|
1348
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1349
|
-
default:
|
|
1350
|
-
const parsedBody = parsedOutput.body;
|
|
1351
|
-
return throwDefaultError({
|
|
1352
|
-
output,
|
|
1353
|
-
parsedBody,
|
|
1354
|
-
errorCode
|
|
1355
|
-
});
|
|
1356
|
-
}
|
|
1357
|
-
}, "de_TestHypervisorConfigurationCommandError");
|
|
1358
755
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1359
756
|
if (output.statusCode >= 300) {
|
|
1360
|
-
return
|
|
757
|
+
return de_CommandError(output, context);
|
|
1361
758
|
}
|
|
1362
759
|
const data = await parseBody(output.body, context);
|
|
1363
760
|
let contents = {};
|
|
@@ -1368,37 +765,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1368
765
|
};
|
|
1369
766
|
return response;
|
|
1370
767
|
}, "de_UntagResourceCommand");
|
|
1371
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1372
|
-
const parsedOutput = {
|
|
1373
|
-
...output,
|
|
1374
|
-
body: await parseErrorBody(output.body, context)
|
|
1375
|
-
};
|
|
1376
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1377
|
-
switch (errorCode) {
|
|
1378
|
-
case "InternalServerException":
|
|
1379
|
-
case "com.amazonaws.backupgateway#InternalServerException":
|
|
1380
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1381
|
-
case "ResourceNotFoundException":
|
|
1382
|
-
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
1383
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1384
|
-
case "ThrottlingException":
|
|
1385
|
-
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
1386
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1387
|
-
case "ValidationException":
|
|
1388
|
-
case "com.amazonaws.backupgateway#ValidationException":
|
|
1389
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1390
|
-
default:
|
|
1391
|
-
const parsedBody = parsedOutput.body;
|
|
1392
|
-
return throwDefaultError({
|
|
1393
|
-
output,
|
|
1394
|
-
parsedBody,
|
|
1395
|
-
errorCode
|
|
1396
|
-
});
|
|
1397
|
-
}
|
|
1398
|
-
}, "de_UntagResourceCommandError");
|
|
1399
768
|
var de_UpdateGatewayInformationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1400
769
|
if (output.statusCode >= 300) {
|
|
1401
|
-
return
|
|
770
|
+
return de_CommandError(output, context);
|
|
1402
771
|
}
|
|
1403
772
|
const data = await parseBody(output.body, context);
|
|
1404
773
|
let contents = {};
|
|
@@ -1409,40 +778,9 @@ var de_UpdateGatewayInformationCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1409
778
|
};
|
|
1410
779
|
return response;
|
|
1411
780
|
}, "de_UpdateGatewayInformationCommand");
|
|
1412
|
-
var de_UpdateGatewayInformationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1413
|
-
const parsedOutput = {
|
|
1414
|
-
...output,
|
|
1415
|
-
body: await parseErrorBody(output.body, context)
|
|
1416
|
-
};
|
|
1417
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1418
|
-
switch (errorCode) {
|
|
1419
|
-
case "ConflictException":
|
|
1420
|
-
case "com.amazonaws.backupgateway#ConflictException":
|
|
1421
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1422
|
-
case "InternalServerException":
|
|
1423
|
-
case "com.amazonaws.backupgateway#InternalServerException":
|
|
1424
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1425
|
-
case "ResourceNotFoundException":
|
|
1426
|
-
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
1427
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1428
|
-
case "ThrottlingException":
|
|
1429
|
-
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
1430
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1431
|
-
case "ValidationException":
|
|
1432
|
-
case "com.amazonaws.backupgateway#ValidationException":
|
|
1433
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1434
|
-
default:
|
|
1435
|
-
const parsedBody = parsedOutput.body;
|
|
1436
|
-
return throwDefaultError({
|
|
1437
|
-
output,
|
|
1438
|
-
parsedBody,
|
|
1439
|
-
errorCode
|
|
1440
|
-
});
|
|
1441
|
-
}
|
|
1442
|
-
}, "de_UpdateGatewayInformationCommandError");
|
|
1443
781
|
var de_UpdateGatewaySoftwareNowCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1444
782
|
if (output.statusCode >= 300) {
|
|
1445
|
-
return
|
|
783
|
+
return de_CommandError(output, context);
|
|
1446
784
|
}
|
|
1447
785
|
const data = await parseBody(output.body, context);
|
|
1448
786
|
let contents = {};
|
|
@@ -1453,37 +791,9 @@ var de_UpdateGatewaySoftwareNowCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1453
791
|
};
|
|
1454
792
|
return response;
|
|
1455
793
|
}, "de_UpdateGatewaySoftwareNowCommand");
|
|
1456
|
-
var de_UpdateGatewaySoftwareNowCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1457
|
-
const parsedOutput = {
|
|
1458
|
-
...output,
|
|
1459
|
-
body: await parseErrorBody(output.body, context)
|
|
1460
|
-
};
|
|
1461
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1462
|
-
switch (errorCode) {
|
|
1463
|
-
case "InternalServerException":
|
|
1464
|
-
case "com.amazonaws.backupgateway#InternalServerException":
|
|
1465
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1466
|
-
case "ResourceNotFoundException":
|
|
1467
|
-
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
1468
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1469
|
-
case "ThrottlingException":
|
|
1470
|
-
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
1471
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1472
|
-
case "ValidationException":
|
|
1473
|
-
case "com.amazonaws.backupgateway#ValidationException":
|
|
1474
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1475
|
-
default:
|
|
1476
|
-
const parsedBody = parsedOutput.body;
|
|
1477
|
-
return throwDefaultError({
|
|
1478
|
-
output,
|
|
1479
|
-
parsedBody,
|
|
1480
|
-
errorCode
|
|
1481
|
-
});
|
|
1482
|
-
}
|
|
1483
|
-
}, "de_UpdateGatewaySoftwareNowCommandError");
|
|
1484
794
|
var de_UpdateHypervisorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1485
795
|
if (output.statusCode >= 300) {
|
|
1486
|
-
return
|
|
796
|
+
return de_CommandError(output, context);
|
|
1487
797
|
}
|
|
1488
798
|
const data = await parseBody(output.body, context);
|
|
1489
799
|
let contents = {};
|
|
@@ -1494,31 +804,31 @@ var de_UpdateHypervisorCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1494
804
|
};
|
|
1495
805
|
return response;
|
|
1496
806
|
}, "de_UpdateHypervisorCommand");
|
|
1497
|
-
var
|
|
807
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1498
808
|
const parsedOutput = {
|
|
1499
809
|
...output,
|
|
1500
810
|
body: await parseErrorBody(output.body, context)
|
|
1501
811
|
};
|
|
1502
812
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1503
813
|
switch (errorCode) {
|
|
1504
|
-
case "AccessDeniedException":
|
|
1505
|
-
case "com.amazonaws.backupgateway#AccessDeniedException":
|
|
1506
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1507
814
|
case "ConflictException":
|
|
1508
815
|
case "com.amazonaws.backupgateway#ConflictException":
|
|
1509
816
|
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1510
817
|
case "InternalServerException":
|
|
1511
818
|
case "com.amazonaws.backupgateway#InternalServerException":
|
|
1512
819
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1513
|
-
case "ResourceNotFoundException":
|
|
1514
|
-
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
1515
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1516
820
|
case "ThrottlingException":
|
|
1517
821
|
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
1518
822
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1519
823
|
case "ValidationException":
|
|
1520
824
|
case "com.amazonaws.backupgateway#ValidationException":
|
|
1521
825
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
826
|
+
case "ResourceNotFoundException":
|
|
827
|
+
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
828
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
829
|
+
case "AccessDeniedException":
|
|
830
|
+
case "com.amazonaws.backupgateway#AccessDeniedException":
|
|
831
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1522
832
|
default:
|
|
1523
833
|
const parsedBody = parsedOutput.body;
|
|
1524
834
|
return throwDefaultError({
|
|
@@ -1527,7 +837,7 @@ var de_UpdateHypervisorCommandError = /* @__PURE__ */ __name(async (output, cont
|
|
|
1527
837
|
errorCode
|
|
1528
838
|
});
|
|
1529
839
|
}
|
|
1530
|
-
}, "
|
|
840
|
+
}, "de_CommandError");
|
|
1531
841
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1532
842
|
const body = parsedOutput.body;
|
|
1533
843
|
const deserialized = (0, import_smithy_client._json)(body);
|