@aws-sdk/client-lookoutequipment 3.503.1 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +107 -1670
- package/dist-es/protocols/Aws_json1_0.js +190 -1753
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -751,7 +751,7 @@ var se_UpdateRetrainingSchedulerCommand = /* @__PURE__ */ __name(async (input, c
|
|
|
751
751
|
}, "se_UpdateRetrainingSchedulerCommand");
|
|
752
752
|
var de_CreateDatasetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
753
753
|
if (output.statusCode >= 300) {
|
|
754
|
-
return
|
|
754
|
+
return de_CommandError(output, context);
|
|
755
755
|
}
|
|
756
756
|
const data = await parseBody(output.body, context);
|
|
757
757
|
let contents = {};
|
|
@@ -762,43 +762,9 @@ var de_CreateDatasetCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
762
762
|
};
|
|
763
763
|
return response;
|
|
764
764
|
}, "de_CreateDatasetCommand");
|
|
765
|
-
var de_CreateDatasetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
766
|
-
const parsedOutput = {
|
|
767
|
-
...output,
|
|
768
|
-
body: await parseErrorBody(output.body, context)
|
|
769
|
-
};
|
|
770
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
771
|
-
switch (errorCode) {
|
|
772
|
-
case "AccessDeniedException":
|
|
773
|
-
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
774
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
775
|
-
case "ConflictException":
|
|
776
|
-
case "com.amazonaws.lookoutequipment#ConflictException":
|
|
777
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
778
|
-
case "InternalServerException":
|
|
779
|
-
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
780
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
781
|
-
case "ServiceQuotaExceededException":
|
|
782
|
-
case "com.amazonaws.lookoutequipment#ServiceQuotaExceededException":
|
|
783
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
784
|
-
case "ThrottlingException":
|
|
785
|
-
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
786
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
787
|
-
case "ValidationException":
|
|
788
|
-
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
789
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
790
|
-
default:
|
|
791
|
-
const parsedBody = parsedOutput.body;
|
|
792
|
-
return throwDefaultError({
|
|
793
|
-
output,
|
|
794
|
-
parsedBody,
|
|
795
|
-
errorCode
|
|
796
|
-
});
|
|
797
|
-
}
|
|
798
|
-
}, "de_CreateDatasetCommandError");
|
|
799
765
|
var de_CreateInferenceSchedulerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
800
766
|
if (output.statusCode >= 300) {
|
|
801
|
-
return
|
|
767
|
+
return de_CommandError(output, context);
|
|
802
768
|
}
|
|
803
769
|
const data = await parseBody(output.body, context);
|
|
804
770
|
let contents = {};
|
|
@@ -809,46 +775,9 @@ var de_CreateInferenceSchedulerCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
809
775
|
};
|
|
810
776
|
return response;
|
|
811
777
|
}, "de_CreateInferenceSchedulerCommand");
|
|
812
|
-
var de_CreateInferenceSchedulerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
813
|
-
const parsedOutput = {
|
|
814
|
-
...output,
|
|
815
|
-
body: await parseErrorBody(output.body, context)
|
|
816
|
-
};
|
|
817
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
818
|
-
switch (errorCode) {
|
|
819
|
-
case "AccessDeniedException":
|
|
820
|
-
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
821
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
822
|
-
case "ConflictException":
|
|
823
|
-
case "com.amazonaws.lookoutequipment#ConflictException":
|
|
824
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
825
|
-
case "InternalServerException":
|
|
826
|
-
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
827
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
828
|
-
case "ResourceNotFoundException":
|
|
829
|
-
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
830
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
831
|
-
case "ServiceQuotaExceededException":
|
|
832
|
-
case "com.amazonaws.lookoutequipment#ServiceQuotaExceededException":
|
|
833
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
834
|
-
case "ThrottlingException":
|
|
835
|
-
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
836
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
837
|
-
case "ValidationException":
|
|
838
|
-
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
839
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
840
|
-
default:
|
|
841
|
-
const parsedBody = parsedOutput.body;
|
|
842
|
-
return throwDefaultError({
|
|
843
|
-
output,
|
|
844
|
-
parsedBody,
|
|
845
|
-
errorCode
|
|
846
|
-
});
|
|
847
|
-
}
|
|
848
|
-
}, "de_CreateInferenceSchedulerCommandError");
|
|
849
778
|
var de_CreateLabelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
850
779
|
if (output.statusCode >= 300) {
|
|
851
|
-
return
|
|
780
|
+
return de_CommandError(output, context);
|
|
852
781
|
}
|
|
853
782
|
const data = await parseBody(output.body, context);
|
|
854
783
|
let contents = {};
|
|
@@ -859,46 +788,9 @@ var de_CreateLabelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
859
788
|
};
|
|
860
789
|
return response;
|
|
861
790
|
}, "de_CreateLabelCommand");
|
|
862
|
-
var de_CreateLabelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
863
|
-
const parsedOutput = {
|
|
864
|
-
...output,
|
|
865
|
-
body: await parseErrorBody(output.body, context)
|
|
866
|
-
};
|
|
867
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
868
|
-
switch (errorCode) {
|
|
869
|
-
case "AccessDeniedException":
|
|
870
|
-
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
871
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
872
|
-
case "ConflictException":
|
|
873
|
-
case "com.amazonaws.lookoutequipment#ConflictException":
|
|
874
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
875
|
-
case "InternalServerException":
|
|
876
|
-
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
877
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
878
|
-
case "ResourceNotFoundException":
|
|
879
|
-
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
880
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
881
|
-
case "ServiceQuotaExceededException":
|
|
882
|
-
case "com.amazonaws.lookoutequipment#ServiceQuotaExceededException":
|
|
883
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
884
|
-
case "ThrottlingException":
|
|
885
|
-
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
886
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
887
|
-
case "ValidationException":
|
|
888
|
-
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
889
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
890
|
-
default:
|
|
891
|
-
const parsedBody = parsedOutput.body;
|
|
892
|
-
return throwDefaultError({
|
|
893
|
-
output,
|
|
894
|
-
parsedBody,
|
|
895
|
-
errorCode
|
|
896
|
-
});
|
|
897
|
-
}
|
|
898
|
-
}, "de_CreateLabelCommandError");
|
|
899
791
|
var de_CreateLabelGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
900
792
|
if (output.statusCode >= 300) {
|
|
901
|
-
return
|
|
793
|
+
return de_CommandError(output, context);
|
|
902
794
|
}
|
|
903
795
|
const data = await parseBody(output.body, context);
|
|
904
796
|
let contents = {};
|
|
@@ -909,43 +801,9 @@ var de_CreateLabelGroupCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
909
801
|
};
|
|
910
802
|
return response;
|
|
911
803
|
}, "de_CreateLabelGroupCommand");
|
|
912
|
-
var de_CreateLabelGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
913
|
-
const parsedOutput = {
|
|
914
|
-
...output,
|
|
915
|
-
body: await parseErrorBody(output.body, context)
|
|
916
|
-
};
|
|
917
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
918
|
-
switch (errorCode) {
|
|
919
|
-
case "AccessDeniedException":
|
|
920
|
-
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
921
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
922
|
-
case "ConflictException":
|
|
923
|
-
case "com.amazonaws.lookoutequipment#ConflictException":
|
|
924
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
925
|
-
case "InternalServerException":
|
|
926
|
-
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
927
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
928
|
-
case "ServiceQuotaExceededException":
|
|
929
|
-
case "com.amazonaws.lookoutequipment#ServiceQuotaExceededException":
|
|
930
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
931
|
-
case "ThrottlingException":
|
|
932
|
-
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
933
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
934
|
-
case "ValidationException":
|
|
935
|
-
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
936
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
937
|
-
default:
|
|
938
|
-
const parsedBody = parsedOutput.body;
|
|
939
|
-
return throwDefaultError({
|
|
940
|
-
output,
|
|
941
|
-
parsedBody,
|
|
942
|
-
errorCode
|
|
943
|
-
});
|
|
944
|
-
}
|
|
945
|
-
}, "de_CreateLabelGroupCommandError");
|
|
946
804
|
var de_CreateModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
947
805
|
if (output.statusCode >= 300) {
|
|
948
|
-
return
|
|
806
|
+
return de_CommandError(output, context);
|
|
949
807
|
}
|
|
950
808
|
const data = await parseBody(output.body, context);
|
|
951
809
|
let contents = {};
|
|
@@ -956,46 +814,9 @@ var de_CreateModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
956
814
|
};
|
|
957
815
|
return response;
|
|
958
816
|
}, "de_CreateModelCommand");
|
|
959
|
-
var de_CreateModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
960
|
-
const parsedOutput = {
|
|
961
|
-
...output,
|
|
962
|
-
body: await parseErrorBody(output.body, context)
|
|
963
|
-
};
|
|
964
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
965
|
-
switch (errorCode) {
|
|
966
|
-
case "AccessDeniedException":
|
|
967
|
-
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
968
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
969
|
-
case "ConflictException":
|
|
970
|
-
case "com.amazonaws.lookoutequipment#ConflictException":
|
|
971
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
972
|
-
case "InternalServerException":
|
|
973
|
-
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
974
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
975
|
-
case "ResourceNotFoundException":
|
|
976
|
-
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
977
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
978
|
-
case "ServiceQuotaExceededException":
|
|
979
|
-
case "com.amazonaws.lookoutequipment#ServiceQuotaExceededException":
|
|
980
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
981
|
-
case "ThrottlingException":
|
|
982
|
-
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
983
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
984
|
-
case "ValidationException":
|
|
985
|
-
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
986
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
987
|
-
default:
|
|
988
|
-
const parsedBody = parsedOutput.body;
|
|
989
|
-
return throwDefaultError({
|
|
990
|
-
output,
|
|
991
|
-
parsedBody,
|
|
992
|
-
errorCode
|
|
993
|
-
});
|
|
994
|
-
}
|
|
995
|
-
}, "de_CreateModelCommandError");
|
|
996
817
|
var de_CreateRetrainingSchedulerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
997
818
|
if (output.statusCode >= 300) {
|
|
998
|
-
return
|
|
819
|
+
return de_CommandError(output, context);
|
|
999
820
|
}
|
|
1000
821
|
const data = await parseBody(output.body, context);
|
|
1001
822
|
let contents = {};
|
|
@@ -1006,43 +827,9 @@ var de_CreateRetrainingSchedulerCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1006
827
|
};
|
|
1007
828
|
return response;
|
|
1008
829
|
}, "de_CreateRetrainingSchedulerCommand");
|
|
1009
|
-
var de_CreateRetrainingSchedulerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1010
|
-
const parsedOutput = {
|
|
1011
|
-
...output,
|
|
1012
|
-
body: await parseErrorBody(output.body, context)
|
|
1013
|
-
};
|
|
1014
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1015
|
-
switch (errorCode) {
|
|
1016
|
-
case "AccessDeniedException":
|
|
1017
|
-
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
1018
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1019
|
-
case "ConflictException":
|
|
1020
|
-
case "com.amazonaws.lookoutequipment#ConflictException":
|
|
1021
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1022
|
-
case "InternalServerException":
|
|
1023
|
-
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
1024
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1025
|
-
case "ResourceNotFoundException":
|
|
1026
|
-
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
1027
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1028
|
-
case "ThrottlingException":
|
|
1029
|
-
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
1030
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1031
|
-
case "ValidationException":
|
|
1032
|
-
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
1033
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1034
|
-
default:
|
|
1035
|
-
const parsedBody = parsedOutput.body;
|
|
1036
|
-
return throwDefaultError({
|
|
1037
|
-
output,
|
|
1038
|
-
parsedBody,
|
|
1039
|
-
errorCode
|
|
1040
|
-
});
|
|
1041
|
-
}
|
|
1042
|
-
}, "de_CreateRetrainingSchedulerCommandError");
|
|
1043
830
|
var de_DeleteDatasetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1044
831
|
if (output.statusCode >= 300) {
|
|
1045
|
-
return
|
|
832
|
+
return de_CommandError(output, context);
|
|
1046
833
|
}
|
|
1047
834
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1048
835
|
const response = {
|
|
@@ -1050,43 +837,9 @@ var de_DeleteDatasetCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1050
837
|
};
|
|
1051
838
|
return response;
|
|
1052
839
|
}, "de_DeleteDatasetCommand");
|
|
1053
|
-
var de_DeleteDatasetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1054
|
-
const parsedOutput = {
|
|
1055
|
-
...output,
|
|
1056
|
-
body: await parseErrorBody(output.body, context)
|
|
1057
|
-
};
|
|
1058
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1059
|
-
switch (errorCode) {
|
|
1060
|
-
case "AccessDeniedException":
|
|
1061
|
-
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
1062
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1063
|
-
case "ConflictException":
|
|
1064
|
-
case "com.amazonaws.lookoutequipment#ConflictException":
|
|
1065
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1066
|
-
case "InternalServerException":
|
|
1067
|
-
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
1068
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1069
|
-
case "ResourceNotFoundException":
|
|
1070
|
-
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
1071
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1072
|
-
case "ThrottlingException":
|
|
1073
|
-
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
1074
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1075
|
-
case "ValidationException":
|
|
1076
|
-
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
1077
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1078
|
-
default:
|
|
1079
|
-
const parsedBody = parsedOutput.body;
|
|
1080
|
-
return throwDefaultError({
|
|
1081
|
-
output,
|
|
1082
|
-
parsedBody,
|
|
1083
|
-
errorCode
|
|
1084
|
-
});
|
|
1085
|
-
}
|
|
1086
|
-
}, "de_DeleteDatasetCommandError");
|
|
1087
840
|
var de_DeleteInferenceSchedulerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1088
841
|
if (output.statusCode >= 300) {
|
|
1089
|
-
return
|
|
842
|
+
return de_CommandError(output, context);
|
|
1090
843
|
}
|
|
1091
844
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1092
845
|
const response = {
|
|
@@ -1094,87 +847,19 @@ var de_DeleteInferenceSchedulerCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1094
847
|
};
|
|
1095
848
|
return response;
|
|
1096
849
|
}, "de_DeleteInferenceSchedulerCommand");
|
|
1097
|
-
var
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
const
|
|
1103
|
-
|
|
1104
|
-
case "AccessDeniedException":
|
|
1105
|
-
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
1106
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1107
|
-
case "ConflictException":
|
|
1108
|
-
case "com.amazonaws.lookoutequipment#ConflictException":
|
|
1109
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1110
|
-
case "InternalServerException":
|
|
1111
|
-
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
1112
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1113
|
-
case "ResourceNotFoundException":
|
|
1114
|
-
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
1115
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1116
|
-
case "ThrottlingException":
|
|
1117
|
-
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
1118
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1119
|
-
case "ValidationException":
|
|
1120
|
-
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
1121
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1122
|
-
default:
|
|
1123
|
-
const parsedBody = parsedOutput.body;
|
|
1124
|
-
return throwDefaultError({
|
|
1125
|
-
output,
|
|
1126
|
-
parsedBody,
|
|
1127
|
-
errorCode
|
|
1128
|
-
});
|
|
1129
|
-
}
|
|
1130
|
-
}, "de_DeleteInferenceSchedulerCommandError");
|
|
1131
|
-
var de_DeleteLabelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1132
|
-
if (output.statusCode >= 300) {
|
|
1133
|
-
return de_DeleteLabelCommandError(output, context);
|
|
1134
|
-
}
|
|
1135
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1136
|
-
const response = {
|
|
1137
|
-
$metadata: deserializeMetadata(output)
|
|
850
|
+
var de_DeleteLabelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
851
|
+
if (output.statusCode >= 300) {
|
|
852
|
+
return de_CommandError(output, context);
|
|
853
|
+
}
|
|
854
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
855
|
+
const response = {
|
|
856
|
+
$metadata: deserializeMetadata(output)
|
|
1138
857
|
};
|
|
1139
858
|
return response;
|
|
1140
859
|
}, "de_DeleteLabelCommand");
|
|
1141
|
-
var de_DeleteLabelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1142
|
-
const parsedOutput = {
|
|
1143
|
-
...output,
|
|
1144
|
-
body: await parseErrorBody(output.body, context)
|
|
1145
|
-
};
|
|
1146
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1147
|
-
switch (errorCode) {
|
|
1148
|
-
case "AccessDeniedException":
|
|
1149
|
-
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
1150
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1151
|
-
case "ConflictException":
|
|
1152
|
-
case "com.amazonaws.lookoutequipment#ConflictException":
|
|
1153
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1154
|
-
case "InternalServerException":
|
|
1155
|
-
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
1156
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1157
|
-
case "ResourceNotFoundException":
|
|
1158
|
-
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
1159
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1160
|
-
case "ThrottlingException":
|
|
1161
|
-
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
1162
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1163
|
-
case "ValidationException":
|
|
1164
|
-
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
1165
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1166
|
-
default:
|
|
1167
|
-
const parsedBody = parsedOutput.body;
|
|
1168
|
-
return throwDefaultError({
|
|
1169
|
-
output,
|
|
1170
|
-
parsedBody,
|
|
1171
|
-
errorCode
|
|
1172
|
-
});
|
|
1173
|
-
}
|
|
1174
|
-
}, "de_DeleteLabelCommandError");
|
|
1175
860
|
var de_DeleteLabelGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1176
861
|
if (output.statusCode >= 300) {
|
|
1177
|
-
return
|
|
862
|
+
return de_CommandError(output, context);
|
|
1178
863
|
}
|
|
1179
864
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1180
865
|
const response = {
|
|
@@ -1182,43 +867,9 @@ var de_DeleteLabelGroupCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1182
867
|
};
|
|
1183
868
|
return response;
|
|
1184
869
|
}, "de_DeleteLabelGroupCommand");
|
|
1185
|
-
var de_DeleteLabelGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1186
|
-
const parsedOutput = {
|
|
1187
|
-
...output,
|
|
1188
|
-
body: await parseErrorBody(output.body, context)
|
|
1189
|
-
};
|
|
1190
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1191
|
-
switch (errorCode) {
|
|
1192
|
-
case "AccessDeniedException":
|
|
1193
|
-
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
1194
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1195
|
-
case "ConflictException":
|
|
1196
|
-
case "com.amazonaws.lookoutequipment#ConflictException":
|
|
1197
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1198
|
-
case "InternalServerException":
|
|
1199
|
-
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
1200
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1201
|
-
case "ResourceNotFoundException":
|
|
1202
|
-
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
1203
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1204
|
-
case "ThrottlingException":
|
|
1205
|
-
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
1206
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1207
|
-
case "ValidationException":
|
|
1208
|
-
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
1209
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1210
|
-
default:
|
|
1211
|
-
const parsedBody = parsedOutput.body;
|
|
1212
|
-
return throwDefaultError({
|
|
1213
|
-
output,
|
|
1214
|
-
parsedBody,
|
|
1215
|
-
errorCode
|
|
1216
|
-
});
|
|
1217
|
-
}
|
|
1218
|
-
}, "de_DeleteLabelGroupCommandError");
|
|
1219
870
|
var de_DeleteModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1220
871
|
if (output.statusCode >= 300) {
|
|
1221
|
-
return
|
|
872
|
+
return de_CommandError(output, context);
|
|
1222
873
|
}
|
|
1223
874
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1224
875
|
const response = {
|
|
@@ -1226,43 +877,9 @@ var de_DeleteModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1226
877
|
};
|
|
1227
878
|
return response;
|
|
1228
879
|
}, "de_DeleteModelCommand");
|
|
1229
|
-
var de_DeleteModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1230
|
-
const parsedOutput = {
|
|
1231
|
-
...output,
|
|
1232
|
-
body: await parseErrorBody(output.body, context)
|
|
1233
|
-
};
|
|
1234
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1235
|
-
switch (errorCode) {
|
|
1236
|
-
case "AccessDeniedException":
|
|
1237
|
-
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
1238
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1239
|
-
case "ConflictException":
|
|
1240
|
-
case "com.amazonaws.lookoutequipment#ConflictException":
|
|
1241
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1242
|
-
case "InternalServerException":
|
|
1243
|
-
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
1244
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1245
|
-
case "ResourceNotFoundException":
|
|
1246
|
-
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
1247
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1248
|
-
case "ThrottlingException":
|
|
1249
|
-
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
1250
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1251
|
-
case "ValidationException":
|
|
1252
|
-
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
1253
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1254
|
-
default:
|
|
1255
|
-
const parsedBody = parsedOutput.body;
|
|
1256
|
-
return throwDefaultError({
|
|
1257
|
-
output,
|
|
1258
|
-
parsedBody,
|
|
1259
|
-
errorCode
|
|
1260
|
-
});
|
|
1261
|
-
}
|
|
1262
|
-
}, "de_DeleteModelCommandError");
|
|
1263
880
|
var de_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1264
881
|
if (output.statusCode >= 300) {
|
|
1265
|
-
return
|
|
882
|
+
return de_CommandError(output, context);
|
|
1266
883
|
}
|
|
1267
884
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1268
885
|
const response = {
|
|
@@ -1270,43 +887,9 @@ var de_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1270
887
|
};
|
|
1271
888
|
return response;
|
|
1272
889
|
}, "de_DeleteResourcePolicyCommand");
|
|
1273
|
-
var de_DeleteResourcePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1274
|
-
const parsedOutput = {
|
|
1275
|
-
...output,
|
|
1276
|
-
body: await parseErrorBody(output.body, context)
|
|
1277
|
-
};
|
|
1278
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1279
|
-
switch (errorCode) {
|
|
1280
|
-
case "AccessDeniedException":
|
|
1281
|
-
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
1282
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1283
|
-
case "ConflictException":
|
|
1284
|
-
case "com.amazonaws.lookoutequipment#ConflictException":
|
|
1285
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1286
|
-
case "InternalServerException":
|
|
1287
|
-
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
1288
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1289
|
-
case "ResourceNotFoundException":
|
|
1290
|
-
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
1291
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1292
|
-
case "ThrottlingException":
|
|
1293
|
-
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
1294
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1295
|
-
case "ValidationException":
|
|
1296
|
-
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
1297
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1298
|
-
default:
|
|
1299
|
-
const parsedBody = parsedOutput.body;
|
|
1300
|
-
return throwDefaultError({
|
|
1301
|
-
output,
|
|
1302
|
-
parsedBody,
|
|
1303
|
-
errorCode
|
|
1304
|
-
});
|
|
1305
|
-
}
|
|
1306
|
-
}, "de_DeleteResourcePolicyCommandError");
|
|
1307
890
|
var de_DeleteRetrainingSchedulerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1308
891
|
if (output.statusCode >= 300) {
|
|
1309
|
-
return
|
|
892
|
+
return de_CommandError(output, context);
|
|
1310
893
|
}
|
|
1311
894
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1312
895
|
const response = {
|
|
@@ -1314,43 +897,9 @@ var de_DeleteRetrainingSchedulerCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1314
897
|
};
|
|
1315
898
|
return response;
|
|
1316
899
|
}, "de_DeleteRetrainingSchedulerCommand");
|
|
1317
|
-
var de_DeleteRetrainingSchedulerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1318
|
-
const parsedOutput = {
|
|
1319
|
-
...output,
|
|
1320
|
-
body: await parseErrorBody(output.body, context)
|
|
1321
|
-
};
|
|
1322
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1323
|
-
switch (errorCode) {
|
|
1324
|
-
case "AccessDeniedException":
|
|
1325
|
-
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
1326
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1327
|
-
case "ConflictException":
|
|
1328
|
-
case "com.amazonaws.lookoutequipment#ConflictException":
|
|
1329
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1330
|
-
case "InternalServerException":
|
|
1331
|
-
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
1332
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1333
|
-
case "ResourceNotFoundException":
|
|
1334
|
-
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
1335
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1336
|
-
case "ThrottlingException":
|
|
1337
|
-
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
1338
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1339
|
-
case "ValidationException":
|
|
1340
|
-
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
1341
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1342
|
-
default:
|
|
1343
|
-
const parsedBody = parsedOutput.body;
|
|
1344
|
-
return throwDefaultError({
|
|
1345
|
-
output,
|
|
1346
|
-
parsedBody,
|
|
1347
|
-
errorCode
|
|
1348
|
-
});
|
|
1349
|
-
}
|
|
1350
|
-
}, "de_DeleteRetrainingSchedulerCommandError");
|
|
1351
900
|
var de_DescribeDataIngestionJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1352
901
|
if (output.statusCode >= 300) {
|
|
1353
|
-
return
|
|
902
|
+
return de_CommandError(output, context);
|
|
1354
903
|
}
|
|
1355
904
|
const data = await parseBody(output.body, context);
|
|
1356
905
|
let contents = {};
|
|
@@ -1361,40 +910,9 @@ var de_DescribeDataIngestionJobCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1361
910
|
};
|
|
1362
911
|
return response;
|
|
1363
912
|
}, "de_DescribeDataIngestionJobCommand");
|
|
1364
|
-
var de_DescribeDataIngestionJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1365
|
-
const parsedOutput = {
|
|
1366
|
-
...output,
|
|
1367
|
-
body: await parseErrorBody(output.body, context)
|
|
1368
|
-
};
|
|
1369
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1370
|
-
switch (errorCode) {
|
|
1371
|
-
case "AccessDeniedException":
|
|
1372
|
-
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
1373
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1374
|
-
case "InternalServerException":
|
|
1375
|
-
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
1376
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1377
|
-
case "ResourceNotFoundException":
|
|
1378
|
-
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
1379
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1380
|
-
case "ThrottlingException":
|
|
1381
|
-
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
1382
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1383
|
-
case "ValidationException":
|
|
1384
|
-
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
1385
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1386
|
-
default:
|
|
1387
|
-
const parsedBody = parsedOutput.body;
|
|
1388
|
-
return throwDefaultError({
|
|
1389
|
-
output,
|
|
1390
|
-
parsedBody,
|
|
1391
|
-
errorCode
|
|
1392
|
-
});
|
|
1393
|
-
}
|
|
1394
|
-
}, "de_DescribeDataIngestionJobCommandError");
|
|
1395
913
|
var de_DescribeDatasetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1396
914
|
if (output.statusCode >= 300) {
|
|
1397
|
-
return
|
|
915
|
+
return de_CommandError(output, context);
|
|
1398
916
|
}
|
|
1399
917
|
const data = await parseBody(output.body, context);
|
|
1400
918
|
let contents = {};
|
|
@@ -1405,40 +923,9 @@ var de_DescribeDatasetCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1405
923
|
};
|
|
1406
924
|
return response;
|
|
1407
925
|
}, "de_DescribeDatasetCommand");
|
|
1408
|
-
var de_DescribeDatasetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1409
|
-
const parsedOutput = {
|
|
1410
|
-
...output,
|
|
1411
|
-
body: await parseErrorBody(output.body, context)
|
|
1412
|
-
};
|
|
1413
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1414
|
-
switch (errorCode) {
|
|
1415
|
-
case "AccessDeniedException":
|
|
1416
|
-
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
1417
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1418
|
-
case "InternalServerException":
|
|
1419
|
-
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
1420
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1421
|
-
case "ResourceNotFoundException":
|
|
1422
|
-
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
1423
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1424
|
-
case "ThrottlingException":
|
|
1425
|
-
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
1426
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1427
|
-
case "ValidationException":
|
|
1428
|
-
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
1429
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1430
|
-
default:
|
|
1431
|
-
const parsedBody = parsedOutput.body;
|
|
1432
|
-
return throwDefaultError({
|
|
1433
|
-
output,
|
|
1434
|
-
parsedBody,
|
|
1435
|
-
errorCode
|
|
1436
|
-
});
|
|
1437
|
-
}
|
|
1438
|
-
}, "de_DescribeDatasetCommandError");
|
|
1439
926
|
var de_DescribeInferenceSchedulerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1440
927
|
if (output.statusCode >= 300) {
|
|
1441
|
-
return
|
|
928
|
+
return de_CommandError(output, context);
|
|
1442
929
|
}
|
|
1443
930
|
const data = await parseBody(output.body, context);
|
|
1444
931
|
let contents = {};
|
|
@@ -1449,84 +936,22 @@ var de_DescribeInferenceSchedulerCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1449
936
|
};
|
|
1450
937
|
return response;
|
|
1451
938
|
}, "de_DescribeInferenceSchedulerCommand");
|
|
1452
|
-
var
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
case "InternalServerException":
|
|
1463
|
-
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
1464
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1465
|
-
case "ResourceNotFoundException":
|
|
1466
|
-
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
1467
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1468
|
-
case "ThrottlingException":
|
|
1469
|
-
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
1470
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1471
|
-
case "ValidationException":
|
|
1472
|
-
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
1473
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1474
|
-
default:
|
|
1475
|
-
const parsedBody = parsedOutput.body;
|
|
1476
|
-
return throwDefaultError({
|
|
1477
|
-
output,
|
|
1478
|
-
parsedBody,
|
|
1479
|
-
errorCode
|
|
1480
|
-
});
|
|
1481
|
-
}
|
|
1482
|
-
}, "de_DescribeInferenceSchedulerCommandError");
|
|
1483
|
-
var de_DescribeLabelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1484
|
-
if (output.statusCode >= 300) {
|
|
1485
|
-
return de_DescribeLabelCommandError(output, context);
|
|
1486
|
-
}
|
|
1487
|
-
const data = await parseBody(output.body, context);
|
|
1488
|
-
let contents = {};
|
|
1489
|
-
contents = de_DescribeLabelResponse(data, context);
|
|
1490
|
-
const response = {
|
|
1491
|
-
$metadata: deserializeMetadata(output),
|
|
1492
|
-
...contents
|
|
939
|
+
var de_DescribeLabelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
940
|
+
if (output.statusCode >= 300) {
|
|
941
|
+
return de_CommandError(output, context);
|
|
942
|
+
}
|
|
943
|
+
const data = await parseBody(output.body, context);
|
|
944
|
+
let contents = {};
|
|
945
|
+
contents = de_DescribeLabelResponse(data, context);
|
|
946
|
+
const response = {
|
|
947
|
+
$metadata: deserializeMetadata(output),
|
|
948
|
+
...contents
|
|
1493
949
|
};
|
|
1494
950
|
return response;
|
|
1495
951
|
}, "de_DescribeLabelCommand");
|
|
1496
|
-
var de_DescribeLabelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1497
|
-
const parsedOutput = {
|
|
1498
|
-
...output,
|
|
1499
|
-
body: await parseErrorBody(output.body, context)
|
|
1500
|
-
};
|
|
1501
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1502
|
-
switch (errorCode) {
|
|
1503
|
-
case "AccessDeniedException":
|
|
1504
|
-
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
1505
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1506
|
-
case "InternalServerException":
|
|
1507
|
-
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
1508
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1509
|
-
case "ResourceNotFoundException":
|
|
1510
|
-
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
1511
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1512
|
-
case "ThrottlingException":
|
|
1513
|
-
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
1514
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1515
|
-
case "ValidationException":
|
|
1516
|
-
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
1517
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1518
|
-
default:
|
|
1519
|
-
const parsedBody = parsedOutput.body;
|
|
1520
|
-
return throwDefaultError({
|
|
1521
|
-
output,
|
|
1522
|
-
parsedBody,
|
|
1523
|
-
errorCode
|
|
1524
|
-
});
|
|
1525
|
-
}
|
|
1526
|
-
}, "de_DescribeLabelCommandError");
|
|
1527
952
|
var de_DescribeLabelGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1528
953
|
if (output.statusCode >= 300) {
|
|
1529
|
-
return
|
|
954
|
+
return de_CommandError(output, context);
|
|
1530
955
|
}
|
|
1531
956
|
const data = await parseBody(output.body, context);
|
|
1532
957
|
let contents = {};
|
|
@@ -1537,40 +962,9 @@ var de_DescribeLabelGroupCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1537
962
|
};
|
|
1538
963
|
return response;
|
|
1539
964
|
}, "de_DescribeLabelGroupCommand");
|
|
1540
|
-
var de_DescribeLabelGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1541
|
-
const parsedOutput = {
|
|
1542
|
-
...output,
|
|
1543
|
-
body: await parseErrorBody(output.body, context)
|
|
1544
|
-
};
|
|
1545
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1546
|
-
switch (errorCode) {
|
|
1547
|
-
case "AccessDeniedException":
|
|
1548
|
-
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
1549
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1550
|
-
case "InternalServerException":
|
|
1551
|
-
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
1552
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1553
|
-
case "ResourceNotFoundException":
|
|
1554
|
-
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
1555
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1556
|
-
case "ThrottlingException":
|
|
1557
|
-
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
1558
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1559
|
-
case "ValidationException":
|
|
1560
|
-
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
1561
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1562
|
-
default:
|
|
1563
|
-
const parsedBody = parsedOutput.body;
|
|
1564
|
-
return throwDefaultError({
|
|
1565
|
-
output,
|
|
1566
|
-
parsedBody,
|
|
1567
|
-
errorCode
|
|
1568
|
-
});
|
|
1569
|
-
}
|
|
1570
|
-
}, "de_DescribeLabelGroupCommandError");
|
|
1571
965
|
var de_DescribeModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1572
966
|
if (output.statusCode >= 300) {
|
|
1573
|
-
return
|
|
967
|
+
return de_CommandError(output, context);
|
|
1574
968
|
}
|
|
1575
969
|
const data = await parseBody(output.body, context);
|
|
1576
970
|
let contents = {};
|
|
@@ -1581,40 +975,9 @@ var de_DescribeModelCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1581
975
|
};
|
|
1582
976
|
return response;
|
|
1583
977
|
}, "de_DescribeModelCommand");
|
|
1584
|
-
var de_DescribeModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1585
|
-
const parsedOutput = {
|
|
1586
|
-
...output,
|
|
1587
|
-
body: await parseErrorBody(output.body, context)
|
|
1588
|
-
};
|
|
1589
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1590
|
-
switch (errorCode) {
|
|
1591
|
-
case "AccessDeniedException":
|
|
1592
|
-
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
1593
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1594
|
-
case "InternalServerException":
|
|
1595
|
-
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
1596
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1597
|
-
case "ResourceNotFoundException":
|
|
1598
|
-
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
1599
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1600
|
-
case "ThrottlingException":
|
|
1601
|
-
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
1602
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1603
|
-
case "ValidationException":
|
|
1604
|
-
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
1605
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1606
|
-
default:
|
|
1607
|
-
const parsedBody = parsedOutput.body;
|
|
1608
|
-
return throwDefaultError({
|
|
1609
|
-
output,
|
|
1610
|
-
parsedBody,
|
|
1611
|
-
errorCode
|
|
1612
|
-
});
|
|
1613
|
-
}
|
|
1614
|
-
}, "de_DescribeModelCommandError");
|
|
1615
978
|
var de_DescribeModelVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1616
979
|
if (output.statusCode >= 300) {
|
|
1617
|
-
return
|
|
980
|
+
return de_CommandError(output, context);
|
|
1618
981
|
}
|
|
1619
982
|
const data = await parseBody(output.body, context);
|
|
1620
983
|
let contents = {};
|
|
@@ -1625,40 +988,9 @@ var de_DescribeModelVersionCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1625
988
|
};
|
|
1626
989
|
return response;
|
|
1627
990
|
}, "de_DescribeModelVersionCommand");
|
|
1628
|
-
var de_DescribeModelVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1629
|
-
const parsedOutput = {
|
|
1630
|
-
...output,
|
|
1631
|
-
body: await parseErrorBody(output.body, context)
|
|
1632
|
-
};
|
|
1633
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1634
|
-
switch (errorCode) {
|
|
1635
|
-
case "AccessDeniedException":
|
|
1636
|
-
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
1637
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1638
|
-
case "InternalServerException":
|
|
1639
|
-
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
1640
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1641
|
-
case "ResourceNotFoundException":
|
|
1642
|
-
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
1643
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1644
|
-
case "ThrottlingException":
|
|
1645
|
-
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
1646
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1647
|
-
case "ValidationException":
|
|
1648
|
-
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
1649
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1650
|
-
default:
|
|
1651
|
-
const parsedBody = parsedOutput.body;
|
|
1652
|
-
return throwDefaultError({
|
|
1653
|
-
output,
|
|
1654
|
-
parsedBody,
|
|
1655
|
-
errorCode
|
|
1656
|
-
});
|
|
1657
|
-
}
|
|
1658
|
-
}, "de_DescribeModelVersionCommandError");
|
|
1659
991
|
var de_DescribeResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1660
992
|
if (output.statusCode >= 300) {
|
|
1661
|
-
return
|
|
993
|
+
return de_CommandError(output, context);
|
|
1662
994
|
}
|
|
1663
995
|
const data = await parseBody(output.body, context);
|
|
1664
996
|
let contents = {};
|
|
@@ -1669,40 +1001,9 @@ var de_DescribeResourcePolicyCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1669
1001
|
};
|
|
1670
1002
|
return response;
|
|
1671
1003
|
}, "de_DescribeResourcePolicyCommand");
|
|
1672
|
-
var de_DescribeResourcePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1673
|
-
const parsedOutput = {
|
|
1674
|
-
...output,
|
|
1675
|
-
body: await parseErrorBody(output.body, context)
|
|
1676
|
-
};
|
|
1677
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1678
|
-
switch (errorCode) {
|
|
1679
|
-
case "AccessDeniedException":
|
|
1680
|
-
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
1681
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1682
|
-
case "InternalServerException":
|
|
1683
|
-
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
1684
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1685
|
-
case "ResourceNotFoundException":
|
|
1686
|
-
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
1687
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1688
|
-
case "ThrottlingException":
|
|
1689
|
-
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
1690
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1691
|
-
case "ValidationException":
|
|
1692
|
-
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
1693
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1694
|
-
default:
|
|
1695
|
-
const parsedBody = parsedOutput.body;
|
|
1696
|
-
return throwDefaultError({
|
|
1697
|
-
output,
|
|
1698
|
-
parsedBody,
|
|
1699
|
-
errorCode
|
|
1700
|
-
});
|
|
1701
|
-
}
|
|
1702
|
-
}, "de_DescribeResourcePolicyCommandError");
|
|
1703
1004
|
var de_DescribeRetrainingSchedulerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1704
1005
|
if (output.statusCode >= 300) {
|
|
1705
|
-
return
|
|
1006
|
+
return de_CommandError(output, context);
|
|
1706
1007
|
}
|
|
1707
1008
|
const data = await parseBody(output.body, context);
|
|
1708
1009
|
let contents = {};
|
|
@@ -1713,40 +1014,9 @@ var de_DescribeRetrainingSchedulerCommand = /* @__PURE__ */ __name(async (output
|
|
|
1713
1014
|
};
|
|
1714
1015
|
return response;
|
|
1715
1016
|
}, "de_DescribeRetrainingSchedulerCommand");
|
|
1716
|
-
var de_DescribeRetrainingSchedulerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1717
|
-
const parsedOutput = {
|
|
1718
|
-
...output,
|
|
1719
|
-
body: await parseErrorBody(output.body, context)
|
|
1720
|
-
};
|
|
1721
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1722
|
-
switch (errorCode) {
|
|
1723
|
-
case "AccessDeniedException":
|
|
1724
|
-
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
1725
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1726
|
-
case "InternalServerException":
|
|
1727
|
-
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
1728
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1729
|
-
case "ResourceNotFoundException":
|
|
1730
|
-
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
1731
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1732
|
-
case "ThrottlingException":
|
|
1733
|
-
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
1734
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1735
|
-
case "ValidationException":
|
|
1736
|
-
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
1737
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1738
|
-
default:
|
|
1739
|
-
const parsedBody = parsedOutput.body;
|
|
1740
|
-
return throwDefaultError({
|
|
1741
|
-
output,
|
|
1742
|
-
parsedBody,
|
|
1743
|
-
errorCode
|
|
1744
|
-
});
|
|
1745
|
-
}
|
|
1746
|
-
}, "de_DescribeRetrainingSchedulerCommandError");
|
|
1747
1017
|
var de_ImportDatasetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1748
1018
|
if (output.statusCode >= 300) {
|
|
1749
|
-
return
|
|
1019
|
+
return de_CommandError(output, context);
|
|
1750
1020
|
}
|
|
1751
1021
|
const data = await parseBody(output.body, context);
|
|
1752
1022
|
let contents = {};
|
|
@@ -1757,46 +1027,9 @@ var de_ImportDatasetCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1757
1027
|
};
|
|
1758
1028
|
return response;
|
|
1759
1029
|
}, "de_ImportDatasetCommand");
|
|
1760
|
-
var de_ImportDatasetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1761
|
-
const parsedOutput = {
|
|
1762
|
-
...output,
|
|
1763
|
-
body: await parseErrorBody(output.body, context)
|
|
1764
|
-
};
|
|
1765
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1766
|
-
switch (errorCode) {
|
|
1767
|
-
case "AccessDeniedException":
|
|
1768
|
-
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
1769
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1770
|
-
case "ConflictException":
|
|
1771
|
-
case "com.amazonaws.lookoutequipment#ConflictException":
|
|
1772
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1773
|
-
case "InternalServerException":
|
|
1774
|
-
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
1775
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1776
|
-
case "ResourceNotFoundException":
|
|
1777
|
-
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
1778
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1779
|
-
case "ServiceQuotaExceededException":
|
|
1780
|
-
case "com.amazonaws.lookoutequipment#ServiceQuotaExceededException":
|
|
1781
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1782
|
-
case "ThrottlingException":
|
|
1783
|
-
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
1784
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1785
|
-
case "ValidationException":
|
|
1786
|
-
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
1787
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1788
|
-
default:
|
|
1789
|
-
const parsedBody = parsedOutput.body;
|
|
1790
|
-
return throwDefaultError({
|
|
1791
|
-
output,
|
|
1792
|
-
parsedBody,
|
|
1793
|
-
errorCode
|
|
1794
|
-
});
|
|
1795
|
-
}
|
|
1796
|
-
}, "de_ImportDatasetCommandError");
|
|
1797
1030
|
var de_ImportModelVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1798
1031
|
if (output.statusCode >= 300) {
|
|
1799
|
-
return
|
|
1032
|
+
return de_CommandError(output, context);
|
|
1800
1033
|
}
|
|
1801
1034
|
const data = await parseBody(output.body, context);
|
|
1802
1035
|
let contents = {};
|
|
@@ -1807,87 +1040,22 @@ var de_ImportModelVersionCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1807
1040
|
};
|
|
1808
1041
|
return response;
|
|
1809
1042
|
}, "de_ImportModelVersionCommand");
|
|
1810
|
-
var
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
case "ConflictException":
|
|
1821
|
-
case "com.amazonaws.lookoutequipment#ConflictException":
|
|
1822
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1823
|
-
case "InternalServerException":
|
|
1824
|
-
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
1825
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1826
|
-
case "ResourceNotFoundException":
|
|
1827
|
-
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
1828
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1829
|
-
case "ServiceQuotaExceededException":
|
|
1830
|
-
case "com.amazonaws.lookoutequipment#ServiceQuotaExceededException":
|
|
1831
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1832
|
-
case "ThrottlingException":
|
|
1833
|
-
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
1834
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1835
|
-
case "ValidationException":
|
|
1836
|
-
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
1837
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1838
|
-
default:
|
|
1839
|
-
const parsedBody = parsedOutput.body;
|
|
1840
|
-
return throwDefaultError({
|
|
1841
|
-
output,
|
|
1842
|
-
parsedBody,
|
|
1843
|
-
errorCode
|
|
1844
|
-
});
|
|
1845
|
-
}
|
|
1846
|
-
}, "de_ImportModelVersionCommandError");
|
|
1847
|
-
var de_ListDataIngestionJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1848
|
-
if (output.statusCode >= 300) {
|
|
1849
|
-
return de_ListDataIngestionJobsCommandError(output, context);
|
|
1850
|
-
}
|
|
1851
|
-
const data = await parseBody(output.body, context);
|
|
1852
|
-
let contents = {};
|
|
1853
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1854
|
-
const response = {
|
|
1855
|
-
$metadata: deserializeMetadata(output),
|
|
1856
|
-
...contents
|
|
1043
|
+
var de_ListDataIngestionJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1044
|
+
if (output.statusCode >= 300) {
|
|
1045
|
+
return de_CommandError(output, context);
|
|
1046
|
+
}
|
|
1047
|
+
const data = await parseBody(output.body, context);
|
|
1048
|
+
let contents = {};
|
|
1049
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1050
|
+
const response = {
|
|
1051
|
+
$metadata: deserializeMetadata(output),
|
|
1052
|
+
...contents
|
|
1857
1053
|
};
|
|
1858
1054
|
return response;
|
|
1859
1055
|
}, "de_ListDataIngestionJobsCommand");
|
|
1860
|
-
var de_ListDataIngestionJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1861
|
-
const parsedOutput = {
|
|
1862
|
-
...output,
|
|
1863
|
-
body: await parseErrorBody(output.body, context)
|
|
1864
|
-
};
|
|
1865
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1866
|
-
switch (errorCode) {
|
|
1867
|
-
case "AccessDeniedException":
|
|
1868
|
-
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
1869
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1870
|
-
case "InternalServerException":
|
|
1871
|
-
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
1872
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1873
|
-
case "ThrottlingException":
|
|
1874
|
-
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
1875
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1876
|
-
case "ValidationException":
|
|
1877
|
-
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
1878
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1879
|
-
default:
|
|
1880
|
-
const parsedBody = parsedOutput.body;
|
|
1881
|
-
return throwDefaultError({
|
|
1882
|
-
output,
|
|
1883
|
-
parsedBody,
|
|
1884
|
-
errorCode
|
|
1885
|
-
});
|
|
1886
|
-
}
|
|
1887
|
-
}, "de_ListDataIngestionJobsCommandError");
|
|
1888
1056
|
var de_ListDatasetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1889
1057
|
if (output.statusCode >= 300) {
|
|
1890
|
-
return
|
|
1058
|
+
return de_CommandError(output, context);
|
|
1891
1059
|
}
|
|
1892
1060
|
const data = await parseBody(output.body, context);
|
|
1893
1061
|
let contents = {};
|
|
@@ -1898,37 +1066,9 @@ var de_ListDatasetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1898
1066
|
};
|
|
1899
1067
|
return response;
|
|
1900
1068
|
}, "de_ListDatasetsCommand");
|
|
1901
|
-
var de_ListDatasetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1902
|
-
const parsedOutput = {
|
|
1903
|
-
...output,
|
|
1904
|
-
body: await parseErrorBody(output.body, context)
|
|
1905
|
-
};
|
|
1906
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1907
|
-
switch (errorCode) {
|
|
1908
|
-
case "AccessDeniedException":
|
|
1909
|
-
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
1910
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1911
|
-
case "InternalServerException":
|
|
1912
|
-
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
1913
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1914
|
-
case "ThrottlingException":
|
|
1915
|
-
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
1916
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1917
|
-
case "ValidationException":
|
|
1918
|
-
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
1919
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1920
|
-
default:
|
|
1921
|
-
const parsedBody = parsedOutput.body;
|
|
1922
|
-
return throwDefaultError({
|
|
1923
|
-
output,
|
|
1924
|
-
parsedBody,
|
|
1925
|
-
errorCode
|
|
1926
|
-
});
|
|
1927
|
-
}
|
|
1928
|
-
}, "de_ListDatasetsCommandError");
|
|
1929
1069
|
var de_ListInferenceEventsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1930
1070
|
if (output.statusCode >= 300) {
|
|
1931
|
-
return
|
|
1071
|
+
return de_CommandError(output, context);
|
|
1932
1072
|
}
|
|
1933
1073
|
const data = await parseBody(output.body, context);
|
|
1934
1074
|
let contents = {};
|
|
@@ -1939,40 +1079,9 @@ var de_ListInferenceEventsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1939
1079
|
};
|
|
1940
1080
|
return response;
|
|
1941
1081
|
}, "de_ListInferenceEventsCommand");
|
|
1942
|
-
var de_ListInferenceEventsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1943
|
-
const parsedOutput = {
|
|
1944
|
-
...output,
|
|
1945
|
-
body: await parseErrorBody(output.body, context)
|
|
1946
|
-
};
|
|
1947
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1948
|
-
switch (errorCode) {
|
|
1949
|
-
case "AccessDeniedException":
|
|
1950
|
-
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
1951
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1952
|
-
case "InternalServerException":
|
|
1953
|
-
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
1954
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1955
|
-
case "ResourceNotFoundException":
|
|
1956
|
-
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
1957
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1958
|
-
case "ThrottlingException":
|
|
1959
|
-
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
1960
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1961
|
-
case "ValidationException":
|
|
1962
|
-
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
1963
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1964
|
-
default:
|
|
1965
|
-
const parsedBody = parsedOutput.body;
|
|
1966
|
-
return throwDefaultError({
|
|
1967
|
-
output,
|
|
1968
|
-
parsedBody,
|
|
1969
|
-
errorCode
|
|
1970
|
-
});
|
|
1971
|
-
}
|
|
1972
|
-
}, "de_ListInferenceEventsCommandError");
|
|
1973
1082
|
var de_ListInferenceExecutionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1974
1083
|
if (output.statusCode >= 300) {
|
|
1975
|
-
return
|
|
1084
|
+
return de_CommandError(output, context);
|
|
1976
1085
|
}
|
|
1977
1086
|
const data = await parseBody(output.body, context);
|
|
1978
1087
|
let contents = {};
|
|
@@ -1983,40 +1092,9 @@ var de_ListInferenceExecutionsCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1983
1092
|
};
|
|
1984
1093
|
return response;
|
|
1985
1094
|
}, "de_ListInferenceExecutionsCommand");
|
|
1986
|
-
var de_ListInferenceExecutionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1987
|
-
const parsedOutput = {
|
|
1988
|
-
...output,
|
|
1989
|
-
body: await parseErrorBody(output.body, context)
|
|
1990
|
-
};
|
|
1991
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1992
|
-
switch (errorCode) {
|
|
1993
|
-
case "AccessDeniedException":
|
|
1994
|
-
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
1995
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1996
|
-
case "InternalServerException":
|
|
1997
|
-
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
1998
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1999
|
-
case "ResourceNotFoundException":
|
|
2000
|
-
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
2001
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2002
|
-
case "ThrottlingException":
|
|
2003
|
-
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
2004
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2005
|
-
case "ValidationException":
|
|
2006
|
-
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
2007
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2008
|
-
default:
|
|
2009
|
-
const parsedBody = parsedOutput.body;
|
|
2010
|
-
return throwDefaultError({
|
|
2011
|
-
output,
|
|
2012
|
-
parsedBody,
|
|
2013
|
-
errorCode
|
|
2014
|
-
});
|
|
2015
|
-
}
|
|
2016
|
-
}, "de_ListInferenceExecutionsCommandError");
|
|
2017
1095
|
var de_ListInferenceSchedulersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2018
1096
|
if (output.statusCode >= 300) {
|
|
2019
|
-
return
|
|
1097
|
+
return de_CommandError(output, context);
|
|
2020
1098
|
}
|
|
2021
1099
|
const data = await parseBody(output.body, context);
|
|
2022
1100
|
let contents = {};
|
|
@@ -2027,37 +1105,9 @@ var de_ListInferenceSchedulersCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2027
1105
|
};
|
|
2028
1106
|
return response;
|
|
2029
1107
|
}, "de_ListInferenceSchedulersCommand");
|
|
2030
|
-
var de_ListInferenceSchedulersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2031
|
-
const parsedOutput = {
|
|
2032
|
-
...output,
|
|
2033
|
-
body: await parseErrorBody(output.body, context)
|
|
2034
|
-
};
|
|
2035
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2036
|
-
switch (errorCode) {
|
|
2037
|
-
case "AccessDeniedException":
|
|
2038
|
-
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
2039
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2040
|
-
case "InternalServerException":
|
|
2041
|
-
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
2042
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2043
|
-
case "ThrottlingException":
|
|
2044
|
-
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
2045
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2046
|
-
case "ValidationException":
|
|
2047
|
-
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
2048
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2049
|
-
default:
|
|
2050
|
-
const parsedBody = parsedOutput.body;
|
|
2051
|
-
return throwDefaultError({
|
|
2052
|
-
output,
|
|
2053
|
-
parsedBody,
|
|
2054
|
-
errorCode
|
|
2055
|
-
});
|
|
2056
|
-
}
|
|
2057
|
-
}, "de_ListInferenceSchedulersCommandError");
|
|
2058
1108
|
var de_ListLabelGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2059
1109
|
if (output.statusCode >= 300) {
|
|
2060
|
-
return
|
|
1110
|
+
return de_CommandError(output, context);
|
|
2061
1111
|
}
|
|
2062
1112
|
const data = await parseBody(output.body, context);
|
|
2063
1113
|
let contents = {};
|
|
@@ -2068,37 +1118,9 @@ var de_ListLabelGroupsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2068
1118
|
};
|
|
2069
1119
|
return response;
|
|
2070
1120
|
}, "de_ListLabelGroupsCommand");
|
|
2071
|
-
var de_ListLabelGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2072
|
-
const parsedOutput = {
|
|
2073
|
-
...output,
|
|
2074
|
-
body: await parseErrorBody(output.body, context)
|
|
2075
|
-
};
|
|
2076
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2077
|
-
switch (errorCode) {
|
|
2078
|
-
case "AccessDeniedException":
|
|
2079
|
-
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
2080
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2081
|
-
case "InternalServerException":
|
|
2082
|
-
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
2083
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2084
|
-
case "ThrottlingException":
|
|
2085
|
-
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
2086
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2087
|
-
case "ValidationException":
|
|
2088
|
-
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
2089
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2090
|
-
default:
|
|
2091
|
-
const parsedBody = parsedOutput.body;
|
|
2092
|
-
return throwDefaultError({
|
|
2093
|
-
output,
|
|
2094
|
-
parsedBody,
|
|
2095
|
-
errorCode
|
|
2096
|
-
});
|
|
2097
|
-
}
|
|
2098
|
-
}, "de_ListLabelGroupsCommandError");
|
|
2099
1121
|
var de_ListLabelsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2100
1122
|
if (output.statusCode >= 300) {
|
|
2101
|
-
return
|
|
1123
|
+
return de_CommandError(output, context);
|
|
2102
1124
|
}
|
|
2103
1125
|
const data = await parseBody(output.body, context);
|
|
2104
1126
|
let contents = {};
|
|
@@ -2109,37 +1131,9 @@ var de_ListLabelsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2109
1131
|
};
|
|
2110
1132
|
return response;
|
|
2111
1133
|
}, "de_ListLabelsCommand");
|
|
2112
|
-
var de_ListLabelsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2113
|
-
const parsedOutput = {
|
|
2114
|
-
...output,
|
|
2115
|
-
body: await parseErrorBody(output.body, context)
|
|
2116
|
-
};
|
|
2117
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2118
|
-
switch (errorCode) {
|
|
2119
|
-
case "AccessDeniedException":
|
|
2120
|
-
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
2121
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2122
|
-
case "InternalServerException":
|
|
2123
|
-
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
2124
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2125
|
-
case "ThrottlingException":
|
|
2126
|
-
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
2127
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2128
|
-
case "ValidationException":
|
|
2129
|
-
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
2130
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2131
|
-
default:
|
|
2132
|
-
const parsedBody = parsedOutput.body;
|
|
2133
|
-
return throwDefaultError({
|
|
2134
|
-
output,
|
|
2135
|
-
parsedBody,
|
|
2136
|
-
errorCode
|
|
2137
|
-
});
|
|
2138
|
-
}
|
|
2139
|
-
}, "de_ListLabelsCommandError");
|
|
2140
1134
|
var de_ListModelsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2141
1135
|
if (output.statusCode >= 300) {
|
|
2142
|
-
return
|
|
1136
|
+
return de_CommandError(output, context);
|
|
2143
1137
|
}
|
|
2144
1138
|
const data = await parseBody(output.body, context);
|
|
2145
1139
|
let contents = {};
|
|
@@ -2150,37 +1144,9 @@ var de_ListModelsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2150
1144
|
};
|
|
2151
1145
|
return response;
|
|
2152
1146
|
}, "de_ListModelsCommand");
|
|
2153
|
-
var de_ListModelsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2154
|
-
const parsedOutput = {
|
|
2155
|
-
...output,
|
|
2156
|
-
body: await parseErrorBody(output.body, context)
|
|
2157
|
-
};
|
|
2158
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2159
|
-
switch (errorCode) {
|
|
2160
|
-
case "AccessDeniedException":
|
|
2161
|
-
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
2162
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2163
|
-
case "InternalServerException":
|
|
2164
|
-
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
2165
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2166
|
-
case "ThrottlingException":
|
|
2167
|
-
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
2168
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2169
|
-
case "ValidationException":
|
|
2170
|
-
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
2171
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2172
|
-
default:
|
|
2173
|
-
const parsedBody = parsedOutput.body;
|
|
2174
|
-
return throwDefaultError({
|
|
2175
|
-
output,
|
|
2176
|
-
parsedBody,
|
|
2177
|
-
errorCode
|
|
2178
|
-
});
|
|
2179
|
-
}
|
|
2180
|
-
}, "de_ListModelsCommandError");
|
|
2181
1147
|
var de_ListModelVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2182
1148
|
if (output.statusCode >= 300) {
|
|
2183
|
-
return
|
|
1149
|
+
return de_CommandError(output, context);
|
|
2184
1150
|
}
|
|
2185
1151
|
const data = await parseBody(output.body, context);
|
|
2186
1152
|
let contents = {};
|
|
@@ -2191,40 +1157,9 @@ var de_ListModelVersionsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2191
1157
|
};
|
|
2192
1158
|
return response;
|
|
2193
1159
|
}, "de_ListModelVersionsCommand");
|
|
2194
|
-
var de_ListModelVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2195
|
-
const parsedOutput = {
|
|
2196
|
-
...output,
|
|
2197
|
-
body: await parseErrorBody(output.body, context)
|
|
2198
|
-
};
|
|
2199
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2200
|
-
switch (errorCode) {
|
|
2201
|
-
case "AccessDeniedException":
|
|
2202
|
-
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
2203
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2204
|
-
case "InternalServerException":
|
|
2205
|
-
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
2206
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2207
|
-
case "ResourceNotFoundException":
|
|
2208
|
-
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
2209
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2210
|
-
case "ThrottlingException":
|
|
2211
|
-
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
2212
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2213
|
-
case "ValidationException":
|
|
2214
|
-
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
2215
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2216
|
-
default:
|
|
2217
|
-
const parsedBody = parsedOutput.body;
|
|
2218
|
-
return throwDefaultError({
|
|
2219
|
-
output,
|
|
2220
|
-
parsedBody,
|
|
2221
|
-
errorCode
|
|
2222
|
-
});
|
|
2223
|
-
}
|
|
2224
|
-
}, "de_ListModelVersionsCommandError");
|
|
2225
1160
|
var de_ListRetrainingSchedulersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2226
1161
|
if (output.statusCode >= 300) {
|
|
2227
|
-
return
|
|
1162
|
+
return de_CommandError(output, context);
|
|
2228
1163
|
}
|
|
2229
1164
|
const data = await parseBody(output.body, context);
|
|
2230
1165
|
let contents = {};
|
|
@@ -2235,37 +1170,9 @@ var de_ListRetrainingSchedulersCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2235
1170
|
};
|
|
2236
1171
|
return response;
|
|
2237
1172
|
}, "de_ListRetrainingSchedulersCommand");
|
|
2238
|
-
var de_ListRetrainingSchedulersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2239
|
-
const parsedOutput = {
|
|
2240
|
-
...output,
|
|
2241
|
-
body: await parseErrorBody(output.body, context)
|
|
2242
|
-
};
|
|
2243
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2244
|
-
switch (errorCode) {
|
|
2245
|
-
case "AccessDeniedException":
|
|
2246
|
-
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
2247
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2248
|
-
case "InternalServerException":
|
|
2249
|
-
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
2250
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2251
|
-
case "ThrottlingException":
|
|
2252
|
-
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
2253
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2254
|
-
case "ValidationException":
|
|
2255
|
-
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
2256
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2257
|
-
default:
|
|
2258
|
-
const parsedBody = parsedOutput.body;
|
|
2259
|
-
return throwDefaultError({
|
|
2260
|
-
output,
|
|
2261
|
-
parsedBody,
|
|
2262
|
-
errorCode
|
|
2263
|
-
});
|
|
2264
|
-
}
|
|
2265
|
-
}, "de_ListRetrainingSchedulersCommandError");
|
|
2266
1173
|
var de_ListSensorStatisticsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2267
1174
|
if (output.statusCode >= 300) {
|
|
2268
|
-
return
|
|
1175
|
+
return de_CommandError(output, context);
|
|
2269
1176
|
}
|
|
2270
1177
|
const data = await parseBody(output.body, context);
|
|
2271
1178
|
let contents = {};
|
|
@@ -2276,40 +1183,9 @@ var de_ListSensorStatisticsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2276
1183
|
};
|
|
2277
1184
|
return response;
|
|
2278
1185
|
}, "de_ListSensorStatisticsCommand");
|
|
2279
|
-
var de_ListSensorStatisticsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2280
|
-
const parsedOutput = {
|
|
2281
|
-
...output,
|
|
2282
|
-
body: await parseErrorBody(output.body, context)
|
|
2283
|
-
};
|
|
2284
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2285
|
-
switch (errorCode) {
|
|
2286
|
-
case "AccessDeniedException":
|
|
2287
|
-
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
2288
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2289
|
-
case "InternalServerException":
|
|
2290
|
-
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
2291
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2292
|
-
case "ResourceNotFoundException":
|
|
2293
|
-
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
2294
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2295
|
-
case "ThrottlingException":
|
|
2296
|
-
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
2297
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2298
|
-
case "ValidationException":
|
|
2299
|
-
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
2300
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2301
|
-
default:
|
|
2302
|
-
const parsedBody = parsedOutput.body;
|
|
2303
|
-
return throwDefaultError({
|
|
2304
|
-
output,
|
|
2305
|
-
parsedBody,
|
|
2306
|
-
errorCode
|
|
2307
|
-
});
|
|
2308
|
-
}
|
|
2309
|
-
}, "de_ListSensorStatisticsCommandError");
|
|
2310
1186
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2311
1187
|
if (output.statusCode >= 300) {
|
|
2312
|
-
return
|
|
1188
|
+
return de_CommandError(output, context);
|
|
2313
1189
|
}
|
|
2314
1190
|
const data = await parseBody(output.body, context);
|
|
2315
1191
|
let contents = {};
|
|
@@ -2320,40 +1196,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2320
1196
|
};
|
|
2321
1197
|
return response;
|
|
2322
1198
|
}, "de_ListTagsForResourceCommand");
|
|
2323
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2324
|
-
const parsedOutput = {
|
|
2325
|
-
...output,
|
|
2326
|
-
body: await parseErrorBody(output.body, context)
|
|
2327
|
-
};
|
|
2328
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2329
|
-
switch (errorCode) {
|
|
2330
|
-
case "AccessDeniedException":
|
|
2331
|
-
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
2332
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2333
|
-
case "InternalServerException":
|
|
2334
|
-
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
2335
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2336
|
-
case "ResourceNotFoundException":
|
|
2337
|
-
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
2338
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2339
|
-
case "ThrottlingException":
|
|
2340
|
-
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
2341
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2342
|
-
case "ValidationException":
|
|
2343
|
-
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
2344
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2345
|
-
default:
|
|
2346
|
-
const parsedBody = parsedOutput.body;
|
|
2347
|
-
return throwDefaultError({
|
|
2348
|
-
output,
|
|
2349
|
-
parsedBody,
|
|
2350
|
-
errorCode
|
|
2351
|
-
});
|
|
2352
|
-
}
|
|
2353
|
-
}, "de_ListTagsForResourceCommandError");
|
|
2354
1199
|
var de_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2355
1200
|
if (output.statusCode >= 300) {
|
|
2356
|
-
return
|
|
1201
|
+
return de_CommandError(output, context);
|
|
2357
1202
|
}
|
|
2358
1203
|
const data = await parseBody(output.body, context);
|
|
2359
1204
|
let contents = {};
|
|
@@ -2364,46 +1209,9 @@ var de_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2364
1209
|
};
|
|
2365
1210
|
return response;
|
|
2366
1211
|
}, "de_PutResourcePolicyCommand");
|
|
2367
|
-
var de_PutResourcePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2368
|
-
const parsedOutput = {
|
|
2369
|
-
...output,
|
|
2370
|
-
body: await parseErrorBody(output.body, context)
|
|
2371
|
-
};
|
|
2372
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2373
|
-
switch (errorCode) {
|
|
2374
|
-
case "AccessDeniedException":
|
|
2375
|
-
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
2376
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2377
|
-
case "ConflictException":
|
|
2378
|
-
case "com.amazonaws.lookoutequipment#ConflictException":
|
|
2379
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2380
|
-
case "InternalServerException":
|
|
2381
|
-
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
2382
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2383
|
-
case "ResourceNotFoundException":
|
|
2384
|
-
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
2385
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2386
|
-
case "ServiceQuotaExceededException":
|
|
2387
|
-
case "com.amazonaws.lookoutequipment#ServiceQuotaExceededException":
|
|
2388
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2389
|
-
case "ThrottlingException":
|
|
2390
|
-
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
2391
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2392
|
-
case "ValidationException":
|
|
2393
|
-
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
2394
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2395
|
-
default:
|
|
2396
|
-
const parsedBody = parsedOutput.body;
|
|
2397
|
-
return throwDefaultError({
|
|
2398
|
-
output,
|
|
2399
|
-
parsedBody,
|
|
2400
|
-
errorCode
|
|
2401
|
-
});
|
|
2402
|
-
}
|
|
2403
|
-
}, "de_PutResourcePolicyCommandError");
|
|
2404
1212
|
var de_StartDataIngestionJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2405
1213
|
if (output.statusCode >= 300) {
|
|
2406
|
-
return
|
|
1214
|
+
return de_CommandError(output, context);
|
|
2407
1215
|
}
|
|
2408
1216
|
const data = await parseBody(output.body, context);
|
|
2409
1217
|
let contents = {};
|
|
@@ -2414,46 +1222,9 @@ var de_StartDataIngestionJobCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2414
1222
|
};
|
|
2415
1223
|
return response;
|
|
2416
1224
|
}, "de_StartDataIngestionJobCommand");
|
|
2417
|
-
var de_StartDataIngestionJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2418
|
-
const parsedOutput = {
|
|
2419
|
-
...output,
|
|
2420
|
-
body: await parseErrorBody(output.body, context)
|
|
2421
|
-
};
|
|
2422
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2423
|
-
switch (errorCode) {
|
|
2424
|
-
case "AccessDeniedException":
|
|
2425
|
-
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
2426
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2427
|
-
case "ConflictException":
|
|
2428
|
-
case "com.amazonaws.lookoutequipment#ConflictException":
|
|
2429
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2430
|
-
case "InternalServerException":
|
|
2431
|
-
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
2432
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2433
|
-
case "ResourceNotFoundException":
|
|
2434
|
-
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
2435
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2436
|
-
case "ServiceQuotaExceededException":
|
|
2437
|
-
case "com.amazonaws.lookoutequipment#ServiceQuotaExceededException":
|
|
2438
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2439
|
-
case "ThrottlingException":
|
|
2440
|
-
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
2441
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2442
|
-
case "ValidationException":
|
|
2443
|
-
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
2444
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2445
|
-
default:
|
|
2446
|
-
const parsedBody = parsedOutput.body;
|
|
2447
|
-
return throwDefaultError({
|
|
2448
|
-
output,
|
|
2449
|
-
parsedBody,
|
|
2450
|
-
errorCode
|
|
2451
|
-
});
|
|
2452
|
-
}
|
|
2453
|
-
}, "de_StartDataIngestionJobCommandError");
|
|
2454
1225
|
var de_StartInferenceSchedulerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2455
1226
|
if (output.statusCode >= 300) {
|
|
2456
|
-
return
|
|
1227
|
+
return de_CommandError(output, context);
|
|
2457
1228
|
}
|
|
2458
1229
|
const data = await parseBody(output.body, context);
|
|
2459
1230
|
let contents = {};
|
|
@@ -2461,140 +1232,38 @@ var de_StartInferenceSchedulerCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2461
1232
|
const response = {
|
|
2462
1233
|
$metadata: deserializeMetadata(output),
|
|
2463
1234
|
...contents
|
|
2464
|
-
};
|
|
2465
|
-
return response;
|
|
2466
|
-
}, "de_StartInferenceSchedulerCommand");
|
|
2467
|
-
var
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
case "ResourceNotFoundException":
|
|
2484
|
-
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
2485
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2486
|
-
case "ThrottlingException":
|
|
2487
|
-
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
2488
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2489
|
-
case "ValidationException":
|
|
2490
|
-
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
2491
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2492
|
-
default:
|
|
2493
|
-
const parsedBody = parsedOutput.body;
|
|
2494
|
-
return throwDefaultError({
|
|
2495
|
-
output,
|
|
2496
|
-
parsedBody,
|
|
2497
|
-
errorCode
|
|
2498
|
-
});
|
|
2499
|
-
}
|
|
2500
|
-
}, "de_StartInferenceSchedulerCommandError");
|
|
2501
|
-
var de_StartRetrainingSchedulerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2502
|
-
if (output.statusCode >= 300) {
|
|
2503
|
-
return de_StartRetrainingSchedulerCommandError(output, context);
|
|
2504
|
-
}
|
|
2505
|
-
const data = await parseBody(output.body, context);
|
|
2506
|
-
let contents = {};
|
|
2507
|
-
contents = (0, import_smithy_client._json)(data);
|
|
2508
|
-
const response = {
|
|
2509
|
-
$metadata: deserializeMetadata(output),
|
|
2510
|
-
...contents
|
|
2511
|
-
};
|
|
2512
|
-
return response;
|
|
2513
|
-
}, "de_StartRetrainingSchedulerCommand");
|
|
2514
|
-
var de_StartRetrainingSchedulerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2515
|
-
const parsedOutput = {
|
|
2516
|
-
...output,
|
|
2517
|
-
body: await parseErrorBody(output.body, context)
|
|
2518
|
-
};
|
|
2519
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2520
|
-
switch (errorCode) {
|
|
2521
|
-
case "AccessDeniedException":
|
|
2522
|
-
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
2523
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2524
|
-
case "ConflictException":
|
|
2525
|
-
case "com.amazonaws.lookoutequipment#ConflictException":
|
|
2526
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2527
|
-
case "InternalServerException":
|
|
2528
|
-
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
2529
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2530
|
-
case "ResourceNotFoundException":
|
|
2531
|
-
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
2532
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2533
|
-
case "ThrottlingException":
|
|
2534
|
-
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
2535
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2536
|
-
case "ValidationException":
|
|
2537
|
-
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
2538
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2539
|
-
default:
|
|
2540
|
-
const parsedBody = parsedOutput.body;
|
|
2541
|
-
return throwDefaultError({
|
|
2542
|
-
output,
|
|
2543
|
-
parsedBody,
|
|
2544
|
-
errorCode
|
|
2545
|
-
});
|
|
2546
|
-
}
|
|
2547
|
-
}, "de_StartRetrainingSchedulerCommandError");
|
|
2548
|
-
var de_StopInferenceSchedulerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2549
|
-
if (output.statusCode >= 300) {
|
|
2550
|
-
return de_StopInferenceSchedulerCommandError(output, context);
|
|
2551
|
-
}
|
|
2552
|
-
const data = await parseBody(output.body, context);
|
|
2553
|
-
let contents = {};
|
|
2554
|
-
contents = (0, import_smithy_client._json)(data);
|
|
2555
|
-
const response = {
|
|
2556
|
-
$metadata: deserializeMetadata(output),
|
|
2557
|
-
...contents
|
|
2558
|
-
};
|
|
2559
|
-
return response;
|
|
2560
|
-
}, "de_StopInferenceSchedulerCommand");
|
|
2561
|
-
var de_StopInferenceSchedulerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2562
|
-
const parsedOutput = {
|
|
2563
|
-
...output,
|
|
2564
|
-
body: await parseErrorBody(output.body, context)
|
|
2565
|
-
};
|
|
2566
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2567
|
-
switch (errorCode) {
|
|
2568
|
-
case "AccessDeniedException":
|
|
2569
|
-
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
2570
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2571
|
-
case "ConflictException":
|
|
2572
|
-
case "com.amazonaws.lookoutequipment#ConflictException":
|
|
2573
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2574
|
-
case "InternalServerException":
|
|
2575
|
-
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
2576
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2577
|
-
case "ResourceNotFoundException":
|
|
2578
|
-
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
2579
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2580
|
-
case "ThrottlingException":
|
|
2581
|
-
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
2582
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2583
|
-
case "ValidationException":
|
|
2584
|
-
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
2585
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2586
|
-
default:
|
|
2587
|
-
const parsedBody = parsedOutput.body;
|
|
2588
|
-
return throwDefaultError({
|
|
2589
|
-
output,
|
|
2590
|
-
parsedBody,
|
|
2591
|
-
errorCode
|
|
2592
|
-
});
|
|
1235
|
+
};
|
|
1236
|
+
return response;
|
|
1237
|
+
}, "de_StartInferenceSchedulerCommand");
|
|
1238
|
+
var de_StartRetrainingSchedulerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1239
|
+
if (output.statusCode >= 300) {
|
|
1240
|
+
return de_CommandError(output, context);
|
|
1241
|
+
}
|
|
1242
|
+
const data = await parseBody(output.body, context);
|
|
1243
|
+
let contents = {};
|
|
1244
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1245
|
+
const response = {
|
|
1246
|
+
$metadata: deserializeMetadata(output),
|
|
1247
|
+
...contents
|
|
1248
|
+
};
|
|
1249
|
+
return response;
|
|
1250
|
+
}, "de_StartRetrainingSchedulerCommand");
|
|
1251
|
+
var de_StopInferenceSchedulerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1252
|
+
if (output.statusCode >= 300) {
|
|
1253
|
+
return de_CommandError(output, context);
|
|
2593
1254
|
}
|
|
2594
|
-
|
|
1255
|
+
const data = await parseBody(output.body, context);
|
|
1256
|
+
let contents = {};
|
|
1257
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1258
|
+
const response = {
|
|
1259
|
+
$metadata: deserializeMetadata(output),
|
|
1260
|
+
...contents
|
|
1261
|
+
};
|
|
1262
|
+
return response;
|
|
1263
|
+
}, "de_StopInferenceSchedulerCommand");
|
|
2595
1264
|
var de_StopRetrainingSchedulerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2596
1265
|
if (output.statusCode >= 300) {
|
|
2597
|
-
return
|
|
1266
|
+
return de_CommandError(output, context);
|
|
2598
1267
|
}
|
|
2599
1268
|
const data = await parseBody(output.body, context);
|
|
2600
1269
|
let contents = {};
|
|
@@ -2605,43 +1274,9 @@ var de_StopRetrainingSchedulerCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2605
1274
|
};
|
|
2606
1275
|
return response;
|
|
2607
1276
|
}, "de_StopRetrainingSchedulerCommand");
|
|
2608
|
-
var de_StopRetrainingSchedulerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2609
|
-
const parsedOutput = {
|
|
2610
|
-
...output,
|
|
2611
|
-
body: await parseErrorBody(output.body, context)
|
|
2612
|
-
};
|
|
2613
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2614
|
-
switch (errorCode) {
|
|
2615
|
-
case "AccessDeniedException":
|
|
2616
|
-
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
2617
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2618
|
-
case "ConflictException":
|
|
2619
|
-
case "com.amazonaws.lookoutequipment#ConflictException":
|
|
2620
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2621
|
-
case "InternalServerException":
|
|
2622
|
-
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
2623
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2624
|
-
case "ResourceNotFoundException":
|
|
2625
|
-
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
2626
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2627
|
-
case "ThrottlingException":
|
|
2628
|
-
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
2629
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2630
|
-
case "ValidationException":
|
|
2631
|
-
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
2632
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2633
|
-
default:
|
|
2634
|
-
const parsedBody = parsedOutput.body;
|
|
2635
|
-
return throwDefaultError({
|
|
2636
|
-
output,
|
|
2637
|
-
parsedBody,
|
|
2638
|
-
errorCode
|
|
2639
|
-
});
|
|
2640
|
-
}
|
|
2641
|
-
}, "de_StopRetrainingSchedulerCommandError");
|
|
2642
1277
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2643
1278
|
if (output.statusCode >= 300) {
|
|
2644
|
-
return
|
|
1279
|
+
return de_CommandError(output, context);
|
|
2645
1280
|
}
|
|
2646
1281
|
const data = await parseBody(output.body, context);
|
|
2647
1282
|
let contents = {};
|
|
@@ -2652,43 +1287,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2652
1287
|
};
|
|
2653
1288
|
return response;
|
|
2654
1289
|
}, "de_TagResourceCommand");
|
|
2655
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2656
|
-
const parsedOutput = {
|
|
2657
|
-
...output,
|
|
2658
|
-
body: await parseErrorBody(output.body, context)
|
|
2659
|
-
};
|
|
2660
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2661
|
-
switch (errorCode) {
|
|
2662
|
-
case "AccessDeniedException":
|
|
2663
|
-
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
2664
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2665
|
-
case "InternalServerException":
|
|
2666
|
-
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
2667
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2668
|
-
case "ResourceNotFoundException":
|
|
2669
|
-
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
2670
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2671
|
-
case "ServiceQuotaExceededException":
|
|
2672
|
-
case "com.amazonaws.lookoutequipment#ServiceQuotaExceededException":
|
|
2673
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2674
|
-
case "ThrottlingException":
|
|
2675
|
-
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
2676
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2677
|
-
case "ValidationException":
|
|
2678
|
-
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
2679
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2680
|
-
default:
|
|
2681
|
-
const parsedBody = parsedOutput.body;
|
|
2682
|
-
return throwDefaultError({
|
|
2683
|
-
output,
|
|
2684
|
-
parsedBody,
|
|
2685
|
-
errorCode
|
|
2686
|
-
});
|
|
2687
|
-
}
|
|
2688
|
-
}, "de_TagResourceCommandError");
|
|
2689
1290
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2690
1291
|
if (output.statusCode >= 300) {
|
|
2691
|
-
return
|
|
1292
|
+
return de_CommandError(output, context);
|
|
2692
1293
|
}
|
|
2693
1294
|
const data = await parseBody(output.body, context);
|
|
2694
1295
|
let contents = {};
|
|
@@ -2699,40 +1300,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2699
1300
|
};
|
|
2700
1301
|
return response;
|
|
2701
1302
|
}, "de_UntagResourceCommand");
|
|
2702
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2703
|
-
const parsedOutput = {
|
|
2704
|
-
...output,
|
|
2705
|
-
body: await parseErrorBody(output.body, context)
|
|
2706
|
-
};
|
|
2707
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2708
|
-
switch (errorCode) {
|
|
2709
|
-
case "AccessDeniedException":
|
|
2710
|
-
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
2711
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2712
|
-
case "InternalServerException":
|
|
2713
|
-
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
2714
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2715
|
-
case "ResourceNotFoundException":
|
|
2716
|
-
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
2717
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2718
|
-
case "ThrottlingException":
|
|
2719
|
-
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
2720
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2721
|
-
case "ValidationException":
|
|
2722
|
-
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
2723
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2724
|
-
default:
|
|
2725
|
-
const parsedBody = parsedOutput.body;
|
|
2726
|
-
return throwDefaultError({
|
|
2727
|
-
output,
|
|
2728
|
-
parsedBody,
|
|
2729
|
-
errorCode
|
|
2730
|
-
});
|
|
2731
|
-
}
|
|
2732
|
-
}, "de_UntagResourceCommandError");
|
|
2733
1303
|
var de_UpdateActiveModelVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2734
1304
|
if (output.statusCode >= 300) {
|
|
2735
|
-
return
|
|
1305
|
+
return de_CommandError(output, context);
|
|
2736
1306
|
}
|
|
2737
1307
|
const data = await parseBody(output.body, context);
|
|
2738
1308
|
let contents = {};
|
|
@@ -2743,43 +1313,9 @@ var de_UpdateActiveModelVersionCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2743
1313
|
};
|
|
2744
1314
|
return response;
|
|
2745
1315
|
}, "de_UpdateActiveModelVersionCommand");
|
|
2746
|
-
var de_UpdateActiveModelVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2747
|
-
const parsedOutput = {
|
|
2748
|
-
...output,
|
|
2749
|
-
body: await parseErrorBody(output.body, context)
|
|
2750
|
-
};
|
|
2751
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2752
|
-
switch (errorCode) {
|
|
2753
|
-
case "AccessDeniedException":
|
|
2754
|
-
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
2755
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2756
|
-
case "ConflictException":
|
|
2757
|
-
case "com.amazonaws.lookoutequipment#ConflictException":
|
|
2758
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2759
|
-
case "InternalServerException":
|
|
2760
|
-
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
2761
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2762
|
-
case "ResourceNotFoundException":
|
|
2763
|
-
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
2764
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2765
|
-
case "ThrottlingException":
|
|
2766
|
-
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
2767
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2768
|
-
case "ValidationException":
|
|
2769
|
-
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
2770
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2771
|
-
default:
|
|
2772
|
-
const parsedBody = parsedOutput.body;
|
|
2773
|
-
return throwDefaultError({
|
|
2774
|
-
output,
|
|
2775
|
-
parsedBody,
|
|
2776
|
-
errorCode
|
|
2777
|
-
});
|
|
2778
|
-
}
|
|
2779
|
-
}, "de_UpdateActiveModelVersionCommandError");
|
|
2780
1316
|
var de_UpdateInferenceSchedulerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2781
1317
|
if (output.statusCode >= 300) {
|
|
2782
|
-
return
|
|
1318
|
+
return de_CommandError(output, context);
|
|
2783
1319
|
}
|
|
2784
1320
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2785
1321
|
const response = {
|
|
@@ -2787,43 +1323,9 @@ var de_UpdateInferenceSchedulerCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2787
1323
|
};
|
|
2788
1324
|
return response;
|
|
2789
1325
|
}, "de_UpdateInferenceSchedulerCommand");
|
|
2790
|
-
var de_UpdateInferenceSchedulerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2791
|
-
const parsedOutput = {
|
|
2792
|
-
...output,
|
|
2793
|
-
body: await parseErrorBody(output.body, context)
|
|
2794
|
-
};
|
|
2795
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2796
|
-
switch (errorCode) {
|
|
2797
|
-
case "AccessDeniedException":
|
|
2798
|
-
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
2799
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2800
|
-
case "ConflictException":
|
|
2801
|
-
case "com.amazonaws.lookoutequipment#ConflictException":
|
|
2802
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2803
|
-
case "InternalServerException":
|
|
2804
|
-
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
2805
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2806
|
-
case "ResourceNotFoundException":
|
|
2807
|
-
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
2808
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2809
|
-
case "ThrottlingException":
|
|
2810
|
-
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
2811
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2812
|
-
case "ValidationException":
|
|
2813
|
-
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
2814
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2815
|
-
default:
|
|
2816
|
-
const parsedBody = parsedOutput.body;
|
|
2817
|
-
return throwDefaultError({
|
|
2818
|
-
output,
|
|
2819
|
-
parsedBody,
|
|
2820
|
-
errorCode
|
|
2821
|
-
});
|
|
2822
|
-
}
|
|
2823
|
-
}, "de_UpdateInferenceSchedulerCommandError");
|
|
2824
1326
|
var de_UpdateLabelGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2825
1327
|
if (output.statusCode >= 300) {
|
|
2826
|
-
return
|
|
1328
|
+
return de_CommandError(output, context);
|
|
2827
1329
|
}
|
|
2828
1330
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2829
1331
|
const response = {
|
|
@@ -2831,43 +1333,9 @@ var de_UpdateLabelGroupCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2831
1333
|
};
|
|
2832
1334
|
return response;
|
|
2833
1335
|
}, "de_UpdateLabelGroupCommand");
|
|
2834
|
-
var de_UpdateLabelGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2835
|
-
const parsedOutput = {
|
|
2836
|
-
...output,
|
|
2837
|
-
body: await parseErrorBody(output.body, context)
|
|
2838
|
-
};
|
|
2839
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2840
|
-
switch (errorCode) {
|
|
2841
|
-
case "AccessDeniedException":
|
|
2842
|
-
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
2843
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2844
|
-
case "ConflictException":
|
|
2845
|
-
case "com.amazonaws.lookoutequipment#ConflictException":
|
|
2846
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2847
|
-
case "InternalServerException":
|
|
2848
|
-
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
2849
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2850
|
-
case "ResourceNotFoundException":
|
|
2851
|
-
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
2852
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2853
|
-
case "ThrottlingException":
|
|
2854
|
-
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
2855
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2856
|
-
case "ValidationException":
|
|
2857
|
-
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
2858
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2859
|
-
default:
|
|
2860
|
-
const parsedBody = parsedOutput.body;
|
|
2861
|
-
return throwDefaultError({
|
|
2862
|
-
output,
|
|
2863
|
-
parsedBody,
|
|
2864
|
-
errorCode
|
|
2865
|
-
});
|
|
2866
|
-
}
|
|
2867
|
-
}, "de_UpdateLabelGroupCommandError");
|
|
2868
1336
|
var de_UpdateModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2869
1337
|
if (output.statusCode >= 300) {
|
|
2870
|
-
return
|
|
1338
|
+
return de_CommandError(output, context);
|
|
2871
1339
|
}
|
|
2872
1340
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2873
1341
|
const response = {
|
|
@@ -2875,43 +1343,9 @@ var de_UpdateModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2875
1343
|
};
|
|
2876
1344
|
return response;
|
|
2877
1345
|
}, "de_UpdateModelCommand");
|
|
2878
|
-
var de_UpdateModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2879
|
-
const parsedOutput = {
|
|
2880
|
-
...output,
|
|
2881
|
-
body: await parseErrorBody(output.body, context)
|
|
2882
|
-
};
|
|
2883
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2884
|
-
switch (errorCode) {
|
|
2885
|
-
case "AccessDeniedException":
|
|
2886
|
-
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
2887
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2888
|
-
case "ConflictException":
|
|
2889
|
-
case "com.amazonaws.lookoutequipment#ConflictException":
|
|
2890
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2891
|
-
case "InternalServerException":
|
|
2892
|
-
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
2893
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2894
|
-
case "ResourceNotFoundException":
|
|
2895
|
-
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
2896
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2897
|
-
case "ThrottlingException":
|
|
2898
|
-
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
2899
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2900
|
-
case "ValidationException":
|
|
2901
|
-
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
2902
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2903
|
-
default:
|
|
2904
|
-
const parsedBody = parsedOutput.body;
|
|
2905
|
-
return throwDefaultError({
|
|
2906
|
-
output,
|
|
2907
|
-
parsedBody,
|
|
2908
|
-
errorCode
|
|
2909
|
-
});
|
|
2910
|
-
}
|
|
2911
|
-
}, "de_UpdateModelCommandError");
|
|
2912
1346
|
var de_UpdateRetrainingSchedulerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2913
1347
|
if (output.statusCode >= 300) {
|
|
2914
|
-
return
|
|
1348
|
+
return de_CommandError(output, context);
|
|
2915
1349
|
}
|
|
2916
1350
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2917
1351
|
const response = {
|
|
@@ -2919,7 +1353,7 @@ var de_UpdateRetrainingSchedulerCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2919
1353
|
};
|
|
2920
1354
|
return response;
|
|
2921
1355
|
}, "de_UpdateRetrainingSchedulerCommand");
|
|
2922
|
-
var
|
|
1356
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2923
1357
|
const parsedOutput = {
|
|
2924
1358
|
...output,
|
|
2925
1359
|
body: await parseErrorBody(output.body, context)
|
|
@@ -2935,15 +1369,18 @@ var de_UpdateRetrainingSchedulerCommandError = /* @__PURE__ */ __name(async (out
|
|
|
2935
1369
|
case "InternalServerException":
|
|
2936
1370
|
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
2937
1371
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2938
|
-
case "
|
|
2939
|
-
case "com.amazonaws.lookoutequipment#
|
|
2940
|
-
throw await
|
|
1372
|
+
case "ServiceQuotaExceededException":
|
|
1373
|
+
case "com.amazonaws.lookoutequipment#ServiceQuotaExceededException":
|
|
1374
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2941
1375
|
case "ThrottlingException":
|
|
2942
1376
|
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
2943
1377
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2944
1378
|
case "ValidationException":
|
|
2945
1379
|
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
2946
1380
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1381
|
+
case "ResourceNotFoundException":
|
|
1382
|
+
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
1383
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2947
1384
|
default:
|
|
2948
1385
|
const parsedBody = parsedOutput.body;
|
|
2949
1386
|
return throwDefaultError({
|
|
@@ -2952,7 +1389,7 @@ var de_UpdateRetrainingSchedulerCommandError = /* @__PURE__ */ __name(async (out
|
|
|
2952
1389
|
errorCode
|
|
2953
1390
|
});
|
|
2954
1391
|
}
|
|
2955
|
-
}, "
|
|
1392
|
+
}, "de_CommandError");
|
|
2956
1393
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2957
1394
|
const body = parsedOutput.body;
|
|
2958
1395
|
const deserialized = (0, import_smithy_client._json)(body);
|