@aws-sdk/client-internetmonitor 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 +34 -410
- package/dist-es/protocols/Aws_restJson1.js +33 -409
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -626,7 +626,7 @@ var se_UpdateMonitorCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
626
626
|
}, "se_UpdateMonitorCommand");
|
|
627
627
|
var de_CreateMonitorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
628
628
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
629
|
-
return
|
|
629
|
+
return de_CommandError(output, context);
|
|
630
630
|
}
|
|
631
631
|
const contents = (0, import_smithy_client.map)({
|
|
632
632
|
$metadata: deserializeMetadata(output)
|
|
@@ -639,43 +639,9 @@ var de_CreateMonitorCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
639
639
|
Object.assign(contents, doc);
|
|
640
640
|
return contents;
|
|
641
641
|
}, "de_CreateMonitorCommand");
|
|
642
|
-
var de_CreateMonitorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
643
|
-
const parsedOutput = {
|
|
644
|
-
...output,
|
|
645
|
-
body: await parseErrorBody(output.body, context)
|
|
646
|
-
};
|
|
647
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
648
|
-
switch (errorCode) {
|
|
649
|
-
case "AccessDeniedException":
|
|
650
|
-
case "com.amazonaws.internetmonitor#AccessDeniedException":
|
|
651
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
652
|
-
case "ConflictException":
|
|
653
|
-
case "com.amazonaws.internetmonitor#ConflictException":
|
|
654
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
655
|
-
case "InternalServerException":
|
|
656
|
-
case "com.amazonaws.internetmonitor#InternalServerException":
|
|
657
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
658
|
-
case "LimitExceededException":
|
|
659
|
-
case "com.amazonaws.internetmonitor#LimitExceededException":
|
|
660
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
661
|
-
case "ThrottlingException":
|
|
662
|
-
case "com.amazonaws.internetmonitor#ThrottlingException":
|
|
663
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
664
|
-
case "ValidationException":
|
|
665
|
-
case "com.amazonaws.internetmonitor#ValidationException":
|
|
666
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
667
|
-
default:
|
|
668
|
-
const parsedBody = parsedOutput.body;
|
|
669
|
-
return throwDefaultError({
|
|
670
|
-
output,
|
|
671
|
-
parsedBody,
|
|
672
|
-
errorCode
|
|
673
|
-
});
|
|
674
|
-
}
|
|
675
|
-
}, "de_CreateMonitorCommandError");
|
|
676
642
|
var de_DeleteMonitorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
677
643
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
678
|
-
return
|
|
644
|
+
return de_CommandError(output, context);
|
|
679
645
|
}
|
|
680
646
|
const contents = (0, import_smithy_client.map)({
|
|
681
647
|
$metadata: deserializeMetadata(output)
|
|
@@ -683,37 +649,9 @@ var de_DeleteMonitorCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
683
649
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
684
650
|
return contents;
|
|
685
651
|
}, "de_DeleteMonitorCommand");
|
|
686
|
-
var de_DeleteMonitorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
687
|
-
const parsedOutput = {
|
|
688
|
-
...output,
|
|
689
|
-
body: await parseErrorBody(output.body, context)
|
|
690
|
-
};
|
|
691
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
692
|
-
switch (errorCode) {
|
|
693
|
-
case "AccessDeniedException":
|
|
694
|
-
case "com.amazonaws.internetmonitor#AccessDeniedException":
|
|
695
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
696
|
-
case "InternalServerException":
|
|
697
|
-
case "com.amazonaws.internetmonitor#InternalServerException":
|
|
698
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
699
|
-
case "ThrottlingException":
|
|
700
|
-
case "com.amazonaws.internetmonitor#ThrottlingException":
|
|
701
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
702
|
-
case "ValidationException":
|
|
703
|
-
case "com.amazonaws.internetmonitor#ValidationException":
|
|
704
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
705
|
-
default:
|
|
706
|
-
const parsedBody = parsedOutput.body;
|
|
707
|
-
return throwDefaultError({
|
|
708
|
-
output,
|
|
709
|
-
parsedBody,
|
|
710
|
-
errorCode
|
|
711
|
-
});
|
|
712
|
-
}
|
|
713
|
-
}, "de_DeleteMonitorCommandError");
|
|
714
652
|
var de_GetHealthEventCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
715
653
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
716
|
-
return
|
|
654
|
+
return de_CommandError(output, context);
|
|
717
655
|
}
|
|
718
656
|
const contents = (0, import_smithy_client.map)({
|
|
719
657
|
$metadata: deserializeMetadata(output)
|
|
@@ -735,37 +673,9 @@ var de_GetHealthEventCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
735
673
|
Object.assign(contents, doc);
|
|
736
674
|
return contents;
|
|
737
675
|
}, "de_GetHealthEventCommand");
|
|
738
|
-
var de_GetHealthEventCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
739
|
-
const parsedOutput = {
|
|
740
|
-
...output,
|
|
741
|
-
body: await parseErrorBody(output.body, context)
|
|
742
|
-
};
|
|
743
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
744
|
-
switch (errorCode) {
|
|
745
|
-
case "AccessDeniedException":
|
|
746
|
-
case "com.amazonaws.internetmonitor#AccessDeniedException":
|
|
747
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
748
|
-
case "InternalServerException":
|
|
749
|
-
case "com.amazonaws.internetmonitor#InternalServerException":
|
|
750
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
751
|
-
case "ThrottlingException":
|
|
752
|
-
case "com.amazonaws.internetmonitor#ThrottlingException":
|
|
753
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
754
|
-
case "ValidationException":
|
|
755
|
-
case "com.amazonaws.internetmonitor#ValidationException":
|
|
756
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
757
|
-
default:
|
|
758
|
-
const parsedBody = parsedOutput.body;
|
|
759
|
-
return throwDefaultError({
|
|
760
|
-
output,
|
|
761
|
-
parsedBody,
|
|
762
|
-
errorCode
|
|
763
|
-
});
|
|
764
|
-
}
|
|
765
|
-
}, "de_GetHealthEventCommandError");
|
|
766
676
|
var de_GetMonitorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
767
677
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
768
|
-
return
|
|
678
|
+
return de_CommandError(output, context);
|
|
769
679
|
}
|
|
770
680
|
const contents = (0, import_smithy_client.map)({
|
|
771
681
|
$metadata: deserializeMetadata(output)
|
|
@@ -789,37 +699,9 @@ var de_GetMonitorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
789
699
|
Object.assign(contents, doc);
|
|
790
700
|
return contents;
|
|
791
701
|
}, "de_GetMonitorCommand");
|
|
792
|
-
var de_GetMonitorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
793
|
-
const parsedOutput = {
|
|
794
|
-
...output,
|
|
795
|
-
body: await parseErrorBody(output.body, context)
|
|
796
|
-
};
|
|
797
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
798
|
-
switch (errorCode) {
|
|
799
|
-
case "AccessDeniedException":
|
|
800
|
-
case "com.amazonaws.internetmonitor#AccessDeniedException":
|
|
801
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
802
|
-
case "InternalServerException":
|
|
803
|
-
case "com.amazonaws.internetmonitor#InternalServerException":
|
|
804
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
805
|
-
case "ThrottlingException":
|
|
806
|
-
case "com.amazonaws.internetmonitor#ThrottlingException":
|
|
807
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
808
|
-
case "ValidationException":
|
|
809
|
-
case "com.amazonaws.internetmonitor#ValidationException":
|
|
810
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
811
|
-
default:
|
|
812
|
-
const parsedBody = parsedOutput.body;
|
|
813
|
-
return throwDefaultError({
|
|
814
|
-
output,
|
|
815
|
-
parsedBody,
|
|
816
|
-
errorCode
|
|
817
|
-
});
|
|
818
|
-
}
|
|
819
|
-
}, "de_GetMonitorCommandError");
|
|
820
702
|
var de_GetQueryResultsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
821
703
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
822
|
-
return
|
|
704
|
+
return de_CommandError(output, context);
|
|
823
705
|
}
|
|
824
706
|
const contents = (0, import_smithy_client.map)({
|
|
825
707
|
$metadata: deserializeMetadata(output)
|
|
@@ -833,40 +715,9 @@ var de_GetQueryResultsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
833
715
|
Object.assign(contents, doc);
|
|
834
716
|
return contents;
|
|
835
717
|
}, "de_GetQueryResultsCommand");
|
|
836
|
-
var de_GetQueryResultsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
837
|
-
const parsedOutput = {
|
|
838
|
-
...output,
|
|
839
|
-
body: await parseErrorBody(output.body, context)
|
|
840
|
-
};
|
|
841
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
842
|
-
switch (errorCode) {
|
|
843
|
-
case "AccessDeniedException":
|
|
844
|
-
case "com.amazonaws.internetmonitor#AccessDeniedException":
|
|
845
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
846
|
-
case "InternalServerException":
|
|
847
|
-
case "com.amazonaws.internetmonitor#InternalServerException":
|
|
848
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
849
|
-
case "LimitExceededException":
|
|
850
|
-
case "com.amazonaws.internetmonitor#LimitExceededException":
|
|
851
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
852
|
-
case "ThrottlingException":
|
|
853
|
-
case "com.amazonaws.internetmonitor#ThrottlingException":
|
|
854
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
855
|
-
case "ValidationException":
|
|
856
|
-
case "com.amazonaws.internetmonitor#ValidationException":
|
|
857
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
858
|
-
default:
|
|
859
|
-
const parsedBody = parsedOutput.body;
|
|
860
|
-
return throwDefaultError({
|
|
861
|
-
output,
|
|
862
|
-
parsedBody,
|
|
863
|
-
errorCode
|
|
864
|
-
});
|
|
865
|
-
}
|
|
866
|
-
}, "de_GetQueryResultsCommandError");
|
|
867
718
|
var de_GetQueryStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
868
719
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
869
|
-
return
|
|
720
|
+
return de_CommandError(output, context);
|
|
870
721
|
}
|
|
871
722
|
const contents = (0, import_smithy_client.map)({
|
|
872
723
|
$metadata: deserializeMetadata(output)
|
|
@@ -878,40 +729,9 @@ var de_GetQueryStatusCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
878
729
|
Object.assign(contents, doc);
|
|
879
730
|
return contents;
|
|
880
731
|
}, "de_GetQueryStatusCommand");
|
|
881
|
-
var de_GetQueryStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
882
|
-
const parsedOutput = {
|
|
883
|
-
...output,
|
|
884
|
-
body: await parseErrorBody(output.body, context)
|
|
885
|
-
};
|
|
886
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
887
|
-
switch (errorCode) {
|
|
888
|
-
case "AccessDeniedException":
|
|
889
|
-
case "com.amazonaws.internetmonitor#AccessDeniedException":
|
|
890
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
891
|
-
case "InternalServerException":
|
|
892
|
-
case "com.amazonaws.internetmonitor#InternalServerException":
|
|
893
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
894
|
-
case "LimitExceededException":
|
|
895
|
-
case "com.amazonaws.internetmonitor#LimitExceededException":
|
|
896
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
897
|
-
case "ThrottlingException":
|
|
898
|
-
case "com.amazonaws.internetmonitor#ThrottlingException":
|
|
899
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
900
|
-
case "ValidationException":
|
|
901
|
-
case "com.amazonaws.internetmonitor#ValidationException":
|
|
902
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
903
|
-
default:
|
|
904
|
-
const parsedBody = parsedOutput.body;
|
|
905
|
-
return throwDefaultError({
|
|
906
|
-
output,
|
|
907
|
-
parsedBody,
|
|
908
|
-
errorCode
|
|
909
|
-
});
|
|
910
|
-
}
|
|
911
|
-
}, "de_GetQueryStatusCommandError");
|
|
912
732
|
var de_ListHealthEventsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
913
733
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
914
|
-
return
|
|
734
|
+
return de_CommandError(output, context);
|
|
915
735
|
}
|
|
916
736
|
const contents = (0, import_smithy_client.map)({
|
|
917
737
|
$metadata: deserializeMetadata(output)
|
|
@@ -924,37 +744,9 @@ var de_ListHealthEventsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
924
744
|
Object.assign(contents, doc);
|
|
925
745
|
return contents;
|
|
926
746
|
}, "de_ListHealthEventsCommand");
|
|
927
|
-
var de_ListHealthEventsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
928
|
-
const parsedOutput = {
|
|
929
|
-
...output,
|
|
930
|
-
body: await parseErrorBody(output.body, context)
|
|
931
|
-
};
|
|
932
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
933
|
-
switch (errorCode) {
|
|
934
|
-
case "AccessDeniedException":
|
|
935
|
-
case "com.amazonaws.internetmonitor#AccessDeniedException":
|
|
936
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
937
|
-
case "InternalServerException":
|
|
938
|
-
case "com.amazonaws.internetmonitor#InternalServerException":
|
|
939
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
940
|
-
case "ThrottlingException":
|
|
941
|
-
case "com.amazonaws.internetmonitor#ThrottlingException":
|
|
942
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
943
|
-
case "ValidationException":
|
|
944
|
-
case "com.amazonaws.internetmonitor#ValidationException":
|
|
945
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
946
|
-
default:
|
|
947
|
-
const parsedBody = parsedOutput.body;
|
|
948
|
-
return throwDefaultError({
|
|
949
|
-
output,
|
|
950
|
-
parsedBody,
|
|
951
|
-
errorCode
|
|
952
|
-
});
|
|
953
|
-
}
|
|
954
|
-
}, "de_ListHealthEventsCommandError");
|
|
955
747
|
var de_ListMonitorsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
956
748
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
957
|
-
return
|
|
749
|
+
return de_CommandError(output, context);
|
|
958
750
|
}
|
|
959
751
|
const contents = (0, import_smithy_client.map)({
|
|
960
752
|
$metadata: deserializeMetadata(output)
|
|
@@ -967,37 +759,9 @@ var de_ListMonitorsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
967
759
|
Object.assign(contents, doc);
|
|
968
760
|
return contents;
|
|
969
761
|
}, "de_ListMonitorsCommand");
|
|
970
|
-
var de_ListMonitorsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
971
|
-
const parsedOutput = {
|
|
972
|
-
...output,
|
|
973
|
-
body: await parseErrorBody(output.body, context)
|
|
974
|
-
};
|
|
975
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
976
|
-
switch (errorCode) {
|
|
977
|
-
case "AccessDeniedException":
|
|
978
|
-
case "com.amazonaws.internetmonitor#AccessDeniedException":
|
|
979
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
980
|
-
case "InternalServerException":
|
|
981
|
-
case "com.amazonaws.internetmonitor#InternalServerException":
|
|
982
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
983
|
-
case "ThrottlingException":
|
|
984
|
-
case "com.amazonaws.internetmonitor#ThrottlingException":
|
|
985
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
986
|
-
case "ValidationException":
|
|
987
|
-
case "com.amazonaws.internetmonitor#ValidationException":
|
|
988
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
989
|
-
default:
|
|
990
|
-
const parsedBody = parsedOutput.body;
|
|
991
|
-
return throwDefaultError({
|
|
992
|
-
output,
|
|
993
|
-
parsedBody,
|
|
994
|
-
errorCode
|
|
995
|
-
});
|
|
996
|
-
}
|
|
997
|
-
}, "de_ListMonitorsCommandError");
|
|
998
762
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
999
763
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1000
|
-
return
|
|
764
|
+
return de_CommandError(output, context);
|
|
1001
765
|
}
|
|
1002
766
|
const contents = (0, import_smithy_client.map)({
|
|
1003
767
|
$metadata: deserializeMetadata(output)
|
|
@@ -1009,40 +773,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1009
773
|
Object.assign(contents, doc);
|
|
1010
774
|
return contents;
|
|
1011
775
|
}, "de_ListTagsForResourceCommand");
|
|
1012
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1013
|
-
const parsedOutput = {
|
|
1014
|
-
...output,
|
|
1015
|
-
body: await parseErrorBody(output.body, context)
|
|
1016
|
-
};
|
|
1017
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1018
|
-
switch (errorCode) {
|
|
1019
|
-
case "AccessDeniedException":
|
|
1020
|
-
case "com.amazonaws.internetmonitor#AccessDeniedException":
|
|
1021
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1022
|
-
case "BadRequestException":
|
|
1023
|
-
case "com.amazonaws.internetmonitor#BadRequestException":
|
|
1024
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1025
|
-
case "InternalServerErrorException":
|
|
1026
|
-
case "com.amazonaws.internetmonitor#InternalServerErrorException":
|
|
1027
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1028
|
-
case "NotFoundException":
|
|
1029
|
-
case "com.amazonaws.internetmonitor#NotFoundException":
|
|
1030
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1031
|
-
case "TooManyRequestsException":
|
|
1032
|
-
case "com.amazonaws.internetmonitor#TooManyRequestsException":
|
|
1033
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1034
|
-
default:
|
|
1035
|
-
const parsedBody = parsedOutput.body;
|
|
1036
|
-
return throwDefaultError({
|
|
1037
|
-
output,
|
|
1038
|
-
parsedBody,
|
|
1039
|
-
errorCode
|
|
1040
|
-
});
|
|
1041
|
-
}
|
|
1042
|
-
}, "de_ListTagsForResourceCommandError");
|
|
1043
776
|
var de_StartQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1044
777
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1045
|
-
return
|
|
778
|
+
return de_CommandError(output, context);
|
|
1046
779
|
}
|
|
1047
780
|
const contents = (0, import_smithy_client.map)({
|
|
1048
781
|
$metadata: deserializeMetadata(output)
|
|
@@ -1054,40 +787,9 @@ var de_StartQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1054
787
|
Object.assign(contents, doc);
|
|
1055
788
|
return contents;
|
|
1056
789
|
}, "de_StartQueryCommand");
|
|
1057
|
-
var de_StartQueryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1058
|
-
const parsedOutput = {
|
|
1059
|
-
...output,
|
|
1060
|
-
body: await parseErrorBody(output.body, context)
|
|
1061
|
-
};
|
|
1062
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1063
|
-
switch (errorCode) {
|
|
1064
|
-
case "AccessDeniedException":
|
|
1065
|
-
case "com.amazonaws.internetmonitor#AccessDeniedException":
|
|
1066
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1067
|
-
case "InternalServerException":
|
|
1068
|
-
case "com.amazonaws.internetmonitor#InternalServerException":
|
|
1069
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1070
|
-
case "LimitExceededException":
|
|
1071
|
-
case "com.amazonaws.internetmonitor#LimitExceededException":
|
|
1072
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1073
|
-
case "ThrottlingException":
|
|
1074
|
-
case "com.amazonaws.internetmonitor#ThrottlingException":
|
|
1075
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1076
|
-
case "ValidationException":
|
|
1077
|
-
case "com.amazonaws.internetmonitor#ValidationException":
|
|
1078
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1079
|
-
default:
|
|
1080
|
-
const parsedBody = parsedOutput.body;
|
|
1081
|
-
return throwDefaultError({
|
|
1082
|
-
output,
|
|
1083
|
-
parsedBody,
|
|
1084
|
-
errorCode
|
|
1085
|
-
});
|
|
1086
|
-
}
|
|
1087
|
-
}, "de_StartQueryCommandError");
|
|
1088
790
|
var de_StopQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1089
791
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1090
|
-
return
|
|
792
|
+
return de_CommandError(output, context);
|
|
1091
793
|
}
|
|
1092
794
|
const contents = (0, import_smithy_client.map)({
|
|
1093
795
|
$metadata: deserializeMetadata(output)
|
|
@@ -1095,40 +797,9 @@ var de_StopQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1095
797
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1096
798
|
return contents;
|
|
1097
799
|
}, "de_StopQueryCommand");
|
|
1098
|
-
var de_StopQueryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1099
|
-
const parsedOutput = {
|
|
1100
|
-
...output,
|
|
1101
|
-
body: await parseErrorBody(output.body, context)
|
|
1102
|
-
};
|
|
1103
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1104
|
-
switch (errorCode) {
|
|
1105
|
-
case "AccessDeniedException":
|
|
1106
|
-
case "com.amazonaws.internetmonitor#AccessDeniedException":
|
|
1107
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1108
|
-
case "InternalServerException":
|
|
1109
|
-
case "com.amazonaws.internetmonitor#InternalServerException":
|
|
1110
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1111
|
-
case "LimitExceededException":
|
|
1112
|
-
case "com.amazonaws.internetmonitor#LimitExceededException":
|
|
1113
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1114
|
-
case "ThrottlingException":
|
|
1115
|
-
case "com.amazonaws.internetmonitor#ThrottlingException":
|
|
1116
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1117
|
-
case "ValidationException":
|
|
1118
|
-
case "com.amazonaws.internetmonitor#ValidationException":
|
|
1119
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1120
|
-
default:
|
|
1121
|
-
const parsedBody = parsedOutput.body;
|
|
1122
|
-
return throwDefaultError({
|
|
1123
|
-
output,
|
|
1124
|
-
parsedBody,
|
|
1125
|
-
errorCode
|
|
1126
|
-
});
|
|
1127
|
-
}
|
|
1128
|
-
}, "de_StopQueryCommandError");
|
|
1129
800
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1130
801
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1131
|
-
return
|
|
802
|
+
return de_CommandError(output, context);
|
|
1132
803
|
}
|
|
1133
804
|
const contents = (0, import_smithy_client.map)({
|
|
1134
805
|
$metadata: deserializeMetadata(output)
|
|
@@ -1136,40 +807,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1136
807
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1137
808
|
return contents;
|
|
1138
809
|
}, "de_TagResourceCommand");
|
|
1139
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1140
|
-
const parsedOutput = {
|
|
1141
|
-
...output,
|
|
1142
|
-
body: await parseErrorBody(output.body, context)
|
|
1143
|
-
};
|
|
1144
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1145
|
-
switch (errorCode) {
|
|
1146
|
-
case "AccessDeniedException":
|
|
1147
|
-
case "com.amazonaws.internetmonitor#AccessDeniedException":
|
|
1148
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1149
|
-
case "BadRequestException":
|
|
1150
|
-
case "com.amazonaws.internetmonitor#BadRequestException":
|
|
1151
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1152
|
-
case "InternalServerErrorException":
|
|
1153
|
-
case "com.amazonaws.internetmonitor#InternalServerErrorException":
|
|
1154
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1155
|
-
case "NotFoundException":
|
|
1156
|
-
case "com.amazonaws.internetmonitor#NotFoundException":
|
|
1157
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1158
|
-
case "TooManyRequestsException":
|
|
1159
|
-
case "com.amazonaws.internetmonitor#TooManyRequestsException":
|
|
1160
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1161
|
-
default:
|
|
1162
|
-
const parsedBody = parsedOutput.body;
|
|
1163
|
-
return throwDefaultError({
|
|
1164
|
-
output,
|
|
1165
|
-
parsedBody,
|
|
1166
|
-
errorCode
|
|
1167
|
-
});
|
|
1168
|
-
}
|
|
1169
|
-
}, "de_TagResourceCommandError");
|
|
1170
810
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1171
811
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1172
|
-
return
|
|
812
|
+
return de_CommandError(output, context);
|
|
1173
813
|
}
|
|
1174
814
|
const contents = (0, import_smithy_client.map)({
|
|
1175
815
|
$metadata: deserializeMetadata(output)
|
|
@@ -1177,40 +817,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1177
817
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1178
818
|
return contents;
|
|
1179
819
|
}, "de_UntagResourceCommand");
|
|
1180
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1181
|
-
const parsedOutput = {
|
|
1182
|
-
...output,
|
|
1183
|
-
body: await parseErrorBody(output.body, context)
|
|
1184
|
-
};
|
|
1185
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1186
|
-
switch (errorCode) {
|
|
1187
|
-
case "AccessDeniedException":
|
|
1188
|
-
case "com.amazonaws.internetmonitor#AccessDeniedException":
|
|
1189
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1190
|
-
case "BadRequestException":
|
|
1191
|
-
case "com.amazonaws.internetmonitor#BadRequestException":
|
|
1192
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1193
|
-
case "InternalServerErrorException":
|
|
1194
|
-
case "com.amazonaws.internetmonitor#InternalServerErrorException":
|
|
1195
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1196
|
-
case "NotFoundException":
|
|
1197
|
-
case "com.amazonaws.internetmonitor#NotFoundException":
|
|
1198
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1199
|
-
case "TooManyRequestsException":
|
|
1200
|
-
case "com.amazonaws.internetmonitor#TooManyRequestsException":
|
|
1201
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1202
|
-
default:
|
|
1203
|
-
const parsedBody = parsedOutput.body;
|
|
1204
|
-
return throwDefaultError({
|
|
1205
|
-
output,
|
|
1206
|
-
parsedBody,
|
|
1207
|
-
errorCode
|
|
1208
|
-
});
|
|
1209
|
-
}
|
|
1210
|
-
}, "de_UntagResourceCommandError");
|
|
1211
820
|
var de_UpdateMonitorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1212
821
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1213
|
-
return
|
|
822
|
+
return de_CommandError(output, context);
|
|
1214
823
|
}
|
|
1215
824
|
const contents = (0, import_smithy_client.map)({
|
|
1216
825
|
$metadata: deserializeMetadata(output)
|
|
@@ -1223,7 +832,7 @@ var de_UpdateMonitorCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1223
832
|
Object.assign(contents, doc);
|
|
1224
833
|
return contents;
|
|
1225
834
|
}, "de_UpdateMonitorCommand");
|
|
1226
|
-
var
|
|
835
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1227
836
|
const parsedOutput = {
|
|
1228
837
|
...output,
|
|
1229
838
|
body: await parseErrorBody(output.body, context)
|
|
@@ -1233,21 +842,36 @@ var de_UpdateMonitorCommandError = /* @__PURE__ */ __name(async (output, context
|
|
|
1233
842
|
case "AccessDeniedException":
|
|
1234
843
|
case "com.amazonaws.internetmonitor#AccessDeniedException":
|
|
1235
844
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
845
|
+
case "ConflictException":
|
|
846
|
+
case "com.amazonaws.internetmonitor#ConflictException":
|
|
847
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1236
848
|
case "InternalServerException":
|
|
1237
849
|
case "com.amazonaws.internetmonitor#InternalServerException":
|
|
1238
850
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1239
851
|
case "LimitExceededException":
|
|
1240
852
|
case "com.amazonaws.internetmonitor#LimitExceededException":
|
|
1241
853
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1242
|
-
case "ResourceNotFoundException":
|
|
1243
|
-
case "com.amazonaws.internetmonitor#ResourceNotFoundException":
|
|
1244
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1245
854
|
case "ThrottlingException":
|
|
1246
855
|
case "com.amazonaws.internetmonitor#ThrottlingException":
|
|
1247
856
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1248
857
|
case "ValidationException":
|
|
1249
858
|
case "com.amazonaws.internetmonitor#ValidationException":
|
|
1250
859
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
860
|
+
case "BadRequestException":
|
|
861
|
+
case "com.amazonaws.internetmonitor#BadRequestException":
|
|
862
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
863
|
+
case "InternalServerErrorException":
|
|
864
|
+
case "com.amazonaws.internetmonitor#InternalServerErrorException":
|
|
865
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
866
|
+
case "NotFoundException":
|
|
867
|
+
case "com.amazonaws.internetmonitor#NotFoundException":
|
|
868
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
869
|
+
case "TooManyRequestsException":
|
|
870
|
+
case "com.amazonaws.internetmonitor#TooManyRequestsException":
|
|
871
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
872
|
+
case "ResourceNotFoundException":
|
|
873
|
+
case "com.amazonaws.internetmonitor#ResourceNotFoundException":
|
|
874
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1251
875
|
default:
|
|
1252
876
|
const parsedBody = parsedOutput.body;
|
|
1253
877
|
return throwDefaultError({
|
|
@@ -1256,7 +880,7 @@ var de_UpdateMonitorCommandError = /* @__PURE__ */ __name(async (output, context
|
|
|
1256
880
|
errorCode
|
|
1257
881
|
});
|
|
1258
882
|
}
|
|
1259
|
-
}, "
|
|
883
|
+
}, "de_CommandError");
|
|
1260
884
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(InternetMonitorServiceException);
|
|
1261
885
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1262
886
|
const contents = (0, import_smithy_client.map)({});
|
|
@@ -192,7 +192,7 @@ export const se_UpdateMonitorCommand = async (input, context) => {
|
|
|
192
192
|
};
|
|
193
193
|
export const de_CreateMonitorCommand = async (output, context) => {
|
|
194
194
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
195
|
-
return
|
|
195
|
+
return de_CommandError(output, context);
|
|
196
196
|
}
|
|
197
197
|
const contents = map({
|
|
198
198
|
$metadata: deserializeMetadata(output),
|
|
@@ -205,43 +205,9 @@ export const de_CreateMonitorCommand = async (output, context) => {
|
|
|
205
205
|
Object.assign(contents, doc);
|
|
206
206
|
return contents;
|
|
207
207
|
};
|
|
208
|
-
const de_CreateMonitorCommandError = async (output, context) => {
|
|
209
|
-
const parsedOutput = {
|
|
210
|
-
...output,
|
|
211
|
-
body: await parseErrorBody(output.body, context),
|
|
212
|
-
};
|
|
213
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
214
|
-
switch (errorCode) {
|
|
215
|
-
case "AccessDeniedException":
|
|
216
|
-
case "com.amazonaws.internetmonitor#AccessDeniedException":
|
|
217
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
218
|
-
case "ConflictException":
|
|
219
|
-
case "com.amazonaws.internetmonitor#ConflictException":
|
|
220
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
221
|
-
case "InternalServerException":
|
|
222
|
-
case "com.amazonaws.internetmonitor#InternalServerException":
|
|
223
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
224
|
-
case "LimitExceededException":
|
|
225
|
-
case "com.amazonaws.internetmonitor#LimitExceededException":
|
|
226
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
227
|
-
case "ThrottlingException":
|
|
228
|
-
case "com.amazonaws.internetmonitor#ThrottlingException":
|
|
229
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
230
|
-
case "ValidationException":
|
|
231
|
-
case "com.amazonaws.internetmonitor#ValidationException":
|
|
232
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
233
|
-
default:
|
|
234
|
-
const parsedBody = parsedOutput.body;
|
|
235
|
-
return throwDefaultError({
|
|
236
|
-
output,
|
|
237
|
-
parsedBody,
|
|
238
|
-
errorCode,
|
|
239
|
-
});
|
|
240
|
-
}
|
|
241
|
-
};
|
|
242
208
|
export const de_DeleteMonitorCommand = async (output, context) => {
|
|
243
209
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
244
|
-
return
|
|
210
|
+
return de_CommandError(output, context);
|
|
245
211
|
}
|
|
246
212
|
const contents = map({
|
|
247
213
|
$metadata: deserializeMetadata(output),
|
|
@@ -249,37 +215,9 @@ export const de_DeleteMonitorCommand = async (output, context) => {
|
|
|
249
215
|
await collectBody(output.body, context);
|
|
250
216
|
return contents;
|
|
251
217
|
};
|
|
252
|
-
const de_DeleteMonitorCommandError = async (output, context) => {
|
|
253
|
-
const parsedOutput = {
|
|
254
|
-
...output,
|
|
255
|
-
body: await parseErrorBody(output.body, context),
|
|
256
|
-
};
|
|
257
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
258
|
-
switch (errorCode) {
|
|
259
|
-
case "AccessDeniedException":
|
|
260
|
-
case "com.amazonaws.internetmonitor#AccessDeniedException":
|
|
261
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
262
|
-
case "InternalServerException":
|
|
263
|
-
case "com.amazonaws.internetmonitor#InternalServerException":
|
|
264
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
265
|
-
case "ThrottlingException":
|
|
266
|
-
case "com.amazonaws.internetmonitor#ThrottlingException":
|
|
267
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
268
|
-
case "ValidationException":
|
|
269
|
-
case "com.amazonaws.internetmonitor#ValidationException":
|
|
270
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
271
|
-
default:
|
|
272
|
-
const parsedBody = parsedOutput.body;
|
|
273
|
-
return throwDefaultError({
|
|
274
|
-
output,
|
|
275
|
-
parsedBody,
|
|
276
|
-
errorCode,
|
|
277
|
-
});
|
|
278
|
-
}
|
|
279
|
-
};
|
|
280
218
|
export const de_GetHealthEventCommand = async (output, context) => {
|
|
281
219
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
282
|
-
return
|
|
220
|
+
return de_CommandError(output, context);
|
|
283
221
|
}
|
|
284
222
|
const contents = map({
|
|
285
223
|
$metadata: deserializeMetadata(output),
|
|
@@ -301,37 +239,9 @@ export const de_GetHealthEventCommand = async (output, context) => {
|
|
|
301
239
|
Object.assign(contents, doc);
|
|
302
240
|
return contents;
|
|
303
241
|
};
|
|
304
|
-
const de_GetHealthEventCommandError = async (output, context) => {
|
|
305
|
-
const parsedOutput = {
|
|
306
|
-
...output,
|
|
307
|
-
body: await parseErrorBody(output.body, context),
|
|
308
|
-
};
|
|
309
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
310
|
-
switch (errorCode) {
|
|
311
|
-
case "AccessDeniedException":
|
|
312
|
-
case "com.amazonaws.internetmonitor#AccessDeniedException":
|
|
313
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
314
|
-
case "InternalServerException":
|
|
315
|
-
case "com.amazonaws.internetmonitor#InternalServerException":
|
|
316
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
317
|
-
case "ThrottlingException":
|
|
318
|
-
case "com.amazonaws.internetmonitor#ThrottlingException":
|
|
319
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
320
|
-
case "ValidationException":
|
|
321
|
-
case "com.amazonaws.internetmonitor#ValidationException":
|
|
322
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
323
|
-
default:
|
|
324
|
-
const parsedBody = parsedOutput.body;
|
|
325
|
-
return throwDefaultError({
|
|
326
|
-
output,
|
|
327
|
-
parsedBody,
|
|
328
|
-
errorCode,
|
|
329
|
-
});
|
|
330
|
-
}
|
|
331
|
-
};
|
|
332
242
|
export const de_GetMonitorCommand = async (output, context) => {
|
|
333
243
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
334
|
-
return
|
|
244
|
+
return de_CommandError(output, context);
|
|
335
245
|
}
|
|
336
246
|
const contents = map({
|
|
337
247
|
$metadata: deserializeMetadata(output),
|
|
@@ -355,37 +265,9 @@ export const de_GetMonitorCommand = async (output, context) => {
|
|
|
355
265
|
Object.assign(contents, doc);
|
|
356
266
|
return contents;
|
|
357
267
|
};
|
|
358
|
-
const de_GetMonitorCommandError = async (output, context) => {
|
|
359
|
-
const parsedOutput = {
|
|
360
|
-
...output,
|
|
361
|
-
body: await parseErrorBody(output.body, context),
|
|
362
|
-
};
|
|
363
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
364
|
-
switch (errorCode) {
|
|
365
|
-
case "AccessDeniedException":
|
|
366
|
-
case "com.amazonaws.internetmonitor#AccessDeniedException":
|
|
367
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
368
|
-
case "InternalServerException":
|
|
369
|
-
case "com.amazonaws.internetmonitor#InternalServerException":
|
|
370
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
371
|
-
case "ThrottlingException":
|
|
372
|
-
case "com.amazonaws.internetmonitor#ThrottlingException":
|
|
373
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
374
|
-
case "ValidationException":
|
|
375
|
-
case "com.amazonaws.internetmonitor#ValidationException":
|
|
376
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
377
|
-
default:
|
|
378
|
-
const parsedBody = parsedOutput.body;
|
|
379
|
-
return throwDefaultError({
|
|
380
|
-
output,
|
|
381
|
-
parsedBody,
|
|
382
|
-
errorCode,
|
|
383
|
-
});
|
|
384
|
-
}
|
|
385
|
-
};
|
|
386
268
|
export const de_GetQueryResultsCommand = async (output, context) => {
|
|
387
269
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
388
|
-
return
|
|
270
|
+
return de_CommandError(output, context);
|
|
389
271
|
}
|
|
390
272
|
const contents = map({
|
|
391
273
|
$metadata: deserializeMetadata(output),
|
|
@@ -399,40 +281,9 @@ export const de_GetQueryResultsCommand = async (output, context) => {
|
|
|
399
281
|
Object.assign(contents, doc);
|
|
400
282
|
return contents;
|
|
401
283
|
};
|
|
402
|
-
const de_GetQueryResultsCommandError = async (output, context) => {
|
|
403
|
-
const parsedOutput = {
|
|
404
|
-
...output,
|
|
405
|
-
body: await parseErrorBody(output.body, context),
|
|
406
|
-
};
|
|
407
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
408
|
-
switch (errorCode) {
|
|
409
|
-
case "AccessDeniedException":
|
|
410
|
-
case "com.amazonaws.internetmonitor#AccessDeniedException":
|
|
411
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
412
|
-
case "InternalServerException":
|
|
413
|
-
case "com.amazonaws.internetmonitor#InternalServerException":
|
|
414
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
415
|
-
case "LimitExceededException":
|
|
416
|
-
case "com.amazonaws.internetmonitor#LimitExceededException":
|
|
417
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
418
|
-
case "ThrottlingException":
|
|
419
|
-
case "com.amazonaws.internetmonitor#ThrottlingException":
|
|
420
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
421
|
-
case "ValidationException":
|
|
422
|
-
case "com.amazonaws.internetmonitor#ValidationException":
|
|
423
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
424
|
-
default:
|
|
425
|
-
const parsedBody = parsedOutput.body;
|
|
426
|
-
return throwDefaultError({
|
|
427
|
-
output,
|
|
428
|
-
parsedBody,
|
|
429
|
-
errorCode,
|
|
430
|
-
});
|
|
431
|
-
}
|
|
432
|
-
};
|
|
433
284
|
export const de_GetQueryStatusCommand = async (output, context) => {
|
|
434
285
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
435
|
-
return
|
|
286
|
+
return de_CommandError(output, context);
|
|
436
287
|
}
|
|
437
288
|
const contents = map({
|
|
438
289
|
$metadata: deserializeMetadata(output),
|
|
@@ -444,40 +295,9 @@ export const de_GetQueryStatusCommand = async (output, context) => {
|
|
|
444
295
|
Object.assign(contents, doc);
|
|
445
296
|
return contents;
|
|
446
297
|
};
|
|
447
|
-
const de_GetQueryStatusCommandError = async (output, context) => {
|
|
448
|
-
const parsedOutput = {
|
|
449
|
-
...output,
|
|
450
|
-
body: await parseErrorBody(output.body, context),
|
|
451
|
-
};
|
|
452
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
453
|
-
switch (errorCode) {
|
|
454
|
-
case "AccessDeniedException":
|
|
455
|
-
case "com.amazonaws.internetmonitor#AccessDeniedException":
|
|
456
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
457
|
-
case "InternalServerException":
|
|
458
|
-
case "com.amazonaws.internetmonitor#InternalServerException":
|
|
459
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
460
|
-
case "LimitExceededException":
|
|
461
|
-
case "com.amazonaws.internetmonitor#LimitExceededException":
|
|
462
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
463
|
-
case "ThrottlingException":
|
|
464
|
-
case "com.amazonaws.internetmonitor#ThrottlingException":
|
|
465
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
466
|
-
case "ValidationException":
|
|
467
|
-
case "com.amazonaws.internetmonitor#ValidationException":
|
|
468
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
469
|
-
default:
|
|
470
|
-
const parsedBody = parsedOutput.body;
|
|
471
|
-
return throwDefaultError({
|
|
472
|
-
output,
|
|
473
|
-
parsedBody,
|
|
474
|
-
errorCode,
|
|
475
|
-
});
|
|
476
|
-
}
|
|
477
|
-
};
|
|
478
298
|
export const de_ListHealthEventsCommand = async (output, context) => {
|
|
479
299
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
480
|
-
return
|
|
300
|
+
return de_CommandError(output, context);
|
|
481
301
|
}
|
|
482
302
|
const contents = map({
|
|
483
303
|
$metadata: deserializeMetadata(output),
|
|
@@ -490,37 +310,9 @@ export const de_ListHealthEventsCommand = async (output, context) => {
|
|
|
490
310
|
Object.assign(contents, doc);
|
|
491
311
|
return contents;
|
|
492
312
|
};
|
|
493
|
-
const de_ListHealthEventsCommandError = async (output, context) => {
|
|
494
|
-
const parsedOutput = {
|
|
495
|
-
...output,
|
|
496
|
-
body: await parseErrorBody(output.body, context),
|
|
497
|
-
};
|
|
498
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
499
|
-
switch (errorCode) {
|
|
500
|
-
case "AccessDeniedException":
|
|
501
|
-
case "com.amazonaws.internetmonitor#AccessDeniedException":
|
|
502
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
503
|
-
case "InternalServerException":
|
|
504
|
-
case "com.amazonaws.internetmonitor#InternalServerException":
|
|
505
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
506
|
-
case "ThrottlingException":
|
|
507
|
-
case "com.amazonaws.internetmonitor#ThrottlingException":
|
|
508
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
509
|
-
case "ValidationException":
|
|
510
|
-
case "com.amazonaws.internetmonitor#ValidationException":
|
|
511
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
512
|
-
default:
|
|
513
|
-
const parsedBody = parsedOutput.body;
|
|
514
|
-
return throwDefaultError({
|
|
515
|
-
output,
|
|
516
|
-
parsedBody,
|
|
517
|
-
errorCode,
|
|
518
|
-
});
|
|
519
|
-
}
|
|
520
|
-
};
|
|
521
313
|
export const de_ListMonitorsCommand = async (output, context) => {
|
|
522
314
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
523
|
-
return
|
|
315
|
+
return de_CommandError(output, context);
|
|
524
316
|
}
|
|
525
317
|
const contents = map({
|
|
526
318
|
$metadata: deserializeMetadata(output),
|
|
@@ -533,37 +325,9 @@ export const de_ListMonitorsCommand = async (output, context) => {
|
|
|
533
325
|
Object.assign(contents, doc);
|
|
534
326
|
return contents;
|
|
535
327
|
};
|
|
536
|
-
const de_ListMonitorsCommandError = 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 "AccessDeniedException":
|
|
544
|
-
case "com.amazonaws.internetmonitor#AccessDeniedException":
|
|
545
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
546
|
-
case "InternalServerException":
|
|
547
|
-
case "com.amazonaws.internetmonitor#InternalServerException":
|
|
548
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
549
|
-
case "ThrottlingException":
|
|
550
|
-
case "com.amazonaws.internetmonitor#ThrottlingException":
|
|
551
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
552
|
-
case "ValidationException":
|
|
553
|
-
case "com.amazonaws.internetmonitor#ValidationException":
|
|
554
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
555
|
-
default:
|
|
556
|
-
const parsedBody = parsedOutput.body;
|
|
557
|
-
return throwDefaultError({
|
|
558
|
-
output,
|
|
559
|
-
parsedBody,
|
|
560
|
-
errorCode,
|
|
561
|
-
});
|
|
562
|
-
}
|
|
563
|
-
};
|
|
564
328
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
565
329
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
566
|
-
return
|
|
330
|
+
return de_CommandError(output, context);
|
|
567
331
|
}
|
|
568
332
|
const contents = map({
|
|
569
333
|
$metadata: deserializeMetadata(output),
|
|
@@ -575,40 +339,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
575
339
|
Object.assign(contents, doc);
|
|
576
340
|
return contents;
|
|
577
341
|
};
|
|
578
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
579
|
-
const parsedOutput = {
|
|
580
|
-
...output,
|
|
581
|
-
body: await parseErrorBody(output.body, context),
|
|
582
|
-
};
|
|
583
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
584
|
-
switch (errorCode) {
|
|
585
|
-
case "AccessDeniedException":
|
|
586
|
-
case "com.amazonaws.internetmonitor#AccessDeniedException":
|
|
587
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
588
|
-
case "BadRequestException":
|
|
589
|
-
case "com.amazonaws.internetmonitor#BadRequestException":
|
|
590
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
591
|
-
case "InternalServerErrorException":
|
|
592
|
-
case "com.amazonaws.internetmonitor#InternalServerErrorException":
|
|
593
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
594
|
-
case "NotFoundException":
|
|
595
|
-
case "com.amazonaws.internetmonitor#NotFoundException":
|
|
596
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
597
|
-
case "TooManyRequestsException":
|
|
598
|
-
case "com.amazonaws.internetmonitor#TooManyRequestsException":
|
|
599
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
600
|
-
default:
|
|
601
|
-
const parsedBody = parsedOutput.body;
|
|
602
|
-
return throwDefaultError({
|
|
603
|
-
output,
|
|
604
|
-
parsedBody,
|
|
605
|
-
errorCode,
|
|
606
|
-
});
|
|
607
|
-
}
|
|
608
|
-
};
|
|
609
342
|
export const de_StartQueryCommand = async (output, context) => {
|
|
610
343
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
611
|
-
return
|
|
344
|
+
return de_CommandError(output, context);
|
|
612
345
|
}
|
|
613
346
|
const contents = map({
|
|
614
347
|
$metadata: deserializeMetadata(output),
|
|
@@ -620,40 +353,9 @@ export const de_StartQueryCommand = async (output, context) => {
|
|
|
620
353
|
Object.assign(contents, doc);
|
|
621
354
|
return contents;
|
|
622
355
|
};
|
|
623
|
-
const de_StartQueryCommandError = async (output, context) => {
|
|
624
|
-
const parsedOutput = {
|
|
625
|
-
...output,
|
|
626
|
-
body: await parseErrorBody(output.body, context),
|
|
627
|
-
};
|
|
628
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
629
|
-
switch (errorCode) {
|
|
630
|
-
case "AccessDeniedException":
|
|
631
|
-
case "com.amazonaws.internetmonitor#AccessDeniedException":
|
|
632
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
633
|
-
case "InternalServerException":
|
|
634
|
-
case "com.amazonaws.internetmonitor#InternalServerException":
|
|
635
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
636
|
-
case "LimitExceededException":
|
|
637
|
-
case "com.amazonaws.internetmonitor#LimitExceededException":
|
|
638
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
639
|
-
case "ThrottlingException":
|
|
640
|
-
case "com.amazonaws.internetmonitor#ThrottlingException":
|
|
641
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
642
|
-
case "ValidationException":
|
|
643
|
-
case "com.amazonaws.internetmonitor#ValidationException":
|
|
644
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
645
|
-
default:
|
|
646
|
-
const parsedBody = parsedOutput.body;
|
|
647
|
-
return throwDefaultError({
|
|
648
|
-
output,
|
|
649
|
-
parsedBody,
|
|
650
|
-
errorCode,
|
|
651
|
-
});
|
|
652
|
-
}
|
|
653
|
-
};
|
|
654
356
|
export const de_StopQueryCommand = async (output, context) => {
|
|
655
357
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
656
|
-
return
|
|
358
|
+
return de_CommandError(output, context);
|
|
657
359
|
}
|
|
658
360
|
const contents = map({
|
|
659
361
|
$metadata: deserializeMetadata(output),
|
|
@@ -661,40 +363,9 @@ export const de_StopQueryCommand = async (output, context) => {
|
|
|
661
363
|
await collectBody(output.body, context);
|
|
662
364
|
return contents;
|
|
663
365
|
};
|
|
664
|
-
const de_StopQueryCommandError = async (output, context) => {
|
|
665
|
-
const parsedOutput = {
|
|
666
|
-
...output,
|
|
667
|
-
body: await parseErrorBody(output.body, context),
|
|
668
|
-
};
|
|
669
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
670
|
-
switch (errorCode) {
|
|
671
|
-
case "AccessDeniedException":
|
|
672
|
-
case "com.amazonaws.internetmonitor#AccessDeniedException":
|
|
673
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
674
|
-
case "InternalServerException":
|
|
675
|
-
case "com.amazonaws.internetmonitor#InternalServerException":
|
|
676
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
677
|
-
case "LimitExceededException":
|
|
678
|
-
case "com.amazonaws.internetmonitor#LimitExceededException":
|
|
679
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
680
|
-
case "ThrottlingException":
|
|
681
|
-
case "com.amazonaws.internetmonitor#ThrottlingException":
|
|
682
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
683
|
-
case "ValidationException":
|
|
684
|
-
case "com.amazonaws.internetmonitor#ValidationException":
|
|
685
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
686
|
-
default:
|
|
687
|
-
const parsedBody = parsedOutput.body;
|
|
688
|
-
return throwDefaultError({
|
|
689
|
-
output,
|
|
690
|
-
parsedBody,
|
|
691
|
-
errorCode,
|
|
692
|
-
});
|
|
693
|
-
}
|
|
694
|
-
};
|
|
695
366
|
export const de_TagResourceCommand = async (output, context) => {
|
|
696
367
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
697
|
-
return
|
|
368
|
+
return de_CommandError(output, context);
|
|
698
369
|
}
|
|
699
370
|
const contents = map({
|
|
700
371
|
$metadata: deserializeMetadata(output),
|
|
@@ -702,40 +373,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
702
373
|
await collectBody(output.body, context);
|
|
703
374
|
return contents;
|
|
704
375
|
};
|
|
705
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
706
|
-
const parsedOutput = {
|
|
707
|
-
...output,
|
|
708
|
-
body: await parseErrorBody(output.body, context),
|
|
709
|
-
};
|
|
710
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
711
|
-
switch (errorCode) {
|
|
712
|
-
case "AccessDeniedException":
|
|
713
|
-
case "com.amazonaws.internetmonitor#AccessDeniedException":
|
|
714
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
715
|
-
case "BadRequestException":
|
|
716
|
-
case "com.amazonaws.internetmonitor#BadRequestException":
|
|
717
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
718
|
-
case "InternalServerErrorException":
|
|
719
|
-
case "com.amazonaws.internetmonitor#InternalServerErrorException":
|
|
720
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
721
|
-
case "NotFoundException":
|
|
722
|
-
case "com.amazonaws.internetmonitor#NotFoundException":
|
|
723
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
724
|
-
case "TooManyRequestsException":
|
|
725
|
-
case "com.amazonaws.internetmonitor#TooManyRequestsException":
|
|
726
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
727
|
-
default:
|
|
728
|
-
const parsedBody = parsedOutput.body;
|
|
729
|
-
return throwDefaultError({
|
|
730
|
-
output,
|
|
731
|
-
parsedBody,
|
|
732
|
-
errorCode,
|
|
733
|
-
});
|
|
734
|
-
}
|
|
735
|
-
};
|
|
736
376
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
737
377
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
738
|
-
return
|
|
378
|
+
return de_CommandError(output, context);
|
|
739
379
|
}
|
|
740
380
|
const contents = map({
|
|
741
381
|
$metadata: deserializeMetadata(output),
|
|
@@ -743,40 +383,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
743
383
|
await collectBody(output.body, context);
|
|
744
384
|
return contents;
|
|
745
385
|
};
|
|
746
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
747
|
-
const parsedOutput = {
|
|
748
|
-
...output,
|
|
749
|
-
body: await parseErrorBody(output.body, context),
|
|
750
|
-
};
|
|
751
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
752
|
-
switch (errorCode) {
|
|
753
|
-
case "AccessDeniedException":
|
|
754
|
-
case "com.amazonaws.internetmonitor#AccessDeniedException":
|
|
755
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
756
|
-
case "BadRequestException":
|
|
757
|
-
case "com.amazonaws.internetmonitor#BadRequestException":
|
|
758
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
759
|
-
case "InternalServerErrorException":
|
|
760
|
-
case "com.amazonaws.internetmonitor#InternalServerErrorException":
|
|
761
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
762
|
-
case "NotFoundException":
|
|
763
|
-
case "com.amazonaws.internetmonitor#NotFoundException":
|
|
764
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
765
|
-
case "TooManyRequestsException":
|
|
766
|
-
case "com.amazonaws.internetmonitor#TooManyRequestsException":
|
|
767
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
768
|
-
default:
|
|
769
|
-
const parsedBody = parsedOutput.body;
|
|
770
|
-
return throwDefaultError({
|
|
771
|
-
output,
|
|
772
|
-
parsedBody,
|
|
773
|
-
errorCode,
|
|
774
|
-
});
|
|
775
|
-
}
|
|
776
|
-
};
|
|
777
386
|
export const de_UpdateMonitorCommand = async (output, context) => {
|
|
778
387
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
779
|
-
return
|
|
388
|
+
return de_CommandError(output, context);
|
|
780
389
|
}
|
|
781
390
|
const contents = map({
|
|
782
391
|
$metadata: deserializeMetadata(output),
|
|
@@ -789,7 +398,7 @@ export const de_UpdateMonitorCommand = async (output, context) => {
|
|
|
789
398
|
Object.assign(contents, doc);
|
|
790
399
|
return contents;
|
|
791
400
|
};
|
|
792
|
-
const
|
|
401
|
+
const de_CommandError = async (output, context) => {
|
|
793
402
|
const parsedOutput = {
|
|
794
403
|
...output,
|
|
795
404
|
body: await parseErrorBody(output.body, context),
|
|
@@ -799,21 +408,36 @@ const de_UpdateMonitorCommandError = async (output, context) => {
|
|
|
799
408
|
case "AccessDeniedException":
|
|
800
409
|
case "com.amazonaws.internetmonitor#AccessDeniedException":
|
|
801
410
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
411
|
+
case "ConflictException":
|
|
412
|
+
case "com.amazonaws.internetmonitor#ConflictException":
|
|
413
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
802
414
|
case "InternalServerException":
|
|
803
415
|
case "com.amazonaws.internetmonitor#InternalServerException":
|
|
804
416
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
805
417
|
case "LimitExceededException":
|
|
806
418
|
case "com.amazonaws.internetmonitor#LimitExceededException":
|
|
807
419
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
808
|
-
case "ResourceNotFoundException":
|
|
809
|
-
case "com.amazonaws.internetmonitor#ResourceNotFoundException":
|
|
810
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
811
420
|
case "ThrottlingException":
|
|
812
421
|
case "com.amazonaws.internetmonitor#ThrottlingException":
|
|
813
422
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
814
423
|
case "ValidationException":
|
|
815
424
|
case "com.amazonaws.internetmonitor#ValidationException":
|
|
816
425
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
426
|
+
case "BadRequestException":
|
|
427
|
+
case "com.amazonaws.internetmonitor#BadRequestException":
|
|
428
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
429
|
+
case "InternalServerErrorException":
|
|
430
|
+
case "com.amazonaws.internetmonitor#InternalServerErrorException":
|
|
431
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
432
|
+
case "NotFoundException":
|
|
433
|
+
case "com.amazonaws.internetmonitor#NotFoundException":
|
|
434
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
435
|
+
case "TooManyRequestsException":
|
|
436
|
+
case "com.amazonaws.internetmonitor#TooManyRequestsException":
|
|
437
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
438
|
+
case "ResourceNotFoundException":
|
|
439
|
+
case "com.amazonaws.internetmonitor#ResourceNotFoundException":
|
|
440
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
817
441
|
default:
|
|
818
442
|
const parsedBody = parsedOutput.body;
|
|
819
443
|
return throwDefaultError({
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-internetmonitor",
|
|
3
3
|
"description": "AWS SDK for JavaScript Internetmonitor Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.507.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-internetmonitor",
|
|
@@ -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.507.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",
|