@aws-sdk/client-machine-learning 3.504.0 → 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 +53 -716
- package/dist-es/protocols/Aws_json1_1.js +63 -726
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -681,7 +681,7 @@ var se_UpdateMLModelCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
681
681
|
}, "se_UpdateMLModelCommand");
|
|
682
682
|
var de_AddTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
683
683
|
if (output.statusCode >= 300) {
|
|
684
|
-
return
|
|
684
|
+
return de_CommandError(output, context);
|
|
685
685
|
}
|
|
686
686
|
const data = await parseBody(output.body, context);
|
|
687
687
|
let contents = {};
|
|
@@ -692,40 +692,9 @@ var de_AddTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
692
692
|
};
|
|
693
693
|
return response;
|
|
694
694
|
}, "de_AddTagsCommand");
|
|
695
|
-
var de_AddTagsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
696
|
-
const parsedOutput = {
|
|
697
|
-
...output,
|
|
698
|
-
body: await parseErrorBody(output.body, context)
|
|
699
|
-
};
|
|
700
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
701
|
-
switch (errorCode) {
|
|
702
|
-
case "InternalServerException":
|
|
703
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
704
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
705
|
-
case "InvalidInputException":
|
|
706
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
707
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
708
|
-
case "InvalidTagException":
|
|
709
|
-
case "com.amazonaws.machinelearning#InvalidTagException":
|
|
710
|
-
throw await de_InvalidTagExceptionRes(parsedOutput, context);
|
|
711
|
-
case "ResourceNotFoundException":
|
|
712
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
713
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
714
|
-
case "TagLimitExceededException":
|
|
715
|
-
case "com.amazonaws.machinelearning#TagLimitExceededException":
|
|
716
|
-
throw await de_TagLimitExceededExceptionRes(parsedOutput, context);
|
|
717
|
-
default:
|
|
718
|
-
const parsedBody = parsedOutput.body;
|
|
719
|
-
return throwDefaultError({
|
|
720
|
-
output,
|
|
721
|
-
parsedBody,
|
|
722
|
-
errorCode
|
|
723
|
-
});
|
|
724
|
-
}
|
|
725
|
-
}, "de_AddTagsCommandError");
|
|
726
695
|
var de_CreateBatchPredictionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
727
696
|
if (output.statusCode >= 300) {
|
|
728
|
-
return
|
|
697
|
+
return de_CommandError(output, context);
|
|
729
698
|
}
|
|
730
699
|
const data = await parseBody(output.body, context);
|
|
731
700
|
let contents = {};
|
|
@@ -736,34 +705,9 @@ var de_CreateBatchPredictionCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
736
705
|
};
|
|
737
706
|
return response;
|
|
738
707
|
}, "de_CreateBatchPredictionCommand");
|
|
739
|
-
var de_CreateBatchPredictionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
740
|
-
const parsedOutput = {
|
|
741
|
-
...output,
|
|
742
|
-
body: await parseErrorBody(output.body, context)
|
|
743
|
-
};
|
|
744
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
745
|
-
switch (errorCode) {
|
|
746
|
-
case "IdempotentParameterMismatchException":
|
|
747
|
-
case "com.amazonaws.machinelearning#IdempotentParameterMismatchException":
|
|
748
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
749
|
-
case "InternalServerException":
|
|
750
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
751
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
752
|
-
case "InvalidInputException":
|
|
753
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
754
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
755
|
-
default:
|
|
756
|
-
const parsedBody = parsedOutput.body;
|
|
757
|
-
return throwDefaultError({
|
|
758
|
-
output,
|
|
759
|
-
parsedBody,
|
|
760
|
-
errorCode
|
|
761
|
-
});
|
|
762
|
-
}
|
|
763
|
-
}, "de_CreateBatchPredictionCommandError");
|
|
764
708
|
var de_CreateDataSourceFromRDSCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
765
709
|
if (output.statusCode >= 300) {
|
|
766
|
-
return
|
|
710
|
+
return de_CommandError(output, context);
|
|
767
711
|
}
|
|
768
712
|
const data = await parseBody(output.body, context);
|
|
769
713
|
let contents = {};
|
|
@@ -774,34 +718,9 @@ var de_CreateDataSourceFromRDSCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
774
718
|
};
|
|
775
719
|
return response;
|
|
776
720
|
}, "de_CreateDataSourceFromRDSCommand");
|
|
777
|
-
var de_CreateDataSourceFromRDSCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
778
|
-
const parsedOutput = {
|
|
779
|
-
...output,
|
|
780
|
-
body: await parseErrorBody(output.body, context)
|
|
781
|
-
};
|
|
782
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
783
|
-
switch (errorCode) {
|
|
784
|
-
case "IdempotentParameterMismatchException":
|
|
785
|
-
case "com.amazonaws.machinelearning#IdempotentParameterMismatchException":
|
|
786
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
787
|
-
case "InternalServerException":
|
|
788
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
789
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
790
|
-
case "InvalidInputException":
|
|
791
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
792
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
793
|
-
default:
|
|
794
|
-
const parsedBody = parsedOutput.body;
|
|
795
|
-
return throwDefaultError({
|
|
796
|
-
output,
|
|
797
|
-
parsedBody,
|
|
798
|
-
errorCode
|
|
799
|
-
});
|
|
800
|
-
}
|
|
801
|
-
}, "de_CreateDataSourceFromRDSCommandError");
|
|
802
721
|
var de_CreateDataSourceFromRedshiftCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
803
722
|
if (output.statusCode >= 300) {
|
|
804
|
-
return
|
|
723
|
+
return de_CommandError(output, context);
|
|
805
724
|
}
|
|
806
725
|
const data = await parseBody(output.body, context);
|
|
807
726
|
let contents = {};
|
|
@@ -812,34 +731,9 @@ var de_CreateDataSourceFromRedshiftCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
812
731
|
};
|
|
813
732
|
return response;
|
|
814
733
|
}, "de_CreateDataSourceFromRedshiftCommand");
|
|
815
|
-
var de_CreateDataSourceFromRedshiftCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
816
|
-
const parsedOutput = {
|
|
817
|
-
...output,
|
|
818
|
-
body: await parseErrorBody(output.body, context)
|
|
819
|
-
};
|
|
820
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
821
|
-
switch (errorCode) {
|
|
822
|
-
case "IdempotentParameterMismatchException":
|
|
823
|
-
case "com.amazonaws.machinelearning#IdempotentParameterMismatchException":
|
|
824
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
825
|
-
case "InternalServerException":
|
|
826
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
827
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
828
|
-
case "InvalidInputException":
|
|
829
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
830
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
831
|
-
default:
|
|
832
|
-
const parsedBody = parsedOutput.body;
|
|
833
|
-
return throwDefaultError({
|
|
834
|
-
output,
|
|
835
|
-
parsedBody,
|
|
836
|
-
errorCode
|
|
837
|
-
});
|
|
838
|
-
}
|
|
839
|
-
}, "de_CreateDataSourceFromRedshiftCommandError");
|
|
840
734
|
var de_CreateDataSourceFromS3Command = /* @__PURE__ */ __name(async (output, context) => {
|
|
841
735
|
if (output.statusCode >= 300) {
|
|
842
|
-
return
|
|
736
|
+
return de_CommandError(output, context);
|
|
843
737
|
}
|
|
844
738
|
const data = await parseBody(output.body, context);
|
|
845
739
|
let contents = {};
|
|
@@ -850,34 +744,9 @@ var de_CreateDataSourceFromS3Command = /* @__PURE__ */ __name(async (output, con
|
|
|
850
744
|
};
|
|
851
745
|
return response;
|
|
852
746
|
}, "de_CreateDataSourceFromS3Command");
|
|
853
|
-
var de_CreateDataSourceFromS3CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
854
|
-
const parsedOutput = {
|
|
855
|
-
...output,
|
|
856
|
-
body: await parseErrorBody(output.body, context)
|
|
857
|
-
};
|
|
858
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
859
|
-
switch (errorCode) {
|
|
860
|
-
case "IdempotentParameterMismatchException":
|
|
861
|
-
case "com.amazonaws.machinelearning#IdempotentParameterMismatchException":
|
|
862
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
863
|
-
case "InternalServerException":
|
|
864
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
865
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
866
|
-
case "InvalidInputException":
|
|
867
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
868
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
869
|
-
default:
|
|
870
|
-
const parsedBody = parsedOutput.body;
|
|
871
|
-
return throwDefaultError({
|
|
872
|
-
output,
|
|
873
|
-
parsedBody,
|
|
874
|
-
errorCode
|
|
875
|
-
});
|
|
876
|
-
}
|
|
877
|
-
}, "de_CreateDataSourceFromS3CommandError");
|
|
878
747
|
var de_CreateEvaluationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
879
748
|
if (output.statusCode >= 300) {
|
|
880
|
-
return
|
|
749
|
+
return de_CommandError(output, context);
|
|
881
750
|
}
|
|
882
751
|
const data = await parseBody(output.body, context);
|
|
883
752
|
let contents = {};
|
|
@@ -888,34 +757,9 @@ var de_CreateEvaluationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
888
757
|
};
|
|
889
758
|
return response;
|
|
890
759
|
}, "de_CreateEvaluationCommand");
|
|
891
|
-
var de_CreateEvaluationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
892
|
-
const parsedOutput = {
|
|
893
|
-
...output,
|
|
894
|
-
body: await parseErrorBody(output.body, context)
|
|
895
|
-
};
|
|
896
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
897
|
-
switch (errorCode) {
|
|
898
|
-
case "IdempotentParameterMismatchException":
|
|
899
|
-
case "com.amazonaws.machinelearning#IdempotentParameterMismatchException":
|
|
900
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
901
|
-
case "InternalServerException":
|
|
902
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
903
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
904
|
-
case "InvalidInputException":
|
|
905
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
906
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
907
|
-
default:
|
|
908
|
-
const parsedBody = parsedOutput.body;
|
|
909
|
-
return throwDefaultError({
|
|
910
|
-
output,
|
|
911
|
-
parsedBody,
|
|
912
|
-
errorCode
|
|
913
|
-
});
|
|
914
|
-
}
|
|
915
|
-
}, "de_CreateEvaluationCommandError");
|
|
916
760
|
var de_CreateMLModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
917
761
|
if (output.statusCode >= 300) {
|
|
918
|
-
return
|
|
762
|
+
return de_CommandError(output, context);
|
|
919
763
|
}
|
|
920
764
|
const data = await parseBody(output.body, context);
|
|
921
765
|
let contents = {};
|
|
@@ -926,34 +770,9 @@ var de_CreateMLModelCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
926
770
|
};
|
|
927
771
|
return response;
|
|
928
772
|
}, "de_CreateMLModelCommand");
|
|
929
|
-
var de_CreateMLModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
930
|
-
const parsedOutput = {
|
|
931
|
-
...output,
|
|
932
|
-
body: await parseErrorBody(output.body, context)
|
|
933
|
-
};
|
|
934
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
935
|
-
switch (errorCode) {
|
|
936
|
-
case "IdempotentParameterMismatchException":
|
|
937
|
-
case "com.amazonaws.machinelearning#IdempotentParameterMismatchException":
|
|
938
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
939
|
-
case "InternalServerException":
|
|
940
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
941
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
942
|
-
case "InvalidInputException":
|
|
943
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
944
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
945
|
-
default:
|
|
946
|
-
const parsedBody = parsedOutput.body;
|
|
947
|
-
return throwDefaultError({
|
|
948
|
-
output,
|
|
949
|
-
parsedBody,
|
|
950
|
-
errorCode
|
|
951
|
-
});
|
|
952
|
-
}
|
|
953
|
-
}, "de_CreateMLModelCommandError");
|
|
954
773
|
var de_CreateRealtimeEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
955
774
|
if (output.statusCode >= 300) {
|
|
956
|
-
return
|
|
775
|
+
return de_CommandError(output, context);
|
|
957
776
|
}
|
|
958
777
|
const data = await parseBody(output.body, context);
|
|
959
778
|
let contents = {};
|
|
@@ -964,34 +783,9 @@ var de_CreateRealtimeEndpointCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
964
783
|
};
|
|
965
784
|
return response;
|
|
966
785
|
}, "de_CreateRealtimeEndpointCommand");
|
|
967
|
-
var de_CreateRealtimeEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
968
|
-
const parsedOutput = {
|
|
969
|
-
...output,
|
|
970
|
-
body: await parseErrorBody(output.body, context)
|
|
971
|
-
};
|
|
972
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
973
|
-
switch (errorCode) {
|
|
974
|
-
case "InternalServerException":
|
|
975
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
976
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
977
|
-
case "InvalidInputException":
|
|
978
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
979
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
980
|
-
case "ResourceNotFoundException":
|
|
981
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
982
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
983
|
-
default:
|
|
984
|
-
const parsedBody = parsedOutput.body;
|
|
985
|
-
return throwDefaultError({
|
|
986
|
-
output,
|
|
987
|
-
parsedBody,
|
|
988
|
-
errorCode
|
|
989
|
-
});
|
|
990
|
-
}
|
|
991
|
-
}, "de_CreateRealtimeEndpointCommandError");
|
|
992
786
|
var de_DeleteBatchPredictionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
993
787
|
if (output.statusCode >= 300) {
|
|
994
|
-
return
|
|
788
|
+
return de_CommandError(output, context);
|
|
995
789
|
}
|
|
996
790
|
const data = await parseBody(output.body, context);
|
|
997
791
|
let contents = {};
|
|
@@ -1002,34 +796,9 @@ var de_DeleteBatchPredictionCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1002
796
|
};
|
|
1003
797
|
return response;
|
|
1004
798
|
}, "de_DeleteBatchPredictionCommand");
|
|
1005
|
-
var de_DeleteBatchPredictionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1006
|
-
const parsedOutput = {
|
|
1007
|
-
...output,
|
|
1008
|
-
body: await parseErrorBody(output.body, context)
|
|
1009
|
-
};
|
|
1010
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1011
|
-
switch (errorCode) {
|
|
1012
|
-
case "InternalServerException":
|
|
1013
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1014
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1015
|
-
case "InvalidInputException":
|
|
1016
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1017
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1018
|
-
case "ResourceNotFoundException":
|
|
1019
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
1020
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1021
|
-
default:
|
|
1022
|
-
const parsedBody = parsedOutput.body;
|
|
1023
|
-
return throwDefaultError({
|
|
1024
|
-
output,
|
|
1025
|
-
parsedBody,
|
|
1026
|
-
errorCode
|
|
1027
|
-
});
|
|
1028
|
-
}
|
|
1029
|
-
}, "de_DeleteBatchPredictionCommandError");
|
|
1030
799
|
var de_DeleteDataSourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1031
800
|
if (output.statusCode >= 300) {
|
|
1032
|
-
return
|
|
801
|
+
return de_CommandError(output, context);
|
|
1033
802
|
}
|
|
1034
803
|
const data = await parseBody(output.body, context);
|
|
1035
804
|
let contents = {};
|
|
@@ -1040,34 +809,9 @@ var de_DeleteDataSourceCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1040
809
|
};
|
|
1041
810
|
return response;
|
|
1042
811
|
}, "de_DeleteDataSourceCommand");
|
|
1043
|
-
var de_DeleteDataSourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1044
|
-
const parsedOutput = {
|
|
1045
|
-
...output,
|
|
1046
|
-
body: await parseErrorBody(output.body, context)
|
|
1047
|
-
};
|
|
1048
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1049
|
-
switch (errorCode) {
|
|
1050
|
-
case "InternalServerException":
|
|
1051
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1052
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1053
|
-
case "InvalidInputException":
|
|
1054
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1055
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1056
|
-
case "ResourceNotFoundException":
|
|
1057
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
1058
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1059
|
-
default:
|
|
1060
|
-
const parsedBody = parsedOutput.body;
|
|
1061
|
-
return throwDefaultError({
|
|
1062
|
-
output,
|
|
1063
|
-
parsedBody,
|
|
1064
|
-
errorCode
|
|
1065
|
-
});
|
|
1066
|
-
}
|
|
1067
|
-
}, "de_DeleteDataSourceCommandError");
|
|
1068
812
|
var de_DeleteEvaluationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1069
813
|
if (output.statusCode >= 300) {
|
|
1070
|
-
return
|
|
814
|
+
return de_CommandError(output, context);
|
|
1071
815
|
}
|
|
1072
816
|
const data = await parseBody(output.body, context);
|
|
1073
817
|
let contents = {};
|
|
@@ -1078,34 +822,9 @@ var de_DeleteEvaluationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1078
822
|
};
|
|
1079
823
|
return response;
|
|
1080
824
|
}, "de_DeleteEvaluationCommand");
|
|
1081
|
-
var de_DeleteEvaluationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1082
|
-
const parsedOutput = {
|
|
1083
|
-
...output,
|
|
1084
|
-
body: await parseErrorBody(output.body, context)
|
|
1085
|
-
};
|
|
1086
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1087
|
-
switch (errorCode) {
|
|
1088
|
-
case "InternalServerException":
|
|
1089
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1090
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1091
|
-
case "InvalidInputException":
|
|
1092
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1093
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1094
|
-
case "ResourceNotFoundException":
|
|
1095
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
1096
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1097
|
-
default:
|
|
1098
|
-
const parsedBody = parsedOutput.body;
|
|
1099
|
-
return throwDefaultError({
|
|
1100
|
-
output,
|
|
1101
|
-
parsedBody,
|
|
1102
|
-
errorCode
|
|
1103
|
-
});
|
|
1104
|
-
}
|
|
1105
|
-
}, "de_DeleteEvaluationCommandError");
|
|
1106
825
|
var de_DeleteMLModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1107
826
|
if (output.statusCode >= 300) {
|
|
1108
|
-
return
|
|
827
|
+
return de_CommandError(output, context);
|
|
1109
828
|
}
|
|
1110
829
|
const data = await parseBody(output.body, context);
|
|
1111
830
|
let contents = {};
|
|
@@ -1116,34 +835,9 @@ var de_DeleteMLModelCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1116
835
|
};
|
|
1117
836
|
return response;
|
|
1118
837
|
}, "de_DeleteMLModelCommand");
|
|
1119
|
-
var de_DeleteMLModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1120
|
-
const parsedOutput = {
|
|
1121
|
-
...output,
|
|
1122
|
-
body: await parseErrorBody(output.body, context)
|
|
1123
|
-
};
|
|
1124
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1125
|
-
switch (errorCode) {
|
|
1126
|
-
case "InternalServerException":
|
|
1127
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1128
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1129
|
-
case "InvalidInputException":
|
|
1130
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1131
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1132
|
-
case "ResourceNotFoundException":
|
|
1133
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
1134
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1135
|
-
default:
|
|
1136
|
-
const parsedBody = parsedOutput.body;
|
|
1137
|
-
return throwDefaultError({
|
|
1138
|
-
output,
|
|
1139
|
-
parsedBody,
|
|
1140
|
-
errorCode
|
|
1141
|
-
});
|
|
1142
|
-
}
|
|
1143
|
-
}, "de_DeleteMLModelCommandError");
|
|
1144
838
|
var de_DeleteRealtimeEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1145
839
|
if (output.statusCode >= 300) {
|
|
1146
|
-
return
|
|
840
|
+
return de_CommandError(output, context);
|
|
1147
841
|
}
|
|
1148
842
|
const data = await parseBody(output.body, context);
|
|
1149
843
|
let contents = {};
|
|
@@ -1154,34 +848,9 @@ var de_DeleteRealtimeEndpointCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1154
848
|
};
|
|
1155
849
|
return response;
|
|
1156
850
|
}, "de_DeleteRealtimeEndpointCommand");
|
|
1157
|
-
var de_DeleteRealtimeEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1158
|
-
const parsedOutput = {
|
|
1159
|
-
...output,
|
|
1160
|
-
body: await parseErrorBody(output.body, context)
|
|
1161
|
-
};
|
|
1162
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1163
|
-
switch (errorCode) {
|
|
1164
|
-
case "InternalServerException":
|
|
1165
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1166
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1167
|
-
case "InvalidInputException":
|
|
1168
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1169
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1170
|
-
case "ResourceNotFoundException":
|
|
1171
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
1172
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1173
|
-
default:
|
|
1174
|
-
const parsedBody = parsedOutput.body;
|
|
1175
|
-
return throwDefaultError({
|
|
1176
|
-
output,
|
|
1177
|
-
parsedBody,
|
|
1178
|
-
errorCode
|
|
1179
|
-
});
|
|
1180
|
-
}
|
|
1181
|
-
}, "de_DeleteRealtimeEndpointCommandError");
|
|
1182
851
|
var de_DeleteTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1183
852
|
if (output.statusCode >= 300) {
|
|
1184
|
-
return
|
|
853
|
+
return de_CommandError(output, context);
|
|
1185
854
|
}
|
|
1186
855
|
const data = await parseBody(output.body, context);
|
|
1187
856
|
let contents = {};
|
|
@@ -1192,37 +861,9 @@ var de_DeleteTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1192
861
|
};
|
|
1193
862
|
return response;
|
|
1194
863
|
}, "de_DeleteTagsCommand");
|
|
1195
|
-
var de_DeleteTagsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1196
|
-
const parsedOutput = {
|
|
1197
|
-
...output,
|
|
1198
|
-
body: await parseErrorBody(output.body, context)
|
|
1199
|
-
};
|
|
1200
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1201
|
-
switch (errorCode) {
|
|
1202
|
-
case "InternalServerException":
|
|
1203
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1204
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1205
|
-
case "InvalidInputException":
|
|
1206
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1207
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1208
|
-
case "InvalidTagException":
|
|
1209
|
-
case "com.amazonaws.machinelearning#InvalidTagException":
|
|
1210
|
-
throw await de_InvalidTagExceptionRes(parsedOutput, context);
|
|
1211
|
-
case "ResourceNotFoundException":
|
|
1212
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
1213
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1214
|
-
default:
|
|
1215
|
-
const parsedBody = parsedOutput.body;
|
|
1216
|
-
return throwDefaultError({
|
|
1217
|
-
output,
|
|
1218
|
-
parsedBody,
|
|
1219
|
-
errorCode
|
|
1220
|
-
});
|
|
1221
|
-
}
|
|
1222
|
-
}, "de_DeleteTagsCommandError");
|
|
1223
864
|
var de_DescribeBatchPredictionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1224
865
|
if (output.statusCode >= 300) {
|
|
1225
|
-
return
|
|
866
|
+
return de_CommandError(output, context);
|
|
1226
867
|
}
|
|
1227
868
|
const data = await parseBody(output.body, context);
|
|
1228
869
|
let contents = {};
|
|
@@ -1233,31 +874,9 @@ var de_DescribeBatchPredictionsCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1233
874
|
};
|
|
1234
875
|
return response;
|
|
1235
876
|
}, "de_DescribeBatchPredictionsCommand");
|
|
1236
|
-
var de_DescribeBatchPredictionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1237
|
-
const parsedOutput = {
|
|
1238
|
-
...output,
|
|
1239
|
-
body: await parseErrorBody(output.body, context)
|
|
1240
|
-
};
|
|
1241
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1242
|
-
switch (errorCode) {
|
|
1243
|
-
case "InternalServerException":
|
|
1244
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1245
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1246
|
-
case "InvalidInputException":
|
|
1247
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1248
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1249
|
-
default:
|
|
1250
|
-
const parsedBody = parsedOutput.body;
|
|
1251
|
-
return throwDefaultError({
|
|
1252
|
-
output,
|
|
1253
|
-
parsedBody,
|
|
1254
|
-
errorCode
|
|
1255
|
-
});
|
|
1256
|
-
}
|
|
1257
|
-
}, "de_DescribeBatchPredictionsCommandError");
|
|
1258
877
|
var de_DescribeDataSourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1259
878
|
if (output.statusCode >= 300) {
|
|
1260
|
-
return
|
|
879
|
+
return de_CommandError(output, context);
|
|
1261
880
|
}
|
|
1262
881
|
const data = await parseBody(output.body, context);
|
|
1263
882
|
let contents = {};
|
|
@@ -1268,66 +887,22 @@ var de_DescribeDataSourcesCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1268
887
|
};
|
|
1269
888
|
return response;
|
|
1270
889
|
}, "de_DescribeDataSourcesCommand");
|
|
1271
|
-
var de_DescribeDataSourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1272
|
-
const parsedOutput = {
|
|
1273
|
-
...output,
|
|
1274
|
-
body: await parseErrorBody(output.body, context)
|
|
1275
|
-
};
|
|
1276
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1277
|
-
switch (errorCode) {
|
|
1278
|
-
case "InternalServerException":
|
|
1279
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1280
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1281
|
-
case "InvalidInputException":
|
|
1282
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1283
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1284
|
-
default:
|
|
1285
|
-
const parsedBody = parsedOutput.body;
|
|
1286
|
-
return throwDefaultError({
|
|
1287
|
-
output,
|
|
1288
|
-
parsedBody,
|
|
1289
|
-
errorCode
|
|
1290
|
-
});
|
|
1291
|
-
}
|
|
1292
|
-
}, "de_DescribeDataSourcesCommandError");
|
|
1293
890
|
var de_DescribeEvaluationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1294
891
|
if (output.statusCode >= 300) {
|
|
1295
|
-
return
|
|
892
|
+
return de_CommandError(output, context);
|
|
1296
893
|
}
|
|
1297
894
|
const data = await parseBody(output.body, context);
|
|
1298
|
-
let contents = {};
|
|
1299
|
-
contents = de_DescribeEvaluationsOutput(data, context);
|
|
1300
|
-
const response = {
|
|
1301
|
-
$metadata: deserializeMetadata(output),
|
|
1302
|
-
...contents
|
|
1303
|
-
};
|
|
1304
|
-
return response;
|
|
1305
|
-
}, "de_DescribeEvaluationsCommand");
|
|
1306
|
-
var de_DescribeEvaluationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1307
|
-
const parsedOutput = {
|
|
1308
|
-
...output,
|
|
1309
|
-
body: await parseErrorBody(output.body, context)
|
|
1310
|
-
};
|
|
1311
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1312
|
-
switch (errorCode) {
|
|
1313
|
-
case "InternalServerException":
|
|
1314
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1315
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1316
|
-
case "InvalidInputException":
|
|
1317
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1318
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1319
|
-
default:
|
|
1320
|
-
const parsedBody = parsedOutput.body;
|
|
1321
|
-
return throwDefaultError({
|
|
1322
|
-
output,
|
|
1323
|
-
parsedBody,
|
|
1324
|
-
errorCode
|
|
1325
|
-
});
|
|
1326
|
-
}
|
|
1327
|
-
}, "de_DescribeEvaluationsCommandError");
|
|
895
|
+
let contents = {};
|
|
896
|
+
contents = de_DescribeEvaluationsOutput(data, context);
|
|
897
|
+
const response = {
|
|
898
|
+
$metadata: deserializeMetadata(output),
|
|
899
|
+
...contents
|
|
900
|
+
};
|
|
901
|
+
return response;
|
|
902
|
+
}, "de_DescribeEvaluationsCommand");
|
|
1328
903
|
var de_DescribeMLModelsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1329
904
|
if (output.statusCode >= 300) {
|
|
1330
|
-
return
|
|
905
|
+
return de_CommandError(output, context);
|
|
1331
906
|
}
|
|
1332
907
|
const data = await parseBody(output.body, context);
|
|
1333
908
|
let contents = {};
|
|
@@ -1338,31 +913,9 @@ var de_DescribeMLModelsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1338
913
|
};
|
|
1339
914
|
return response;
|
|
1340
915
|
}, "de_DescribeMLModelsCommand");
|
|
1341
|
-
var de_DescribeMLModelsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1342
|
-
const parsedOutput = {
|
|
1343
|
-
...output,
|
|
1344
|
-
body: await parseErrorBody(output.body, context)
|
|
1345
|
-
};
|
|
1346
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1347
|
-
switch (errorCode) {
|
|
1348
|
-
case "InternalServerException":
|
|
1349
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1350
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1351
|
-
case "InvalidInputException":
|
|
1352
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1353
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1354
|
-
default:
|
|
1355
|
-
const parsedBody = parsedOutput.body;
|
|
1356
|
-
return throwDefaultError({
|
|
1357
|
-
output,
|
|
1358
|
-
parsedBody,
|
|
1359
|
-
errorCode
|
|
1360
|
-
});
|
|
1361
|
-
}
|
|
1362
|
-
}, "de_DescribeMLModelsCommandError");
|
|
1363
916
|
var de_DescribeTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1364
917
|
if (output.statusCode >= 300) {
|
|
1365
|
-
return
|
|
918
|
+
return de_CommandError(output, context);
|
|
1366
919
|
}
|
|
1367
920
|
const data = await parseBody(output.body, context);
|
|
1368
921
|
let contents = {};
|
|
@@ -1373,34 +926,9 @@ var de_DescribeTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1373
926
|
};
|
|
1374
927
|
return response;
|
|
1375
928
|
}, "de_DescribeTagsCommand");
|
|
1376
|
-
var de_DescribeTagsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1377
|
-
const parsedOutput = {
|
|
1378
|
-
...output,
|
|
1379
|
-
body: await parseErrorBody(output.body, context)
|
|
1380
|
-
};
|
|
1381
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1382
|
-
switch (errorCode) {
|
|
1383
|
-
case "InternalServerException":
|
|
1384
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1385
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1386
|
-
case "InvalidInputException":
|
|
1387
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1388
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1389
|
-
case "ResourceNotFoundException":
|
|
1390
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
1391
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1392
|
-
default:
|
|
1393
|
-
const parsedBody = parsedOutput.body;
|
|
1394
|
-
return throwDefaultError({
|
|
1395
|
-
output,
|
|
1396
|
-
parsedBody,
|
|
1397
|
-
errorCode
|
|
1398
|
-
});
|
|
1399
|
-
}
|
|
1400
|
-
}, "de_DescribeTagsCommandError");
|
|
1401
929
|
var de_GetBatchPredictionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1402
930
|
if (output.statusCode >= 300) {
|
|
1403
|
-
return
|
|
931
|
+
return de_CommandError(output, context);
|
|
1404
932
|
}
|
|
1405
933
|
const data = await parseBody(output.body, context);
|
|
1406
934
|
let contents = {};
|
|
@@ -1411,34 +939,9 @@ var de_GetBatchPredictionCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1411
939
|
};
|
|
1412
940
|
return response;
|
|
1413
941
|
}, "de_GetBatchPredictionCommand");
|
|
1414
|
-
var de_GetBatchPredictionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1415
|
-
const parsedOutput = {
|
|
1416
|
-
...output,
|
|
1417
|
-
body: await parseErrorBody(output.body, context)
|
|
1418
|
-
};
|
|
1419
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1420
|
-
switch (errorCode) {
|
|
1421
|
-
case "InternalServerException":
|
|
1422
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1423
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1424
|
-
case "InvalidInputException":
|
|
1425
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1426
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1427
|
-
case "ResourceNotFoundException":
|
|
1428
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
1429
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1430
|
-
default:
|
|
1431
|
-
const parsedBody = parsedOutput.body;
|
|
1432
|
-
return throwDefaultError({
|
|
1433
|
-
output,
|
|
1434
|
-
parsedBody,
|
|
1435
|
-
errorCode
|
|
1436
|
-
});
|
|
1437
|
-
}
|
|
1438
|
-
}, "de_GetBatchPredictionCommandError");
|
|
1439
942
|
var de_GetDataSourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1440
943
|
if (output.statusCode >= 300) {
|
|
1441
|
-
return
|
|
944
|
+
return de_CommandError(output, context);
|
|
1442
945
|
}
|
|
1443
946
|
const data = await parseBody(output.body, context);
|
|
1444
947
|
let contents = {};
|
|
@@ -1449,34 +952,9 @@ var de_GetDataSourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1449
952
|
};
|
|
1450
953
|
return response;
|
|
1451
954
|
}, "de_GetDataSourceCommand");
|
|
1452
|
-
var de_GetDataSourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1453
|
-
const parsedOutput = {
|
|
1454
|
-
...output,
|
|
1455
|
-
body: await parseErrorBody(output.body, context)
|
|
1456
|
-
};
|
|
1457
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1458
|
-
switch (errorCode) {
|
|
1459
|
-
case "InternalServerException":
|
|
1460
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1461
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1462
|
-
case "InvalidInputException":
|
|
1463
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1464
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1465
|
-
case "ResourceNotFoundException":
|
|
1466
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
1467
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1468
|
-
default:
|
|
1469
|
-
const parsedBody = parsedOutput.body;
|
|
1470
|
-
return throwDefaultError({
|
|
1471
|
-
output,
|
|
1472
|
-
parsedBody,
|
|
1473
|
-
errorCode
|
|
1474
|
-
});
|
|
1475
|
-
}
|
|
1476
|
-
}, "de_GetDataSourceCommandError");
|
|
1477
955
|
var de_GetEvaluationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1478
956
|
if (output.statusCode >= 300) {
|
|
1479
|
-
return
|
|
957
|
+
return de_CommandError(output, context);
|
|
1480
958
|
}
|
|
1481
959
|
const data = await parseBody(output.body, context);
|
|
1482
960
|
let contents = {};
|
|
@@ -1487,34 +965,9 @@ var de_GetEvaluationCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1487
965
|
};
|
|
1488
966
|
return response;
|
|
1489
967
|
}, "de_GetEvaluationCommand");
|
|
1490
|
-
var de_GetEvaluationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1491
|
-
const parsedOutput = {
|
|
1492
|
-
...output,
|
|
1493
|
-
body: await parseErrorBody(output.body, context)
|
|
1494
|
-
};
|
|
1495
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1496
|
-
switch (errorCode) {
|
|
1497
|
-
case "InternalServerException":
|
|
1498
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1499
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1500
|
-
case "InvalidInputException":
|
|
1501
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1502
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1503
|
-
case "ResourceNotFoundException":
|
|
1504
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
1505
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1506
|
-
default:
|
|
1507
|
-
const parsedBody = parsedOutput.body;
|
|
1508
|
-
return throwDefaultError({
|
|
1509
|
-
output,
|
|
1510
|
-
parsedBody,
|
|
1511
|
-
errorCode
|
|
1512
|
-
});
|
|
1513
|
-
}
|
|
1514
|
-
}, "de_GetEvaluationCommandError");
|
|
1515
968
|
var de_GetMLModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1516
969
|
if (output.statusCode >= 300) {
|
|
1517
|
-
return
|
|
970
|
+
return de_CommandError(output, context);
|
|
1518
971
|
}
|
|
1519
972
|
const data = await parseBody(output.body, context);
|
|
1520
973
|
let contents = {};
|
|
@@ -1525,34 +978,9 @@ var de_GetMLModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1525
978
|
};
|
|
1526
979
|
return response;
|
|
1527
980
|
}, "de_GetMLModelCommand");
|
|
1528
|
-
var de_GetMLModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1529
|
-
const parsedOutput = {
|
|
1530
|
-
...output,
|
|
1531
|
-
body: await parseErrorBody(output.body, context)
|
|
1532
|
-
};
|
|
1533
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1534
|
-
switch (errorCode) {
|
|
1535
|
-
case "InternalServerException":
|
|
1536
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1537
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1538
|
-
case "InvalidInputException":
|
|
1539
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1540
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1541
|
-
case "ResourceNotFoundException":
|
|
1542
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
1543
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1544
|
-
default:
|
|
1545
|
-
const parsedBody = parsedOutput.body;
|
|
1546
|
-
return throwDefaultError({
|
|
1547
|
-
output,
|
|
1548
|
-
parsedBody,
|
|
1549
|
-
errorCode
|
|
1550
|
-
});
|
|
1551
|
-
}
|
|
1552
|
-
}, "de_GetMLModelCommandError");
|
|
1553
981
|
var de_PredictCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1554
982
|
if (output.statusCode >= 300) {
|
|
1555
|
-
return
|
|
983
|
+
return de_CommandError(output, context);
|
|
1556
984
|
}
|
|
1557
985
|
const data = await parseBody(output.body, context);
|
|
1558
986
|
let contents = {};
|
|
@@ -1563,40 +991,9 @@ var de_PredictCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1563
991
|
};
|
|
1564
992
|
return response;
|
|
1565
993
|
}, "de_PredictCommand");
|
|
1566
|
-
var de_PredictCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1567
|
-
const parsedOutput = {
|
|
1568
|
-
...output,
|
|
1569
|
-
body: await parseErrorBody(output.body, context)
|
|
1570
|
-
};
|
|
1571
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1572
|
-
switch (errorCode) {
|
|
1573
|
-
case "InternalServerException":
|
|
1574
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1575
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1576
|
-
case "InvalidInputException":
|
|
1577
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1578
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1579
|
-
case "LimitExceededException":
|
|
1580
|
-
case "com.amazonaws.machinelearning#LimitExceededException":
|
|
1581
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1582
|
-
case "PredictorNotMountedException":
|
|
1583
|
-
case "com.amazonaws.machinelearning#PredictorNotMountedException":
|
|
1584
|
-
throw await de_PredictorNotMountedExceptionRes(parsedOutput, context);
|
|
1585
|
-
case "ResourceNotFoundException":
|
|
1586
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
1587
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1588
|
-
default:
|
|
1589
|
-
const parsedBody = parsedOutput.body;
|
|
1590
|
-
return throwDefaultError({
|
|
1591
|
-
output,
|
|
1592
|
-
parsedBody,
|
|
1593
|
-
errorCode
|
|
1594
|
-
});
|
|
1595
|
-
}
|
|
1596
|
-
}, "de_PredictCommandError");
|
|
1597
994
|
var de_UpdateBatchPredictionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1598
995
|
if (output.statusCode >= 300) {
|
|
1599
|
-
return
|
|
996
|
+
return de_CommandError(output, context);
|
|
1600
997
|
}
|
|
1601
998
|
const data = await parseBody(output.body, context);
|
|
1602
999
|
let contents = {};
|
|
@@ -1607,34 +1004,9 @@ var de_UpdateBatchPredictionCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1607
1004
|
};
|
|
1608
1005
|
return response;
|
|
1609
1006
|
}, "de_UpdateBatchPredictionCommand");
|
|
1610
|
-
var de_UpdateBatchPredictionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1611
|
-
const parsedOutput = {
|
|
1612
|
-
...output,
|
|
1613
|
-
body: await parseErrorBody(output.body, context)
|
|
1614
|
-
};
|
|
1615
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1616
|
-
switch (errorCode) {
|
|
1617
|
-
case "InternalServerException":
|
|
1618
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1619
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1620
|
-
case "InvalidInputException":
|
|
1621
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1622
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1623
|
-
case "ResourceNotFoundException":
|
|
1624
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
1625
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1626
|
-
default:
|
|
1627
|
-
const parsedBody = parsedOutput.body;
|
|
1628
|
-
return throwDefaultError({
|
|
1629
|
-
output,
|
|
1630
|
-
parsedBody,
|
|
1631
|
-
errorCode
|
|
1632
|
-
});
|
|
1633
|
-
}
|
|
1634
|
-
}, "de_UpdateBatchPredictionCommandError");
|
|
1635
1007
|
var de_UpdateDataSourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1636
1008
|
if (output.statusCode >= 300) {
|
|
1637
|
-
return
|
|
1009
|
+
return de_CommandError(output, context);
|
|
1638
1010
|
}
|
|
1639
1011
|
const data = await parseBody(output.body, context);
|
|
1640
1012
|
let contents = {};
|
|
@@ -1645,34 +1017,9 @@ var de_UpdateDataSourceCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1645
1017
|
};
|
|
1646
1018
|
return response;
|
|
1647
1019
|
}, "de_UpdateDataSourceCommand");
|
|
1648
|
-
var de_UpdateDataSourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1649
|
-
const parsedOutput = {
|
|
1650
|
-
...output,
|
|
1651
|
-
body: await parseErrorBody(output.body, context)
|
|
1652
|
-
};
|
|
1653
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1654
|
-
switch (errorCode) {
|
|
1655
|
-
case "InternalServerException":
|
|
1656
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1657
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1658
|
-
case "InvalidInputException":
|
|
1659
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1660
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1661
|
-
case "ResourceNotFoundException":
|
|
1662
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
1663
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1664
|
-
default:
|
|
1665
|
-
const parsedBody = parsedOutput.body;
|
|
1666
|
-
return throwDefaultError({
|
|
1667
|
-
output,
|
|
1668
|
-
parsedBody,
|
|
1669
|
-
errorCode
|
|
1670
|
-
});
|
|
1671
|
-
}
|
|
1672
|
-
}, "de_UpdateDataSourceCommandError");
|
|
1673
1020
|
var de_UpdateEvaluationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1674
1021
|
if (output.statusCode >= 300) {
|
|
1675
|
-
return
|
|
1022
|
+
return de_CommandError(output, context);
|
|
1676
1023
|
}
|
|
1677
1024
|
const data = await parseBody(output.body, context);
|
|
1678
1025
|
let contents = {};
|
|
@@ -1683,34 +1030,9 @@ var de_UpdateEvaluationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1683
1030
|
};
|
|
1684
1031
|
return response;
|
|
1685
1032
|
}, "de_UpdateEvaluationCommand");
|
|
1686
|
-
var de_UpdateEvaluationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1687
|
-
const parsedOutput = {
|
|
1688
|
-
...output,
|
|
1689
|
-
body: await parseErrorBody(output.body, context)
|
|
1690
|
-
};
|
|
1691
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1692
|
-
switch (errorCode) {
|
|
1693
|
-
case "InternalServerException":
|
|
1694
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1695
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1696
|
-
case "InvalidInputException":
|
|
1697
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1698
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1699
|
-
case "ResourceNotFoundException":
|
|
1700
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
1701
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1702
|
-
default:
|
|
1703
|
-
const parsedBody = parsedOutput.body;
|
|
1704
|
-
return throwDefaultError({
|
|
1705
|
-
output,
|
|
1706
|
-
parsedBody,
|
|
1707
|
-
errorCode
|
|
1708
|
-
});
|
|
1709
|
-
}
|
|
1710
|
-
}, "de_UpdateEvaluationCommandError");
|
|
1711
1033
|
var de_UpdateMLModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1712
1034
|
if (output.statusCode >= 300) {
|
|
1713
|
-
return
|
|
1035
|
+
return de_CommandError(output, context);
|
|
1714
1036
|
}
|
|
1715
1037
|
const data = await parseBody(output.body, context);
|
|
1716
1038
|
let contents = {};
|
|
@@ -1721,7 +1043,7 @@ var de_UpdateMLModelCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1721
1043
|
};
|
|
1722
1044
|
return response;
|
|
1723
1045
|
}, "de_UpdateMLModelCommand");
|
|
1724
|
-
var
|
|
1046
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1725
1047
|
const parsedOutput = {
|
|
1726
1048
|
...output,
|
|
1727
1049
|
body: await parseErrorBody(output.body, context)
|
|
@@ -1734,9 +1056,24 @@ var de_UpdateMLModelCommandError = /* @__PURE__ */ __name(async (output, context
|
|
|
1734
1056
|
case "InvalidInputException":
|
|
1735
1057
|
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1736
1058
|
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1059
|
+
case "InvalidTagException":
|
|
1060
|
+
case "com.amazonaws.machinelearning#InvalidTagException":
|
|
1061
|
+
throw await de_InvalidTagExceptionRes(parsedOutput, context);
|
|
1737
1062
|
case "ResourceNotFoundException":
|
|
1738
1063
|
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
1739
1064
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1065
|
+
case "TagLimitExceededException":
|
|
1066
|
+
case "com.amazonaws.machinelearning#TagLimitExceededException":
|
|
1067
|
+
throw await de_TagLimitExceededExceptionRes(parsedOutput, context);
|
|
1068
|
+
case "IdempotentParameterMismatchException":
|
|
1069
|
+
case "com.amazonaws.machinelearning#IdempotentParameterMismatchException":
|
|
1070
|
+
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
1071
|
+
case "LimitExceededException":
|
|
1072
|
+
case "com.amazonaws.machinelearning#LimitExceededException":
|
|
1073
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1074
|
+
case "PredictorNotMountedException":
|
|
1075
|
+
case "com.amazonaws.machinelearning#PredictorNotMountedException":
|
|
1076
|
+
throw await de_PredictorNotMountedExceptionRes(parsedOutput, context);
|
|
1740
1077
|
default:
|
|
1741
1078
|
const parsedBody = parsedOutput.body;
|
|
1742
1079
|
return throwDefaultError({
|
|
@@ -1745,7 +1082,7 @@ var de_UpdateMLModelCommandError = /* @__PURE__ */ __name(async (output, context
|
|
|
1745
1082
|
errorCode
|
|
1746
1083
|
});
|
|
1747
1084
|
}
|
|
1748
|
-
}, "
|
|
1085
|
+
}, "de_CommandError");
|
|
1749
1086
|
var de_IdempotentParameterMismatchExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1750
1087
|
const body = parsedOutput.body;
|
|
1751
1088
|
const deserialized = (0, import_smithy_client._json)(body);
|