@aws-sdk/client-iot-events 3.504.0 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +40 -833
- package/dist-es/protocols/Aws_restJson1.js +58 -851
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -763,7 +763,7 @@ var se_UpdateInputCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
763
763
|
}, "se_UpdateInputCommand");
|
|
764
764
|
var de_CreateAlarmModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
765
765
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
766
|
-
return
|
|
766
|
+
return de_CommandError(output, context);
|
|
767
767
|
}
|
|
768
768
|
const contents = (0, import_smithy_client.map)({
|
|
769
769
|
$metadata: deserializeMetadata(output)
|
|
@@ -779,46 +779,9 @@ var de_CreateAlarmModelCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
779
779
|
Object.assign(contents, doc);
|
|
780
780
|
return contents;
|
|
781
781
|
}, "de_CreateAlarmModelCommand");
|
|
782
|
-
var de_CreateAlarmModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
783
|
-
const parsedOutput = {
|
|
784
|
-
...output,
|
|
785
|
-
body: await parseErrorBody(output.body, context)
|
|
786
|
-
};
|
|
787
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
788
|
-
switch (errorCode) {
|
|
789
|
-
case "InternalFailureException":
|
|
790
|
-
case "com.amazonaws.iotevents#InternalFailureException":
|
|
791
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
792
|
-
case "InvalidRequestException":
|
|
793
|
-
case "com.amazonaws.iotevents#InvalidRequestException":
|
|
794
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
795
|
-
case "LimitExceededException":
|
|
796
|
-
case "com.amazonaws.iotevents#LimitExceededException":
|
|
797
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
798
|
-
case "ResourceAlreadyExistsException":
|
|
799
|
-
case "com.amazonaws.iotevents#ResourceAlreadyExistsException":
|
|
800
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
801
|
-
case "ResourceInUseException":
|
|
802
|
-
case "com.amazonaws.iotevents#ResourceInUseException":
|
|
803
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
804
|
-
case "ServiceUnavailableException":
|
|
805
|
-
case "com.amazonaws.iotevents#ServiceUnavailableException":
|
|
806
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
807
|
-
case "ThrottlingException":
|
|
808
|
-
case "com.amazonaws.iotevents#ThrottlingException":
|
|
809
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
810
|
-
default:
|
|
811
|
-
const parsedBody = parsedOutput.body;
|
|
812
|
-
return throwDefaultError({
|
|
813
|
-
output,
|
|
814
|
-
parsedBody,
|
|
815
|
-
errorCode
|
|
816
|
-
});
|
|
817
|
-
}
|
|
818
|
-
}, "de_CreateAlarmModelCommandError");
|
|
819
782
|
var de_CreateDetectorModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
820
783
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
821
|
-
return
|
|
784
|
+
return de_CommandError(output, context);
|
|
822
785
|
}
|
|
823
786
|
const contents = (0, import_smithy_client.map)({
|
|
824
787
|
$metadata: deserializeMetadata(output)
|
|
@@ -830,46 +793,9 @@ var de_CreateDetectorModelCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
830
793
|
Object.assign(contents, doc);
|
|
831
794
|
return contents;
|
|
832
795
|
}, "de_CreateDetectorModelCommand");
|
|
833
|
-
var de_CreateDetectorModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
834
|
-
const parsedOutput = {
|
|
835
|
-
...output,
|
|
836
|
-
body: await parseErrorBody(output.body, context)
|
|
837
|
-
};
|
|
838
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
839
|
-
switch (errorCode) {
|
|
840
|
-
case "InternalFailureException":
|
|
841
|
-
case "com.amazonaws.iotevents#InternalFailureException":
|
|
842
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
843
|
-
case "InvalidRequestException":
|
|
844
|
-
case "com.amazonaws.iotevents#InvalidRequestException":
|
|
845
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
846
|
-
case "LimitExceededException":
|
|
847
|
-
case "com.amazonaws.iotevents#LimitExceededException":
|
|
848
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
849
|
-
case "ResourceAlreadyExistsException":
|
|
850
|
-
case "com.amazonaws.iotevents#ResourceAlreadyExistsException":
|
|
851
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
852
|
-
case "ResourceInUseException":
|
|
853
|
-
case "com.amazonaws.iotevents#ResourceInUseException":
|
|
854
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
855
|
-
case "ServiceUnavailableException":
|
|
856
|
-
case "com.amazonaws.iotevents#ServiceUnavailableException":
|
|
857
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
858
|
-
case "ThrottlingException":
|
|
859
|
-
case "com.amazonaws.iotevents#ThrottlingException":
|
|
860
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
861
|
-
default:
|
|
862
|
-
const parsedBody = parsedOutput.body;
|
|
863
|
-
return throwDefaultError({
|
|
864
|
-
output,
|
|
865
|
-
parsedBody,
|
|
866
|
-
errorCode
|
|
867
|
-
});
|
|
868
|
-
}
|
|
869
|
-
}, "de_CreateDetectorModelCommandError");
|
|
870
796
|
var de_CreateInputCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
871
797
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
872
|
-
return
|
|
798
|
+
return de_CommandError(output, context);
|
|
873
799
|
}
|
|
874
800
|
const contents = (0, import_smithy_client.map)({
|
|
875
801
|
$metadata: deserializeMetadata(output)
|
|
@@ -881,40 +807,9 @@ var de_CreateInputCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
881
807
|
Object.assign(contents, doc);
|
|
882
808
|
return contents;
|
|
883
809
|
}, "de_CreateInputCommand");
|
|
884
|
-
var de_CreateInputCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
885
|
-
const parsedOutput = {
|
|
886
|
-
...output,
|
|
887
|
-
body: await parseErrorBody(output.body, context)
|
|
888
|
-
};
|
|
889
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
890
|
-
switch (errorCode) {
|
|
891
|
-
case "InternalFailureException":
|
|
892
|
-
case "com.amazonaws.iotevents#InternalFailureException":
|
|
893
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
894
|
-
case "InvalidRequestException":
|
|
895
|
-
case "com.amazonaws.iotevents#InvalidRequestException":
|
|
896
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
897
|
-
case "ResourceAlreadyExistsException":
|
|
898
|
-
case "com.amazonaws.iotevents#ResourceAlreadyExistsException":
|
|
899
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
900
|
-
case "ServiceUnavailableException":
|
|
901
|
-
case "com.amazonaws.iotevents#ServiceUnavailableException":
|
|
902
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
903
|
-
case "ThrottlingException":
|
|
904
|
-
case "com.amazonaws.iotevents#ThrottlingException":
|
|
905
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
906
|
-
default:
|
|
907
|
-
const parsedBody = parsedOutput.body;
|
|
908
|
-
return throwDefaultError({
|
|
909
|
-
output,
|
|
910
|
-
parsedBody,
|
|
911
|
-
errorCode
|
|
912
|
-
});
|
|
913
|
-
}
|
|
914
|
-
}, "de_CreateInputCommandError");
|
|
915
810
|
var de_DeleteAlarmModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
916
811
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
917
|
-
return
|
|
812
|
+
return de_CommandError(output, context);
|
|
918
813
|
}
|
|
919
814
|
const contents = (0, import_smithy_client.map)({
|
|
920
815
|
$metadata: deserializeMetadata(output)
|
|
@@ -922,43 +817,9 @@ var de_DeleteAlarmModelCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
922
817
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
923
818
|
return contents;
|
|
924
819
|
}, "de_DeleteAlarmModelCommand");
|
|
925
|
-
var de_DeleteAlarmModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
926
|
-
const parsedOutput = {
|
|
927
|
-
...output,
|
|
928
|
-
body: await parseErrorBody(output.body, context)
|
|
929
|
-
};
|
|
930
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
931
|
-
switch (errorCode) {
|
|
932
|
-
case "InternalFailureException":
|
|
933
|
-
case "com.amazonaws.iotevents#InternalFailureException":
|
|
934
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
935
|
-
case "InvalidRequestException":
|
|
936
|
-
case "com.amazonaws.iotevents#InvalidRequestException":
|
|
937
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
938
|
-
case "ResourceInUseException":
|
|
939
|
-
case "com.amazonaws.iotevents#ResourceInUseException":
|
|
940
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
941
|
-
case "ResourceNotFoundException":
|
|
942
|
-
case "com.amazonaws.iotevents#ResourceNotFoundException":
|
|
943
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
944
|
-
case "ServiceUnavailableException":
|
|
945
|
-
case "com.amazonaws.iotevents#ServiceUnavailableException":
|
|
946
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
947
|
-
case "ThrottlingException":
|
|
948
|
-
case "com.amazonaws.iotevents#ThrottlingException":
|
|
949
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
950
|
-
default:
|
|
951
|
-
const parsedBody = parsedOutput.body;
|
|
952
|
-
return throwDefaultError({
|
|
953
|
-
output,
|
|
954
|
-
parsedBody,
|
|
955
|
-
errorCode
|
|
956
|
-
});
|
|
957
|
-
}
|
|
958
|
-
}, "de_DeleteAlarmModelCommandError");
|
|
959
820
|
var de_DeleteDetectorModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
960
821
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
961
|
-
return
|
|
822
|
+
return de_CommandError(output, context);
|
|
962
823
|
}
|
|
963
824
|
const contents = (0, import_smithy_client.map)({
|
|
964
825
|
$metadata: deserializeMetadata(output)
|
|
@@ -966,43 +827,9 @@ var de_DeleteDetectorModelCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
966
827
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
967
828
|
return contents;
|
|
968
829
|
}, "de_DeleteDetectorModelCommand");
|
|
969
|
-
var de_DeleteDetectorModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
970
|
-
const parsedOutput = {
|
|
971
|
-
...output,
|
|
972
|
-
body: await parseErrorBody(output.body, context)
|
|
973
|
-
};
|
|
974
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
975
|
-
switch (errorCode) {
|
|
976
|
-
case "InternalFailureException":
|
|
977
|
-
case "com.amazonaws.iotevents#InternalFailureException":
|
|
978
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
979
|
-
case "InvalidRequestException":
|
|
980
|
-
case "com.amazonaws.iotevents#InvalidRequestException":
|
|
981
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
982
|
-
case "ResourceInUseException":
|
|
983
|
-
case "com.amazonaws.iotevents#ResourceInUseException":
|
|
984
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
985
|
-
case "ResourceNotFoundException":
|
|
986
|
-
case "com.amazonaws.iotevents#ResourceNotFoundException":
|
|
987
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
988
|
-
case "ServiceUnavailableException":
|
|
989
|
-
case "com.amazonaws.iotevents#ServiceUnavailableException":
|
|
990
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
991
|
-
case "ThrottlingException":
|
|
992
|
-
case "com.amazonaws.iotevents#ThrottlingException":
|
|
993
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
994
|
-
default:
|
|
995
|
-
const parsedBody = parsedOutput.body;
|
|
996
|
-
return throwDefaultError({
|
|
997
|
-
output,
|
|
998
|
-
parsedBody,
|
|
999
|
-
errorCode
|
|
1000
|
-
});
|
|
1001
|
-
}
|
|
1002
|
-
}, "de_DeleteDetectorModelCommandError");
|
|
1003
830
|
var de_DeleteInputCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1004
831
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1005
|
-
return
|
|
832
|
+
return de_CommandError(output, context);
|
|
1006
833
|
}
|
|
1007
834
|
const contents = (0, import_smithy_client.map)({
|
|
1008
835
|
$metadata: deserializeMetadata(output)
|
|
@@ -1010,43 +837,9 @@ var de_DeleteInputCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1010
837
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1011
838
|
return contents;
|
|
1012
839
|
}, "de_DeleteInputCommand");
|
|
1013
|
-
var de_DeleteInputCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1014
|
-
const parsedOutput = {
|
|
1015
|
-
...output,
|
|
1016
|
-
body: await parseErrorBody(output.body, context)
|
|
1017
|
-
};
|
|
1018
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1019
|
-
switch (errorCode) {
|
|
1020
|
-
case "InternalFailureException":
|
|
1021
|
-
case "com.amazonaws.iotevents#InternalFailureException":
|
|
1022
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1023
|
-
case "InvalidRequestException":
|
|
1024
|
-
case "com.amazonaws.iotevents#InvalidRequestException":
|
|
1025
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1026
|
-
case "ResourceInUseException":
|
|
1027
|
-
case "com.amazonaws.iotevents#ResourceInUseException":
|
|
1028
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1029
|
-
case "ResourceNotFoundException":
|
|
1030
|
-
case "com.amazonaws.iotevents#ResourceNotFoundException":
|
|
1031
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1032
|
-
case "ServiceUnavailableException":
|
|
1033
|
-
case "com.amazonaws.iotevents#ServiceUnavailableException":
|
|
1034
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1035
|
-
case "ThrottlingException":
|
|
1036
|
-
case "com.amazonaws.iotevents#ThrottlingException":
|
|
1037
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1038
|
-
default:
|
|
1039
|
-
const parsedBody = parsedOutput.body;
|
|
1040
|
-
return throwDefaultError({
|
|
1041
|
-
output,
|
|
1042
|
-
parsedBody,
|
|
1043
|
-
errorCode
|
|
1044
|
-
});
|
|
1045
|
-
}
|
|
1046
|
-
}, "de_DeleteInputCommandError");
|
|
1047
840
|
var de_DescribeAlarmModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1048
841
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1049
|
-
return
|
|
842
|
+
return de_CommandError(output, context);
|
|
1050
843
|
}
|
|
1051
844
|
const contents = (0, import_smithy_client.map)({
|
|
1052
845
|
$metadata: deserializeMetadata(output)
|
|
@@ -1072,40 +865,9 @@ var de_DescribeAlarmModelCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1072
865
|
Object.assign(contents, doc);
|
|
1073
866
|
return contents;
|
|
1074
867
|
}, "de_DescribeAlarmModelCommand");
|
|
1075
|
-
var de_DescribeAlarmModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1076
|
-
const parsedOutput = {
|
|
1077
|
-
...output,
|
|
1078
|
-
body: await parseErrorBody(output.body, context)
|
|
1079
|
-
};
|
|
1080
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1081
|
-
switch (errorCode) {
|
|
1082
|
-
case "InternalFailureException":
|
|
1083
|
-
case "com.amazonaws.iotevents#InternalFailureException":
|
|
1084
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1085
|
-
case "InvalidRequestException":
|
|
1086
|
-
case "com.amazonaws.iotevents#InvalidRequestException":
|
|
1087
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1088
|
-
case "ResourceNotFoundException":
|
|
1089
|
-
case "com.amazonaws.iotevents#ResourceNotFoundException":
|
|
1090
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1091
|
-
case "ServiceUnavailableException":
|
|
1092
|
-
case "com.amazonaws.iotevents#ServiceUnavailableException":
|
|
1093
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1094
|
-
case "ThrottlingException":
|
|
1095
|
-
case "com.amazonaws.iotevents#ThrottlingException":
|
|
1096
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1097
|
-
default:
|
|
1098
|
-
const parsedBody = parsedOutput.body;
|
|
1099
|
-
return throwDefaultError({
|
|
1100
|
-
output,
|
|
1101
|
-
parsedBody,
|
|
1102
|
-
errorCode
|
|
1103
|
-
});
|
|
1104
|
-
}
|
|
1105
|
-
}, "de_DescribeAlarmModelCommandError");
|
|
1106
868
|
var de_DescribeDetectorModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1107
869
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1108
|
-
return
|
|
870
|
+
return de_CommandError(output, context);
|
|
1109
871
|
}
|
|
1110
872
|
const contents = (0, import_smithy_client.map)({
|
|
1111
873
|
$metadata: deserializeMetadata(output)
|
|
@@ -1117,40 +879,9 @@ var de_DescribeDetectorModelCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1117
879
|
Object.assign(contents, doc);
|
|
1118
880
|
return contents;
|
|
1119
881
|
}, "de_DescribeDetectorModelCommand");
|
|
1120
|
-
var de_DescribeDetectorModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1121
|
-
const parsedOutput = {
|
|
1122
|
-
...output,
|
|
1123
|
-
body: await parseErrorBody(output.body, context)
|
|
1124
|
-
};
|
|
1125
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1126
|
-
switch (errorCode) {
|
|
1127
|
-
case "InternalFailureException":
|
|
1128
|
-
case "com.amazonaws.iotevents#InternalFailureException":
|
|
1129
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1130
|
-
case "InvalidRequestException":
|
|
1131
|
-
case "com.amazonaws.iotevents#InvalidRequestException":
|
|
1132
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1133
|
-
case "ResourceNotFoundException":
|
|
1134
|
-
case "com.amazonaws.iotevents#ResourceNotFoundException":
|
|
1135
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1136
|
-
case "ServiceUnavailableException":
|
|
1137
|
-
case "com.amazonaws.iotevents#ServiceUnavailableException":
|
|
1138
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1139
|
-
case "ThrottlingException":
|
|
1140
|
-
case "com.amazonaws.iotevents#ThrottlingException":
|
|
1141
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1142
|
-
default:
|
|
1143
|
-
const parsedBody = parsedOutput.body;
|
|
1144
|
-
return throwDefaultError({
|
|
1145
|
-
output,
|
|
1146
|
-
parsedBody,
|
|
1147
|
-
errorCode
|
|
1148
|
-
});
|
|
1149
|
-
}
|
|
1150
|
-
}, "de_DescribeDetectorModelCommandError");
|
|
1151
882
|
var de_DescribeDetectorModelAnalysisCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1152
883
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1153
|
-
return
|
|
884
|
+
return de_CommandError(output, context);
|
|
1154
885
|
}
|
|
1155
886
|
const contents = (0, import_smithy_client.map)({
|
|
1156
887
|
$metadata: deserializeMetadata(output)
|
|
@@ -1162,40 +893,9 @@ var de_DescribeDetectorModelAnalysisCommand = /* @__PURE__ */ __name(async (outp
|
|
|
1162
893
|
Object.assign(contents, doc);
|
|
1163
894
|
return contents;
|
|
1164
895
|
}, "de_DescribeDetectorModelAnalysisCommand");
|
|
1165
|
-
var de_DescribeDetectorModelAnalysisCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1166
|
-
const parsedOutput = {
|
|
1167
|
-
...output,
|
|
1168
|
-
body: await parseErrorBody(output.body, context)
|
|
1169
|
-
};
|
|
1170
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1171
|
-
switch (errorCode) {
|
|
1172
|
-
case "InternalFailureException":
|
|
1173
|
-
case "com.amazonaws.iotevents#InternalFailureException":
|
|
1174
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1175
|
-
case "InvalidRequestException":
|
|
1176
|
-
case "com.amazonaws.iotevents#InvalidRequestException":
|
|
1177
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1178
|
-
case "ResourceNotFoundException":
|
|
1179
|
-
case "com.amazonaws.iotevents#ResourceNotFoundException":
|
|
1180
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1181
|
-
case "ServiceUnavailableException":
|
|
1182
|
-
case "com.amazonaws.iotevents#ServiceUnavailableException":
|
|
1183
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1184
|
-
case "ThrottlingException":
|
|
1185
|
-
case "com.amazonaws.iotevents#ThrottlingException":
|
|
1186
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1187
|
-
default:
|
|
1188
|
-
const parsedBody = parsedOutput.body;
|
|
1189
|
-
return throwDefaultError({
|
|
1190
|
-
output,
|
|
1191
|
-
parsedBody,
|
|
1192
|
-
errorCode
|
|
1193
|
-
});
|
|
1194
|
-
}
|
|
1195
|
-
}, "de_DescribeDetectorModelAnalysisCommandError");
|
|
1196
896
|
var de_DescribeInputCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1197
897
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1198
|
-
return
|
|
898
|
+
return de_CommandError(output, context);
|
|
1199
899
|
}
|
|
1200
900
|
const contents = (0, import_smithy_client.map)({
|
|
1201
901
|
$metadata: deserializeMetadata(output)
|
|
@@ -1207,40 +907,9 @@ var de_DescribeInputCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1207
907
|
Object.assign(contents, doc);
|
|
1208
908
|
return contents;
|
|
1209
909
|
}, "de_DescribeInputCommand");
|
|
1210
|
-
var de_DescribeInputCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1211
|
-
const parsedOutput = {
|
|
1212
|
-
...output,
|
|
1213
|
-
body: await parseErrorBody(output.body, context)
|
|
1214
|
-
};
|
|
1215
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1216
|
-
switch (errorCode) {
|
|
1217
|
-
case "InternalFailureException":
|
|
1218
|
-
case "com.amazonaws.iotevents#InternalFailureException":
|
|
1219
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1220
|
-
case "InvalidRequestException":
|
|
1221
|
-
case "com.amazonaws.iotevents#InvalidRequestException":
|
|
1222
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1223
|
-
case "ResourceNotFoundException":
|
|
1224
|
-
case "com.amazonaws.iotevents#ResourceNotFoundException":
|
|
1225
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1226
|
-
case "ServiceUnavailableException":
|
|
1227
|
-
case "com.amazonaws.iotevents#ServiceUnavailableException":
|
|
1228
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1229
|
-
case "ThrottlingException":
|
|
1230
|
-
case "com.amazonaws.iotevents#ThrottlingException":
|
|
1231
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1232
|
-
default:
|
|
1233
|
-
const parsedBody = parsedOutput.body;
|
|
1234
|
-
return throwDefaultError({
|
|
1235
|
-
output,
|
|
1236
|
-
parsedBody,
|
|
1237
|
-
errorCode
|
|
1238
|
-
});
|
|
1239
|
-
}
|
|
1240
|
-
}, "de_DescribeInputCommandError");
|
|
1241
910
|
var de_DescribeLoggingOptionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1242
911
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1243
|
-
return
|
|
912
|
+
return de_CommandError(output, context);
|
|
1244
913
|
}
|
|
1245
914
|
const contents = (0, import_smithy_client.map)({
|
|
1246
915
|
$metadata: deserializeMetadata(output)
|
|
@@ -1252,43 +921,9 @@ var de_DescribeLoggingOptionsCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1252
921
|
Object.assign(contents, doc);
|
|
1253
922
|
return contents;
|
|
1254
923
|
}, "de_DescribeLoggingOptionsCommand");
|
|
1255
|
-
var de_DescribeLoggingOptionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1256
|
-
const parsedOutput = {
|
|
1257
|
-
...output,
|
|
1258
|
-
body: await parseErrorBody(output.body, context)
|
|
1259
|
-
};
|
|
1260
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1261
|
-
switch (errorCode) {
|
|
1262
|
-
case "InternalFailureException":
|
|
1263
|
-
case "com.amazonaws.iotevents#InternalFailureException":
|
|
1264
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1265
|
-
case "InvalidRequestException":
|
|
1266
|
-
case "com.amazonaws.iotevents#InvalidRequestException":
|
|
1267
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1268
|
-
case "ResourceNotFoundException":
|
|
1269
|
-
case "com.amazonaws.iotevents#ResourceNotFoundException":
|
|
1270
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1271
|
-
case "ServiceUnavailableException":
|
|
1272
|
-
case "com.amazonaws.iotevents#ServiceUnavailableException":
|
|
1273
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1274
|
-
case "ThrottlingException":
|
|
1275
|
-
case "com.amazonaws.iotevents#ThrottlingException":
|
|
1276
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1277
|
-
case "UnsupportedOperationException":
|
|
1278
|
-
case "com.amazonaws.iotevents#UnsupportedOperationException":
|
|
1279
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1280
|
-
default:
|
|
1281
|
-
const parsedBody = parsedOutput.body;
|
|
1282
|
-
return throwDefaultError({
|
|
1283
|
-
output,
|
|
1284
|
-
parsedBody,
|
|
1285
|
-
errorCode
|
|
1286
|
-
});
|
|
1287
|
-
}
|
|
1288
|
-
}, "de_DescribeLoggingOptionsCommandError");
|
|
1289
924
|
var de_GetDetectorModelAnalysisResultsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1290
925
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1291
|
-
return
|
|
926
|
+
return de_CommandError(output, context);
|
|
1292
927
|
}
|
|
1293
928
|
const contents = (0, import_smithy_client.map)({
|
|
1294
929
|
$metadata: deserializeMetadata(output)
|
|
@@ -1301,40 +936,9 @@ var de_GetDetectorModelAnalysisResultsCommand = /* @__PURE__ */ __name(async (ou
|
|
|
1301
936
|
Object.assign(contents, doc);
|
|
1302
937
|
return contents;
|
|
1303
938
|
}, "de_GetDetectorModelAnalysisResultsCommand");
|
|
1304
|
-
var de_GetDetectorModelAnalysisResultsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1305
|
-
const parsedOutput = {
|
|
1306
|
-
...output,
|
|
1307
|
-
body: await parseErrorBody(output.body, context)
|
|
1308
|
-
};
|
|
1309
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1310
|
-
switch (errorCode) {
|
|
1311
|
-
case "InternalFailureException":
|
|
1312
|
-
case "com.amazonaws.iotevents#InternalFailureException":
|
|
1313
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1314
|
-
case "InvalidRequestException":
|
|
1315
|
-
case "com.amazonaws.iotevents#InvalidRequestException":
|
|
1316
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1317
|
-
case "ResourceNotFoundException":
|
|
1318
|
-
case "com.amazonaws.iotevents#ResourceNotFoundException":
|
|
1319
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1320
|
-
case "ServiceUnavailableException":
|
|
1321
|
-
case "com.amazonaws.iotevents#ServiceUnavailableException":
|
|
1322
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1323
|
-
case "ThrottlingException":
|
|
1324
|
-
case "com.amazonaws.iotevents#ThrottlingException":
|
|
1325
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1326
|
-
default:
|
|
1327
|
-
const parsedBody = parsedOutput.body;
|
|
1328
|
-
return throwDefaultError({
|
|
1329
|
-
output,
|
|
1330
|
-
parsedBody,
|
|
1331
|
-
errorCode
|
|
1332
|
-
});
|
|
1333
|
-
}
|
|
1334
|
-
}, "de_GetDetectorModelAnalysisResultsCommandError");
|
|
1335
939
|
var de_ListAlarmModelsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1336
940
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1337
|
-
return
|
|
941
|
+
return de_CommandError(output, context);
|
|
1338
942
|
}
|
|
1339
943
|
const contents = (0, import_smithy_client.map)({
|
|
1340
944
|
$metadata: deserializeMetadata(output)
|
|
@@ -1347,37 +951,9 @@ var de_ListAlarmModelsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1347
951
|
Object.assign(contents, doc);
|
|
1348
952
|
return contents;
|
|
1349
953
|
}, "de_ListAlarmModelsCommand");
|
|
1350
|
-
var de_ListAlarmModelsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1351
|
-
const parsedOutput = {
|
|
1352
|
-
...output,
|
|
1353
|
-
body: await parseErrorBody(output.body, context)
|
|
1354
|
-
};
|
|
1355
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1356
|
-
switch (errorCode) {
|
|
1357
|
-
case "InternalFailureException":
|
|
1358
|
-
case "com.amazonaws.iotevents#InternalFailureException":
|
|
1359
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1360
|
-
case "InvalidRequestException":
|
|
1361
|
-
case "com.amazonaws.iotevents#InvalidRequestException":
|
|
1362
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1363
|
-
case "ServiceUnavailableException":
|
|
1364
|
-
case "com.amazonaws.iotevents#ServiceUnavailableException":
|
|
1365
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1366
|
-
case "ThrottlingException":
|
|
1367
|
-
case "com.amazonaws.iotevents#ThrottlingException":
|
|
1368
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1369
|
-
default:
|
|
1370
|
-
const parsedBody = parsedOutput.body;
|
|
1371
|
-
return throwDefaultError({
|
|
1372
|
-
output,
|
|
1373
|
-
parsedBody,
|
|
1374
|
-
errorCode
|
|
1375
|
-
});
|
|
1376
|
-
}
|
|
1377
|
-
}, "de_ListAlarmModelsCommandError");
|
|
1378
954
|
var de_ListAlarmModelVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1379
955
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1380
|
-
return
|
|
956
|
+
return de_CommandError(output, context);
|
|
1381
957
|
}
|
|
1382
958
|
const contents = (0, import_smithy_client.map)({
|
|
1383
959
|
$metadata: deserializeMetadata(output)
|
|
@@ -1390,40 +966,9 @@ var de_ListAlarmModelVersionsCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1390
966
|
Object.assign(contents, doc);
|
|
1391
967
|
return contents;
|
|
1392
968
|
}, "de_ListAlarmModelVersionsCommand");
|
|
1393
|
-
var de_ListAlarmModelVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1394
|
-
const parsedOutput = {
|
|
1395
|
-
...output,
|
|
1396
|
-
body: await parseErrorBody(output.body, context)
|
|
1397
|
-
};
|
|
1398
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1399
|
-
switch (errorCode) {
|
|
1400
|
-
case "InternalFailureException":
|
|
1401
|
-
case "com.amazonaws.iotevents#InternalFailureException":
|
|
1402
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1403
|
-
case "InvalidRequestException":
|
|
1404
|
-
case "com.amazonaws.iotevents#InvalidRequestException":
|
|
1405
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1406
|
-
case "ResourceNotFoundException":
|
|
1407
|
-
case "com.amazonaws.iotevents#ResourceNotFoundException":
|
|
1408
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1409
|
-
case "ServiceUnavailableException":
|
|
1410
|
-
case "com.amazonaws.iotevents#ServiceUnavailableException":
|
|
1411
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1412
|
-
case "ThrottlingException":
|
|
1413
|
-
case "com.amazonaws.iotevents#ThrottlingException":
|
|
1414
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1415
|
-
default:
|
|
1416
|
-
const parsedBody = parsedOutput.body;
|
|
1417
|
-
return throwDefaultError({
|
|
1418
|
-
output,
|
|
1419
|
-
parsedBody,
|
|
1420
|
-
errorCode
|
|
1421
|
-
});
|
|
1422
|
-
}
|
|
1423
|
-
}, "de_ListAlarmModelVersionsCommandError");
|
|
1424
969
|
var de_ListDetectorModelsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1425
970
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1426
|
-
return
|
|
971
|
+
return de_CommandError(output, context);
|
|
1427
972
|
}
|
|
1428
973
|
const contents = (0, import_smithy_client.map)({
|
|
1429
974
|
$metadata: deserializeMetadata(output)
|
|
@@ -1436,37 +981,9 @@ var de_ListDetectorModelsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1436
981
|
Object.assign(contents, doc);
|
|
1437
982
|
return contents;
|
|
1438
983
|
}, "de_ListDetectorModelsCommand");
|
|
1439
|
-
var de_ListDetectorModelsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1440
|
-
const parsedOutput = {
|
|
1441
|
-
...output,
|
|
1442
|
-
body: await parseErrorBody(output.body, context)
|
|
1443
|
-
};
|
|
1444
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1445
|
-
switch (errorCode) {
|
|
1446
|
-
case "InternalFailureException":
|
|
1447
|
-
case "com.amazonaws.iotevents#InternalFailureException":
|
|
1448
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1449
|
-
case "InvalidRequestException":
|
|
1450
|
-
case "com.amazonaws.iotevents#InvalidRequestException":
|
|
1451
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1452
|
-
case "ServiceUnavailableException":
|
|
1453
|
-
case "com.amazonaws.iotevents#ServiceUnavailableException":
|
|
1454
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1455
|
-
case "ThrottlingException":
|
|
1456
|
-
case "com.amazonaws.iotevents#ThrottlingException":
|
|
1457
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1458
|
-
default:
|
|
1459
|
-
const parsedBody = parsedOutput.body;
|
|
1460
|
-
return throwDefaultError({
|
|
1461
|
-
output,
|
|
1462
|
-
parsedBody,
|
|
1463
|
-
errorCode
|
|
1464
|
-
});
|
|
1465
|
-
}
|
|
1466
|
-
}, "de_ListDetectorModelsCommandError");
|
|
1467
984
|
var de_ListDetectorModelVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1468
985
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1469
|
-
return
|
|
986
|
+
return de_CommandError(output, context);
|
|
1470
987
|
}
|
|
1471
988
|
const contents = (0, import_smithy_client.map)({
|
|
1472
989
|
$metadata: deserializeMetadata(output)
|
|
@@ -1479,40 +996,9 @@ var de_ListDetectorModelVersionsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1479
996
|
Object.assign(contents, doc);
|
|
1480
997
|
return contents;
|
|
1481
998
|
}, "de_ListDetectorModelVersionsCommand");
|
|
1482
|
-
var de_ListDetectorModelVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1483
|
-
const parsedOutput = {
|
|
1484
|
-
...output,
|
|
1485
|
-
body: await parseErrorBody(output.body, context)
|
|
1486
|
-
};
|
|
1487
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1488
|
-
switch (errorCode) {
|
|
1489
|
-
case "InternalFailureException":
|
|
1490
|
-
case "com.amazonaws.iotevents#InternalFailureException":
|
|
1491
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1492
|
-
case "InvalidRequestException":
|
|
1493
|
-
case "com.amazonaws.iotevents#InvalidRequestException":
|
|
1494
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1495
|
-
case "ResourceNotFoundException":
|
|
1496
|
-
case "com.amazonaws.iotevents#ResourceNotFoundException":
|
|
1497
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1498
|
-
case "ServiceUnavailableException":
|
|
1499
|
-
case "com.amazonaws.iotevents#ServiceUnavailableException":
|
|
1500
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1501
|
-
case "ThrottlingException":
|
|
1502
|
-
case "com.amazonaws.iotevents#ThrottlingException":
|
|
1503
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1504
|
-
default:
|
|
1505
|
-
const parsedBody = parsedOutput.body;
|
|
1506
|
-
return throwDefaultError({
|
|
1507
|
-
output,
|
|
1508
|
-
parsedBody,
|
|
1509
|
-
errorCode
|
|
1510
|
-
});
|
|
1511
|
-
}
|
|
1512
|
-
}, "de_ListDetectorModelVersionsCommandError");
|
|
1513
999
|
var de_ListInputRoutingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1514
1000
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1515
|
-
return
|
|
1001
|
+
return de_CommandError(output, context);
|
|
1516
1002
|
}
|
|
1517
1003
|
const contents = (0, import_smithy_client.map)({
|
|
1518
1004
|
$metadata: deserializeMetadata(output)
|
|
@@ -1525,40 +1011,9 @@ var de_ListInputRoutingsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1525
1011
|
Object.assign(contents, doc);
|
|
1526
1012
|
return contents;
|
|
1527
1013
|
}, "de_ListInputRoutingsCommand");
|
|
1528
|
-
var de_ListInputRoutingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1529
|
-
const parsedOutput = {
|
|
1530
|
-
...output,
|
|
1531
|
-
body: await parseErrorBody(output.body, context)
|
|
1532
|
-
};
|
|
1533
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1534
|
-
switch (errorCode) {
|
|
1535
|
-
case "InternalFailureException":
|
|
1536
|
-
case "com.amazonaws.iotevents#InternalFailureException":
|
|
1537
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1538
|
-
case "InvalidRequestException":
|
|
1539
|
-
case "com.amazonaws.iotevents#InvalidRequestException":
|
|
1540
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1541
|
-
case "ResourceNotFoundException":
|
|
1542
|
-
case "com.amazonaws.iotevents#ResourceNotFoundException":
|
|
1543
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1544
|
-
case "ServiceUnavailableException":
|
|
1545
|
-
case "com.amazonaws.iotevents#ServiceUnavailableException":
|
|
1546
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1547
|
-
case "ThrottlingException":
|
|
1548
|
-
case "com.amazonaws.iotevents#ThrottlingException":
|
|
1549
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1550
|
-
default:
|
|
1551
|
-
const parsedBody = parsedOutput.body;
|
|
1552
|
-
return throwDefaultError({
|
|
1553
|
-
output,
|
|
1554
|
-
parsedBody,
|
|
1555
|
-
errorCode
|
|
1556
|
-
});
|
|
1557
|
-
}
|
|
1558
|
-
}, "de_ListInputRoutingsCommandError");
|
|
1559
1014
|
var de_ListInputsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1560
1015
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1561
|
-
return
|
|
1016
|
+
return de_CommandError(output, context);
|
|
1562
1017
|
}
|
|
1563
1018
|
const contents = (0, import_smithy_client.map)({
|
|
1564
1019
|
$metadata: deserializeMetadata(output)
|
|
@@ -1571,37 +1026,9 @@ var de_ListInputsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1571
1026
|
Object.assign(contents, doc);
|
|
1572
1027
|
return contents;
|
|
1573
1028
|
}, "de_ListInputsCommand");
|
|
1574
|
-
var de_ListInputsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1575
|
-
const parsedOutput = {
|
|
1576
|
-
...output,
|
|
1577
|
-
body: await parseErrorBody(output.body, context)
|
|
1578
|
-
};
|
|
1579
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1580
|
-
switch (errorCode) {
|
|
1581
|
-
case "InternalFailureException":
|
|
1582
|
-
case "com.amazonaws.iotevents#InternalFailureException":
|
|
1583
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1584
|
-
case "InvalidRequestException":
|
|
1585
|
-
case "com.amazonaws.iotevents#InvalidRequestException":
|
|
1586
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1587
|
-
case "ServiceUnavailableException":
|
|
1588
|
-
case "com.amazonaws.iotevents#ServiceUnavailableException":
|
|
1589
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1590
|
-
case "ThrottlingException":
|
|
1591
|
-
case "com.amazonaws.iotevents#ThrottlingException":
|
|
1592
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1593
|
-
default:
|
|
1594
|
-
const parsedBody = parsedOutput.body;
|
|
1595
|
-
return throwDefaultError({
|
|
1596
|
-
output,
|
|
1597
|
-
parsedBody,
|
|
1598
|
-
errorCode
|
|
1599
|
-
});
|
|
1600
|
-
}
|
|
1601
|
-
}, "de_ListInputsCommandError");
|
|
1602
1029
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1603
1030
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1604
|
-
return
|
|
1031
|
+
return de_CommandError(output, context);
|
|
1605
1032
|
}
|
|
1606
1033
|
const contents = (0, import_smithy_client.map)({
|
|
1607
1034
|
$metadata: deserializeMetadata(output)
|
|
@@ -1613,40 +1040,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1613
1040
|
Object.assign(contents, doc);
|
|
1614
1041
|
return contents;
|
|
1615
1042
|
}, "de_ListTagsForResourceCommand");
|
|
1616
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1617
|
-
const parsedOutput = {
|
|
1618
|
-
...output,
|
|
1619
|
-
body: await parseErrorBody(output.body, context)
|
|
1620
|
-
};
|
|
1621
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1622
|
-
switch (errorCode) {
|
|
1623
|
-
case "InternalFailureException":
|
|
1624
|
-
case "com.amazonaws.iotevents#InternalFailureException":
|
|
1625
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1626
|
-
case "InvalidRequestException":
|
|
1627
|
-
case "com.amazonaws.iotevents#InvalidRequestException":
|
|
1628
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1629
|
-
case "ResourceInUseException":
|
|
1630
|
-
case "com.amazonaws.iotevents#ResourceInUseException":
|
|
1631
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1632
|
-
case "ResourceNotFoundException":
|
|
1633
|
-
case "com.amazonaws.iotevents#ResourceNotFoundException":
|
|
1634
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1635
|
-
case "ThrottlingException":
|
|
1636
|
-
case "com.amazonaws.iotevents#ThrottlingException":
|
|
1637
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1638
|
-
default:
|
|
1639
|
-
const parsedBody = parsedOutput.body;
|
|
1640
|
-
return throwDefaultError({
|
|
1641
|
-
output,
|
|
1642
|
-
parsedBody,
|
|
1643
|
-
errorCode
|
|
1644
|
-
});
|
|
1645
|
-
}
|
|
1646
|
-
}, "de_ListTagsForResourceCommandError");
|
|
1647
1043
|
var de_PutLoggingOptionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1648
1044
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1649
|
-
return
|
|
1045
|
+
return de_CommandError(output, context);
|
|
1650
1046
|
}
|
|
1651
1047
|
const contents = (0, import_smithy_client.map)({
|
|
1652
1048
|
$metadata: deserializeMetadata(output)
|
|
@@ -1654,43 +1050,9 @@ var de_PutLoggingOptionsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1654
1050
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1655
1051
|
return contents;
|
|
1656
1052
|
}, "de_PutLoggingOptionsCommand");
|
|
1657
|
-
var de_PutLoggingOptionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1658
|
-
const parsedOutput = {
|
|
1659
|
-
...output,
|
|
1660
|
-
body: await parseErrorBody(output.body, context)
|
|
1661
|
-
};
|
|
1662
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1663
|
-
switch (errorCode) {
|
|
1664
|
-
case "InternalFailureException":
|
|
1665
|
-
case "com.amazonaws.iotevents#InternalFailureException":
|
|
1666
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1667
|
-
case "InvalidRequestException":
|
|
1668
|
-
case "com.amazonaws.iotevents#InvalidRequestException":
|
|
1669
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1670
|
-
case "ResourceInUseException":
|
|
1671
|
-
case "com.amazonaws.iotevents#ResourceInUseException":
|
|
1672
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1673
|
-
case "ServiceUnavailableException":
|
|
1674
|
-
case "com.amazonaws.iotevents#ServiceUnavailableException":
|
|
1675
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1676
|
-
case "ThrottlingException":
|
|
1677
|
-
case "com.amazonaws.iotevents#ThrottlingException":
|
|
1678
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1679
|
-
case "UnsupportedOperationException":
|
|
1680
|
-
case "com.amazonaws.iotevents#UnsupportedOperationException":
|
|
1681
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1682
|
-
default:
|
|
1683
|
-
const parsedBody = parsedOutput.body;
|
|
1684
|
-
return throwDefaultError({
|
|
1685
|
-
output,
|
|
1686
|
-
parsedBody,
|
|
1687
|
-
errorCode
|
|
1688
|
-
});
|
|
1689
|
-
}
|
|
1690
|
-
}, "de_PutLoggingOptionsCommandError");
|
|
1691
1053
|
var de_StartDetectorModelAnalysisCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1692
1054
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1693
|
-
return
|
|
1055
|
+
return de_CommandError(output, context);
|
|
1694
1056
|
}
|
|
1695
1057
|
const contents = (0, import_smithy_client.map)({
|
|
1696
1058
|
$metadata: deserializeMetadata(output)
|
|
@@ -1702,40 +1064,9 @@ var de_StartDetectorModelAnalysisCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1702
1064
|
Object.assign(contents, doc);
|
|
1703
1065
|
return contents;
|
|
1704
1066
|
}, "de_StartDetectorModelAnalysisCommand");
|
|
1705
|
-
var de_StartDetectorModelAnalysisCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1706
|
-
const parsedOutput = {
|
|
1707
|
-
...output,
|
|
1708
|
-
body: await parseErrorBody(output.body, context)
|
|
1709
|
-
};
|
|
1710
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1711
|
-
switch (errorCode) {
|
|
1712
|
-
case "InternalFailureException":
|
|
1713
|
-
case "com.amazonaws.iotevents#InternalFailureException":
|
|
1714
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1715
|
-
case "InvalidRequestException":
|
|
1716
|
-
case "com.amazonaws.iotevents#InvalidRequestException":
|
|
1717
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1718
|
-
case "LimitExceededException":
|
|
1719
|
-
case "com.amazonaws.iotevents#LimitExceededException":
|
|
1720
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1721
|
-
case "ServiceUnavailableException":
|
|
1722
|
-
case "com.amazonaws.iotevents#ServiceUnavailableException":
|
|
1723
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1724
|
-
case "ThrottlingException":
|
|
1725
|
-
case "com.amazonaws.iotevents#ThrottlingException":
|
|
1726
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1727
|
-
default:
|
|
1728
|
-
const parsedBody = parsedOutput.body;
|
|
1729
|
-
return throwDefaultError({
|
|
1730
|
-
output,
|
|
1731
|
-
parsedBody,
|
|
1732
|
-
errorCode
|
|
1733
|
-
});
|
|
1734
|
-
}
|
|
1735
|
-
}, "de_StartDetectorModelAnalysisCommandError");
|
|
1736
1067
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1737
1068
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1738
|
-
return
|
|
1069
|
+
return de_CommandError(output, context);
|
|
1739
1070
|
}
|
|
1740
1071
|
const contents = (0, import_smithy_client.map)({
|
|
1741
1072
|
$metadata: deserializeMetadata(output)
|
|
@@ -1743,43 +1074,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1743
1074
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1744
1075
|
return contents;
|
|
1745
1076
|
}, "de_TagResourceCommand");
|
|
1746
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1747
|
-
const parsedOutput = {
|
|
1748
|
-
...output,
|
|
1749
|
-
body: await parseErrorBody(output.body, context)
|
|
1750
|
-
};
|
|
1751
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1752
|
-
switch (errorCode) {
|
|
1753
|
-
case "InternalFailureException":
|
|
1754
|
-
case "com.amazonaws.iotevents#InternalFailureException":
|
|
1755
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1756
|
-
case "InvalidRequestException":
|
|
1757
|
-
case "com.amazonaws.iotevents#InvalidRequestException":
|
|
1758
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1759
|
-
case "LimitExceededException":
|
|
1760
|
-
case "com.amazonaws.iotevents#LimitExceededException":
|
|
1761
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1762
|
-
case "ResourceInUseException":
|
|
1763
|
-
case "com.amazonaws.iotevents#ResourceInUseException":
|
|
1764
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1765
|
-
case "ResourceNotFoundException":
|
|
1766
|
-
case "com.amazonaws.iotevents#ResourceNotFoundException":
|
|
1767
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1768
|
-
case "ThrottlingException":
|
|
1769
|
-
case "com.amazonaws.iotevents#ThrottlingException":
|
|
1770
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1771
|
-
default:
|
|
1772
|
-
const parsedBody = parsedOutput.body;
|
|
1773
|
-
return throwDefaultError({
|
|
1774
|
-
output,
|
|
1775
|
-
parsedBody,
|
|
1776
|
-
errorCode
|
|
1777
|
-
});
|
|
1778
|
-
}
|
|
1779
|
-
}, "de_TagResourceCommandError");
|
|
1780
1077
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1781
1078
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1782
|
-
return
|
|
1079
|
+
return de_CommandError(output, context);
|
|
1783
1080
|
}
|
|
1784
1081
|
const contents = (0, import_smithy_client.map)({
|
|
1785
1082
|
$metadata: deserializeMetadata(output)
|
|
@@ -1787,40 +1084,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1787
1084
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1788
1085
|
return contents;
|
|
1789
1086
|
}, "de_UntagResourceCommand");
|
|
1790
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1791
|
-
const parsedOutput = {
|
|
1792
|
-
...output,
|
|
1793
|
-
body: await parseErrorBody(output.body, context)
|
|
1794
|
-
};
|
|
1795
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1796
|
-
switch (errorCode) {
|
|
1797
|
-
case "InternalFailureException":
|
|
1798
|
-
case "com.amazonaws.iotevents#InternalFailureException":
|
|
1799
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1800
|
-
case "InvalidRequestException":
|
|
1801
|
-
case "com.amazonaws.iotevents#InvalidRequestException":
|
|
1802
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1803
|
-
case "ResourceInUseException":
|
|
1804
|
-
case "com.amazonaws.iotevents#ResourceInUseException":
|
|
1805
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1806
|
-
case "ResourceNotFoundException":
|
|
1807
|
-
case "com.amazonaws.iotevents#ResourceNotFoundException":
|
|
1808
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1809
|
-
case "ThrottlingException":
|
|
1810
|
-
case "com.amazonaws.iotevents#ThrottlingException":
|
|
1811
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1812
|
-
default:
|
|
1813
|
-
const parsedBody = parsedOutput.body;
|
|
1814
|
-
return throwDefaultError({
|
|
1815
|
-
output,
|
|
1816
|
-
parsedBody,
|
|
1817
|
-
errorCode
|
|
1818
|
-
});
|
|
1819
|
-
}
|
|
1820
|
-
}, "de_UntagResourceCommandError");
|
|
1821
1087
|
var de_UpdateAlarmModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1822
1088
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1823
|
-
return
|
|
1089
|
+
return de_CommandError(output, context);
|
|
1824
1090
|
}
|
|
1825
1091
|
const contents = (0, import_smithy_client.map)({
|
|
1826
1092
|
$metadata: deserializeMetadata(output)
|
|
@@ -1836,43 +1102,9 @@ var de_UpdateAlarmModelCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1836
1102
|
Object.assign(contents, doc);
|
|
1837
1103
|
return contents;
|
|
1838
1104
|
}, "de_UpdateAlarmModelCommand");
|
|
1839
|
-
var de_UpdateAlarmModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1840
|
-
const parsedOutput = {
|
|
1841
|
-
...output,
|
|
1842
|
-
body: await parseErrorBody(output.body, context)
|
|
1843
|
-
};
|
|
1844
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1845
|
-
switch (errorCode) {
|
|
1846
|
-
case "InternalFailureException":
|
|
1847
|
-
case "com.amazonaws.iotevents#InternalFailureException":
|
|
1848
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1849
|
-
case "InvalidRequestException":
|
|
1850
|
-
case "com.amazonaws.iotevents#InvalidRequestException":
|
|
1851
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1852
|
-
case "ResourceInUseException":
|
|
1853
|
-
case "com.amazonaws.iotevents#ResourceInUseException":
|
|
1854
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1855
|
-
case "ResourceNotFoundException":
|
|
1856
|
-
case "com.amazonaws.iotevents#ResourceNotFoundException":
|
|
1857
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1858
|
-
case "ServiceUnavailableException":
|
|
1859
|
-
case "com.amazonaws.iotevents#ServiceUnavailableException":
|
|
1860
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1861
|
-
case "ThrottlingException":
|
|
1862
|
-
case "com.amazonaws.iotevents#ThrottlingException":
|
|
1863
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1864
|
-
default:
|
|
1865
|
-
const parsedBody = parsedOutput.body;
|
|
1866
|
-
return throwDefaultError({
|
|
1867
|
-
output,
|
|
1868
|
-
parsedBody,
|
|
1869
|
-
errorCode
|
|
1870
|
-
});
|
|
1871
|
-
}
|
|
1872
|
-
}, "de_UpdateAlarmModelCommandError");
|
|
1873
1105
|
var de_UpdateDetectorModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1874
1106
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1875
|
-
return
|
|
1107
|
+
return de_CommandError(output, context);
|
|
1876
1108
|
}
|
|
1877
1109
|
const contents = (0, import_smithy_client.map)({
|
|
1878
1110
|
$metadata: deserializeMetadata(output)
|
|
@@ -1884,43 +1116,9 @@ var de_UpdateDetectorModelCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1884
1116
|
Object.assign(contents, doc);
|
|
1885
1117
|
return contents;
|
|
1886
1118
|
}, "de_UpdateDetectorModelCommand");
|
|
1887
|
-
var de_UpdateDetectorModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1888
|
-
const parsedOutput = {
|
|
1889
|
-
...output,
|
|
1890
|
-
body: await parseErrorBody(output.body, context)
|
|
1891
|
-
};
|
|
1892
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1893
|
-
switch (errorCode) {
|
|
1894
|
-
case "InternalFailureException":
|
|
1895
|
-
case "com.amazonaws.iotevents#InternalFailureException":
|
|
1896
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1897
|
-
case "InvalidRequestException":
|
|
1898
|
-
case "com.amazonaws.iotevents#InvalidRequestException":
|
|
1899
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1900
|
-
case "ResourceInUseException":
|
|
1901
|
-
case "com.amazonaws.iotevents#ResourceInUseException":
|
|
1902
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1903
|
-
case "ResourceNotFoundException":
|
|
1904
|
-
case "com.amazonaws.iotevents#ResourceNotFoundException":
|
|
1905
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1906
|
-
case "ServiceUnavailableException":
|
|
1907
|
-
case "com.amazonaws.iotevents#ServiceUnavailableException":
|
|
1908
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1909
|
-
case "ThrottlingException":
|
|
1910
|
-
case "com.amazonaws.iotevents#ThrottlingException":
|
|
1911
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1912
|
-
default:
|
|
1913
|
-
const parsedBody = parsedOutput.body;
|
|
1914
|
-
return throwDefaultError({
|
|
1915
|
-
output,
|
|
1916
|
-
parsedBody,
|
|
1917
|
-
errorCode
|
|
1918
|
-
});
|
|
1919
|
-
}
|
|
1920
|
-
}, "de_UpdateDetectorModelCommandError");
|
|
1921
1119
|
var de_UpdateInputCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1922
1120
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1923
|
-
return
|
|
1121
|
+
return de_CommandError(output, context);
|
|
1924
1122
|
}
|
|
1925
1123
|
const contents = (0, import_smithy_client.map)({
|
|
1926
1124
|
$metadata: deserializeMetadata(output)
|
|
@@ -1932,7 +1130,7 @@ var de_UpdateInputCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1932
1130
|
Object.assign(contents, doc);
|
|
1933
1131
|
return contents;
|
|
1934
1132
|
}, "de_UpdateInputCommand");
|
|
1935
|
-
var
|
|
1133
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1936
1134
|
const parsedOutput = {
|
|
1937
1135
|
...output,
|
|
1938
1136
|
body: await parseErrorBody(output.body, context)
|
|
@@ -1945,18 +1143,27 @@ var de_UpdateInputCommandError = /* @__PURE__ */ __name(async (output, context)
|
|
|
1945
1143
|
case "InvalidRequestException":
|
|
1946
1144
|
case "com.amazonaws.iotevents#InvalidRequestException":
|
|
1947
1145
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1146
|
+
case "LimitExceededException":
|
|
1147
|
+
case "com.amazonaws.iotevents#LimitExceededException":
|
|
1148
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1149
|
+
case "ResourceAlreadyExistsException":
|
|
1150
|
+
case "com.amazonaws.iotevents#ResourceAlreadyExistsException":
|
|
1151
|
+
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1948
1152
|
case "ResourceInUseException":
|
|
1949
1153
|
case "com.amazonaws.iotevents#ResourceInUseException":
|
|
1950
1154
|
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1951
|
-
case "ResourceNotFoundException":
|
|
1952
|
-
case "com.amazonaws.iotevents#ResourceNotFoundException":
|
|
1953
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1954
1155
|
case "ServiceUnavailableException":
|
|
1955
1156
|
case "com.amazonaws.iotevents#ServiceUnavailableException":
|
|
1956
1157
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1957
1158
|
case "ThrottlingException":
|
|
1958
1159
|
case "com.amazonaws.iotevents#ThrottlingException":
|
|
1959
1160
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1161
|
+
case "ResourceNotFoundException":
|
|
1162
|
+
case "com.amazonaws.iotevents#ResourceNotFoundException":
|
|
1163
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1164
|
+
case "UnsupportedOperationException":
|
|
1165
|
+
case "com.amazonaws.iotevents#UnsupportedOperationException":
|
|
1166
|
+
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1960
1167
|
default:
|
|
1961
1168
|
const parsedBody = parsedOutput.body;
|
|
1962
1169
|
return throwDefaultError({
|
|
@@ -1965,7 +1172,7 @@ var de_UpdateInputCommandError = /* @__PURE__ */ __name(async (output, context)
|
|
|
1965
1172
|
errorCode
|
|
1966
1173
|
});
|
|
1967
1174
|
}
|
|
1968
|
-
}, "
|
|
1175
|
+
}, "de_CommandError");
|
|
1969
1176
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(IoTEventsServiceException);
|
|
1970
1177
|
var de_InternalFailureExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1971
1178
|
const contents = (0, import_smithy_client.map)({});
|