@aws-sdk/client-lookoutequipment 3.525.0 → 3.529.1
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 +41 -81
- package/dist-es/protocols/Aws_json1_0.js +1 -40
- package/package.json +4 -4
package/dist-cjs/index.js
CHANGED
|
@@ -266,6 +266,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
|
|
|
266
266
|
var import_types = require("@smithy/types");
|
|
267
267
|
|
|
268
268
|
// src/protocols/Aws_json1_0.ts
|
|
269
|
+
var import_core2 = require("@aws-sdk/core");
|
|
269
270
|
|
|
270
271
|
|
|
271
272
|
var import_uuid = require("uuid");
|
|
@@ -817,7 +818,7 @@ var de_CreateDatasetCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
817
818
|
if (output.statusCode >= 300) {
|
|
818
819
|
return de_CommandError(output, context);
|
|
819
820
|
}
|
|
820
|
-
const data = await
|
|
821
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
821
822
|
let contents = {};
|
|
822
823
|
contents = (0, import_smithy_client._json)(data);
|
|
823
824
|
const response = {
|
|
@@ -830,7 +831,7 @@ var de_CreateInferenceSchedulerCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
830
831
|
if (output.statusCode >= 300) {
|
|
831
832
|
return de_CommandError(output, context);
|
|
832
833
|
}
|
|
833
|
-
const data = await
|
|
834
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
834
835
|
let contents = {};
|
|
835
836
|
contents = (0, import_smithy_client._json)(data);
|
|
836
837
|
const response = {
|
|
@@ -843,7 +844,7 @@ var de_CreateLabelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
843
844
|
if (output.statusCode >= 300) {
|
|
844
845
|
return de_CommandError(output, context);
|
|
845
846
|
}
|
|
846
|
-
const data = await
|
|
847
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
847
848
|
let contents = {};
|
|
848
849
|
contents = (0, import_smithy_client._json)(data);
|
|
849
850
|
const response = {
|
|
@@ -856,7 +857,7 @@ var de_CreateLabelGroupCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
856
857
|
if (output.statusCode >= 300) {
|
|
857
858
|
return de_CommandError(output, context);
|
|
858
859
|
}
|
|
859
|
-
const data = await
|
|
860
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
860
861
|
let contents = {};
|
|
861
862
|
contents = (0, import_smithy_client._json)(data);
|
|
862
863
|
const response = {
|
|
@@ -869,7 +870,7 @@ var de_CreateModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
869
870
|
if (output.statusCode >= 300) {
|
|
870
871
|
return de_CommandError(output, context);
|
|
871
872
|
}
|
|
872
|
-
const data = await
|
|
873
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
873
874
|
let contents = {};
|
|
874
875
|
contents = (0, import_smithy_client._json)(data);
|
|
875
876
|
const response = {
|
|
@@ -882,7 +883,7 @@ var de_CreateRetrainingSchedulerCommand = /* @__PURE__ */ __name(async (output,
|
|
|
882
883
|
if (output.statusCode >= 300) {
|
|
883
884
|
return de_CommandError(output, context);
|
|
884
885
|
}
|
|
885
|
-
const data = await
|
|
886
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
886
887
|
let contents = {};
|
|
887
888
|
contents = (0, import_smithy_client._json)(data);
|
|
888
889
|
const response = {
|
|
@@ -965,7 +966,7 @@ var de_DescribeDataIngestionJobCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
965
966
|
if (output.statusCode >= 300) {
|
|
966
967
|
return de_CommandError(output, context);
|
|
967
968
|
}
|
|
968
|
-
const data = await
|
|
969
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
969
970
|
let contents = {};
|
|
970
971
|
contents = de_DescribeDataIngestionJobResponse(data, context);
|
|
971
972
|
const response = {
|
|
@@ -978,7 +979,7 @@ var de_DescribeDatasetCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
978
979
|
if (output.statusCode >= 300) {
|
|
979
980
|
return de_CommandError(output, context);
|
|
980
981
|
}
|
|
981
|
-
const data = await
|
|
982
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
982
983
|
let contents = {};
|
|
983
984
|
contents = de_DescribeDatasetResponse(data, context);
|
|
984
985
|
const response = {
|
|
@@ -991,7 +992,7 @@ var de_DescribeInferenceSchedulerCommand = /* @__PURE__ */ __name(async (output,
|
|
|
991
992
|
if (output.statusCode >= 300) {
|
|
992
993
|
return de_CommandError(output, context);
|
|
993
994
|
}
|
|
994
|
-
const data = await
|
|
995
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
995
996
|
let contents = {};
|
|
996
997
|
contents = de_DescribeInferenceSchedulerResponse(data, context);
|
|
997
998
|
const response = {
|
|
@@ -1004,7 +1005,7 @@ var de_DescribeLabelCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1004
1005
|
if (output.statusCode >= 300) {
|
|
1005
1006
|
return de_CommandError(output, context);
|
|
1006
1007
|
}
|
|
1007
|
-
const data = await
|
|
1008
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1008
1009
|
let contents = {};
|
|
1009
1010
|
contents = de_DescribeLabelResponse(data, context);
|
|
1010
1011
|
const response = {
|
|
@@ -1017,7 +1018,7 @@ var de_DescribeLabelGroupCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1017
1018
|
if (output.statusCode >= 300) {
|
|
1018
1019
|
return de_CommandError(output, context);
|
|
1019
1020
|
}
|
|
1020
|
-
const data = await
|
|
1021
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1021
1022
|
let contents = {};
|
|
1022
1023
|
contents = de_DescribeLabelGroupResponse(data, context);
|
|
1023
1024
|
const response = {
|
|
@@ -1030,7 +1031,7 @@ var de_DescribeModelCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1030
1031
|
if (output.statusCode >= 300) {
|
|
1031
1032
|
return de_CommandError(output, context);
|
|
1032
1033
|
}
|
|
1033
|
-
const data = await
|
|
1034
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1034
1035
|
let contents = {};
|
|
1035
1036
|
contents = de_DescribeModelResponse(data, context);
|
|
1036
1037
|
const response = {
|
|
@@ -1043,7 +1044,7 @@ var de_DescribeModelVersionCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1043
1044
|
if (output.statusCode >= 300) {
|
|
1044
1045
|
return de_CommandError(output, context);
|
|
1045
1046
|
}
|
|
1046
|
-
const data = await
|
|
1047
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1047
1048
|
let contents = {};
|
|
1048
1049
|
contents = de_DescribeModelVersionResponse(data, context);
|
|
1049
1050
|
const response = {
|
|
@@ -1056,7 +1057,7 @@ var de_DescribeResourcePolicyCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1056
1057
|
if (output.statusCode >= 300) {
|
|
1057
1058
|
return de_CommandError(output, context);
|
|
1058
1059
|
}
|
|
1059
|
-
const data = await
|
|
1060
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1060
1061
|
let contents = {};
|
|
1061
1062
|
contents = de_DescribeResourcePolicyResponse(data, context);
|
|
1062
1063
|
const response = {
|
|
@@ -1069,7 +1070,7 @@ var de_DescribeRetrainingSchedulerCommand = /* @__PURE__ */ __name(async (output
|
|
|
1069
1070
|
if (output.statusCode >= 300) {
|
|
1070
1071
|
return de_CommandError(output, context);
|
|
1071
1072
|
}
|
|
1072
|
-
const data = await
|
|
1073
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1073
1074
|
let contents = {};
|
|
1074
1075
|
contents = de_DescribeRetrainingSchedulerResponse(data, context);
|
|
1075
1076
|
const response = {
|
|
@@ -1082,7 +1083,7 @@ var de_ImportDatasetCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1082
1083
|
if (output.statusCode >= 300) {
|
|
1083
1084
|
return de_CommandError(output, context);
|
|
1084
1085
|
}
|
|
1085
|
-
const data = await
|
|
1086
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1086
1087
|
let contents = {};
|
|
1087
1088
|
contents = (0, import_smithy_client._json)(data);
|
|
1088
1089
|
const response = {
|
|
@@ -1095,7 +1096,7 @@ var de_ImportModelVersionCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1095
1096
|
if (output.statusCode >= 300) {
|
|
1096
1097
|
return de_CommandError(output, context);
|
|
1097
1098
|
}
|
|
1098
|
-
const data = await
|
|
1099
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1099
1100
|
let contents = {};
|
|
1100
1101
|
contents = (0, import_smithy_client._json)(data);
|
|
1101
1102
|
const response = {
|
|
@@ -1108,7 +1109,7 @@ var de_ListDataIngestionJobsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1108
1109
|
if (output.statusCode >= 300) {
|
|
1109
1110
|
return de_CommandError(output, context);
|
|
1110
1111
|
}
|
|
1111
|
-
const data = await
|
|
1112
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1112
1113
|
let contents = {};
|
|
1113
1114
|
contents = (0, import_smithy_client._json)(data);
|
|
1114
1115
|
const response = {
|
|
@@ -1121,7 +1122,7 @@ var de_ListDatasetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1121
1122
|
if (output.statusCode >= 300) {
|
|
1122
1123
|
return de_CommandError(output, context);
|
|
1123
1124
|
}
|
|
1124
|
-
const data = await
|
|
1125
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1125
1126
|
let contents = {};
|
|
1126
1127
|
contents = de_ListDatasetsResponse(data, context);
|
|
1127
1128
|
const response = {
|
|
@@ -1134,7 +1135,7 @@ var de_ListInferenceEventsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1134
1135
|
if (output.statusCode >= 300) {
|
|
1135
1136
|
return de_CommandError(output, context);
|
|
1136
1137
|
}
|
|
1137
|
-
const data = await
|
|
1138
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1138
1139
|
let contents = {};
|
|
1139
1140
|
contents = de_ListInferenceEventsResponse(data, context);
|
|
1140
1141
|
const response = {
|
|
@@ -1147,7 +1148,7 @@ var de_ListInferenceExecutionsCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1147
1148
|
if (output.statusCode >= 300) {
|
|
1148
1149
|
return de_CommandError(output, context);
|
|
1149
1150
|
}
|
|
1150
|
-
const data = await
|
|
1151
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1151
1152
|
let contents = {};
|
|
1152
1153
|
contents = de_ListInferenceExecutionsResponse(data, context);
|
|
1153
1154
|
const response = {
|
|
@@ -1160,7 +1161,7 @@ var de_ListInferenceSchedulersCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1160
1161
|
if (output.statusCode >= 300) {
|
|
1161
1162
|
return de_CommandError(output, context);
|
|
1162
1163
|
}
|
|
1163
|
-
const data = await
|
|
1164
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1164
1165
|
let contents = {};
|
|
1165
1166
|
contents = (0, import_smithy_client._json)(data);
|
|
1166
1167
|
const response = {
|
|
@@ -1173,7 +1174,7 @@ var de_ListLabelGroupsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1173
1174
|
if (output.statusCode >= 300) {
|
|
1174
1175
|
return de_CommandError(output, context);
|
|
1175
1176
|
}
|
|
1176
|
-
const data = await
|
|
1177
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1177
1178
|
let contents = {};
|
|
1178
1179
|
contents = de_ListLabelGroupsResponse(data, context);
|
|
1179
1180
|
const response = {
|
|
@@ -1186,7 +1187,7 @@ var de_ListLabelsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1186
1187
|
if (output.statusCode >= 300) {
|
|
1187
1188
|
return de_CommandError(output, context);
|
|
1188
1189
|
}
|
|
1189
|
-
const data = await
|
|
1190
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1190
1191
|
let contents = {};
|
|
1191
1192
|
contents = de_ListLabelsResponse(data, context);
|
|
1192
1193
|
const response = {
|
|
@@ -1199,7 +1200,7 @@ var de_ListModelsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1199
1200
|
if (output.statusCode >= 300) {
|
|
1200
1201
|
return de_CommandError(output, context);
|
|
1201
1202
|
}
|
|
1202
|
-
const data = await
|
|
1203
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1203
1204
|
let contents = {};
|
|
1204
1205
|
contents = de_ListModelsResponse(data, context);
|
|
1205
1206
|
const response = {
|
|
@@ -1212,7 +1213,7 @@ var de_ListModelVersionsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1212
1213
|
if (output.statusCode >= 300) {
|
|
1213
1214
|
return de_CommandError(output, context);
|
|
1214
1215
|
}
|
|
1215
|
-
const data = await
|
|
1216
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1216
1217
|
let contents = {};
|
|
1217
1218
|
contents = de_ListModelVersionsResponse(data, context);
|
|
1218
1219
|
const response = {
|
|
@@ -1225,7 +1226,7 @@ var de_ListRetrainingSchedulersCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1225
1226
|
if (output.statusCode >= 300) {
|
|
1226
1227
|
return de_CommandError(output, context);
|
|
1227
1228
|
}
|
|
1228
|
-
const data = await
|
|
1229
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1229
1230
|
let contents = {};
|
|
1230
1231
|
contents = de_ListRetrainingSchedulersResponse(data, context);
|
|
1231
1232
|
const response = {
|
|
@@ -1238,7 +1239,7 @@ var de_ListSensorStatisticsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1238
1239
|
if (output.statusCode >= 300) {
|
|
1239
1240
|
return de_CommandError(output, context);
|
|
1240
1241
|
}
|
|
1241
|
-
const data = await
|
|
1242
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1242
1243
|
let contents = {};
|
|
1243
1244
|
contents = de_ListSensorStatisticsResponse(data, context);
|
|
1244
1245
|
const response = {
|
|
@@ -1251,7 +1252,7 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1251
1252
|
if (output.statusCode >= 300) {
|
|
1252
1253
|
return de_CommandError(output, context);
|
|
1253
1254
|
}
|
|
1254
|
-
const data = await
|
|
1255
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1255
1256
|
let contents = {};
|
|
1256
1257
|
contents = (0, import_smithy_client._json)(data);
|
|
1257
1258
|
const response = {
|
|
@@ -1264,7 +1265,7 @@ var de_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1264
1265
|
if (output.statusCode >= 300) {
|
|
1265
1266
|
return de_CommandError(output, context);
|
|
1266
1267
|
}
|
|
1267
|
-
const data = await
|
|
1268
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1268
1269
|
let contents = {};
|
|
1269
1270
|
contents = (0, import_smithy_client._json)(data);
|
|
1270
1271
|
const response = {
|
|
@@ -1277,7 +1278,7 @@ var de_StartDataIngestionJobCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1277
1278
|
if (output.statusCode >= 300) {
|
|
1278
1279
|
return de_CommandError(output, context);
|
|
1279
1280
|
}
|
|
1280
|
-
const data = await
|
|
1281
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1281
1282
|
let contents = {};
|
|
1282
1283
|
contents = (0, import_smithy_client._json)(data);
|
|
1283
1284
|
const response = {
|
|
@@ -1290,7 +1291,7 @@ var de_StartInferenceSchedulerCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1290
1291
|
if (output.statusCode >= 300) {
|
|
1291
1292
|
return de_CommandError(output, context);
|
|
1292
1293
|
}
|
|
1293
|
-
const data = await
|
|
1294
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1294
1295
|
let contents = {};
|
|
1295
1296
|
contents = (0, import_smithy_client._json)(data);
|
|
1296
1297
|
const response = {
|
|
@@ -1303,7 +1304,7 @@ var de_StartRetrainingSchedulerCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1303
1304
|
if (output.statusCode >= 300) {
|
|
1304
1305
|
return de_CommandError(output, context);
|
|
1305
1306
|
}
|
|
1306
|
-
const data = await
|
|
1307
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1307
1308
|
let contents = {};
|
|
1308
1309
|
contents = (0, import_smithy_client._json)(data);
|
|
1309
1310
|
const response = {
|
|
@@ -1316,7 +1317,7 @@ var de_StopInferenceSchedulerCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1316
1317
|
if (output.statusCode >= 300) {
|
|
1317
1318
|
return de_CommandError(output, context);
|
|
1318
1319
|
}
|
|
1319
|
-
const data = await
|
|
1320
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1320
1321
|
let contents = {};
|
|
1321
1322
|
contents = (0, import_smithy_client._json)(data);
|
|
1322
1323
|
const response = {
|
|
@@ -1329,7 +1330,7 @@ var de_StopRetrainingSchedulerCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1329
1330
|
if (output.statusCode >= 300) {
|
|
1330
1331
|
return de_CommandError(output, context);
|
|
1331
1332
|
}
|
|
1332
|
-
const data = await
|
|
1333
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1333
1334
|
let contents = {};
|
|
1334
1335
|
contents = (0, import_smithy_client._json)(data);
|
|
1335
1336
|
const response = {
|
|
@@ -1342,7 +1343,7 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1342
1343
|
if (output.statusCode >= 300) {
|
|
1343
1344
|
return de_CommandError(output, context);
|
|
1344
1345
|
}
|
|
1345
|
-
const data = await
|
|
1346
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1346
1347
|
let contents = {};
|
|
1347
1348
|
contents = (0, import_smithy_client._json)(data);
|
|
1348
1349
|
const response = {
|
|
@@ -1355,7 +1356,7 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1355
1356
|
if (output.statusCode >= 300) {
|
|
1356
1357
|
return de_CommandError(output, context);
|
|
1357
1358
|
}
|
|
1358
|
-
const data = await
|
|
1359
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1359
1360
|
let contents = {};
|
|
1360
1361
|
contents = (0, import_smithy_client._json)(data);
|
|
1361
1362
|
const response = {
|
|
@@ -1368,7 +1369,7 @@ var de_UpdateActiveModelVersionCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1368
1369
|
if (output.statusCode >= 300) {
|
|
1369
1370
|
return de_CommandError(output, context);
|
|
1370
1371
|
}
|
|
1371
|
-
const data = await
|
|
1372
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1372
1373
|
let contents = {};
|
|
1373
1374
|
contents = (0, import_smithy_client._json)(data);
|
|
1374
1375
|
const response = {
|
|
@@ -1420,9 +1421,9 @@ var de_UpdateRetrainingSchedulerCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1420
1421
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1421
1422
|
const parsedOutput = {
|
|
1422
1423
|
...output,
|
|
1423
|
-
body: await
|
|
1424
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
1424
1425
|
};
|
|
1425
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1426
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1426
1427
|
switch (errorCode) {
|
|
1427
1428
|
case "AccessDeniedException":
|
|
1428
1429
|
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
@@ -2102,7 +2103,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
2102
2103
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2103
2104
|
cfId: output.headers["x-amz-cf-id"]
|
|
2104
2105
|
}), "deserializeMetadata");
|
|
2105
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
2106
2106
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(LookoutEquipmentServiceException);
|
|
2107
2107
|
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
2108
2108
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -2129,46 +2129,6 @@ function sharedHeaders(operation) {
|
|
|
2129
2129
|
};
|
|
2130
2130
|
}
|
|
2131
2131
|
__name(sharedHeaders, "sharedHeaders");
|
|
2132
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2133
|
-
if (encoded.length) {
|
|
2134
|
-
return JSON.parse(encoded);
|
|
2135
|
-
}
|
|
2136
|
-
return {};
|
|
2137
|
-
}), "parseBody");
|
|
2138
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
2139
|
-
const value = await parseBody(errorBody, context);
|
|
2140
|
-
value.message = value.message ?? value.Message;
|
|
2141
|
-
return value;
|
|
2142
|
-
}, "parseErrorBody");
|
|
2143
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
2144
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
2145
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
2146
|
-
let cleanValue = rawValue;
|
|
2147
|
-
if (typeof cleanValue === "number") {
|
|
2148
|
-
cleanValue = cleanValue.toString();
|
|
2149
|
-
}
|
|
2150
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
2151
|
-
cleanValue = cleanValue.split(",")[0];
|
|
2152
|
-
}
|
|
2153
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
2154
|
-
cleanValue = cleanValue.split(":")[0];
|
|
2155
|
-
}
|
|
2156
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
2157
|
-
cleanValue = cleanValue.split("#")[1];
|
|
2158
|
-
}
|
|
2159
|
-
return cleanValue;
|
|
2160
|
-
}, "sanitizeErrorCode");
|
|
2161
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2162
|
-
if (headerKey !== void 0) {
|
|
2163
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2164
|
-
}
|
|
2165
|
-
if (data.code !== void 0) {
|
|
2166
|
-
return sanitizeErrorCode(data.code);
|
|
2167
|
-
}
|
|
2168
|
-
if (data["__type"] !== void 0) {
|
|
2169
|
-
return sanitizeErrorCode(data["__type"]);
|
|
2170
|
-
}
|
|
2171
|
-
}, "loadRestJsonErrorCode");
|
|
2172
2132
|
|
|
2173
2133
|
// src/commands/CreateDatasetCommand.ts
|
|
2174
2134
|
var _CreateDatasetCommand = class _CreateDatasetCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
1
2
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
2
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, LazyJsonString as __LazyJsonString, limitedParseFloat32 as __limitedParseFloat32, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
@@ -1630,43 +1631,3 @@ function sharedHeaders(operation) {
|
|
|
1630
1631
|
"x-amz-target": `AWSLookoutEquipmentFrontendService.${operation}`,
|
|
1631
1632
|
};
|
|
1632
1633
|
}
|
|
1633
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1634
|
-
if (encoded.length) {
|
|
1635
|
-
return JSON.parse(encoded);
|
|
1636
|
-
}
|
|
1637
|
-
return {};
|
|
1638
|
-
});
|
|
1639
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1640
|
-
const value = await parseBody(errorBody, context);
|
|
1641
|
-
value.message = value.message ?? value.Message;
|
|
1642
|
-
return value;
|
|
1643
|
-
};
|
|
1644
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1645
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1646
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1647
|
-
let cleanValue = rawValue;
|
|
1648
|
-
if (typeof cleanValue === "number") {
|
|
1649
|
-
cleanValue = cleanValue.toString();
|
|
1650
|
-
}
|
|
1651
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1652
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1653
|
-
}
|
|
1654
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1655
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1656
|
-
}
|
|
1657
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1658
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1659
|
-
}
|
|
1660
|
-
return cleanValue;
|
|
1661
|
-
};
|
|
1662
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1663
|
-
if (headerKey !== undefined) {
|
|
1664
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1665
|
-
}
|
|
1666
|
-
if (data.code !== undefined) {
|
|
1667
|
-
return sanitizeErrorCode(data.code);
|
|
1668
|
-
}
|
|
1669
|
-
if (data["__type"] !== undefined) {
|
|
1670
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1671
|
-
}
|
|
1672
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-lookoutequipment",
|
|
3
3
|
"description": "AWS SDK for JavaScript Lookoutequipment Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.529.1",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-lookoutequipment",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.529.1",
|
|
24
|
+
"@aws-sdk/core": "3.529.1",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.529.1",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.523.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.523.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.523.0",
|