@aws-sdk/client-medialive 3.503.1 → 3.507.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -2139,7 +2139,7 @@ var se_UpdateReservationCommand = /* @__PURE__ */ __name(async (input, context)
2139
2139
  }, "se_UpdateReservationCommand");
2140
2140
  var de_AcceptInputDeviceTransferCommand = /* @__PURE__ */ __name(async (output, context) => {
2141
2141
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2142
- return de_AcceptInputDeviceTransferCommandError(output, context);
2142
+ return de_CommandError(output, context);
2143
2143
  }
2144
2144
  const contents = (0, import_smithy_client.map)({
2145
2145
  $metadata: deserializeMetadata(output)
@@ -2147,52 +2147,9 @@ var de_AcceptInputDeviceTransferCommand = /* @__PURE__ */ __name(async (output,
2147
2147
  await (0, import_smithy_client.collectBody)(output.body, context);
2148
2148
  return contents;
2149
2149
  }, "de_AcceptInputDeviceTransferCommand");
2150
- var de_AcceptInputDeviceTransferCommandError = /* @__PURE__ */ __name(async (output, context) => {
2151
- const parsedOutput = {
2152
- ...output,
2153
- body: await parseErrorBody(output.body, context)
2154
- };
2155
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2156
- switch (errorCode) {
2157
- case "BadGatewayException":
2158
- case "com.amazonaws.medialive#BadGatewayException":
2159
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
2160
- case "BadRequestException":
2161
- case "com.amazonaws.medialive#BadRequestException":
2162
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2163
- case "ConflictException":
2164
- case "com.amazonaws.medialive#ConflictException":
2165
- throw await de_ConflictExceptionRes(parsedOutput, context);
2166
- case "ForbiddenException":
2167
- case "com.amazonaws.medialive#ForbiddenException":
2168
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2169
- case "GatewayTimeoutException":
2170
- case "com.amazonaws.medialive#GatewayTimeoutException":
2171
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
2172
- case "InternalServerErrorException":
2173
- case "com.amazonaws.medialive#InternalServerErrorException":
2174
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2175
- case "NotFoundException":
2176
- case "com.amazonaws.medialive#NotFoundException":
2177
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2178
- case "TooManyRequestsException":
2179
- case "com.amazonaws.medialive#TooManyRequestsException":
2180
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2181
- case "UnprocessableEntityException":
2182
- case "com.amazonaws.medialive#UnprocessableEntityException":
2183
- throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
2184
- default:
2185
- const parsedBody = parsedOutput.body;
2186
- return throwDefaultError({
2187
- output,
2188
- parsedBody,
2189
- errorCode
2190
- });
2191
- }
2192
- }, "de_AcceptInputDeviceTransferCommandError");
2193
2150
  var de_BatchDeleteCommand = /* @__PURE__ */ __name(async (output, context) => {
2194
2151
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2195
- return de_BatchDeleteCommandError(output, context);
2152
+ return de_CommandError(output, context);
2196
2153
  }
2197
2154
  const contents = (0, import_smithy_client.map)({
2198
2155
  $metadata: deserializeMetadata(output)
@@ -2205,49 +2162,9 @@ var de_BatchDeleteCommand = /* @__PURE__ */ __name(async (output, context) => {
2205
2162
  Object.assign(contents, doc);
2206
2163
  return contents;
2207
2164
  }, "de_BatchDeleteCommand");
2208
- var de_BatchDeleteCommandError = /* @__PURE__ */ __name(async (output, context) => {
2209
- const parsedOutput = {
2210
- ...output,
2211
- body: await parseErrorBody(output.body, context)
2212
- };
2213
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2214
- switch (errorCode) {
2215
- case "BadGatewayException":
2216
- case "com.amazonaws.medialive#BadGatewayException":
2217
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
2218
- case "BadRequestException":
2219
- case "com.amazonaws.medialive#BadRequestException":
2220
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2221
- case "ConflictException":
2222
- case "com.amazonaws.medialive#ConflictException":
2223
- throw await de_ConflictExceptionRes(parsedOutput, context);
2224
- case "ForbiddenException":
2225
- case "com.amazonaws.medialive#ForbiddenException":
2226
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2227
- case "GatewayTimeoutException":
2228
- case "com.amazonaws.medialive#GatewayTimeoutException":
2229
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
2230
- case "InternalServerErrorException":
2231
- case "com.amazonaws.medialive#InternalServerErrorException":
2232
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2233
- case "NotFoundException":
2234
- case "com.amazonaws.medialive#NotFoundException":
2235
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2236
- case "TooManyRequestsException":
2237
- case "com.amazonaws.medialive#TooManyRequestsException":
2238
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2239
- default:
2240
- const parsedBody = parsedOutput.body;
2241
- return throwDefaultError({
2242
- output,
2243
- parsedBody,
2244
- errorCode
2245
- });
2246
- }
2247
- }, "de_BatchDeleteCommandError");
2248
2165
  var de_BatchStartCommand = /* @__PURE__ */ __name(async (output, context) => {
2249
2166
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2250
- return de_BatchStartCommandError(output, context);
2167
+ return de_CommandError(output, context);
2251
2168
  }
2252
2169
  const contents = (0, import_smithy_client.map)({
2253
2170
  $metadata: deserializeMetadata(output)
@@ -2260,49 +2177,9 @@ var de_BatchStartCommand = /* @__PURE__ */ __name(async (output, context) => {
2260
2177
  Object.assign(contents, doc);
2261
2178
  return contents;
2262
2179
  }, "de_BatchStartCommand");
2263
- var de_BatchStartCommandError = /* @__PURE__ */ __name(async (output, context) => {
2264
- const parsedOutput = {
2265
- ...output,
2266
- body: await parseErrorBody(output.body, context)
2267
- };
2268
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2269
- switch (errorCode) {
2270
- case "BadGatewayException":
2271
- case "com.amazonaws.medialive#BadGatewayException":
2272
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
2273
- case "BadRequestException":
2274
- case "com.amazonaws.medialive#BadRequestException":
2275
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2276
- case "ConflictException":
2277
- case "com.amazonaws.medialive#ConflictException":
2278
- throw await de_ConflictExceptionRes(parsedOutput, context);
2279
- case "ForbiddenException":
2280
- case "com.amazonaws.medialive#ForbiddenException":
2281
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2282
- case "GatewayTimeoutException":
2283
- case "com.amazonaws.medialive#GatewayTimeoutException":
2284
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
2285
- case "InternalServerErrorException":
2286
- case "com.amazonaws.medialive#InternalServerErrorException":
2287
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2288
- case "NotFoundException":
2289
- case "com.amazonaws.medialive#NotFoundException":
2290
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2291
- case "TooManyRequestsException":
2292
- case "com.amazonaws.medialive#TooManyRequestsException":
2293
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2294
- default:
2295
- const parsedBody = parsedOutput.body;
2296
- return throwDefaultError({
2297
- output,
2298
- parsedBody,
2299
- errorCode
2300
- });
2301
- }
2302
- }, "de_BatchStartCommandError");
2303
2180
  var de_BatchStopCommand = /* @__PURE__ */ __name(async (output, context) => {
2304
2181
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2305
- return de_BatchStopCommandError(output, context);
2182
+ return de_CommandError(output, context);
2306
2183
  }
2307
2184
  const contents = (0, import_smithy_client.map)({
2308
2185
  $metadata: deserializeMetadata(output)
@@ -2315,49 +2192,9 @@ var de_BatchStopCommand = /* @__PURE__ */ __name(async (output, context) => {
2315
2192
  Object.assign(contents, doc);
2316
2193
  return contents;
2317
2194
  }, "de_BatchStopCommand");
2318
- var de_BatchStopCommandError = /* @__PURE__ */ __name(async (output, context) => {
2319
- const parsedOutput = {
2320
- ...output,
2321
- body: await parseErrorBody(output.body, context)
2322
- };
2323
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2324
- switch (errorCode) {
2325
- case "BadGatewayException":
2326
- case "com.amazonaws.medialive#BadGatewayException":
2327
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
2328
- case "BadRequestException":
2329
- case "com.amazonaws.medialive#BadRequestException":
2330
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2331
- case "ConflictException":
2332
- case "com.amazonaws.medialive#ConflictException":
2333
- throw await de_ConflictExceptionRes(parsedOutput, context);
2334
- case "ForbiddenException":
2335
- case "com.amazonaws.medialive#ForbiddenException":
2336
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2337
- case "GatewayTimeoutException":
2338
- case "com.amazonaws.medialive#GatewayTimeoutException":
2339
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
2340
- case "InternalServerErrorException":
2341
- case "com.amazonaws.medialive#InternalServerErrorException":
2342
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2343
- case "NotFoundException":
2344
- case "com.amazonaws.medialive#NotFoundException":
2345
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2346
- case "TooManyRequestsException":
2347
- case "com.amazonaws.medialive#TooManyRequestsException":
2348
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2349
- default:
2350
- const parsedBody = parsedOutput.body;
2351
- return throwDefaultError({
2352
- output,
2353
- parsedBody,
2354
- errorCode
2355
- });
2356
- }
2357
- }, "de_BatchStopCommandError");
2358
2195
  var de_BatchUpdateScheduleCommand = /* @__PURE__ */ __name(async (output, context) => {
2359
2196
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2360
- return de_BatchUpdateScheduleCommandError(output, context);
2197
+ return de_CommandError(output, context);
2361
2198
  }
2362
2199
  const contents = (0, import_smithy_client.map)({
2363
2200
  $metadata: deserializeMetadata(output)
@@ -2370,49 +2207,9 @@ var de_BatchUpdateScheduleCommand = /* @__PURE__ */ __name(async (output, contex
2370
2207
  Object.assign(contents, doc);
2371
2208
  return contents;
2372
2209
  }, "de_BatchUpdateScheduleCommand");
2373
- var de_BatchUpdateScheduleCommandError = /* @__PURE__ */ __name(async (output, context) => {
2374
- const parsedOutput = {
2375
- ...output,
2376
- body: await parseErrorBody(output.body, context)
2377
- };
2378
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2379
- switch (errorCode) {
2380
- case "BadGatewayException":
2381
- case "com.amazonaws.medialive#BadGatewayException":
2382
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
2383
- case "BadRequestException":
2384
- case "com.amazonaws.medialive#BadRequestException":
2385
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2386
- case "ForbiddenException":
2387
- case "com.amazonaws.medialive#ForbiddenException":
2388
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2389
- case "GatewayTimeoutException":
2390
- case "com.amazonaws.medialive#GatewayTimeoutException":
2391
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
2392
- case "InternalServerErrorException":
2393
- case "com.amazonaws.medialive#InternalServerErrorException":
2394
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2395
- case "NotFoundException":
2396
- case "com.amazonaws.medialive#NotFoundException":
2397
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2398
- case "TooManyRequestsException":
2399
- case "com.amazonaws.medialive#TooManyRequestsException":
2400
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2401
- case "UnprocessableEntityException":
2402
- case "com.amazonaws.medialive#UnprocessableEntityException":
2403
- throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
2404
- default:
2405
- const parsedBody = parsedOutput.body;
2406
- return throwDefaultError({
2407
- output,
2408
- parsedBody,
2409
- errorCode
2410
- });
2411
- }
2412
- }, "de_BatchUpdateScheduleCommandError");
2413
2210
  var de_CancelInputDeviceTransferCommand = /* @__PURE__ */ __name(async (output, context) => {
2414
2211
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2415
- return de_CancelInputDeviceTransferCommandError(output, context);
2212
+ return de_CommandError(output, context);
2416
2213
  }
2417
2214
  const contents = (0, import_smithy_client.map)({
2418
2215
  $metadata: deserializeMetadata(output)
@@ -2420,52 +2217,9 @@ var de_CancelInputDeviceTransferCommand = /* @__PURE__ */ __name(async (output,
2420
2217
  await (0, import_smithy_client.collectBody)(output.body, context);
2421
2218
  return contents;
2422
2219
  }, "de_CancelInputDeviceTransferCommand");
2423
- var de_CancelInputDeviceTransferCommandError = /* @__PURE__ */ __name(async (output, context) => {
2424
- const parsedOutput = {
2425
- ...output,
2426
- body: await parseErrorBody(output.body, context)
2427
- };
2428
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2429
- switch (errorCode) {
2430
- case "BadGatewayException":
2431
- case "com.amazonaws.medialive#BadGatewayException":
2432
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
2433
- case "BadRequestException":
2434
- case "com.amazonaws.medialive#BadRequestException":
2435
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2436
- case "ConflictException":
2437
- case "com.amazonaws.medialive#ConflictException":
2438
- throw await de_ConflictExceptionRes(parsedOutput, context);
2439
- case "ForbiddenException":
2440
- case "com.amazonaws.medialive#ForbiddenException":
2441
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2442
- case "GatewayTimeoutException":
2443
- case "com.amazonaws.medialive#GatewayTimeoutException":
2444
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
2445
- case "InternalServerErrorException":
2446
- case "com.amazonaws.medialive#InternalServerErrorException":
2447
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2448
- case "NotFoundException":
2449
- case "com.amazonaws.medialive#NotFoundException":
2450
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2451
- case "TooManyRequestsException":
2452
- case "com.amazonaws.medialive#TooManyRequestsException":
2453
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2454
- case "UnprocessableEntityException":
2455
- case "com.amazonaws.medialive#UnprocessableEntityException":
2456
- throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
2457
- default:
2458
- const parsedBody = parsedOutput.body;
2459
- return throwDefaultError({
2460
- output,
2461
- parsedBody,
2462
- errorCode
2463
- });
2464
- }
2465
- }, "de_CancelInputDeviceTransferCommandError");
2466
2220
  var de_ClaimDeviceCommand = /* @__PURE__ */ __name(async (output, context) => {
2467
2221
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2468
- return de_ClaimDeviceCommandError(output, context);
2222
+ return de_CommandError(output, context);
2469
2223
  }
2470
2224
  const contents = (0, import_smithy_client.map)({
2471
2225
  $metadata: deserializeMetadata(output)
@@ -2473,49 +2227,9 @@ var de_ClaimDeviceCommand = /* @__PURE__ */ __name(async (output, context) => {
2473
2227
  await (0, import_smithy_client.collectBody)(output.body, context);
2474
2228
  return contents;
2475
2229
  }, "de_ClaimDeviceCommand");
2476
- var de_ClaimDeviceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2477
- const parsedOutput = {
2478
- ...output,
2479
- body: await parseErrorBody(output.body, context)
2480
- };
2481
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2482
- switch (errorCode) {
2483
- case "BadGatewayException":
2484
- case "com.amazonaws.medialive#BadGatewayException":
2485
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
2486
- case "BadRequestException":
2487
- case "com.amazonaws.medialive#BadRequestException":
2488
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2489
- case "ForbiddenException":
2490
- case "com.amazonaws.medialive#ForbiddenException":
2491
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2492
- case "GatewayTimeoutException":
2493
- case "com.amazonaws.medialive#GatewayTimeoutException":
2494
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
2495
- case "InternalServerErrorException":
2496
- case "com.amazonaws.medialive#InternalServerErrorException":
2497
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2498
- case "NotFoundException":
2499
- case "com.amazonaws.medialive#NotFoundException":
2500
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2501
- case "TooManyRequestsException":
2502
- case "com.amazonaws.medialive#TooManyRequestsException":
2503
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2504
- case "UnprocessableEntityException":
2505
- case "com.amazonaws.medialive#UnprocessableEntityException":
2506
- throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
2507
- default:
2508
- const parsedBody = parsedOutput.body;
2509
- return throwDefaultError({
2510
- output,
2511
- parsedBody,
2512
- errorCode
2513
- });
2514
- }
2515
- }, "de_ClaimDeviceCommandError");
2516
2230
  var de_CreateChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
2517
2231
  if (output.statusCode !== 201 && output.statusCode >= 300) {
2518
- return de_CreateChannelCommandError(output, context);
2232
+ return de_CommandError(output, context);
2519
2233
  }
2520
2234
  const contents = (0, import_smithy_client.map)({
2521
2235
  $metadata: deserializeMetadata(output)
@@ -2527,49 +2241,9 @@ var de_CreateChannelCommand = /* @__PURE__ */ __name(async (output, context) =>
2527
2241
  Object.assign(contents, doc);
2528
2242
  return contents;
2529
2243
  }, "de_CreateChannelCommand");
2530
- var de_CreateChannelCommandError = /* @__PURE__ */ __name(async (output, context) => {
2531
- const parsedOutput = {
2532
- ...output,
2533
- body: await parseErrorBody(output.body, context)
2534
- };
2535
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2536
- switch (errorCode) {
2537
- case "BadGatewayException":
2538
- case "com.amazonaws.medialive#BadGatewayException":
2539
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
2540
- case "BadRequestException":
2541
- case "com.amazonaws.medialive#BadRequestException":
2542
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2543
- case "ConflictException":
2544
- case "com.amazonaws.medialive#ConflictException":
2545
- throw await de_ConflictExceptionRes(parsedOutput, context);
2546
- case "ForbiddenException":
2547
- case "com.amazonaws.medialive#ForbiddenException":
2548
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2549
- case "GatewayTimeoutException":
2550
- case "com.amazonaws.medialive#GatewayTimeoutException":
2551
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
2552
- case "InternalServerErrorException":
2553
- case "com.amazonaws.medialive#InternalServerErrorException":
2554
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2555
- case "TooManyRequestsException":
2556
- case "com.amazonaws.medialive#TooManyRequestsException":
2557
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2558
- case "UnprocessableEntityException":
2559
- case "com.amazonaws.medialive#UnprocessableEntityException":
2560
- throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
2561
- default:
2562
- const parsedBody = parsedOutput.body;
2563
- return throwDefaultError({
2564
- output,
2565
- parsedBody,
2566
- errorCode
2567
- });
2568
- }
2569
- }, "de_CreateChannelCommandError");
2570
2244
  var de_CreateInputCommand = /* @__PURE__ */ __name(async (output, context) => {
2571
2245
  if (output.statusCode !== 201 && output.statusCode >= 300) {
2572
- return de_CreateInputCommandError(output, context);
2246
+ return de_CommandError(output, context);
2573
2247
  }
2574
2248
  const contents = (0, import_smithy_client.map)({
2575
2249
  $metadata: deserializeMetadata(output)
@@ -2581,43 +2255,9 @@ var de_CreateInputCommand = /* @__PURE__ */ __name(async (output, context) => {
2581
2255
  Object.assign(contents, doc);
2582
2256
  return contents;
2583
2257
  }, "de_CreateInputCommand");
2584
- var de_CreateInputCommandError = /* @__PURE__ */ __name(async (output, context) => {
2585
- const parsedOutput = {
2586
- ...output,
2587
- body: await parseErrorBody(output.body, context)
2588
- };
2589
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2590
- switch (errorCode) {
2591
- case "BadGatewayException":
2592
- case "com.amazonaws.medialive#BadGatewayException":
2593
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
2594
- case "BadRequestException":
2595
- case "com.amazonaws.medialive#BadRequestException":
2596
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2597
- case "ForbiddenException":
2598
- case "com.amazonaws.medialive#ForbiddenException":
2599
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2600
- case "GatewayTimeoutException":
2601
- case "com.amazonaws.medialive#GatewayTimeoutException":
2602
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
2603
- case "InternalServerErrorException":
2604
- case "com.amazonaws.medialive#InternalServerErrorException":
2605
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2606
- case "TooManyRequestsException":
2607
- case "com.amazonaws.medialive#TooManyRequestsException":
2608
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2609
- default:
2610
- const parsedBody = parsedOutput.body;
2611
- return throwDefaultError({
2612
- output,
2613
- parsedBody,
2614
- errorCode
2615
- });
2616
- }
2617
- }, "de_CreateInputCommandError");
2618
2258
  var de_CreateInputSecurityGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
2619
2259
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2620
- return de_CreateInputSecurityGroupCommandError(output, context);
2260
+ return de_CommandError(output, context);
2621
2261
  }
2622
2262
  const contents = (0, import_smithy_client.map)({
2623
2263
  $metadata: deserializeMetadata(output)
@@ -2629,43 +2269,9 @@ var de_CreateInputSecurityGroupCommand = /* @__PURE__ */ __name(async (output, c
2629
2269
  Object.assign(contents, doc);
2630
2270
  return contents;
2631
2271
  }, "de_CreateInputSecurityGroupCommand");
2632
- var de_CreateInputSecurityGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
2633
- const parsedOutput = {
2634
- ...output,
2635
- body: await parseErrorBody(output.body, context)
2636
- };
2637
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2638
- switch (errorCode) {
2639
- case "BadGatewayException":
2640
- case "com.amazonaws.medialive#BadGatewayException":
2641
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
2642
- case "BadRequestException":
2643
- case "com.amazonaws.medialive#BadRequestException":
2644
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2645
- case "ForbiddenException":
2646
- case "com.amazonaws.medialive#ForbiddenException":
2647
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2648
- case "GatewayTimeoutException":
2649
- case "com.amazonaws.medialive#GatewayTimeoutException":
2650
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
2651
- case "InternalServerErrorException":
2652
- case "com.amazonaws.medialive#InternalServerErrorException":
2653
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2654
- case "TooManyRequestsException":
2655
- case "com.amazonaws.medialive#TooManyRequestsException":
2656
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2657
- default:
2658
- const parsedBody = parsedOutput.body;
2659
- return throwDefaultError({
2660
- output,
2661
- parsedBody,
2662
- errorCode
2663
- });
2664
- }
2665
- }, "de_CreateInputSecurityGroupCommandError");
2666
2272
  var de_CreateMultiplexCommand = /* @__PURE__ */ __name(async (output, context) => {
2667
2273
  if (output.statusCode !== 201 && output.statusCode >= 300) {
2668
- return de_CreateMultiplexCommandError(output, context);
2274
+ return de_CommandError(output, context);
2669
2275
  }
2670
2276
  const contents = (0, import_smithy_client.map)({
2671
2277
  $metadata: deserializeMetadata(output)
@@ -2677,49 +2283,9 @@ var de_CreateMultiplexCommand = /* @__PURE__ */ __name(async (output, context) =
2677
2283
  Object.assign(contents, doc);
2678
2284
  return contents;
2679
2285
  }, "de_CreateMultiplexCommand");
2680
- var de_CreateMultiplexCommandError = /* @__PURE__ */ __name(async (output, context) => {
2681
- const parsedOutput = {
2682
- ...output,
2683
- body: await parseErrorBody(output.body, context)
2684
- };
2685
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2686
- switch (errorCode) {
2687
- case "BadGatewayException":
2688
- case "com.amazonaws.medialive#BadGatewayException":
2689
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
2690
- case "BadRequestException":
2691
- case "com.amazonaws.medialive#BadRequestException":
2692
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2693
- case "ConflictException":
2694
- case "com.amazonaws.medialive#ConflictException":
2695
- throw await de_ConflictExceptionRes(parsedOutput, context);
2696
- case "ForbiddenException":
2697
- case "com.amazonaws.medialive#ForbiddenException":
2698
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2699
- case "GatewayTimeoutException":
2700
- case "com.amazonaws.medialive#GatewayTimeoutException":
2701
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
2702
- case "InternalServerErrorException":
2703
- case "com.amazonaws.medialive#InternalServerErrorException":
2704
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2705
- case "TooManyRequestsException":
2706
- case "com.amazonaws.medialive#TooManyRequestsException":
2707
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2708
- case "UnprocessableEntityException":
2709
- case "com.amazonaws.medialive#UnprocessableEntityException":
2710
- throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
2711
- default:
2712
- const parsedBody = parsedOutput.body;
2713
- return throwDefaultError({
2714
- output,
2715
- parsedBody,
2716
- errorCode
2717
- });
2718
- }
2719
- }, "de_CreateMultiplexCommandError");
2720
2286
  var de_CreateMultiplexProgramCommand = /* @__PURE__ */ __name(async (output, context) => {
2721
2287
  if (output.statusCode !== 201 && output.statusCode >= 300) {
2722
- return de_CreateMultiplexProgramCommandError(output, context);
2288
+ return de_CommandError(output, context);
2723
2289
  }
2724
2290
  const contents = (0, import_smithy_client.map)({
2725
2291
  $metadata: deserializeMetadata(output)
@@ -2731,49 +2297,9 @@ var de_CreateMultiplexProgramCommand = /* @__PURE__ */ __name(async (output, con
2731
2297
  Object.assign(contents, doc);
2732
2298
  return contents;
2733
2299
  }, "de_CreateMultiplexProgramCommand");
2734
- var de_CreateMultiplexProgramCommandError = /* @__PURE__ */ __name(async (output, context) => {
2735
- const parsedOutput = {
2736
- ...output,
2737
- body: await parseErrorBody(output.body, context)
2738
- };
2739
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2740
- switch (errorCode) {
2741
- case "BadGatewayException":
2742
- case "com.amazonaws.medialive#BadGatewayException":
2743
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
2744
- case "BadRequestException":
2745
- case "com.amazonaws.medialive#BadRequestException":
2746
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2747
- case "ConflictException":
2748
- case "com.amazonaws.medialive#ConflictException":
2749
- throw await de_ConflictExceptionRes(parsedOutput, context);
2750
- case "ForbiddenException":
2751
- case "com.amazonaws.medialive#ForbiddenException":
2752
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2753
- case "GatewayTimeoutException":
2754
- case "com.amazonaws.medialive#GatewayTimeoutException":
2755
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
2756
- case "InternalServerErrorException":
2757
- case "com.amazonaws.medialive#InternalServerErrorException":
2758
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2759
- case "TooManyRequestsException":
2760
- case "com.amazonaws.medialive#TooManyRequestsException":
2761
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2762
- case "UnprocessableEntityException":
2763
- case "com.amazonaws.medialive#UnprocessableEntityException":
2764
- throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
2765
- default:
2766
- const parsedBody = parsedOutput.body;
2767
- return throwDefaultError({
2768
- output,
2769
- parsedBody,
2770
- errorCode
2771
- });
2772
- }
2773
- }, "de_CreateMultiplexProgramCommandError");
2774
2300
  var de_CreatePartnerInputCommand = /* @__PURE__ */ __name(async (output, context) => {
2775
2301
  if (output.statusCode !== 201 && output.statusCode >= 300) {
2776
- return de_CreatePartnerInputCommandError(output, context);
2302
+ return de_CommandError(output, context);
2777
2303
  }
2778
2304
  const contents = (0, import_smithy_client.map)({
2779
2305
  $metadata: deserializeMetadata(output)
@@ -2785,43 +2311,9 @@ var de_CreatePartnerInputCommand = /* @__PURE__ */ __name(async (output, context
2785
2311
  Object.assign(contents, doc);
2786
2312
  return contents;
2787
2313
  }, "de_CreatePartnerInputCommand");
2788
- var de_CreatePartnerInputCommandError = /* @__PURE__ */ __name(async (output, context) => {
2789
- const parsedOutput = {
2790
- ...output,
2791
- body: await parseErrorBody(output.body, context)
2792
- };
2793
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2794
- switch (errorCode) {
2795
- case "BadGatewayException":
2796
- case "com.amazonaws.medialive#BadGatewayException":
2797
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
2798
- case "BadRequestException":
2799
- case "com.amazonaws.medialive#BadRequestException":
2800
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2801
- case "ForbiddenException":
2802
- case "com.amazonaws.medialive#ForbiddenException":
2803
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2804
- case "GatewayTimeoutException":
2805
- case "com.amazonaws.medialive#GatewayTimeoutException":
2806
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
2807
- case "InternalServerErrorException":
2808
- case "com.amazonaws.medialive#InternalServerErrorException":
2809
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2810
- case "TooManyRequestsException":
2811
- case "com.amazonaws.medialive#TooManyRequestsException":
2812
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2813
- default:
2814
- const parsedBody = parsedOutput.body;
2815
- return throwDefaultError({
2816
- output,
2817
- parsedBody,
2818
- errorCode
2819
- });
2820
- }
2821
- }, "de_CreatePartnerInputCommandError");
2822
2314
  var de_CreateTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
2823
2315
  if (output.statusCode !== 204 && output.statusCode >= 300) {
2824
- return de_CreateTagsCommandError(output, context);
2316
+ return de_CommandError(output, context);
2825
2317
  }
2826
2318
  const contents = (0, import_smithy_client.map)({
2827
2319
  $metadata: deserializeMetadata(output)
@@ -2829,37 +2321,9 @@ var de_CreateTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
2829
2321
  await (0, import_smithy_client.collectBody)(output.body, context);
2830
2322
  return contents;
2831
2323
  }, "de_CreateTagsCommand");
2832
- var de_CreateTagsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2833
- const parsedOutput = {
2834
- ...output,
2835
- body: await parseErrorBody(output.body, context)
2836
- };
2837
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2838
- switch (errorCode) {
2839
- case "BadRequestException":
2840
- case "com.amazonaws.medialive#BadRequestException":
2841
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2842
- case "ForbiddenException":
2843
- case "com.amazonaws.medialive#ForbiddenException":
2844
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2845
- case "InternalServerErrorException":
2846
- case "com.amazonaws.medialive#InternalServerErrorException":
2847
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2848
- case "NotFoundException":
2849
- case "com.amazonaws.medialive#NotFoundException":
2850
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2851
- default:
2852
- const parsedBody = parsedOutput.body;
2853
- return throwDefaultError({
2854
- output,
2855
- parsedBody,
2856
- errorCode
2857
- });
2858
- }
2859
- }, "de_CreateTagsCommandError");
2860
2324
  var de_DeleteChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
2861
2325
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2862
- return de_DeleteChannelCommandError(output, context);
2326
+ return de_CommandError(output, context);
2863
2327
  }
2864
2328
  const contents = (0, import_smithy_client.map)({
2865
2329
  $metadata: deserializeMetadata(output)
@@ -2888,49 +2352,9 @@ var de_DeleteChannelCommand = /* @__PURE__ */ __name(async (output, context) =>
2888
2352
  Object.assign(contents, doc);
2889
2353
  return contents;
2890
2354
  }, "de_DeleteChannelCommand");
2891
- var de_DeleteChannelCommandError = /* @__PURE__ */ __name(async (output, context) => {
2892
- const parsedOutput = {
2893
- ...output,
2894
- body: await parseErrorBody(output.body, context)
2895
- };
2896
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2897
- switch (errorCode) {
2898
- case "BadGatewayException":
2899
- case "com.amazonaws.medialive#BadGatewayException":
2900
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
2901
- case "BadRequestException":
2902
- case "com.amazonaws.medialive#BadRequestException":
2903
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2904
- case "ConflictException":
2905
- case "com.amazonaws.medialive#ConflictException":
2906
- throw await de_ConflictExceptionRes(parsedOutput, context);
2907
- case "ForbiddenException":
2908
- case "com.amazonaws.medialive#ForbiddenException":
2909
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2910
- case "GatewayTimeoutException":
2911
- case "com.amazonaws.medialive#GatewayTimeoutException":
2912
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
2913
- case "InternalServerErrorException":
2914
- case "com.amazonaws.medialive#InternalServerErrorException":
2915
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2916
- case "NotFoundException":
2917
- case "com.amazonaws.medialive#NotFoundException":
2918
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2919
- case "TooManyRequestsException":
2920
- case "com.amazonaws.medialive#TooManyRequestsException":
2921
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2922
- default:
2923
- const parsedBody = parsedOutput.body;
2924
- return throwDefaultError({
2925
- output,
2926
- parsedBody,
2927
- errorCode
2928
- });
2929
- }
2930
- }, "de_DeleteChannelCommandError");
2931
2355
  var de_DeleteInputCommand = /* @__PURE__ */ __name(async (output, context) => {
2932
2356
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2933
- return de_DeleteInputCommandError(output, context);
2357
+ return de_CommandError(output, context);
2934
2358
  }
2935
2359
  const contents = (0, import_smithy_client.map)({
2936
2360
  $metadata: deserializeMetadata(output)
@@ -2938,49 +2362,9 @@ var de_DeleteInputCommand = /* @__PURE__ */ __name(async (output, context) => {
2938
2362
  await (0, import_smithy_client.collectBody)(output.body, context);
2939
2363
  return contents;
2940
2364
  }, "de_DeleteInputCommand");
2941
- var de_DeleteInputCommandError = /* @__PURE__ */ __name(async (output, context) => {
2942
- const parsedOutput = {
2943
- ...output,
2944
- body: await parseErrorBody(output.body, context)
2945
- };
2946
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2947
- switch (errorCode) {
2948
- case "BadGatewayException":
2949
- case "com.amazonaws.medialive#BadGatewayException":
2950
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
2951
- case "BadRequestException":
2952
- case "com.amazonaws.medialive#BadRequestException":
2953
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2954
- case "ConflictException":
2955
- case "com.amazonaws.medialive#ConflictException":
2956
- throw await de_ConflictExceptionRes(parsedOutput, context);
2957
- case "ForbiddenException":
2958
- case "com.amazonaws.medialive#ForbiddenException":
2959
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2960
- case "GatewayTimeoutException":
2961
- case "com.amazonaws.medialive#GatewayTimeoutException":
2962
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
2963
- case "InternalServerErrorException":
2964
- case "com.amazonaws.medialive#InternalServerErrorException":
2965
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2966
- case "NotFoundException":
2967
- case "com.amazonaws.medialive#NotFoundException":
2968
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2969
- case "TooManyRequestsException":
2970
- case "com.amazonaws.medialive#TooManyRequestsException":
2971
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2972
- default:
2973
- const parsedBody = parsedOutput.body;
2974
- return throwDefaultError({
2975
- output,
2976
- parsedBody,
2977
- errorCode
2978
- });
2979
- }
2980
- }, "de_DeleteInputCommandError");
2981
2365
  var de_DeleteInputSecurityGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
2982
2366
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2983
- return de_DeleteInputSecurityGroupCommandError(output, context);
2367
+ return de_CommandError(output, context);
2984
2368
  }
2985
2369
  const contents = (0, import_smithy_client.map)({
2986
2370
  $metadata: deserializeMetadata(output)
@@ -2988,46 +2372,9 @@ var de_DeleteInputSecurityGroupCommand = /* @__PURE__ */ __name(async (output, c
2988
2372
  await (0, import_smithy_client.collectBody)(output.body, context);
2989
2373
  return contents;
2990
2374
  }, "de_DeleteInputSecurityGroupCommand");
2991
- var de_DeleteInputSecurityGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
2992
- const parsedOutput = {
2993
- ...output,
2994
- body: await parseErrorBody(output.body, context)
2995
- };
2996
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2997
- switch (errorCode) {
2998
- case "BadGatewayException":
2999
- case "com.amazonaws.medialive#BadGatewayException":
3000
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
3001
- case "BadRequestException":
3002
- case "com.amazonaws.medialive#BadRequestException":
3003
- throw await de_BadRequestExceptionRes(parsedOutput, context);
3004
- case "ForbiddenException":
3005
- case "com.amazonaws.medialive#ForbiddenException":
3006
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
3007
- case "GatewayTimeoutException":
3008
- case "com.amazonaws.medialive#GatewayTimeoutException":
3009
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
3010
- case "InternalServerErrorException":
3011
- case "com.amazonaws.medialive#InternalServerErrorException":
3012
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
3013
- case "NotFoundException":
3014
- case "com.amazonaws.medialive#NotFoundException":
3015
- throw await de_NotFoundExceptionRes(parsedOutput, context);
3016
- case "TooManyRequestsException":
3017
- case "com.amazonaws.medialive#TooManyRequestsException":
3018
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
3019
- default:
3020
- const parsedBody = parsedOutput.body;
3021
- return throwDefaultError({
3022
- output,
3023
- parsedBody,
3024
- errorCode
3025
- });
3026
- }
3027
- }, "de_DeleteInputSecurityGroupCommandError");
3028
2375
  var de_DeleteMultiplexCommand = /* @__PURE__ */ __name(async (output, context) => {
3029
2376
  if (output.statusCode !== 202 && output.statusCode >= 300) {
3030
- return de_DeleteMultiplexCommandError(output, context);
2377
+ return de_CommandError(output, context);
3031
2378
  }
3032
2379
  const contents = (0, import_smithy_client.map)({
3033
2380
  $metadata: deserializeMetadata(output)
@@ -3048,49 +2395,9 @@ var de_DeleteMultiplexCommand = /* @__PURE__ */ __name(async (output, context) =
3048
2395
  Object.assign(contents, doc);
3049
2396
  return contents;
3050
2397
  }, "de_DeleteMultiplexCommand");
3051
- var de_DeleteMultiplexCommandError = /* @__PURE__ */ __name(async (output, context) => {
3052
- const parsedOutput = {
3053
- ...output,
3054
- body: await parseErrorBody(output.body, context)
3055
- };
3056
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3057
- switch (errorCode) {
3058
- case "BadGatewayException":
3059
- case "com.amazonaws.medialive#BadGatewayException":
3060
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
3061
- case "BadRequestException":
3062
- case "com.amazonaws.medialive#BadRequestException":
3063
- throw await de_BadRequestExceptionRes(parsedOutput, context);
3064
- case "ConflictException":
3065
- case "com.amazonaws.medialive#ConflictException":
3066
- throw await de_ConflictExceptionRes(parsedOutput, context);
3067
- case "ForbiddenException":
3068
- case "com.amazonaws.medialive#ForbiddenException":
3069
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
3070
- case "GatewayTimeoutException":
3071
- case "com.amazonaws.medialive#GatewayTimeoutException":
3072
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
3073
- case "InternalServerErrorException":
3074
- case "com.amazonaws.medialive#InternalServerErrorException":
3075
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
3076
- case "NotFoundException":
3077
- case "com.amazonaws.medialive#NotFoundException":
3078
- throw await de_NotFoundExceptionRes(parsedOutput, context);
3079
- case "TooManyRequestsException":
3080
- case "com.amazonaws.medialive#TooManyRequestsException":
3081
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
3082
- default:
3083
- const parsedBody = parsedOutput.body;
3084
- return throwDefaultError({
3085
- output,
3086
- parsedBody,
3087
- errorCode
3088
- });
3089
- }
3090
- }, "de_DeleteMultiplexCommandError");
3091
2398
  var de_DeleteMultiplexProgramCommand = /* @__PURE__ */ __name(async (output, context) => {
3092
2399
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3093
- return de_DeleteMultiplexProgramCommandError(output, context);
2400
+ return de_CommandError(output, context);
3094
2401
  }
3095
2402
  const contents = (0, import_smithy_client.map)({
3096
2403
  $metadata: deserializeMetadata(output)
@@ -3106,49 +2413,9 @@ var de_DeleteMultiplexProgramCommand = /* @__PURE__ */ __name(async (output, con
3106
2413
  Object.assign(contents, doc);
3107
2414
  return contents;
3108
2415
  }, "de_DeleteMultiplexProgramCommand");
3109
- var de_DeleteMultiplexProgramCommandError = /* @__PURE__ */ __name(async (output, context) => {
3110
- const parsedOutput = {
3111
- ...output,
3112
- body: await parseErrorBody(output.body, context)
3113
- };
3114
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3115
- switch (errorCode) {
3116
- case "BadGatewayException":
3117
- case "com.amazonaws.medialive#BadGatewayException":
3118
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
3119
- case "BadRequestException":
3120
- case "com.amazonaws.medialive#BadRequestException":
3121
- throw await de_BadRequestExceptionRes(parsedOutput, context);
3122
- case "ConflictException":
3123
- case "com.amazonaws.medialive#ConflictException":
3124
- throw await de_ConflictExceptionRes(parsedOutput, context);
3125
- case "ForbiddenException":
3126
- case "com.amazonaws.medialive#ForbiddenException":
3127
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
3128
- case "GatewayTimeoutException":
3129
- case "com.amazonaws.medialive#GatewayTimeoutException":
3130
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
3131
- case "InternalServerErrorException":
3132
- case "com.amazonaws.medialive#InternalServerErrorException":
3133
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
3134
- case "NotFoundException":
3135
- case "com.amazonaws.medialive#NotFoundException":
3136
- throw await de_NotFoundExceptionRes(parsedOutput, context);
3137
- case "TooManyRequestsException":
3138
- case "com.amazonaws.medialive#TooManyRequestsException":
3139
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
3140
- default:
3141
- const parsedBody = parsedOutput.body;
3142
- return throwDefaultError({
3143
- output,
3144
- parsedBody,
3145
- errorCode
3146
- });
3147
- }
3148
- }, "de_DeleteMultiplexProgramCommandError");
3149
2416
  var de_DeleteReservationCommand = /* @__PURE__ */ __name(async (output, context) => {
3150
2417
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3151
- return de_DeleteReservationCommandError(output, context);
2418
+ return de_CommandError(output, context);
3152
2419
  }
3153
2420
  const contents = (0, import_smithy_client.map)({
3154
2421
  $metadata: deserializeMetadata(output)
@@ -3178,49 +2445,9 @@ var de_DeleteReservationCommand = /* @__PURE__ */ __name(async (output, context)
3178
2445
  Object.assign(contents, doc);
3179
2446
  return contents;
3180
2447
  }, "de_DeleteReservationCommand");
3181
- var de_DeleteReservationCommandError = /* @__PURE__ */ __name(async (output, context) => {
3182
- const parsedOutput = {
3183
- ...output,
3184
- body: await parseErrorBody(output.body, context)
3185
- };
3186
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3187
- switch (errorCode) {
3188
- case "BadGatewayException":
3189
- case "com.amazonaws.medialive#BadGatewayException":
3190
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
3191
- case "BadRequestException":
3192
- case "com.amazonaws.medialive#BadRequestException":
3193
- throw await de_BadRequestExceptionRes(parsedOutput, context);
3194
- case "ConflictException":
3195
- case "com.amazonaws.medialive#ConflictException":
3196
- throw await de_ConflictExceptionRes(parsedOutput, context);
3197
- case "ForbiddenException":
3198
- case "com.amazonaws.medialive#ForbiddenException":
3199
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
3200
- case "GatewayTimeoutException":
3201
- case "com.amazonaws.medialive#GatewayTimeoutException":
3202
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
3203
- case "InternalServerErrorException":
3204
- case "com.amazonaws.medialive#InternalServerErrorException":
3205
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
3206
- case "NotFoundException":
3207
- case "com.amazonaws.medialive#NotFoundException":
3208
- throw await de_NotFoundExceptionRes(parsedOutput, context);
3209
- case "TooManyRequestsException":
3210
- case "com.amazonaws.medialive#TooManyRequestsException":
3211
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
3212
- default:
3213
- const parsedBody = parsedOutput.body;
3214
- return throwDefaultError({
3215
- output,
3216
- parsedBody,
3217
- errorCode
3218
- });
3219
- }
3220
- }, "de_DeleteReservationCommandError");
3221
2448
  var de_DeleteScheduleCommand = /* @__PURE__ */ __name(async (output, context) => {
3222
2449
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3223
- return de_DeleteScheduleCommandError(output, context);
2450
+ return de_CommandError(output, context);
3224
2451
  }
3225
2452
  const contents = (0, import_smithy_client.map)({
3226
2453
  $metadata: deserializeMetadata(output)
@@ -3228,46 +2455,9 @@ var de_DeleteScheduleCommand = /* @__PURE__ */ __name(async (output, context) =>
3228
2455
  await (0, import_smithy_client.collectBody)(output.body, context);
3229
2456
  return contents;
3230
2457
  }, "de_DeleteScheduleCommand");
3231
- var de_DeleteScheduleCommandError = /* @__PURE__ */ __name(async (output, context) => {
3232
- const parsedOutput = {
3233
- ...output,
3234
- body: await parseErrorBody(output.body, context)
3235
- };
3236
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3237
- switch (errorCode) {
3238
- case "BadGatewayException":
3239
- case "com.amazonaws.medialive#BadGatewayException":
3240
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
3241
- case "BadRequestException":
3242
- case "com.amazonaws.medialive#BadRequestException":
3243
- throw await de_BadRequestExceptionRes(parsedOutput, context);
3244
- case "ForbiddenException":
3245
- case "com.amazonaws.medialive#ForbiddenException":
3246
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
3247
- case "GatewayTimeoutException":
3248
- case "com.amazonaws.medialive#GatewayTimeoutException":
3249
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
3250
- case "InternalServerErrorException":
3251
- case "com.amazonaws.medialive#InternalServerErrorException":
3252
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
3253
- case "NotFoundException":
3254
- case "com.amazonaws.medialive#NotFoundException":
3255
- throw await de_NotFoundExceptionRes(parsedOutput, context);
3256
- case "TooManyRequestsException":
3257
- case "com.amazonaws.medialive#TooManyRequestsException":
3258
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
3259
- default:
3260
- const parsedBody = parsedOutput.body;
3261
- return throwDefaultError({
3262
- output,
3263
- parsedBody,
3264
- errorCode
3265
- });
3266
- }
3267
- }, "de_DeleteScheduleCommandError");
3268
2458
  var de_DeleteTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
3269
2459
  if (output.statusCode !== 204 && output.statusCode >= 300) {
3270
- return de_DeleteTagsCommandError(output, context);
2460
+ return de_CommandError(output, context);
3271
2461
  }
3272
2462
  const contents = (0, import_smithy_client.map)({
3273
2463
  $metadata: deserializeMetadata(output)
@@ -3275,37 +2465,9 @@ var de_DeleteTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
3275
2465
  await (0, import_smithy_client.collectBody)(output.body, context);
3276
2466
  return contents;
3277
2467
  }, "de_DeleteTagsCommand");
3278
- var de_DeleteTagsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3279
- const parsedOutput = {
3280
- ...output,
3281
- body: await parseErrorBody(output.body, context)
3282
- };
3283
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3284
- switch (errorCode) {
3285
- case "BadRequestException":
3286
- case "com.amazonaws.medialive#BadRequestException":
3287
- throw await de_BadRequestExceptionRes(parsedOutput, context);
3288
- case "ForbiddenException":
3289
- case "com.amazonaws.medialive#ForbiddenException":
3290
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
3291
- case "InternalServerErrorException":
3292
- case "com.amazonaws.medialive#InternalServerErrorException":
3293
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
3294
- case "NotFoundException":
3295
- case "com.amazonaws.medialive#NotFoundException":
3296
- throw await de_NotFoundExceptionRes(parsedOutput, context);
3297
- default:
3298
- const parsedBody = parsedOutput.body;
3299
- return throwDefaultError({
3300
- output,
3301
- parsedBody,
3302
- errorCode
3303
- });
3304
- }
3305
- }, "de_DeleteTagsCommandError");
3306
2468
  var de_DescribeAccountConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
3307
2469
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3308
- return de_DescribeAccountConfigurationCommandError(output, context);
2470
+ return de_CommandError(output, context);
3309
2471
  }
3310
2472
  const contents = (0, import_smithy_client.map)({
3311
2473
  $metadata: deserializeMetadata(output)
@@ -3317,43 +2479,9 @@ var de_DescribeAccountConfigurationCommand = /* @__PURE__ */ __name(async (outpu
3317
2479
  Object.assign(contents, doc);
3318
2480
  return contents;
3319
2481
  }, "de_DescribeAccountConfigurationCommand");
3320
- var de_DescribeAccountConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
3321
- const parsedOutput = {
3322
- ...output,
3323
- body: await parseErrorBody(output.body, context)
3324
- };
3325
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3326
- switch (errorCode) {
3327
- case "BadGatewayException":
3328
- case "com.amazonaws.medialive#BadGatewayException":
3329
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
3330
- case "BadRequestException":
3331
- case "com.amazonaws.medialive#BadRequestException":
3332
- throw await de_BadRequestExceptionRes(parsedOutput, context);
3333
- case "ForbiddenException":
3334
- case "com.amazonaws.medialive#ForbiddenException":
3335
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
3336
- case "GatewayTimeoutException":
3337
- case "com.amazonaws.medialive#GatewayTimeoutException":
3338
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
3339
- case "InternalServerErrorException":
3340
- case "com.amazonaws.medialive#InternalServerErrorException":
3341
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
3342
- case "TooManyRequestsException":
3343
- case "com.amazonaws.medialive#TooManyRequestsException":
3344
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
3345
- default:
3346
- const parsedBody = parsedOutput.body;
3347
- return throwDefaultError({
3348
- output,
3349
- parsedBody,
3350
- errorCode
3351
- });
3352
- }
3353
- }, "de_DescribeAccountConfigurationCommandError");
3354
2482
  var de_DescribeChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
3355
2483
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3356
- return de_DescribeChannelCommandError(output, context);
2484
+ return de_CommandError(output, context);
3357
2485
  }
3358
2486
  const contents = (0, import_smithy_client.map)({
3359
2487
  $metadata: deserializeMetadata(output)
@@ -3382,46 +2510,9 @@ var de_DescribeChannelCommand = /* @__PURE__ */ __name(async (output, context) =
3382
2510
  Object.assign(contents, doc);
3383
2511
  return contents;
3384
2512
  }, "de_DescribeChannelCommand");
3385
- var de_DescribeChannelCommandError = /* @__PURE__ */ __name(async (output, context) => {
3386
- const parsedOutput = {
3387
- ...output,
3388
- body: await parseErrorBody(output.body, context)
3389
- };
3390
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3391
- switch (errorCode) {
3392
- case "BadGatewayException":
3393
- case "com.amazonaws.medialive#BadGatewayException":
3394
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
3395
- case "BadRequestException":
3396
- case "com.amazonaws.medialive#BadRequestException":
3397
- throw await de_BadRequestExceptionRes(parsedOutput, context);
3398
- case "ForbiddenException":
3399
- case "com.amazonaws.medialive#ForbiddenException":
3400
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
3401
- case "GatewayTimeoutException":
3402
- case "com.amazonaws.medialive#GatewayTimeoutException":
3403
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
3404
- case "InternalServerErrorException":
3405
- case "com.amazonaws.medialive#InternalServerErrorException":
3406
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
3407
- case "NotFoundException":
3408
- case "com.amazonaws.medialive#NotFoundException":
3409
- throw await de_NotFoundExceptionRes(parsedOutput, context);
3410
- case "TooManyRequestsException":
3411
- case "com.amazonaws.medialive#TooManyRequestsException":
3412
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
3413
- default:
3414
- const parsedBody = parsedOutput.body;
3415
- return throwDefaultError({
3416
- output,
3417
- parsedBody,
3418
- errorCode
3419
- });
3420
- }
3421
- }, "de_DescribeChannelCommandError");
3422
2513
  var de_DescribeInputCommand = /* @__PURE__ */ __name(async (output, context) => {
3423
2514
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3424
- return de_DescribeInputCommandError(output, context);
2515
+ return de_CommandError(output, context);
3425
2516
  }
3426
2517
  const contents = (0, import_smithy_client.map)({
3427
2518
  $metadata: deserializeMetadata(output)
@@ -3448,46 +2539,9 @@ var de_DescribeInputCommand = /* @__PURE__ */ __name(async (output, context) =>
3448
2539
  Object.assign(contents, doc);
3449
2540
  return contents;
3450
2541
  }, "de_DescribeInputCommand");
3451
- var de_DescribeInputCommandError = /* @__PURE__ */ __name(async (output, context) => {
3452
- const parsedOutput = {
3453
- ...output,
3454
- body: await parseErrorBody(output.body, context)
3455
- };
3456
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3457
- switch (errorCode) {
3458
- case "BadGatewayException":
3459
- case "com.amazonaws.medialive#BadGatewayException":
3460
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
3461
- case "BadRequestException":
3462
- case "com.amazonaws.medialive#BadRequestException":
3463
- throw await de_BadRequestExceptionRes(parsedOutput, context);
3464
- case "ForbiddenException":
3465
- case "com.amazonaws.medialive#ForbiddenException":
3466
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
3467
- case "GatewayTimeoutException":
3468
- case "com.amazonaws.medialive#GatewayTimeoutException":
3469
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
3470
- case "InternalServerErrorException":
3471
- case "com.amazonaws.medialive#InternalServerErrorException":
3472
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
3473
- case "NotFoundException":
3474
- case "com.amazonaws.medialive#NotFoundException":
3475
- throw await de_NotFoundExceptionRes(parsedOutput, context);
3476
- case "TooManyRequestsException":
3477
- case "com.amazonaws.medialive#TooManyRequestsException":
3478
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
3479
- default:
3480
- const parsedBody = parsedOutput.body;
3481
- return throwDefaultError({
3482
- output,
3483
- parsedBody,
3484
- errorCode
3485
- });
3486
- }
3487
- }, "de_DescribeInputCommandError");
3488
2542
  var de_DescribeInputDeviceCommand = /* @__PURE__ */ __name(async (output, context) => {
3489
2543
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3490
- return de_DescribeInputDeviceCommandError(output, context);
2544
+ return de_CommandError(output, context);
3491
2545
  }
3492
2546
  const contents = (0, import_smithy_client.map)({
3493
2547
  $metadata: deserializeMetadata(output)
@@ -3514,46 +2568,9 @@ var de_DescribeInputDeviceCommand = /* @__PURE__ */ __name(async (output, contex
3514
2568
  Object.assign(contents, doc);
3515
2569
  return contents;
3516
2570
  }, "de_DescribeInputDeviceCommand");
3517
- var de_DescribeInputDeviceCommandError = /* @__PURE__ */ __name(async (output, context) => {
3518
- const parsedOutput = {
3519
- ...output,
3520
- body: await parseErrorBody(output.body, context)
3521
- };
3522
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3523
- switch (errorCode) {
3524
- case "BadGatewayException":
3525
- case "com.amazonaws.medialive#BadGatewayException":
3526
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
3527
- case "BadRequestException":
3528
- case "com.amazonaws.medialive#BadRequestException":
3529
- throw await de_BadRequestExceptionRes(parsedOutput, context);
3530
- case "ForbiddenException":
3531
- case "com.amazonaws.medialive#ForbiddenException":
3532
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
3533
- case "GatewayTimeoutException":
3534
- case "com.amazonaws.medialive#GatewayTimeoutException":
3535
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
3536
- case "InternalServerErrorException":
3537
- case "com.amazonaws.medialive#InternalServerErrorException":
3538
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
3539
- case "NotFoundException":
3540
- case "com.amazonaws.medialive#NotFoundException":
3541
- throw await de_NotFoundExceptionRes(parsedOutput, context);
3542
- case "TooManyRequestsException":
3543
- case "com.amazonaws.medialive#TooManyRequestsException":
3544
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
3545
- default:
3546
- const parsedBody = parsedOutput.body;
3547
- return throwDefaultError({
3548
- output,
3549
- parsedBody,
3550
- errorCode
3551
- });
3552
- }
3553
- }, "de_DescribeInputDeviceCommandError");
3554
2571
  var de_DescribeInputDeviceThumbnailCommand = /* @__PURE__ */ __name(async (output, context) => {
3555
2572
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3556
- return de_DescribeInputDeviceThumbnailCommandError(output, context);
2573
+ return de_CommandError(output, context);
3557
2574
  }
3558
2575
  const contents = (0, import_smithy_client.map)({
3559
2576
  $metadata: deserializeMetadata(output),
@@ -3567,46 +2584,9 @@ var de_DescribeInputDeviceThumbnailCommand = /* @__PURE__ */ __name(async (outpu
3567
2584
  contents.Body = data;
3568
2585
  return contents;
3569
2586
  }, "de_DescribeInputDeviceThumbnailCommand");
3570
- var de_DescribeInputDeviceThumbnailCommandError = /* @__PURE__ */ __name(async (output, context) => {
3571
- const parsedOutput = {
3572
- ...output,
3573
- body: await parseErrorBody(output.body, context)
3574
- };
3575
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3576
- switch (errorCode) {
3577
- case "BadGatewayException":
3578
- case "com.amazonaws.medialive#BadGatewayException":
3579
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
3580
- case "BadRequestException":
3581
- case "com.amazonaws.medialive#BadRequestException":
3582
- throw await de_BadRequestExceptionRes(parsedOutput, context);
3583
- case "ForbiddenException":
3584
- case "com.amazonaws.medialive#ForbiddenException":
3585
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
3586
- case "GatewayTimeoutException":
3587
- case "com.amazonaws.medialive#GatewayTimeoutException":
3588
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
3589
- case "InternalServerErrorException":
3590
- case "com.amazonaws.medialive#InternalServerErrorException":
3591
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
3592
- case "NotFoundException":
3593
- case "com.amazonaws.medialive#NotFoundException":
3594
- throw await de_NotFoundExceptionRes(parsedOutput, context);
3595
- case "TooManyRequestsException":
3596
- case "com.amazonaws.medialive#TooManyRequestsException":
3597
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
3598
- default:
3599
- const parsedBody = parsedOutput.body;
3600
- return throwDefaultError({
3601
- output,
3602
- parsedBody,
3603
- errorCode
3604
- });
3605
- }
3606
- }, "de_DescribeInputDeviceThumbnailCommandError");
3607
2587
  var de_DescribeInputSecurityGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
3608
2588
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3609
- return de_DescribeInputSecurityGroupCommandError(output, context);
2589
+ return de_CommandError(output, context);
3610
2590
  }
3611
2591
  const contents = (0, import_smithy_client.map)({
3612
2592
  $metadata: deserializeMetadata(output)
@@ -3623,46 +2603,9 @@ var de_DescribeInputSecurityGroupCommand = /* @__PURE__ */ __name(async (output,
3623
2603
  Object.assign(contents, doc);
3624
2604
  return contents;
3625
2605
  }, "de_DescribeInputSecurityGroupCommand");
3626
- var de_DescribeInputSecurityGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
3627
- const parsedOutput = {
3628
- ...output,
3629
- body: await parseErrorBody(output.body, context)
3630
- };
3631
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3632
- switch (errorCode) {
3633
- case "BadGatewayException":
3634
- case "com.amazonaws.medialive#BadGatewayException":
3635
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
3636
- case "BadRequestException":
3637
- case "com.amazonaws.medialive#BadRequestException":
3638
- throw await de_BadRequestExceptionRes(parsedOutput, context);
3639
- case "ForbiddenException":
3640
- case "com.amazonaws.medialive#ForbiddenException":
3641
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
3642
- case "GatewayTimeoutException":
3643
- case "com.amazonaws.medialive#GatewayTimeoutException":
3644
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
3645
- case "InternalServerErrorException":
3646
- case "com.amazonaws.medialive#InternalServerErrorException":
3647
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
3648
- case "NotFoundException":
3649
- case "com.amazonaws.medialive#NotFoundException":
3650
- throw await de_NotFoundExceptionRes(parsedOutput, context);
3651
- case "TooManyRequestsException":
3652
- case "com.amazonaws.medialive#TooManyRequestsException":
3653
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
3654
- default:
3655
- const parsedBody = parsedOutput.body;
3656
- return throwDefaultError({
3657
- output,
3658
- parsedBody,
3659
- errorCode
3660
- });
3661
- }
3662
- }, "de_DescribeInputSecurityGroupCommandError");
3663
2606
  var de_DescribeMultiplexCommand = /* @__PURE__ */ __name(async (output, context) => {
3664
2607
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3665
- return de_DescribeMultiplexCommandError(output, context);
2608
+ return de_CommandError(output, context);
3666
2609
  }
3667
2610
  const contents = (0, import_smithy_client.map)({
3668
2611
  $metadata: deserializeMetadata(output)
@@ -3683,46 +2626,9 @@ var de_DescribeMultiplexCommand = /* @__PURE__ */ __name(async (output, context)
3683
2626
  Object.assign(contents, doc);
3684
2627
  return contents;
3685
2628
  }, "de_DescribeMultiplexCommand");
3686
- var de_DescribeMultiplexCommandError = /* @__PURE__ */ __name(async (output, context) => {
3687
- const parsedOutput = {
3688
- ...output,
3689
- body: await parseErrorBody(output.body, context)
3690
- };
3691
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3692
- switch (errorCode) {
3693
- case "BadGatewayException":
3694
- case "com.amazonaws.medialive#BadGatewayException":
3695
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
3696
- case "BadRequestException":
3697
- case "com.amazonaws.medialive#BadRequestException":
3698
- throw await de_BadRequestExceptionRes(parsedOutput, context);
3699
- case "ForbiddenException":
3700
- case "com.amazonaws.medialive#ForbiddenException":
3701
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
3702
- case "GatewayTimeoutException":
3703
- case "com.amazonaws.medialive#GatewayTimeoutException":
3704
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
3705
- case "InternalServerErrorException":
3706
- case "com.amazonaws.medialive#InternalServerErrorException":
3707
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
3708
- case "NotFoundException":
3709
- case "com.amazonaws.medialive#NotFoundException":
3710
- throw await de_NotFoundExceptionRes(parsedOutput, context);
3711
- case "TooManyRequestsException":
3712
- case "com.amazonaws.medialive#TooManyRequestsException":
3713
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
3714
- default:
3715
- const parsedBody = parsedOutput.body;
3716
- return throwDefaultError({
3717
- output,
3718
- parsedBody,
3719
- errorCode
3720
- });
3721
- }
3722
- }, "de_DescribeMultiplexCommandError");
3723
2629
  var de_DescribeMultiplexProgramCommand = /* @__PURE__ */ __name(async (output, context) => {
3724
2630
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3725
- return de_DescribeMultiplexProgramCommandError(output, context);
2631
+ return de_CommandError(output, context);
3726
2632
  }
3727
2633
  const contents = (0, import_smithy_client.map)({
3728
2634
  $metadata: deserializeMetadata(output)
@@ -3738,46 +2644,9 @@ var de_DescribeMultiplexProgramCommand = /* @__PURE__ */ __name(async (output, c
3738
2644
  Object.assign(contents, doc);
3739
2645
  return contents;
3740
2646
  }, "de_DescribeMultiplexProgramCommand");
3741
- var de_DescribeMultiplexProgramCommandError = /* @__PURE__ */ __name(async (output, context) => {
3742
- const parsedOutput = {
3743
- ...output,
3744
- body: await parseErrorBody(output.body, context)
3745
- };
3746
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3747
- switch (errorCode) {
3748
- case "BadGatewayException":
3749
- case "com.amazonaws.medialive#BadGatewayException":
3750
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
3751
- case "BadRequestException":
3752
- case "com.amazonaws.medialive#BadRequestException":
3753
- throw await de_BadRequestExceptionRes(parsedOutput, context);
3754
- case "ForbiddenException":
3755
- case "com.amazonaws.medialive#ForbiddenException":
3756
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
3757
- case "GatewayTimeoutException":
3758
- case "com.amazonaws.medialive#GatewayTimeoutException":
3759
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
3760
- case "InternalServerErrorException":
3761
- case "com.amazonaws.medialive#InternalServerErrorException":
3762
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
3763
- case "NotFoundException":
3764
- case "com.amazonaws.medialive#NotFoundException":
3765
- throw await de_NotFoundExceptionRes(parsedOutput, context);
3766
- case "TooManyRequestsException":
3767
- case "com.amazonaws.medialive#TooManyRequestsException":
3768
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
3769
- default:
3770
- const parsedBody = parsedOutput.body;
3771
- return throwDefaultError({
3772
- output,
3773
- parsedBody,
3774
- errorCode
3775
- });
3776
- }
3777
- }, "de_DescribeMultiplexProgramCommandError");
3778
2647
  var de_DescribeOfferingCommand = /* @__PURE__ */ __name(async (output, context) => {
3779
2648
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3780
- return de_DescribeOfferingCommandError(output, context);
2649
+ return de_CommandError(output, context);
3781
2650
  }
3782
2651
  const contents = (0, import_smithy_client.map)({
3783
2652
  $metadata: deserializeMetadata(output)
@@ -3799,46 +2668,9 @@ var de_DescribeOfferingCommand = /* @__PURE__ */ __name(async (output, context)
3799
2668
  Object.assign(contents, doc);
3800
2669
  return contents;
3801
2670
  }, "de_DescribeOfferingCommand");
3802
- var de_DescribeOfferingCommandError = /* @__PURE__ */ __name(async (output, context) => {
3803
- const parsedOutput = {
3804
- ...output,
3805
- body: await parseErrorBody(output.body, context)
3806
- };
3807
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3808
- switch (errorCode) {
3809
- case "BadGatewayException":
3810
- case "com.amazonaws.medialive#BadGatewayException":
3811
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
3812
- case "BadRequestException":
3813
- case "com.amazonaws.medialive#BadRequestException":
3814
- throw await de_BadRequestExceptionRes(parsedOutput, context);
3815
- case "ForbiddenException":
3816
- case "com.amazonaws.medialive#ForbiddenException":
3817
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
3818
- case "GatewayTimeoutException":
3819
- case "com.amazonaws.medialive#GatewayTimeoutException":
3820
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
3821
- case "InternalServerErrorException":
3822
- case "com.amazonaws.medialive#InternalServerErrorException":
3823
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
3824
- case "NotFoundException":
3825
- case "com.amazonaws.medialive#NotFoundException":
3826
- throw await de_NotFoundExceptionRes(parsedOutput, context);
3827
- case "TooManyRequestsException":
3828
- case "com.amazonaws.medialive#TooManyRequestsException":
3829
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
3830
- default:
3831
- const parsedBody = parsedOutput.body;
3832
- return throwDefaultError({
3833
- output,
3834
- parsedBody,
3835
- errorCode
3836
- });
3837
- }
3838
- }, "de_DescribeOfferingCommandError");
3839
2671
  var de_DescribeReservationCommand = /* @__PURE__ */ __name(async (output, context) => {
3840
2672
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3841
- return de_DescribeReservationCommandError(output, context);
2673
+ return de_CommandError(output, context);
3842
2674
  }
3843
2675
  const contents = (0, import_smithy_client.map)({
3844
2676
  $metadata: deserializeMetadata(output)
@@ -3868,46 +2700,9 @@ var de_DescribeReservationCommand = /* @__PURE__ */ __name(async (output, contex
3868
2700
  Object.assign(contents, doc);
3869
2701
  return contents;
3870
2702
  }, "de_DescribeReservationCommand");
3871
- var de_DescribeReservationCommandError = /* @__PURE__ */ __name(async (output, context) => {
3872
- const parsedOutput = {
3873
- ...output,
3874
- body: await parseErrorBody(output.body, context)
3875
- };
3876
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3877
- switch (errorCode) {
3878
- case "BadGatewayException":
3879
- case "com.amazonaws.medialive#BadGatewayException":
3880
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
3881
- case "BadRequestException":
3882
- case "com.amazonaws.medialive#BadRequestException":
3883
- throw await de_BadRequestExceptionRes(parsedOutput, context);
3884
- case "ForbiddenException":
3885
- case "com.amazonaws.medialive#ForbiddenException":
3886
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
3887
- case "GatewayTimeoutException":
3888
- case "com.amazonaws.medialive#GatewayTimeoutException":
3889
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
3890
- case "InternalServerErrorException":
3891
- case "com.amazonaws.medialive#InternalServerErrorException":
3892
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
3893
- case "NotFoundException":
3894
- case "com.amazonaws.medialive#NotFoundException":
3895
- throw await de_NotFoundExceptionRes(parsedOutput, context);
3896
- case "TooManyRequestsException":
3897
- case "com.amazonaws.medialive#TooManyRequestsException":
3898
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
3899
- default:
3900
- const parsedBody = parsedOutput.body;
3901
- return throwDefaultError({
3902
- output,
3903
- parsedBody,
3904
- errorCode
3905
- });
3906
- }
3907
- }, "de_DescribeReservationCommandError");
3908
2703
  var de_DescribeScheduleCommand = /* @__PURE__ */ __name(async (output, context) => {
3909
2704
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3910
- return de_DescribeScheduleCommandError(output, context);
2705
+ return de_CommandError(output, context);
3911
2706
  }
3912
2707
  const contents = (0, import_smithy_client.map)({
3913
2708
  $metadata: deserializeMetadata(output)
@@ -3920,46 +2715,9 @@ var de_DescribeScheduleCommand = /* @__PURE__ */ __name(async (output, context)
3920
2715
  Object.assign(contents, doc);
3921
2716
  return contents;
3922
2717
  }, "de_DescribeScheduleCommand");
3923
- var de_DescribeScheduleCommandError = /* @__PURE__ */ __name(async (output, context) => {
3924
- const parsedOutput = {
3925
- ...output,
3926
- body: await parseErrorBody(output.body, context)
3927
- };
3928
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3929
- switch (errorCode) {
3930
- case "BadGatewayException":
3931
- case "com.amazonaws.medialive#BadGatewayException":
3932
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
3933
- case "BadRequestException":
3934
- case "com.amazonaws.medialive#BadRequestException":
3935
- throw await de_BadRequestExceptionRes(parsedOutput, context);
3936
- case "ForbiddenException":
3937
- case "com.amazonaws.medialive#ForbiddenException":
3938
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
3939
- case "GatewayTimeoutException":
3940
- case "com.amazonaws.medialive#GatewayTimeoutException":
3941
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
3942
- case "InternalServerErrorException":
3943
- case "com.amazonaws.medialive#InternalServerErrorException":
3944
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
3945
- case "NotFoundException":
3946
- case "com.amazonaws.medialive#NotFoundException":
3947
- throw await de_NotFoundExceptionRes(parsedOutput, context);
3948
- case "TooManyRequestsException":
3949
- case "com.amazonaws.medialive#TooManyRequestsException":
3950
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
3951
- default:
3952
- const parsedBody = parsedOutput.body;
3953
- return throwDefaultError({
3954
- output,
3955
- parsedBody,
3956
- errorCode
3957
- });
3958
- }
3959
- }, "de_DescribeScheduleCommandError");
3960
2718
  var de_DescribeThumbnailsCommand = /* @__PURE__ */ __name(async (output, context) => {
3961
2719
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3962
- return de_DescribeThumbnailsCommandError(output, context);
2720
+ return de_CommandError(output, context);
3963
2721
  }
3964
2722
  const contents = (0, import_smithy_client.map)({
3965
2723
  $metadata: deserializeMetadata(output)
@@ -3971,49 +2729,9 @@ var de_DescribeThumbnailsCommand = /* @__PURE__ */ __name(async (output, context
3971
2729
  Object.assign(contents, doc);
3972
2730
  return contents;
3973
2731
  }, "de_DescribeThumbnailsCommand");
3974
- var de_DescribeThumbnailsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3975
- const parsedOutput = {
3976
- ...output,
3977
- body: await parseErrorBody(output.body, context)
3978
- };
3979
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3980
- switch (errorCode) {
3981
- case "BadGatewayException":
3982
- case "com.amazonaws.medialive#BadGatewayException":
3983
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
3984
- case "BadRequestException":
3985
- case "com.amazonaws.medialive#BadRequestException":
3986
- throw await de_BadRequestExceptionRes(parsedOutput, context);
3987
- case "ConflictException":
3988
- case "com.amazonaws.medialive#ConflictException":
3989
- throw await de_ConflictExceptionRes(parsedOutput, context);
3990
- case "ForbiddenException":
3991
- case "com.amazonaws.medialive#ForbiddenException":
3992
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
3993
- case "GatewayTimeoutException":
3994
- case "com.amazonaws.medialive#GatewayTimeoutException":
3995
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
3996
- case "InternalServerErrorException":
3997
- case "com.amazonaws.medialive#InternalServerErrorException":
3998
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
3999
- case "NotFoundException":
4000
- case "com.amazonaws.medialive#NotFoundException":
4001
- throw await de_NotFoundExceptionRes(parsedOutput, context);
4002
- case "TooManyRequestsException":
4003
- case "com.amazonaws.medialive#TooManyRequestsException":
4004
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
4005
- default:
4006
- const parsedBody = parsedOutput.body;
4007
- return throwDefaultError({
4008
- output,
4009
- parsedBody,
4010
- errorCode
4011
- });
4012
- }
4013
- }, "de_DescribeThumbnailsCommandError");
4014
2732
  var de_ListChannelsCommand = /* @__PURE__ */ __name(async (output, context) => {
4015
2733
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4016
- return de_ListChannelsCommandError(output, context);
2734
+ return de_CommandError(output, context);
4017
2735
  }
4018
2736
  const contents = (0, import_smithy_client.map)({
4019
2737
  $metadata: deserializeMetadata(output)
@@ -4026,43 +2744,9 @@ var de_ListChannelsCommand = /* @__PURE__ */ __name(async (output, context) => {
4026
2744
  Object.assign(contents, doc);
4027
2745
  return contents;
4028
2746
  }, "de_ListChannelsCommand");
4029
- var de_ListChannelsCommandError = /* @__PURE__ */ __name(async (output, context) => {
4030
- const parsedOutput = {
4031
- ...output,
4032
- body: await parseErrorBody(output.body, context)
4033
- };
4034
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4035
- switch (errorCode) {
4036
- case "BadGatewayException":
4037
- case "com.amazonaws.medialive#BadGatewayException":
4038
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
4039
- case "BadRequestException":
4040
- case "com.amazonaws.medialive#BadRequestException":
4041
- throw await de_BadRequestExceptionRes(parsedOutput, context);
4042
- case "ForbiddenException":
4043
- case "com.amazonaws.medialive#ForbiddenException":
4044
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
4045
- case "GatewayTimeoutException":
4046
- case "com.amazonaws.medialive#GatewayTimeoutException":
4047
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
4048
- case "InternalServerErrorException":
4049
- case "com.amazonaws.medialive#InternalServerErrorException":
4050
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
4051
- case "TooManyRequestsException":
4052
- case "com.amazonaws.medialive#TooManyRequestsException":
4053
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
4054
- default:
4055
- const parsedBody = parsedOutput.body;
4056
- return throwDefaultError({
4057
- output,
4058
- parsedBody,
4059
- errorCode
4060
- });
4061
- }
4062
- }, "de_ListChannelsCommandError");
4063
2747
  var de_ListInputDevicesCommand = /* @__PURE__ */ __name(async (output, context) => {
4064
2748
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4065
- return de_ListInputDevicesCommandError(output, context);
2749
+ return de_CommandError(output, context);
4066
2750
  }
4067
2751
  const contents = (0, import_smithy_client.map)({
4068
2752
  $metadata: deserializeMetadata(output)
@@ -4075,43 +2759,9 @@ var de_ListInputDevicesCommand = /* @__PURE__ */ __name(async (output, context)
4075
2759
  Object.assign(contents, doc);
4076
2760
  return contents;
4077
2761
  }, "de_ListInputDevicesCommand");
4078
- var de_ListInputDevicesCommandError = /* @__PURE__ */ __name(async (output, context) => {
4079
- const parsedOutput = {
4080
- ...output,
4081
- body: await parseErrorBody(output.body, context)
4082
- };
4083
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4084
- switch (errorCode) {
4085
- case "BadGatewayException":
4086
- case "com.amazonaws.medialive#BadGatewayException":
4087
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
4088
- case "BadRequestException":
4089
- case "com.amazonaws.medialive#BadRequestException":
4090
- throw await de_BadRequestExceptionRes(parsedOutput, context);
4091
- case "ForbiddenException":
4092
- case "com.amazonaws.medialive#ForbiddenException":
4093
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
4094
- case "GatewayTimeoutException":
4095
- case "com.amazonaws.medialive#GatewayTimeoutException":
4096
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
4097
- case "InternalServerErrorException":
4098
- case "com.amazonaws.medialive#InternalServerErrorException":
4099
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
4100
- case "TooManyRequestsException":
4101
- case "com.amazonaws.medialive#TooManyRequestsException":
4102
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
4103
- default:
4104
- const parsedBody = parsedOutput.body;
4105
- return throwDefaultError({
4106
- output,
4107
- parsedBody,
4108
- errorCode
4109
- });
4110
- }
4111
- }, "de_ListInputDevicesCommandError");
4112
2762
  var de_ListInputDeviceTransfersCommand = /* @__PURE__ */ __name(async (output, context) => {
4113
2763
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4114
- return de_ListInputDeviceTransfersCommandError(output, context);
2764
+ return de_CommandError(output, context);
4115
2765
  }
4116
2766
  const contents = (0, import_smithy_client.map)({
4117
2767
  $metadata: deserializeMetadata(output)
@@ -4124,46 +2774,9 @@ var de_ListInputDeviceTransfersCommand = /* @__PURE__ */ __name(async (output, c
4124
2774
  Object.assign(contents, doc);
4125
2775
  return contents;
4126
2776
  }, "de_ListInputDeviceTransfersCommand");
4127
- var de_ListInputDeviceTransfersCommandError = /* @__PURE__ */ __name(async (output, context) => {
4128
- const parsedOutput = {
4129
- ...output,
4130
- body: await parseErrorBody(output.body, context)
4131
- };
4132
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4133
- switch (errorCode) {
4134
- case "BadGatewayException":
4135
- case "com.amazonaws.medialive#BadGatewayException":
4136
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
4137
- case "BadRequestException":
4138
- case "com.amazonaws.medialive#BadRequestException":
4139
- throw await de_BadRequestExceptionRes(parsedOutput, context);
4140
- case "ForbiddenException":
4141
- case "com.amazonaws.medialive#ForbiddenException":
4142
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
4143
- case "GatewayTimeoutException":
4144
- case "com.amazonaws.medialive#GatewayTimeoutException":
4145
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
4146
- case "InternalServerErrorException":
4147
- case "com.amazonaws.medialive#InternalServerErrorException":
4148
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
4149
- case "TooManyRequestsException":
4150
- case "com.amazonaws.medialive#TooManyRequestsException":
4151
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
4152
- case "UnprocessableEntityException":
4153
- case "com.amazonaws.medialive#UnprocessableEntityException":
4154
- throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
4155
- default:
4156
- const parsedBody = parsedOutput.body;
4157
- return throwDefaultError({
4158
- output,
4159
- parsedBody,
4160
- errorCode
4161
- });
4162
- }
4163
- }, "de_ListInputDeviceTransfersCommandError");
4164
2777
  var de_ListInputsCommand = /* @__PURE__ */ __name(async (output, context) => {
4165
2778
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4166
- return de_ListInputsCommandError(output, context);
2779
+ return de_CommandError(output, context);
4167
2780
  }
4168
2781
  const contents = (0, import_smithy_client.map)({
4169
2782
  $metadata: deserializeMetadata(output)
@@ -4176,43 +2789,9 @@ var de_ListInputsCommand = /* @__PURE__ */ __name(async (output, context) => {
4176
2789
  Object.assign(contents, doc);
4177
2790
  return contents;
4178
2791
  }, "de_ListInputsCommand");
4179
- var de_ListInputsCommandError = /* @__PURE__ */ __name(async (output, context) => {
4180
- const parsedOutput = {
4181
- ...output,
4182
- body: await parseErrorBody(output.body, context)
4183
- };
4184
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4185
- switch (errorCode) {
4186
- case "BadGatewayException":
4187
- case "com.amazonaws.medialive#BadGatewayException":
4188
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
4189
- case "BadRequestException":
4190
- case "com.amazonaws.medialive#BadRequestException":
4191
- throw await de_BadRequestExceptionRes(parsedOutput, context);
4192
- case "ForbiddenException":
4193
- case "com.amazonaws.medialive#ForbiddenException":
4194
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
4195
- case "GatewayTimeoutException":
4196
- case "com.amazonaws.medialive#GatewayTimeoutException":
4197
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
4198
- case "InternalServerErrorException":
4199
- case "com.amazonaws.medialive#InternalServerErrorException":
4200
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
4201
- case "TooManyRequestsException":
4202
- case "com.amazonaws.medialive#TooManyRequestsException":
4203
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
4204
- default:
4205
- const parsedBody = parsedOutput.body;
4206
- return throwDefaultError({
4207
- output,
4208
- parsedBody,
4209
- errorCode
4210
- });
4211
- }
4212
- }, "de_ListInputsCommandError");
4213
2792
  var de_ListInputSecurityGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
4214
2793
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4215
- return de_ListInputSecurityGroupsCommandError(output, context);
2794
+ return de_CommandError(output, context);
4216
2795
  }
4217
2796
  const contents = (0, import_smithy_client.map)({
4218
2797
  $metadata: deserializeMetadata(output)
@@ -4225,43 +2804,9 @@ var de_ListInputSecurityGroupsCommand = /* @__PURE__ */ __name(async (output, co
4225
2804
  Object.assign(contents, doc);
4226
2805
  return contents;
4227
2806
  }, "de_ListInputSecurityGroupsCommand");
4228
- var de_ListInputSecurityGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
4229
- const parsedOutput = {
4230
- ...output,
4231
- body: await parseErrorBody(output.body, context)
4232
- };
4233
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4234
- switch (errorCode) {
4235
- case "BadGatewayException":
4236
- case "com.amazonaws.medialive#BadGatewayException":
4237
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
4238
- case "BadRequestException":
4239
- case "com.amazonaws.medialive#BadRequestException":
4240
- throw await de_BadRequestExceptionRes(parsedOutput, context);
4241
- case "ForbiddenException":
4242
- case "com.amazonaws.medialive#ForbiddenException":
4243
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
4244
- case "GatewayTimeoutException":
4245
- case "com.amazonaws.medialive#GatewayTimeoutException":
4246
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
4247
- case "InternalServerErrorException":
4248
- case "com.amazonaws.medialive#InternalServerErrorException":
4249
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
4250
- case "TooManyRequestsException":
4251
- case "com.amazonaws.medialive#TooManyRequestsException":
4252
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
4253
- default:
4254
- const parsedBody = parsedOutput.body;
4255
- return throwDefaultError({
4256
- output,
4257
- parsedBody,
4258
- errorCode
4259
- });
4260
- }
4261
- }, "de_ListInputSecurityGroupsCommandError");
4262
2807
  var de_ListMultiplexesCommand = /* @__PURE__ */ __name(async (output, context) => {
4263
2808
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4264
- return de_ListMultiplexesCommandError(output, context);
2809
+ return de_CommandError(output, context);
4265
2810
  }
4266
2811
  const contents = (0, import_smithy_client.map)({
4267
2812
  $metadata: deserializeMetadata(output)
@@ -4274,43 +2819,9 @@ var de_ListMultiplexesCommand = /* @__PURE__ */ __name(async (output, context) =
4274
2819
  Object.assign(contents, doc);
4275
2820
  return contents;
4276
2821
  }, "de_ListMultiplexesCommand");
4277
- var de_ListMultiplexesCommandError = /* @__PURE__ */ __name(async (output, context) => {
4278
- const parsedOutput = {
4279
- ...output,
4280
- body: await parseErrorBody(output.body, context)
4281
- };
4282
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4283
- switch (errorCode) {
4284
- case "BadGatewayException":
4285
- case "com.amazonaws.medialive#BadGatewayException":
4286
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
4287
- case "BadRequestException":
4288
- case "com.amazonaws.medialive#BadRequestException":
4289
- throw await de_BadRequestExceptionRes(parsedOutput, context);
4290
- case "ForbiddenException":
4291
- case "com.amazonaws.medialive#ForbiddenException":
4292
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
4293
- case "GatewayTimeoutException":
4294
- case "com.amazonaws.medialive#GatewayTimeoutException":
4295
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
4296
- case "InternalServerErrorException":
4297
- case "com.amazonaws.medialive#InternalServerErrorException":
4298
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
4299
- case "TooManyRequestsException":
4300
- case "com.amazonaws.medialive#TooManyRequestsException":
4301
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
4302
- default:
4303
- const parsedBody = parsedOutput.body;
4304
- return throwDefaultError({
4305
- output,
4306
- parsedBody,
4307
- errorCode
4308
- });
4309
- }
4310
- }, "de_ListMultiplexesCommandError");
4311
2822
  var de_ListMultiplexProgramsCommand = /* @__PURE__ */ __name(async (output, context) => {
4312
2823
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4313
- return de_ListMultiplexProgramsCommandError(output, context);
2824
+ return de_CommandError(output, context);
4314
2825
  }
4315
2826
  const contents = (0, import_smithy_client.map)({
4316
2827
  $metadata: deserializeMetadata(output)
@@ -4323,46 +2834,9 @@ var de_ListMultiplexProgramsCommand = /* @__PURE__ */ __name(async (output, cont
4323
2834
  Object.assign(contents, doc);
4324
2835
  return contents;
4325
2836
  }, "de_ListMultiplexProgramsCommand");
4326
- var de_ListMultiplexProgramsCommandError = /* @__PURE__ */ __name(async (output, context) => {
4327
- const parsedOutput = {
4328
- ...output,
4329
- body: await parseErrorBody(output.body, context)
4330
- };
4331
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4332
- switch (errorCode) {
4333
- case "BadGatewayException":
4334
- case "com.amazonaws.medialive#BadGatewayException":
4335
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
4336
- case "BadRequestException":
4337
- case "com.amazonaws.medialive#BadRequestException":
4338
- throw await de_BadRequestExceptionRes(parsedOutput, context);
4339
- case "ForbiddenException":
4340
- case "com.amazonaws.medialive#ForbiddenException":
4341
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
4342
- case "GatewayTimeoutException":
4343
- case "com.amazonaws.medialive#GatewayTimeoutException":
4344
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
4345
- case "InternalServerErrorException":
4346
- case "com.amazonaws.medialive#InternalServerErrorException":
4347
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
4348
- case "NotFoundException":
4349
- case "com.amazonaws.medialive#NotFoundException":
4350
- throw await de_NotFoundExceptionRes(parsedOutput, context);
4351
- case "TooManyRequestsException":
4352
- case "com.amazonaws.medialive#TooManyRequestsException":
4353
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
4354
- default:
4355
- const parsedBody = parsedOutput.body;
4356
- return throwDefaultError({
4357
- output,
4358
- parsedBody,
4359
- errorCode
4360
- });
4361
- }
4362
- }, "de_ListMultiplexProgramsCommandError");
4363
2837
  var de_ListOfferingsCommand = /* @__PURE__ */ __name(async (output, context) => {
4364
2838
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4365
- return de_ListOfferingsCommandError(output, context);
2839
+ return de_CommandError(output, context);
4366
2840
  }
4367
2841
  const contents = (0, import_smithy_client.map)({
4368
2842
  $metadata: deserializeMetadata(output)
@@ -4375,43 +2849,9 @@ var de_ListOfferingsCommand = /* @__PURE__ */ __name(async (output, context) =>
4375
2849
  Object.assign(contents, doc);
4376
2850
  return contents;
4377
2851
  }, "de_ListOfferingsCommand");
4378
- var de_ListOfferingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
4379
- const parsedOutput = {
4380
- ...output,
4381
- body: await parseErrorBody(output.body, context)
4382
- };
4383
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4384
- switch (errorCode) {
4385
- case "BadGatewayException":
4386
- case "com.amazonaws.medialive#BadGatewayException":
4387
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
4388
- case "BadRequestException":
4389
- case "com.amazonaws.medialive#BadRequestException":
4390
- throw await de_BadRequestExceptionRes(parsedOutput, context);
4391
- case "ForbiddenException":
4392
- case "com.amazonaws.medialive#ForbiddenException":
4393
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
4394
- case "GatewayTimeoutException":
4395
- case "com.amazonaws.medialive#GatewayTimeoutException":
4396
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
4397
- case "InternalServerErrorException":
4398
- case "com.amazonaws.medialive#InternalServerErrorException":
4399
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
4400
- case "TooManyRequestsException":
4401
- case "com.amazonaws.medialive#TooManyRequestsException":
4402
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
4403
- default:
4404
- const parsedBody = parsedOutput.body;
4405
- return throwDefaultError({
4406
- output,
4407
- parsedBody,
4408
- errorCode
4409
- });
4410
- }
4411
- }, "de_ListOfferingsCommandError");
4412
2852
  var de_ListReservationsCommand = /* @__PURE__ */ __name(async (output, context) => {
4413
2853
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4414
- return de_ListReservationsCommandError(output, context);
2854
+ return de_CommandError(output, context);
4415
2855
  }
4416
2856
  const contents = (0, import_smithy_client.map)({
4417
2857
  $metadata: deserializeMetadata(output)
@@ -4424,43 +2864,9 @@ var de_ListReservationsCommand = /* @__PURE__ */ __name(async (output, context)
4424
2864
  Object.assign(contents, doc);
4425
2865
  return contents;
4426
2866
  }, "de_ListReservationsCommand");
4427
- var de_ListReservationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
4428
- const parsedOutput = {
4429
- ...output,
4430
- body: await parseErrorBody(output.body, context)
4431
- };
4432
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4433
- switch (errorCode) {
4434
- case "BadGatewayException":
4435
- case "com.amazonaws.medialive#BadGatewayException":
4436
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
4437
- case "BadRequestException":
4438
- case "com.amazonaws.medialive#BadRequestException":
4439
- throw await de_BadRequestExceptionRes(parsedOutput, context);
4440
- case "ForbiddenException":
4441
- case "com.amazonaws.medialive#ForbiddenException":
4442
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
4443
- case "GatewayTimeoutException":
4444
- case "com.amazonaws.medialive#GatewayTimeoutException":
4445
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
4446
- case "InternalServerErrorException":
4447
- case "com.amazonaws.medialive#InternalServerErrorException":
4448
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
4449
- case "TooManyRequestsException":
4450
- case "com.amazonaws.medialive#TooManyRequestsException":
4451
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
4452
- default:
4453
- const parsedBody = parsedOutput.body;
4454
- return throwDefaultError({
4455
- output,
4456
- parsedBody,
4457
- errorCode
4458
- });
4459
- }
4460
- }, "de_ListReservationsCommandError");
4461
2867
  var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
4462
2868
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4463
- return de_ListTagsForResourceCommandError(output, context);
2869
+ return de_CommandError(output, context);
4464
2870
  }
4465
2871
  const contents = (0, import_smithy_client.map)({
4466
2872
  $metadata: deserializeMetadata(output)
@@ -4472,37 +2878,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
4472
2878
  Object.assign(contents, doc);
4473
2879
  return contents;
4474
2880
  }, "de_ListTagsForResourceCommand");
4475
- var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
4476
- const parsedOutput = {
4477
- ...output,
4478
- body: await parseErrorBody(output.body, context)
4479
- };
4480
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4481
- switch (errorCode) {
4482
- case "BadRequestException":
4483
- case "com.amazonaws.medialive#BadRequestException":
4484
- throw await de_BadRequestExceptionRes(parsedOutput, context);
4485
- case "ForbiddenException":
4486
- case "com.amazonaws.medialive#ForbiddenException":
4487
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
4488
- case "InternalServerErrorException":
4489
- case "com.amazonaws.medialive#InternalServerErrorException":
4490
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
4491
- case "NotFoundException":
4492
- case "com.amazonaws.medialive#NotFoundException":
4493
- throw await de_NotFoundExceptionRes(parsedOutput, context);
4494
- default:
4495
- const parsedBody = parsedOutput.body;
4496
- return throwDefaultError({
4497
- output,
4498
- parsedBody,
4499
- errorCode
4500
- });
4501
- }
4502
- }, "de_ListTagsForResourceCommandError");
4503
2881
  var de_PurchaseOfferingCommand = /* @__PURE__ */ __name(async (output, context) => {
4504
2882
  if (output.statusCode !== 201 && output.statusCode >= 300) {
4505
- return de_PurchaseOfferingCommandError(output, context);
2883
+ return de_CommandError(output, context);
4506
2884
  }
4507
2885
  const contents = (0, import_smithy_client.map)({
4508
2886
  $metadata: deserializeMetadata(output)
@@ -4514,49 +2892,9 @@ var de_PurchaseOfferingCommand = /* @__PURE__ */ __name(async (output, context)
4514
2892
  Object.assign(contents, doc);
4515
2893
  return contents;
4516
2894
  }, "de_PurchaseOfferingCommand");
4517
- var de_PurchaseOfferingCommandError = /* @__PURE__ */ __name(async (output, context) => {
4518
- const parsedOutput = {
4519
- ...output,
4520
- body: await parseErrorBody(output.body, context)
4521
- };
4522
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4523
- switch (errorCode) {
4524
- case "BadGatewayException":
4525
- case "com.amazonaws.medialive#BadGatewayException":
4526
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
4527
- case "BadRequestException":
4528
- case "com.amazonaws.medialive#BadRequestException":
4529
- throw await de_BadRequestExceptionRes(parsedOutput, context);
4530
- case "ConflictException":
4531
- case "com.amazonaws.medialive#ConflictException":
4532
- throw await de_ConflictExceptionRes(parsedOutput, context);
4533
- case "ForbiddenException":
4534
- case "com.amazonaws.medialive#ForbiddenException":
4535
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
4536
- case "GatewayTimeoutException":
4537
- case "com.amazonaws.medialive#GatewayTimeoutException":
4538
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
4539
- case "InternalServerErrorException":
4540
- case "com.amazonaws.medialive#InternalServerErrorException":
4541
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
4542
- case "NotFoundException":
4543
- case "com.amazonaws.medialive#NotFoundException":
4544
- throw await de_NotFoundExceptionRes(parsedOutput, context);
4545
- case "TooManyRequestsException":
4546
- case "com.amazonaws.medialive#TooManyRequestsException":
4547
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
4548
- default:
4549
- const parsedBody = parsedOutput.body;
4550
- return throwDefaultError({
4551
- output,
4552
- parsedBody,
4553
- errorCode
4554
- });
4555
- }
4556
- }, "de_PurchaseOfferingCommandError");
4557
2895
  var de_RebootInputDeviceCommand = /* @__PURE__ */ __name(async (output, context) => {
4558
2896
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4559
- return de_RebootInputDeviceCommandError(output, context);
2897
+ return de_CommandError(output, context);
4560
2898
  }
4561
2899
  const contents = (0, import_smithy_client.map)({
4562
2900
  $metadata: deserializeMetadata(output)
@@ -4564,49 +2902,9 @@ var de_RebootInputDeviceCommand = /* @__PURE__ */ __name(async (output, context)
4564
2902
  await (0, import_smithy_client.collectBody)(output.body, context);
4565
2903
  return contents;
4566
2904
  }, "de_RebootInputDeviceCommand");
4567
- var de_RebootInputDeviceCommandError = /* @__PURE__ */ __name(async (output, context) => {
4568
- const parsedOutput = {
4569
- ...output,
4570
- body: await parseErrorBody(output.body, context)
4571
- };
4572
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4573
- switch (errorCode) {
4574
- case "BadGatewayException":
4575
- case "com.amazonaws.medialive#BadGatewayException":
4576
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
4577
- case "BadRequestException":
4578
- case "com.amazonaws.medialive#BadRequestException":
4579
- throw await de_BadRequestExceptionRes(parsedOutput, context);
4580
- case "ForbiddenException":
4581
- case "com.amazonaws.medialive#ForbiddenException":
4582
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
4583
- case "GatewayTimeoutException":
4584
- case "com.amazonaws.medialive#GatewayTimeoutException":
4585
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
4586
- case "InternalServerErrorException":
4587
- case "com.amazonaws.medialive#InternalServerErrorException":
4588
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
4589
- case "NotFoundException":
4590
- case "com.amazonaws.medialive#NotFoundException":
4591
- throw await de_NotFoundExceptionRes(parsedOutput, context);
4592
- case "TooManyRequestsException":
4593
- case "com.amazonaws.medialive#TooManyRequestsException":
4594
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
4595
- case "UnprocessableEntityException":
4596
- case "com.amazonaws.medialive#UnprocessableEntityException":
4597
- throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
4598
- default:
4599
- const parsedBody = parsedOutput.body;
4600
- return throwDefaultError({
4601
- output,
4602
- parsedBody,
4603
- errorCode
4604
- });
4605
- }
4606
- }, "de_RebootInputDeviceCommandError");
4607
2905
  var de_RejectInputDeviceTransferCommand = /* @__PURE__ */ __name(async (output, context) => {
4608
2906
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4609
- return de_RejectInputDeviceTransferCommandError(output, context);
2907
+ return de_CommandError(output, context);
4610
2908
  }
4611
2909
  const contents = (0, import_smithy_client.map)({
4612
2910
  $metadata: deserializeMetadata(output)
@@ -4614,52 +2912,9 @@ var de_RejectInputDeviceTransferCommand = /* @__PURE__ */ __name(async (output,
4614
2912
  await (0, import_smithy_client.collectBody)(output.body, context);
4615
2913
  return contents;
4616
2914
  }, "de_RejectInputDeviceTransferCommand");
4617
- var de_RejectInputDeviceTransferCommandError = /* @__PURE__ */ __name(async (output, context) => {
4618
- const parsedOutput = {
4619
- ...output,
4620
- body: await parseErrorBody(output.body, context)
4621
- };
4622
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4623
- switch (errorCode) {
4624
- case "BadGatewayException":
4625
- case "com.amazonaws.medialive#BadGatewayException":
4626
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
4627
- case "BadRequestException":
4628
- case "com.amazonaws.medialive#BadRequestException":
4629
- throw await de_BadRequestExceptionRes(parsedOutput, context);
4630
- case "ConflictException":
4631
- case "com.amazonaws.medialive#ConflictException":
4632
- throw await de_ConflictExceptionRes(parsedOutput, context);
4633
- case "ForbiddenException":
4634
- case "com.amazonaws.medialive#ForbiddenException":
4635
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
4636
- case "GatewayTimeoutException":
4637
- case "com.amazonaws.medialive#GatewayTimeoutException":
4638
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
4639
- case "InternalServerErrorException":
4640
- case "com.amazonaws.medialive#InternalServerErrorException":
4641
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
4642
- case "NotFoundException":
4643
- case "com.amazonaws.medialive#NotFoundException":
4644
- throw await de_NotFoundExceptionRes(parsedOutput, context);
4645
- case "TooManyRequestsException":
4646
- case "com.amazonaws.medialive#TooManyRequestsException":
4647
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
4648
- case "UnprocessableEntityException":
4649
- case "com.amazonaws.medialive#UnprocessableEntityException":
4650
- throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
4651
- default:
4652
- const parsedBody = parsedOutput.body;
4653
- return throwDefaultError({
4654
- output,
4655
- parsedBody,
4656
- errorCode
4657
- });
4658
- }
4659
- }, "de_RejectInputDeviceTransferCommandError");
4660
2915
  var de_StartChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
4661
2916
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4662
- return de_StartChannelCommandError(output, context);
2917
+ return de_CommandError(output, context);
4663
2918
  }
4664
2919
  const contents = (0, import_smithy_client.map)({
4665
2920
  $metadata: deserializeMetadata(output)
@@ -4688,49 +2943,9 @@ var de_StartChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
4688
2943
  Object.assign(contents, doc);
4689
2944
  return contents;
4690
2945
  }, "de_StartChannelCommand");
4691
- var de_StartChannelCommandError = /* @__PURE__ */ __name(async (output, context) => {
4692
- const parsedOutput = {
4693
- ...output,
4694
- body: await parseErrorBody(output.body, context)
4695
- };
4696
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4697
- switch (errorCode) {
4698
- case "BadGatewayException":
4699
- case "com.amazonaws.medialive#BadGatewayException":
4700
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
4701
- case "BadRequestException":
4702
- case "com.amazonaws.medialive#BadRequestException":
4703
- throw await de_BadRequestExceptionRes(parsedOutput, context);
4704
- case "ConflictException":
4705
- case "com.amazonaws.medialive#ConflictException":
4706
- throw await de_ConflictExceptionRes(parsedOutput, context);
4707
- case "ForbiddenException":
4708
- case "com.amazonaws.medialive#ForbiddenException":
4709
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
4710
- case "GatewayTimeoutException":
4711
- case "com.amazonaws.medialive#GatewayTimeoutException":
4712
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
4713
- case "InternalServerErrorException":
4714
- case "com.amazonaws.medialive#InternalServerErrorException":
4715
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
4716
- case "NotFoundException":
4717
- case "com.amazonaws.medialive#NotFoundException":
4718
- throw await de_NotFoundExceptionRes(parsedOutput, context);
4719
- case "TooManyRequestsException":
4720
- case "com.amazonaws.medialive#TooManyRequestsException":
4721
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
4722
- default:
4723
- const parsedBody = parsedOutput.body;
4724
- return throwDefaultError({
4725
- output,
4726
- parsedBody,
4727
- errorCode
4728
- });
4729
- }
4730
- }, "de_StartChannelCommandError");
4731
2946
  var de_StartInputDeviceCommand = /* @__PURE__ */ __name(async (output, context) => {
4732
2947
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4733
- return de_StartInputDeviceCommandError(output, context);
2948
+ return de_CommandError(output, context);
4734
2949
  }
4735
2950
  const contents = (0, import_smithy_client.map)({
4736
2951
  $metadata: deserializeMetadata(output)
@@ -4738,49 +2953,9 @@ var de_StartInputDeviceCommand = /* @__PURE__ */ __name(async (output, context)
4738
2953
  await (0, import_smithy_client.collectBody)(output.body, context);
4739
2954
  return contents;
4740
2955
  }, "de_StartInputDeviceCommand");
4741
- var de_StartInputDeviceCommandError = /* @__PURE__ */ __name(async (output, context) => {
4742
- const parsedOutput = {
4743
- ...output,
4744
- body: await parseErrorBody(output.body, context)
4745
- };
4746
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4747
- switch (errorCode) {
4748
- case "BadGatewayException":
4749
- case "com.amazonaws.medialive#BadGatewayException":
4750
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
4751
- case "BadRequestException":
4752
- case "com.amazonaws.medialive#BadRequestException":
4753
- throw await de_BadRequestExceptionRes(parsedOutput, context);
4754
- case "ForbiddenException":
4755
- case "com.amazonaws.medialive#ForbiddenException":
4756
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
4757
- case "GatewayTimeoutException":
4758
- case "com.amazonaws.medialive#GatewayTimeoutException":
4759
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
4760
- case "InternalServerErrorException":
4761
- case "com.amazonaws.medialive#InternalServerErrorException":
4762
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
4763
- case "NotFoundException":
4764
- case "com.amazonaws.medialive#NotFoundException":
4765
- throw await de_NotFoundExceptionRes(parsedOutput, context);
4766
- case "TooManyRequestsException":
4767
- case "com.amazonaws.medialive#TooManyRequestsException":
4768
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
4769
- case "UnprocessableEntityException":
4770
- case "com.amazonaws.medialive#UnprocessableEntityException":
4771
- throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
4772
- default:
4773
- const parsedBody = parsedOutput.body;
4774
- return throwDefaultError({
4775
- output,
4776
- parsedBody,
4777
- errorCode
4778
- });
4779
- }
4780
- }, "de_StartInputDeviceCommandError");
4781
2956
  var de_StartInputDeviceMaintenanceWindowCommand = /* @__PURE__ */ __name(async (output, context) => {
4782
2957
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4783
- return de_StartInputDeviceMaintenanceWindowCommandError(output, context);
2958
+ return de_CommandError(output, context);
4784
2959
  }
4785
2960
  const contents = (0, import_smithy_client.map)({
4786
2961
  $metadata: deserializeMetadata(output)
@@ -4788,49 +2963,9 @@ var de_StartInputDeviceMaintenanceWindowCommand = /* @__PURE__ */ __name(async (
4788
2963
  await (0, import_smithy_client.collectBody)(output.body, context);
4789
2964
  return contents;
4790
2965
  }, "de_StartInputDeviceMaintenanceWindowCommand");
4791
- var de_StartInputDeviceMaintenanceWindowCommandError = /* @__PURE__ */ __name(async (output, context) => {
4792
- const parsedOutput = {
4793
- ...output,
4794
- body: await parseErrorBody(output.body, context)
4795
- };
4796
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4797
- switch (errorCode) {
4798
- case "BadGatewayException":
4799
- case "com.amazonaws.medialive#BadGatewayException":
4800
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
4801
- case "BadRequestException":
4802
- case "com.amazonaws.medialive#BadRequestException":
4803
- throw await de_BadRequestExceptionRes(parsedOutput, context);
4804
- case "ForbiddenException":
4805
- case "com.amazonaws.medialive#ForbiddenException":
4806
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
4807
- case "GatewayTimeoutException":
4808
- case "com.amazonaws.medialive#GatewayTimeoutException":
4809
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
4810
- case "InternalServerErrorException":
4811
- case "com.amazonaws.medialive#InternalServerErrorException":
4812
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
4813
- case "NotFoundException":
4814
- case "com.amazonaws.medialive#NotFoundException":
4815
- throw await de_NotFoundExceptionRes(parsedOutput, context);
4816
- case "TooManyRequestsException":
4817
- case "com.amazonaws.medialive#TooManyRequestsException":
4818
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
4819
- case "UnprocessableEntityException":
4820
- case "com.amazonaws.medialive#UnprocessableEntityException":
4821
- throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
4822
- default:
4823
- const parsedBody = parsedOutput.body;
4824
- return throwDefaultError({
4825
- output,
4826
- parsedBody,
4827
- errorCode
4828
- });
4829
- }
4830
- }, "de_StartInputDeviceMaintenanceWindowCommandError");
4831
2966
  var de_StartMultiplexCommand = /* @__PURE__ */ __name(async (output, context) => {
4832
2967
  if (output.statusCode !== 202 && output.statusCode >= 300) {
4833
- return de_StartMultiplexCommandError(output, context);
2968
+ return de_CommandError(output, context);
4834
2969
  }
4835
2970
  const contents = (0, import_smithy_client.map)({
4836
2971
  $metadata: deserializeMetadata(output)
@@ -4851,49 +2986,9 @@ var de_StartMultiplexCommand = /* @__PURE__ */ __name(async (output, context) =>
4851
2986
  Object.assign(contents, doc);
4852
2987
  return contents;
4853
2988
  }, "de_StartMultiplexCommand");
4854
- var de_StartMultiplexCommandError = /* @__PURE__ */ __name(async (output, context) => {
4855
- const parsedOutput = {
4856
- ...output,
4857
- body: await parseErrorBody(output.body, context)
4858
- };
4859
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4860
- switch (errorCode) {
4861
- case "BadGatewayException":
4862
- case "com.amazonaws.medialive#BadGatewayException":
4863
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
4864
- case "BadRequestException":
4865
- case "com.amazonaws.medialive#BadRequestException":
4866
- throw await de_BadRequestExceptionRes(parsedOutput, context);
4867
- case "ConflictException":
4868
- case "com.amazonaws.medialive#ConflictException":
4869
- throw await de_ConflictExceptionRes(parsedOutput, context);
4870
- case "ForbiddenException":
4871
- case "com.amazonaws.medialive#ForbiddenException":
4872
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
4873
- case "GatewayTimeoutException":
4874
- case "com.amazonaws.medialive#GatewayTimeoutException":
4875
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
4876
- case "InternalServerErrorException":
4877
- case "com.amazonaws.medialive#InternalServerErrorException":
4878
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
4879
- case "NotFoundException":
4880
- case "com.amazonaws.medialive#NotFoundException":
4881
- throw await de_NotFoundExceptionRes(parsedOutput, context);
4882
- case "TooManyRequestsException":
4883
- case "com.amazonaws.medialive#TooManyRequestsException":
4884
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
4885
- default:
4886
- const parsedBody = parsedOutput.body;
4887
- return throwDefaultError({
4888
- output,
4889
- parsedBody,
4890
- errorCode
4891
- });
4892
- }
4893
- }, "de_StartMultiplexCommandError");
4894
2989
  var de_StopChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
4895
2990
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4896
- return de_StopChannelCommandError(output, context);
2991
+ return de_CommandError(output, context);
4897
2992
  }
4898
2993
  const contents = (0, import_smithy_client.map)({
4899
2994
  $metadata: deserializeMetadata(output)
@@ -4922,49 +3017,9 @@ var de_StopChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
4922
3017
  Object.assign(contents, doc);
4923
3018
  return contents;
4924
3019
  }, "de_StopChannelCommand");
4925
- var de_StopChannelCommandError = /* @__PURE__ */ __name(async (output, context) => {
4926
- const parsedOutput = {
4927
- ...output,
4928
- body: await parseErrorBody(output.body, context)
4929
- };
4930
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4931
- switch (errorCode) {
4932
- case "BadGatewayException":
4933
- case "com.amazonaws.medialive#BadGatewayException":
4934
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
4935
- case "BadRequestException":
4936
- case "com.amazonaws.medialive#BadRequestException":
4937
- throw await de_BadRequestExceptionRes(parsedOutput, context);
4938
- case "ConflictException":
4939
- case "com.amazonaws.medialive#ConflictException":
4940
- throw await de_ConflictExceptionRes(parsedOutput, context);
4941
- case "ForbiddenException":
4942
- case "com.amazonaws.medialive#ForbiddenException":
4943
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
4944
- case "GatewayTimeoutException":
4945
- case "com.amazonaws.medialive#GatewayTimeoutException":
4946
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
4947
- case "InternalServerErrorException":
4948
- case "com.amazonaws.medialive#InternalServerErrorException":
4949
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
4950
- case "NotFoundException":
4951
- case "com.amazonaws.medialive#NotFoundException":
4952
- throw await de_NotFoundExceptionRes(parsedOutput, context);
4953
- case "TooManyRequestsException":
4954
- case "com.amazonaws.medialive#TooManyRequestsException":
4955
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
4956
- default:
4957
- const parsedBody = parsedOutput.body;
4958
- return throwDefaultError({
4959
- output,
4960
- parsedBody,
4961
- errorCode
4962
- });
4963
- }
4964
- }, "de_StopChannelCommandError");
4965
3020
  var de_StopInputDeviceCommand = /* @__PURE__ */ __name(async (output, context) => {
4966
3021
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4967
- return de_StopInputDeviceCommandError(output, context);
3022
+ return de_CommandError(output, context);
4968
3023
  }
4969
3024
  const contents = (0, import_smithy_client.map)({
4970
3025
  $metadata: deserializeMetadata(output)
@@ -4972,49 +3027,9 @@ var de_StopInputDeviceCommand = /* @__PURE__ */ __name(async (output, context) =
4972
3027
  await (0, import_smithy_client.collectBody)(output.body, context);
4973
3028
  return contents;
4974
3029
  }, "de_StopInputDeviceCommand");
4975
- var de_StopInputDeviceCommandError = /* @__PURE__ */ __name(async (output, context) => {
4976
- const parsedOutput = {
4977
- ...output,
4978
- body: await parseErrorBody(output.body, context)
4979
- };
4980
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4981
- switch (errorCode) {
4982
- case "BadGatewayException":
4983
- case "com.amazonaws.medialive#BadGatewayException":
4984
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
4985
- case "BadRequestException":
4986
- case "com.amazonaws.medialive#BadRequestException":
4987
- throw await de_BadRequestExceptionRes(parsedOutput, context);
4988
- case "ForbiddenException":
4989
- case "com.amazonaws.medialive#ForbiddenException":
4990
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
4991
- case "GatewayTimeoutException":
4992
- case "com.amazonaws.medialive#GatewayTimeoutException":
4993
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
4994
- case "InternalServerErrorException":
4995
- case "com.amazonaws.medialive#InternalServerErrorException":
4996
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
4997
- case "NotFoundException":
4998
- case "com.amazonaws.medialive#NotFoundException":
4999
- throw await de_NotFoundExceptionRes(parsedOutput, context);
5000
- case "TooManyRequestsException":
5001
- case "com.amazonaws.medialive#TooManyRequestsException":
5002
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
5003
- case "UnprocessableEntityException":
5004
- case "com.amazonaws.medialive#UnprocessableEntityException":
5005
- throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
5006
- default:
5007
- const parsedBody = parsedOutput.body;
5008
- return throwDefaultError({
5009
- output,
5010
- parsedBody,
5011
- errorCode
5012
- });
5013
- }
5014
- }, "de_StopInputDeviceCommandError");
5015
3030
  var de_StopMultiplexCommand = /* @__PURE__ */ __name(async (output, context) => {
5016
3031
  if (output.statusCode !== 202 && output.statusCode >= 300) {
5017
- return de_StopMultiplexCommandError(output, context);
3032
+ return de_CommandError(output, context);
5018
3033
  }
5019
3034
  const contents = (0, import_smithy_client.map)({
5020
3035
  $metadata: deserializeMetadata(output)
@@ -5035,204 +3050,47 @@ var de_StopMultiplexCommand = /* @__PURE__ */ __name(async (output, context) =>
5035
3050
  Object.assign(contents, doc);
5036
3051
  return contents;
5037
3052
  }, "de_StopMultiplexCommand");
5038
- var de_StopMultiplexCommandError = /* @__PURE__ */ __name(async (output, context) => {
5039
- const parsedOutput = {
5040
- ...output,
5041
- body: await parseErrorBody(output.body, context)
5042
- };
5043
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5044
- switch (errorCode) {
5045
- case "BadGatewayException":
5046
- case "com.amazonaws.medialive#BadGatewayException":
5047
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
5048
- case "BadRequestException":
5049
- case "com.amazonaws.medialive#BadRequestException":
5050
- throw await de_BadRequestExceptionRes(parsedOutput, context);
5051
- case "ConflictException":
5052
- case "com.amazonaws.medialive#ConflictException":
5053
- throw await de_ConflictExceptionRes(parsedOutput, context);
5054
- case "ForbiddenException":
5055
- case "com.amazonaws.medialive#ForbiddenException":
5056
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
5057
- case "GatewayTimeoutException":
5058
- case "com.amazonaws.medialive#GatewayTimeoutException":
5059
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
5060
- case "InternalServerErrorException":
5061
- case "com.amazonaws.medialive#InternalServerErrorException":
5062
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
5063
- case "NotFoundException":
5064
- case "com.amazonaws.medialive#NotFoundException":
5065
- throw await de_NotFoundExceptionRes(parsedOutput, context);
5066
- case "TooManyRequestsException":
5067
- case "com.amazonaws.medialive#TooManyRequestsException":
5068
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
5069
- default:
5070
- const parsedBody = parsedOutput.body;
5071
- return throwDefaultError({
5072
- output,
5073
- parsedBody,
5074
- errorCode
5075
- });
5076
- }
5077
- }, "de_StopMultiplexCommandError");
5078
3053
  var de_TransferInputDeviceCommand = /* @__PURE__ */ __name(async (output, context) => {
5079
3054
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5080
- return de_TransferInputDeviceCommandError(output, context);
5081
- }
5082
- const contents = (0, import_smithy_client.map)({
5083
- $metadata: deserializeMetadata(output)
5084
- });
5085
- await (0, import_smithy_client.collectBody)(output.body, context);
5086
- return contents;
5087
- }, "de_TransferInputDeviceCommand");
5088
- var de_TransferInputDeviceCommandError = /* @__PURE__ */ __name(async (output, context) => {
5089
- const parsedOutput = {
5090
- ...output,
5091
- body: await parseErrorBody(output.body, context)
5092
- };
5093
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5094
- switch (errorCode) {
5095
- case "BadGatewayException":
5096
- case "com.amazonaws.medialive#BadGatewayException":
5097
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
5098
- case "BadRequestException":
5099
- case "com.amazonaws.medialive#BadRequestException":
5100
- throw await de_BadRequestExceptionRes(parsedOutput, context);
5101
- case "ConflictException":
5102
- case "com.amazonaws.medialive#ConflictException":
5103
- throw await de_ConflictExceptionRes(parsedOutput, context);
5104
- case "ForbiddenException":
5105
- case "com.amazonaws.medialive#ForbiddenException":
5106
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
5107
- case "GatewayTimeoutException":
5108
- case "com.amazonaws.medialive#GatewayTimeoutException":
5109
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
5110
- case "InternalServerErrorException":
5111
- case "com.amazonaws.medialive#InternalServerErrorException":
5112
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
5113
- case "NotFoundException":
5114
- case "com.amazonaws.medialive#NotFoundException":
5115
- throw await de_NotFoundExceptionRes(parsedOutput, context);
5116
- case "TooManyRequestsException":
5117
- case "com.amazonaws.medialive#TooManyRequestsException":
5118
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
5119
- case "UnprocessableEntityException":
5120
- case "com.amazonaws.medialive#UnprocessableEntityException":
5121
- throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
5122
- default:
5123
- const parsedBody = parsedOutput.body;
5124
- return throwDefaultError({
5125
- output,
5126
- parsedBody,
5127
- errorCode
5128
- });
5129
- }
5130
- }, "de_TransferInputDeviceCommandError");
5131
- var de_UpdateAccountConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
5132
- if (output.statusCode !== 200 && output.statusCode >= 300) {
5133
- return de_UpdateAccountConfigurationCommandError(output, context);
5134
- }
5135
- const contents = (0, import_smithy_client.map)({
5136
- $metadata: deserializeMetadata(output)
5137
- });
5138
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
5139
- const doc = (0, import_smithy_client.take)(data, {
5140
- AccountConfiguration: [, (_) => de_AccountConfiguration(_, context), `accountConfiguration`]
5141
- });
5142
- Object.assign(contents, doc);
5143
- return contents;
5144
- }, "de_UpdateAccountConfigurationCommand");
5145
- var de_UpdateAccountConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
5146
- const parsedOutput = {
5147
- ...output,
5148
- body: await parseErrorBody(output.body, context)
5149
- };
5150
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5151
- switch (errorCode) {
5152
- case "BadGatewayException":
5153
- case "com.amazonaws.medialive#BadGatewayException":
5154
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
5155
- case "BadRequestException":
5156
- case "com.amazonaws.medialive#BadRequestException":
5157
- throw await de_BadRequestExceptionRes(parsedOutput, context);
5158
- case "ForbiddenException":
5159
- case "com.amazonaws.medialive#ForbiddenException":
5160
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
5161
- case "GatewayTimeoutException":
5162
- case "com.amazonaws.medialive#GatewayTimeoutException":
5163
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
5164
- case "InternalServerErrorException":
5165
- case "com.amazonaws.medialive#InternalServerErrorException":
5166
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
5167
- case "TooManyRequestsException":
5168
- case "com.amazonaws.medialive#TooManyRequestsException":
5169
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
5170
- case "UnprocessableEntityException":
5171
- case "com.amazonaws.medialive#UnprocessableEntityException":
5172
- throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
5173
- default:
5174
- const parsedBody = parsedOutput.body;
5175
- return throwDefaultError({
5176
- output,
5177
- parsedBody,
5178
- errorCode
5179
- });
5180
- }
5181
- }, "de_UpdateAccountConfigurationCommandError");
5182
- var de_UpdateChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
5183
- if (output.statusCode !== 200 && output.statusCode >= 300) {
5184
- return de_UpdateChannelCommandError(output, context);
3055
+ return de_CommandError(output, context);
5185
3056
  }
5186
3057
  const contents = (0, import_smithy_client.map)({
5187
3058
  $metadata: deserializeMetadata(output)
5188
3059
  });
5189
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
5190
- const doc = (0, import_smithy_client.take)(data, {
5191
- Channel: [, (_) => de_Channel(_, context), `channel`]
5192
- });
5193
- Object.assign(contents, doc);
5194
- return contents;
5195
- }, "de_UpdateChannelCommand");
5196
- var de_UpdateChannelCommandError = /* @__PURE__ */ __name(async (output, context) => {
5197
- const parsedOutput = {
5198
- ...output,
5199
- body: await parseErrorBody(output.body, context)
5200
- };
5201
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5202
- switch (errorCode) {
5203
- case "BadGatewayException":
5204
- case "com.amazonaws.medialive#BadGatewayException":
5205
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
5206
- case "BadRequestException":
5207
- case "com.amazonaws.medialive#BadRequestException":
5208
- throw await de_BadRequestExceptionRes(parsedOutput, context);
5209
- case "ConflictException":
5210
- case "com.amazonaws.medialive#ConflictException":
5211
- throw await de_ConflictExceptionRes(parsedOutput, context);
5212
- case "ForbiddenException":
5213
- case "com.amazonaws.medialive#ForbiddenException":
5214
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
5215
- case "GatewayTimeoutException":
5216
- case "com.amazonaws.medialive#GatewayTimeoutException":
5217
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
5218
- case "InternalServerErrorException":
5219
- case "com.amazonaws.medialive#InternalServerErrorException":
5220
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
5221
- case "UnprocessableEntityException":
5222
- case "com.amazonaws.medialive#UnprocessableEntityException":
5223
- throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
5224
- default:
5225
- const parsedBody = parsedOutput.body;
5226
- return throwDefaultError({
5227
- output,
5228
- parsedBody,
5229
- errorCode
5230
- });
3060
+ await (0, import_smithy_client.collectBody)(output.body, context);
3061
+ return contents;
3062
+ }, "de_TransferInputDeviceCommand");
3063
+ var de_UpdateAccountConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
3064
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3065
+ return de_CommandError(output, context);
3066
+ }
3067
+ const contents = (0, import_smithy_client.map)({
3068
+ $metadata: deserializeMetadata(output)
3069
+ });
3070
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
3071
+ const doc = (0, import_smithy_client.take)(data, {
3072
+ AccountConfiguration: [, (_) => de_AccountConfiguration(_, context), `accountConfiguration`]
3073
+ });
3074
+ Object.assign(contents, doc);
3075
+ return contents;
3076
+ }, "de_UpdateAccountConfigurationCommand");
3077
+ var de_UpdateChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
3078
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3079
+ return de_CommandError(output, context);
5231
3080
  }
5232
- }, "de_UpdateChannelCommandError");
3081
+ const contents = (0, import_smithy_client.map)({
3082
+ $metadata: deserializeMetadata(output)
3083
+ });
3084
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
3085
+ const doc = (0, import_smithy_client.take)(data, {
3086
+ Channel: [, (_) => de_Channel(_, context), `channel`]
3087
+ });
3088
+ Object.assign(contents, doc);
3089
+ return contents;
3090
+ }, "de_UpdateChannelCommand");
5233
3091
  var de_UpdateChannelClassCommand = /* @__PURE__ */ __name(async (output, context) => {
5234
3092
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5235
- return de_UpdateChannelClassCommandError(output, context);
3093
+ return de_CommandError(output, context);
5236
3094
  }
5237
3095
  const contents = (0, import_smithy_client.map)({
5238
3096
  $metadata: deserializeMetadata(output)
@@ -5244,52 +3102,9 @@ var de_UpdateChannelClassCommand = /* @__PURE__ */ __name(async (output, context
5244
3102
  Object.assign(contents, doc);
5245
3103
  return contents;
5246
3104
  }, "de_UpdateChannelClassCommand");
5247
- var de_UpdateChannelClassCommandError = /* @__PURE__ */ __name(async (output, context) => {
5248
- const parsedOutput = {
5249
- ...output,
5250
- body: await parseErrorBody(output.body, context)
5251
- };
5252
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5253
- switch (errorCode) {
5254
- case "BadGatewayException":
5255
- case "com.amazonaws.medialive#BadGatewayException":
5256
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
5257
- case "BadRequestException":
5258
- case "com.amazonaws.medialive#BadRequestException":
5259
- throw await de_BadRequestExceptionRes(parsedOutput, context);
5260
- case "ConflictException":
5261
- case "com.amazonaws.medialive#ConflictException":
5262
- throw await de_ConflictExceptionRes(parsedOutput, context);
5263
- case "ForbiddenException":
5264
- case "com.amazonaws.medialive#ForbiddenException":
5265
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
5266
- case "GatewayTimeoutException":
5267
- case "com.amazonaws.medialive#GatewayTimeoutException":
5268
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
5269
- case "InternalServerErrorException":
5270
- case "com.amazonaws.medialive#InternalServerErrorException":
5271
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
5272
- case "NotFoundException":
5273
- case "com.amazonaws.medialive#NotFoundException":
5274
- throw await de_NotFoundExceptionRes(parsedOutput, context);
5275
- case "TooManyRequestsException":
5276
- case "com.amazonaws.medialive#TooManyRequestsException":
5277
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
5278
- case "UnprocessableEntityException":
5279
- case "com.amazonaws.medialive#UnprocessableEntityException":
5280
- throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
5281
- default:
5282
- const parsedBody = parsedOutput.body;
5283
- return throwDefaultError({
5284
- output,
5285
- parsedBody,
5286
- errorCode
5287
- });
5288
- }
5289
- }, "de_UpdateChannelClassCommandError");
5290
3105
  var de_UpdateInputCommand = /* @__PURE__ */ __name(async (output, context) => {
5291
3106
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5292
- return de_UpdateInputCommandError(output, context);
3107
+ return de_CommandError(output, context);
5293
3108
  }
5294
3109
  const contents = (0, import_smithy_client.map)({
5295
3110
  $metadata: deserializeMetadata(output)
@@ -5301,46 +3116,9 @@ var de_UpdateInputCommand = /* @__PURE__ */ __name(async (output, context) => {
5301
3116
  Object.assign(contents, doc);
5302
3117
  return contents;
5303
3118
  }, "de_UpdateInputCommand");
5304
- var de_UpdateInputCommandError = /* @__PURE__ */ __name(async (output, context) => {
5305
- const parsedOutput = {
5306
- ...output,
5307
- body: await parseErrorBody(output.body, context)
5308
- };
5309
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5310
- switch (errorCode) {
5311
- case "BadGatewayException":
5312
- case "com.amazonaws.medialive#BadGatewayException":
5313
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
5314
- case "BadRequestException":
5315
- case "com.amazonaws.medialive#BadRequestException":
5316
- throw await de_BadRequestExceptionRes(parsedOutput, context);
5317
- case "ConflictException":
5318
- case "com.amazonaws.medialive#ConflictException":
5319
- throw await de_ConflictExceptionRes(parsedOutput, context);
5320
- case "ForbiddenException":
5321
- case "com.amazonaws.medialive#ForbiddenException":
5322
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
5323
- case "GatewayTimeoutException":
5324
- case "com.amazonaws.medialive#GatewayTimeoutException":
5325
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
5326
- case "InternalServerErrorException":
5327
- case "com.amazonaws.medialive#InternalServerErrorException":
5328
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
5329
- case "NotFoundException":
5330
- case "com.amazonaws.medialive#NotFoundException":
5331
- throw await de_NotFoundExceptionRes(parsedOutput, context);
5332
- default:
5333
- const parsedBody = parsedOutput.body;
5334
- return throwDefaultError({
5335
- output,
5336
- parsedBody,
5337
- errorCode
5338
- });
5339
- }
5340
- }, "de_UpdateInputCommandError");
5341
3119
  var de_UpdateInputDeviceCommand = /* @__PURE__ */ __name(async (output, context) => {
5342
3120
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5343
- return de_UpdateInputDeviceCommandError(output, context);
3121
+ return de_CommandError(output, context);
5344
3122
  }
5345
3123
  const contents = (0, import_smithy_client.map)({
5346
3124
  $metadata: deserializeMetadata(output)
@@ -5367,49 +3145,9 @@ var de_UpdateInputDeviceCommand = /* @__PURE__ */ __name(async (output, context)
5367
3145
  Object.assign(contents, doc);
5368
3146
  return contents;
5369
3147
  }, "de_UpdateInputDeviceCommand");
5370
- var de_UpdateInputDeviceCommandError = /* @__PURE__ */ __name(async (output, context) => {
5371
- const parsedOutput = {
5372
- ...output,
5373
- body: await parseErrorBody(output.body, context)
5374
- };
5375
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5376
- switch (errorCode) {
5377
- case "BadGatewayException":
5378
- case "com.amazonaws.medialive#BadGatewayException":
5379
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
5380
- case "BadRequestException":
5381
- case "com.amazonaws.medialive#BadRequestException":
5382
- throw await de_BadRequestExceptionRes(parsedOutput, context);
5383
- case "ForbiddenException":
5384
- case "com.amazonaws.medialive#ForbiddenException":
5385
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
5386
- case "GatewayTimeoutException":
5387
- case "com.amazonaws.medialive#GatewayTimeoutException":
5388
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
5389
- case "InternalServerErrorException":
5390
- case "com.amazonaws.medialive#InternalServerErrorException":
5391
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
5392
- case "NotFoundException":
5393
- case "com.amazonaws.medialive#NotFoundException":
5394
- throw await de_NotFoundExceptionRes(parsedOutput, context);
5395
- case "TooManyRequestsException":
5396
- case "com.amazonaws.medialive#TooManyRequestsException":
5397
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
5398
- case "UnprocessableEntityException":
5399
- case "com.amazonaws.medialive#UnprocessableEntityException":
5400
- throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
5401
- default:
5402
- const parsedBody = parsedOutput.body;
5403
- return throwDefaultError({
5404
- output,
5405
- parsedBody,
5406
- errorCode
5407
- });
5408
- }
5409
- }, "de_UpdateInputDeviceCommandError");
5410
3148
  var de_UpdateInputSecurityGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
5411
3149
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5412
- return de_UpdateInputSecurityGroupCommandError(output, context);
3150
+ return de_CommandError(output, context);
5413
3151
  }
5414
3152
  const contents = (0, import_smithy_client.map)({
5415
3153
  $metadata: deserializeMetadata(output)
@@ -5421,46 +3159,9 @@ var de_UpdateInputSecurityGroupCommand = /* @__PURE__ */ __name(async (output, c
5421
3159
  Object.assign(contents, doc);
5422
3160
  return contents;
5423
3161
  }, "de_UpdateInputSecurityGroupCommand");
5424
- var de_UpdateInputSecurityGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
5425
- const parsedOutput = {
5426
- ...output,
5427
- body: await parseErrorBody(output.body, context)
5428
- };
5429
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5430
- switch (errorCode) {
5431
- case "BadGatewayException":
5432
- case "com.amazonaws.medialive#BadGatewayException":
5433
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
5434
- case "BadRequestException":
5435
- case "com.amazonaws.medialive#BadRequestException":
5436
- throw await de_BadRequestExceptionRes(parsedOutput, context);
5437
- case "ConflictException":
5438
- case "com.amazonaws.medialive#ConflictException":
5439
- throw await de_ConflictExceptionRes(parsedOutput, context);
5440
- case "ForbiddenException":
5441
- case "com.amazonaws.medialive#ForbiddenException":
5442
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
5443
- case "GatewayTimeoutException":
5444
- case "com.amazonaws.medialive#GatewayTimeoutException":
5445
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
5446
- case "InternalServerErrorException":
5447
- case "com.amazonaws.medialive#InternalServerErrorException":
5448
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
5449
- case "NotFoundException":
5450
- case "com.amazonaws.medialive#NotFoundException":
5451
- throw await de_NotFoundExceptionRes(parsedOutput, context);
5452
- default:
5453
- const parsedBody = parsedOutput.body;
5454
- return throwDefaultError({
5455
- output,
5456
- parsedBody,
5457
- errorCode
5458
- });
5459
- }
5460
- }, "de_UpdateInputSecurityGroupCommandError");
5461
3162
  var de_UpdateMultiplexCommand = /* @__PURE__ */ __name(async (output, context) => {
5462
3163
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5463
- return de_UpdateMultiplexCommandError(output, context);
3164
+ return de_CommandError(output, context);
5464
3165
  }
5465
3166
  const contents = (0, import_smithy_client.map)({
5466
3167
  $metadata: deserializeMetadata(output)
@@ -5472,49 +3173,9 @@ var de_UpdateMultiplexCommand = /* @__PURE__ */ __name(async (output, context) =
5472
3173
  Object.assign(contents, doc);
5473
3174
  return contents;
5474
3175
  }, "de_UpdateMultiplexCommand");
5475
- var de_UpdateMultiplexCommandError = /* @__PURE__ */ __name(async (output, context) => {
5476
- const parsedOutput = {
5477
- ...output,
5478
- body: await parseErrorBody(output.body, context)
5479
- };
5480
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5481
- switch (errorCode) {
5482
- case "BadGatewayException":
5483
- case "com.amazonaws.medialive#BadGatewayException":
5484
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
5485
- case "BadRequestException":
5486
- case "com.amazonaws.medialive#BadRequestException":
5487
- throw await de_BadRequestExceptionRes(parsedOutput, context);
5488
- case "ConflictException":
5489
- case "com.amazonaws.medialive#ConflictException":
5490
- throw await de_ConflictExceptionRes(parsedOutput, context);
5491
- case "ForbiddenException":
5492
- case "com.amazonaws.medialive#ForbiddenException":
5493
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
5494
- case "GatewayTimeoutException":
5495
- case "com.amazonaws.medialive#GatewayTimeoutException":
5496
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
5497
- case "InternalServerErrorException":
5498
- case "com.amazonaws.medialive#InternalServerErrorException":
5499
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
5500
- case "NotFoundException":
5501
- case "com.amazonaws.medialive#NotFoundException":
5502
- throw await de_NotFoundExceptionRes(parsedOutput, context);
5503
- case "UnprocessableEntityException":
5504
- case "com.amazonaws.medialive#UnprocessableEntityException":
5505
- throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
5506
- default:
5507
- const parsedBody = parsedOutput.body;
5508
- return throwDefaultError({
5509
- output,
5510
- parsedBody,
5511
- errorCode
5512
- });
5513
- }
5514
- }, "de_UpdateMultiplexCommandError");
5515
3176
  var de_UpdateMultiplexProgramCommand = /* @__PURE__ */ __name(async (output, context) => {
5516
3177
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5517
- return de_UpdateMultiplexProgramCommandError(output, context);
3178
+ return de_CommandError(output, context);
5518
3179
  }
5519
3180
  const contents = (0, import_smithy_client.map)({
5520
3181
  $metadata: deserializeMetadata(output)
@@ -5526,49 +3187,9 @@ var de_UpdateMultiplexProgramCommand = /* @__PURE__ */ __name(async (output, con
5526
3187
  Object.assign(contents, doc);
5527
3188
  return contents;
5528
3189
  }, "de_UpdateMultiplexProgramCommand");
5529
- var de_UpdateMultiplexProgramCommandError = /* @__PURE__ */ __name(async (output, context) => {
5530
- const parsedOutput = {
5531
- ...output,
5532
- body: await parseErrorBody(output.body, context)
5533
- };
5534
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5535
- switch (errorCode) {
5536
- case "BadGatewayException":
5537
- case "com.amazonaws.medialive#BadGatewayException":
5538
- throw await de_BadGatewayExceptionRes(parsedOutput, context);
5539
- case "BadRequestException":
5540
- case "com.amazonaws.medialive#BadRequestException":
5541
- throw await de_BadRequestExceptionRes(parsedOutput, context);
5542
- case "ConflictException":
5543
- case "com.amazonaws.medialive#ConflictException":
5544
- throw await de_ConflictExceptionRes(parsedOutput, context);
5545
- case "ForbiddenException":
5546
- case "com.amazonaws.medialive#ForbiddenException":
5547
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
5548
- case "GatewayTimeoutException":
5549
- case "com.amazonaws.medialive#GatewayTimeoutException":
5550
- throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
5551
- case "InternalServerErrorException":
5552
- case "com.amazonaws.medialive#InternalServerErrorException":
5553
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
5554
- case "NotFoundException":
5555
- case "com.amazonaws.medialive#NotFoundException":
5556
- throw await de_NotFoundExceptionRes(parsedOutput, context);
5557
- case "UnprocessableEntityException":
5558
- case "com.amazonaws.medialive#UnprocessableEntityException":
5559
- throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
5560
- default:
5561
- const parsedBody = parsedOutput.body;
5562
- return throwDefaultError({
5563
- output,
5564
- parsedBody,
5565
- errorCode
5566
- });
5567
- }
5568
- }, "de_UpdateMultiplexProgramCommandError");
5569
3190
  var de_UpdateReservationCommand = /* @__PURE__ */ __name(async (output, context) => {
5570
3191
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5571
- return de_UpdateReservationCommandError(output, context);
3192
+ return de_CommandError(output, context);
5572
3193
  }
5573
3194
  const contents = (0, import_smithy_client.map)({
5574
3195
  $metadata: deserializeMetadata(output)
@@ -5580,7 +3201,7 @@ var de_UpdateReservationCommand = /* @__PURE__ */ __name(async (output, context)
5580
3201
  Object.assign(contents, doc);
5581
3202
  return contents;
5582
3203
  }, "de_UpdateReservationCommand");
5583
- var de_UpdateReservationCommandError = /* @__PURE__ */ __name(async (output, context) => {
3204
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
5584
3205
  const parsedOutput = {
5585
3206
  ...output,
5586
3207
  body: await parseErrorBody(output.body, context)
@@ -5611,6 +3232,9 @@ var de_UpdateReservationCommandError = /* @__PURE__ */ __name(async (output, con
5611
3232
  case "TooManyRequestsException":
5612
3233
  case "com.amazonaws.medialive#TooManyRequestsException":
5613
3234
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
3235
+ case "UnprocessableEntityException":
3236
+ case "com.amazonaws.medialive#UnprocessableEntityException":
3237
+ throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
5614
3238
  default:
5615
3239
  const parsedBody = parsedOutput.body;
5616
3240
  return throwDefaultError({
@@ -5619,7 +3243,7 @@ var de_UpdateReservationCommandError = /* @__PURE__ */ __name(async (output, con
5619
3243
  errorCode
5620
3244
  });
5621
3245
  }
5622
- }, "de_UpdateReservationCommandError");
3246
+ }, "de_CommandError");
5623
3247
  var throwDefaultError = (0, import_smithy_client.withBaseException)(MediaLiveServiceException);
5624
3248
  var de_BadGatewayExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
5625
3249
  const contents = (0, import_smithy_client.map)({});