@aws-sdk/client-mediaconnect 3.51.0 → 3.54.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/CHANGELOG.md +27 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/MediaConnectServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +129 -2
- package/dist-cjs/protocols/Aws_restJson1.js +367 -1355
- package/dist-es/index.js +1 -0
- package/dist-es/models/MediaConnectServiceException.js +12 -0
- package/dist-es/models/models_0.js +119 -1
- package/dist-es/protocols/Aws_restJson1.js +753 -1485
- package/dist-types/MediaConnectClient.d.ts +2 -2
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/MediaConnectServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +65 -28
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/MediaConnectClient.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/MediaConnectServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +47 -28
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +34 -34
|
@@ -4,6 +4,8 @@ exports.deserializeAws_restJson1RemoveFlowVpcInterfaceCommand = exports.deserial
|
|
|
4
4
|
exports.deserializeAws_restJson1UpdateFlowSourceCommand = exports.deserializeAws_restJson1UpdateFlowOutputCommand = exports.deserializeAws_restJson1UpdateFlowMediaStreamCommand = exports.deserializeAws_restJson1UpdateFlowEntitlementCommand = exports.deserializeAws_restJson1UpdateFlowCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StopFlowCommand = exports.deserializeAws_restJson1StartFlowCommand = exports.deserializeAws_restJson1RevokeFlowEntitlementCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const MediaConnectServiceException_1 = require("../models/MediaConnectServiceException");
|
|
8
|
+
const models_0_1 = require("../models/models_0");
|
|
7
9
|
const serializeAws_restJson1AddFlowMediaStreamsCommand = async (input, context) => {
|
|
8
10
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
9
11
|
const headers = {
|
|
@@ -1054,67 +1056,31 @@ const deserializeAws_restJson1AddFlowMediaStreamsCommandError = async (output, c
|
|
|
1054
1056
|
switch (errorCode) {
|
|
1055
1057
|
case "BadRequestException":
|
|
1056
1058
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1057
|
-
|
|
1058
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
1059
|
-
name: errorCode,
|
|
1060
|
-
$metadata: deserializeMetadata(output),
|
|
1061
|
-
};
|
|
1062
|
-
break;
|
|
1059
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1063
1060
|
case "ForbiddenException":
|
|
1064
1061
|
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1065
|
-
|
|
1066
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
1067
|
-
name: errorCode,
|
|
1068
|
-
$metadata: deserializeMetadata(output),
|
|
1069
|
-
};
|
|
1070
|
-
break;
|
|
1062
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1071
1063
|
case "InternalServerErrorException":
|
|
1072
1064
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1073
|
-
|
|
1074
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
1075
|
-
name: errorCode,
|
|
1076
|
-
$metadata: deserializeMetadata(output),
|
|
1077
|
-
};
|
|
1078
|
-
break;
|
|
1065
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
1079
1066
|
case "NotFoundException":
|
|
1080
1067
|
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1081
|
-
|
|
1082
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1083
|
-
name: errorCode,
|
|
1084
|
-
$metadata: deserializeMetadata(output),
|
|
1085
|
-
};
|
|
1086
|
-
break;
|
|
1068
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
1087
1069
|
case "ServiceUnavailableException":
|
|
1088
1070
|
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1089
|
-
|
|
1090
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1091
|
-
name: errorCode,
|
|
1092
|
-
$metadata: deserializeMetadata(output),
|
|
1093
|
-
};
|
|
1094
|
-
break;
|
|
1071
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1095
1072
|
case "TooManyRequestsException":
|
|
1096
1073
|
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1097
|
-
|
|
1098
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1099
|
-
name: errorCode,
|
|
1100
|
-
$metadata: deserializeMetadata(output),
|
|
1101
|
-
};
|
|
1102
|
-
break;
|
|
1074
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1103
1075
|
default:
|
|
1104
1076
|
const parsedBody = parsedOutput.body;
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
...parsedBody,
|
|
1108
|
-
name: `${errorCode}`,
|
|
1109
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1077
|
+
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
1078
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1110
1079
|
$fault: "client",
|
|
1111
1080
|
$metadata: deserializeMetadata(output),
|
|
1112
|
-
};
|
|
1081
|
+
});
|
|
1082
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1113
1083
|
}
|
|
1114
|
-
const message = response.message || response.Message || errorCode;
|
|
1115
|
-
response.message = message;
|
|
1116
|
-
delete response.Message;
|
|
1117
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1118
1084
|
};
|
|
1119
1085
|
const deserializeAws_restJson1AddFlowOutputsCommand = async (output, context) => {
|
|
1120
1086
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
@@ -1146,75 +1112,34 @@ const deserializeAws_restJson1AddFlowOutputsCommandError = async (output, contex
|
|
|
1146
1112
|
switch (errorCode) {
|
|
1147
1113
|
case "AddFlowOutputs420Exception":
|
|
1148
1114
|
case "com.amazonaws.mediaconnect#AddFlowOutputs420Exception":
|
|
1149
|
-
|
|
1150
|
-
...(await deserializeAws_restJson1AddFlowOutputs420ExceptionResponse(parsedOutput, context)),
|
|
1151
|
-
name: errorCode,
|
|
1152
|
-
$metadata: deserializeMetadata(output),
|
|
1153
|
-
};
|
|
1154
|
-
break;
|
|
1115
|
+
throw await deserializeAws_restJson1AddFlowOutputs420ExceptionResponse(parsedOutput, context);
|
|
1155
1116
|
case "BadRequestException":
|
|
1156
1117
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1157
|
-
|
|
1158
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
1159
|
-
name: errorCode,
|
|
1160
|
-
$metadata: deserializeMetadata(output),
|
|
1161
|
-
};
|
|
1162
|
-
break;
|
|
1118
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1163
1119
|
case "ForbiddenException":
|
|
1164
1120
|
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1165
|
-
|
|
1166
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
1167
|
-
name: errorCode,
|
|
1168
|
-
$metadata: deserializeMetadata(output),
|
|
1169
|
-
};
|
|
1170
|
-
break;
|
|
1121
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1171
1122
|
case "InternalServerErrorException":
|
|
1172
1123
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1173
|
-
|
|
1174
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
1175
|
-
name: errorCode,
|
|
1176
|
-
$metadata: deserializeMetadata(output),
|
|
1177
|
-
};
|
|
1178
|
-
break;
|
|
1124
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
1179
1125
|
case "NotFoundException":
|
|
1180
1126
|
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1181
|
-
|
|
1182
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1183
|
-
name: errorCode,
|
|
1184
|
-
$metadata: deserializeMetadata(output),
|
|
1185
|
-
};
|
|
1186
|
-
break;
|
|
1127
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
1187
1128
|
case "ServiceUnavailableException":
|
|
1188
1129
|
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1189
|
-
|
|
1190
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1191
|
-
name: errorCode,
|
|
1192
|
-
$metadata: deserializeMetadata(output),
|
|
1193
|
-
};
|
|
1194
|
-
break;
|
|
1130
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1195
1131
|
case "TooManyRequestsException":
|
|
1196
1132
|
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1197
|
-
|
|
1198
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1199
|
-
name: errorCode,
|
|
1200
|
-
$metadata: deserializeMetadata(output),
|
|
1201
|
-
};
|
|
1202
|
-
break;
|
|
1133
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1203
1134
|
default:
|
|
1204
1135
|
const parsedBody = parsedOutput.body;
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
...parsedBody,
|
|
1208
|
-
name: `${errorCode}`,
|
|
1209
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1136
|
+
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
1137
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1210
1138
|
$fault: "client",
|
|
1211
1139
|
$metadata: deserializeMetadata(output),
|
|
1212
|
-
};
|
|
1140
|
+
});
|
|
1141
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1213
1142
|
}
|
|
1214
|
-
const message = response.message || response.Message || errorCode;
|
|
1215
|
-
response.message = message;
|
|
1216
|
-
delete response.Message;
|
|
1217
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1218
1143
|
};
|
|
1219
1144
|
const deserializeAws_restJson1AddFlowSourcesCommand = async (output, context) => {
|
|
1220
1145
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
@@ -1246,67 +1171,31 @@ const deserializeAws_restJson1AddFlowSourcesCommandError = async (output, contex
|
|
|
1246
1171
|
switch (errorCode) {
|
|
1247
1172
|
case "BadRequestException":
|
|
1248
1173
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1249
|
-
|
|
1250
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
1251
|
-
name: errorCode,
|
|
1252
|
-
$metadata: deserializeMetadata(output),
|
|
1253
|
-
};
|
|
1254
|
-
break;
|
|
1174
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1255
1175
|
case "ForbiddenException":
|
|
1256
1176
|
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1257
|
-
|
|
1258
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
1259
|
-
name: errorCode,
|
|
1260
|
-
$metadata: deserializeMetadata(output),
|
|
1261
|
-
};
|
|
1262
|
-
break;
|
|
1177
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1263
1178
|
case "InternalServerErrorException":
|
|
1264
1179
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1265
|
-
|
|
1266
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
1267
|
-
name: errorCode,
|
|
1268
|
-
$metadata: deserializeMetadata(output),
|
|
1269
|
-
};
|
|
1270
|
-
break;
|
|
1180
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
1271
1181
|
case "NotFoundException":
|
|
1272
1182
|
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1273
|
-
|
|
1274
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1275
|
-
name: errorCode,
|
|
1276
|
-
$metadata: deserializeMetadata(output),
|
|
1277
|
-
};
|
|
1278
|
-
break;
|
|
1183
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
1279
1184
|
case "ServiceUnavailableException":
|
|
1280
1185
|
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1281
|
-
|
|
1282
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1283
|
-
name: errorCode,
|
|
1284
|
-
$metadata: deserializeMetadata(output),
|
|
1285
|
-
};
|
|
1286
|
-
break;
|
|
1186
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1287
1187
|
case "TooManyRequestsException":
|
|
1288
1188
|
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1289
|
-
|
|
1290
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1291
|
-
name: errorCode,
|
|
1292
|
-
$metadata: deserializeMetadata(output),
|
|
1293
|
-
};
|
|
1294
|
-
break;
|
|
1189
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1295
1190
|
default:
|
|
1296
1191
|
const parsedBody = parsedOutput.body;
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
...parsedBody,
|
|
1300
|
-
name: `${errorCode}`,
|
|
1301
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1192
|
+
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
1193
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1302
1194
|
$fault: "client",
|
|
1303
1195
|
$metadata: deserializeMetadata(output),
|
|
1304
|
-
};
|
|
1196
|
+
});
|
|
1197
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1305
1198
|
}
|
|
1306
|
-
const message = response.message || response.Message || errorCode;
|
|
1307
|
-
response.message = message;
|
|
1308
|
-
delete response.Message;
|
|
1309
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1310
1199
|
};
|
|
1311
1200
|
const deserializeAws_restJson1AddFlowVpcInterfacesCommand = async (output, context) => {
|
|
1312
1201
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
@@ -1338,67 +1227,31 @@ const deserializeAws_restJson1AddFlowVpcInterfacesCommandError = async (output,
|
|
|
1338
1227
|
switch (errorCode) {
|
|
1339
1228
|
case "BadRequestException":
|
|
1340
1229
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1341
|
-
|
|
1342
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
1343
|
-
name: errorCode,
|
|
1344
|
-
$metadata: deserializeMetadata(output),
|
|
1345
|
-
};
|
|
1346
|
-
break;
|
|
1230
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1347
1231
|
case "ForbiddenException":
|
|
1348
1232
|
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1349
|
-
|
|
1350
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
1351
|
-
name: errorCode,
|
|
1352
|
-
$metadata: deserializeMetadata(output),
|
|
1353
|
-
};
|
|
1354
|
-
break;
|
|
1233
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1355
1234
|
case "InternalServerErrorException":
|
|
1356
1235
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1357
|
-
|
|
1358
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
1359
|
-
name: errorCode,
|
|
1360
|
-
$metadata: deserializeMetadata(output),
|
|
1361
|
-
};
|
|
1362
|
-
break;
|
|
1236
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
1363
1237
|
case "NotFoundException":
|
|
1364
1238
|
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1365
|
-
|
|
1366
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1367
|
-
name: errorCode,
|
|
1368
|
-
$metadata: deserializeMetadata(output),
|
|
1369
|
-
};
|
|
1370
|
-
break;
|
|
1239
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
1371
1240
|
case "ServiceUnavailableException":
|
|
1372
1241
|
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1373
|
-
|
|
1374
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1375
|
-
name: errorCode,
|
|
1376
|
-
$metadata: deserializeMetadata(output),
|
|
1377
|
-
};
|
|
1378
|
-
break;
|
|
1242
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1379
1243
|
case "TooManyRequestsException":
|
|
1380
1244
|
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1381
|
-
|
|
1382
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1383
|
-
name: errorCode,
|
|
1384
|
-
$metadata: deserializeMetadata(output),
|
|
1385
|
-
};
|
|
1386
|
-
break;
|
|
1245
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1387
1246
|
default:
|
|
1388
1247
|
const parsedBody = parsedOutput.body;
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
...parsedBody,
|
|
1392
|
-
name: `${errorCode}`,
|
|
1393
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1248
|
+
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
1249
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1394
1250
|
$fault: "client",
|
|
1395
1251
|
$metadata: deserializeMetadata(output),
|
|
1396
|
-
};
|
|
1252
|
+
});
|
|
1253
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1397
1254
|
}
|
|
1398
|
-
const message = response.message || response.Message || errorCode;
|
|
1399
|
-
response.message = message;
|
|
1400
|
-
delete response.Message;
|
|
1401
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1402
1255
|
};
|
|
1403
1256
|
const deserializeAws_restJson1CreateFlowCommand = async (output, context) => {
|
|
1404
1257
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
@@ -1426,67 +1279,31 @@ const deserializeAws_restJson1CreateFlowCommandError = async (output, context) =
|
|
|
1426
1279
|
switch (errorCode) {
|
|
1427
1280
|
case "BadRequestException":
|
|
1428
1281
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1429
|
-
|
|
1430
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
1431
|
-
name: errorCode,
|
|
1432
|
-
$metadata: deserializeMetadata(output),
|
|
1433
|
-
};
|
|
1434
|
-
break;
|
|
1282
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1435
1283
|
case "CreateFlow420Exception":
|
|
1436
1284
|
case "com.amazonaws.mediaconnect#CreateFlow420Exception":
|
|
1437
|
-
|
|
1438
|
-
...(await deserializeAws_restJson1CreateFlow420ExceptionResponse(parsedOutput, context)),
|
|
1439
|
-
name: errorCode,
|
|
1440
|
-
$metadata: deserializeMetadata(output),
|
|
1441
|
-
};
|
|
1442
|
-
break;
|
|
1285
|
+
throw await deserializeAws_restJson1CreateFlow420ExceptionResponse(parsedOutput, context);
|
|
1443
1286
|
case "ForbiddenException":
|
|
1444
1287
|
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1445
|
-
|
|
1446
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
1447
|
-
name: errorCode,
|
|
1448
|
-
$metadata: deserializeMetadata(output),
|
|
1449
|
-
};
|
|
1450
|
-
break;
|
|
1288
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1451
1289
|
case "InternalServerErrorException":
|
|
1452
1290
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1453
|
-
|
|
1454
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
1455
|
-
name: errorCode,
|
|
1456
|
-
$metadata: deserializeMetadata(output),
|
|
1457
|
-
};
|
|
1458
|
-
break;
|
|
1291
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
1459
1292
|
case "ServiceUnavailableException":
|
|
1460
1293
|
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1461
|
-
|
|
1462
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1463
|
-
name: errorCode,
|
|
1464
|
-
$metadata: deserializeMetadata(output),
|
|
1465
|
-
};
|
|
1466
|
-
break;
|
|
1294
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1467
1295
|
case "TooManyRequestsException":
|
|
1468
1296
|
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1469
|
-
|
|
1470
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1471
|
-
name: errorCode,
|
|
1472
|
-
$metadata: deserializeMetadata(output),
|
|
1473
|
-
};
|
|
1474
|
-
break;
|
|
1297
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1475
1298
|
default:
|
|
1476
1299
|
const parsedBody = parsedOutput.body;
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
...parsedBody,
|
|
1480
|
-
name: `${errorCode}`,
|
|
1481
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1300
|
+
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
1301
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1482
1302
|
$fault: "client",
|
|
1483
1303
|
$metadata: deserializeMetadata(output),
|
|
1484
|
-
};
|
|
1304
|
+
});
|
|
1305
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1485
1306
|
}
|
|
1486
|
-
const message = response.message || response.Message || errorCode;
|
|
1487
|
-
response.message = message;
|
|
1488
|
-
delete response.Message;
|
|
1489
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1490
1307
|
};
|
|
1491
1308
|
const deserializeAws_restJson1DeleteFlowCommand = async (output, context) => {
|
|
1492
1309
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
@@ -1518,67 +1335,31 @@ const deserializeAws_restJson1DeleteFlowCommandError = async (output, context) =
|
|
|
1518
1335
|
switch (errorCode) {
|
|
1519
1336
|
case "BadRequestException":
|
|
1520
1337
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1521
|
-
|
|
1522
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
1523
|
-
name: errorCode,
|
|
1524
|
-
$metadata: deserializeMetadata(output),
|
|
1525
|
-
};
|
|
1526
|
-
break;
|
|
1338
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1527
1339
|
case "ForbiddenException":
|
|
1528
1340
|
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1529
|
-
|
|
1530
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
1531
|
-
name: errorCode,
|
|
1532
|
-
$metadata: deserializeMetadata(output),
|
|
1533
|
-
};
|
|
1534
|
-
break;
|
|
1341
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1535
1342
|
case "InternalServerErrorException":
|
|
1536
1343
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1537
|
-
|
|
1538
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
1539
|
-
name: errorCode,
|
|
1540
|
-
$metadata: deserializeMetadata(output),
|
|
1541
|
-
};
|
|
1542
|
-
break;
|
|
1344
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
1543
1345
|
case "NotFoundException":
|
|
1544
1346
|
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1545
|
-
|
|
1546
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1547
|
-
name: errorCode,
|
|
1548
|
-
$metadata: deserializeMetadata(output),
|
|
1549
|
-
};
|
|
1550
|
-
break;
|
|
1347
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
1551
1348
|
case "ServiceUnavailableException":
|
|
1552
1349
|
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1553
|
-
|
|
1554
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1555
|
-
name: errorCode,
|
|
1556
|
-
$metadata: deserializeMetadata(output),
|
|
1557
|
-
};
|
|
1558
|
-
break;
|
|
1350
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1559
1351
|
case "TooManyRequestsException":
|
|
1560
1352
|
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1561
|
-
|
|
1562
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1563
|
-
name: errorCode,
|
|
1564
|
-
$metadata: deserializeMetadata(output),
|
|
1565
|
-
};
|
|
1566
|
-
break;
|
|
1353
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1567
1354
|
default:
|
|
1568
1355
|
const parsedBody = parsedOutput.body;
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
...parsedBody,
|
|
1572
|
-
name: `${errorCode}`,
|
|
1573
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1356
|
+
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
1357
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1574
1358
|
$fault: "client",
|
|
1575
1359
|
$metadata: deserializeMetadata(output),
|
|
1576
|
-
};
|
|
1360
|
+
});
|
|
1361
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1577
1362
|
}
|
|
1578
|
-
const message = response.message || response.Message || errorCode;
|
|
1579
|
-
response.message = message;
|
|
1580
|
-
delete response.Message;
|
|
1581
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1582
1363
|
};
|
|
1583
1364
|
const deserializeAws_restJson1DescribeFlowCommand = async (output, context) => {
|
|
1584
1365
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1610,67 +1391,31 @@ const deserializeAws_restJson1DescribeFlowCommandError = async (output, context)
|
|
|
1610
1391
|
switch (errorCode) {
|
|
1611
1392
|
case "BadRequestException":
|
|
1612
1393
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1613
|
-
|
|
1614
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
1615
|
-
name: errorCode,
|
|
1616
|
-
$metadata: deserializeMetadata(output),
|
|
1617
|
-
};
|
|
1618
|
-
break;
|
|
1394
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1619
1395
|
case "ForbiddenException":
|
|
1620
1396
|
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1621
|
-
|
|
1622
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
1623
|
-
name: errorCode,
|
|
1624
|
-
$metadata: deserializeMetadata(output),
|
|
1625
|
-
};
|
|
1626
|
-
break;
|
|
1397
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1627
1398
|
case "InternalServerErrorException":
|
|
1628
1399
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1629
|
-
|
|
1630
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
1631
|
-
name: errorCode,
|
|
1632
|
-
$metadata: deserializeMetadata(output),
|
|
1633
|
-
};
|
|
1634
|
-
break;
|
|
1400
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
1635
1401
|
case "NotFoundException":
|
|
1636
1402
|
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1637
|
-
|
|
1638
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1639
|
-
name: errorCode,
|
|
1640
|
-
$metadata: deserializeMetadata(output),
|
|
1641
|
-
};
|
|
1642
|
-
break;
|
|
1403
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
1643
1404
|
case "ServiceUnavailableException":
|
|
1644
1405
|
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1645
|
-
|
|
1646
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1647
|
-
name: errorCode,
|
|
1648
|
-
$metadata: deserializeMetadata(output),
|
|
1649
|
-
};
|
|
1650
|
-
break;
|
|
1406
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1651
1407
|
case "TooManyRequestsException":
|
|
1652
1408
|
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1653
|
-
|
|
1654
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1655
|
-
name: errorCode,
|
|
1656
|
-
$metadata: deserializeMetadata(output),
|
|
1657
|
-
};
|
|
1658
|
-
break;
|
|
1409
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1659
1410
|
default:
|
|
1660
1411
|
const parsedBody = parsedOutput.body;
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
...parsedBody,
|
|
1664
|
-
name: `${errorCode}`,
|
|
1665
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1412
|
+
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
1413
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1666
1414
|
$fault: "client",
|
|
1667
1415
|
$metadata: deserializeMetadata(output),
|
|
1668
|
-
};
|
|
1416
|
+
});
|
|
1417
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1669
1418
|
}
|
|
1670
|
-
const message = response.message || response.Message || errorCode;
|
|
1671
|
-
response.message = message;
|
|
1672
|
-
delete response.Message;
|
|
1673
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1674
1419
|
};
|
|
1675
1420
|
const deserializeAws_restJson1DescribeOfferingCommand = async (output, context) => {
|
|
1676
1421
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1698,59 +1443,28 @@ const deserializeAws_restJson1DescribeOfferingCommandError = async (output, cont
|
|
|
1698
1443
|
switch (errorCode) {
|
|
1699
1444
|
case "BadRequestException":
|
|
1700
1445
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1701
|
-
|
|
1702
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
1703
|
-
name: errorCode,
|
|
1704
|
-
$metadata: deserializeMetadata(output),
|
|
1705
|
-
};
|
|
1706
|
-
break;
|
|
1446
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1707
1447
|
case "InternalServerErrorException":
|
|
1708
1448
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1709
|
-
|
|
1710
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
1711
|
-
name: errorCode,
|
|
1712
|
-
$metadata: deserializeMetadata(output),
|
|
1713
|
-
};
|
|
1714
|
-
break;
|
|
1449
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
1715
1450
|
case "NotFoundException":
|
|
1716
1451
|
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1717
|
-
|
|
1718
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1719
|
-
name: errorCode,
|
|
1720
|
-
$metadata: deserializeMetadata(output),
|
|
1721
|
-
};
|
|
1722
|
-
break;
|
|
1452
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
1723
1453
|
case "ServiceUnavailableException":
|
|
1724
1454
|
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1725
|
-
|
|
1726
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1727
|
-
name: errorCode,
|
|
1728
|
-
$metadata: deserializeMetadata(output),
|
|
1729
|
-
};
|
|
1730
|
-
break;
|
|
1455
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1731
1456
|
case "TooManyRequestsException":
|
|
1732
1457
|
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1733
|
-
|
|
1734
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1735
|
-
name: errorCode,
|
|
1736
|
-
$metadata: deserializeMetadata(output),
|
|
1737
|
-
};
|
|
1738
|
-
break;
|
|
1458
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1739
1459
|
default:
|
|
1740
1460
|
const parsedBody = parsedOutput.body;
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
...parsedBody,
|
|
1744
|
-
name: `${errorCode}`,
|
|
1745
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1461
|
+
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
1462
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1746
1463
|
$fault: "client",
|
|
1747
1464
|
$metadata: deserializeMetadata(output),
|
|
1748
|
-
};
|
|
1465
|
+
});
|
|
1466
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1749
1467
|
}
|
|
1750
|
-
const message = response.message || response.Message || errorCode;
|
|
1751
|
-
response.message = message;
|
|
1752
|
-
delete response.Message;
|
|
1753
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1754
1468
|
};
|
|
1755
1469
|
const deserializeAws_restJson1DescribeReservationCommand = async (output, context) => {
|
|
1756
1470
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1778,59 +1492,28 @@ const deserializeAws_restJson1DescribeReservationCommandError = async (output, c
|
|
|
1778
1492
|
switch (errorCode) {
|
|
1779
1493
|
case "BadRequestException":
|
|
1780
1494
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1781
|
-
|
|
1782
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
1783
|
-
name: errorCode,
|
|
1784
|
-
$metadata: deserializeMetadata(output),
|
|
1785
|
-
};
|
|
1786
|
-
break;
|
|
1495
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1787
1496
|
case "InternalServerErrorException":
|
|
1788
1497
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1789
|
-
|
|
1790
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
1791
|
-
name: errorCode,
|
|
1792
|
-
$metadata: deserializeMetadata(output),
|
|
1793
|
-
};
|
|
1794
|
-
break;
|
|
1498
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
1795
1499
|
case "NotFoundException":
|
|
1796
1500
|
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1797
|
-
|
|
1798
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1799
|
-
name: errorCode,
|
|
1800
|
-
$metadata: deserializeMetadata(output),
|
|
1801
|
-
};
|
|
1802
|
-
break;
|
|
1501
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
1803
1502
|
case "ServiceUnavailableException":
|
|
1804
1503
|
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1805
|
-
|
|
1806
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1807
|
-
name: errorCode,
|
|
1808
|
-
$metadata: deserializeMetadata(output),
|
|
1809
|
-
};
|
|
1810
|
-
break;
|
|
1504
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1811
1505
|
case "TooManyRequestsException":
|
|
1812
1506
|
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1813
|
-
|
|
1814
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1815
|
-
name: errorCode,
|
|
1816
|
-
$metadata: deserializeMetadata(output),
|
|
1817
|
-
};
|
|
1818
|
-
break;
|
|
1507
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1819
1508
|
default:
|
|
1820
1509
|
const parsedBody = parsedOutput.body;
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
...parsedBody,
|
|
1824
|
-
name: `${errorCode}`,
|
|
1825
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1510
|
+
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
1511
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1826
1512
|
$fault: "client",
|
|
1827
1513
|
$metadata: deserializeMetadata(output),
|
|
1828
|
-
};
|
|
1514
|
+
});
|
|
1515
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1829
1516
|
}
|
|
1830
|
-
const message = response.message || response.Message || errorCode;
|
|
1831
|
-
response.message = message;
|
|
1832
|
-
delete response.Message;
|
|
1833
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1834
1517
|
};
|
|
1835
1518
|
const deserializeAws_restJson1GrantFlowEntitlementsCommand = async (output, context) => {
|
|
1836
1519
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1862,75 +1545,34 @@ const deserializeAws_restJson1GrantFlowEntitlementsCommandError = async (output,
|
|
|
1862
1545
|
switch (errorCode) {
|
|
1863
1546
|
case "BadRequestException":
|
|
1864
1547
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1865
|
-
|
|
1866
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
1867
|
-
name: errorCode,
|
|
1868
|
-
$metadata: deserializeMetadata(output),
|
|
1869
|
-
};
|
|
1870
|
-
break;
|
|
1548
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1871
1549
|
case "ForbiddenException":
|
|
1872
1550
|
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1873
|
-
|
|
1874
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
1875
|
-
name: errorCode,
|
|
1876
|
-
$metadata: deserializeMetadata(output),
|
|
1877
|
-
};
|
|
1878
|
-
break;
|
|
1551
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1879
1552
|
case "GrantFlowEntitlements420Exception":
|
|
1880
1553
|
case "com.amazonaws.mediaconnect#GrantFlowEntitlements420Exception":
|
|
1881
|
-
|
|
1882
|
-
...(await deserializeAws_restJson1GrantFlowEntitlements420ExceptionResponse(parsedOutput, context)),
|
|
1883
|
-
name: errorCode,
|
|
1884
|
-
$metadata: deserializeMetadata(output),
|
|
1885
|
-
};
|
|
1886
|
-
break;
|
|
1554
|
+
throw await deserializeAws_restJson1GrantFlowEntitlements420ExceptionResponse(parsedOutput, context);
|
|
1887
1555
|
case "InternalServerErrorException":
|
|
1888
1556
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1889
|
-
|
|
1890
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
1891
|
-
name: errorCode,
|
|
1892
|
-
$metadata: deserializeMetadata(output),
|
|
1893
|
-
};
|
|
1894
|
-
break;
|
|
1557
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
1895
1558
|
case "NotFoundException":
|
|
1896
1559
|
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1897
|
-
|
|
1898
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1899
|
-
name: errorCode,
|
|
1900
|
-
$metadata: deserializeMetadata(output),
|
|
1901
|
-
};
|
|
1902
|
-
break;
|
|
1560
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
1903
1561
|
case "ServiceUnavailableException":
|
|
1904
1562
|
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1905
|
-
|
|
1906
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1907
|
-
name: errorCode,
|
|
1908
|
-
$metadata: deserializeMetadata(output),
|
|
1909
|
-
};
|
|
1910
|
-
break;
|
|
1563
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1911
1564
|
case "TooManyRequestsException":
|
|
1912
1565
|
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1913
|
-
|
|
1914
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1915
|
-
name: errorCode,
|
|
1916
|
-
$metadata: deserializeMetadata(output),
|
|
1917
|
-
};
|
|
1918
|
-
break;
|
|
1566
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1919
1567
|
default:
|
|
1920
1568
|
const parsedBody = parsedOutput.body;
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
...parsedBody,
|
|
1924
|
-
name: `${errorCode}`,
|
|
1925
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1569
|
+
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
1570
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1926
1571
|
$fault: "client",
|
|
1927
1572
|
$metadata: deserializeMetadata(output),
|
|
1928
|
-
};
|
|
1573
|
+
});
|
|
1574
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1929
1575
|
}
|
|
1930
|
-
const message = response.message || response.Message || errorCode;
|
|
1931
|
-
response.message = message;
|
|
1932
|
-
delete response.Message;
|
|
1933
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1934
1576
|
};
|
|
1935
1577
|
const deserializeAws_restJson1ListEntitlementsCommand = async (output, context) => {
|
|
1936
1578
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1962,51 +1604,25 @@ const deserializeAws_restJson1ListEntitlementsCommandError = async (output, cont
|
|
|
1962
1604
|
switch (errorCode) {
|
|
1963
1605
|
case "BadRequestException":
|
|
1964
1606
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1965
|
-
|
|
1966
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
1967
|
-
name: errorCode,
|
|
1968
|
-
$metadata: deserializeMetadata(output),
|
|
1969
|
-
};
|
|
1970
|
-
break;
|
|
1607
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1971
1608
|
case "InternalServerErrorException":
|
|
1972
1609
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1973
|
-
|
|
1974
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
1975
|
-
name: errorCode,
|
|
1976
|
-
$metadata: deserializeMetadata(output),
|
|
1977
|
-
};
|
|
1978
|
-
break;
|
|
1610
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
1979
1611
|
case "ServiceUnavailableException":
|
|
1980
1612
|
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1981
|
-
|
|
1982
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1983
|
-
name: errorCode,
|
|
1984
|
-
$metadata: deserializeMetadata(output),
|
|
1985
|
-
};
|
|
1986
|
-
break;
|
|
1613
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1987
1614
|
case "TooManyRequestsException":
|
|
1988
1615
|
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1989
|
-
|
|
1990
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1991
|
-
name: errorCode,
|
|
1992
|
-
$metadata: deserializeMetadata(output),
|
|
1993
|
-
};
|
|
1994
|
-
break;
|
|
1616
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1995
1617
|
default:
|
|
1996
1618
|
const parsedBody = parsedOutput.body;
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
...parsedBody,
|
|
2000
|
-
name: `${errorCode}`,
|
|
2001
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1619
|
+
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
1620
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2002
1621
|
$fault: "client",
|
|
2003
1622
|
$metadata: deserializeMetadata(output),
|
|
2004
|
-
};
|
|
1623
|
+
});
|
|
1624
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2005
1625
|
}
|
|
2006
|
-
const message = response.message || response.Message || errorCode;
|
|
2007
|
-
response.message = message;
|
|
2008
|
-
delete response.Message;
|
|
2009
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2010
1626
|
};
|
|
2011
1627
|
const deserializeAws_restJson1ListFlowsCommand = async (output, context) => {
|
|
2012
1628
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2038,51 +1654,25 @@ const deserializeAws_restJson1ListFlowsCommandError = async (output, context) =>
|
|
|
2038
1654
|
switch (errorCode) {
|
|
2039
1655
|
case "BadRequestException":
|
|
2040
1656
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2041
|
-
|
|
2042
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
2043
|
-
name: errorCode,
|
|
2044
|
-
$metadata: deserializeMetadata(output),
|
|
2045
|
-
};
|
|
2046
|
-
break;
|
|
1657
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
2047
1658
|
case "InternalServerErrorException":
|
|
2048
1659
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2049
|
-
|
|
2050
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
2051
|
-
name: errorCode,
|
|
2052
|
-
$metadata: deserializeMetadata(output),
|
|
2053
|
-
};
|
|
2054
|
-
break;
|
|
1660
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2055
1661
|
case "ServiceUnavailableException":
|
|
2056
1662
|
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2057
|
-
|
|
2058
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2059
|
-
name: errorCode,
|
|
2060
|
-
$metadata: deserializeMetadata(output),
|
|
2061
|
-
};
|
|
2062
|
-
break;
|
|
1663
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2063
1664
|
case "TooManyRequestsException":
|
|
2064
1665
|
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2065
|
-
|
|
2066
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
2067
|
-
name: errorCode,
|
|
2068
|
-
$metadata: deserializeMetadata(output),
|
|
2069
|
-
};
|
|
2070
|
-
break;
|
|
1666
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2071
1667
|
default:
|
|
2072
1668
|
const parsedBody = parsedOutput.body;
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
...parsedBody,
|
|
2076
|
-
name: `${errorCode}`,
|
|
2077
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1669
|
+
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
1670
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2078
1671
|
$fault: "client",
|
|
2079
1672
|
$metadata: deserializeMetadata(output),
|
|
2080
|
-
};
|
|
1673
|
+
});
|
|
1674
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2081
1675
|
}
|
|
2082
|
-
const message = response.message || response.Message || errorCode;
|
|
2083
|
-
response.message = message;
|
|
2084
|
-
delete response.Message;
|
|
2085
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2086
1676
|
};
|
|
2087
1677
|
const deserializeAws_restJson1ListOfferingsCommand = async (output, context) => {
|
|
2088
1678
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2114,51 +1704,25 @@ const deserializeAws_restJson1ListOfferingsCommandError = async (output, context
|
|
|
2114
1704
|
switch (errorCode) {
|
|
2115
1705
|
case "BadRequestException":
|
|
2116
1706
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2117
|
-
|
|
2118
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
2119
|
-
name: errorCode,
|
|
2120
|
-
$metadata: deserializeMetadata(output),
|
|
2121
|
-
};
|
|
2122
|
-
break;
|
|
1707
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
2123
1708
|
case "InternalServerErrorException":
|
|
2124
1709
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2125
|
-
|
|
2126
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
2127
|
-
name: errorCode,
|
|
2128
|
-
$metadata: deserializeMetadata(output),
|
|
2129
|
-
};
|
|
2130
|
-
break;
|
|
1710
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2131
1711
|
case "ServiceUnavailableException":
|
|
2132
1712
|
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2133
|
-
|
|
2134
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2135
|
-
name: errorCode,
|
|
2136
|
-
$metadata: deserializeMetadata(output),
|
|
2137
|
-
};
|
|
2138
|
-
break;
|
|
1713
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2139
1714
|
case "TooManyRequestsException":
|
|
2140
1715
|
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2141
|
-
|
|
2142
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
2143
|
-
name: errorCode,
|
|
2144
|
-
$metadata: deserializeMetadata(output),
|
|
2145
|
-
};
|
|
2146
|
-
break;
|
|
1716
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2147
1717
|
default:
|
|
2148
1718
|
const parsedBody = parsedOutput.body;
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
...parsedBody,
|
|
2152
|
-
name: `${errorCode}`,
|
|
2153
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1719
|
+
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
1720
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2154
1721
|
$fault: "client",
|
|
2155
1722
|
$metadata: deserializeMetadata(output),
|
|
2156
|
-
};
|
|
1723
|
+
});
|
|
1724
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2157
1725
|
}
|
|
2158
|
-
const message = response.message || response.Message || errorCode;
|
|
2159
|
-
response.message = message;
|
|
2160
|
-
delete response.Message;
|
|
2161
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2162
1726
|
};
|
|
2163
1727
|
const deserializeAws_restJson1ListReservationsCommand = async (output, context) => {
|
|
2164
1728
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2190,51 +1754,25 @@ const deserializeAws_restJson1ListReservationsCommandError = async (output, cont
|
|
|
2190
1754
|
switch (errorCode) {
|
|
2191
1755
|
case "BadRequestException":
|
|
2192
1756
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2193
|
-
|
|
2194
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
2195
|
-
name: errorCode,
|
|
2196
|
-
$metadata: deserializeMetadata(output),
|
|
2197
|
-
};
|
|
2198
|
-
break;
|
|
1757
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
2199
1758
|
case "InternalServerErrorException":
|
|
2200
1759
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2201
|
-
|
|
2202
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
2203
|
-
name: errorCode,
|
|
2204
|
-
$metadata: deserializeMetadata(output),
|
|
2205
|
-
};
|
|
2206
|
-
break;
|
|
1760
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2207
1761
|
case "ServiceUnavailableException":
|
|
2208
1762
|
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2209
|
-
|
|
2210
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2211
|
-
name: errorCode,
|
|
2212
|
-
$metadata: deserializeMetadata(output),
|
|
2213
|
-
};
|
|
2214
|
-
break;
|
|
1763
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2215
1764
|
case "TooManyRequestsException":
|
|
2216
1765
|
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2217
|
-
|
|
2218
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
2219
|
-
name: errorCode,
|
|
2220
|
-
$metadata: deserializeMetadata(output),
|
|
2221
|
-
};
|
|
2222
|
-
break;
|
|
1766
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2223
1767
|
default:
|
|
2224
1768
|
const parsedBody = parsedOutput.body;
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
...parsedBody,
|
|
2228
|
-
name: `${errorCode}`,
|
|
2229
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1769
|
+
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
1770
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2230
1771
|
$fault: "client",
|
|
2231
1772
|
$metadata: deserializeMetadata(output),
|
|
2232
|
-
};
|
|
1773
|
+
});
|
|
1774
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2233
1775
|
}
|
|
2234
|
-
const message = response.message || response.Message || errorCode;
|
|
2235
|
-
response.message = message;
|
|
2236
|
-
delete response.Message;
|
|
2237
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2238
1776
|
};
|
|
2239
1777
|
const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
2240
1778
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2262,43 +1800,22 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2262
1800
|
switch (errorCode) {
|
|
2263
1801
|
case "BadRequestException":
|
|
2264
1802
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2265
|
-
|
|
2266
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
2267
|
-
name: errorCode,
|
|
2268
|
-
$metadata: deserializeMetadata(output),
|
|
2269
|
-
};
|
|
2270
|
-
break;
|
|
1803
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
2271
1804
|
case "InternalServerErrorException":
|
|
2272
1805
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2273
|
-
|
|
2274
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
2275
|
-
name: errorCode,
|
|
2276
|
-
$metadata: deserializeMetadata(output),
|
|
2277
|
-
};
|
|
2278
|
-
break;
|
|
1806
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2279
1807
|
case "NotFoundException":
|
|
2280
1808
|
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
2281
|
-
|
|
2282
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
2283
|
-
name: errorCode,
|
|
2284
|
-
$metadata: deserializeMetadata(output),
|
|
2285
|
-
};
|
|
2286
|
-
break;
|
|
1809
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
2287
1810
|
default:
|
|
2288
1811
|
const parsedBody = parsedOutput.body;
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
...parsedBody,
|
|
2292
|
-
name: `${errorCode}`,
|
|
2293
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1812
|
+
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
1813
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2294
1814
|
$fault: "client",
|
|
2295
1815
|
$metadata: deserializeMetadata(output),
|
|
2296
|
-
};
|
|
1816
|
+
});
|
|
1817
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2297
1818
|
}
|
|
2298
|
-
const message = response.message || response.Message || errorCode;
|
|
2299
|
-
response.message = message;
|
|
2300
|
-
delete response.Message;
|
|
2301
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2302
1819
|
};
|
|
2303
1820
|
const deserializeAws_restJson1PurchaseOfferingCommand = async (output, context) => {
|
|
2304
1821
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
@@ -2326,67 +1843,31 @@ const deserializeAws_restJson1PurchaseOfferingCommandError = async (output, cont
|
|
|
2326
1843
|
switch (errorCode) {
|
|
2327
1844
|
case "BadRequestException":
|
|
2328
1845
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2329
|
-
|
|
2330
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
2331
|
-
name: errorCode,
|
|
2332
|
-
$metadata: deserializeMetadata(output),
|
|
2333
|
-
};
|
|
2334
|
-
break;
|
|
1846
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
2335
1847
|
case "ForbiddenException":
|
|
2336
1848
|
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
2337
|
-
|
|
2338
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
2339
|
-
name: errorCode,
|
|
2340
|
-
$metadata: deserializeMetadata(output),
|
|
2341
|
-
};
|
|
2342
|
-
break;
|
|
1849
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
2343
1850
|
case "InternalServerErrorException":
|
|
2344
1851
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2345
|
-
|
|
2346
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
2347
|
-
name: errorCode,
|
|
2348
|
-
$metadata: deserializeMetadata(output),
|
|
2349
|
-
};
|
|
2350
|
-
break;
|
|
1852
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2351
1853
|
case "NotFoundException":
|
|
2352
1854
|
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
2353
|
-
|
|
2354
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
2355
|
-
name: errorCode,
|
|
2356
|
-
$metadata: deserializeMetadata(output),
|
|
2357
|
-
};
|
|
2358
|
-
break;
|
|
1855
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
2359
1856
|
case "ServiceUnavailableException":
|
|
2360
1857
|
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2361
|
-
|
|
2362
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2363
|
-
name: errorCode,
|
|
2364
|
-
$metadata: deserializeMetadata(output),
|
|
2365
|
-
};
|
|
2366
|
-
break;
|
|
1858
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2367
1859
|
case "TooManyRequestsException":
|
|
2368
1860
|
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2369
|
-
|
|
2370
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
2371
|
-
name: errorCode,
|
|
2372
|
-
$metadata: deserializeMetadata(output),
|
|
2373
|
-
};
|
|
2374
|
-
break;
|
|
1861
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2375
1862
|
default:
|
|
2376
1863
|
const parsedBody = parsedOutput.body;
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
...parsedBody,
|
|
2380
|
-
name: `${errorCode}`,
|
|
2381
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1864
|
+
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
1865
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2382
1866
|
$fault: "client",
|
|
2383
1867
|
$metadata: deserializeMetadata(output),
|
|
2384
|
-
};
|
|
1868
|
+
});
|
|
1869
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2385
1870
|
}
|
|
2386
|
-
const message = response.message || response.Message || errorCode;
|
|
2387
|
-
response.message = message;
|
|
2388
|
-
delete response.Message;
|
|
2389
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2390
1871
|
};
|
|
2391
1872
|
const deserializeAws_restJson1RemoveFlowMediaStreamCommand = async (output, context) => {
|
|
2392
1873
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2418,67 +1899,31 @@ const deserializeAws_restJson1RemoveFlowMediaStreamCommandError = async (output,
|
|
|
2418
1899
|
switch (errorCode) {
|
|
2419
1900
|
case "BadRequestException":
|
|
2420
1901
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2421
|
-
|
|
2422
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
2423
|
-
name: errorCode,
|
|
2424
|
-
$metadata: deserializeMetadata(output),
|
|
2425
|
-
};
|
|
2426
|
-
break;
|
|
1902
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
2427
1903
|
case "ForbiddenException":
|
|
2428
1904
|
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
2429
|
-
|
|
2430
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
2431
|
-
name: errorCode,
|
|
2432
|
-
$metadata: deserializeMetadata(output),
|
|
2433
|
-
};
|
|
2434
|
-
break;
|
|
1905
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
2435
1906
|
case "InternalServerErrorException":
|
|
2436
1907
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2437
|
-
|
|
2438
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
2439
|
-
name: errorCode,
|
|
2440
|
-
$metadata: deserializeMetadata(output),
|
|
2441
|
-
};
|
|
2442
|
-
break;
|
|
1908
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2443
1909
|
case "NotFoundException":
|
|
2444
1910
|
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
2445
|
-
|
|
2446
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
2447
|
-
name: errorCode,
|
|
2448
|
-
$metadata: deserializeMetadata(output),
|
|
2449
|
-
};
|
|
2450
|
-
break;
|
|
1911
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
2451
1912
|
case "ServiceUnavailableException":
|
|
2452
1913
|
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2453
|
-
|
|
2454
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2455
|
-
name: errorCode,
|
|
2456
|
-
$metadata: deserializeMetadata(output),
|
|
2457
|
-
};
|
|
2458
|
-
break;
|
|
1914
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2459
1915
|
case "TooManyRequestsException":
|
|
2460
1916
|
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2461
|
-
|
|
2462
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
2463
|
-
name: errorCode,
|
|
2464
|
-
$metadata: deserializeMetadata(output),
|
|
2465
|
-
};
|
|
2466
|
-
break;
|
|
1917
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2467
1918
|
default:
|
|
2468
1919
|
const parsedBody = parsedOutput.body;
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
...parsedBody,
|
|
2472
|
-
name: `${errorCode}`,
|
|
2473
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1920
|
+
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
1921
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2474
1922
|
$fault: "client",
|
|
2475
1923
|
$metadata: deserializeMetadata(output),
|
|
2476
|
-
};
|
|
1924
|
+
});
|
|
1925
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2477
1926
|
}
|
|
2478
|
-
const message = response.message || response.Message || errorCode;
|
|
2479
|
-
response.message = message;
|
|
2480
|
-
delete response.Message;
|
|
2481
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2482
1927
|
};
|
|
2483
1928
|
const deserializeAws_restJson1RemoveFlowOutputCommand = async (output, context) => {
|
|
2484
1929
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
@@ -2510,67 +1955,31 @@ const deserializeAws_restJson1RemoveFlowOutputCommandError = async (output, cont
|
|
|
2510
1955
|
switch (errorCode) {
|
|
2511
1956
|
case "BadRequestException":
|
|
2512
1957
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2513
|
-
|
|
2514
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
2515
|
-
name: errorCode,
|
|
2516
|
-
$metadata: deserializeMetadata(output),
|
|
2517
|
-
};
|
|
2518
|
-
break;
|
|
1958
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
2519
1959
|
case "ForbiddenException":
|
|
2520
1960
|
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
2521
|
-
|
|
2522
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
2523
|
-
name: errorCode,
|
|
2524
|
-
$metadata: deserializeMetadata(output),
|
|
2525
|
-
};
|
|
2526
|
-
break;
|
|
1961
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
2527
1962
|
case "InternalServerErrorException":
|
|
2528
1963
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2529
|
-
|
|
2530
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
2531
|
-
name: errorCode,
|
|
2532
|
-
$metadata: deserializeMetadata(output),
|
|
2533
|
-
};
|
|
2534
|
-
break;
|
|
1964
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2535
1965
|
case "NotFoundException":
|
|
2536
1966
|
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
2537
|
-
|
|
2538
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
2539
|
-
name: errorCode,
|
|
2540
|
-
$metadata: deserializeMetadata(output),
|
|
2541
|
-
};
|
|
2542
|
-
break;
|
|
1967
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
2543
1968
|
case "ServiceUnavailableException":
|
|
2544
1969
|
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2545
|
-
|
|
2546
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2547
|
-
name: errorCode,
|
|
2548
|
-
$metadata: deserializeMetadata(output),
|
|
2549
|
-
};
|
|
2550
|
-
break;
|
|
1970
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2551
1971
|
case "TooManyRequestsException":
|
|
2552
1972
|
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2553
|
-
|
|
2554
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
2555
|
-
name: errorCode,
|
|
2556
|
-
$metadata: deserializeMetadata(output),
|
|
2557
|
-
};
|
|
2558
|
-
break;
|
|
1973
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2559
1974
|
default:
|
|
2560
1975
|
const parsedBody = parsedOutput.body;
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
...parsedBody,
|
|
2564
|
-
name: `${errorCode}`,
|
|
2565
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1976
|
+
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
1977
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2566
1978
|
$fault: "client",
|
|
2567
1979
|
$metadata: deserializeMetadata(output),
|
|
2568
|
-
};
|
|
1980
|
+
});
|
|
1981
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2569
1982
|
}
|
|
2570
|
-
const message = response.message || response.Message || errorCode;
|
|
2571
|
-
response.message = message;
|
|
2572
|
-
delete response.Message;
|
|
2573
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2574
1983
|
};
|
|
2575
1984
|
const deserializeAws_restJson1RemoveFlowSourceCommand = async (output, context) => {
|
|
2576
1985
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
@@ -2602,67 +2011,31 @@ const deserializeAws_restJson1RemoveFlowSourceCommandError = async (output, cont
|
|
|
2602
2011
|
switch (errorCode) {
|
|
2603
2012
|
case "BadRequestException":
|
|
2604
2013
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2605
|
-
|
|
2606
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
2607
|
-
name: errorCode,
|
|
2608
|
-
$metadata: deserializeMetadata(output),
|
|
2609
|
-
};
|
|
2610
|
-
break;
|
|
2014
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
2611
2015
|
case "ForbiddenException":
|
|
2612
2016
|
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
2613
|
-
|
|
2614
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
2615
|
-
name: errorCode,
|
|
2616
|
-
$metadata: deserializeMetadata(output),
|
|
2617
|
-
};
|
|
2618
|
-
break;
|
|
2017
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
2619
2018
|
case "InternalServerErrorException":
|
|
2620
2019
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2621
|
-
|
|
2622
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
2623
|
-
name: errorCode,
|
|
2624
|
-
$metadata: deserializeMetadata(output),
|
|
2625
|
-
};
|
|
2626
|
-
break;
|
|
2020
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2627
2021
|
case "NotFoundException":
|
|
2628
2022
|
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
2629
|
-
|
|
2630
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
2631
|
-
name: errorCode,
|
|
2632
|
-
$metadata: deserializeMetadata(output),
|
|
2633
|
-
};
|
|
2634
|
-
break;
|
|
2023
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
2635
2024
|
case "ServiceUnavailableException":
|
|
2636
2025
|
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2637
|
-
|
|
2638
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2639
|
-
name: errorCode,
|
|
2640
|
-
$metadata: deserializeMetadata(output),
|
|
2641
|
-
};
|
|
2642
|
-
break;
|
|
2026
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2643
2027
|
case "TooManyRequestsException":
|
|
2644
2028
|
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2645
|
-
|
|
2646
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
2647
|
-
name: errorCode,
|
|
2648
|
-
$metadata: deserializeMetadata(output),
|
|
2649
|
-
};
|
|
2650
|
-
break;
|
|
2029
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2651
2030
|
default:
|
|
2652
2031
|
const parsedBody = parsedOutput.body;
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
...parsedBody,
|
|
2656
|
-
name: `${errorCode}`,
|
|
2657
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2032
|
+
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
2033
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2658
2034
|
$fault: "client",
|
|
2659
2035
|
$metadata: deserializeMetadata(output),
|
|
2660
|
-
};
|
|
2036
|
+
});
|
|
2037
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2661
2038
|
}
|
|
2662
|
-
const message = response.message || response.Message || errorCode;
|
|
2663
|
-
response.message = message;
|
|
2664
|
-
delete response.Message;
|
|
2665
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2666
2039
|
};
|
|
2667
2040
|
const deserializeAws_restJson1RemoveFlowVpcInterfaceCommand = async (output, context) => {
|
|
2668
2041
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2698,67 +2071,31 @@ const deserializeAws_restJson1RemoveFlowVpcInterfaceCommandError = async (output
|
|
|
2698
2071
|
switch (errorCode) {
|
|
2699
2072
|
case "BadRequestException":
|
|
2700
2073
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2701
|
-
|
|
2702
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
2703
|
-
name: errorCode,
|
|
2704
|
-
$metadata: deserializeMetadata(output),
|
|
2705
|
-
};
|
|
2706
|
-
break;
|
|
2074
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
2707
2075
|
case "ForbiddenException":
|
|
2708
2076
|
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
2709
|
-
|
|
2710
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
2711
|
-
name: errorCode,
|
|
2712
|
-
$metadata: deserializeMetadata(output),
|
|
2713
|
-
};
|
|
2714
|
-
break;
|
|
2077
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
2715
2078
|
case "InternalServerErrorException":
|
|
2716
2079
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2717
|
-
|
|
2718
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
2719
|
-
name: errorCode,
|
|
2720
|
-
$metadata: deserializeMetadata(output),
|
|
2721
|
-
};
|
|
2722
|
-
break;
|
|
2080
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2723
2081
|
case "NotFoundException":
|
|
2724
2082
|
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
2725
|
-
|
|
2726
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
2727
|
-
name: errorCode,
|
|
2728
|
-
$metadata: deserializeMetadata(output),
|
|
2729
|
-
};
|
|
2730
|
-
break;
|
|
2083
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
2731
2084
|
case "ServiceUnavailableException":
|
|
2732
2085
|
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2733
|
-
|
|
2734
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2735
|
-
name: errorCode,
|
|
2736
|
-
$metadata: deserializeMetadata(output),
|
|
2737
|
-
};
|
|
2738
|
-
break;
|
|
2086
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2739
2087
|
case "TooManyRequestsException":
|
|
2740
2088
|
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2741
|
-
|
|
2742
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
2743
|
-
name: errorCode,
|
|
2744
|
-
$metadata: deserializeMetadata(output),
|
|
2745
|
-
};
|
|
2746
|
-
break;
|
|
2089
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2747
2090
|
default:
|
|
2748
2091
|
const parsedBody = parsedOutput.body;
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
...parsedBody,
|
|
2752
|
-
name: `${errorCode}`,
|
|
2753
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2092
|
+
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
2093
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2754
2094
|
$fault: "client",
|
|
2755
2095
|
$metadata: deserializeMetadata(output),
|
|
2756
|
-
};
|
|
2096
|
+
});
|
|
2097
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2757
2098
|
}
|
|
2758
|
-
const message = response.message || response.Message || errorCode;
|
|
2759
|
-
response.message = message;
|
|
2760
|
-
delete response.Message;
|
|
2761
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2762
2099
|
};
|
|
2763
2100
|
const deserializeAws_restJson1RevokeFlowEntitlementCommand = async (output, context) => {
|
|
2764
2101
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
@@ -2790,67 +2127,31 @@ const deserializeAws_restJson1RevokeFlowEntitlementCommandError = async (output,
|
|
|
2790
2127
|
switch (errorCode) {
|
|
2791
2128
|
case "BadRequestException":
|
|
2792
2129
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2793
|
-
|
|
2794
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
2795
|
-
name: errorCode,
|
|
2796
|
-
$metadata: deserializeMetadata(output),
|
|
2797
|
-
};
|
|
2798
|
-
break;
|
|
2130
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
2799
2131
|
case "ForbiddenException":
|
|
2800
2132
|
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
2801
|
-
|
|
2802
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
2803
|
-
name: errorCode,
|
|
2804
|
-
$metadata: deserializeMetadata(output),
|
|
2805
|
-
};
|
|
2806
|
-
break;
|
|
2133
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
2807
2134
|
case "InternalServerErrorException":
|
|
2808
2135
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2809
|
-
|
|
2810
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
2811
|
-
name: errorCode,
|
|
2812
|
-
$metadata: deserializeMetadata(output),
|
|
2813
|
-
};
|
|
2814
|
-
break;
|
|
2136
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2815
2137
|
case "NotFoundException":
|
|
2816
2138
|
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
2817
|
-
|
|
2818
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
2819
|
-
name: errorCode,
|
|
2820
|
-
$metadata: deserializeMetadata(output),
|
|
2821
|
-
};
|
|
2822
|
-
break;
|
|
2139
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
2823
2140
|
case "ServiceUnavailableException":
|
|
2824
2141
|
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2825
|
-
|
|
2826
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2827
|
-
name: errorCode,
|
|
2828
|
-
$metadata: deserializeMetadata(output),
|
|
2829
|
-
};
|
|
2830
|
-
break;
|
|
2142
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2831
2143
|
case "TooManyRequestsException":
|
|
2832
2144
|
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2833
|
-
|
|
2834
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
2835
|
-
name: errorCode,
|
|
2836
|
-
$metadata: deserializeMetadata(output),
|
|
2837
|
-
};
|
|
2838
|
-
break;
|
|
2145
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2839
2146
|
default:
|
|
2840
2147
|
const parsedBody = parsedOutput.body;
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
...parsedBody,
|
|
2844
|
-
name: `${errorCode}`,
|
|
2845
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2148
|
+
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
2149
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2846
2150
|
$fault: "client",
|
|
2847
2151
|
$metadata: deserializeMetadata(output),
|
|
2848
|
-
};
|
|
2152
|
+
});
|
|
2153
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2849
2154
|
}
|
|
2850
|
-
const message = response.message || response.Message || errorCode;
|
|
2851
|
-
response.message = message;
|
|
2852
|
-
delete response.Message;
|
|
2853
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2854
2155
|
};
|
|
2855
2156
|
const deserializeAws_restJson1StartFlowCommand = async (output, context) => {
|
|
2856
2157
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
@@ -2882,67 +2183,31 @@ const deserializeAws_restJson1StartFlowCommandError = async (output, context) =>
|
|
|
2882
2183
|
switch (errorCode) {
|
|
2883
2184
|
case "BadRequestException":
|
|
2884
2185
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2885
|
-
|
|
2886
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
2887
|
-
name: errorCode,
|
|
2888
|
-
$metadata: deserializeMetadata(output),
|
|
2889
|
-
};
|
|
2890
|
-
break;
|
|
2186
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
2891
2187
|
case "ForbiddenException":
|
|
2892
2188
|
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
2893
|
-
|
|
2894
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
2895
|
-
name: errorCode,
|
|
2896
|
-
$metadata: deserializeMetadata(output),
|
|
2897
|
-
};
|
|
2898
|
-
break;
|
|
2189
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
2899
2190
|
case "InternalServerErrorException":
|
|
2900
2191
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2901
|
-
|
|
2902
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
2903
|
-
name: errorCode,
|
|
2904
|
-
$metadata: deserializeMetadata(output),
|
|
2905
|
-
};
|
|
2906
|
-
break;
|
|
2192
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2907
2193
|
case "NotFoundException":
|
|
2908
2194
|
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
2909
|
-
|
|
2910
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
2911
|
-
name: errorCode,
|
|
2912
|
-
$metadata: deserializeMetadata(output),
|
|
2913
|
-
};
|
|
2914
|
-
break;
|
|
2195
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
2915
2196
|
case "ServiceUnavailableException":
|
|
2916
2197
|
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2917
|
-
|
|
2918
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2919
|
-
name: errorCode,
|
|
2920
|
-
$metadata: deserializeMetadata(output),
|
|
2921
|
-
};
|
|
2922
|
-
break;
|
|
2198
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2923
2199
|
case "TooManyRequestsException":
|
|
2924
2200
|
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2925
|
-
|
|
2926
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
2927
|
-
name: errorCode,
|
|
2928
|
-
$metadata: deserializeMetadata(output),
|
|
2929
|
-
};
|
|
2930
|
-
break;
|
|
2201
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2931
2202
|
default:
|
|
2932
2203
|
const parsedBody = parsedOutput.body;
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
...parsedBody,
|
|
2936
|
-
name: `${errorCode}`,
|
|
2937
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2204
|
+
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
2205
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2938
2206
|
$fault: "client",
|
|
2939
2207
|
$metadata: deserializeMetadata(output),
|
|
2940
|
-
};
|
|
2208
|
+
});
|
|
2209
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2941
2210
|
}
|
|
2942
|
-
const message = response.message || response.Message || errorCode;
|
|
2943
|
-
response.message = message;
|
|
2944
|
-
delete response.Message;
|
|
2945
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2946
2211
|
};
|
|
2947
2212
|
const deserializeAws_restJson1StopFlowCommand = async (output, context) => {
|
|
2948
2213
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
@@ -2974,67 +2239,31 @@ const deserializeAws_restJson1StopFlowCommandError = async (output, context) =>
|
|
|
2974
2239
|
switch (errorCode) {
|
|
2975
2240
|
case "BadRequestException":
|
|
2976
2241
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2977
|
-
|
|
2978
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
2979
|
-
name: errorCode,
|
|
2980
|
-
$metadata: deserializeMetadata(output),
|
|
2981
|
-
};
|
|
2982
|
-
break;
|
|
2242
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
2983
2243
|
case "ForbiddenException":
|
|
2984
2244
|
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
2985
|
-
|
|
2986
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
2987
|
-
name: errorCode,
|
|
2988
|
-
$metadata: deserializeMetadata(output),
|
|
2989
|
-
};
|
|
2990
|
-
break;
|
|
2245
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
2991
2246
|
case "InternalServerErrorException":
|
|
2992
2247
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2993
|
-
|
|
2994
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
2995
|
-
name: errorCode,
|
|
2996
|
-
$metadata: deserializeMetadata(output),
|
|
2997
|
-
};
|
|
2998
|
-
break;
|
|
2248
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2999
2249
|
case "NotFoundException":
|
|
3000
2250
|
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
3001
|
-
|
|
3002
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
3003
|
-
name: errorCode,
|
|
3004
|
-
$metadata: deserializeMetadata(output),
|
|
3005
|
-
};
|
|
3006
|
-
break;
|
|
2251
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
3007
2252
|
case "ServiceUnavailableException":
|
|
3008
2253
|
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
3009
|
-
|
|
3010
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
3011
|
-
name: errorCode,
|
|
3012
|
-
$metadata: deserializeMetadata(output),
|
|
3013
|
-
};
|
|
3014
|
-
break;
|
|
2254
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3015
2255
|
case "TooManyRequestsException":
|
|
3016
2256
|
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
3017
|
-
|
|
3018
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
3019
|
-
name: errorCode,
|
|
3020
|
-
$metadata: deserializeMetadata(output),
|
|
3021
|
-
};
|
|
3022
|
-
break;
|
|
2257
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3023
2258
|
default:
|
|
3024
2259
|
const parsedBody = parsedOutput.body;
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
...parsedBody,
|
|
3028
|
-
name: `${errorCode}`,
|
|
3029
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2260
|
+
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
2261
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3030
2262
|
$fault: "client",
|
|
3031
2263
|
$metadata: deserializeMetadata(output),
|
|
3032
|
-
};
|
|
2264
|
+
});
|
|
2265
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3033
2266
|
}
|
|
3034
|
-
const message = response.message || response.Message || errorCode;
|
|
3035
|
-
response.message = message;
|
|
3036
|
-
delete response.Message;
|
|
3037
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3038
2267
|
};
|
|
3039
2268
|
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
3040
2269
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -3058,43 +2287,22 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
3058
2287
|
switch (errorCode) {
|
|
3059
2288
|
case "BadRequestException":
|
|
3060
2289
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
3061
|
-
|
|
3062
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
3063
|
-
name: errorCode,
|
|
3064
|
-
$metadata: deserializeMetadata(output),
|
|
3065
|
-
};
|
|
3066
|
-
break;
|
|
2290
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3067
2291
|
case "InternalServerErrorException":
|
|
3068
2292
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
3069
|
-
|
|
3070
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
3071
|
-
name: errorCode,
|
|
3072
|
-
$metadata: deserializeMetadata(output),
|
|
3073
|
-
};
|
|
3074
|
-
break;
|
|
2293
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
3075
2294
|
case "NotFoundException":
|
|
3076
2295
|
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
3077
|
-
|
|
3078
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
3079
|
-
name: errorCode,
|
|
3080
|
-
$metadata: deserializeMetadata(output),
|
|
3081
|
-
};
|
|
3082
|
-
break;
|
|
2296
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
3083
2297
|
default:
|
|
3084
2298
|
const parsedBody = parsedOutput.body;
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
...parsedBody,
|
|
3088
|
-
name: `${errorCode}`,
|
|
3089
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2299
|
+
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
2300
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3090
2301
|
$fault: "client",
|
|
3091
2302
|
$metadata: deserializeMetadata(output),
|
|
3092
|
-
};
|
|
2303
|
+
});
|
|
2304
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3093
2305
|
}
|
|
3094
|
-
const message = response.message || response.Message || errorCode;
|
|
3095
|
-
response.message = message;
|
|
3096
|
-
delete response.Message;
|
|
3097
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3098
2306
|
};
|
|
3099
2307
|
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
3100
2308
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -3118,43 +2326,22 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
3118
2326
|
switch (errorCode) {
|
|
3119
2327
|
case "BadRequestException":
|
|
3120
2328
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
3121
|
-
|
|
3122
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
3123
|
-
name: errorCode,
|
|
3124
|
-
$metadata: deserializeMetadata(output),
|
|
3125
|
-
};
|
|
3126
|
-
break;
|
|
2329
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3127
2330
|
case "InternalServerErrorException":
|
|
3128
2331
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
3129
|
-
|
|
3130
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
3131
|
-
name: errorCode,
|
|
3132
|
-
$metadata: deserializeMetadata(output),
|
|
3133
|
-
};
|
|
3134
|
-
break;
|
|
2332
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
3135
2333
|
case "NotFoundException":
|
|
3136
2334
|
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
3137
|
-
|
|
3138
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
3139
|
-
name: errorCode,
|
|
3140
|
-
$metadata: deserializeMetadata(output),
|
|
3141
|
-
};
|
|
3142
|
-
break;
|
|
2335
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
3143
2336
|
default:
|
|
3144
2337
|
const parsedBody = parsedOutput.body;
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
...parsedBody,
|
|
3148
|
-
name: `${errorCode}`,
|
|
3149
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2338
|
+
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
2339
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3150
2340
|
$fault: "client",
|
|
3151
2341
|
$metadata: deserializeMetadata(output),
|
|
3152
|
-
};
|
|
2342
|
+
});
|
|
2343
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3153
2344
|
}
|
|
3154
|
-
const message = response.message || response.Message || errorCode;
|
|
3155
|
-
response.message = message;
|
|
3156
|
-
delete response.Message;
|
|
3157
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3158
2345
|
};
|
|
3159
2346
|
const deserializeAws_restJson1UpdateFlowCommand = async (output, context) => {
|
|
3160
2347
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
@@ -3182,67 +2369,31 @@ const deserializeAws_restJson1UpdateFlowCommandError = async (output, context) =
|
|
|
3182
2369
|
switch (errorCode) {
|
|
3183
2370
|
case "BadRequestException":
|
|
3184
2371
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
3185
|
-
|
|
3186
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
3187
|
-
name: errorCode,
|
|
3188
|
-
$metadata: deserializeMetadata(output),
|
|
3189
|
-
};
|
|
3190
|
-
break;
|
|
2372
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3191
2373
|
case "ForbiddenException":
|
|
3192
2374
|
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
3193
|
-
|
|
3194
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
3195
|
-
name: errorCode,
|
|
3196
|
-
$metadata: deserializeMetadata(output),
|
|
3197
|
-
};
|
|
3198
|
-
break;
|
|
2375
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
3199
2376
|
case "InternalServerErrorException":
|
|
3200
2377
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
3201
|
-
|
|
3202
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
3203
|
-
name: errorCode,
|
|
3204
|
-
$metadata: deserializeMetadata(output),
|
|
3205
|
-
};
|
|
3206
|
-
break;
|
|
2378
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
3207
2379
|
case "NotFoundException":
|
|
3208
2380
|
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
3209
|
-
|
|
3210
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
3211
|
-
name: errorCode,
|
|
3212
|
-
$metadata: deserializeMetadata(output),
|
|
3213
|
-
};
|
|
3214
|
-
break;
|
|
2381
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
3215
2382
|
case "ServiceUnavailableException":
|
|
3216
2383
|
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
3217
|
-
|
|
3218
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
3219
|
-
name: errorCode,
|
|
3220
|
-
$metadata: deserializeMetadata(output),
|
|
3221
|
-
};
|
|
3222
|
-
break;
|
|
2384
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3223
2385
|
case "TooManyRequestsException":
|
|
3224
2386
|
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
3225
|
-
|
|
3226
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
3227
|
-
name: errorCode,
|
|
3228
|
-
$metadata: deserializeMetadata(output),
|
|
3229
|
-
};
|
|
3230
|
-
break;
|
|
2387
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3231
2388
|
default:
|
|
3232
2389
|
const parsedBody = parsedOutput.body;
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
...parsedBody,
|
|
3236
|
-
name: `${errorCode}`,
|
|
3237
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2390
|
+
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
2391
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3238
2392
|
$fault: "client",
|
|
3239
2393
|
$metadata: deserializeMetadata(output),
|
|
3240
|
-
};
|
|
2394
|
+
});
|
|
2395
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3241
2396
|
}
|
|
3242
|
-
const message = response.message || response.Message || errorCode;
|
|
3243
|
-
response.message = message;
|
|
3244
|
-
delete response.Message;
|
|
3245
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3246
2397
|
};
|
|
3247
2398
|
const deserializeAws_restJson1UpdateFlowEntitlementCommand = async (output, context) => {
|
|
3248
2399
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
@@ -3274,67 +2425,31 @@ const deserializeAws_restJson1UpdateFlowEntitlementCommandError = async (output,
|
|
|
3274
2425
|
switch (errorCode) {
|
|
3275
2426
|
case "BadRequestException":
|
|
3276
2427
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
3277
|
-
|
|
3278
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
3279
|
-
name: errorCode,
|
|
3280
|
-
$metadata: deserializeMetadata(output),
|
|
3281
|
-
};
|
|
3282
|
-
break;
|
|
2428
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3283
2429
|
case "ForbiddenException":
|
|
3284
2430
|
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
3285
|
-
|
|
3286
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
3287
|
-
name: errorCode,
|
|
3288
|
-
$metadata: deserializeMetadata(output),
|
|
3289
|
-
};
|
|
3290
|
-
break;
|
|
2431
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
3291
2432
|
case "InternalServerErrorException":
|
|
3292
2433
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
3293
|
-
|
|
3294
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
3295
|
-
name: errorCode,
|
|
3296
|
-
$metadata: deserializeMetadata(output),
|
|
3297
|
-
};
|
|
3298
|
-
break;
|
|
2434
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
3299
2435
|
case "NotFoundException":
|
|
3300
2436
|
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
3301
|
-
|
|
3302
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
3303
|
-
name: errorCode,
|
|
3304
|
-
$metadata: deserializeMetadata(output),
|
|
3305
|
-
};
|
|
3306
|
-
break;
|
|
2437
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
3307
2438
|
case "ServiceUnavailableException":
|
|
3308
2439
|
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
3309
|
-
|
|
3310
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
3311
|
-
name: errorCode,
|
|
3312
|
-
$metadata: deserializeMetadata(output),
|
|
3313
|
-
};
|
|
3314
|
-
break;
|
|
2440
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3315
2441
|
case "TooManyRequestsException":
|
|
3316
2442
|
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
3317
|
-
|
|
3318
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
3319
|
-
name: errorCode,
|
|
3320
|
-
$metadata: deserializeMetadata(output),
|
|
3321
|
-
};
|
|
3322
|
-
break;
|
|
2443
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3323
2444
|
default:
|
|
3324
2445
|
const parsedBody = parsedOutput.body;
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
...parsedBody,
|
|
3328
|
-
name: `${errorCode}`,
|
|
3329
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2446
|
+
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
2447
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3330
2448
|
$fault: "client",
|
|
3331
2449
|
$metadata: deserializeMetadata(output),
|
|
3332
|
-
};
|
|
2450
|
+
});
|
|
2451
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3333
2452
|
}
|
|
3334
|
-
const message = response.message || response.Message || errorCode;
|
|
3335
|
-
response.message = message;
|
|
3336
|
-
delete response.Message;
|
|
3337
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3338
2453
|
};
|
|
3339
2454
|
const deserializeAws_restJson1UpdateFlowMediaStreamCommand = async (output, context) => {
|
|
3340
2455
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
@@ -3366,67 +2481,31 @@ const deserializeAws_restJson1UpdateFlowMediaStreamCommandError = async (output,
|
|
|
3366
2481
|
switch (errorCode) {
|
|
3367
2482
|
case "BadRequestException":
|
|
3368
2483
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
3369
|
-
|
|
3370
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
3371
|
-
name: errorCode,
|
|
3372
|
-
$metadata: deserializeMetadata(output),
|
|
3373
|
-
};
|
|
3374
|
-
break;
|
|
2484
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3375
2485
|
case "ForbiddenException":
|
|
3376
2486
|
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
3377
|
-
|
|
3378
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
3379
|
-
name: errorCode,
|
|
3380
|
-
$metadata: deserializeMetadata(output),
|
|
3381
|
-
};
|
|
3382
|
-
break;
|
|
2487
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
3383
2488
|
case "InternalServerErrorException":
|
|
3384
2489
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
3385
|
-
|
|
3386
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
3387
|
-
name: errorCode,
|
|
3388
|
-
$metadata: deserializeMetadata(output),
|
|
3389
|
-
};
|
|
3390
|
-
break;
|
|
2490
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
3391
2491
|
case "NotFoundException":
|
|
3392
2492
|
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
3393
|
-
|
|
3394
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
3395
|
-
name: errorCode,
|
|
3396
|
-
$metadata: deserializeMetadata(output),
|
|
3397
|
-
};
|
|
3398
|
-
break;
|
|
2493
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
3399
2494
|
case "ServiceUnavailableException":
|
|
3400
2495
|
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
3401
|
-
|
|
3402
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
3403
|
-
name: errorCode,
|
|
3404
|
-
$metadata: deserializeMetadata(output),
|
|
3405
|
-
};
|
|
3406
|
-
break;
|
|
2496
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3407
2497
|
case "TooManyRequestsException":
|
|
3408
2498
|
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
3409
|
-
|
|
3410
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
3411
|
-
name: errorCode,
|
|
3412
|
-
$metadata: deserializeMetadata(output),
|
|
3413
|
-
};
|
|
3414
|
-
break;
|
|
2499
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3415
2500
|
default:
|
|
3416
2501
|
const parsedBody = parsedOutput.body;
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
...parsedBody,
|
|
3420
|
-
name: `${errorCode}`,
|
|
3421
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2502
|
+
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
2503
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3422
2504
|
$fault: "client",
|
|
3423
2505
|
$metadata: deserializeMetadata(output),
|
|
3424
|
-
};
|
|
2506
|
+
});
|
|
2507
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3425
2508
|
}
|
|
3426
|
-
const message = response.message || response.Message || errorCode;
|
|
3427
|
-
response.message = message;
|
|
3428
|
-
delete response.Message;
|
|
3429
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3430
2509
|
};
|
|
3431
2510
|
const deserializeAws_restJson1UpdateFlowOutputCommand = async (output, context) => {
|
|
3432
2511
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
@@ -3458,67 +2537,31 @@ const deserializeAws_restJson1UpdateFlowOutputCommandError = async (output, cont
|
|
|
3458
2537
|
switch (errorCode) {
|
|
3459
2538
|
case "BadRequestException":
|
|
3460
2539
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
3461
|
-
|
|
3462
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
3463
|
-
name: errorCode,
|
|
3464
|
-
$metadata: deserializeMetadata(output),
|
|
3465
|
-
};
|
|
3466
|
-
break;
|
|
2540
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3467
2541
|
case "ForbiddenException":
|
|
3468
2542
|
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
3469
|
-
|
|
3470
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
3471
|
-
name: errorCode,
|
|
3472
|
-
$metadata: deserializeMetadata(output),
|
|
3473
|
-
};
|
|
3474
|
-
break;
|
|
2543
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
3475
2544
|
case "InternalServerErrorException":
|
|
3476
2545
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
3477
|
-
|
|
3478
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
3479
|
-
name: errorCode,
|
|
3480
|
-
$metadata: deserializeMetadata(output),
|
|
3481
|
-
};
|
|
3482
|
-
break;
|
|
2546
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
3483
2547
|
case "NotFoundException":
|
|
3484
2548
|
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
3485
|
-
|
|
3486
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
3487
|
-
name: errorCode,
|
|
3488
|
-
$metadata: deserializeMetadata(output),
|
|
3489
|
-
};
|
|
3490
|
-
break;
|
|
2549
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
3491
2550
|
case "ServiceUnavailableException":
|
|
3492
2551
|
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
3493
|
-
|
|
3494
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
3495
|
-
name: errorCode,
|
|
3496
|
-
$metadata: deserializeMetadata(output),
|
|
3497
|
-
};
|
|
3498
|
-
break;
|
|
2552
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3499
2553
|
case "TooManyRequestsException":
|
|
3500
2554
|
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
3501
|
-
|
|
3502
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
3503
|
-
name: errorCode,
|
|
3504
|
-
$metadata: deserializeMetadata(output),
|
|
3505
|
-
};
|
|
3506
|
-
break;
|
|
2555
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3507
2556
|
default:
|
|
3508
2557
|
const parsedBody = parsedOutput.body;
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
...parsedBody,
|
|
3512
|
-
name: `${errorCode}`,
|
|
3513
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2558
|
+
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
2559
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3514
2560
|
$fault: "client",
|
|
3515
2561
|
$metadata: deserializeMetadata(output),
|
|
3516
|
-
};
|
|
2562
|
+
});
|
|
2563
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3517
2564
|
}
|
|
3518
|
-
const message = response.message || response.Message || errorCode;
|
|
3519
|
-
response.message = message;
|
|
3520
|
-
delete response.Message;
|
|
3521
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3522
2565
|
};
|
|
3523
2566
|
const deserializeAws_restJson1UpdateFlowSourceCommand = async (output, context) => {
|
|
3524
2567
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
@@ -3550,184 +2593,139 @@ const deserializeAws_restJson1UpdateFlowSourceCommandError = async (output, cont
|
|
|
3550
2593
|
switch (errorCode) {
|
|
3551
2594
|
case "BadRequestException":
|
|
3552
2595
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
3553
|
-
|
|
3554
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
3555
|
-
name: errorCode,
|
|
3556
|
-
$metadata: deserializeMetadata(output),
|
|
3557
|
-
};
|
|
3558
|
-
break;
|
|
2596
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3559
2597
|
case "ForbiddenException":
|
|
3560
2598
|
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
3561
|
-
|
|
3562
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
3563
|
-
name: errorCode,
|
|
3564
|
-
$metadata: deserializeMetadata(output),
|
|
3565
|
-
};
|
|
3566
|
-
break;
|
|
2599
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
3567
2600
|
case "InternalServerErrorException":
|
|
3568
2601
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
3569
|
-
|
|
3570
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
3571
|
-
name: errorCode,
|
|
3572
|
-
$metadata: deserializeMetadata(output),
|
|
3573
|
-
};
|
|
3574
|
-
break;
|
|
2602
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
3575
2603
|
case "NotFoundException":
|
|
3576
2604
|
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
3577
|
-
|
|
3578
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
3579
|
-
name: errorCode,
|
|
3580
|
-
$metadata: deserializeMetadata(output),
|
|
3581
|
-
};
|
|
3582
|
-
break;
|
|
2605
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
3583
2606
|
case "ServiceUnavailableException":
|
|
3584
2607
|
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
3585
|
-
|
|
3586
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
3587
|
-
name: errorCode,
|
|
3588
|
-
$metadata: deserializeMetadata(output),
|
|
3589
|
-
};
|
|
3590
|
-
break;
|
|
2608
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3591
2609
|
case "TooManyRequestsException":
|
|
3592
2610
|
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
3593
|
-
|
|
3594
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
3595
|
-
name: errorCode,
|
|
3596
|
-
$metadata: deserializeMetadata(output),
|
|
3597
|
-
};
|
|
3598
|
-
break;
|
|
2611
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3599
2612
|
default:
|
|
3600
2613
|
const parsedBody = parsedOutput.body;
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
...parsedBody,
|
|
3604
|
-
name: `${errorCode}`,
|
|
3605
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2614
|
+
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
2615
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3606
2616
|
$fault: "client",
|
|
3607
2617
|
$metadata: deserializeMetadata(output),
|
|
3608
|
-
};
|
|
2618
|
+
});
|
|
2619
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3609
2620
|
}
|
|
3610
|
-
const message = response.message || response.Message || errorCode;
|
|
3611
|
-
response.message = message;
|
|
3612
|
-
delete response.Message;
|
|
3613
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3614
2621
|
};
|
|
3615
2622
|
const deserializeAws_restJson1AddFlowOutputs420ExceptionResponse = async (parsedOutput, context) => {
|
|
3616
|
-
const contents = {
|
|
3617
|
-
name: "AddFlowOutputs420Exception",
|
|
3618
|
-
$fault: "client",
|
|
3619
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3620
|
-
Message: undefined,
|
|
3621
|
-
};
|
|
2623
|
+
const contents = {};
|
|
3622
2624
|
const data = parsedOutput.body;
|
|
3623
2625
|
if (data.message !== undefined && data.message !== null) {
|
|
3624
2626
|
contents.Message = smithy_client_1.expectString(data.message);
|
|
3625
2627
|
}
|
|
3626
|
-
|
|
2628
|
+
const exception = new models_0_1.AddFlowOutputs420Exception({
|
|
2629
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2630
|
+
...contents,
|
|
2631
|
+
});
|
|
2632
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3627
2633
|
};
|
|
3628
2634
|
const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput, context) => {
|
|
3629
|
-
const contents = {
|
|
3630
|
-
name: "BadRequestException",
|
|
3631
|
-
$fault: "client",
|
|
3632
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3633
|
-
Message: undefined,
|
|
3634
|
-
};
|
|
2635
|
+
const contents = {};
|
|
3635
2636
|
const data = parsedOutput.body;
|
|
3636
2637
|
if (data.message !== undefined && data.message !== null) {
|
|
3637
2638
|
contents.Message = smithy_client_1.expectString(data.message);
|
|
3638
2639
|
}
|
|
3639
|
-
|
|
2640
|
+
const exception = new models_0_1.BadRequestException({
|
|
2641
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2642
|
+
...contents,
|
|
2643
|
+
});
|
|
2644
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3640
2645
|
};
|
|
3641
2646
|
const deserializeAws_restJson1CreateFlow420ExceptionResponse = async (parsedOutput, context) => {
|
|
3642
|
-
const contents = {
|
|
3643
|
-
name: "CreateFlow420Exception",
|
|
3644
|
-
$fault: "client",
|
|
3645
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3646
|
-
Message: undefined,
|
|
3647
|
-
};
|
|
2647
|
+
const contents = {};
|
|
3648
2648
|
const data = parsedOutput.body;
|
|
3649
2649
|
if (data.message !== undefined && data.message !== null) {
|
|
3650
2650
|
contents.Message = smithy_client_1.expectString(data.message);
|
|
3651
2651
|
}
|
|
3652
|
-
|
|
2652
|
+
const exception = new models_0_1.CreateFlow420Exception({
|
|
2653
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2654
|
+
...contents,
|
|
2655
|
+
});
|
|
2656
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3653
2657
|
};
|
|
3654
2658
|
const deserializeAws_restJson1ForbiddenExceptionResponse = async (parsedOutput, context) => {
|
|
3655
|
-
const contents = {
|
|
3656
|
-
name: "ForbiddenException",
|
|
3657
|
-
$fault: "client",
|
|
3658
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3659
|
-
Message: undefined,
|
|
3660
|
-
};
|
|
2659
|
+
const contents = {};
|
|
3661
2660
|
const data = parsedOutput.body;
|
|
3662
2661
|
if (data.message !== undefined && data.message !== null) {
|
|
3663
2662
|
contents.Message = smithy_client_1.expectString(data.message);
|
|
3664
2663
|
}
|
|
3665
|
-
|
|
2664
|
+
const exception = new models_0_1.ForbiddenException({
|
|
2665
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2666
|
+
...contents,
|
|
2667
|
+
});
|
|
2668
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3666
2669
|
};
|
|
3667
2670
|
const deserializeAws_restJson1GrantFlowEntitlements420ExceptionResponse = async (parsedOutput, context) => {
|
|
3668
|
-
const contents = {
|
|
3669
|
-
name: "GrantFlowEntitlements420Exception",
|
|
3670
|
-
$fault: "client",
|
|
3671
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3672
|
-
Message: undefined,
|
|
3673
|
-
};
|
|
2671
|
+
const contents = {};
|
|
3674
2672
|
const data = parsedOutput.body;
|
|
3675
2673
|
if (data.message !== undefined && data.message !== null) {
|
|
3676
2674
|
contents.Message = smithy_client_1.expectString(data.message);
|
|
3677
2675
|
}
|
|
3678
|
-
|
|
2676
|
+
const exception = new models_0_1.GrantFlowEntitlements420Exception({
|
|
2677
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2678
|
+
...contents,
|
|
2679
|
+
});
|
|
2680
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3679
2681
|
};
|
|
3680
2682
|
const deserializeAws_restJson1InternalServerErrorExceptionResponse = async (parsedOutput, context) => {
|
|
3681
|
-
const contents = {
|
|
3682
|
-
name: "InternalServerErrorException",
|
|
3683
|
-
$fault: "server",
|
|
3684
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3685
|
-
Message: undefined,
|
|
3686
|
-
};
|
|
2683
|
+
const contents = {};
|
|
3687
2684
|
const data = parsedOutput.body;
|
|
3688
2685
|
if (data.message !== undefined && data.message !== null) {
|
|
3689
2686
|
contents.Message = smithy_client_1.expectString(data.message);
|
|
3690
2687
|
}
|
|
3691
|
-
|
|
2688
|
+
const exception = new models_0_1.InternalServerErrorException({
|
|
2689
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2690
|
+
...contents,
|
|
2691
|
+
});
|
|
2692
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3692
2693
|
};
|
|
3693
2694
|
const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
3694
|
-
const contents = {
|
|
3695
|
-
name: "NotFoundException",
|
|
3696
|
-
$fault: "client",
|
|
3697
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3698
|
-
Message: undefined,
|
|
3699
|
-
};
|
|
2695
|
+
const contents = {};
|
|
3700
2696
|
const data = parsedOutput.body;
|
|
3701
2697
|
if (data.message !== undefined && data.message !== null) {
|
|
3702
2698
|
contents.Message = smithy_client_1.expectString(data.message);
|
|
3703
2699
|
}
|
|
3704
|
-
|
|
2700
|
+
const exception = new models_0_1.NotFoundException({
|
|
2701
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2702
|
+
...contents,
|
|
2703
|
+
});
|
|
2704
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3705
2705
|
};
|
|
3706
2706
|
const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parsedOutput, context) => {
|
|
3707
|
-
const contents = {
|
|
3708
|
-
name: "ServiceUnavailableException",
|
|
3709
|
-
$fault: "server",
|
|
3710
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3711
|
-
Message: undefined,
|
|
3712
|
-
};
|
|
2707
|
+
const contents = {};
|
|
3713
2708
|
const data = parsedOutput.body;
|
|
3714
2709
|
if (data.message !== undefined && data.message !== null) {
|
|
3715
2710
|
contents.Message = smithy_client_1.expectString(data.message);
|
|
3716
2711
|
}
|
|
3717
|
-
|
|
2712
|
+
const exception = new models_0_1.ServiceUnavailableException({
|
|
2713
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2714
|
+
...contents,
|
|
2715
|
+
});
|
|
2716
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3718
2717
|
};
|
|
3719
2718
|
const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOutput, context) => {
|
|
3720
|
-
const contents = {
|
|
3721
|
-
name: "TooManyRequestsException",
|
|
3722
|
-
$fault: "client",
|
|
3723
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3724
|
-
Message: undefined,
|
|
3725
|
-
};
|
|
2719
|
+
const contents = {};
|
|
3726
2720
|
const data = parsedOutput.body;
|
|
3727
2721
|
if (data.message !== undefined && data.message !== null) {
|
|
3728
2722
|
contents.Message = smithy_client_1.expectString(data.message);
|
|
3729
2723
|
}
|
|
3730
|
-
|
|
2724
|
+
const exception = new models_0_1.TooManyRequestsException({
|
|
2725
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2726
|
+
...contents,
|
|
2727
|
+
});
|
|
2728
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3731
2729
|
};
|
|
3732
2730
|
const serializeAws_restJson1__listOf__string = (input, context) => {
|
|
3733
2731
|
return input
|
|
@@ -4088,7 +3086,7 @@ const serializeAws_restJson1VpcInterfaceRequest = (input, context) => {
|
|
|
4088
3086
|
};
|
|
4089
3087
|
};
|
|
4090
3088
|
const deserializeAws_restJson1__listOf__string = (output, context) => {
|
|
4091
|
-
|
|
3089
|
+
const retVal = (output || [])
|
|
4092
3090
|
.filter((e) => e != null)
|
|
4093
3091
|
.map((entry) => {
|
|
4094
3092
|
if (entry === null) {
|
|
@@ -4096,9 +3094,10 @@ const deserializeAws_restJson1__listOf__string = (output, context) => {
|
|
|
4096
3094
|
}
|
|
4097
3095
|
return smithy_client_1.expectString(entry);
|
|
4098
3096
|
});
|
|
3097
|
+
return retVal;
|
|
4099
3098
|
};
|
|
4100
3099
|
const deserializeAws_restJson1__listOfDestinationConfiguration = (output, context) => {
|
|
4101
|
-
|
|
3100
|
+
const retVal = (output || [])
|
|
4102
3101
|
.filter((e) => e != null)
|
|
4103
3102
|
.map((entry) => {
|
|
4104
3103
|
if (entry === null) {
|
|
@@ -4106,9 +3105,10 @@ const deserializeAws_restJson1__listOfDestinationConfiguration = (output, contex
|
|
|
4106
3105
|
}
|
|
4107
3106
|
return deserializeAws_restJson1DestinationConfiguration(entry, context);
|
|
4108
3107
|
});
|
|
3108
|
+
return retVal;
|
|
4109
3109
|
};
|
|
4110
3110
|
const deserializeAws_restJson1__listOfEntitlement = (output, context) => {
|
|
4111
|
-
|
|
3111
|
+
const retVal = (output || [])
|
|
4112
3112
|
.filter((e) => e != null)
|
|
4113
3113
|
.map((entry) => {
|
|
4114
3114
|
if (entry === null) {
|
|
@@ -4116,9 +3116,10 @@ const deserializeAws_restJson1__listOfEntitlement = (output, context) => {
|
|
|
4116
3116
|
}
|
|
4117
3117
|
return deserializeAws_restJson1Entitlement(entry, context);
|
|
4118
3118
|
});
|
|
3119
|
+
return retVal;
|
|
4119
3120
|
};
|
|
4120
3121
|
const deserializeAws_restJson1__listOfInputConfiguration = (output, context) => {
|
|
4121
|
-
|
|
3122
|
+
const retVal = (output || [])
|
|
4122
3123
|
.filter((e) => e != null)
|
|
4123
3124
|
.map((entry) => {
|
|
4124
3125
|
if (entry === null) {
|
|
@@ -4126,9 +3127,10 @@ const deserializeAws_restJson1__listOfInputConfiguration = (output, context) =>
|
|
|
4126
3127
|
}
|
|
4127
3128
|
return deserializeAws_restJson1InputConfiguration(entry, context);
|
|
4128
3129
|
});
|
|
3130
|
+
return retVal;
|
|
4129
3131
|
};
|
|
4130
3132
|
const deserializeAws_restJson1__listOfListedEntitlement = (output, context) => {
|
|
4131
|
-
|
|
3133
|
+
const retVal = (output || [])
|
|
4132
3134
|
.filter((e) => e != null)
|
|
4133
3135
|
.map((entry) => {
|
|
4134
3136
|
if (entry === null) {
|
|
@@ -4136,9 +3138,10 @@ const deserializeAws_restJson1__listOfListedEntitlement = (output, context) => {
|
|
|
4136
3138
|
}
|
|
4137
3139
|
return deserializeAws_restJson1ListedEntitlement(entry, context);
|
|
4138
3140
|
});
|
|
3141
|
+
return retVal;
|
|
4139
3142
|
};
|
|
4140
3143
|
const deserializeAws_restJson1__listOfListedFlow = (output, context) => {
|
|
4141
|
-
|
|
3144
|
+
const retVal = (output || [])
|
|
4142
3145
|
.filter((e) => e != null)
|
|
4143
3146
|
.map((entry) => {
|
|
4144
3147
|
if (entry === null) {
|
|
@@ -4146,9 +3149,10 @@ const deserializeAws_restJson1__listOfListedFlow = (output, context) => {
|
|
|
4146
3149
|
}
|
|
4147
3150
|
return deserializeAws_restJson1ListedFlow(entry, context);
|
|
4148
3151
|
});
|
|
3152
|
+
return retVal;
|
|
4149
3153
|
};
|
|
4150
3154
|
const deserializeAws_restJson1__listOfMediaStream = (output, context) => {
|
|
4151
|
-
|
|
3155
|
+
const retVal = (output || [])
|
|
4152
3156
|
.filter((e) => e != null)
|
|
4153
3157
|
.map((entry) => {
|
|
4154
3158
|
if (entry === null) {
|
|
@@ -4156,9 +3160,10 @@ const deserializeAws_restJson1__listOfMediaStream = (output, context) => {
|
|
|
4156
3160
|
}
|
|
4157
3161
|
return deserializeAws_restJson1MediaStream(entry, context);
|
|
4158
3162
|
});
|
|
3163
|
+
return retVal;
|
|
4159
3164
|
};
|
|
4160
3165
|
const deserializeAws_restJson1__listOfMediaStreamOutputConfiguration = (output, context) => {
|
|
4161
|
-
|
|
3166
|
+
const retVal = (output || [])
|
|
4162
3167
|
.filter((e) => e != null)
|
|
4163
3168
|
.map((entry) => {
|
|
4164
3169
|
if (entry === null) {
|
|
@@ -4166,9 +3171,10 @@ const deserializeAws_restJson1__listOfMediaStreamOutputConfiguration = (output,
|
|
|
4166
3171
|
}
|
|
4167
3172
|
return deserializeAws_restJson1MediaStreamOutputConfiguration(entry, context);
|
|
4168
3173
|
});
|
|
3174
|
+
return retVal;
|
|
4169
3175
|
};
|
|
4170
3176
|
const deserializeAws_restJson1__listOfMediaStreamSourceConfiguration = (output, context) => {
|
|
4171
|
-
|
|
3177
|
+
const retVal = (output || [])
|
|
4172
3178
|
.filter((e) => e != null)
|
|
4173
3179
|
.map((entry) => {
|
|
4174
3180
|
if (entry === null) {
|
|
@@ -4176,9 +3182,10 @@ const deserializeAws_restJson1__listOfMediaStreamSourceConfiguration = (output,
|
|
|
4176
3182
|
}
|
|
4177
3183
|
return deserializeAws_restJson1MediaStreamSourceConfiguration(entry, context);
|
|
4178
3184
|
});
|
|
3185
|
+
return retVal;
|
|
4179
3186
|
};
|
|
4180
3187
|
const deserializeAws_restJson1__listOfOffering = (output, context) => {
|
|
4181
|
-
|
|
3188
|
+
const retVal = (output || [])
|
|
4182
3189
|
.filter((e) => e != null)
|
|
4183
3190
|
.map((entry) => {
|
|
4184
3191
|
if (entry === null) {
|
|
@@ -4186,9 +3193,10 @@ const deserializeAws_restJson1__listOfOffering = (output, context) => {
|
|
|
4186
3193
|
}
|
|
4187
3194
|
return deserializeAws_restJson1Offering(entry, context);
|
|
4188
3195
|
});
|
|
3196
|
+
return retVal;
|
|
4189
3197
|
};
|
|
4190
3198
|
const deserializeAws_restJson1__listOfOutput = (output, context) => {
|
|
4191
|
-
|
|
3199
|
+
const retVal = (output || [])
|
|
4192
3200
|
.filter((e) => e != null)
|
|
4193
3201
|
.map((entry) => {
|
|
4194
3202
|
if (entry === null) {
|
|
@@ -4196,9 +3204,10 @@ const deserializeAws_restJson1__listOfOutput = (output, context) => {
|
|
|
4196
3204
|
}
|
|
4197
3205
|
return deserializeAws_restJson1Output(entry, context);
|
|
4198
3206
|
});
|
|
3207
|
+
return retVal;
|
|
4199
3208
|
};
|
|
4200
3209
|
const deserializeAws_restJson1__listOfReservation = (output, context) => {
|
|
4201
|
-
|
|
3210
|
+
const retVal = (output || [])
|
|
4202
3211
|
.filter((e) => e != null)
|
|
4203
3212
|
.map((entry) => {
|
|
4204
3213
|
if (entry === null) {
|
|
@@ -4206,9 +3215,10 @@ const deserializeAws_restJson1__listOfReservation = (output, context) => {
|
|
|
4206
3215
|
}
|
|
4207
3216
|
return deserializeAws_restJson1Reservation(entry, context);
|
|
4208
3217
|
});
|
|
3218
|
+
return retVal;
|
|
4209
3219
|
};
|
|
4210
3220
|
const deserializeAws_restJson1__listOfSource = (output, context) => {
|
|
4211
|
-
|
|
3221
|
+
const retVal = (output || [])
|
|
4212
3222
|
.filter((e) => e != null)
|
|
4213
3223
|
.map((entry) => {
|
|
4214
3224
|
if (entry === null) {
|
|
@@ -4216,9 +3226,10 @@ const deserializeAws_restJson1__listOfSource = (output, context) => {
|
|
|
4216
3226
|
}
|
|
4217
3227
|
return deserializeAws_restJson1Source(entry, context);
|
|
4218
3228
|
});
|
|
3229
|
+
return retVal;
|
|
4219
3230
|
};
|
|
4220
3231
|
const deserializeAws_restJson1__listOfVpcInterface = (output, context) => {
|
|
4221
|
-
|
|
3232
|
+
const retVal = (output || [])
|
|
4222
3233
|
.filter((e) => e != null)
|
|
4223
3234
|
.map((entry) => {
|
|
4224
3235
|
if (entry === null) {
|
|
@@ -4226,6 +3237,7 @@ const deserializeAws_restJson1__listOfVpcInterface = (output, context) => {
|
|
|
4226
3237
|
}
|
|
4227
3238
|
return deserializeAws_restJson1VpcInterface(entry, context);
|
|
4228
3239
|
});
|
|
3240
|
+
return retVal;
|
|
4229
3241
|
};
|
|
4230
3242
|
const deserializeAws_restJson1__mapOf__string = (output, context) => {
|
|
4231
3243
|
return Object.entries(output).reduce((acc, [key, value]) => {
|