@aws-sdk/client-kinesis-video 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 +62 -922
- package/dist-es/protocols/Aws_restJson1.js +61 -921
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -1111,7 +1111,7 @@ var se_UpdateStreamCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
1111
1111
|
}, "se_UpdateStreamCommand");
|
|
1112
1112
|
var de_CreateSignalingChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1113
1113
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1114
|
-
return
|
|
1114
|
+
return de_CommandError(output, context);
|
|
1115
1115
|
}
|
|
1116
1116
|
const contents = (0, import_smithy_client.map)({
|
|
1117
1117
|
$metadata: deserializeMetadata(output)
|
|
@@ -1123,43 +1123,9 @@ var de_CreateSignalingChannelCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1123
1123
|
Object.assign(contents, doc);
|
|
1124
1124
|
return contents;
|
|
1125
1125
|
}, "de_CreateSignalingChannelCommand");
|
|
1126
|
-
var de_CreateSignalingChannelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1127
|
-
const parsedOutput = {
|
|
1128
|
-
...output,
|
|
1129
|
-
body: await parseErrorBody(output.body, context)
|
|
1130
|
-
};
|
|
1131
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1132
|
-
switch (errorCode) {
|
|
1133
|
-
case "AccessDeniedException":
|
|
1134
|
-
case "com.amazonaws.kinesisvideo#AccessDeniedException":
|
|
1135
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1136
|
-
case "AccountChannelLimitExceededException":
|
|
1137
|
-
case "com.amazonaws.kinesisvideo#AccountChannelLimitExceededException":
|
|
1138
|
-
throw await de_AccountChannelLimitExceededExceptionRes(parsedOutput, context);
|
|
1139
|
-
case "ClientLimitExceededException":
|
|
1140
|
-
case "com.amazonaws.kinesisvideo#ClientLimitExceededException":
|
|
1141
|
-
throw await de_ClientLimitExceededExceptionRes(parsedOutput, context);
|
|
1142
|
-
case "InvalidArgumentException":
|
|
1143
|
-
case "com.amazonaws.kinesisvideo#InvalidArgumentException":
|
|
1144
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1145
|
-
case "ResourceInUseException":
|
|
1146
|
-
case "com.amazonaws.kinesisvideo#ResourceInUseException":
|
|
1147
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1148
|
-
case "TagsPerResourceExceededLimitException":
|
|
1149
|
-
case "com.amazonaws.kinesisvideo#TagsPerResourceExceededLimitException":
|
|
1150
|
-
throw await de_TagsPerResourceExceededLimitExceptionRes(parsedOutput, context);
|
|
1151
|
-
default:
|
|
1152
|
-
const parsedBody = parsedOutput.body;
|
|
1153
|
-
return throwDefaultError({
|
|
1154
|
-
output,
|
|
1155
|
-
parsedBody,
|
|
1156
|
-
errorCode
|
|
1157
|
-
});
|
|
1158
|
-
}
|
|
1159
|
-
}, "de_CreateSignalingChannelCommandError");
|
|
1160
1126
|
var de_CreateStreamCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1161
1127
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1162
|
-
return
|
|
1128
|
+
return de_CommandError(output, context);
|
|
1163
1129
|
}
|
|
1164
1130
|
const contents = (0, import_smithy_client.map)({
|
|
1165
1131
|
$metadata: deserializeMetadata(output)
|
|
@@ -1171,46 +1137,9 @@ var de_CreateStreamCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1171
1137
|
Object.assign(contents, doc);
|
|
1172
1138
|
return contents;
|
|
1173
1139
|
}, "de_CreateStreamCommand");
|
|
1174
|
-
var de_CreateStreamCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1175
|
-
const parsedOutput = {
|
|
1176
|
-
...output,
|
|
1177
|
-
body: await parseErrorBody(output.body, context)
|
|
1178
|
-
};
|
|
1179
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1180
|
-
switch (errorCode) {
|
|
1181
|
-
case "AccountStreamLimitExceededException":
|
|
1182
|
-
case "com.amazonaws.kinesisvideo#AccountStreamLimitExceededException":
|
|
1183
|
-
throw await de_AccountStreamLimitExceededExceptionRes(parsedOutput, context);
|
|
1184
|
-
case "ClientLimitExceededException":
|
|
1185
|
-
case "com.amazonaws.kinesisvideo#ClientLimitExceededException":
|
|
1186
|
-
throw await de_ClientLimitExceededExceptionRes(parsedOutput, context);
|
|
1187
|
-
case "DeviceStreamLimitExceededException":
|
|
1188
|
-
case "com.amazonaws.kinesisvideo#DeviceStreamLimitExceededException":
|
|
1189
|
-
throw await de_DeviceStreamLimitExceededExceptionRes(parsedOutput, context);
|
|
1190
|
-
case "InvalidArgumentException":
|
|
1191
|
-
case "com.amazonaws.kinesisvideo#InvalidArgumentException":
|
|
1192
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1193
|
-
case "InvalidDeviceException":
|
|
1194
|
-
case "com.amazonaws.kinesisvideo#InvalidDeviceException":
|
|
1195
|
-
throw await de_InvalidDeviceExceptionRes(parsedOutput, context);
|
|
1196
|
-
case "ResourceInUseException":
|
|
1197
|
-
case "com.amazonaws.kinesisvideo#ResourceInUseException":
|
|
1198
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1199
|
-
case "TagsPerResourceExceededLimitException":
|
|
1200
|
-
case "com.amazonaws.kinesisvideo#TagsPerResourceExceededLimitException":
|
|
1201
|
-
throw await de_TagsPerResourceExceededLimitExceptionRes(parsedOutput, context);
|
|
1202
|
-
default:
|
|
1203
|
-
const parsedBody = parsedOutput.body;
|
|
1204
|
-
return throwDefaultError({
|
|
1205
|
-
output,
|
|
1206
|
-
parsedBody,
|
|
1207
|
-
errorCode
|
|
1208
|
-
});
|
|
1209
|
-
}
|
|
1210
|
-
}, "de_CreateStreamCommandError");
|
|
1211
1140
|
var de_DeleteEdgeConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1212
1141
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1213
|
-
return
|
|
1142
|
+
return de_CommandError(output, context);
|
|
1214
1143
|
}
|
|
1215
1144
|
const contents = (0, import_smithy_client.map)({
|
|
1216
1145
|
$metadata: deserializeMetadata(output)
|
|
@@ -1218,40 +1147,9 @@ var de_DeleteEdgeConfigurationCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1218
1147
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1219
1148
|
return contents;
|
|
1220
1149
|
}, "de_DeleteEdgeConfigurationCommand");
|
|
1221
|
-
var de_DeleteEdgeConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1222
|
-
const parsedOutput = {
|
|
1223
|
-
...output,
|
|
1224
|
-
body: await parseErrorBody(output.body, context)
|
|
1225
|
-
};
|
|
1226
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1227
|
-
switch (errorCode) {
|
|
1228
|
-
case "AccessDeniedException":
|
|
1229
|
-
case "com.amazonaws.kinesisvideo#AccessDeniedException":
|
|
1230
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1231
|
-
case "ClientLimitExceededException":
|
|
1232
|
-
case "com.amazonaws.kinesisvideo#ClientLimitExceededException":
|
|
1233
|
-
throw await de_ClientLimitExceededExceptionRes(parsedOutput, context);
|
|
1234
|
-
case "InvalidArgumentException":
|
|
1235
|
-
case "com.amazonaws.kinesisvideo#InvalidArgumentException":
|
|
1236
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1237
|
-
case "ResourceNotFoundException":
|
|
1238
|
-
case "com.amazonaws.kinesisvideo#ResourceNotFoundException":
|
|
1239
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1240
|
-
case "StreamEdgeConfigurationNotFoundException":
|
|
1241
|
-
case "com.amazonaws.kinesisvideo#StreamEdgeConfigurationNotFoundException":
|
|
1242
|
-
throw await de_StreamEdgeConfigurationNotFoundExceptionRes(parsedOutput, context);
|
|
1243
|
-
default:
|
|
1244
|
-
const parsedBody = parsedOutput.body;
|
|
1245
|
-
return throwDefaultError({
|
|
1246
|
-
output,
|
|
1247
|
-
parsedBody,
|
|
1248
|
-
errorCode
|
|
1249
|
-
});
|
|
1250
|
-
}
|
|
1251
|
-
}, "de_DeleteEdgeConfigurationCommandError");
|
|
1252
1150
|
var de_DeleteSignalingChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1253
1151
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1254
|
-
return
|
|
1152
|
+
return de_CommandError(output, context);
|
|
1255
1153
|
}
|
|
1256
1154
|
const contents = (0, import_smithy_client.map)({
|
|
1257
1155
|
$metadata: deserializeMetadata(output)
|
|
@@ -1259,43 +1157,9 @@ var de_DeleteSignalingChannelCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1259
1157
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1260
1158
|
return contents;
|
|
1261
1159
|
}, "de_DeleteSignalingChannelCommand");
|
|
1262
|
-
var de_DeleteSignalingChannelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1263
|
-
const parsedOutput = {
|
|
1264
|
-
...output,
|
|
1265
|
-
body: await parseErrorBody(output.body, context)
|
|
1266
|
-
};
|
|
1267
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1268
|
-
switch (errorCode) {
|
|
1269
|
-
case "AccessDeniedException":
|
|
1270
|
-
case "com.amazonaws.kinesisvideo#AccessDeniedException":
|
|
1271
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1272
|
-
case "ClientLimitExceededException":
|
|
1273
|
-
case "com.amazonaws.kinesisvideo#ClientLimitExceededException":
|
|
1274
|
-
throw await de_ClientLimitExceededExceptionRes(parsedOutput, context);
|
|
1275
|
-
case "InvalidArgumentException":
|
|
1276
|
-
case "com.amazonaws.kinesisvideo#InvalidArgumentException":
|
|
1277
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1278
|
-
case "ResourceInUseException":
|
|
1279
|
-
case "com.amazonaws.kinesisvideo#ResourceInUseException":
|
|
1280
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1281
|
-
case "ResourceNotFoundException":
|
|
1282
|
-
case "com.amazonaws.kinesisvideo#ResourceNotFoundException":
|
|
1283
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1284
|
-
case "VersionMismatchException":
|
|
1285
|
-
case "com.amazonaws.kinesisvideo#VersionMismatchException":
|
|
1286
|
-
throw await de_VersionMismatchExceptionRes(parsedOutput, context);
|
|
1287
|
-
default:
|
|
1288
|
-
const parsedBody = parsedOutput.body;
|
|
1289
|
-
return throwDefaultError({
|
|
1290
|
-
output,
|
|
1291
|
-
parsedBody,
|
|
1292
|
-
errorCode
|
|
1293
|
-
});
|
|
1294
|
-
}
|
|
1295
|
-
}, "de_DeleteSignalingChannelCommandError");
|
|
1296
1160
|
var de_DeleteStreamCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1297
1161
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1298
|
-
return
|
|
1162
|
+
return de_CommandError(output, context);
|
|
1299
1163
|
}
|
|
1300
1164
|
const contents = (0, import_smithy_client.map)({
|
|
1301
1165
|
$metadata: deserializeMetadata(output)
|
|
@@ -1303,43 +1167,9 @@ var de_DeleteStreamCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1303
1167
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1304
1168
|
return contents;
|
|
1305
1169
|
}, "de_DeleteStreamCommand");
|
|
1306
|
-
var de_DeleteStreamCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1307
|
-
const parsedOutput = {
|
|
1308
|
-
...output,
|
|
1309
|
-
body: await parseErrorBody(output.body, context)
|
|
1310
|
-
};
|
|
1311
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1312
|
-
switch (errorCode) {
|
|
1313
|
-
case "ClientLimitExceededException":
|
|
1314
|
-
case "com.amazonaws.kinesisvideo#ClientLimitExceededException":
|
|
1315
|
-
throw await de_ClientLimitExceededExceptionRes(parsedOutput, context);
|
|
1316
|
-
case "InvalidArgumentException":
|
|
1317
|
-
case "com.amazonaws.kinesisvideo#InvalidArgumentException":
|
|
1318
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1319
|
-
case "NotAuthorizedException":
|
|
1320
|
-
case "com.amazonaws.kinesisvideo#NotAuthorizedException":
|
|
1321
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
1322
|
-
case "ResourceInUseException":
|
|
1323
|
-
case "com.amazonaws.kinesisvideo#ResourceInUseException":
|
|
1324
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1325
|
-
case "ResourceNotFoundException":
|
|
1326
|
-
case "com.amazonaws.kinesisvideo#ResourceNotFoundException":
|
|
1327
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1328
|
-
case "VersionMismatchException":
|
|
1329
|
-
case "com.amazonaws.kinesisvideo#VersionMismatchException":
|
|
1330
|
-
throw await de_VersionMismatchExceptionRes(parsedOutput, context);
|
|
1331
|
-
default:
|
|
1332
|
-
const parsedBody = parsedOutput.body;
|
|
1333
|
-
return throwDefaultError({
|
|
1334
|
-
output,
|
|
1335
|
-
parsedBody,
|
|
1336
|
-
errorCode
|
|
1337
|
-
});
|
|
1338
|
-
}
|
|
1339
|
-
}, "de_DeleteStreamCommandError");
|
|
1340
1170
|
var de_DescribeEdgeConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1341
1171
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1342
|
-
return
|
|
1172
|
+
return de_CommandError(output, context);
|
|
1343
1173
|
}
|
|
1344
1174
|
const contents = (0, import_smithy_client.map)({
|
|
1345
1175
|
$metadata: deserializeMetadata(output)
|
|
@@ -1358,40 +1188,9 @@ var de_DescribeEdgeConfigurationCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1358
1188
|
Object.assign(contents, doc);
|
|
1359
1189
|
return contents;
|
|
1360
1190
|
}, "de_DescribeEdgeConfigurationCommand");
|
|
1361
|
-
var de_DescribeEdgeConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1362
|
-
const parsedOutput = {
|
|
1363
|
-
...output,
|
|
1364
|
-
body: await parseErrorBody(output.body, context)
|
|
1365
|
-
};
|
|
1366
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1367
|
-
switch (errorCode) {
|
|
1368
|
-
case "AccessDeniedException":
|
|
1369
|
-
case "com.amazonaws.kinesisvideo#AccessDeniedException":
|
|
1370
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1371
|
-
case "ClientLimitExceededException":
|
|
1372
|
-
case "com.amazonaws.kinesisvideo#ClientLimitExceededException":
|
|
1373
|
-
throw await de_ClientLimitExceededExceptionRes(parsedOutput, context);
|
|
1374
|
-
case "InvalidArgumentException":
|
|
1375
|
-
case "com.amazonaws.kinesisvideo#InvalidArgumentException":
|
|
1376
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1377
|
-
case "ResourceNotFoundException":
|
|
1378
|
-
case "com.amazonaws.kinesisvideo#ResourceNotFoundException":
|
|
1379
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1380
|
-
case "StreamEdgeConfigurationNotFoundException":
|
|
1381
|
-
case "com.amazonaws.kinesisvideo#StreamEdgeConfigurationNotFoundException":
|
|
1382
|
-
throw await de_StreamEdgeConfigurationNotFoundExceptionRes(parsedOutput, context);
|
|
1383
|
-
default:
|
|
1384
|
-
const parsedBody = parsedOutput.body;
|
|
1385
|
-
return throwDefaultError({
|
|
1386
|
-
output,
|
|
1387
|
-
parsedBody,
|
|
1388
|
-
errorCode
|
|
1389
|
-
});
|
|
1390
|
-
}
|
|
1391
|
-
}, "de_DescribeEdgeConfigurationCommandError");
|
|
1392
1191
|
var de_DescribeImageGenerationConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1393
1192
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1394
|
-
return
|
|
1193
|
+
return de_CommandError(output, context);
|
|
1395
1194
|
}
|
|
1396
1195
|
const contents = (0, import_smithy_client.map)({
|
|
1397
1196
|
$metadata: deserializeMetadata(output)
|
|
@@ -1403,37 +1202,9 @@ var de_DescribeImageGenerationConfigurationCommand = /* @__PURE__ */ __name(asyn
|
|
|
1403
1202
|
Object.assign(contents, doc);
|
|
1404
1203
|
return contents;
|
|
1405
1204
|
}, "de_DescribeImageGenerationConfigurationCommand");
|
|
1406
|
-
var de_DescribeImageGenerationConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1407
|
-
const parsedOutput = {
|
|
1408
|
-
...output,
|
|
1409
|
-
body: await parseErrorBody(output.body, context)
|
|
1410
|
-
};
|
|
1411
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1412
|
-
switch (errorCode) {
|
|
1413
|
-
case "AccessDeniedException":
|
|
1414
|
-
case "com.amazonaws.kinesisvideo#AccessDeniedException":
|
|
1415
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1416
|
-
case "ClientLimitExceededException":
|
|
1417
|
-
case "com.amazonaws.kinesisvideo#ClientLimitExceededException":
|
|
1418
|
-
throw await de_ClientLimitExceededExceptionRes(parsedOutput, context);
|
|
1419
|
-
case "InvalidArgumentException":
|
|
1420
|
-
case "com.amazonaws.kinesisvideo#InvalidArgumentException":
|
|
1421
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1422
|
-
case "ResourceNotFoundException":
|
|
1423
|
-
case "com.amazonaws.kinesisvideo#ResourceNotFoundException":
|
|
1424
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1425
|
-
default:
|
|
1426
|
-
const parsedBody = parsedOutput.body;
|
|
1427
|
-
return throwDefaultError({
|
|
1428
|
-
output,
|
|
1429
|
-
parsedBody,
|
|
1430
|
-
errorCode
|
|
1431
|
-
});
|
|
1432
|
-
}
|
|
1433
|
-
}, "de_DescribeImageGenerationConfigurationCommandError");
|
|
1434
1205
|
var de_DescribeMappedResourceConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1435
1206
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1436
|
-
return
|
|
1207
|
+
return de_CommandError(output, context);
|
|
1437
1208
|
}
|
|
1438
1209
|
const contents = (0, import_smithy_client.map)({
|
|
1439
1210
|
$metadata: deserializeMetadata(output)
|
|
@@ -1446,37 +1217,9 @@ var de_DescribeMappedResourceConfigurationCommand = /* @__PURE__ */ __name(async
|
|
|
1446
1217
|
Object.assign(contents, doc);
|
|
1447
1218
|
return contents;
|
|
1448
1219
|
}, "de_DescribeMappedResourceConfigurationCommand");
|
|
1449
|
-
var de_DescribeMappedResourceConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1450
|
-
const parsedOutput = {
|
|
1451
|
-
...output,
|
|
1452
|
-
body: await parseErrorBody(output.body, context)
|
|
1453
|
-
};
|
|
1454
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1455
|
-
switch (errorCode) {
|
|
1456
|
-
case "AccessDeniedException":
|
|
1457
|
-
case "com.amazonaws.kinesisvideo#AccessDeniedException":
|
|
1458
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1459
|
-
case "ClientLimitExceededException":
|
|
1460
|
-
case "com.amazonaws.kinesisvideo#ClientLimitExceededException":
|
|
1461
|
-
throw await de_ClientLimitExceededExceptionRes(parsedOutput, context);
|
|
1462
|
-
case "InvalidArgumentException":
|
|
1463
|
-
case "com.amazonaws.kinesisvideo#InvalidArgumentException":
|
|
1464
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1465
|
-
case "ResourceNotFoundException":
|
|
1466
|
-
case "com.amazonaws.kinesisvideo#ResourceNotFoundException":
|
|
1467
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1468
|
-
default:
|
|
1469
|
-
const parsedBody = parsedOutput.body;
|
|
1470
|
-
return throwDefaultError({
|
|
1471
|
-
output,
|
|
1472
|
-
parsedBody,
|
|
1473
|
-
errorCode
|
|
1474
|
-
});
|
|
1475
|
-
}
|
|
1476
|
-
}, "de_DescribeMappedResourceConfigurationCommandError");
|
|
1477
1220
|
var de_DescribeMediaStorageConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1478
1221
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1479
|
-
return
|
|
1222
|
+
return de_CommandError(output, context);
|
|
1480
1223
|
}
|
|
1481
1224
|
const contents = (0, import_smithy_client.map)({
|
|
1482
1225
|
$metadata: deserializeMetadata(output)
|
|
@@ -1488,37 +1231,9 @@ var de_DescribeMediaStorageConfigurationCommand = /* @__PURE__ */ __name(async (
|
|
|
1488
1231
|
Object.assign(contents, doc);
|
|
1489
1232
|
return contents;
|
|
1490
1233
|
}, "de_DescribeMediaStorageConfigurationCommand");
|
|
1491
|
-
var de_DescribeMediaStorageConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1492
|
-
const parsedOutput = {
|
|
1493
|
-
...output,
|
|
1494
|
-
body: await parseErrorBody(output.body, context)
|
|
1495
|
-
};
|
|
1496
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1497
|
-
switch (errorCode) {
|
|
1498
|
-
case "AccessDeniedException":
|
|
1499
|
-
case "com.amazonaws.kinesisvideo#AccessDeniedException":
|
|
1500
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1501
|
-
case "ClientLimitExceededException":
|
|
1502
|
-
case "com.amazonaws.kinesisvideo#ClientLimitExceededException":
|
|
1503
|
-
throw await de_ClientLimitExceededExceptionRes(parsedOutput, context);
|
|
1504
|
-
case "InvalidArgumentException":
|
|
1505
|
-
case "com.amazonaws.kinesisvideo#InvalidArgumentException":
|
|
1506
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1507
|
-
case "ResourceNotFoundException":
|
|
1508
|
-
case "com.amazonaws.kinesisvideo#ResourceNotFoundException":
|
|
1509
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1510
|
-
default:
|
|
1511
|
-
const parsedBody = parsedOutput.body;
|
|
1512
|
-
return throwDefaultError({
|
|
1513
|
-
output,
|
|
1514
|
-
parsedBody,
|
|
1515
|
-
errorCode
|
|
1516
|
-
});
|
|
1517
|
-
}
|
|
1518
|
-
}, "de_DescribeMediaStorageConfigurationCommandError");
|
|
1519
1234
|
var de_DescribeNotificationConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1520
1235
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1521
|
-
return
|
|
1236
|
+
return de_CommandError(output, context);
|
|
1522
1237
|
}
|
|
1523
1238
|
const contents = (0, import_smithy_client.map)({
|
|
1524
1239
|
$metadata: deserializeMetadata(output)
|
|
@@ -1530,37 +1245,9 @@ var de_DescribeNotificationConfigurationCommand = /* @__PURE__ */ __name(async (
|
|
|
1530
1245
|
Object.assign(contents, doc);
|
|
1531
1246
|
return contents;
|
|
1532
1247
|
}, "de_DescribeNotificationConfigurationCommand");
|
|
1533
|
-
var de_DescribeNotificationConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1534
|
-
const parsedOutput = {
|
|
1535
|
-
...output,
|
|
1536
|
-
body: await parseErrorBody(output.body, context)
|
|
1537
|
-
};
|
|
1538
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1539
|
-
switch (errorCode) {
|
|
1540
|
-
case "AccessDeniedException":
|
|
1541
|
-
case "com.amazonaws.kinesisvideo#AccessDeniedException":
|
|
1542
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1543
|
-
case "ClientLimitExceededException":
|
|
1544
|
-
case "com.amazonaws.kinesisvideo#ClientLimitExceededException":
|
|
1545
|
-
throw await de_ClientLimitExceededExceptionRes(parsedOutput, context);
|
|
1546
|
-
case "InvalidArgumentException":
|
|
1547
|
-
case "com.amazonaws.kinesisvideo#InvalidArgumentException":
|
|
1548
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1549
|
-
case "ResourceNotFoundException":
|
|
1550
|
-
case "com.amazonaws.kinesisvideo#ResourceNotFoundException":
|
|
1551
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1552
|
-
default:
|
|
1553
|
-
const parsedBody = parsedOutput.body;
|
|
1554
|
-
return throwDefaultError({
|
|
1555
|
-
output,
|
|
1556
|
-
parsedBody,
|
|
1557
|
-
errorCode
|
|
1558
|
-
});
|
|
1559
|
-
}
|
|
1560
|
-
}, "de_DescribeNotificationConfigurationCommandError");
|
|
1561
1248
|
var de_DescribeSignalingChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1562
1249
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1563
|
-
return
|
|
1250
|
+
return de_CommandError(output, context);
|
|
1564
1251
|
}
|
|
1565
1252
|
const contents = (0, import_smithy_client.map)({
|
|
1566
1253
|
$metadata: deserializeMetadata(output)
|
|
@@ -1572,37 +1259,9 @@ var de_DescribeSignalingChannelCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1572
1259
|
Object.assign(contents, doc);
|
|
1573
1260
|
return contents;
|
|
1574
1261
|
}, "de_DescribeSignalingChannelCommand");
|
|
1575
|
-
var de_DescribeSignalingChannelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1576
|
-
const parsedOutput = {
|
|
1577
|
-
...output,
|
|
1578
|
-
body: await parseErrorBody(output.body, context)
|
|
1579
|
-
};
|
|
1580
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1581
|
-
switch (errorCode) {
|
|
1582
|
-
case "AccessDeniedException":
|
|
1583
|
-
case "com.amazonaws.kinesisvideo#AccessDeniedException":
|
|
1584
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1585
|
-
case "ClientLimitExceededException":
|
|
1586
|
-
case "com.amazonaws.kinesisvideo#ClientLimitExceededException":
|
|
1587
|
-
throw await de_ClientLimitExceededExceptionRes(parsedOutput, context);
|
|
1588
|
-
case "InvalidArgumentException":
|
|
1589
|
-
case "com.amazonaws.kinesisvideo#InvalidArgumentException":
|
|
1590
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1591
|
-
case "ResourceNotFoundException":
|
|
1592
|
-
case "com.amazonaws.kinesisvideo#ResourceNotFoundException":
|
|
1593
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1594
|
-
default:
|
|
1595
|
-
const parsedBody = parsedOutput.body;
|
|
1596
|
-
return throwDefaultError({
|
|
1597
|
-
output,
|
|
1598
|
-
parsedBody,
|
|
1599
|
-
errorCode
|
|
1600
|
-
});
|
|
1601
|
-
}
|
|
1602
|
-
}, "de_DescribeSignalingChannelCommandError");
|
|
1603
1262
|
var de_DescribeStreamCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1604
1263
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1605
|
-
return
|
|
1264
|
+
return de_CommandError(output, context);
|
|
1606
1265
|
}
|
|
1607
1266
|
const contents = (0, import_smithy_client.map)({
|
|
1608
1267
|
$metadata: deserializeMetadata(output)
|
|
@@ -1614,37 +1273,9 @@ var de_DescribeStreamCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1614
1273
|
Object.assign(contents, doc);
|
|
1615
1274
|
return contents;
|
|
1616
1275
|
}, "de_DescribeStreamCommand");
|
|
1617
|
-
var de_DescribeStreamCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1618
|
-
const parsedOutput = {
|
|
1619
|
-
...output,
|
|
1620
|
-
body: await parseErrorBody(output.body, context)
|
|
1621
|
-
};
|
|
1622
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1623
|
-
switch (errorCode) {
|
|
1624
|
-
case "ClientLimitExceededException":
|
|
1625
|
-
case "com.amazonaws.kinesisvideo#ClientLimitExceededException":
|
|
1626
|
-
throw await de_ClientLimitExceededExceptionRes(parsedOutput, context);
|
|
1627
|
-
case "InvalidArgumentException":
|
|
1628
|
-
case "com.amazonaws.kinesisvideo#InvalidArgumentException":
|
|
1629
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1630
|
-
case "NotAuthorizedException":
|
|
1631
|
-
case "com.amazonaws.kinesisvideo#NotAuthorizedException":
|
|
1632
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
1633
|
-
case "ResourceNotFoundException":
|
|
1634
|
-
case "com.amazonaws.kinesisvideo#ResourceNotFoundException":
|
|
1635
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1636
|
-
default:
|
|
1637
|
-
const parsedBody = parsedOutput.body;
|
|
1638
|
-
return throwDefaultError({
|
|
1639
|
-
output,
|
|
1640
|
-
parsedBody,
|
|
1641
|
-
errorCode
|
|
1642
|
-
});
|
|
1643
|
-
}
|
|
1644
|
-
}, "de_DescribeStreamCommandError");
|
|
1645
1276
|
var de_GetDataEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1646
1277
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1647
|
-
return
|
|
1278
|
+
return de_CommandError(output, context);
|
|
1648
1279
|
}
|
|
1649
1280
|
const contents = (0, import_smithy_client.map)({
|
|
1650
1281
|
$metadata: deserializeMetadata(output)
|
|
@@ -1656,37 +1287,9 @@ var de_GetDataEndpointCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1656
1287
|
Object.assign(contents, doc);
|
|
1657
1288
|
return contents;
|
|
1658
1289
|
}, "de_GetDataEndpointCommand");
|
|
1659
|
-
var de_GetDataEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1660
|
-
const parsedOutput = {
|
|
1661
|
-
...output,
|
|
1662
|
-
body: await parseErrorBody(output.body, context)
|
|
1663
|
-
};
|
|
1664
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1665
|
-
switch (errorCode) {
|
|
1666
|
-
case "ClientLimitExceededException":
|
|
1667
|
-
case "com.amazonaws.kinesisvideo#ClientLimitExceededException":
|
|
1668
|
-
throw await de_ClientLimitExceededExceptionRes(parsedOutput, context);
|
|
1669
|
-
case "InvalidArgumentException":
|
|
1670
|
-
case "com.amazonaws.kinesisvideo#InvalidArgumentException":
|
|
1671
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1672
|
-
case "NotAuthorizedException":
|
|
1673
|
-
case "com.amazonaws.kinesisvideo#NotAuthorizedException":
|
|
1674
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
1675
|
-
case "ResourceNotFoundException":
|
|
1676
|
-
case "com.amazonaws.kinesisvideo#ResourceNotFoundException":
|
|
1677
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1678
|
-
default:
|
|
1679
|
-
const parsedBody = parsedOutput.body;
|
|
1680
|
-
return throwDefaultError({
|
|
1681
|
-
output,
|
|
1682
|
-
parsedBody,
|
|
1683
|
-
errorCode
|
|
1684
|
-
});
|
|
1685
|
-
}
|
|
1686
|
-
}, "de_GetDataEndpointCommandError");
|
|
1687
1290
|
var de_GetSignalingChannelEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1688
1291
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1689
|
-
return
|
|
1292
|
+
return de_CommandError(output, context);
|
|
1690
1293
|
}
|
|
1691
1294
|
const contents = (0, import_smithy_client.map)({
|
|
1692
1295
|
$metadata: deserializeMetadata(output)
|
|
@@ -1698,40 +1301,9 @@ var de_GetSignalingChannelEndpointCommand = /* @__PURE__ */ __name(async (output
|
|
|
1698
1301
|
Object.assign(contents, doc);
|
|
1699
1302
|
return contents;
|
|
1700
1303
|
}, "de_GetSignalingChannelEndpointCommand");
|
|
1701
|
-
var de_GetSignalingChannelEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1702
|
-
const parsedOutput = {
|
|
1703
|
-
...output,
|
|
1704
|
-
body: await parseErrorBody(output.body, context)
|
|
1705
|
-
};
|
|
1706
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1707
|
-
switch (errorCode) {
|
|
1708
|
-
case "AccessDeniedException":
|
|
1709
|
-
case "com.amazonaws.kinesisvideo#AccessDeniedException":
|
|
1710
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1711
|
-
case "ClientLimitExceededException":
|
|
1712
|
-
case "com.amazonaws.kinesisvideo#ClientLimitExceededException":
|
|
1713
|
-
throw await de_ClientLimitExceededExceptionRes(parsedOutput, context);
|
|
1714
|
-
case "InvalidArgumentException":
|
|
1715
|
-
case "com.amazonaws.kinesisvideo#InvalidArgumentException":
|
|
1716
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1717
|
-
case "ResourceInUseException":
|
|
1718
|
-
case "com.amazonaws.kinesisvideo#ResourceInUseException":
|
|
1719
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1720
|
-
case "ResourceNotFoundException":
|
|
1721
|
-
case "com.amazonaws.kinesisvideo#ResourceNotFoundException":
|
|
1722
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1723
|
-
default:
|
|
1724
|
-
const parsedBody = parsedOutput.body;
|
|
1725
|
-
return throwDefaultError({
|
|
1726
|
-
output,
|
|
1727
|
-
parsedBody,
|
|
1728
|
-
errorCode
|
|
1729
|
-
});
|
|
1730
|
-
}
|
|
1731
|
-
}, "de_GetSignalingChannelEndpointCommandError");
|
|
1732
1304
|
var de_ListEdgeAgentConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1733
1305
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1734
|
-
return
|
|
1306
|
+
return de_CommandError(output, context);
|
|
1735
1307
|
}
|
|
1736
1308
|
const contents = (0, import_smithy_client.map)({
|
|
1737
1309
|
$metadata: deserializeMetadata(output)
|
|
@@ -1744,34 +1316,9 @@ var de_ListEdgeAgentConfigurationsCommand = /* @__PURE__ */ __name(async (output
|
|
|
1744
1316
|
Object.assign(contents, doc);
|
|
1745
1317
|
return contents;
|
|
1746
1318
|
}, "de_ListEdgeAgentConfigurationsCommand");
|
|
1747
|
-
var de_ListEdgeAgentConfigurationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1748
|
-
const parsedOutput = {
|
|
1749
|
-
...output,
|
|
1750
|
-
body: await parseErrorBody(output.body, context)
|
|
1751
|
-
};
|
|
1752
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1753
|
-
switch (errorCode) {
|
|
1754
|
-
case "ClientLimitExceededException":
|
|
1755
|
-
case "com.amazonaws.kinesisvideo#ClientLimitExceededException":
|
|
1756
|
-
throw await de_ClientLimitExceededExceptionRes(parsedOutput, context);
|
|
1757
|
-
case "InvalidArgumentException":
|
|
1758
|
-
case "com.amazonaws.kinesisvideo#InvalidArgumentException":
|
|
1759
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1760
|
-
case "NotAuthorizedException":
|
|
1761
|
-
case "com.amazonaws.kinesisvideo#NotAuthorizedException":
|
|
1762
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
1763
|
-
default:
|
|
1764
|
-
const parsedBody = parsedOutput.body;
|
|
1765
|
-
return throwDefaultError({
|
|
1766
|
-
output,
|
|
1767
|
-
parsedBody,
|
|
1768
|
-
errorCode
|
|
1769
|
-
});
|
|
1770
|
-
}
|
|
1771
|
-
}, "de_ListEdgeAgentConfigurationsCommandError");
|
|
1772
1319
|
var de_ListSignalingChannelsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1773
1320
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1774
|
-
return
|
|
1321
|
+
return de_CommandError(output, context);
|
|
1775
1322
|
}
|
|
1776
1323
|
const contents = (0, import_smithy_client.map)({
|
|
1777
1324
|
$metadata: deserializeMetadata(output)
|
|
@@ -1784,34 +1331,9 @@ var de_ListSignalingChannelsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1784
1331
|
Object.assign(contents, doc);
|
|
1785
1332
|
return contents;
|
|
1786
1333
|
}, "de_ListSignalingChannelsCommand");
|
|
1787
|
-
var de_ListSignalingChannelsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1788
|
-
const parsedOutput = {
|
|
1789
|
-
...output,
|
|
1790
|
-
body: await parseErrorBody(output.body, context)
|
|
1791
|
-
};
|
|
1792
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1793
|
-
switch (errorCode) {
|
|
1794
|
-
case "AccessDeniedException":
|
|
1795
|
-
case "com.amazonaws.kinesisvideo#AccessDeniedException":
|
|
1796
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1797
|
-
case "ClientLimitExceededException":
|
|
1798
|
-
case "com.amazonaws.kinesisvideo#ClientLimitExceededException":
|
|
1799
|
-
throw await de_ClientLimitExceededExceptionRes(parsedOutput, context);
|
|
1800
|
-
case "InvalidArgumentException":
|
|
1801
|
-
case "com.amazonaws.kinesisvideo#InvalidArgumentException":
|
|
1802
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1803
|
-
default:
|
|
1804
|
-
const parsedBody = parsedOutput.body;
|
|
1805
|
-
return throwDefaultError({
|
|
1806
|
-
output,
|
|
1807
|
-
parsedBody,
|
|
1808
|
-
errorCode
|
|
1809
|
-
});
|
|
1810
|
-
}
|
|
1811
|
-
}, "de_ListSignalingChannelsCommandError");
|
|
1812
1334
|
var de_ListStreamsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1813
1335
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1814
|
-
return
|
|
1336
|
+
return de_CommandError(output, context);
|
|
1815
1337
|
}
|
|
1816
1338
|
const contents = (0, import_smithy_client.map)({
|
|
1817
1339
|
$metadata: deserializeMetadata(output)
|
|
@@ -1824,31 +1346,9 @@ var de_ListStreamsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1824
1346
|
Object.assign(contents, doc);
|
|
1825
1347
|
return contents;
|
|
1826
1348
|
}, "de_ListStreamsCommand");
|
|
1827
|
-
var de_ListStreamsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1828
|
-
const parsedOutput = {
|
|
1829
|
-
...output,
|
|
1830
|
-
body: await parseErrorBody(output.body, context)
|
|
1831
|
-
};
|
|
1832
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1833
|
-
switch (errorCode) {
|
|
1834
|
-
case "ClientLimitExceededException":
|
|
1835
|
-
case "com.amazonaws.kinesisvideo#ClientLimitExceededException":
|
|
1836
|
-
throw await de_ClientLimitExceededExceptionRes(parsedOutput, context);
|
|
1837
|
-
case "InvalidArgumentException":
|
|
1838
|
-
case "com.amazonaws.kinesisvideo#InvalidArgumentException":
|
|
1839
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1840
|
-
default:
|
|
1841
|
-
const parsedBody = parsedOutput.body;
|
|
1842
|
-
return throwDefaultError({
|
|
1843
|
-
output,
|
|
1844
|
-
parsedBody,
|
|
1845
|
-
errorCode
|
|
1846
|
-
});
|
|
1847
|
-
}
|
|
1848
|
-
}, "de_ListStreamsCommandError");
|
|
1849
1349
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1850
1350
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1851
|
-
return
|
|
1351
|
+
return de_CommandError(output, context);
|
|
1852
1352
|
}
|
|
1853
1353
|
const contents = (0, import_smithy_client.map)({
|
|
1854
1354
|
$metadata: deserializeMetadata(output)
|
|
@@ -1861,37 +1361,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1861
1361
|
Object.assign(contents, doc);
|
|
1862
1362
|
return contents;
|
|
1863
1363
|
}, "de_ListTagsForResourceCommand");
|
|
1864
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1865
|
-
const parsedOutput = {
|
|
1866
|
-
...output,
|
|
1867
|
-
body: await parseErrorBody(output.body, context)
|
|
1868
|
-
};
|
|
1869
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1870
|
-
switch (errorCode) {
|
|
1871
|
-
case "AccessDeniedException":
|
|
1872
|
-
case "com.amazonaws.kinesisvideo#AccessDeniedException":
|
|
1873
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1874
|
-
case "ClientLimitExceededException":
|
|
1875
|
-
case "com.amazonaws.kinesisvideo#ClientLimitExceededException":
|
|
1876
|
-
throw await de_ClientLimitExceededExceptionRes(parsedOutput, context);
|
|
1877
|
-
case "InvalidArgumentException":
|
|
1878
|
-
case "com.amazonaws.kinesisvideo#InvalidArgumentException":
|
|
1879
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1880
|
-
case "ResourceNotFoundException":
|
|
1881
|
-
case "com.amazonaws.kinesisvideo#ResourceNotFoundException":
|
|
1882
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1883
|
-
default:
|
|
1884
|
-
const parsedBody = parsedOutput.body;
|
|
1885
|
-
return throwDefaultError({
|
|
1886
|
-
output,
|
|
1887
|
-
parsedBody,
|
|
1888
|
-
errorCode
|
|
1889
|
-
});
|
|
1890
|
-
}
|
|
1891
|
-
}, "de_ListTagsForResourceCommandError");
|
|
1892
1364
|
var de_ListTagsForStreamCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1893
1365
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1894
|
-
return
|
|
1366
|
+
return de_CommandError(output, context);
|
|
1895
1367
|
}
|
|
1896
1368
|
const contents = (0, import_smithy_client.map)({
|
|
1897
1369
|
$metadata: deserializeMetadata(output)
|
|
@@ -1904,40 +1376,9 @@ var de_ListTagsForStreamCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1904
1376
|
Object.assign(contents, doc);
|
|
1905
1377
|
return contents;
|
|
1906
1378
|
}, "de_ListTagsForStreamCommand");
|
|
1907
|
-
var de_ListTagsForStreamCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1908
|
-
const parsedOutput = {
|
|
1909
|
-
...output,
|
|
1910
|
-
body: await parseErrorBody(output.body, context)
|
|
1911
|
-
};
|
|
1912
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1913
|
-
switch (errorCode) {
|
|
1914
|
-
case "ClientLimitExceededException":
|
|
1915
|
-
case "com.amazonaws.kinesisvideo#ClientLimitExceededException":
|
|
1916
|
-
throw await de_ClientLimitExceededExceptionRes(parsedOutput, context);
|
|
1917
|
-
case "InvalidArgumentException":
|
|
1918
|
-
case "com.amazonaws.kinesisvideo#InvalidArgumentException":
|
|
1919
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1920
|
-
case "InvalidResourceFormatException":
|
|
1921
|
-
case "com.amazonaws.kinesisvideo#InvalidResourceFormatException":
|
|
1922
|
-
throw await de_InvalidResourceFormatExceptionRes(parsedOutput, context);
|
|
1923
|
-
case "NotAuthorizedException":
|
|
1924
|
-
case "com.amazonaws.kinesisvideo#NotAuthorizedException":
|
|
1925
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
1926
|
-
case "ResourceNotFoundException":
|
|
1927
|
-
case "com.amazonaws.kinesisvideo#ResourceNotFoundException":
|
|
1928
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1929
|
-
default:
|
|
1930
|
-
const parsedBody = parsedOutput.body;
|
|
1931
|
-
return throwDefaultError({
|
|
1932
|
-
output,
|
|
1933
|
-
parsedBody,
|
|
1934
|
-
errorCode
|
|
1935
|
-
});
|
|
1936
|
-
}
|
|
1937
|
-
}, "de_ListTagsForStreamCommandError");
|
|
1938
1379
|
var de_StartEdgeConfigurationUpdateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1939
1380
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1940
|
-
return
|
|
1381
|
+
return de_CommandError(output, context);
|
|
1941
1382
|
}
|
|
1942
1383
|
const contents = (0, import_smithy_client.map)({
|
|
1943
1384
|
$metadata: deserializeMetadata(output)
|
|
@@ -1955,43 +1396,9 @@ var de_StartEdgeConfigurationUpdateCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1955
1396
|
Object.assign(contents, doc);
|
|
1956
1397
|
return contents;
|
|
1957
1398
|
}, "de_StartEdgeConfigurationUpdateCommand");
|
|
1958
|
-
var de_StartEdgeConfigurationUpdateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1959
|
-
const parsedOutput = {
|
|
1960
|
-
...output,
|
|
1961
|
-
body: await parseErrorBody(output.body, context)
|
|
1962
|
-
};
|
|
1963
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1964
|
-
switch (errorCode) {
|
|
1965
|
-
case "AccessDeniedException":
|
|
1966
|
-
case "com.amazonaws.kinesisvideo#AccessDeniedException":
|
|
1967
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1968
|
-
case "ClientLimitExceededException":
|
|
1969
|
-
case "com.amazonaws.kinesisvideo#ClientLimitExceededException":
|
|
1970
|
-
throw await de_ClientLimitExceededExceptionRes(parsedOutput, context);
|
|
1971
|
-
case "InvalidArgumentException":
|
|
1972
|
-
case "com.amazonaws.kinesisvideo#InvalidArgumentException":
|
|
1973
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1974
|
-
case "NoDataRetentionException":
|
|
1975
|
-
case "com.amazonaws.kinesisvideo#NoDataRetentionException":
|
|
1976
|
-
throw await de_NoDataRetentionExceptionRes(parsedOutput, context);
|
|
1977
|
-
case "ResourceInUseException":
|
|
1978
|
-
case "com.amazonaws.kinesisvideo#ResourceInUseException":
|
|
1979
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1980
|
-
case "ResourceNotFoundException":
|
|
1981
|
-
case "com.amazonaws.kinesisvideo#ResourceNotFoundException":
|
|
1982
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1983
|
-
default:
|
|
1984
|
-
const parsedBody = parsedOutput.body;
|
|
1985
|
-
return throwDefaultError({
|
|
1986
|
-
output,
|
|
1987
|
-
parsedBody,
|
|
1988
|
-
errorCode
|
|
1989
|
-
});
|
|
1990
|
-
}
|
|
1991
|
-
}, "de_StartEdgeConfigurationUpdateCommandError");
|
|
1992
1399
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1993
1400
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1994
|
-
return
|
|
1401
|
+
return de_CommandError(output, context);
|
|
1995
1402
|
}
|
|
1996
1403
|
const contents = (0, import_smithy_client.map)({
|
|
1997
1404
|
$metadata: deserializeMetadata(output)
|
|
@@ -1999,40 +1406,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1999
1406
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2000
1407
|
return contents;
|
|
2001
1408
|
}, "de_TagResourceCommand");
|
|
2002
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2003
|
-
const parsedOutput = {
|
|
2004
|
-
...output,
|
|
2005
|
-
body: await parseErrorBody(output.body, context)
|
|
2006
|
-
};
|
|
2007
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2008
|
-
switch (errorCode) {
|
|
2009
|
-
case "AccessDeniedException":
|
|
2010
|
-
case "com.amazonaws.kinesisvideo#AccessDeniedException":
|
|
2011
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2012
|
-
case "ClientLimitExceededException":
|
|
2013
|
-
case "com.amazonaws.kinesisvideo#ClientLimitExceededException":
|
|
2014
|
-
throw await de_ClientLimitExceededExceptionRes(parsedOutput, context);
|
|
2015
|
-
case "InvalidArgumentException":
|
|
2016
|
-
case "com.amazonaws.kinesisvideo#InvalidArgumentException":
|
|
2017
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
2018
|
-
case "ResourceNotFoundException":
|
|
2019
|
-
case "com.amazonaws.kinesisvideo#ResourceNotFoundException":
|
|
2020
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2021
|
-
case "TagsPerResourceExceededLimitException":
|
|
2022
|
-
case "com.amazonaws.kinesisvideo#TagsPerResourceExceededLimitException":
|
|
2023
|
-
throw await de_TagsPerResourceExceededLimitExceptionRes(parsedOutput, context);
|
|
2024
|
-
default:
|
|
2025
|
-
const parsedBody = parsedOutput.body;
|
|
2026
|
-
return throwDefaultError({
|
|
2027
|
-
output,
|
|
2028
|
-
parsedBody,
|
|
2029
|
-
errorCode
|
|
2030
|
-
});
|
|
2031
|
-
}
|
|
2032
|
-
}, "de_TagResourceCommandError");
|
|
2033
1409
|
var de_TagStreamCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2034
1410
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2035
|
-
return
|
|
1411
|
+
return de_CommandError(output, context);
|
|
2036
1412
|
}
|
|
2037
1413
|
const contents = (0, import_smithy_client.map)({
|
|
2038
1414
|
$metadata: deserializeMetadata(output)
|
|
@@ -2040,43 +1416,9 @@ var de_TagStreamCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2040
1416
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2041
1417
|
return contents;
|
|
2042
1418
|
}, "de_TagStreamCommand");
|
|
2043
|
-
var de_TagStreamCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2044
|
-
const parsedOutput = {
|
|
2045
|
-
...output,
|
|
2046
|
-
body: await parseErrorBody(output.body, context)
|
|
2047
|
-
};
|
|
2048
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2049
|
-
switch (errorCode) {
|
|
2050
|
-
case "ClientLimitExceededException":
|
|
2051
|
-
case "com.amazonaws.kinesisvideo#ClientLimitExceededException":
|
|
2052
|
-
throw await de_ClientLimitExceededExceptionRes(parsedOutput, context);
|
|
2053
|
-
case "InvalidArgumentException":
|
|
2054
|
-
case "com.amazonaws.kinesisvideo#InvalidArgumentException":
|
|
2055
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
2056
|
-
case "InvalidResourceFormatException":
|
|
2057
|
-
case "com.amazonaws.kinesisvideo#InvalidResourceFormatException":
|
|
2058
|
-
throw await de_InvalidResourceFormatExceptionRes(parsedOutput, context);
|
|
2059
|
-
case "NotAuthorizedException":
|
|
2060
|
-
case "com.amazonaws.kinesisvideo#NotAuthorizedException":
|
|
2061
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
2062
|
-
case "ResourceNotFoundException":
|
|
2063
|
-
case "com.amazonaws.kinesisvideo#ResourceNotFoundException":
|
|
2064
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2065
|
-
case "TagsPerResourceExceededLimitException":
|
|
2066
|
-
case "com.amazonaws.kinesisvideo#TagsPerResourceExceededLimitException":
|
|
2067
|
-
throw await de_TagsPerResourceExceededLimitExceptionRes(parsedOutput, context);
|
|
2068
|
-
default:
|
|
2069
|
-
const parsedBody = parsedOutput.body;
|
|
2070
|
-
return throwDefaultError({
|
|
2071
|
-
output,
|
|
2072
|
-
parsedBody,
|
|
2073
|
-
errorCode
|
|
2074
|
-
});
|
|
2075
|
-
}
|
|
2076
|
-
}, "de_TagStreamCommandError");
|
|
2077
1419
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2078
1420
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2079
|
-
return
|
|
1421
|
+
return de_CommandError(output, context);
|
|
2080
1422
|
}
|
|
2081
1423
|
const contents = (0, import_smithy_client.map)({
|
|
2082
1424
|
$metadata: deserializeMetadata(output)
|
|
@@ -2084,37 +1426,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2084
1426
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2085
1427
|
return contents;
|
|
2086
1428
|
}, "de_UntagResourceCommand");
|
|
2087
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2088
|
-
const parsedOutput = {
|
|
2089
|
-
...output,
|
|
2090
|
-
body: await parseErrorBody(output.body, context)
|
|
2091
|
-
};
|
|
2092
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2093
|
-
switch (errorCode) {
|
|
2094
|
-
case "AccessDeniedException":
|
|
2095
|
-
case "com.amazonaws.kinesisvideo#AccessDeniedException":
|
|
2096
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2097
|
-
case "ClientLimitExceededException":
|
|
2098
|
-
case "com.amazonaws.kinesisvideo#ClientLimitExceededException":
|
|
2099
|
-
throw await de_ClientLimitExceededExceptionRes(parsedOutput, context);
|
|
2100
|
-
case "InvalidArgumentException":
|
|
2101
|
-
case "com.amazonaws.kinesisvideo#InvalidArgumentException":
|
|
2102
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
2103
|
-
case "ResourceNotFoundException":
|
|
2104
|
-
case "com.amazonaws.kinesisvideo#ResourceNotFoundException":
|
|
2105
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2106
|
-
default:
|
|
2107
|
-
const parsedBody = parsedOutput.body;
|
|
2108
|
-
return throwDefaultError({
|
|
2109
|
-
output,
|
|
2110
|
-
parsedBody,
|
|
2111
|
-
errorCode
|
|
2112
|
-
});
|
|
2113
|
-
}
|
|
2114
|
-
}, "de_UntagResourceCommandError");
|
|
2115
1429
|
var de_UntagStreamCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2116
1430
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2117
|
-
return
|
|
1431
|
+
return de_CommandError(output, context);
|
|
2118
1432
|
}
|
|
2119
1433
|
const contents = (0, import_smithy_client.map)({
|
|
2120
1434
|
$metadata: deserializeMetadata(output)
|
|
@@ -2122,40 +1436,9 @@ var de_UntagStreamCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2122
1436
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2123
1437
|
return contents;
|
|
2124
1438
|
}, "de_UntagStreamCommand");
|
|
2125
|
-
var de_UntagStreamCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2126
|
-
const parsedOutput = {
|
|
2127
|
-
...output,
|
|
2128
|
-
body: await parseErrorBody(output.body, context)
|
|
2129
|
-
};
|
|
2130
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2131
|
-
switch (errorCode) {
|
|
2132
|
-
case "ClientLimitExceededException":
|
|
2133
|
-
case "com.amazonaws.kinesisvideo#ClientLimitExceededException":
|
|
2134
|
-
throw await de_ClientLimitExceededExceptionRes(parsedOutput, context);
|
|
2135
|
-
case "InvalidArgumentException":
|
|
2136
|
-
case "com.amazonaws.kinesisvideo#InvalidArgumentException":
|
|
2137
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
2138
|
-
case "InvalidResourceFormatException":
|
|
2139
|
-
case "com.amazonaws.kinesisvideo#InvalidResourceFormatException":
|
|
2140
|
-
throw await de_InvalidResourceFormatExceptionRes(parsedOutput, context);
|
|
2141
|
-
case "NotAuthorizedException":
|
|
2142
|
-
case "com.amazonaws.kinesisvideo#NotAuthorizedException":
|
|
2143
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
2144
|
-
case "ResourceNotFoundException":
|
|
2145
|
-
case "com.amazonaws.kinesisvideo#ResourceNotFoundException":
|
|
2146
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2147
|
-
default:
|
|
2148
|
-
const parsedBody = parsedOutput.body;
|
|
2149
|
-
return throwDefaultError({
|
|
2150
|
-
output,
|
|
2151
|
-
parsedBody,
|
|
2152
|
-
errorCode
|
|
2153
|
-
});
|
|
2154
|
-
}
|
|
2155
|
-
}, "de_UntagStreamCommandError");
|
|
2156
1439
|
var de_UpdateDataRetentionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2157
1440
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2158
|
-
return
|
|
1441
|
+
return de_CommandError(output, context);
|
|
2159
1442
|
}
|
|
2160
1443
|
const contents = (0, import_smithy_client.map)({
|
|
2161
1444
|
$metadata: deserializeMetadata(output)
|
|
@@ -2163,43 +1446,9 @@ var de_UpdateDataRetentionCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2163
1446
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2164
1447
|
return contents;
|
|
2165
1448
|
}, "de_UpdateDataRetentionCommand");
|
|
2166
|
-
var de_UpdateDataRetentionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2167
|
-
const parsedOutput = {
|
|
2168
|
-
...output,
|
|
2169
|
-
body: await parseErrorBody(output.body, context)
|
|
2170
|
-
};
|
|
2171
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2172
|
-
switch (errorCode) {
|
|
2173
|
-
case "ClientLimitExceededException":
|
|
2174
|
-
case "com.amazonaws.kinesisvideo#ClientLimitExceededException":
|
|
2175
|
-
throw await de_ClientLimitExceededExceptionRes(parsedOutput, context);
|
|
2176
|
-
case "InvalidArgumentException":
|
|
2177
|
-
case "com.amazonaws.kinesisvideo#InvalidArgumentException":
|
|
2178
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
2179
|
-
case "NotAuthorizedException":
|
|
2180
|
-
case "com.amazonaws.kinesisvideo#NotAuthorizedException":
|
|
2181
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
2182
|
-
case "ResourceInUseException":
|
|
2183
|
-
case "com.amazonaws.kinesisvideo#ResourceInUseException":
|
|
2184
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2185
|
-
case "ResourceNotFoundException":
|
|
2186
|
-
case "com.amazonaws.kinesisvideo#ResourceNotFoundException":
|
|
2187
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2188
|
-
case "VersionMismatchException":
|
|
2189
|
-
case "com.amazonaws.kinesisvideo#VersionMismatchException":
|
|
2190
|
-
throw await de_VersionMismatchExceptionRes(parsedOutput, context);
|
|
2191
|
-
default:
|
|
2192
|
-
const parsedBody = parsedOutput.body;
|
|
2193
|
-
return throwDefaultError({
|
|
2194
|
-
output,
|
|
2195
|
-
parsedBody,
|
|
2196
|
-
errorCode
|
|
2197
|
-
});
|
|
2198
|
-
}
|
|
2199
|
-
}, "de_UpdateDataRetentionCommandError");
|
|
2200
1449
|
var de_UpdateImageGenerationConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2201
1450
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2202
|
-
return
|
|
1451
|
+
return de_CommandError(output, context);
|
|
2203
1452
|
}
|
|
2204
1453
|
const contents = (0, import_smithy_client.map)({
|
|
2205
1454
|
$metadata: deserializeMetadata(output)
|
|
@@ -2207,43 +1456,9 @@ var de_UpdateImageGenerationConfigurationCommand = /* @__PURE__ */ __name(async
|
|
|
2207
1456
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2208
1457
|
return contents;
|
|
2209
1458
|
}, "de_UpdateImageGenerationConfigurationCommand");
|
|
2210
|
-
var de_UpdateImageGenerationConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2211
|
-
const parsedOutput = {
|
|
2212
|
-
...output,
|
|
2213
|
-
body: await parseErrorBody(output.body, context)
|
|
2214
|
-
};
|
|
2215
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2216
|
-
switch (errorCode) {
|
|
2217
|
-
case "AccessDeniedException":
|
|
2218
|
-
case "com.amazonaws.kinesisvideo#AccessDeniedException":
|
|
2219
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2220
|
-
case "ClientLimitExceededException":
|
|
2221
|
-
case "com.amazonaws.kinesisvideo#ClientLimitExceededException":
|
|
2222
|
-
throw await de_ClientLimitExceededExceptionRes(parsedOutput, context);
|
|
2223
|
-
case "InvalidArgumentException":
|
|
2224
|
-
case "com.amazonaws.kinesisvideo#InvalidArgumentException":
|
|
2225
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
2226
|
-
case "NoDataRetentionException":
|
|
2227
|
-
case "com.amazonaws.kinesisvideo#NoDataRetentionException":
|
|
2228
|
-
throw await de_NoDataRetentionExceptionRes(parsedOutput, context);
|
|
2229
|
-
case "ResourceInUseException":
|
|
2230
|
-
case "com.amazonaws.kinesisvideo#ResourceInUseException":
|
|
2231
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2232
|
-
case "ResourceNotFoundException":
|
|
2233
|
-
case "com.amazonaws.kinesisvideo#ResourceNotFoundException":
|
|
2234
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2235
|
-
default:
|
|
2236
|
-
const parsedBody = parsedOutput.body;
|
|
2237
|
-
return throwDefaultError({
|
|
2238
|
-
output,
|
|
2239
|
-
parsedBody,
|
|
2240
|
-
errorCode
|
|
2241
|
-
});
|
|
2242
|
-
}
|
|
2243
|
-
}, "de_UpdateImageGenerationConfigurationCommandError");
|
|
2244
1459
|
var de_UpdateMediaStorageConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2245
1460
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2246
|
-
return
|
|
1461
|
+
return de_CommandError(output, context);
|
|
2247
1462
|
}
|
|
2248
1463
|
const contents = (0, import_smithy_client.map)({
|
|
2249
1464
|
$metadata: deserializeMetadata(output)
|
|
@@ -2251,43 +1466,9 @@ var de_UpdateMediaStorageConfigurationCommand = /* @__PURE__ */ __name(async (ou
|
|
|
2251
1466
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2252
1467
|
return contents;
|
|
2253
1468
|
}, "de_UpdateMediaStorageConfigurationCommand");
|
|
2254
|
-
var de_UpdateMediaStorageConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2255
|
-
const parsedOutput = {
|
|
2256
|
-
...output,
|
|
2257
|
-
body: await parseErrorBody(output.body, context)
|
|
2258
|
-
};
|
|
2259
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2260
|
-
switch (errorCode) {
|
|
2261
|
-
case "AccessDeniedException":
|
|
2262
|
-
case "com.amazonaws.kinesisvideo#AccessDeniedException":
|
|
2263
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2264
|
-
case "ClientLimitExceededException":
|
|
2265
|
-
case "com.amazonaws.kinesisvideo#ClientLimitExceededException":
|
|
2266
|
-
throw await de_ClientLimitExceededExceptionRes(parsedOutput, context);
|
|
2267
|
-
case "InvalidArgumentException":
|
|
2268
|
-
case "com.amazonaws.kinesisvideo#InvalidArgumentException":
|
|
2269
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
2270
|
-
case "NoDataRetentionException":
|
|
2271
|
-
case "com.amazonaws.kinesisvideo#NoDataRetentionException":
|
|
2272
|
-
throw await de_NoDataRetentionExceptionRes(parsedOutput, context);
|
|
2273
|
-
case "ResourceInUseException":
|
|
2274
|
-
case "com.amazonaws.kinesisvideo#ResourceInUseException":
|
|
2275
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2276
|
-
case "ResourceNotFoundException":
|
|
2277
|
-
case "com.amazonaws.kinesisvideo#ResourceNotFoundException":
|
|
2278
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2279
|
-
default:
|
|
2280
|
-
const parsedBody = parsedOutput.body;
|
|
2281
|
-
return throwDefaultError({
|
|
2282
|
-
output,
|
|
2283
|
-
parsedBody,
|
|
2284
|
-
errorCode
|
|
2285
|
-
});
|
|
2286
|
-
}
|
|
2287
|
-
}, "de_UpdateMediaStorageConfigurationCommandError");
|
|
2288
1469
|
var de_UpdateNotificationConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2289
1470
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2290
|
-
return
|
|
1471
|
+
return de_CommandError(output, context);
|
|
2291
1472
|
}
|
|
2292
1473
|
const contents = (0, import_smithy_client.map)({
|
|
2293
1474
|
$metadata: deserializeMetadata(output)
|
|
@@ -2295,43 +1476,9 @@ var de_UpdateNotificationConfigurationCommand = /* @__PURE__ */ __name(async (ou
|
|
|
2295
1476
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2296
1477
|
return contents;
|
|
2297
1478
|
}, "de_UpdateNotificationConfigurationCommand");
|
|
2298
|
-
var de_UpdateNotificationConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2299
|
-
const parsedOutput = {
|
|
2300
|
-
...output,
|
|
2301
|
-
body: await parseErrorBody(output.body, context)
|
|
2302
|
-
};
|
|
2303
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2304
|
-
switch (errorCode) {
|
|
2305
|
-
case "AccessDeniedException":
|
|
2306
|
-
case "com.amazonaws.kinesisvideo#AccessDeniedException":
|
|
2307
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2308
|
-
case "ClientLimitExceededException":
|
|
2309
|
-
case "com.amazonaws.kinesisvideo#ClientLimitExceededException":
|
|
2310
|
-
throw await de_ClientLimitExceededExceptionRes(parsedOutput, context);
|
|
2311
|
-
case "InvalidArgumentException":
|
|
2312
|
-
case "com.amazonaws.kinesisvideo#InvalidArgumentException":
|
|
2313
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
2314
|
-
case "NoDataRetentionException":
|
|
2315
|
-
case "com.amazonaws.kinesisvideo#NoDataRetentionException":
|
|
2316
|
-
throw await de_NoDataRetentionExceptionRes(parsedOutput, context);
|
|
2317
|
-
case "ResourceInUseException":
|
|
2318
|
-
case "com.amazonaws.kinesisvideo#ResourceInUseException":
|
|
2319
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2320
|
-
case "ResourceNotFoundException":
|
|
2321
|
-
case "com.amazonaws.kinesisvideo#ResourceNotFoundException":
|
|
2322
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2323
|
-
default:
|
|
2324
|
-
const parsedBody = parsedOutput.body;
|
|
2325
|
-
return throwDefaultError({
|
|
2326
|
-
output,
|
|
2327
|
-
parsedBody,
|
|
2328
|
-
errorCode
|
|
2329
|
-
});
|
|
2330
|
-
}
|
|
2331
|
-
}, "de_UpdateNotificationConfigurationCommandError");
|
|
2332
1479
|
var de_UpdateSignalingChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2333
1480
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2334
|
-
return
|
|
1481
|
+
return de_CommandError(output, context);
|
|
2335
1482
|
}
|
|
2336
1483
|
const contents = (0, import_smithy_client.map)({
|
|
2337
1484
|
$metadata: deserializeMetadata(output)
|
|
@@ -2339,43 +1486,9 @@ var de_UpdateSignalingChannelCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2339
1486
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2340
1487
|
return contents;
|
|
2341
1488
|
}, "de_UpdateSignalingChannelCommand");
|
|
2342
|
-
var de_UpdateSignalingChannelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2343
|
-
const parsedOutput = {
|
|
2344
|
-
...output,
|
|
2345
|
-
body: await parseErrorBody(output.body, context)
|
|
2346
|
-
};
|
|
2347
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2348
|
-
switch (errorCode) {
|
|
2349
|
-
case "AccessDeniedException":
|
|
2350
|
-
case "com.amazonaws.kinesisvideo#AccessDeniedException":
|
|
2351
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2352
|
-
case "ClientLimitExceededException":
|
|
2353
|
-
case "com.amazonaws.kinesisvideo#ClientLimitExceededException":
|
|
2354
|
-
throw await de_ClientLimitExceededExceptionRes(parsedOutput, context);
|
|
2355
|
-
case "InvalidArgumentException":
|
|
2356
|
-
case "com.amazonaws.kinesisvideo#InvalidArgumentException":
|
|
2357
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
2358
|
-
case "ResourceInUseException":
|
|
2359
|
-
case "com.amazonaws.kinesisvideo#ResourceInUseException":
|
|
2360
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2361
|
-
case "ResourceNotFoundException":
|
|
2362
|
-
case "com.amazonaws.kinesisvideo#ResourceNotFoundException":
|
|
2363
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2364
|
-
case "VersionMismatchException":
|
|
2365
|
-
case "com.amazonaws.kinesisvideo#VersionMismatchException":
|
|
2366
|
-
throw await de_VersionMismatchExceptionRes(parsedOutput, context);
|
|
2367
|
-
default:
|
|
2368
|
-
const parsedBody = parsedOutput.body;
|
|
2369
|
-
return throwDefaultError({
|
|
2370
|
-
output,
|
|
2371
|
-
parsedBody,
|
|
2372
|
-
errorCode
|
|
2373
|
-
});
|
|
2374
|
-
}
|
|
2375
|
-
}, "de_UpdateSignalingChannelCommandError");
|
|
2376
1489
|
var de_UpdateStreamCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2377
1490
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2378
|
-
return
|
|
1491
|
+
return de_CommandError(output, context);
|
|
2379
1492
|
}
|
|
2380
1493
|
const contents = (0, import_smithy_client.map)({
|
|
2381
1494
|
$metadata: deserializeMetadata(output)
|
|
@@ -2383,31 +1496,58 @@ var de_UpdateStreamCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2383
1496
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2384
1497
|
return contents;
|
|
2385
1498
|
}, "de_UpdateStreamCommand");
|
|
2386
|
-
var
|
|
1499
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2387
1500
|
const parsedOutput = {
|
|
2388
1501
|
...output,
|
|
2389
1502
|
body: await parseErrorBody(output.body, context)
|
|
2390
1503
|
};
|
|
2391
1504
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2392
1505
|
switch (errorCode) {
|
|
1506
|
+
case "AccessDeniedException":
|
|
1507
|
+
case "com.amazonaws.kinesisvideo#AccessDeniedException":
|
|
1508
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1509
|
+
case "AccountChannelLimitExceededException":
|
|
1510
|
+
case "com.amazonaws.kinesisvideo#AccountChannelLimitExceededException":
|
|
1511
|
+
throw await de_AccountChannelLimitExceededExceptionRes(parsedOutput, context);
|
|
2393
1512
|
case "ClientLimitExceededException":
|
|
2394
1513
|
case "com.amazonaws.kinesisvideo#ClientLimitExceededException":
|
|
2395
1514
|
throw await de_ClientLimitExceededExceptionRes(parsedOutput, context);
|
|
2396
1515
|
case "InvalidArgumentException":
|
|
2397
1516
|
case "com.amazonaws.kinesisvideo#InvalidArgumentException":
|
|
2398
1517
|
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
2399
|
-
case "NotAuthorizedException":
|
|
2400
|
-
case "com.amazonaws.kinesisvideo#NotAuthorizedException":
|
|
2401
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
2402
1518
|
case "ResourceInUseException":
|
|
2403
1519
|
case "com.amazonaws.kinesisvideo#ResourceInUseException":
|
|
2404
1520
|
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1521
|
+
case "TagsPerResourceExceededLimitException":
|
|
1522
|
+
case "com.amazonaws.kinesisvideo#TagsPerResourceExceededLimitException":
|
|
1523
|
+
throw await de_TagsPerResourceExceededLimitExceptionRes(parsedOutput, context);
|
|
1524
|
+
case "AccountStreamLimitExceededException":
|
|
1525
|
+
case "com.amazonaws.kinesisvideo#AccountStreamLimitExceededException":
|
|
1526
|
+
throw await de_AccountStreamLimitExceededExceptionRes(parsedOutput, context);
|
|
1527
|
+
case "DeviceStreamLimitExceededException":
|
|
1528
|
+
case "com.amazonaws.kinesisvideo#DeviceStreamLimitExceededException":
|
|
1529
|
+
throw await de_DeviceStreamLimitExceededExceptionRes(parsedOutput, context);
|
|
1530
|
+
case "InvalidDeviceException":
|
|
1531
|
+
case "com.amazonaws.kinesisvideo#InvalidDeviceException":
|
|
1532
|
+
throw await de_InvalidDeviceExceptionRes(parsedOutput, context);
|
|
2405
1533
|
case "ResourceNotFoundException":
|
|
2406
1534
|
case "com.amazonaws.kinesisvideo#ResourceNotFoundException":
|
|
2407
1535
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1536
|
+
case "StreamEdgeConfigurationNotFoundException":
|
|
1537
|
+
case "com.amazonaws.kinesisvideo#StreamEdgeConfigurationNotFoundException":
|
|
1538
|
+
throw await de_StreamEdgeConfigurationNotFoundExceptionRes(parsedOutput, context);
|
|
2408
1539
|
case "VersionMismatchException":
|
|
2409
1540
|
case "com.amazonaws.kinesisvideo#VersionMismatchException":
|
|
2410
1541
|
throw await de_VersionMismatchExceptionRes(parsedOutput, context);
|
|
1542
|
+
case "NotAuthorizedException":
|
|
1543
|
+
case "com.amazonaws.kinesisvideo#NotAuthorizedException":
|
|
1544
|
+
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
1545
|
+
case "InvalidResourceFormatException":
|
|
1546
|
+
case "com.amazonaws.kinesisvideo#InvalidResourceFormatException":
|
|
1547
|
+
throw await de_InvalidResourceFormatExceptionRes(parsedOutput, context);
|
|
1548
|
+
case "NoDataRetentionException":
|
|
1549
|
+
case "com.amazonaws.kinesisvideo#NoDataRetentionException":
|
|
1550
|
+
throw await de_NoDataRetentionExceptionRes(parsedOutput, context);
|
|
2411
1551
|
default:
|
|
2412
1552
|
const parsedBody = parsedOutput.body;
|
|
2413
1553
|
return throwDefaultError({
|
|
@@ -2416,7 +1556,7 @@ var de_UpdateStreamCommandError = /* @__PURE__ */ __name(async (output, context)
|
|
|
2416
1556
|
errorCode
|
|
2417
1557
|
});
|
|
2418
1558
|
}
|
|
2419
|
-
}, "
|
|
1559
|
+
}, "de_CommandError");
|
|
2420
1560
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(KinesisVideoServiceException);
|
|
2421
1561
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2422
1562
|
const contents = (0, import_smithy_client.map)({});
|