@aws-sdk/client-ivs 3.505.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 +58 -962
- package/dist-es/protocols/Aws_restJson1.js +67 -971
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -1041,7 +1041,7 @@ var se_UpdatePlaybackRestrictionPolicyCommand = /* @__PURE__ */ __name(async (in
|
|
|
1041
1041
|
}, "se_UpdatePlaybackRestrictionPolicyCommand");
|
|
1042
1042
|
var de_BatchGetChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1043
1043
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1044
|
-
return
|
|
1044
|
+
return de_CommandError(output, context);
|
|
1045
1045
|
}
|
|
1046
1046
|
const contents = (0, import_smithy_client.map)({
|
|
1047
1047
|
$metadata: deserializeMetadata(output)
|
|
@@ -1054,22 +1054,9 @@ var de_BatchGetChannelCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1054
1054
|
Object.assign(contents, doc);
|
|
1055
1055
|
return contents;
|
|
1056
1056
|
}, "de_BatchGetChannelCommand");
|
|
1057
|
-
var de_BatchGetChannelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1058
|
-
const parsedOutput = {
|
|
1059
|
-
...output,
|
|
1060
|
-
body: await parseErrorBody(output.body, context)
|
|
1061
|
-
};
|
|
1062
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1063
|
-
const parsedBody = parsedOutput.body;
|
|
1064
|
-
return throwDefaultError({
|
|
1065
|
-
output,
|
|
1066
|
-
parsedBody,
|
|
1067
|
-
errorCode
|
|
1068
|
-
});
|
|
1069
|
-
}, "de_BatchGetChannelCommandError");
|
|
1070
1057
|
var de_BatchGetStreamKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1071
1058
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1072
|
-
return
|
|
1059
|
+
return de_CommandError(output, context);
|
|
1073
1060
|
}
|
|
1074
1061
|
const contents = (0, import_smithy_client.map)({
|
|
1075
1062
|
$metadata: deserializeMetadata(output)
|
|
@@ -1082,22 +1069,9 @@ var de_BatchGetStreamKeyCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1082
1069
|
Object.assign(contents, doc);
|
|
1083
1070
|
return contents;
|
|
1084
1071
|
}, "de_BatchGetStreamKeyCommand");
|
|
1085
|
-
var de_BatchGetStreamKeyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1086
|
-
const parsedOutput = {
|
|
1087
|
-
...output,
|
|
1088
|
-
body: await parseErrorBody(output.body, context)
|
|
1089
|
-
};
|
|
1090
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1091
|
-
const parsedBody = parsedOutput.body;
|
|
1092
|
-
return throwDefaultError({
|
|
1093
|
-
output,
|
|
1094
|
-
parsedBody,
|
|
1095
|
-
errorCode
|
|
1096
|
-
});
|
|
1097
|
-
}, "de_BatchGetStreamKeyCommandError");
|
|
1098
1072
|
var de_BatchStartViewerSessionRevocationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1099
1073
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1100
|
-
return
|
|
1074
|
+
return de_CommandError(output, context);
|
|
1101
1075
|
}
|
|
1102
1076
|
const contents = (0, import_smithy_client.map)({
|
|
1103
1077
|
$metadata: deserializeMetadata(output)
|
|
@@ -1109,37 +1083,9 @@ var de_BatchStartViewerSessionRevocationCommand = /* @__PURE__ */ __name(async (
|
|
|
1109
1083
|
Object.assign(contents, doc);
|
|
1110
1084
|
return contents;
|
|
1111
1085
|
}, "de_BatchStartViewerSessionRevocationCommand");
|
|
1112
|
-
var de_BatchStartViewerSessionRevocationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1113
|
-
const parsedOutput = {
|
|
1114
|
-
...output,
|
|
1115
|
-
body: await parseErrorBody(output.body, context)
|
|
1116
|
-
};
|
|
1117
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1118
|
-
switch (errorCode) {
|
|
1119
|
-
case "AccessDeniedException":
|
|
1120
|
-
case "com.amazonaws.ivs#AccessDeniedException":
|
|
1121
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1122
|
-
case "PendingVerification":
|
|
1123
|
-
case "com.amazonaws.ivs#PendingVerification":
|
|
1124
|
-
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
1125
|
-
case "ThrottlingException":
|
|
1126
|
-
case "com.amazonaws.ivs#ThrottlingException":
|
|
1127
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1128
|
-
case "ValidationException":
|
|
1129
|
-
case "com.amazonaws.ivs#ValidationException":
|
|
1130
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1131
|
-
default:
|
|
1132
|
-
const parsedBody = parsedOutput.body;
|
|
1133
|
-
return throwDefaultError({
|
|
1134
|
-
output,
|
|
1135
|
-
parsedBody,
|
|
1136
|
-
errorCode
|
|
1137
|
-
});
|
|
1138
|
-
}
|
|
1139
|
-
}, "de_BatchStartViewerSessionRevocationCommandError");
|
|
1140
1086
|
var de_CreateChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1141
1087
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1142
|
-
return
|
|
1088
|
+
return de_CommandError(output, context);
|
|
1143
1089
|
}
|
|
1144
1090
|
const contents = (0, import_smithy_client.map)({
|
|
1145
1091
|
$metadata: deserializeMetadata(output)
|
|
@@ -1152,40 +1098,9 @@ var de_CreateChannelCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1152
1098
|
Object.assign(contents, doc);
|
|
1153
1099
|
return contents;
|
|
1154
1100
|
}, "de_CreateChannelCommand");
|
|
1155
|
-
var de_CreateChannelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1156
|
-
const parsedOutput = {
|
|
1157
|
-
...output,
|
|
1158
|
-
body: await parseErrorBody(output.body, context)
|
|
1159
|
-
};
|
|
1160
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1161
|
-
switch (errorCode) {
|
|
1162
|
-
case "AccessDeniedException":
|
|
1163
|
-
case "com.amazonaws.ivs#AccessDeniedException":
|
|
1164
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1165
|
-
case "PendingVerification":
|
|
1166
|
-
case "com.amazonaws.ivs#PendingVerification":
|
|
1167
|
-
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
1168
|
-
case "ResourceNotFoundException":
|
|
1169
|
-
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
1170
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1171
|
-
case "ServiceQuotaExceededException":
|
|
1172
|
-
case "com.amazonaws.ivs#ServiceQuotaExceededException":
|
|
1173
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1174
|
-
case "ValidationException":
|
|
1175
|
-
case "com.amazonaws.ivs#ValidationException":
|
|
1176
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1177
|
-
default:
|
|
1178
|
-
const parsedBody = parsedOutput.body;
|
|
1179
|
-
return throwDefaultError({
|
|
1180
|
-
output,
|
|
1181
|
-
parsedBody,
|
|
1182
|
-
errorCode
|
|
1183
|
-
});
|
|
1184
|
-
}
|
|
1185
|
-
}, "de_CreateChannelCommandError");
|
|
1186
1101
|
var de_CreatePlaybackRestrictionPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1187
1102
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1188
|
-
return
|
|
1103
|
+
return de_CommandError(output, context);
|
|
1189
1104
|
}
|
|
1190
1105
|
const contents = (0, import_smithy_client.map)({
|
|
1191
1106
|
$metadata: deserializeMetadata(output)
|
|
@@ -1197,40 +1112,9 @@ var de_CreatePlaybackRestrictionPolicyCommand = /* @__PURE__ */ __name(async (ou
|
|
|
1197
1112
|
Object.assign(contents, doc);
|
|
1198
1113
|
return contents;
|
|
1199
1114
|
}, "de_CreatePlaybackRestrictionPolicyCommand");
|
|
1200
|
-
var de_CreatePlaybackRestrictionPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1201
|
-
const parsedOutput = {
|
|
1202
|
-
...output,
|
|
1203
|
-
body: await parseErrorBody(output.body, context)
|
|
1204
|
-
};
|
|
1205
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1206
|
-
switch (errorCode) {
|
|
1207
|
-
case "AccessDeniedException":
|
|
1208
|
-
case "com.amazonaws.ivs#AccessDeniedException":
|
|
1209
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1210
|
-
case "PendingVerification":
|
|
1211
|
-
case "com.amazonaws.ivs#PendingVerification":
|
|
1212
|
-
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
1213
|
-
case "ServiceQuotaExceededException":
|
|
1214
|
-
case "com.amazonaws.ivs#ServiceQuotaExceededException":
|
|
1215
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1216
|
-
case "ThrottlingException":
|
|
1217
|
-
case "com.amazonaws.ivs#ThrottlingException":
|
|
1218
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1219
|
-
case "ValidationException":
|
|
1220
|
-
case "com.amazonaws.ivs#ValidationException":
|
|
1221
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1222
|
-
default:
|
|
1223
|
-
const parsedBody = parsedOutput.body;
|
|
1224
|
-
return throwDefaultError({
|
|
1225
|
-
output,
|
|
1226
|
-
parsedBody,
|
|
1227
|
-
errorCode
|
|
1228
|
-
});
|
|
1229
|
-
}
|
|
1230
|
-
}, "de_CreatePlaybackRestrictionPolicyCommandError");
|
|
1231
1115
|
var de_CreateRecordingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1232
1116
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1233
|
-
return
|
|
1117
|
+
return de_CommandError(output, context);
|
|
1234
1118
|
}
|
|
1235
1119
|
const contents = (0, import_smithy_client.map)({
|
|
1236
1120
|
$metadata: deserializeMetadata(output)
|
|
@@ -1242,43 +1126,9 @@ var de_CreateRecordingConfigurationCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1242
1126
|
Object.assign(contents, doc);
|
|
1243
1127
|
return contents;
|
|
1244
1128
|
}, "de_CreateRecordingConfigurationCommand");
|
|
1245
|
-
var de_CreateRecordingConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1246
|
-
const parsedOutput = {
|
|
1247
|
-
...output,
|
|
1248
|
-
body: await parseErrorBody(output.body, context)
|
|
1249
|
-
};
|
|
1250
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1251
|
-
switch (errorCode) {
|
|
1252
|
-
case "AccessDeniedException":
|
|
1253
|
-
case "com.amazonaws.ivs#AccessDeniedException":
|
|
1254
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1255
|
-
case "ConflictException":
|
|
1256
|
-
case "com.amazonaws.ivs#ConflictException":
|
|
1257
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1258
|
-
case "InternalServerException":
|
|
1259
|
-
case "com.amazonaws.ivs#InternalServerException":
|
|
1260
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1261
|
-
case "PendingVerification":
|
|
1262
|
-
case "com.amazonaws.ivs#PendingVerification":
|
|
1263
|
-
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
1264
|
-
case "ServiceQuotaExceededException":
|
|
1265
|
-
case "com.amazonaws.ivs#ServiceQuotaExceededException":
|
|
1266
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1267
|
-
case "ValidationException":
|
|
1268
|
-
case "com.amazonaws.ivs#ValidationException":
|
|
1269
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1270
|
-
default:
|
|
1271
|
-
const parsedBody = parsedOutput.body;
|
|
1272
|
-
return throwDefaultError({
|
|
1273
|
-
output,
|
|
1274
|
-
parsedBody,
|
|
1275
|
-
errorCode
|
|
1276
|
-
});
|
|
1277
|
-
}
|
|
1278
|
-
}, "de_CreateRecordingConfigurationCommandError");
|
|
1279
1129
|
var de_CreateStreamKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1280
1130
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1281
|
-
return
|
|
1131
|
+
return de_CommandError(output, context);
|
|
1282
1132
|
}
|
|
1283
1133
|
const contents = (0, import_smithy_client.map)({
|
|
1284
1134
|
$metadata: deserializeMetadata(output)
|
|
@@ -1290,40 +1140,9 @@ var de_CreateStreamKeyCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1290
1140
|
Object.assign(contents, doc);
|
|
1291
1141
|
return contents;
|
|
1292
1142
|
}, "de_CreateStreamKeyCommand");
|
|
1293
|
-
var de_CreateStreamKeyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1294
|
-
const parsedOutput = {
|
|
1295
|
-
...output,
|
|
1296
|
-
body: await parseErrorBody(output.body, context)
|
|
1297
|
-
};
|
|
1298
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1299
|
-
switch (errorCode) {
|
|
1300
|
-
case "AccessDeniedException":
|
|
1301
|
-
case "com.amazonaws.ivs#AccessDeniedException":
|
|
1302
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1303
|
-
case "PendingVerification":
|
|
1304
|
-
case "com.amazonaws.ivs#PendingVerification":
|
|
1305
|
-
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
1306
|
-
case "ResourceNotFoundException":
|
|
1307
|
-
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
1308
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1309
|
-
case "ServiceQuotaExceededException":
|
|
1310
|
-
case "com.amazonaws.ivs#ServiceQuotaExceededException":
|
|
1311
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1312
|
-
case "ValidationException":
|
|
1313
|
-
case "com.amazonaws.ivs#ValidationException":
|
|
1314
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1315
|
-
default:
|
|
1316
|
-
const parsedBody = parsedOutput.body;
|
|
1317
|
-
return throwDefaultError({
|
|
1318
|
-
output,
|
|
1319
|
-
parsedBody,
|
|
1320
|
-
errorCode
|
|
1321
|
-
});
|
|
1322
|
-
}
|
|
1323
|
-
}, "de_CreateStreamKeyCommandError");
|
|
1324
1143
|
var de_DeleteChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1325
1144
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1326
|
-
return
|
|
1145
|
+
return de_CommandError(output, context);
|
|
1327
1146
|
}
|
|
1328
1147
|
const contents = (0, import_smithy_client.map)({
|
|
1329
1148
|
$metadata: deserializeMetadata(output)
|
|
@@ -1331,40 +1150,9 @@ var de_DeleteChannelCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1331
1150
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1332
1151
|
return contents;
|
|
1333
1152
|
}, "de_DeleteChannelCommand");
|
|
1334
|
-
var de_DeleteChannelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1335
|
-
const parsedOutput = {
|
|
1336
|
-
...output,
|
|
1337
|
-
body: await parseErrorBody(output.body, context)
|
|
1338
|
-
};
|
|
1339
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1340
|
-
switch (errorCode) {
|
|
1341
|
-
case "AccessDeniedException":
|
|
1342
|
-
case "com.amazonaws.ivs#AccessDeniedException":
|
|
1343
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1344
|
-
case "ConflictException":
|
|
1345
|
-
case "com.amazonaws.ivs#ConflictException":
|
|
1346
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1347
|
-
case "PendingVerification":
|
|
1348
|
-
case "com.amazonaws.ivs#PendingVerification":
|
|
1349
|
-
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
1350
|
-
case "ResourceNotFoundException":
|
|
1351
|
-
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
1352
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1353
|
-
case "ValidationException":
|
|
1354
|
-
case "com.amazonaws.ivs#ValidationException":
|
|
1355
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1356
|
-
default:
|
|
1357
|
-
const parsedBody = parsedOutput.body;
|
|
1358
|
-
return throwDefaultError({
|
|
1359
|
-
output,
|
|
1360
|
-
parsedBody,
|
|
1361
|
-
errorCode
|
|
1362
|
-
});
|
|
1363
|
-
}
|
|
1364
|
-
}, "de_DeleteChannelCommandError");
|
|
1365
1153
|
var de_DeletePlaybackKeyPairCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1366
1154
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1367
|
-
return
|
|
1155
|
+
return de_CommandError(output, context);
|
|
1368
1156
|
}
|
|
1369
1157
|
const contents = (0, import_smithy_client.map)({
|
|
1370
1158
|
$metadata: deserializeMetadata(output)
|
|
@@ -1372,37 +1160,9 @@ var de_DeletePlaybackKeyPairCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1372
1160
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1373
1161
|
return contents;
|
|
1374
1162
|
}, "de_DeletePlaybackKeyPairCommand");
|
|
1375
|
-
var de_DeletePlaybackKeyPairCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1376
|
-
const parsedOutput = {
|
|
1377
|
-
...output,
|
|
1378
|
-
body: await parseErrorBody(output.body, context)
|
|
1379
|
-
};
|
|
1380
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1381
|
-
switch (errorCode) {
|
|
1382
|
-
case "AccessDeniedException":
|
|
1383
|
-
case "com.amazonaws.ivs#AccessDeniedException":
|
|
1384
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1385
|
-
case "PendingVerification":
|
|
1386
|
-
case "com.amazonaws.ivs#PendingVerification":
|
|
1387
|
-
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
1388
|
-
case "ResourceNotFoundException":
|
|
1389
|
-
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
1390
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1391
|
-
case "ValidationException":
|
|
1392
|
-
case "com.amazonaws.ivs#ValidationException":
|
|
1393
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1394
|
-
default:
|
|
1395
|
-
const parsedBody = parsedOutput.body;
|
|
1396
|
-
return throwDefaultError({
|
|
1397
|
-
output,
|
|
1398
|
-
parsedBody,
|
|
1399
|
-
errorCode
|
|
1400
|
-
});
|
|
1401
|
-
}
|
|
1402
|
-
}, "de_DeletePlaybackKeyPairCommandError");
|
|
1403
1163
|
var de_DeletePlaybackRestrictionPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1404
1164
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1405
|
-
return
|
|
1165
|
+
return de_CommandError(output, context);
|
|
1406
1166
|
}
|
|
1407
1167
|
const contents = (0, import_smithy_client.map)({
|
|
1408
1168
|
$metadata: deserializeMetadata(output)
|
|
@@ -1410,40 +1170,9 @@ var de_DeletePlaybackRestrictionPolicyCommand = /* @__PURE__ */ __name(async (ou
|
|
|
1410
1170
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1411
1171
|
return contents;
|
|
1412
1172
|
}, "de_DeletePlaybackRestrictionPolicyCommand");
|
|
1413
|
-
var de_DeletePlaybackRestrictionPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1414
|
-
const parsedOutput = {
|
|
1415
|
-
...output,
|
|
1416
|
-
body: await parseErrorBody(output.body, context)
|
|
1417
|
-
};
|
|
1418
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1419
|
-
switch (errorCode) {
|
|
1420
|
-
case "AccessDeniedException":
|
|
1421
|
-
case "com.amazonaws.ivs#AccessDeniedException":
|
|
1422
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1423
|
-
case "ConflictException":
|
|
1424
|
-
case "com.amazonaws.ivs#ConflictException":
|
|
1425
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1426
|
-
case "PendingVerification":
|
|
1427
|
-
case "com.amazonaws.ivs#PendingVerification":
|
|
1428
|
-
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
1429
|
-
case "ResourceNotFoundException":
|
|
1430
|
-
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
1431
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1432
|
-
case "ValidationException":
|
|
1433
|
-
case "com.amazonaws.ivs#ValidationException":
|
|
1434
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1435
|
-
default:
|
|
1436
|
-
const parsedBody = parsedOutput.body;
|
|
1437
|
-
return throwDefaultError({
|
|
1438
|
-
output,
|
|
1439
|
-
parsedBody,
|
|
1440
|
-
errorCode
|
|
1441
|
-
});
|
|
1442
|
-
}
|
|
1443
|
-
}, "de_DeletePlaybackRestrictionPolicyCommandError");
|
|
1444
1173
|
var de_DeleteRecordingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1445
1174
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1446
|
-
return
|
|
1175
|
+
return de_CommandError(output, context);
|
|
1447
1176
|
}
|
|
1448
1177
|
const contents = (0, import_smithy_client.map)({
|
|
1449
1178
|
$metadata: deserializeMetadata(output)
|
|
@@ -1451,40 +1180,9 @@ var de_DeleteRecordingConfigurationCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1451
1180
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1452
1181
|
return contents;
|
|
1453
1182
|
}, "de_DeleteRecordingConfigurationCommand");
|
|
1454
|
-
var de_DeleteRecordingConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1455
|
-
const parsedOutput = {
|
|
1456
|
-
...output,
|
|
1457
|
-
body: await parseErrorBody(output.body, context)
|
|
1458
|
-
};
|
|
1459
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1460
|
-
switch (errorCode) {
|
|
1461
|
-
case "AccessDeniedException":
|
|
1462
|
-
case "com.amazonaws.ivs#AccessDeniedException":
|
|
1463
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1464
|
-
case "ConflictException":
|
|
1465
|
-
case "com.amazonaws.ivs#ConflictException":
|
|
1466
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1467
|
-
case "InternalServerException":
|
|
1468
|
-
case "com.amazonaws.ivs#InternalServerException":
|
|
1469
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1470
|
-
case "ResourceNotFoundException":
|
|
1471
|
-
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
1472
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1473
|
-
case "ValidationException":
|
|
1474
|
-
case "com.amazonaws.ivs#ValidationException":
|
|
1475
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1476
|
-
default:
|
|
1477
|
-
const parsedBody = parsedOutput.body;
|
|
1478
|
-
return throwDefaultError({
|
|
1479
|
-
output,
|
|
1480
|
-
parsedBody,
|
|
1481
|
-
errorCode
|
|
1482
|
-
});
|
|
1483
|
-
}
|
|
1484
|
-
}, "de_DeleteRecordingConfigurationCommandError");
|
|
1485
1183
|
var de_DeleteStreamKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1486
1184
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1487
|
-
return
|
|
1185
|
+
return de_CommandError(output, context);
|
|
1488
1186
|
}
|
|
1489
1187
|
const contents = (0, import_smithy_client.map)({
|
|
1490
1188
|
$metadata: deserializeMetadata(output)
|
|
@@ -1492,37 +1190,9 @@ var de_DeleteStreamKeyCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1492
1190
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1493
1191
|
return contents;
|
|
1494
1192
|
}, "de_DeleteStreamKeyCommand");
|
|
1495
|
-
var de_DeleteStreamKeyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1496
|
-
const parsedOutput = {
|
|
1497
|
-
...output,
|
|
1498
|
-
body: await parseErrorBody(output.body, context)
|
|
1499
|
-
};
|
|
1500
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1501
|
-
switch (errorCode) {
|
|
1502
|
-
case "AccessDeniedException":
|
|
1503
|
-
case "com.amazonaws.ivs#AccessDeniedException":
|
|
1504
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1505
|
-
case "PendingVerification":
|
|
1506
|
-
case "com.amazonaws.ivs#PendingVerification":
|
|
1507
|
-
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
1508
|
-
case "ResourceNotFoundException":
|
|
1509
|
-
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
1510
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1511
|
-
case "ValidationException":
|
|
1512
|
-
case "com.amazonaws.ivs#ValidationException":
|
|
1513
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1514
|
-
default:
|
|
1515
|
-
const parsedBody = parsedOutput.body;
|
|
1516
|
-
return throwDefaultError({
|
|
1517
|
-
output,
|
|
1518
|
-
parsedBody,
|
|
1519
|
-
errorCode
|
|
1520
|
-
});
|
|
1521
|
-
}
|
|
1522
|
-
}, "de_DeleteStreamKeyCommandError");
|
|
1523
1193
|
var de_GetChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1524
1194
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1525
|
-
return
|
|
1195
|
+
return de_CommandError(output, context);
|
|
1526
1196
|
}
|
|
1527
1197
|
const contents = (0, import_smithy_client.map)({
|
|
1528
1198
|
$metadata: deserializeMetadata(output)
|
|
@@ -1534,34 +1204,9 @@ var de_GetChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1534
1204
|
Object.assign(contents, doc);
|
|
1535
1205
|
return contents;
|
|
1536
1206
|
}, "de_GetChannelCommand");
|
|
1537
|
-
var de_GetChannelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1538
|
-
const parsedOutput = {
|
|
1539
|
-
...output,
|
|
1540
|
-
body: await parseErrorBody(output.body, context)
|
|
1541
|
-
};
|
|
1542
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1543
|
-
switch (errorCode) {
|
|
1544
|
-
case "AccessDeniedException":
|
|
1545
|
-
case "com.amazonaws.ivs#AccessDeniedException":
|
|
1546
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1547
|
-
case "ResourceNotFoundException":
|
|
1548
|
-
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
1549
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1550
|
-
case "ValidationException":
|
|
1551
|
-
case "com.amazonaws.ivs#ValidationException":
|
|
1552
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1553
|
-
default:
|
|
1554
|
-
const parsedBody = parsedOutput.body;
|
|
1555
|
-
return throwDefaultError({
|
|
1556
|
-
output,
|
|
1557
|
-
parsedBody,
|
|
1558
|
-
errorCode
|
|
1559
|
-
});
|
|
1560
|
-
}
|
|
1561
|
-
}, "de_GetChannelCommandError");
|
|
1562
1207
|
var de_GetPlaybackKeyPairCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1563
1208
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1564
|
-
return
|
|
1209
|
+
return de_CommandError(output, context);
|
|
1565
1210
|
}
|
|
1566
1211
|
const contents = (0, import_smithy_client.map)({
|
|
1567
1212
|
$metadata: deserializeMetadata(output)
|
|
@@ -1573,34 +1218,9 @@ var de_GetPlaybackKeyPairCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1573
1218
|
Object.assign(contents, doc);
|
|
1574
1219
|
return contents;
|
|
1575
1220
|
}, "de_GetPlaybackKeyPairCommand");
|
|
1576
|
-
var de_GetPlaybackKeyPairCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1577
|
-
const parsedOutput = {
|
|
1578
|
-
...output,
|
|
1579
|
-
body: await parseErrorBody(output.body, context)
|
|
1580
|
-
};
|
|
1581
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1582
|
-
switch (errorCode) {
|
|
1583
|
-
case "AccessDeniedException":
|
|
1584
|
-
case "com.amazonaws.ivs#AccessDeniedException":
|
|
1585
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1586
|
-
case "ResourceNotFoundException":
|
|
1587
|
-
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
1588
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1589
|
-
case "ValidationException":
|
|
1590
|
-
case "com.amazonaws.ivs#ValidationException":
|
|
1591
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1592
|
-
default:
|
|
1593
|
-
const parsedBody = parsedOutput.body;
|
|
1594
|
-
return throwDefaultError({
|
|
1595
|
-
output,
|
|
1596
|
-
parsedBody,
|
|
1597
|
-
errorCode
|
|
1598
|
-
});
|
|
1599
|
-
}
|
|
1600
|
-
}, "de_GetPlaybackKeyPairCommandError");
|
|
1601
1221
|
var de_GetPlaybackRestrictionPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1602
1222
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1603
|
-
return
|
|
1223
|
+
return de_CommandError(output, context);
|
|
1604
1224
|
}
|
|
1605
1225
|
const contents = (0, import_smithy_client.map)({
|
|
1606
1226
|
$metadata: deserializeMetadata(output)
|
|
@@ -1612,37 +1232,9 @@ var de_GetPlaybackRestrictionPolicyCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1612
1232
|
Object.assign(contents, doc);
|
|
1613
1233
|
return contents;
|
|
1614
1234
|
}, "de_GetPlaybackRestrictionPolicyCommand");
|
|
1615
|
-
var de_GetPlaybackRestrictionPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1616
|
-
const parsedOutput = {
|
|
1617
|
-
...output,
|
|
1618
|
-
body: await parseErrorBody(output.body, context)
|
|
1619
|
-
};
|
|
1620
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1621
|
-
switch (errorCode) {
|
|
1622
|
-
case "AccessDeniedException":
|
|
1623
|
-
case "com.amazonaws.ivs#AccessDeniedException":
|
|
1624
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1625
|
-
case "PendingVerification":
|
|
1626
|
-
case "com.amazonaws.ivs#PendingVerification":
|
|
1627
|
-
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
1628
|
-
case "ResourceNotFoundException":
|
|
1629
|
-
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
1630
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1631
|
-
case "ValidationException":
|
|
1632
|
-
case "com.amazonaws.ivs#ValidationException":
|
|
1633
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1634
|
-
default:
|
|
1635
|
-
const parsedBody = parsedOutput.body;
|
|
1636
|
-
return throwDefaultError({
|
|
1637
|
-
output,
|
|
1638
|
-
parsedBody,
|
|
1639
|
-
errorCode
|
|
1640
|
-
});
|
|
1641
|
-
}
|
|
1642
|
-
}, "de_GetPlaybackRestrictionPolicyCommandError");
|
|
1643
1235
|
var de_GetRecordingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1644
1236
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1645
|
-
return
|
|
1237
|
+
return de_CommandError(output, context);
|
|
1646
1238
|
}
|
|
1647
1239
|
const contents = (0, import_smithy_client.map)({
|
|
1648
1240
|
$metadata: deserializeMetadata(output)
|
|
@@ -1654,37 +1246,9 @@ var de_GetRecordingConfigurationCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1654
1246
|
Object.assign(contents, doc);
|
|
1655
1247
|
return contents;
|
|
1656
1248
|
}, "de_GetRecordingConfigurationCommand");
|
|
1657
|
-
var de_GetRecordingConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1658
|
-
const parsedOutput = {
|
|
1659
|
-
...output,
|
|
1660
|
-
body: await parseErrorBody(output.body, context)
|
|
1661
|
-
};
|
|
1662
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1663
|
-
switch (errorCode) {
|
|
1664
|
-
case "AccessDeniedException":
|
|
1665
|
-
case "com.amazonaws.ivs#AccessDeniedException":
|
|
1666
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1667
|
-
case "InternalServerException":
|
|
1668
|
-
case "com.amazonaws.ivs#InternalServerException":
|
|
1669
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1670
|
-
case "ResourceNotFoundException":
|
|
1671
|
-
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
1672
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1673
|
-
case "ValidationException":
|
|
1674
|
-
case "com.amazonaws.ivs#ValidationException":
|
|
1675
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1676
|
-
default:
|
|
1677
|
-
const parsedBody = parsedOutput.body;
|
|
1678
|
-
return throwDefaultError({
|
|
1679
|
-
output,
|
|
1680
|
-
parsedBody,
|
|
1681
|
-
errorCode
|
|
1682
|
-
});
|
|
1683
|
-
}
|
|
1684
|
-
}, "de_GetRecordingConfigurationCommandError");
|
|
1685
1249
|
var de_GetStreamCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1686
1250
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1687
|
-
return
|
|
1251
|
+
return de_CommandError(output, context);
|
|
1688
1252
|
}
|
|
1689
1253
|
const contents = (0, import_smithy_client.map)({
|
|
1690
1254
|
$metadata: deserializeMetadata(output)
|
|
@@ -1696,37 +1260,9 @@ var de_GetStreamCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1696
1260
|
Object.assign(contents, doc);
|
|
1697
1261
|
return contents;
|
|
1698
1262
|
}, "de_GetStreamCommand");
|
|
1699
|
-
var de_GetStreamCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1700
|
-
const parsedOutput = {
|
|
1701
|
-
...output,
|
|
1702
|
-
body: await parseErrorBody(output.body, context)
|
|
1703
|
-
};
|
|
1704
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1705
|
-
switch (errorCode) {
|
|
1706
|
-
case "AccessDeniedException":
|
|
1707
|
-
case "com.amazonaws.ivs#AccessDeniedException":
|
|
1708
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1709
|
-
case "ChannelNotBroadcasting":
|
|
1710
|
-
case "com.amazonaws.ivs#ChannelNotBroadcasting":
|
|
1711
|
-
throw await de_ChannelNotBroadcastingRes(parsedOutput, context);
|
|
1712
|
-
case "ResourceNotFoundException":
|
|
1713
|
-
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
1714
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1715
|
-
case "ValidationException":
|
|
1716
|
-
case "com.amazonaws.ivs#ValidationException":
|
|
1717
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1718
|
-
default:
|
|
1719
|
-
const parsedBody = parsedOutput.body;
|
|
1720
|
-
return throwDefaultError({
|
|
1721
|
-
output,
|
|
1722
|
-
parsedBody,
|
|
1723
|
-
errorCode
|
|
1724
|
-
});
|
|
1725
|
-
}
|
|
1726
|
-
}, "de_GetStreamCommandError");
|
|
1727
1263
|
var de_GetStreamKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1728
1264
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1729
|
-
return
|
|
1265
|
+
return de_CommandError(output, context);
|
|
1730
1266
|
}
|
|
1731
1267
|
const contents = (0, import_smithy_client.map)({
|
|
1732
1268
|
$metadata: deserializeMetadata(output)
|
|
@@ -1738,34 +1274,9 @@ var de_GetStreamKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1738
1274
|
Object.assign(contents, doc);
|
|
1739
1275
|
return contents;
|
|
1740
1276
|
}, "de_GetStreamKeyCommand");
|
|
1741
|
-
var de_GetStreamKeyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1742
|
-
const parsedOutput = {
|
|
1743
|
-
...output,
|
|
1744
|
-
body: await parseErrorBody(output.body, context)
|
|
1745
|
-
};
|
|
1746
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1747
|
-
switch (errorCode) {
|
|
1748
|
-
case "AccessDeniedException":
|
|
1749
|
-
case "com.amazonaws.ivs#AccessDeniedException":
|
|
1750
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1751
|
-
case "ResourceNotFoundException":
|
|
1752
|
-
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
1753
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1754
|
-
case "ValidationException":
|
|
1755
|
-
case "com.amazonaws.ivs#ValidationException":
|
|
1756
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1757
|
-
default:
|
|
1758
|
-
const parsedBody = parsedOutput.body;
|
|
1759
|
-
return throwDefaultError({
|
|
1760
|
-
output,
|
|
1761
|
-
parsedBody,
|
|
1762
|
-
errorCode
|
|
1763
|
-
});
|
|
1764
|
-
}
|
|
1765
|
-
}, "de_GetStreamKeyCommandError");
|
|
1766
1277
|
var de_GetStreamSessionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1767
1278
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1768
|
-
return
|
|
1279
|
+
return de_CommandError(output, context);
|
|
1769
1280
|
}
|
|
1770
1281
|
const contents = (0, import_smithy_client.map)({
|
|
1771
1282
|
$metadata: deserializeMetadata(output)
|
|
@@ -1777,34 +1288,9 @@ var de_GetStreamSessionCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1777
1288
|
Object.assign(contents, doc);
|
|
1778
1289
|
return contents;
|
|
1779
1290
|
}, "de_GetStreamSessionCommand");
|
|
1780
|
-
var de_GetStreamSessionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1781
|
-
const parsedOutput = {
|
|
1782
|
-
...output,
|
|
1783
|
-
body: await parseErrorBody(output.body, context)
|
|
1784
|
-
};
|
|
1785
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1786
|
-
switch (errorCode) {
|
|
1787
|
-
case "AccessDeniedException":
|
|
1788
|
-
case "com.amazonaws.ivs#AccessDeniedException":
|
|
1789
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1790
|
-
case "ResourceNotFoundException":
|
|
1791
|
-
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
1792
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1793
|
-
case "ValidationException":
|
|
1794
|
-
case "com.amazonaws.ivs#ValidationException":
|
|
1795
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1796
|
-
default:
|
|
1797
|
-
const parsedBody = parsedOutput.body;
|
|
1798
|
-
return throwDefaultError({
|
|
1799
|
-
output,
|
|
1800
|
-
parsedBody,
|
|
1801
|
-
errorCode
|
|
1802
|
-
});
|
|
1803
|
-
}
|
|
1804
|
-
}, "de_GetStreamSessionCommandError");
|
|
1805
1291
|
var de_ImportPlaybackKeyPairCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1806
1292
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1807
|
-
return
|
|
1293
|
+
return de_CommandError(output, context);
|
|
1808
1294
|
}
|
|
1809
1295
|
const contents = (0, import_smithy_client.map)({
|
|
1810
1296
|
$metadata: deserializeMetadata(output)
|
|
@@ -1816,40 +1302,9 @@ var de_ImportPlaybackKeyPairCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1816
1302
|
Object.assign(contents, doc);
|
|
1817
1303
|
return contents;
|
|
1818
1304
|
}, "de_ImportPlaybackKeyPairCommand");
|
|
1819
|
-
var de_ImportPlaybackKeyPairCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1820
|
-
const parsedOutput = {
|
|
1821
|
-
...output,
|
|
1822
|
-
body: await parseErrorBody(output.body, context)
|
|
1823
|
-
};
|
|
1824
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1825
|
-
switch (errorCode) {
|
|
1826
|
-
case "AccessDeniedException":
|
|
1827
|
-
case "com.amazonaws.ivs#AccessDeniedException":
|
|
1828
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1829
|
-
case "ConflictException":
|
|
1830
|
-
case "com.amazonaws.ivs#ConflictException":
|
|
1831
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1832
|
-
case "PendingVerification":
|
|
1833
|
-
case "com.amazonaws.ivs#PendingVerification":
|
|
1834
|
-
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
1835
|
-
case "ServiceQuotaExceededException":
|
|
1836
|
-
case "com.amazonaws.ivs#ServiceQuotaExceededException":
|
|
1837
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1838
|
-
case "ValidationException":
|
|
1839
|
-
case "com.amazonaws.ivs#ValidationException":
|
|
1840
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1841
|
-
default:
|
|
1842
|
-
const parsedBody = parsedOutput.body;
|
|
1843
|
-
return throwDefaultError({
|
|
1844
|
-
output,
|
|
1845
|
-
parsedBody,
|
|
1846
|
-
errorCode
|
|
1847
|
-
});
|
|
1848
|
-
}
|
|
1849
|
-
}, "de_ImportPlaybackKeyPairCommandError");
|
|
1850
1305
|
var de_ListChannelsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1851
1306
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1852
|
-
return
|
|
1307
|
+
return de_CommandError(output, context);
|
|
1853
1308
|
}
|
|
1854
1309
|
const contents = (0, import_smithy_client.map)({
|
|
1855
1310
|
$metadata: deserializeMetadata(output)
|
|
@@ -1862,34 +1317,9 @@ var de_ListChannelsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1862
1317
|
Object.assign(contents, doc);
|
|
1863
1318
|
return contents;
|
|
1864
1319
|
}, "de_ListChannelsCommand");
|
|
1865
|
-
var de_ListChannelsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1866
|
-
const parsedOutput = {
|
|
1867
|
-
...output,
|
|
1868
|
-
body: await parseErrorBody(output.body, context)
|
|
1869
|
-
};
|
|
1870
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1871
|
-
switch (errorCode) {
|
|
1872
|
-
case "AccessDeniedException":
|
|
1873
|
-
case "com.amazonaws.ivs#AccessDeniedException":
|
|
1874
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1875
|
-
case "ConflictException":
|
|
1876
|
-
case "com.amazonaws.ivs#ConflictException":
|
|
1877
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1878
|
-
case "ValidationException":
|
|
1879
|
-
case "com.amazonaws.ivs#ValidationException":
|
|
1880
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1881
|
-
default:
|
|
1882
|
-
const parsedBody = parsedOutput.body;
|
|
1883
|
-
return throwDefaultError({
|
|
1884
|
-
output,
|
|
1885
|
-
parsedBody,
|
|
1886
|
-
errorCode
|
|
1887
|
-
});
|
|
1888
|
-
}
|
|
1889
|
-
}, "de_ListChannelsCommandError");
|
|
1890
1320
|
var de_ListPlaybackKeyPairsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1891
1321
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1892
|
-
return
|
|
1322
|
+
return de_CommandError(output, context);
|
|
1893
1323
|
}
|
|
1894
1324
|
const contents = (0, import_smithy_client.map)({
|
|
1895
1325
|
$metadata: deserializeMetadata(output)
|
|
@@ -1902,31 +1332,9 @@ var de_ListPlaybackKeyPairsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1902
1332
|
Object.assign(contents, doc);
|
|
1903
1333
|
return contents;
|
|
1904
1334
|
}, "de_ListPlaybackKeyPairsCommand");
|
|
1905
|
-
var de_ListPlaybackKeyPairsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1906
|
-
const parsedOutput = {
|
|
1907
|
-
...output,
|
|
1908
|
-
body: await parseErrorBody(output.body, context)
|
|
1909
|
-
};
|
|
1910
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1911
|
-
switch (errorCode) {
|
|
1912
|
-
case "AccessDeniedException":
|
|
1913
|
-
case "com.amazonaws.ivs#AccessDeniedException":
|
|
1914
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1915
|
-
case "ValidationException":
|
|
1916
|
-
case "com.amazonaws.ivs#ValidationException":
|
|
1917
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1918
|
-
default:
|
|
1919
|
-
const parsedBody = parsedOutput.body;
|
|
1920
|
-
return throwDefaultError({
|
|
1921
|
-
output,
|
|
1922
|
-
parsedBody,
|
|
1923
|
-
errorCode
|
|
1924
|
-
});
|
|
1925
|
-
}
|
|
1926
|
-
}, "de_ListPlaybackKeyPairsCommandError");
|
|
1927
1335
|
var de_ListPlaybackRestrictionPoliciesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1928
1336
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1929
|
-
return
|
|
1337
|
+
return de_CommandError(output, context);
|
|
1930
1338
|
}
|
|
1931
1339
|
const contents = (0, import_smithy_client.map)({
|
|
1932
1340
|
$metadata: deserializeMetadata(output)
|
|
@@ -1939,37 +1347,9 @@ var de_ListPlaybackRestrictionPoliciesCommand = /* @__PURE__ */ __name(async (ou
|
|
|
1939
1347
|
Object.assign(contents, doc);
|
|
1940
1348
|
return contents;
|
|
1941
1349
|
}, "de_ListPlaybackRestrictionPoliciesCommand");
|
|
1942
|
-
var de_ListPlaybackRestrictionPoliciesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1943
|
-
const parsedOutput = {
|
|
1944
|
-
...output,
|
|
1945
|
-
body: await parseErrorBody(output.body, context)
|
|
1946
|
-
};
|
|
1947
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1948
|
-
switch (errorCode) {
|
|
1949
|
-
case "AccessDeniedException":
|
|
1950
|
-
case "com.amazonaws.ivs#AccessDeniedException":
|
|
1951
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1952
|
-
case "ConflictException":
|
|
1953
|
-
case "com.amazonaws.ivs#ConflictException":
|
|
1954
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1955
|
-
case "PendingVerification":
|
|
1956
|
-
case "com.amazonaws.ivs#PendingVerification":
|
|
1957
|
-
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
1958
|
-
case "ValidationException":
|
|
1959
|
-
case "com.amazonaws.ivs#ValidationException":
|
|
1960
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1961
|
-
default:
|
|
1962
|
-
const parsedBody = parsedOutput.body;
|
|
1963
|
-
return throwDefaultError({
|
|
1964
|
-
output,
|
|
1965
|
-
parsedBody,
|
|
1966
|
-
errorCode
|
|
1967
|
-
});
|
|
1968
|
-
}
|
|
1969
|
-
}, "de_ListPlaybackRestrictionPoliciesCommandError");
|
|
1970
1350
|
var de_ListRecordingConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1971
1351
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1972
|
-
return
|
|
1352
|
+
return de_CommandError(output, context);
|
|
1973
1353
|
}
|
|
1974
1354
|
const contents = (0, import_smithy_client.map)({
|
|
1975
1355
|
$metadata: deserializeMetadata(output)
|
|
@@ -1982,34 +1362,9 @@ var de_ListRecordingConfigurationsCommand = /* @__PURE__ */ __name(async (output
|
|
|
1982
1362
|
Object.assign(contents, doc);
|
|
1983
1363
|
return contents;
|
|
1984
1364
|
}, "de_ListRecordingConfigurationsCommand");
|
|
1985
|
-
var de_ListRecordingConfigurationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1986
|
-
const parsedOutput = {
|
|
1987
|
-
...output,
|
|
1988
|
-
body: await parseErrorBody(output.body, context)
|
|
1989
|
-
};
|
|
1990
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1991
|
-
switch (errorCode) {
|
|
1992
|
-
case "AccessDeniedException":
|
|
1993
|
-
case "com.amazonaws.ivs#AccessDeniedException":
|
|
1994
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1995
|
-
case "InternalServerException":
|
|
1996
|
-
case "com.amazonaws.ivs#InternalServerException":
|
|
1997
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1998
|
-
case "ValidationException":
|
|
1999
|
-
case "com.amazonaws.ivs#ValidationException":
|
|
2000
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2001
|
-
default:
|
|
2002
|
-
const parsedBody = parsedOutput.body;
|
|
2003
|
-
return throwDefaultError({
|
|
2004
|
-
output,
|
|
2005
|
-
parsedBody,
|
|
2006
|
-
errorCode
|
|
2007
|
-
});
|
|
2008
|
-
}
|
|
2009
|
-
}, "de_ListRecordingConfigurationsCommandError");
|
|
2010
1365
|
var de_ListStreamKeysCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2011
1366
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2012
|
-
return
|
|
1367
|
+
return de_CommandError(output, context);
|
|
2013
1368
|
}
|
|
2014
1369
|
const contents = (0, import_smithy_client.map)({
|
|
2015
1370
|
$metadata: deserializeMetadata(output)
|
|
@@ -2022,34 +1377,9 @@ var de_ListStreamKeysCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2022
1377
|
Object.assign(contents, doc);
|
|
2023
1378
|
return contents;
|
|
2024
1379
|
}, "de_ListStreamKeysCommand");
|
|
2025
|
-
var de_ListStreamKeysCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2026
|
-
const parsedOutput = {
|
|
2027
|
-
...output,
|
|
2028
|
-
body: await parseErrorBody(output.body, context)
|
|
2029
|
-
};
|
|
2030
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2031
|
-
switch (errorCode) {
|
|
2032
|
-
case "AccessDeniedException":
|
|
2033
|
-
case "com.amazonaws.ivs#AccessDeniedException":
|
|
2034
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2035
|
-
case "ResourceNotFoundException":
|
|
2036
|
-
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
2037
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2038
|
-
case "ValidationException":
|
|
2039
|
-
case "com.amazonaws.ivs#ValidationException":
|
|
2040
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2041
|
-
default:
|
|
2042
|
-
const parsedBody = parsedOutput.body;
|
|
2043
|
-
return throwDefaultError({
|
|
2044
|
-
output,
|
|
2045
|
-
parsedBody,
|
|
2046
|
-
errorCode
|
|
2047
|
-
});
|
|
2048
|
-
}
|
|
2049
|
-
}, "de_ListStreamKeysCommandError");
|
|
2050
1380
|
var de_ListStreamsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2051
1381
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2052
|
-
return
|
|
1382
|
+
return de_CommandError(output, context);
|
|
2053
1383
|
}
|
|
2054
1384
|
const contents = (0, import_smithy_client.map)({
|
|
2055
1385
|
$metadata: deserializeMetadata(output)
|
|
@@ -2062,31 +1392,9 @@ var de_ListStreamsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2062
1392
|
Object.assign(contents, doc);
|
|
2063
1393
|
return contents;
|
|
2064
1394
|
}, "de_ListStreamsCommand");
|
|
2065
|
-
var de_ListStreamsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2066
|
-
const parsedOutput = {
|
|
2067
|
-
...output,
|
|
2068
|
-
body: await parseErrorBody(output.body, context)
|
|
2069
|
-
};
|
|
2070
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2071
|
-
switch (errorCode) {
|
|
2072
|
-
case "AccessDeniedException":
|
|
2073
|
-
case "com.amazonaws.ivs#AccessDeniedException":
|
|
2074
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2075
|
-
case "ValidationException":
|
|
2076
|
-
case "com.amazonaws.ivs#ValidationException":
|
|
2077
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2078
|
-
default:
|
|
2079
|
-
const parsedBody = parsedOutput.body;
|
|
2080
|
-
return throwDefaultError({
|
|
2081
|
-
output,
|
|
2082
|
-
parsedBody,
|
|
2083
|
-
errorCode
|
|
2084
|
-
});
|
|
2085
|
-
}
|
|
2086
|
-
}, "de_ListStreamsCommandError");
|
|
2087
1395
|
var de_ListStreamSessionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2088
1396
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2089
|
-
return
|
|
1397
|
+
return de_CommandError(output, context);
|
|
2090
1398
|
}
|
|
2091
1399
|
const contents = (0, import_smithy_client.map)({
|
|
2092
1400
|
$metadata: deserializeMetadata(output)
|
|
@@ -2099,34 +1407,9 @@ var de_ListStreamSessionsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2099
1407
|
Object.assign(contents, doc);
|
|
2100
1408
|
return contents;
|
|
2101
1409
|
}, "de_ListStreamSessionsCommand");
|
|
2102
|
-
var de_ListStreamSessionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2103
|
-
const parsedOutput = {
|
|
2104
|
-
...output,
|
|
2105
|
-
body: await parseErrorBody(output.body, context)
|
|
2106
|
-
};
|
|
2107
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2108
|
-
switch (errorCode) {
|
|
2109
|
-
case "AccessDeniedException":
|
|
2110
|
-
case "com.amazonaws.ivs#AccessDeniedException":
|
|
2111
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2112
|
-
case "ResourceNotFoundException":
|
|
2113
|
-
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
2114
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2115
|
-
case "ValidationException":
|
|
2116
|
-
case "com.amazonaws.ivs#ValidationException":
|
|
2117
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2118
|
-
default:
|
|
2119
|
-
const parsedBody = parsedOutput.body;
|
|
2120
|
-
return throwDefaultError({
|
|
2121
|
-
output,
|
|
2122
|
-
parsedBody,
|
|
2123
|
-
errorCode
|
|
2124
|
-
});
|
|
2125
|
-
}
|
|
2126
|
-
}, "de_ListStreamSessionsCommandError");
|
|
2127
1410
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2128
1411
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2129
|
-
return
|
|
1412
|
+
return de_CommandError(output, context);
|
|
2130
1413
|
}
|
|
2131
1414
|
const contents = (0, import_smithy_client.map)({
|
|
2132
1415
|
$metadata: deserializeMetadata(output)
|
|
@@ -2138,34 +1421,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2138
1421
|
Object.assign(contents, doc);
|
|
2139
1422
|
return contents;
|
|
2140
1423
|
}, "de_ListTagsForResourceCommand");
|
|
2141
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2142
|
-
const parsedOutput = {
|
|
2143
|
-
...output,
|
|
2144
|
-
body: await parseErrorBody(output.body, context)
|
|
2145
|
-
};
|
|
2146
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2147
|
-
switch (errorCode) {
|
|
2148
|
-
case "InternalServerException":
|
|
2149
|
-
case "com.amazonaws.ivs#InternalServerException":
|
|
2150
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2151
|
-
case "ResourceNotFoundException":
|
|
2152
|
-
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
2153
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2154
|
-
case "ValidationException":
|
|
2155
|
-
case "com.amazonaws.ivs#ValidationException":
|
|
2156
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2157
|
-
default:
|
|
2158
|
-
const parsedBody = parsedOutput.body;
|
|
2159
|
-
return throwDefaultError({
|
|
2160
|
-
output,
|
|
2161
|
-
parsedBody,
|
|
2162
|
-
errorCode
|
|
2163
|
-
});
|
|
2164
|
-
}
|
|
2165
|
-
}, "de_ListTagsForResourceCommandError");
|
|
2166
1424
|
var de_PutMetadataCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2167
1425
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2168
|
-
return
|
|
1426
|
+
return de_CommandError(output, context);
|
|
2169
1427
|
}
|
|
2170
1428
|
const contents = (0, import_smithy_client.map)({
|
|
2171
1429
|
$metadata: deserializeMetadata(output)
|
|
@@ -2173,40 +1431,9 @@ var de_PutMetadataCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2173
1431
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2174
1432
|
return contents;
|
|
2175
1433
|
}, "de_PutMetadataCommand");
|
|
2176
|
-
var de_PutMetadataCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2177
|
-
const parsedOutput = {
|
|
2178
|
-
...output,
|
|
2179
|
-
body: await parseErrorBody(output.body, context)
|
|
2180
|
-
};
|
|
2181
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2182
|
-
switch (errorCode) {
|
|
2183
|
-
case "AccessDeniedException":
|
|
2184
|
-
case "com.amazonaws.ivs#AccessDeniedException":
|
|
2185
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2186
|
-
case "ChannelNotBroadcasting":
|
|
2187
|
-
case "com.amazonaws.ivs#ChannelNotBroadcasting":
|
|
2188
|
-
throw await de_ChannelNotBroadcastingRes(parsedOutput, context);
|
|
2189
|
-
case "ResourceNotFoundException":
|
|
2190
|
-
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
2191
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2192
|
-
case "ThrottlingException":
|
|
2193
|
-
case "com.amazonaws.ivs#ThrottlingException":
|
|
2194
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2195
|
-
case "ValidationException":
|
|
2196
|
-
case "com.amazonaws.ivs#ValidationException":
|
|
2197
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2198
|
-
default:
|
|
2199
|
-
const parsedBody = parsedOutput.body;
|
|
2200
|
-
return throwDefaultError({
|
|
2201
|
-
output,
|
|
2202
|
-
parsedBody,
|
|
2203
|
-
errorCode
|
|
2204
|
-
});
|
|
2205
|
-
}
|
|
2206
|
-
}, "de_PutMetadataCommandError");
|
|
2207
1434
|
var de_StartViewerSessionRevocationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2208
1435
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2209
|
-
return
|
|
1436
|
+
return de_CommandError(output, context);
|
|
2210
1437
|
}
|
|
2211
1438
|
const contents = (0, import_smithy_client.map)({
|
|
2212
1439
|
$metadata: deserializeMetadata(output)
|
|
@@ -2214,43 +1441,9 @@ var de_StartViewerSessionRevocationCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
2214
1441
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2215
1442
|
return contents;
|
|
2216
1443
|
}, "de_StartViewerSessionRevocationCommand");
|
|
2217
|
-
var de_StartViewerSessionRevocationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2218
|
-
const parsedOutput = {
|
|
2219
|
-
...output,
|
|
2220
|
-
body: await parseErrorBody(output.body, context)
|
|
2221
|
-
};
|
|
2222
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2223
|
-
switch (errorCode) {
|
|
2224
|
-
case "AccessDeniedException":
|
|
2225
|
-
case "com.amazonaws.ivs#AccessDeniedException":
|
|
2226
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2227
|
-
case "InternalServerException":
|
|
2228
|
-
case "com.amazonaws.ivs#InternalServerException":
|
|
2229
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2230
|
-
case "PendingVerification":
|
|
2231
|
-
case "com.amazonaws.ivs#PendingVerification":
|
|
2232
|
-
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
2233
|
-
case "ResourceNotFoundException":
|
|
2234
|
-
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
2235
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2236
|
-
case "ThrottlingException":
|
|
2237
|
-
case "com.amazonaws.ivs#ThrottlingException":
|
|
2238
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2239
|
-
case "ValidationException":
|
|
2240
|
-
case "com.amazonaws.ivs#ValidationException":
|
|
2241
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2242
|
-
default:
|
|
2243
|
-
const parsedBody = parsedOutput.body;
|
|
2244
|
-
return throwDefaultError({
|
|
2245
|
-
output,
|
|
2246
|
-
parsedBody,
|
|
2247
|
-
errorCode
|
|
2248
|
-
});
|
|
2249
|
-
}
|
|
2250
|
-
}, "de_StartViewerSessionRevocationCommandError");
|
|
2251
1444
|
var de_StopStreamCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2252
1445
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2253
|
-
return
|
|
1446
|
+
return de_CommandError(output, context);
|
|
2254
1447
|
}
|
|
2255
1448
|
const contents = (0, import_smithy_client.map)({
|
|
2256
1449
|
$metadata: deserializeMetadata(output)
|
|
@@ -2258,40 +1451,9 @@ var de_StopStreamCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2258
1451
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2259
1452
|
return contents;
|
|
2260
1453
|
}, "de_StopStreamCommand");
|
|
2261
|
-
var de_StopStreamCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2262
|
-
const parsedOutput = {
|
|
2263
|
-
...output,
|
|
2264
|
-
body: await parseErrorBody(output.body, context)
|
|
2265
|
-
};
|
|
2266
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2267
|
-
switch (errorCode) {
|
|
2268
|
-
case "AccessDeniedException":
|
|
2269
|
-
case "com.amazonaws.ivs#AccessDeniedException":
|
|
2270
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2271
|
-
case "ChannelNotBroadcasting":
|
|
2272
|
-
case "com.amazonaws.ivs#ChannelNotBroadcasting":
|
|
2273
|
-
throw await de_ChannelNotBroadcastingRes(parsedOutput, context);
|
|
2274
|
-
case "ResourceNotFoundException":
|
|
2275
|
-
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
2276
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2277
|
-
case "StreamUnavailable":
|
|
2278
|
-
case "com.amazonaws.ivs#StreamUnavailable":
|
|
2279
|
-
throw await de_StreamUnavailableRes(parsedOutput, context);
|
|
2280
|
-
case "ValidationException":
|
|
2281
|
-
case "com.amazonaws.ivs#ValidationException":
|
|
2282
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2283
|
-
default:
|
|
2284
|
-
const parsedBody = parsedOutput.body;
|
|
2285
|
-
return throwDefaultError({
|
|
2286
|
-
output,
|
|
2287
|
-
parsedBody,
|
|
2288
|
-
errorCode
|
|
2289
|
-
});
|
|
2290
|
-
}
|
|
2291
|
-
}, "de_StopStreamCommandError");
|
|
2292
1454
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2293
1455
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2294
|
-
return
|
|
1456
|
+
return de_CommandError(output, context);
|
|
2295
1457
|
}
|
|
2296
1458
|
const contents = (0, import_smithy_client.map)({
|
|
2297
1459
|
$metadata: deserializeMetadata(output)
|
|
@@ -2299,34 +1461,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2299
1461
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2300
1462
|
return contents;
|
|
2301
1463
|
}, "de_TagResourceCommand");
|
|
2302
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2303
|
-
const parsedOutput = {
|
|
2304
|
-
...output,
|
|
2305
|
-
body: await parseErrorBody(output.body, context)
|
|
2306
|
-
};
|
|
2307
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2308
|
-
switch (errorCode) {
|
|
2309
|
-
case "InternalServerException":
|
|
2310
|
-
case "com.amazonaws.ivs#InternalServerException":
|
|
2311
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2312
|
-
case "ResourceNotFoundException":
|
|
2313
|
-
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
2314
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2315
|
-
case "ValidationException":
|
|
2316
|
-
case "com.amazonaws.ivs#ValidationException":
|
|
2317
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2318
|
-
default:
|
|
2319
|
-
const parsedBody = parsedOutput.body;
|
|
2320
|
-
return throwDefaultError({
|
|
2321
|
-
output,
|
|
2322
|
-
parsedBody,
|
|
2323
|
-
errorCode
|
|
2324
|
-
});
|
|
2325
|
-
}
|
|
2326
|
-
}, "de_TagResourceCommandError");
|
|
2327
1464
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2328
1465
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2329
|
-
return
|
|
1466
|
+
return de_CommandError(output, context);
|
|
2330
1467
|
}
|
|
2331
1468
|
const contents = (0, import_smithy_client.map)({
|
|
2332
1469
|
$metadata: deserializeMetadata(output)
|
|
@@ -2334,34 +1471,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2334
1471
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2335
1472
|
return contents;
|
|
2336
1473
|
}, "de_UntagResourceCommand");
|
|
2337
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2338
|
-
const parsedOutput = {
|
|
2339
|
-
...output,
|
|
2340
|
-
body: await parseErrorBody(output.body, context)
|
|
2341
|
-
};
|
|
2342
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2343
|
-
switch (errorCode) {
|
|
2344
|
-
case "InternalServerException":
|
|
2345
|
-
case "com.amazonaws.ivs#InternalServerException":
|
|
2346
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2347
|
-
case "ResourceNotFoundException":
|
|
2348
|
-
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
2349
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2350
|
-
case "ValidationException":
|
|
2351
|
-
case "com.amazonaws.ivs#ValidationException":
|
|
2352
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2353
|
-
default:
|
|
2354
|
-
const parsedBody = parsedOutput.body;
|
|
2355
|
-
return throwDefaultError({
|
|
2356
|
-
output,
|
|
2357
|
-
parsedBody,
|
|
2358
|
-
errorCode
|
|
2359
|
-
});
|
|
2360
|
-
}
|
|
2361
|
-
}, "de_UntagResourceCommandError");
|
|
2362
1474
|
var de_UpdateChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2363
1475
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2364
|
-
return
|
|
1476
|
+
return de_CommandError(output, context);
|
|
2365
1477
|
}
|
|
2366
1478
|
const contents = (0, import_smithy_client.map)({
|
|
2367
1479
|
$metadata: deserializeMetadata(output)
|
|
@@ -2373,40 +1485,9 @@ var de_UpdateChannelCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2373
1485
|
Object.assign(contents, doc);
|
|
2374
1486
|
return contents;
|
|
2375
1487
|
}, "de_UpdateChannelCommand");
|
|
2376
|
-
var de_UpdateChannelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2377
|
-
const parsedOutput = {
|
|
2378
|
-
...output,
|
|
2379
|
-
body: await parseErrorBody(output.body, context)
|
|
2380
|
-
};
|
|
2381
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2382
|
-
switch (errorCode) {
|
|
2383
|
-
case "AccessDeniedException":
|
|
2384
|
-
case "com.amazonaws.ivs#AccessDeniedException":
|
|
2385
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2386
|
-
case "ConflictException":
|
|
2387
|
-
case "com.amazonaws.ivs#ConflictException":
|
|
2388
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2389
|
-
case "PendingVerification":
|
|
2390
|
-
case "com.amazonaws.ivs#PendingVerification":
|
|
2391
|
-
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
2392
|
-
case "ResourceNotFoundException":
|
|
2393
|
-
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
2394
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2395
|
-
case "ValidationException":
|
|
2396
|
-
case "com.amazonaws.ivs#ValidationException":
|
|
2397
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2398
|
-
default:
|
|
2399
|
-
const parsedBody = parsedOutput.body;
|
|
2400
|
-
return throwDefaultError({
|
|
2401
|
-
output,
|
|
2402
|
-
parsedBody,
|
|
2403
|
-
errorCode
|
|
2404
|
-
});
|
|
2405
|
-
}
|
|
2406
|
-
}, "de_UpdateChannelCommandError");
|
|
2407
1488
|
var de_UpdatePlaybackRestrictionPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2408
1489
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2409
|
-
return
|
|
1490
|
+
return de_CommandError(output, context);
|
|
2410
1491
|
}
|
|
2411
1492
|
const contents = (0, import_smithy_client.map)({
|
|
2412
1493
|
$metadata: deserializeMetadata(output)
|
|
@@ -2418,7 +1499,7 @@ var de_UpdatePlaybackRestrictionPolicyCommand = /* @__PURE__ */ __name(async (ou
|
|
|
2418
1499
|
Object.assign(contents, doc);
|
|
2419
1500
|
return contents;
|
|
2420
1501
|
}, "de_UpdatePlaybackRestrictionPolicyCommand");
|
|
2421
|
-
var
|
|
1502
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2422
1503
|
const parsedOutput = {
|
|
2423
1504
|
...output,
|
|
2424
1505
|
body: await parseErrorBody(output.body, context)
|
|
@@ -2428,18 +1509,33 @@ var de_UpdatePlaybackRestrictionPolicyCommandError = /* @__PURE__ */ __name(asyn
|
|
|
2428
1509
|
case "AccessDeniedException":
|
|
2429
1510
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
2430
1511
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2431
|
-
case "ConflictException":
|
|
2432
|
-
case "com.amazonaws.ivs#ConflictException":
|
|
2433
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2434
1512
|
case "PendingVerification":
|
|
2435
1513
|
case "com.amazonaws.ivs#PendingVerification":
|
|
2436
1514
|
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
2437
|
-
case "
|
|
2438
|
-
case "com.amazonaws.ivs#
|
|
2439
|
-
throw await
|
|
1515
|
+
case "ThrottlingException":
|
|
1516
|
+
case "com.amazonaws.ivs#ThrottlingException":
|
|
1517
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2440
1518
|
case "ValidationException":
|
|
2441
1519
|
case "com.amazonaws.ivs#ValidationException":
|
|
2442
1520
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1521
|
+
case "ResourceNotFoundException":
|
|
1522
|
+
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
1523
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1524
|
+
case "ServiceQuotaExceededException":
|
|
1525
|
+
case "com.amazonaws.ivs#ServiceQuotaExceededException":
|
|
1526
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1527
|
+
case "ConflictException":
|
|
1528
|
+
case "com.amazonaws.ivs#ConflictException":
|
|
1529
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1530
|
+
case "InternalServerException":
|
|
1531
|
+
case "com.amazonaws.ivs#InternalServerException":
|
|
1532
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1533
|
+
case "ChannelNotBroadcasting":
|
|
1534
|
+
case "com.amazonaws.ivs#ChannelNotBroadcasting":
|
|
1535
|
+
throw await de_ChannelNotBroadcastingRes(parsedOutput, context);
|
|
1536
|
+
case "StreamUnavailable":
|
|
1537
|
+
case "com.amazonaws.ivs#StreamUnavailable":
|
|
1538
|
+
throw await de_StreamUnavailableRes(parsedOutput, context);
|
|
2443
1539
|
default:
|
|
2444
1540
|
const parsedBody = parsedOutput.body;
|
|
2445
1541
|
return throwDefaultError({
|
|
@@ -2448,7 +1544,7 @@ var de_UpdatePlaybackRestrictionPolicyCommandError = /* @__PURE__ */ __name(asyn
|
|
|
2448
1544
|
errorCode
|
|
2449
1545
|
});
|
|
2450
1546
|
}
|
|
2451
|
-
}, "
|
|
1547
|
+
}, "de_CommandError");
|
|
2452
1548
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(IvsServiceException);
|
|
2453
1549
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2454
1550
|
const contents = (0, import_smithy_client.map)({});
|