@aws-sdk/client-forecast 3.141.0 → 3.150.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/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_json1_1.js +255 -456
- package/dist-es/protocols/Aws_json1_1.js +409 -457
- package/package.json +11 -6
|
@@ -536,7 +536,6 @@ const deserializeAws_json1_1CreateAutoPredictorCommandError = async (output, con
|
|
|
536
536
|
...output,
|
|
537
537
|
body: await parseBody(output.body, context),
|
|
538
538
|
};
|
|
539
|
-
let response;
|
|
540
539
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
541
540
|
switch (errorCode) {
|
|
542
541
|
case "InvalidInputException":
|
|
@@ -556,14 +555,12 @@ const deserializeAws_json1_1CreateAutoPredictorCommandError = async (output, con
|
|
|
556
555
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
557
556
|
default:
|
|
558
557
|
const parsedBody = parsedOutput.body;
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
$metadata,
|
|
558
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
559
|
+
output,
|
|
560
|
+
parsedBody,
|
|
561
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
562
|
+
errorCode,
|
|
565
563
|
});
|
|
566
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
567
564
|
}
|
|
568
565
|
};
|
|
569
566
|
const deserializeAws_json1_1CreateDatasetCommand = async (output, context) => {
|
|
@@ -585,7 +582,6 @@ const deserializeAws_json1_1CreateDatasetCommandError = async (output, context)
|
|
|
585
582
|
...output,
|
|
586
583
|
body: await parseBody(output.body, context),
|
|
587
584
|
};
|
|
588
|
-
let response;
|
|
589
585
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
590
586
|
switch (errorCode) {
|
|
591
587
|
case "InvalidInputException":
|
|
@@ -599,14 +595,12 @@ const deserializeAws_json1_1CreateDatasetCommandError = async (output, context)
|
|
|
599
595
|
throw await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
600
596
|
default:
|
|
601
597
|
const parsedBody = parsedOutput.body;
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
$metadata,
|
|
598
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
599
|
+
output,
|
|
600
|
+
parsedBody,
|
|
601
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
602
|
+
errorCode,
|
|
608
603
|
});
|
|
609
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
610
604
|
}
|
|
611
605
|
};
|
|
612
606
|
const deserializeAws_json1_1CreateDatasetGroupCommand = async (output, context) => {
|
|
@@ -628,7 +622,6 @@ const deserializeAws_json1_1CreateDatasetGroupCommandError = async (output, cont
|
|
|
628
622
|
...output,
|
|
629
623
|
body: await parseBody(output.body, context),
|
|
630
624
|
};
|
|
631
|
-
let response;
|
|
632
625
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
633
626
|
switch (errorCode) {
|
|
634
627
|
case "InvalidInputException":
|
|
@@ -648,14 +641,12 @@ const deserializeAws_json1_1CreateDatasetGroupCommandError = async (output, cont
|
|
|
648
641
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
649
642
|
default:
|
|
650
643
|
const parsedBody = parsedOutput.body;
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
$metadata,
|
|
644
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
645
|
+
output,
|
|
646
|
+
parsedBody,
|
|
647
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
648
|
+
errorCode,
|
|
657
649
|
});
|
|
658
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
659
650
|
}
|
|
660
651
|
};
|
|
661
652
|
const deserializeAws_json1_1CreateDatasetImportJobCommand = async (output, context) => {
|
|
@@ -677,7 +668,6 @@ const deserializeAws_json1_1CreateDatasetImportJobCommandError = async (output,
|
|
|
677
668
|
...output,
|
|
678
669
|
body: await parseBody(output.body, context),
|
|
679
670
|
};
|
|
680
|
-
let response;
|
|
681
671
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
682
672
|
switch (errorCode) {
|
|
683
673
|
case "InvalidInputException":
|
|
@@ -697,14 +687,12 @@ const deserializeAws_json1_1CreateDatasetImportJobCommandError = async (output,
|
|
|
697
687
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
698
688
|
default:
|
|
699
689
|
const parsedBody = parsedOutput.body;
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
$metadata,
|
|
690
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
691
|
+
output,
|
|
692
|
+
parsedBody,
|
|
693
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
694
|
+
errorCode,
|
|
706
695
|
});
|
|
707
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
708
696
|
}
|
|
709
697
|
};
|
|
710
698
|
const deserializeAws_json1_1CreateExplainabilityCommand = async (output, context) => {
|
|
@@ -726,7 +714,6 @@ const deserializeAws_json1_1CreateExplainabilityCommandError = async (output, co
|
|
|
726
714
|
...output,
|
|
727
715
|
body: await parseBody(output.body, context),
|
|
728
716
|
};
|
|
729
|
-
let response;
|
|
730
717
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
731
718
|
switch (errorCode) {
|
|
732
719
|
case "InvalidInputException":
|
|
@@ -746,14 +733,12 @@ const deserializeAws_json1_1CreateExplainabilityCommandError = async (output, co
|
|
|
746
733
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
747
734
|
default:
|
|
748
735
|
const parsedBody = parsedOutput.body;
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
$metadata,
|
|
736
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
737
|
+
output,
|
|
738
|
+
parsedBody,
|
|
739
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
740
|
+
errorCode,
|
|
755
741
|
});
|
|
756
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
757
742
|
}
|
|
758
743
|
};
|
|
759
744
|
const deserializeAws_json1_1CreateExplainabilityExportCommand = async (output, context) => {
|
|
@@ -775,7 +760,6 @@ const deserializeAws_json1_1CreateExplainabilityExportCommandError = async (outp
|
|
|
775
760
|
...output,
|
|
776
761
|
body: await parseBody(output.body, context),
|
|
777
762
|
};
|
|
778
|
-
let response;
|
|
779
763
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
780
764
|
switch (errorCode) {
|
|
781
765
|
case "InvalidInputException":
|
|
@@ -795,14 +779,12 @@ const deserializeAws_json1_1CreateExplainabilityExportCommandError = async (outp
|
|
|
795
779
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
796
780
|
default:
|
|
797
781
|
const parsedBody = parsedOutput.body;
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
$metadata,
|
|
782
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
783
|
+
output,
|
|
784
|
+
parsedBody,
|
|
785
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
786
|
+
errorCode,
|
|
804
787
|
});
|
|
805
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
806
788
|
}
|
|
807
789
|
};
|
|
808
790
|
const deserializeAws_json1_1CreateForecastCommand = async (output, context) => {
|
|
@@ -824,7 +806,6 @@ const deserializeAws_json1_1CreateForecastCommandError = async (output, context)
|
|
|
824
806
|
...output,
|
|
825
807
|
body: await parseBody(output.body, context),
|
|
826
808
|
};
|
|
827
|
-
let response;
|
|
828
809
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
829
810
|
switch (errorCode) {
|
|
830
811
|
case "InvalidInputException":
|
|
@@ -844,14 +825,12 @@ const deserializeAws_json1_1CreateForecastCommandError = async (output, context)
|
|
|
844
825
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
845
826
|
default:
|
|
846
827
|
const parsedBody = parsedOutput.body;
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
$metadata,
|
|
828
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
829
|
+
output,
|
|
830
|
+
parsedBody,
|
|
831
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
832
|
+
errorCode,
|
|
853
833
|
});
|
|
854
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
855
834
|
}
|
|
856
835
|
};
|
|
857
836
|
const deserializeAws_json1_1CreateForecastExportJobCommand = async (output, context) => {
|
|
@@ -873,7 +852,6 @@ const deserializeAws_json1_1CreateForecastExportJobCommandError = async (output,
|
|
|
873
852
|
...output,
|
|
874
853
|
body: await parseBody(output.body, context),
|
|
875
854
|
};
|
|
876
|
-
let response;
|
|
877
855
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
878
856
|
switch (errorCode) {
|
|
879
857
|
case "InvalidInputException":
|
|
@@ -893,14 +871,12 @@ const deserializeAws_json1_1CreateForecastExportJobCommandError = async (output,
|
|
|
893
871
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
894
872
|
default:
|
|
895
873
|
const parsedBody = parsedOutput.body;
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
$metadata,
|
|
874
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
875
|
+
output,
|
|
876
|
+
parsedBody,
|
|
877
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
878
|
+
errorCode,
|
|
902
879
|
});
|
|
903
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
904
880
|
}
|
|
905
881
|
};
|
|
906
882
|
const deserializeAws_json1_1CreateMonitorCommand = async (output, context) => {
|
|
@@ -922,7 +898,6 @@ const deserializeAws_json1_1CreateMonitorCommandError = async (output, context)
|
|
|
922
898
|
...output,
|
|
923
899
|
body: await parseBody(output.body, context),
|
|
924
900
|
};
|
|
925
|
-
let response;
|
|
926
901
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
927
902
|
switch (errorCode) {
|
|
928
903
|
case "InvalidInputException":
|
|
@@ -942,14 +917,12 @@ const deserializeAws_json1_1CreateMonitorCommandError = async (output, context)
|
|
|
942
917
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
943
918
|
default:
|
|
944
919
|
const parsedBody = parsedOutput.body;
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
$metadata,
|
|
920
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
921
|
+
output,
|
|
922
|
+
parsedBody,
|
|
923
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
924
|
+
errorCode,
|
|
951
925
|
});
|
|
952
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
953
926
|
}
|
|
954
927
|
};
|
|
955
928
|
const deserializeAws_json1_1CreatePredictorCommand = async (output, context) => {
|
|
@@ -971,7 +944,6 @@ const deserializeAws_json1_1CreatePredictorCommandError = async (output, context
|
|
|
971
944
|
...output,
|
|
972
945
|
body: await parseBody(output.body, context),
|
|
973
946
|
};
|
|
974
|
-
let response;
|
|
975
947
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
976
948
|
switch (errorCode) {
|
|
977
949
|
case "InvalidInputException":
|
|
@@ -991,14 +963,12 @@ const deserializeAws_json1_1CreatePredictorCommandError = async (output, context
|
|
|
991
963
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
992
964
|
default:
|
|
993
965
|
const parsedBody = parsedOutput.body;
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
$metadata,
|
|
966
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
967
|
+
output,
|
|
968
|
+
parsedBody,
|
|
969
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
970
|
+
errorCode,
|
|
1000
971
|
});
|
|
1001
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1002
972
|
}
|
|
1003
973
|
};
|
|
1004
974
|
const deserializeAws_json1_1CreatePredictorBacktestExportJobCommand = async (output, context) => {
|
|
@@ -1020,7 +990,6 @@ const deserializeAws_json1_1CreatePredictorBacktestExportJobCommandError = async
|
|
|
1020
990
|
...output,
|
|
1021
991
|
body: await parseBody(output.body, context),
|
|
1022
992
|
};
|
|
1023
|
-
let response;
|
|
1024
993
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1025
994
|
switch (errorCode) {
|
|
1026
995
|
case "InvalidInputException":
|
|
@@ -1040,14 +1009,12 @@ const deserializeAws_json1_1CreatePredictorBacktestExportJobCommandError = async
|
|
|
1040
1009
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1041
1010
|
default:
|
|
1042
1011
|
const parsedBody = parsedOutput.body;
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
$metadata,
|
|
1012
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1013
|
+
output,
|
|
1014
|
+
parsedBody,
|
|
1015
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
1016
|
+
errorCode,
|
|
1049
1017
|
});
|
|
1050
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1051
1018
|
}
|
|
1052
1019
|
};
|
|
1053
1020
|
const deserializeAws_json1_1DeleteDatasetCommand = async (output, context) => {
|
|
@@ -1066,7 +1033,6 @@ const deserializeAws_json1_1DeleteDatasetCommandError = async (output, context)
|
|
|
1066
1033
|
...output,
|
|
1067
1034
|
body: await parseBody(output.body, context),
|
|
1068
1035
|
};
|
|
1069
|
-
let response;
|
|
1070
1036
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1071
1037
|
switch (errorCode) {
|
|
1072
1038
|
case "InvalidInputException":
|
|
@@ -1080,14 +1046,12 @@ const deserializeAws_json1_1DeleteDatasetCommandError = async (output, context)
|
|
|
1080
1046
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1081
1047
|
default:
|
|
1082
1048
|
const parsedBody = parsedOutput.body;
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
$metadata,
|
|
1049
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1050
|
+
output,
|
|
1051
|
+
parsedBody,
|
|
1052
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
1053
|
+
errorCode,
|
|
1089
1054
|
});
|
|
1090
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1091
1055
|
}
|
|
1092
1056
|
};
|
|
1093
1057
|
const deserializeAws_json1_1DeleteDatasetGroupCommand = async (output, context) => {
|
|
@@ -1106,7 +1070,6 @@ const deserializeAws_json1_1DeleteDatasetGroupCommandError = async (output, cont
|
|
|
1106
1070
|
...output,
|
|
1107
1071
|
body: await parseBody(output.body, context),
|
|
1108
1072
|
};
|
|
1109
|
-
let response;
|
|
1110
1073
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1111
1074
|
switch (errorCode) {
|
|
1112
1075
|
case "InvalidInputException":
|
|
@@ -1120,14 +1083,12 @@ const deserializeAws_json1_1DeleteDatasetGroupCommandError = async (output, cont
|
|
|
1120
1083
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1121
1084
|
default:
|
|
1122
1085
|
const parsedBody = parsedOutput.body;
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
$metadata,
|
|
1086
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1087
|
+
output,
|
|
1088
|
+
parsedBody,
|
|
1089
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
1090
|
+
errorCode,
|
|
1129
1091
|
});
|
|
1130
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1131
1092
|
}
|
|
1132
1093
|
};
|
|
1133
1094
|
const deserializeAws_json1_1DeleteDatasetImportJobCommand = async (output, context) => {
|
|
@@ -1146,7 +1107,6 @@ const deserializeAws_json1_1DeleteDatasetImportJobCommandError = async (output,
|
|
|
1146
1107
|
...output,
|
|
1147
1108
|
body: await parseBody(output.body, context),
|
|
1148
1109
|
};
|
|
1149
|
-
let response;
|
|
1150
1110
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1151
1111
|
switch (errorCode) {
|
|
1152
1112
|
case "InvalidInputException":
|
|
@@ -1160,14 +1120,12 @@ const deserializeAws_json1_1DeleteDatasetImportJobCommandError = async (output,
|
|
|
1160
1120
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1161
1121
|
default:
|
|
1162
1122
|
const parsedBody = parsedOutput.body;
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
$metadata,
|
|
1123
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1124
|
+
output,
|
|
1125
|
+
parsedBody,
|
|
1126
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
1127
|
+
errorCode,
|
|
1169
1128
|
});
|
|
1170
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1171
1129
|
}
|
|
1172
1130
|
};
|
|
1173
1131
|
const deserializeAws_json1_1DeleteExplainabilityCommand = async (output, context) => {
|
|
@@ -1186,7 +1144,6 @@ const deserializeAws_json1_1DeleteExplainabilityCommandError = async (output, co
|
|
|
1186
1144
|
...output,
|
|
1187
1145
|
body: await parseBody(output.body, context),
|
|
1188
1146
|
};
|
|
1189
|
-
let response;
|
|
1190
1147
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1191
1148
|
switch (errorCode) {
|
|
1192
1149
|
case "InvalidInputException":
|
|
@@ -1200,14 +1157,12 @@ const deserializeAws_json1_1DeleteExplainabilityCommandError = async (output, co
|
|
|
1200
1157
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1201
1158
|
default:
|
|
1202
1159
|
const parsedBody = parsedOutput.body;
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
$metadata,
|
|
1160
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1161
|
+
output,
|
|
1162
|
+
parsedBody,
|
|
1163
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
1164
|
+
errorCode,
|
|
1209
1165
|
});
|
|
1210
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1211
1166
|
}
|
|
1212
1167
|
};
|
|
1213
1168
|
const deserializeAws_json1_1DeleteExplainabilityExportCommand = async (output, context) => {
|
|
@@ -1226,7 +1181,6 @@ const deserializeAws_json1_1DeleteExplainabilityExportCommandError = async (outp
|
|
|
1226
1181
|
...output,
|
|
1227
1182
|
body: await parseBody(output.body, context),
|
|
1228
1183
|
};
|
|
1229
|
-
let response;
|
|
1230
1184
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1231
1185
|
switch (errorCode) {
|
|
1232
1186
|
case "InvalidInputException":
|
|
@@ -1240,14 +1194,12 @@ const deserializeAws_json1_1DeleteExplainabilityExportCommandError = async (outp
|
|
|
1240
1194
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1241
1195
|
default:
|
|
1242
1196
|
const parsedBody = parsedOutput.body;
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
$metadata,
|
|
1197
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1198
|
+
output,
|
|
1199
|
+
parsedBody,
|
|
1200
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
1201
|
+
errorCode,
|
|
1249
1202
|
});
|
|
1250
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1251
1203
|
}
|
|
1252
1204
|
};
|
|
1253
1205
|
const deserializeAws_json1_1DeleteForecastCommand = async (output, context) => {
|
|
@@ -1266,7 +1218,6 @@ const deserializeAws_json1_1DeleteForecastCommandError = async (output, context)
|
|
|
1266
1218
|
...output,
|
|
1267
1219
|
body: await parseBody(output.body, context),
|
|
1268
1220
|
};
|
|
1269
|
-
let response;
|
|
1270
1221
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1271
1222
|
switch (errorCode) {
|
|
1272
1223
|
case "InvalidInputException":
|
|
@@ -1280,14 +1231,12 @@ const deserializeAws_json1_1DeleteForecastCommandError = async (output, context)
|
|
|
1280
1231
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1281
1232
|
default:
|
|
1282
1233
|
const parsedBody = parsedOutput.body;
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
$metadata,
|
|
1234
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1235
|
+
output,
|
|
1236
|
+
parsedBody,
|
|
1237
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
1238
|
+
errorCode,
|
|
1289
1239
|
});
|
|
1290
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1291
1240
|
}
|
|
1292
1241
|
};
|
|
1293
1242
|
const deserializeAws_json1_1DeleteForecastExportJobCommand = async (output, context) => {
|
|
@@ -1306,7 +1255,6 @@ const deserializeAws_json1_1DeleteForecastExportJobCommandError = async (output,
|
|
|
1306
1255
|
...output,
|
|
1307
1256
|
body: await parseBody(output.body, context),
|
|
1308
1257
|
};
|
|
1309
|
-
let response;
|
|
1310
1258
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1311
1259
|
switch (errorCode) {
|
|
1312
1260
|
case "InvalidInputException":
|
|
@@ -1320,14 +1268,12 @@ const deserializeAws_json1_1DeleteForecastExportJobCommandError = async (output,
|
|
|
1320
1268
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1321
1269
|
default:
|
|
1322
1270
|
const parsedBody = parsedOutput.body;
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
$metadata,
|
|
1271
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1272
|
+
output,
|
|
1273
|
+
parsedBody,
|
|
1274
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
1275
|
+
errorCode,
|
|
1329
1276
|
});
|
|
1330
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1331
1277
|
}
|
|
1332
1278
|
};
|
|
1333
1279
|
const deserializeAws_json1_1DeleteMonitorCommand = async (output, context) => {
|
|
@@ -1346,7 +1292,6 @@ const deserializeAws_json1_1DeleteMonitorCommandError = async (output, context)
|
|
|
1346
1292
|
...output,
|
|
1347
1293
|
body: await parseBody(output.body, context),
|
|
1348
1294
|
};
|
|
1349
|
-
let response;
|
|
1350
1295
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1351
1296
|
switch (errorCode) {
|
|
1352
1297
|
case "InvalidInputException":
|
|
@@ -1360,14 +1305,12 @@ const deserializeAws_json1_1DeleteMonitorCommandError = async (output, context)
|
|
|
1360
1305
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1361
1306
|
default:
|
|
1362
1307
|
const parsedBody = parsedOutput.body;
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
$metadata,
|
|
1308
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1309
|
+
output,
|
|
1310
|
+
parsedBody,
|
|
1311
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
1312
|
+
errorCode,
|
|
1369
1313
|
});
|
|
1370
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1371
1314
|
}
|
|
1372
1315
|
};
|
|
1373
1316
|
const deserializeAws_json1_1DeletePredictorCommand = async (output, context) => {
|
|
@@ -1386,7 +1329,6 @@ const deserializeAws_json1_1DeletePredictorCommandError = async (output, context
|
|
|
1386
1329
|
...output,
|
|
1387
1330
|
body: await parseBody(output.body, context),
|
|
1388
1331
|
};
|
|
1389
|
-
let response;
|
|
1390
1332
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1391
1333
|
switch (errorCode) {
|
|
1392
1334
|
case "InvalidInputException":
|
|
@@ -1400,14 +1342,12 @@ const deserializeAws_json1_1DeletePredictorCommandError = async (output, context
|
|
|
1400
1342
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1401
1343
|
default:
|
|
1402
1344
|
const parsedBody = parsedOutput.body;
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
$metadata,
|
|
1345
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1346
|
+
output,
|
|
1347
|
+
parsedBody,
|
|
1348
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
1349
|
+
errorCode,
|
|
1409
1350
|
});
|
|
1410
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1411
1351
|
}
|
|
1412
1352
|
};
|
|
1413
1353
|
const deserializeAws_json1_1DeletePredictorBacktestExportJobCommand = async (output, context) => {
|
|
@@ -1426,7 +1366,6 @@ const deserializeAws_json1_1DeletePredictorBacktestExportJobCommandError = async
|
|
|
1426
1366
|
...output,
|
|
1427
1367
|
body: await parseBody(output.body, context),
|
|
1428
1368
|
};
|
|
1429
|
-
let response;
|
|
1430
1369
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1431
1370
|
switch (errorCode) {
|
|
1432
1371
|
case "InvalidInputException":
|
|
@@ -1440,14 +1379,12 @@ const deserializeAws_json1_1DeletePredictorBacktestExportJobCommandError = async
|
|
|
1440
1379
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1441
1380
|
default:
|
|
1442
1381
|
const parsedBody = parsedOutput.body;
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
$metadata,
|
|
1382
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1383
|
+
output,
|
|
1384
|
+
parsedBody,
|
|
1385
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
1386
|
+
errorCode,
|
|
1449
1387
|
});
|
|
1450
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1451
1388
|
}
|
|
1452
1389
|
};
|
|
1453
1390
|
const deserializeAws_json1_1DeleteResourceTreeCommand = async (output, context) => {
|
|
@@ -1466,7 +1403,6 @@ const deserializeAws_json1_1DeleteResourceTreeCommandError = async (output, cont
|
|
|
1466
1403
|
...output,
|
|
1467
1404
|
body: await parseBody(output.body, context),
|
|
1468
1405
|
};
|
|
1469
|
-
let response;
|
|
1470
1406
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1471
1407
|
switch (errorCode) {
|
|
1472
1408
|
case "InvalidInputException":
|
|
@@ -1480,14 +1416,12 @@ const deserializeAws_json1_1DeleteResourceTreeCommandError = async (output, cont
|
|
|
1480
1416
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1481
1417
|
default:
|
|
1482
1418
|
const parsedBody = parsedOutput.body;
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
$metadata,
|
|
1419
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1420
|
+
output,
|
|
1421
|
+
parsedBody,
|
|
1422
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
1423
|
+
errorCode,
|
|
1489
1424
|
});
|
|
1490
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1491
1425
|
}
|
|
1492
1426
|
};
|
|
1493
1427
|
const deserializeAws_json1_1DescribeAutoPredictorCommand = async (output, context) => {
|
|
@@ -1509,7 +1443,6 @@ const deserializeAws_json1_1DescribeAutoPredictorCommandError = async (output, c
|
|
|
1509
1443
|
...output,
|
|
1510
1444
|
body: await parseBody(output.body, context),
|
|
1511
1445
|
};
|
|
1512
|
-
let response;
|
|
1513
1446
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1514
1447
|
switch (errorCode) {
|
|
1515
1448
|
case "InvalidInputException":
|
|
@@ -1520,14 +1453,12 @@ const deserializeAws_json1_1DescribeAutoPredictorCommandError = async (output, c
|
|
|
1520
1453
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1521
1454
|
default:
|
|
1522
1455
|
const parsedBody = parsedOutput.body;
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
$metadata,
|
|
1456
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1457
|
+
output,
|
|
1458
|
+
parsedBody,
|
|
1459
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
1460
|
+
errorCode,
|
|
1529
1461
|
});
|
|
1530
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1531
1462
|
}
|
|
1532
1463
|
};
|
|
1533
1464
|
const deserializeAws_json1_1DescribeDatasetCommand = async (output, context) => {
|
|
@@ -1549,7 +1480,6 @@ const deserializeAws_json1_1DescribeDatasetCommandError = async (output, context
|
|
|
1549
1480
|
...output,
|
|
1550
1481
|
body: await parseBody(output.body, context),
|
|
1551
1482
|
};
|
|
1552
|
-
let response;
|
|
1553
1483
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1554
1484
|
switch (errorCode) {
|
|
1555
1485
|
case "InvalidInputException":
|
|
@@ -1560,14 +1490,12 @@ const deserializeAws_json1_1DescribeDatasetCommandError = async (output, context
|
|
|
1560
1490
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1561
1491
|
default:
|
|
1562
1492
|
const parsedBody = parsedOutput.body;
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
$metadata,
|
|
1493
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1494
|
+
output,
|
|
1495
|
+
parsedBody,
|
|
1496
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
1497
|
+
errorCode,
|
|
1569
1498
|
});
|
|
1570
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1571
1499
|
}
|
|
1572
1500
|
};
|
|
1573
1501
|
const deserializeAws_json1_1DescribeDatasetGroupCommand = async (output, context) => {
|
|
@@ -1589,7 +1517,6 @@ const deserializeAws_json1_1DescribeDatasetGroupCommandError = async (output, co
|
|
|
1589
1517
|
...output,
|
|
1590
1518
|
body: await parseBody(output.body, context),
|
|
1591
1519
|
};
|
|
1592
|
-
let response;
|
|
1593
1520
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1594
1521
|
switch (errorCode) {
|
|
1595
1522
|
case "InvalidInputException":
|
|
@@ -1600,14 +1527,12 @@ const deserializeAws_json1_1DescribeDatasetGroupCommandError = async (output, co
|
|
|
1600
1527
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1601
1528
|
default:
|
|
1602
1529
|
const parsedBody = parsedOutput.body;
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
$metadata,
|
|
1530
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1531
|
+
output,
|
|
1532
|
+
parsedBody,
|
|
1533
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
1534
|
+
errorCode,
|
|
1609
1535
|
});
|
|
1610
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1611
1536
|
}
|
|
1612
1537
|
};
|
|
1613
1538
|
const deserializeAws_json1_1DescribeDatasetImportJobCommand = async (output, context) => {
|
|
@@ -1629,7 +1554,6 @@ const deserializeAws_json1_1DescribeDatasetImportJobCommandError = async (output
|
|
|
1629
1554
|
...output,
|
|
1630
1555
|
body: await parseBody(output.body, context),
|
|
1631
1556
|
};
|
|
1632
|
-
let response;
|
|
1633
1557
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1634
1558
|
switch (errorCode) {
|
|
1635
1559
|
case "InvalidInputException":
|
|
@@ -1640,14 +1564,12 @@ const deserializeAws_json1_1DescribeDatasetImportJobCommandError = async (output
|
|
|
1640
1564
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1641
1565
|
default:
|
|
1642
1566
|
const parsedBody = parsedOutput.body;
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
$metadata,
|
|
1567
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1568
|
+
output,
|
|
1569
|
+
parsedBody,
|
|
1570
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
1571
|
+
errorCode,
|
|
1649
1572
|
});
|
|
1650
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1651
1573
|
}
|
|
1652
1574
|
};
|
|
1653
1575
|
const deserializeAws_json1_1DescribeExplainabilityCommand = async (output, context) => {
|
|
@@ -1669,7 +1591,6 @@ const deserializeAws_json1_1DescribeExplainabilityCommandError = async (output,
|
|
|
1669
1591
|
...output,
|
|
1670
1592
|
body: await parseBody(output.body, context),
|
|
1671
1593
|
};
|
|
1672
|
-
let response;
|
|
1673
1594
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1674
1595
|
switch (errorCode) {
|
|
1675
1596
|
case "InvalidInputException":
|
|
@@ -1680,14 +1601,12 @@ const deserializeAws_json1_1DescribeExplainabilityCommandError = async (output,
|
|
|
1680
1601
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1681
1602
|
default:
|
|
1682
1603
|
const parsedBody = parsedOutput.body;
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
$metadata,
|
|
1604
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1605
|
+
output,
|
|
1606
|
+
parsedBody,
|
|
1607
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
1608
|
+
errorCode,
|
|
1689
1609
|
});
|
|
1690
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1691
1610
|
}
|
|
1692
1611
|
};
|
|
1693
1612
|
const deserializeAws_json1_1DescribeExplainabilityExportCommand = async (output, context) => {
|
|
@@ -1709,7 +1628,6 @@ const deserializeAws_json1_1DescribeExplainabilityExportCommandError = async (ou
|
|
|
1709
1628
|
...output,
|
|
1710
1629
|
body: await parseBody(output.body, context),
|
|
1711
1630
|
};
|
|
1712
|
-
let response;
|
|
1713
1631
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1714
1632
|
switch (errorCode) {
|
|
1715
1633
|
case "InvalidInputException":
|
|
@@ -1720,14 +1638,12 @@ const deserializeAws_json1_1DescribeExplainabilityExportCommandError = async (ou
|
|
|
1720
1638
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1721
1639
|
default:
|
|
1722
1640
|
const parsedBody = parsedOutput.body;
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
$metadata,
|
|
1641
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1642
|
+
output,
|
|
1643
|
+
parsedBody,
|
|
1644
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
1645
|
+
errorCode,
|
|
1729
1646
|
});
|
|
1730
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1731
1647
|
}
|
|
1732
1648
|
};
|
|
1733
1649
|
const deserializeAws_json1_1DescribeForecastCommand = async (output, context) => {
|
|
@@ -1749,7 +1665,6 @@ const deserializeAws_json1_1DescribeForecastCommandError = async (output, contex
|
|
|
1749
1665
|
...output,
|
|
1750
1666
|
body: await parseBody(output.body, context),
|
|
1751
1667
|
};
|
|
1752
|
-
let response;
|
|
1753
1668
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1754
1669
|
switch (errorCode) {
|
|
1755
1670
|
case "InvalidInputException":
|
|
@@ -1760,14 +1675,12 @@ const deserializeAws_json1_1DescribeForecastCommandError = async (output, contex
|
|
|
1760
1675
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1761
1676
|
default:
|
|
1762
1677
|
const parsedBody = parsedOutput.body;
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
$metadata,
|
|
1678
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1679
|
+
output,
|
|
1680
|
+
parsedBody,
|
|
1681
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
1682
|
+
errorCode,
|
|
1769
1683
|
});
|
|
1770
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1771
1684
|
}
|
|
1772
1685
|
};
|
|
1773
1686
|
const deserializeAws_json1_1DescribeForecastExportJobCommand = async (output, context) => {
|
|
@@ -1789,7 +1702,6 @@ const deserializeAws_json1_1DescribeForecastExportJobCommandError = async (outpu
|
|
|
1789
1702
|
...output,
|
|
1790
1703
|
body: await parseBody(output.body, context),
|
|
1791
1704
|
};
|
|
1792
|
-
let response;
|
|
1793
1705
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1794
1706
|
switch (errorCode) {
|
|
1795
1707
|
case "InvalidInputException":
|
|
@@ -1800,14 +1712,12 @@ const deserializeAws_json1_1DescribeForecastExportJobCommandError = async (outpu
|
|
|
1800
1712
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1801
1713
|
default:
|
|
1802
1714
|
const parsedBody = parsedOutput.body;
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
$metadata,
|
|
1715
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1716
|
+
output,
|
|
1717
|
+
parsedBody,
|
|
1718
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
1719
|
+
errorCode,
|
|
1809
1720
|
});
|
|
1810
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1811
1721
|
}
|
|
1812
1722
|
};
|
|
1813
1723
|
const deserializeAws_json1_1DescribeMonitorCommand = async (output, context) => {
|
|
@@ -1829,7 +1739,6 @@ const deserializeAws_json1_1DescribeMonitorCommandError = async (output, context
|
|
|
1829
1739
|
...output,
|
|
1830
1740
|
body: await parseBody(output.body, context),
|
|
1831
1741
|
};
|
|
1832
|
-
let response;
|
|
1833
1742
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1834
1743
|
switch (errorCode) {
|
|
1835
1744
|
case "InvalidInputException":
|
|
@@ -1840,14 +1749,12 @@ const deserializeAws_json1_1DescribeMonitorCommandError = async (output, context
|
|
|
1840
1749
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1841
1750
|
default:
|
|
1842
1751
|
const parsedBody = parsedOutput.body;
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
$metadata,
|
|
1752
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1753
|
+
output,
|
|
1754
|
+
parsedBody,
|
|
1755
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
1756
|
+
errorCode,
|
|
1849
1757
|
});
|
|
1850
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1851
1758
|
}
|
|
1852
1759
|
};
|
|
1853
1760
|
const deserializeAws_json1_1DescribePredictorCommand = async (output, context) => {
|
|
@@ -1869,7 +1776,6 @@ const deserializeAws_json1_1DescribePredictorCommandError = async (output, conte
|
|
|
1869
1776
|
...output,
|
|
1870
1777
|
body: await parseBody(output.body, context),
|
|
1871
1778
|
};
|
|
1872
|
-
let response;
|
|
1873
1779
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1874
1780
|
switch (errorCode) {
|
|
1875
1781
|
case "InvalidInputException":
|
|
@@ -1880,14 +1786,12 @@ const deserializeAws_json1_1DescribePredictorCommandError = async (output, conte
|
|
|
1880
1786
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1881
1787
|
default:
|
|
1882
1788
|
const parsedBody = parsedOutput.body;
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
$metadata,
|
|
1789
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1790
|
+
output,
|
|
1791
|
+
parsedBody,
|
|
1792
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
1793
|
+
errorCode,
|
|
1889
1794
|
});
|
|
1890
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1891
1795
|
}
|
|
1892
1796
|
};
|
|
1893
1797
|
const deserializeAws_json1_1DescribePredictorBacktestExportJobCommand = async (output, context) => {
|
|
@@ -1909,7 +1813,6 @@ const deserializeAws_json1_1DescribePredictorBacktestExportJobCommandError = asy
|
|
|
1909
1813
|
...output,
|
|
1910
1814
|
body: await parseBody(output.body, context),
|
|
1911
1815
|
};
|
|
1912
|
-
let response;
|
|
1913
1816
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1914
1817
|
switch (errorCode) {
|
|
1915
1818
|
case "InvalidInputException":
|
|
@@ -1920,14 +1823,12 @@ const deserializeAws_json1_1DescribePredictorBacktestExportJobCommandError = asy
|
|
|
1920
1823
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1921
1824
|
default:
|
|
1922
1825
|
const parsedBody = parsedOutput.body;
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
$metadata,
|
|
1826
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1827
|
+
output,
|
|
1828
|
+
parsedBody,
|
|
1829
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
1830
|
+
errorCode,
|
|
1929
1831
|
});
|
|
1930
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1931
1832
|
}
|
|
1932
1833
|
};
|
|
1933
1834
|
const deserializeAws_json1_1GetAccuracyMetricsCommand = async (output, context) => {
|
|
@@ -1949,7 +1850,6 @@ const deserializeAws_json1_1GetAccuracyMetricsCommandError = async (output, cont
|
|
|
1949
1850
|
...output,
|
|
1950
1851
|
body: await parseBody(output.body, context),
|
|
1951
1852
|
};
|
|
1952
|
-
let response;
|
|
1953
1853
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1954
1854
|
switch (errorCode) {
|
|
1955
1855
|
case "InvalidInputException":
|
|
@@ -1963,14 +1863,12 @@ const deserializeAws_json1_1GetAccuracyMetricsCommandError = async (output, cont
|
|
|
1963
1863
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1964
1864
|
default:
|
|
1965
1865
|
const parsedBody = parsedOutput.body;
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
$metadata,
|
|
1866
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1867
|
+
output,
|
|
1868
|
+
parsedBody,
|
|
1869
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
1870
|
+
errorCode,
|
|
1972
1871
|
});
|
|
1973
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1974
1872
|
}
|
|
1975
1873
|
};
|
|
1976
1874
|
const deserializeAws_json1_1ListDatasetGroupsCommand = async (output, context) => {
|
|
@@ -1992,7 +1890,6 @@ const deserializeAws_json1_1ListDatasetGroupsCommandError = async (output, conte
|
|
|
1992
1890
|
...output,
|
|
1993
1891
|
body: await parseBody(output.body, context),
|
|
1994
1892
|
};
|
|
1995
|
-
let response;
|
|
1996
1893
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1997
1894
|
switch (errorCode) {
|
|
1998
1895
|
case "InvalidNextTokenException":
|
|
@@ -2000,14 +1897,12 @@ const deserializeAws_json1_1ListDatasetGroupsCommandError = async (output, conte
|
|
|
2000
1897
|
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
2001
1898
|
default:
|
|
2002
1899
|
const parsedBody = parsedOutput.body;
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
$metadata,
|
|
1900
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1901
|
+
output,
|
|
1902
|
+
parsedBody,
|
|
1903
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
1904
|
+
errorCode,
|
|
2009
1905
|
});
|
|
2010
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2011
1906
|
}
|
|
2012
1907
|
};
|
|
2013
1908
|
const deserializeAws_json1_1ListDatasetImportJobsCommand = async (output, context) => {
|
|
@@ -2029,7 +1924,6 @@ const deserializeAws_json1_1ListDatasetImportJobsCommandError = async (output, c
|
|
|
2029
1924
|
...output,
|
|
2030
1925
|
body: await parseBody(output.body, context),
|
|
2031
1926
|
};
|
|
2032
|
-
let response;
|
|
2033
1927
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2034
1928
|
switch (errorCode) {
|
|
2035
1929
|
case "InvalidInputException":
|
|
@@ -2040,14 +1934,12 @@ const deserializeAws_json1_1ListDatasetImportJobsCommandError = async (output, c
|
|
|
2040
1934
|
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
2041
1935
|
default:
|
|
2042
1936
|
const parsedBody = parsedOutput.body;
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
$metadata,
|
|
1937
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1938
|
+
output,
|
|
1939
|
+
parsedBody,
|
|
1940
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
1941
|
+
errorCode,
|
|
2049
1942
|
});
|
|
2050
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2051
1943
|
}
|
|
2052
1944
|
};
|
|
2053
1945
|
const deserializeAws_json1_1ListDatasetsCommand = async (output, context) => {
|
|
@@ -2069,7 +1961,6 @@ const deserializeAws_json1_1ListDatasetsCommandError = async (output, context) =
|
|
|
2069
1961
|
...output,
|
|
2070
1962
|
body: await parseBody(output.body, context),
|
|
2071
1963
|
};
|
|
2072
|
-
let response;
|
|
2073
1964
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2074
1965
|
switch (errorCode) {
|
|
2075
1966
|
case "InvalidNextTokenException":
|
|
@@ -2077,14 +1968,12 @@ const deserializeAws_json1_1ListDatasetsCommandError = async (output, context) =
|
|
|
2077
1968
|
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
2078
1969
|
default:
|
|
2079
1970
|
const parsedBody = parsedOutput.body;
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
$metadata,
|
|
1971
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1972
|
+
output,
|
|
1973
|
+
parsedBody,
|
|
1974
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
1975
|
+
errorCode,
|
|
2086
1976
|
});
|
|
2087
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2088
1977
|
}
|
|
2089
1978
|
};
|
|
2090
1979
|
const deserializeAws_json1_1ListExplainabilitiesCommand = async (output, context) => {
|
|
@@ -2106,7 +1995,6 @@ const deserializeAws_json1_1ListExplainabilitiesCommandError = async (output, co
|
|
|
2106
1995
|
...output,
|
|
2107
1996
|
body: await parseBody(output.body, context),
|
|
2108
1997
|
};
|
|
2109
|
-
let response;
|
|
2110
1998
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2111
1999
|
switch (errorCode) {
|
|
2112
2000
|
case "InvalidInputException":
|
|
@@ -2117,14 +2005,12 @@ const deserializeAws_json1_1ListExplainabilitiesCommandError = async (output, co
|
|
|
2117
2005
|
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
2118
2006
|
default:
|
|
2119
2007
|
const parsedBody = parsedOutput.body;
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
$metadata,
|
|
2008
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2009
|
+
output,
|
|
2010
|
+
parsedBody,
|
|
2011
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
2012
|
+
errorCode,
|
|
2126
2013
|
});
|
|
2127
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2128
2014
|
}
|
|
2129
2015
|
};
|
|
2130
2016
|
const deserializeAws_json1_1ListExplainabilityExportsCommand = async (output, context) => {
|
|
@@ -2146,7 +2032,6 @@ const deserializeAws_json1_1ListExplainabilityExportsCommandError = async (outpu
|
|
|
2146
2032
|
...output,
|
|
2147
2033
|
body: await parseBody(output.body, context),
|
|
2148
2034
|
};
|
|
2149
|
-
let response;
|
|
2150
2035
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2151
2036
|
switch (errorCode) {
|
|
2152
2037
|
case "InvalidInputException":
|
|
@@ -2157,14 +2042,12 @@ const deserializeAws_json1_1ListExplainabilityExportsCommandError = async (outpu
|
|
|
2157
2042
|
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
2158
2043
|
default:
|
|
2159
2044
|
const parsedBody = parsedOutput.body;
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
$metadata,
|
|
2045
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2046
|
+
output,
|
|
2047
|
+
parsedBody,
|
|
2048
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
2049
|
+
errorCode,
|
|
2166
2050
|
});
|
|
2167
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2168
2051
|
}
|
|
2169
2052
|
};
|
|
2170
2053
|
const deserializeAws_json1_1ListForecastExportJobsCommand = async (output, context) => {
|
|
@@ -2186,7 +2069,6 @@ const deserializeAws_json1_1ListForecastExportJobsCommandError = async (output,
|
|
|
2186
2069
|
...output,
|
|
2187
2070
|
body: await parseBody(output.body, context),
|
|
2188
2071
|
};
|
|
2189
|
-
let response;
|
|
2190
2072
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2191
2073
|
switch (errorCode) {
|
|
2192
2074
|
case "InvalidInputException":
|
|
@@ -2197,14 +2079,12 @@ const deserializeAws_json1_1ListForecastExportJobsCommandError = async (output,
|
|
|
2197
2079
|
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
2198
2080
|
default:
|
|
2199
2081
|
const parsedBody = parsedOutput.body;
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
$metadata,
|
|
2082
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2083
|
+
output,
|
|
2084
|
+
parsedBody,
|
|
2085
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
2086
|
+
errorCode,
|
|
2206
2087
|
});
|
|
2207
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2208
2088
|
}
|
|
2209
2089
|
};
|
|
2210
2090
|
const deserializeAws_json1_1ListForecastsCommand = async (output, context) => {
|
|
@@ -2226,7 +2106,6 @@ const deserializeAws_json1_1ListForecastsCommandError = async (output, context)
|
|
|
2226
2106
|
...output,
|
|
2227
2107
|
body: await parseBody(output.body, context),
|
|
2228
2108
|
};
|
|
2229
|
-
let response;
|
|
2230
2109
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2231
2110
|
switch (errorCode) {
|
|
2232
2111
|
case "InvalidInputException":
|
|
@@ -2237,14 +2116,12 @@ const deserializeAws_json1_1ListForecastsCommandError = async (output, context)
|
|
|
2237
2116
|
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
2238
2117
|
default:
|
|
2239
2118
|
const parsedBody = parsedOutput.body;
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
$metadata,
|
|
2119
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2120
|
+
output,
|
|
2121
|
+
parsedBody,
|
|
2122
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
2123
|
+
errorCode,
|
|
2246
2124
|
});
|
|
2247
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2248
2125
|
}
|
|
2249
2126
|
};
|
|
2250
2127
|
const deserializeAws_json1_1ListMonitorEvaluationsCommand = async (output, context) => {
|
|
@@ -2266,7 +2143,6 @@ const deserializeAws_json1_1ListMonitorEvaluationsCommandError = async (output,
|
|
|
2266
2143
|
...output,
|
|
2267
2144
|
body: await parseBody(output.body, context),
|
|
2268
2145
|
};
|
|
2269
|
-
let response;
|
|
2270
2146
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2271
2147
|
switch (errorCode) {
|
|
2272
2148
|
case "InvalidInputException":
|
|
@@ -2280,14 +2156,12 @@ const deserializeAws_json1_1ListMonitorEvaluationsCommandError = async (output,
|
|
|
2280
2156
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2281
2157
|
default:
|
|
2282
2158
|
const parsedBody = parsedOutput.body;
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
$metadata,
|
|
2159
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2160
|
+
output,
|
|
2161
|
+
parsedBody,
|
|
2162
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
2163
|
+
errorCode,
|
|
2289
2164
|
});
|
|
2290
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2291
2165
|
}
|
|
2292
2166
|
};
|
|
2293
2167
|
const deserializeAws_json1_1ListMonitorsCommand = async (output, context) => {
|
|
@@ -2309,7 +2183,6 @@ const deserializeAws_json1_1ListMonitorsCommandError = async (output, context) =
|
|
|
2309
2183
|
...output,
|
|
2310
2184
|
body: await parseBody(output.body, context),
|
|
2311
2185
|
};
|
|
2312
|
-
let response;
|
|
2313
2186
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2314
2187
|
switch (errorCode) {
|
|
2315
2188
|
case "InvalidInputException":
|
|
@@ -2320,14 +2193,12 @@ const deserializeAws_json1_1ListMonitorsCommandError = async (output, context) =
|
|
|
2320
2193
|
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
2321
2194
|
default:
|
|
2322
2195
|
const parsedBody = parsedOutput.body;
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
$metadata,
|
|
2196
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2197
|
+
output,
|
|
2198
|
+
parsedBody,
|
|
2199
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
2200
|
+
errorCode,
|
|
2329
2201
|
});
|
|
2330
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2331
2202
|
}
|
|
2332
2203
|
};
|
|
2333
2204
|
const deserializeAws_json1_1ListPredictorBacktestExportJobsCommand = async (output, context) => {
|
|
@@ -2349,7 +2220,6 @@ const deserializeAws_json1_1ListPredictorBacktestExportJobsCommandError = async
|
|
|
2349
2220
|
...output,
|
|
2350
2221
|
body: await parseBody(output.body, context),
|
|
2351
2222
|
};
|
|
2352
|
-
let response;
|
|
2353
2223
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2354
2224
|
switch (errorCode) {
|
|
2355
2225
|
case "InvalidInputException":
|
|
@@ -2360,14 +2230,12 @@ const deserializeAws_json1_1ListPredictorBacktestExportJobsCommandError = async
|
|
|
2360
2230
|
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
2361
2231
|
default:
|
|
2362
2232
|
const parsedBody = parsedOutput.body;
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
$metadata,
|
|
2233
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2234
|
+
output,
|
|
2235
|
+
parsedBody,
|
|
2236
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
2237
|
+
errorCode,
|
|
2369
2238
|
});
|
|
2370
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2371
2239
|
}
|
|
2372
2240
|
};
|
|
2373
2241
|
const deserializeAws_json1_1ListPredictorsCommand = async (output, context) => {
|
|
@@ -2389,7 +2257,6 @@ const deserializeAws_json1_1ListPredictorsCommandError = async (output, context)
|
|
|
2389
2257
|
...output,
|
|
2390
2258
|
body: await parseBody(output.body, context),
|
|
2391
2259
|
};
|
|
2392
|
-
let response;
|
|
2393
2260
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2394
2261
|
switch (errorCode) {
|
|
2395
2262
|
case "InvalidInputException":
|
|
@@ -2400,14 +2267,12 @@ const deserializeAws_json1_1ListPredictorsCommandError = async (output, context)
|
|
|
2400
2267
|
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
2401
2268
|
default:
|
|
2402
2269
|
const parsedBody = parsedOutput.body;
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
$metadata,
|
|
2270
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2271
|
+
output,
|
|
2272
|
+
parsedBody,
|
|
2273
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
2274
|
+
errorCode,
|
|
2409
2275
|
});
|
|
2410
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2411
2276
|
}
|
|
2412
2277
|
};
|
|
2413
2278
|
const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
@@ -2429,7 +2294,6 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
2429
2294
|
...output,
|
|
2430
2295
|
body: await parseBody(output.body, context),
|
|
2431
2296
|
};
|
|
2432
|
-
let response;
|
|
2433
2297
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2434
2298
|
switch (errorCode) {
|
|
2435
2299
|
case "InvalidInputException":
|
|
@@ -2440,14 +2304,12 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
2440
2304
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2441
2305
|
default:
|
|
2442
2306
|
const parsedBody = parsedOutput.body;
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
$metadata,
|
|
2307
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2308
|
+
output,
|
|
2309
|
+
parsedBody,
|
|
2310
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
2311
|
+
errorCode,
|
|
2449
2312
|
});
|
|
2450
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2451
2313
|
}
|
|
2452
2314
|
};
|
|
2453
2315
|
const deserializeAws_json1_1ResumeResourceCommand = async (output, context) => {
|
|
@@ -2466,7 +2328,6 @@ const deserializeAws_json1_1ResumeResourceCommandError = async (output, context)
|
|
|
2466
2328
|
...output,
|
|
2467
2329
|
body: await parseBody(output.body, context),
|
|
2468
2330
|
};
|
|
2469
|
-
let response;
|
|
2470
2331
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2471
2332
|
switch (errorCode) {
|
|
2472
2333
|
case "InvalidInputException":
|
|
@@ -2483,14 +2344,12 @@ const deserializeAws_json1_1ResumeResourceCommandError = async (output, context)
|
|
|
2483
2344
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2484
2345
|
default:
|
|
2485
2346
|
const parsedBody = parsedOutput.body;
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
$metadata,
|
|
2347
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2348
|
+
output,
|
|
2349
|
+
parsedBody,
|
|
2350
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
2351
|
+
errorCode,
|
|
2492
2352
|
});
|
|
2493
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2494
2353
|
}
|
|
2495
2354
|
};
|
|
2496
2355
|
const deserializeAws_json1_1StopResourceCommand = async (output, context) => {
|
|
@@ -2509,7 +2368,6 @@ const deserializeAws_json1_1StopResourceCommandError = async (output, context) =
|
|
|
2509
2368
|
...output,
|
|
2510
2369
|
body: await parseBody(output.body, context),
|
|
2511
2370
|
};
|
|
2512
|
-
let response;
|
|
2513
2371
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2514
2372
|
switch (errorCode) {
|
|
2515
2373
|
case "InvalidInputException":
|
|
@@ -2523,14 +2381,12 @@ const deserializeAws_json1_1StopResourceCommandError = async (output, context) =
|
|
|
2523
2381
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2524
2382
|
default:
|
|
2525
2383
|
const parsedBody = parsedOutput.body;
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
$metadata,
|
|
2384
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2385
|
+
output,
|
|
2386
|
+
parsedBody,
|
|
2387
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
2388
|
+
errorCode,
|
|
2532
2389
|
});
|
|
2533
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2534
2390
|
}
|
|
2535
2391
|
};
|
|
2536
2392
|
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
@@ -2552,7 +2408,6 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
2552
2408
|
...output,
|
|
2553
2409
|
body: await parseBody(output.body, context),
|
|
2554
2410
|
};
|
|
2555
|
-
let response;
|
|
2556
2411
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2557
2412
|
switch (errorCode) {
|
|
2558
2413
|
case "InvalidInputException":
|
|
@@ -2566,14 +2421,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
2566
2421
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2567
2422
|
default:
|
|
2568
2423
|
const parsedBody = parsedOutput.body;
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
$metadata,
|
|
2424
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2425
|
+
output,
|
|
2426
|
+
parsedBody,
|
|
2427
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
2428
|
+
errorCode,
|
|
2575
2429
|
});
|
|
2576
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2577
2430
|
}
|
|
2578
2431
|
};
|
|
2579
2432
|
const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
@@ -2595,7 +2448,6 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
2595
2448
|
...output,
|
|
2596
2449
|
body: await parseBody(output.body, context),
|
|
2597
2450
|
};
|
|
2598
|
-
let response;
|
|
2599
2451
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2600
2452
|
switch (errorCode) {
|
|
2601
2453
|
case "InvalidInputException":
|
|
@@ -2606,14 +2458,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
2606
2458
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2607
2459
|
default:
|
|
2608
2460
|
const parsedBody = parsedOutput.body;
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
$metadata,
|
|
2461
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2462
|
+
output,
|
|
2463
|
+
parsedBody,
|
|
2464
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
2465
|
+
errorCode,
|
|
2615
2466
|
});
|
|
2616
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2617
2467
|
}
|
|
2618
2468
|
};
|
|
2619
2469
|
const deserializeAws_json1_1UpdateDatasetGroupCommand = async (output, context) => {
|
|
@@ -2635,7 +2485,6 @@ const deserializeAws_json1_1UpdateDatasetGroupCommandError = async (output, cont
|
|
|
2635
2485
|
...output,
|
|
2636
2486
|
body: await parseBody(output.body, context),
|
|
2637
2487
|
};
|
|
2638
|
-
let response;
|
|
2639
2488
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2640
2489
|
switch (errorCode) {
|
|
2641
2490
|
case "InvalidInputException":
|
|
@@ -2649,14 +2498,12 @@ const deserializeAws_json1_1UpdateDatasetGroupCommandError = async (output, cont
|
|
|
2649
2498
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2650
2499
|
default:
|
|
2651
2500
|
const parsedBody = parsedOutput.body;
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
$metadata,
|
|
2501
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2502
|
+
output,
|
|
2503
|
+
parsedBody,
|
|
2504
|
+
exceptionCtor: ForecastServiceException_1.ForecastServiceException,
|
|
2505
|
+
errorCode,
|
|
2658
2506
|
});
|
|
2659
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2660
2507
|
}
|
|
2661
2508
|
};
|
|
2662
2509
|
const deserializeAws_json1_1InvalidInputExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -2725,9 +2572,6 @@ const serializeAws_json1_1AdditionalDatasets = (input, context) => {
|
|
|
2725
2572
|
return input
|
|
2726
2573
|
.filter((e) => e != null)
|
|
2727
2574
|
.map((entry) => {
|
|
2728
|
-
if (entry === null) {
|
|
2729
|
-
return null;
|
|
2730
|
-
}
|
|
2731
2575
|
return serializeAws_json1_1AdditionalDataset(entry, context);
|
|
2732
2576
|
});
|
|
2733
2577
|
};
|
|
@@ -2735,9 +2579,6 @@ const serializeAws_json1_1ArnList = (input, context) => {
|
|
|
2735
2579
|
return input
|
|
2736
2580
|
.filter((e) => e != null)
|
|
2737
2581
|
.map((entry) => {
|
|
2738
|
-
if (entry === null) {
|
|
2739
|
-
return null;
|
|
2740
|
-
}
|
|
2741
2582
|
return entry;
|
|
2742
2583
|
});
|
|
2743
2584
|
};
|
|
@@ -2753,9 +2594,6 @@ const serializeAws_json1_1AttributeConfigs = (input, context) => {
|
|
|
2753
2594
|
return input
|
|
2754
2595
|
.filter((e) => e != null)
|
|
2755
2596
|
.map((entry) => {
|
|
2756
|
-
if (entry === null) {
|
|
2757
|
-
return null;
|
|
2758
|
-
}
|
|
2759
2597
|
return serializeAws_json1_1AttributeConfig(entry, context);
|
|
2760
2598
|
});
|
|
2761
2599
|
};
|
|
@@ -2769,9 +2607,6 @@ const serializeAws_json1_1CategoricalParameterRanges = (input, context) => {
|
|
|
2769
2607
|
return input
|
|
2770
2608
|
.filter((e) => e != null)
|
|
2771
2609
|
.map((entry) => {
|
|
2772
|
-
if (entry === null) {
|
|
2773
|
-
return null;
|
|
2774
|
-
}
|
|
2775
2610
|
return serializeAws_json1_1CategoricalParameterRange(entry, context);
|
|
2776
2611
|
});
|
|
2777
2612
|
};
|
|
@@ -2798,9 +2633,6 @@ const serializeAws_json1_1ContinuousParameterRanges = (input, context) => {
|
|
|
2798
2633
|
return input
|
|
2799
2634
|
.filter((e) => e != null)
|
|
2800
2635
|
.map((entry) => {
|
|
2801
|
-
if (entry === null) {
|
|
2802
|
-
return null;
|
|
2803
|
-
}
|
|
2804
2636
|
return serializeAws_json1_1ContinuousParameterRange(entry, context);
|
|
2805
2637
|
});
|
|
2806
2638
|
};
|
|
@@ -3157,9 +2989,6 @@ const serializeAws_json1_1FeaturizationPipeline = (input, context) => {
|
|
|
3157
2989
|
return input
|
|
3158
2990
|
.filter((e) => e != null)
|
|
3159
2991
|
.map((entry) => {
|
|
3160
|
-
if (entry === null) {
|
|
3161
|
-
return null;
|
|
3162
|
-
}
|
|
3163
2992
|
return serializeAws_json1_1FeaturizationMethod(entry, context);
|
|
3164
2993
|
});
|
|
3165
2994
|
};
|
|
@@ -3167,9 +2996,6 @@ const serializeAws_json1_1Featurizations = (input, context) => {
|
|
|
3167
2996
|
return input
|
|
3168
2997
|
.filter((e) => e != null)
|
|
3169
2998
|
.map((entry) => {
|
|
3170
|
-
if (entry === null) {
|
|
3171
|
-
return null;
|
|
3172
|
-
}
|
|
3173
2999
|
return serializeAws_json1_1Featurization(entry, context);
|
|
3174
3000
|
});
|
|
3175
3001
|
};
|
|
@@ -3184,9 +3010,6 @@ const serializeAws_json1_1Filters = (input, context) => {
|
|
|
3184
3010
|
return input
|
|
3185
3011
|
.filter((e) => e != null)
|
|
3186
3012
|
.map((entry) => {
|
|
3187
|
-
if (entry === null) {
|
|
3188
|
-
return null;
|
|
3189
|
-
}
|
|
3190
3013
|
return serializeAws_json1_1Filter(entry, context);
|
|
3191
3014
|
});
|
|
3192
3015
|
};
|
|
@@ -3194,9 +3017,6 @@ const serializeAws_json1_1ForecastDimensions = (input, context) => {
|
|
|
3194
3017
|
return input
|
|
3195
3018
|
.filter((e) => e != null)
|
|
3196
3019
|
.map((entry) => {
|
|
3197
|
-
if (entry === null) {
|
|
3198
|
-
return null;
|
|
3199
|
-
}
|
|
3200
3020
|
return entry;
|
|
3201
3021
|
});
|
|
3202
3022
|
};
|
|
@@ -3204,9 +3024,6 @@ const serializeAws_json1_1ForecastTypes = (input, context) => {
|
|
|
3204
3024
|
return input
|
|
3205
3025
|
.filter((e) => e != null)
|
|
3206
3026
|
.map((entry) => {
|
|
3207
|
-
if (entry === null) {
|
|
3208
|
-
return null;
|
|
3209
|
-
}
|
|
3210
3027
|
return entry;
|
|
3211
3028
|
});
|
|
3212
3029
|
};
|
|
@@ -3242,9 +3059,6 @@ const serializeAws_json1_1IntegerParameterRanges = (input, context) => {
|
|
|
3242
3059
|
return input
|
|
3243
3060
|
.filter((e) => e != null)
|
|
3244
3061
|
.map((entry) => {
|
|
3245
|
-
if (entry === null) {
|
|
3246
|
-
return null;
|
|
3247
|
-
}
|
|
3248
3062
|
return serializeAws_json1_1IntegerParameterRange(entry, context);
|
|
3249
3063
|
});
|
|
3250
3064
|
};
|
|
@@ -3374,9 +3188,6 @@ const serializeAws_json1_1SchemaAttributes = (input, context) => {
|
|
|
3374
3188
|
return input
|
|
3375
3189
|
.filter((e) => e != null)
|
|
3376
3190
|
.map((entry) => {
|
|
3377
|
-
if (entry === null) {
|
|
3378
|
-
return null;
|
|
3379
|
-
}
|
|
3380
3191
|
return serializeAws_json1_1SchemaAttribute(entry, context);
|
|
3381
3192
|
});
|
|
3382
3193
|
};
|
|
@@ -3395,9 +3206,6 @@ const serializeAws_json1_1SupplementaryFeatures = (input, context) => {
|
|
|
3395
3206
|
return input
|
|
3396
3207
|
.filter((e) => e != null)
|
|
3397
3208
|
.map((entry) => {
|
|
3398
|
-
if (entry === null) {
|
|
3399
|
-
return null;
|
|
3400
|
-
}
|
|
3401
3209
|
return serializeAws_json1_1SupplementaryFeature(entry, context);
|
|
3402
3210
|
});
|
|
3403
3211
|
};
|
|
@@ -3411,9 +3219,6 @@ const serializeAws_json1_1TagKeys = (input, context) => {
|
|
|
3411
3219
|
return input
|
|
3412
3220
|
.filter((e) => e != null)
|
|
3413
3221
|
.map((entry) => {
|
|
3414
|
-
if (entry === null) {
|
|
3415
|
-
return null;
|
|
3416
|
-
}
|
|
3417
3222
|
return entry;
|
|
3418
3223
|
});
|
|
3419
3224
|
};
|
|
@@ -3427,9 +3232,6 @@ const serializeAws_json1_1Tags = (input, context) => {
|
|
|
3427
3232
|
return input
|
|
3428
3233
|
.filter((e) => e != null)
|
|
3429
3234
|
.map((entry) => {
|
|
3430
|
-
if (entry === null) {
|
|
3431
|
-
return null;
|
|
3432
|
-
}
|
|
3433
3235
|
return serializeAws_json1_1Tag(entry, context);
|
|
3434
3236
|
});
|
|
3435
3237
|
};
|
|
@@ -3493,9 +3295,6 @@ const serializeAws_json1_1Values = (input, context) => {
|
|
|
3493
3295
|
return input
|
|
3494
3296
|
.filter((e) => e != null)
|
|
3495
3297
|
.map((entry) => {
|
|
3496
|
-
if (entry === null) {
|
|
3497
|
-
return null;
|
|
3498
|
-
}
|
|
3499
3298
|
return entry;
|
|
3500
3299
|
});
|
|
3501
3300
|
};
|