@aws-sdk/client-mediaconvert 3.505.0 → 3.509.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 +30 -948
- package/dist-es/protocols/Aws_restJson1.js +54 -972
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -2218,7 +2218,7 @@ var se_UpdateQueueCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
2218
2218
|
}, "se_UpdateQueueCommand");
|
|
2219
2219
|
var de_AssociateCertificateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2220
2220
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2221
|
-
return
|
|
2221
|
+
return de_CommandError(output, context);
|
|
2222
2222
|
}
|
|
2223
2223
|
const contents = (0, import_smithy_client.map)({
|
|
2224
2224
|
$metadata: deserializeMetadata(output)
|
|
@@ -2226,43 +2226,9 @@ var de_AssociateCertificateCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2226
2226
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2227
2227
|
return contents;
|
|
2228
2228
|
}, "de_AssociateCertificateCommand");
|
|
2229
|
-
var de_AssociateCertificateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2230
|
-
const parsedOutput = {
|
|
2231
|
-
...output,
|
|
2232
|
-
body: await parseErrorBody(output.body, context)
|
|
2233
|
-
};
|
|
2234
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2235
|
-
switch (errorCode) {
|
|
2236
|
-
case "BadRequestException":
|
|
2237
|
-
case "com.amazonaws.mediaconvert#BadRequestException":
|
|
2238
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2239
|
-
case "ConflictException":
|
|
2240
|
-
case "com.amazonaws.mediaconvert#ConflictException":
|
|
2241
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2242
|
-
case "ForbiddenException":
|
|
2243
|
-
case "com.amazonaws.mediaconvert#ForbiddenException":
|
|
2244
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2245
|
-
case "InternalServerErrorException":
|
|
2246
|
-
case "com.amazonaws.mediaconvert#InternalServerErrorException":
|
|
2247
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2248
|
-
case "NotFoundException":
|
|
2249
|
-
case "com.amazonaws.mediaconvert#NotFoundException":
|
|
2250
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2251
|
-
case "TooManyRequestsException":
|
|
2252
|
-
case "com.amazonaws.mediaconvert#TooManyRequestsException":
|
|
2253
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2254
|
-
default:
|
|
2255
|
-
const parsedBody = parsedOutput.body;
|
|
2256
|
-
return throwDefaultError({
|
|
2257
|
-
output,
|
|
2258
|
-
parsedBody,
|
|
2259
|
-
errorCode
|
|
2260
|
-
});
|
|
2261
|
-
}
|
|
2262
|
-
}, "de_AssociateCertificateCommandError");
|
|
2263
2229
|
var de_CancelJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2264
2230
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2265
|
-
return
|
|
2231
|
+
return de_CommandError(output, context);
|
|
2266
2232
|
}
|
|
2267
2233
|
const contents = (0, import_smithy_client.map)({
|
|
2268
2234
|
$metadata: deserializeMetadata(output)
|
|
@@ -2270,43 +2236,9 @@ var de_CancelJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2270
2236
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2271
2237
|
return contents;
|
|
2272
2238
|
}, "de_CancelJobCommand");
|
|
2273
|
-
var de_CancelJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2274
|
-
const parsedOutput = {
|
|
2275
|
-
...output,
|
|
2276
|
-
body: await parseErrorBody(output.body, context)
|
|
2277
|
-
};
|
|
2278
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2279
|
-
switch (errorCode) {
|
|
2280
|
-
case "BadRequestException":
|
|
2281
|
-
case "com.amazonaws.mediaconvert#BadRequestException":
|
|
2282
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2283
|
-
case "ConflictException":
|
|
2284
|
-
case "com.amazonaws.mediaconvert#ConflictException":
|
|
2285
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2286
|
-
case "ForbiddenException":
|
|
2287
|
-
case "com.amazonaws.mediaconvert#ForbiddenException":
|
|
2288
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2289
|
-
case "InternalServerErrorException":
|
|
2290
|
-
case "com.amazonaws.mediaconvert#InternalServerErrorException":
|
|
2291
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2292
|
-
case "NotFoundException":
|
|
2293
|
-
case "com.amazonaws.mediaconvert#NotFoundException":
|
|
2294
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2295
|
-
case "TooManyRequestsException":
|
|
2296
|
-
case "com.amazonaws.mediaconvert#TooManyRequestsException":
|
|
2297
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2298
|
-
default:
|
|
2299
|
-
const parsedBody = parsedOutput.body;
|
|
2300
|
-
return throwDefaultError({
|
|
2301
|
-
output,
|
|
2302
|
-
parsedBody,
|
|
2303
|
-
errorCode
|
|
2304
|
-
});
|
|
2305
|
-
}
|
|
2306
|
-
}, "de_CancelJobCommandError");
|
|
2307
2239
|
var de_CreateJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2308
2240
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2309
|
-
return
|
|
2241
|
+
return de_CommandError(output, context);
|
|
2310
2242
|
}
|
|
2311
2243
|
const contents = (0, import_smithy_client.map)({
|
|
2312
2244
|
$metadata: deserializeMetadata(output)
|
|
@@ -2318,43 +2250,9 @@ var de_CreateJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2318
2250
|
Object.assign(contents, doc);
|
|
2319
2251
|
return contents;
|
|
2320
2252
|
}, "de_CreateJobCommand");
|
|
2321
|
-
var de_CreateJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2322
|
-
const parsedOutput = {
|
|
2323
|
-
...output,
|
|
2324
|
-
body: await parseErrorBody(output.body, context)
|
|
2325
|
-
};
|
|
2326
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2327
|
-
switch (errorCode) {
|
|
2328
|
-
case "BadRequestException":
|
|
2329
|
-
case "com.amazonaws.mediaconvert#BadRequestException":
|
|
2330
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2331
|
-
case "ConflictException":
|
|
2332
|
-
case "com.amazonaws.mediaconvert#ConflictException":
|
|
2333
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2334
|
-
case "ForbiddenException":
|
|
2335
|
-
case "com.amazonaws.mediaconvert#ForbiddenException":
|
|
2336
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2337
|
-
case "InternalServerErrorException":
|
|
2338
|
-
case "com.amazonaws.mediaconvert#InternalServerErrorException":
|
|
2339
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2340
|
-
case "NotFoundException":
|
|
2341
|
-
case "com.amazonaws.mediaconvert#NotFoundException":
|
|
2342
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2343
|
-
case "TooManyRequestsException":
|
|
2344
|
-
case "com.amazonaws.mediaconvert#TooManyRequestsException":
|
|
2345
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2346
|
-
default:
|
|
2347
|
-
const parsedBody = parsedOutput.body;
|
|
2348
|
-
return throwDefaultError({
|
|
2349
|
-
output,
|
|
2350
|
-
parsedBody,
|
|
2351
|
-
errorCode
|
|
2352
|
-
});
|
|
2353
|
-
}
|
|
2354
|
-
}, "de_CreateJobCommandError");
|
|
2355
2253
|
var de_CreateJobTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2356
2254
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2357
|
-
return
|
|
2255
|
+
return de_CommandError(output, context);
|
|
2358
2256
|
}
|
|
2359
2257
|
const contents = (0, import_smithy_client.map)({
|
|
2360
2258
|
$metadata: deserializeMetadata(output)
|
|
@@ -2366,43 +2264,9 @@ var de_CreateJobTemplateCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2366
2264
|
Object.assign(contents, doc);
|
|
2367
2265
|
return contents;
|
|
2368
2266
|
}, "de_CreateJobTemplateCommand");
|
|
2369
|
-
var de_CreateJobTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2370
|
-
const parsedOutput = {
|
|
2371
|
-
...output,
|
|
2372
|
-
body: await parseErrorBody(output.body, context)
|
|
2373
|
-
};
|
|
2374
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2375
|
-
switch (errorCode) {
|
|
2376
|
-
case "BadRequestException":
|
|
2377
|
-
case "com.amazonaws.mediaconvert#BadRequestException":
|
|
2378
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2379
|
-
case "ConflictException":
|
|
2380
|
-
case "com.amazonaws.mediaconvert#ConflictException":
|
|
2381
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2382
|
-
case "ForbiddenException":
|
|
2383
|
-
case "com.amazonaws.mediaconvert#ForbiddenException":
|
|
2384
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2385
|
-
case "InternalServerErrorException":
|
|
2386
|
-
case "com.amazonaws.mediaconvert#InternalServerErrorException":
|
|
2387
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2388
|
-
case "NotFoundException":
|
|
2389
|
-
case "com.amazonaws.mediaconvert#NotFoundException":
|
|
2390
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2391
|
-
case "TooManyRequestsException":
|
|
2392
|
-
case "com.amazonaws.mediaconvert#TooManyRequestsException":
|
|
2393
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2394
|
-
default:
|
|
2395
|
-
const parsedBody = parsedOutput.body;
|
|
2396
|
-
return throwDefaultError({
|
|
2397
|
-
output,
|
|
2398
|
-
parsedBody,
|
|
2399
|
-
errorCode
|
|
2400
|
-
});
|
|
2401
|
-
}
|
|
2402
|
-
}, "de_CreateJobTemplateCommandError");
|
|
2403
2267
|
var de_CreatePresetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2404
2268
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2405
|
-
return
|
|
2269
|
+
return de_CommandError(output, context);
|
|
2406
2270
|
}
|
|
2407
2271
|
const contents = (0, import_smithy_client.map)({
|
|
2408
2272
|
$metadata: deserializeMetadata(output)
|
|
@@ -2414,43 +2278,9 @@ var de_CreatePresetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2414
2278
|
Object.assign(contents, doc);
|
|
2415
2279
|
return contents;
|
|
2416
2280
|
}, "de_CreatePresetCommand");
|
|
2417
|
-
var de_CreatePresetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2418
|
-
const parsedOutput = {
|
|
2419
|
-
...output,
|
|
2420
|
-
body: await parseErrorBody(output.body, context)
|
|
2421
|
-
};
|
|
2422
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2423
|
-
switch (errorCode) {
|
|
2424
|
-
case "BadRequestException":
|
|
2425
|
-
case "com.amazonaws.mediaconvert#BadRequestException":
|
|
2426
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2427
|
-
case "ConflictException":
|
|
2428
|
-
case "com.amazonaws.mediaconvert#ConflictException":
|
|
2429
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2430
|
-
case "ForbiddenException":
|
|
2431
|
-
case "com.amazonaws.mediaconvert#ForbiddenException":
|
|
2432
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2433
|
-
case "InternalServerErrorException":
|
|
2434
|
-
case "com.amazonaws.mediaconvert#InternalServerErrorException":
|
|
2435
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2436
|
-
case "NotFoundException":
|
|
2437
|
-
case "com.amazonaws.mediaconvert#NotFoundException":
|
|
2438
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2439
|
-
case "TooManyRequestsException":
|
|
2440
|
-
case "com.amazonaws.mediaconvert#TooManyRequestsException":
|
|
2441
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2442
|
-
default:
|
|
2443
|
-
const parsedBody = parsedOutput.body;
|
|
2444
|
-
return throwDefaultError({
|
|
2445
|
-
output,
|
|
2446
|
-
parsedBody,
|
|
2447
|
-
errorCode
|
|
2448
|
-
});
|
|
2449
|
-
}
|
|
2450
|
-
}, "de_CreatePresetCommandError");
|
|
2451
2281
|
var de_CreateQueueCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2452
2282
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2453
|
-
return
|
|
2283
|
+
return de_CommandError(output, context);
|
|
2454
2284
|
}
|
|
2455
2285
|
const contents = (0, import_smithy_client.map)({
|
|
2456
2286
|
$metadata: deserializeMetadata(output)
|
|
@@ -2462,43 +2292,9 @@ var de_CreateQueueCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2462
2292
|
Object.assign(contents, doc);
|
|
2463
2293
|
return contents;
|
|
2464
2294
|
}, "de_CreateQueueCommand");
|
|
2465
|
-
var de_CreateQueueCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2466
|
-
const parsedOutput = {
|
|
2467
|
-
...output,
|
|
2468
|
-
body: await parseErrorBody(output.body, context)
|
|
2469
|
-
};
|
|
2470
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2471
|
-
switch (errorCode) {
|
|
2472
|
-
case "BadRequestException":
|
|
2473
|
-
case "com.amazonaws.mediaconvert#BadRequestException":
|
|
2474
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2475
|
-
case "ConflictException":
|
|
2476
|
-
case "com.amazonaws.mediaconvert#ConflictException":
|
|
2477
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2478
|
-
case "ForbiddenException":
|
|
2479
|
-
case "com.amazonaws.mediaconvert#ForbiddenException":
|
|
2480
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2481
|
-
case "InternalServerErrorException":
|
|
2482
|
-
case "com.amazonaws.mediaconvert#InternalServerErrorException":
|
|
2483
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2484
|
-
case "NotFoundException":
|
|
2485
|
-
case "com.amazonaws.mediaconvert#NotFoundException":
|
|
2486
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2487
|
-
case "TooManyRequestsException":
|
|
2488
|
-
case "com.amazonaws.mediaconvert#TooManyRequestsException":
|
|
2489
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2490
|
-
default:
|
|
2491
|
-
const parsedBody = parsedOutput.body;
|
|
2492
|
-
return throwDefaultError({
|
|
2493
|
-
output,
|
|
2494
|
-
parsedBody,
|
|
2495
|
-
errorCode
|
|
2496
|
-
});
|
|
2497
|
-
}
|
|
2498
|
-
}, "de_CreateQueueCommandError");
|
|
2499
2295
|
var de_DeleteJobTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2500
2296
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2501
|
-
return
|
|
2297
|
+
return de_CommandError(output, context);
|
|
2502
2298
|
}
|
|
2503
2299
|
const contents = (0, import_smithy_client.map)({
|
|
2504
2300
|
$metadata: deserializeMetadata(output)
|
|
@@ -2506,43 +2302,9 @@ var de_DeleteJobTemplateCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2506
2302
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2507
2303
|
return contents;
|
|
2508
2304
|
}, "de_DeleteJobTemplateCommand");
|
|
2509
|
-
var de_DeleteJobTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2510
|
-
const parsedOutput = {
|
|
2511
|
-
...output,
|
|
2512
|
-
body: await parseErrorBody(output.body, context)
|
|
2513
|
-
};
|
|
2514
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2515
|
-
switch (errorCode) {
|
|
2516
|
-
case "BadRequestException":
|
|
2517
|
-
case "com.amazonaws.mediaconvert#BadRequestException":
|
|
2518
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2519
|
-
case "ConflictException":
|
|
2520
|
-
case "com.amazonaws.mediaconvert#ConflictException":
|
|
2521
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2522
|
-
case "ForbiddenException":
|
|
2523
|
-
case "com.amazonaws.mediaconvert#ForbiddenException":
|
|
2524
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2525
|
-
case "InternalServerErrorException":
|
|
2526
|
-
case "com.amazonaws.mediaconvert#InternalServerErrorException":
|
|
2527
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2528
|
-
case "NotFoundException":
|
|
2529
|
-
case "com.amazonaws.mediaconvert#NotFoundException":
|
|
2530
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2531
|
-
case "TooManyRequestsException":
|
|
2532
|
-
case "com.amazonaws.mediaconvert#TooManyRequestsException":
|
|
2533
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2534
|
-
default:
|
|
2535
|
-
const parsedBody = parsedOutput.body;
|
|
2536
|
-
return throwDefaultError({
|
|
2537
|
-
output,
|
|
2538
|
-
parsedBody,
|
|
2539
|
-
errorCode
|
|
2540
|
-
});
|
|
2541
|
-
}
|
|
2542
|
-
}, "de_DeleteJobTemplateCommandError");
|
|
2543
2305
|
var de_DeletePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2544
2306
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2545
|
-
return
|
|
2307
|
+
return de_CommandError(output, context);
|
|
2546
2308
|
}
|
|
2547
2309
|
const contents = (0, import_smithy_client.map)({
|
|
2548
2310
|
$metadata: deserializeMetadata(output)
|
|
@@ -2550,43 +2312,9 @@ var de_DeletePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2550
2312
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2551
2313
|
return contents;
|
|
2552
2314
|
}, "de_DeletePolicyCommand");
|
|
2553
|
-
var de_DeletePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2554
|
-
const parsedOutput = {
|
|
2555
|
-
...output,
|
|
2556
|
-
body: await parseErrorBody(output.body, context)
|
|
2557
|
-
};
|
|
2558
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2559
|
-
switch (errorCode) {
|
|
2560
|
-
case "BadRequestException":
|
|
2561
|
-
case "com.amazonaws.mediaconvert#BadRequestException":
|
|
2562
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2563
|
-
case "ConflictException":
|
|
2564
|
-
case "com.amazonaws.mediaconvert#ConflictException":
|
|
2565
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2566
|
-
case "ForbiddenException":
|
|
2567
|
-
case "com.amazonaws.mediaconvert#ForbiddenException":
|
|
2568
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2569
|
-
case "InternalServerErrorException":
|
|
2570
|
-
case "com.amazonaws.mediaconvert#InternalServerErrorException":
|
|
2571
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2572
|
-
case "NotFoundException":
|
|
2573
|
-
case "com.amazonaws.mediaconvert#NotFoundException":
|
|
2574
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2575
|
-
case "TooManyRequestsException":
|
|
2576
|
-
case "com.amazonaws.mediaconvert#TooManyRequestsException":
|
|
2577
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2578
|
-
default:
|
|
2579
|
-
const parsedBody = parsedOutput.body;
|
|
2580
|
-
return throwDefaultError({
|
|
2581
|
-
output,
|
|
2582
|
-
parsedBody,
|
|
2583
|
-
errorCode
|
|
2584
|
-
});
|
|
2585
|
-
}
|
|
2586
|
-
}, "de_DeletePolicyCommandError");
|
|
2587
2315
|
var de_DeletePresetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2588
2316
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2589
|
-
return
|
|
2317
|
+
return de_CommandError(output, context);
|
|
2590
2318
|
}
|
|
2591
2319
|
const contents = (0, import_smithy_client.map)({
|
|
2592
2320
|
$metadata: deserializeMetadata(output)
|
|
@@ -2594,43 +2322,9 @@ var de_DeletePresetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2594
2322
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2595
2323
|
return contents;
|
|
2596
2324
|
}, "de_DeletePresetCommand");
|
|
2597
|
-
var de_DeletePresetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2598
|
-
const parsedOutput = {
|
|
2599
|
-
...output,
|
|
2600
|
-
body: await parseErrorBody(output.body, context)
|
|
2601
|
-
};
|
|
2602
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2603
|
-
switch (errorCode) {
|
|
2604
|
-
case "BadRequestException":
|
|
2605
|
-
case "com.amazonaws.mediaconvert#BadRequestException":
|
|
2606
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2607
|
-
case "ConflictException":
|
|
2608
|
-
case "com.amazonaws.mediaconvert#ConflictException":
|
|
2609
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2610
|
-
case "ForbiddenException":
|
|
2611
|
-
case "com.amazonaws.mediaconvert#ForbiddenException":
|
|
2612
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2613
|
-
case "InternalServerErrorException":
|
|
2614
|
-
case "com.amazonaws.mediaconvert#InternalServerErrorException":
|
|
2615
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2616
|
-
case "NotFoundException":
|
|
2617
|
-
case "com.amazonaws.mediaconvert#NotFoundException":
|
|
2618
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2619
|
-
case "TooManyRequestsException":
|
|
2620
|
-
case "com.amazonaws.mediaconvert#TooManyRequestsException":
|
|
2621
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2622
|
-
default:
|
|
2623
|
-
const parsedBody = parsedOutput.body;
|
|
2624
|
-
return throwDefaultError({
|
|
2625
|
-
output,
|
|
2626
|
-
parsedBody,
|
|
2627
|
-
errorCode
|
|
2628
|
-
});
|
|
2629
|
-
}
|
|
2630
|
-
}, "de_DeletePresetCommandError");
|
|
2631
2325
|
var de_DeleteQueueCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2632
2326
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2633
|
-
return
|
|
2327
|
+
return de_CommandError(output, context);
|
|
2634
2328
|
}
|
|
2635
2329
|
const contents = (0, import_smithy_client.map)({
|
|
2636
2330
|
$metadata: deserializeMetadata(output)
|
|
@@ -2638,43 +2332,9 @@ var de_DeleteQueueCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2638
2332
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2639
2333
|
return contents;
|
|
2640
2334
|
}, "de_DeleteQueueCommand");
|
|
2641
|
-
var de_DeleteQueueCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2642
|
-
const parsedOutput = {
|
|
2643
|
-
...output,
|
|
2644
|
-
body: await parseErrorBody(output.body, context)
|
|
2645
|
-
};
|
|
2646
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2647
|
-
switch (errorCode) {
|
|
2648
|
-
case "BadRequestException":
|
|
2649
|
-
case "com.amazonaws.mediaconvert#BadRequestException":
|
|
2650
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2651
|
-
case "ConflictException":
|
|
2652
|
-
case "com.amazonaws.mediaconvert#ConflictException":
|
|
2653
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2654
|
-
case "ForbiddenException":
|
|
2655
|
-
case "com.amazonaws.mediaconvert#ForbiddenException":
|
|
2656
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2657
|
-
case "InternalServerErrorException":
|
|
2658
|
-
case "com.amazonaws.mediaconvert#InternalServerErrorException":
|
|
2659
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2660
|
-
case "NotFoundException":
|
|
2661
|
-
case "com.amazonaws.mediaconvert#NotFoundException":
|
|
2662
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2663
|
-
case "TooManyRequestsException":
|
|
2664
|
-
case "com.amazonaws.mediaconvert#TooManyRequestsException":
|
|
2665
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2666
|
-
default:
|
|
2667
|
-
const parsedBody = parsedOutput.body;
|
|
2668
|
-
return throwDefaultError({
|
|
2669
|
-
output,
|
|
2670
|
-
parsedBody,
|
|
2671
|
-
errorCode
|
|
2672
|
-
});
|
|
2673
|
-
}
|
|
2674
|
-
}, "de_DeleteQueueCommandError");
|
|
2675
2335
|
var de_DescribeEndpointsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2676
2336
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2677
|
-
return
|
|
2337
|
+
return de_CommandError(output, context);
|
|
2678
2338
|
}
|
|
2679
2339
|
const contents = (0, import_smithy_client.map)({
|
|
2680
2340
|
$metadata: deserializeMetadata(output)
|
|
@@ -2687,43 +2347,9 @@ var de_DescribeEndpointsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2687
2347
|
Object.assign(contents, doc);
|
|
2688
2348
|
return contents;
|
|
2689
2349
|
}, "de_DescribeEndpointsCommand");
|
|
2690
|
-
var de_DescribeEndpointsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2691
|
-
const parsedOutput = {
|
|
2692
|
-
...output,
|
|
2693
|
-
body: await parseErrorBody(output.body, context)
|
|
2694
|
-
};
|
|
2695
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2696
|
-
switch (errorCode) {
|
|
2697
|
-
case "BadRequestException":
|
|
2698
|
-
case "com.amazonaws.mediaconvert#BadRequestException":
|
|
2699
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2700
|
-
case "ConflictException":
|
|
2701
|
-
case "com.amazonaws.mediaconvert#ConflictException":
|
|
2702
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2703
|
-
case "ForbiddenException":
|
|
2704
|
-
case "com.amazonaws.mediaconvert#ForbiddenException":
|
|
2705
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2706
|
-
case "InternalServerErrorException":
|
|
2707
|
-
case "com.amazonaws.mediaconvert#InternalServerErrorException":
|
|
2708
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2709
|
-
case "NotFoundException":
|
|
2710
|
-
case "com.amazonaws.mediaconvert#NotFoundException":
|
|
2711
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2712
|
-
case "TooManyRequestsException":
|
|
2713
|
-
case "com.amazonaws.mediaconvert#TooManyRequestsException":
|
|
2714
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2715
|
-
default:
|
|
2716
|
-
const parsedBody = parsedOutput.body;
|
|
2717
|
-
return throwDefaultError({
|
|
2718
|
-
output,
|
|
2719
|
-
parsedBody,
|
|
2720
|
-
errorCode
|
|
2721
|
-
});
|
|
2722
|
-
}
|
|
2723
|
-
}, "de_DescribeEndpointsCommandError");
|
|
2724
2350
|
var de_DisassociateCertificateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2725
2351
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2726
|
-
return
|
|
2352
|
+
return de_CommandError(output, context);
|
|
2727
2353
|
}
|
|
2728
2354
|
const contents = (0, import_smithy_client.map)({
|
|
2729
2355
|
$metadata: deserializeMetadata(output)
|
|
@@ -2731,43 +2357,9 @@ var de_DisassociateCertificateCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2731
2357
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2732
2358
|
return contents;
|
|
2733
2359
|
}, "de_DisassociateCertificateCommand");
|
|
2734
|
-
var de_DisassociateCertificateCommandError = /* @__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 "BadRequestException":
|
|
2742
|
-
case "com.amazonaws.mediaconvert#BadRequestException":
|
|
2743
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2744
|
-
case "ConflictException":
|
|
2745
|
-
case "com.amazonaws.mediaconvert#ConflictException":
|
|
2746
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2747
|
-
case "ForbiddenException":
|
|
2748
|
-
case "com.amazonaws.mediaconvert#ForbiddenException":
|
|
2749
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2750
|
-
case "InternalServerErrorException":
|
|
2751
|
-
case "com.amazonaws.mediaconvert#InternalServerErrorException":
|
|
2752
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2753
|
-
case "NotFoundException":
|
|
2754
|
-
case "com.amazonaws.mediaconvert#NotFoundException":
|
|
2755
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2756
|
-
case "TooManyRequestsException":
|
|
2757
|
-
case "com.amazonaws.mediaconvert#TooManyRequestsException":
|
|
2758
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2759
|
-
default:
|
|
2760
|
-
const parsedBody = parsedOutput.body;
|
|
2761
|
-
return throwDefaultError({
|
|
2762
|
-
output,
|
|
2763
|
-
parsedBody,
|
|
2764
|
-
errorCode
|
|
2765
|
-
});
|
|
2766
|
-
}
|
|
2767
|
-
}, "de_DisassociateCertificateCommandError");
|
|
2768
2360
|
var de_GetJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2769
2361
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2770
|
-
return
|
|
2362
|
+
return de_CommandError(output, context);
|
|
2771
2363
|
}
|
|
2772
2364
|
const contents = (0, import_smithy_client.map)({
|
|
2773
2365
|
$metadata: deserializeMetadata(output)
|
|
@@ -2779,43 +2371,9 @@ var de_GetJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2779
2371
|
Object.assign(contents, doc);
|
|
2780
2372
|
return contents;
|
|
2781
2373
|
}, "de_GetJobCommand");
|
|
2782
|
-
var de_GetJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2783
|
-
const parsedOutput = {
|
|
2784
|
-
...output,
|
|
2785
|
-
body: await parseErrorBody(output.body, context)
|
|
2786
|
-
};
|
|
2787
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2788
|
-
switch (errorCode) {
|
|
2789
|
-
case "BadRequestException":
|
|
2790
|
-
case "com.amazonaws.mediaconvert#BadRequestException":
|
|
2791
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2792
|
-
case "ConflictException":
|
|
2793
|
-
case "com.amazonaws.mediaconvert#ConflictException":
|
|
2794
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2795
|
-
case "ForbiddenException":
|
|
2796
|
-
case "com.amazonaws.mediaconvert#ForbiddenException":
|
|
2797
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2798
|
-
case "InternalServerErrorException":
|
|
2799
|
-
case "com.amazonaws.mediaconvert#InternalServerErrorException":
|
|
2800
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2801
|
-
case "NotFoundException":
|
|
2802
|
-
case "com.amazonaws.mediaconvert#NotFoundException":
|
|
2803
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2804
|
-
case "TooManyRequestsException":
|
|
2805
|
-
case "com.amazonaws.mediaconvert#TooManyRequestsException":
|
|
2806
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2807
|
-
default:
|
|
2808
|
-
const parsedBody = parsedOutput.body;
|
|
2809
|
-
return throwDefaultError({
|
|
2810
|
-
output,
|
|
2811
|
-
parsedBody,
|
|
2812
|
-
errorCode
|
|
2813
|
-
});
|
|
2814
|
-
}
|
|
2815
|
-
}, "de_GetJobCommandError");
|
|
2816
2374
|
var de_GetJobTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2817
2375
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2818
|
-
return
|
|
2376
|
+
return de_CommandError(output, context);
|
|
2819
2377
|
}
|
|
2820
2378
|
const contents = (0, import_smithy_client.map)({
|
|
2821
2379
|
$metadata: deserializeMetadata(output)
|
|
@@ -2827,43 +2385,9 @@ var de_GetJobTemplateCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2827
2385
|
Object.assign(contents, doc);
|
|
2828
2386
|
return contents;
|
|
2829
2387
|
}, "de_GetJobTemplateCommand");
|
|
2830
|
-
var de_GetJobTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2831
|
-
const parsedOutput = {
|
|
2832
|
-
...output,
|
|
2833
|
-
body: await parseErrorBody(output.body, context)
|
|
2834
|
-
};
|
|
2835
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2836
|
-
switch (errorCode) {
|
|
2837
|
-
case "BadRequestException":
|
|
2838
|
-
case "com.amazonaws.mediaconvert#BadRequestException":
|
|
2839
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2840
|
-
case "ConflictException":
|
|
2841
|
-
case "com.amazonaws.mediaconvert#ConflictException":
|
|
2842
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2843
|
-
case "ForbiddenException":
|
|
2844
|
-
case "com.amazonaws.mediaconvert#ForbiddenException":
|
|
2845
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2846
|
-
case "InternalServerErrorException":
|
|
2847
|
-
case "com.amazonaws.mediaconvert#InternalServerErrorException":
|
|
2848
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2849
|
-
case "NotFoundException":
|
|
2850
|
-
case "com.amazonaws.mediaconvert#NotFoundException":
|
|
2851
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2852
|
-
case "TooManyRequestsException":
|
|
2853
|
-
case "com.amazonaws.mediaconvert#TooManyRequestsException":
|
|
2854
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2855
|
-
default:
|
|
2856
|
-
const parsedBody = parsedOutput.body;
|
|
2857
|
-
return throwDefaultError({
|
|
2858
|
-
output,
|
|
2859
|
-
parsedBody,
|
|
2860
|
-
errorCode
|
|
2861
|
-
});
|
|
2862
|
-
}
|
|
2863
|
-
}, "de_GetJobTemplateCommandError");
|
|
2864
2388
|
var de_GetPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2865
2389
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2866
|
-
return
|
|
2390
|
+
return de_CommandError(output, context);
|
|
2867
2391
|
}
|
|
2868
2392
|
const contents = (0, import_smithy_client.map)({
|
|
2869
2393
|
$metadata: deserializeMetadata(output)
|
|
@@ -2875,43 +2399,9 @@ var de_GetPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2875
2399
|
Object.assign(contents, doc);
|
|
2876
2400
|
return contents;
|
|
2877
2401
|
}, "de_GetPolicyCommand");
|
|
2878
|
-
var de_GetPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2879
|
-
const parsedOutput = {
|
|
2880
|
-
...output,
|
|
2881
|
-
body: await parseErrorBody(output.body, context)
|
|
2882
|
-
};
|
|
2883
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2884
|
-
switch (errorCode) {
|
|
2885
|
-
case "BadRequestException":
|
|
2886
|
-
case "com.amazonaws.mediaconvert#BadRequestException":
|
|
2887
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2888
|
-
case "ConflictException":
|
|
2889
|
-
case "com.amazonaws.mediaconvert#ConflictException":
|
|
2890
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2891
|
-
case "ForbiddenException":
|
|
2892
|
-
case "com.amazonaws.mediaconvert#ForbiddenException":
|
|
2893
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2894
|
-
case "InternalServerErrorException":
|
|
2895
|
-
case "com.amazonaws.mediaconvert#InternalServerErrorException":
|
|
2896
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2897
|
-
case "NotFoundException":
|
|
2898
|
-
case "com.amazonaws.mediaconvert#NotFoundException":
|
|
2899
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2900
|
-
case "TooManyRequestsException":
|
|
2901
|
-
case "com.amazonaws.mediaconvert#TooManyRequestsException":
|
|
2902
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2903
|
-
default:
|
|
2904
|
-
const parsedBody = parsedOutput.body;
|
|
2905
|
-
return throwDefaultError({
|
|
2906
|
-
output,
|
|
2907
|
-
parsedBody,
|
|
2908
|
-
errorCode
|
|
2909
|
-
});
|
|
2910
|
-
}
|
|
2911
|
-
}, "de_GetPolicyCommandError");
|
|
2912
2402
|
var de_GetPresetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2913
2403
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2914
|
-
return
|
|
2404
|
+
return de_CommandError(output, context);
|
|
2915
2405
|
}
|
|
2916
2406
|
const contents = (0, import_smithy_client.map)({
|
|
2917
2407
|
$metadata: deserializeMetadata(output)
|
|
@@ -2923,43 +2413,9 @@ var de_GetPresetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2923
2413
|
Object.assign(contents, doc);
|
|
2924
2414
|
return contents;
|
|
2925
2415
|
}, "de_GetPresetCommand");
|
|
2926
|
-
var de_GetPresetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2927
|
-
const parsedOutput = {
|
|
2928
|
-
...output,
|
|
2929
|
-
body: await parseErrorBody(output.body, context)
|
|
2930
|
-
};
|
|
2931
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2932
|
-
switch (errorCode) {
|
|
2933
|
-
case "BadRequestException":
|
|
2934
|
-
case "com.amazonaws.mediaconvert#BadRequestException":
|
|
2935
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2936
|
-
case "ConflictException":
|
|
2937
|
-
case "com.amazonaws.mediaconvert#ConflictException":
|
|
2938
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2939
|
-
case "ForbiddenException":
|
|
2940
|
-
case "com.amazonaws.mediaconvert#ForbiddenException":
|
|
2941
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2942
|
-
case "InternalServerErrorException":
|
|
2943
|
-
case "com.amazonaws.mediaconvert#InternalServerErrorException":
|
|
2944
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2945
|
-
case "NotFoundException":
|
|
2946
|
-
case "com.amazonaws.mediaconvert#NotFoundException":
|
|
2947
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2948
|
-
case "TooManyRequestsException":
|
|
2949
|
-
case "com.amazonaws.mediaconvert#TooManyRequestsException":
|
|
2950
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2951
|
-
default:
|
|
2952
|
-
const parsedBody = parsedOutput.body;
|
|
2953
|
-
return throwDefaultError({
|
|
2954
|
-
output,
|
|
2955
|
-
parsedBody,
|
|
2956
|
-
errorCode
|
|
2957
|
-
});
|
|
2958
|
-
}
|
|
2959
|
-
}, "de_GetPresetCommandError");
|
|
2960
2416
|
var de_GetQueueCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2961
2417
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2962
|
-
return
|
|
2418
|
+
return de_CommandError(output, context);
|
|
2963
2419
|
}
|
|
2964
2420
|
const contents = (0, import_smithy_client.map)({
|
|
2965
2421
|
$metadata: deserializeMetadata(output)
|
|
@@ -2971,43 +2427,9 @@ var de_GetQueueCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2971
2427
|
Object.assign(contents, doc);
|
|
2972
2428
|
return contents;
|
|
2973
2429
|
}, "de_GetQueueCommand");
|
|
2974
|
-
var de_GetQueueCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2975
|
-
const parsedOutput = {
|
|
2976
|
-
...output,
|
|
2977
|
-
body: await parseErrorBody(output.body, context)
|
|
2978
|
-
};
|
|
2979
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2980
|
-
switch (errorCode) {
|
|
2981
|
-
case "BadRequestException":
|
|
2982
|
-
case "com.amazonaws.mediaconvert#BadRequestException":
|
|
2983
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2984
|
-
case "ConflictException":
|
|
2985
|
-
case "com.amazonaws.mediaconvert#ConflictException":
|
|
2986
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2987
|
-
case "ForbiddenException":
|
|
2988
|
-
case "com.amazonaws.mediaconvert#ForbiddenException":
|
|
2989
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2990
|
-
case "InternalServerErrorException":
|
|
2991
|
-
case "com.amazonaws.mediaconvert#InternalServerErrorException":
|
|
2992
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2993
|
-
case "NotFoundException":
|
|
2994
|
-
case "com.amazonaws.mediaconvert#NotFoundException":
|
|
2995
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2996
|
-
case "TooManyRequestsException":
|
|
2997
|
-
case "com.amazonaws.mediaconvert#TooManyRequestsException":
|
|
2998
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2999
|
-
default:
|
|
3000
|
-
const parsedBody = parsedOutput.body;
|
|
3001
|
-
return throwDefaultError({
|
|
3002
|
-
output,
|
|
3003
|
-
parsedBody,
|
|
3004
|
-
errorCode
|
|
3005
|
-
});
|
|
3006
|
-
}
|
|
3007
|
-
}, "de_GetQueueCommandError");
|
|
3008
2430
|
var de_ListJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3009
2431
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3010
|
-
return
|
|
2432
|
+
return de_CommandError(output, context);
|
|
3011
2433
|
}
|
|
3012
2434
|
const contents = (0, import_smithy_client.map)({
|
|
3013
2435
|
$metadata: deserializeMetadata(output)
|
|
@@ -3020,43 +2442,9 @@ var de_ListJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3020
2442
|
Object.assign(contents, doc);
|
|
3021
2443
|
return contents;
|
|
3022
2444
|
}, "de_ListJobsCommand");
|
|
3023
|
-
var de_ListJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3024
|
-
const parsedOutput = {
|
|
3025
|
-
...output,
|
|
3026
|
-
body: await parseErrorBody(output.body, context)
|
|
3027
|
-
};
|
|
3028
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3029
|
-
switch (errorCode) {
|
|
3030
|
-
case "BadRequestException":
|
|
3031
|
-
case "com.amazonaws.mediaconvert#BadRequestException":
|
|
3032
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3033
|
-
case "ConflictException":
|
|
3034
|
-
case "com.amazonaws.mediaconvert#ConflictException":
|
|
3035
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3036
|
-
case "ForbiddenException":
|
|
3037
|
-
case "com.amazonaws.mediaconvert#ForbiddenException":
|
|
3038
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3039
|
-
case "InternalServerErrorException":
|
|
3040
|
-
case "com.amazonaws.mediaconvert#InternalServerErrorException":
|
|
3041
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3042
|
-
case "NotFoundException":
|
|
3043
|
-
case "com.amazonaws.mediaconvert#NotFoundException":
|
|
3044
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3045
|
-
case "TooManyRequestsException":
|
|
3046
|
-
case "com.amazonaws.mediaconvert#TooManyRequestsException":
|
|
3047
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3048
|
-
default:
|
|
3049
|
-
const parsedBody = parsedOutput.body;
|
|
3050
|
-
return throwDefaultError({
|
|
3051
|
-
output,
|
|
3052
|
-
parsedBody,
|
|
3053
|
-
errorCode
|
|
3054
|
-
});
|
|
3055
|
-
}
|
|
3056
|
-
}, "de_ListJobsCommandError");
|
|
3057
2445
|
var de_ListJobTemplatesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3058
2446
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3059
|
-
return
|
|
2447
|
+
return de_CommandError(output, context);
|
|
3060
2448
|
}
|
|
3061
2449
|
const contents = (0, import_smithy_client.map)({
|
|
3062
2450
|
$metadata: deserializeMetadata(output)
|
|
@@ -3069,43 +2457,9 @@ var de_ListJobTemplatesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3069
2457
|
Object.assign(contents, doc);
|
|
3070
2458
|
return contents;
|
|
3071
2459
|
}, "de_ListJobTemplatesCommand");
|
|
3072
|
-
var de_ListJobTemplatesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3073
|
-
const parsedOutput = {
|
|
3074
|
-
...output,
|
|
3075
|
-
body: await parseErrorBody(output.body, context)
|
|
3076
|
-
};
|
|
3077
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3078
|
-
switch (errorCode) {
|
|
3079
|
-
case "BadRequestException":
|
|
3080
|
-
case "com.amazonaws.mediaconvert#BadRequestException":
|
|
3081
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3082
|
-
case "ConflictException":
|
|
3083
|
-
case "com.amazonaws.mediaconvert#ConflictException":
|
|
3084
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3085
|
-
case "ForbiddenException":
|
|
3086
|
-
case "com.amazonaws.mediaconvert#ForbiddenException":
|
|
3087
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3088
|
-
case "InternalServerErrorException":
|
|
3089
|
-
case "com.amazonaws.mediaconvert#InternalServerErrorException":
|
|
3090
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3091
|
-
case "NotFoundException":
|
|
3092
|
-
case "com.amazonaws.mediaconvert#NotFoundException":
|
|
3093
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3094
|
-
case "TooManyRequestsException":
|
|
3095
|
-
case "com.amazonaws.mediaconvert#TooManyRequestsException":
|
|
3096
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3097
|
-
default:
|
|
3098
|
-
const parsedBody = parsedOutput.body;
|
|
3099
|
-
return throwDefaultError({
|
|
3100
|
-
output,
|
|
3101
|
-
parsedBody,
|
|
3102
|
-
errorCode
|
|
3103
|
-
});
|
|
3104
|
-
}
|
|
3105
|
-
}, "de_ListJobTemplatesCommandError");
|
|
3106
2460
|
var de_ListPresetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3107
2461
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3108
|
-
return
|
|
2462
|
+
return de_CommandError(output, context);
|
|
3109
2463
|
}
|
|
3110
2464
|
const contents = (0, import_smithy_client.map)({
|
|
3111
2465
|
$metadata: deserializeMetadata(output)
|
|
@@ -3118,43 +2472,9 @@ var de_ListPresetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3118
2472
|
Object.assign(contents, doc);
|
|
3119
2473
|
return contents;
|
|
3120
2474
|
}, "de_ListPresetsCommand");
|
|
3121
|
-
var de_ListPresetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3122
|
-
const parsedOutput = {
|
|
3123
|
-
...output,
|
|
3124
|
-
body: await parseErrorBody(output.body, context)
|
|
3125
|
-
};
|
|
3126
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3127
|
-
switch (errorCode) {
|
|
3128
|
-
case "BadRequestException":
|
|
3129
|
-
case "com.amazonaws.mediaconvert#BadRequestException":
|
|
3130
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3131
|
-
case "ConflictException":
|
|
3132
|
-
case "com.amazonaws.mediaconvert#ConflictException":
|
|
3133
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3134
|
-
case "ForbiddenException":
|
|
3135
|
-
case "com.amazonaws.mediaconvert#ForbiddenException":
|
|
3136
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3137
|
-
case "InternalServerErrorException":
|
|
3138
|
-
case "com.amazonaws.mediaconvert#InternalServerErrorException":
|
|
3139
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3140
|
-
case "NotFoundException":
|
|
3141
|
-
case "com.amazonaws.mediaconvert#NotFoundException":
|
|
3142
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3143
|
-
case "TooManyRequestsException":
|
|
3144
|
-
case "com.amazonaws.mediaconvert#TooManyRequestsException":
|
|
3145
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3146
|
-
default:
|
|
3147
|
-
const parsedBody = parsedOutput.body;
|
|
3148
|
-
return throwDefaultError({
|
|
3149
|
-
output,
|
|
3150
|
-
parsedBody,
|
|
3151
|
-
errorCode
|
|
3152
|
-
});
|
|
3153
|
-
}
|
|
3154
|
-
}, "de_ListPresetsCommandError");
|
|
3155
2475
|
var de_ListQueuesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3156
2476
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3157
|
-
return
|
|
2477
|
+
return de_CommandError(output, context);
|
|
3158
2478
|
}
|
|
3159
2479
|
const contents = (0, import_smithy_client.map)({
|
|
3160
2480
|
$metadata: deserializeMetadata(output)
|
|
@@ -3167,43 +2487,9 @@ var de_ListQueuesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3167
2487
|
Object.assign(contents, doc);
|
|
3168
2488
|
return contents;
|
|
3169
2489
|
}, "de_ListQueuesCommand");
|
|
3170
|
-
var de_ListQueuesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3171
|
-
const parsedOutput = {
|
|
3172
|
-
...output,
|
|
3173
|
-
body: await parseErrorBody(output.body, context)
|
|
3174
|
-
};
|
|
3175
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3176
|
-
switch (errorCode) {
|
|
3177
|
-
case "BadRequestException":
|
|
3178
|
-
case "com.amazonaws.mediaconvert#BadRequestException":
|
|
3179
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3180
|
-
case "ConflictException":
|
|
3181
|
-
case "com.amazonaws.mediaconvert#ConflictException":
|
|
3182
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3183
|
-
case "ForbiddenException":
|
|
3184
|
-
case "com.amazonaws.mediaconvert#ForbiddenException":
|
|
3185
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3186
|
-
case "InternalServerErrorException":
|
|
3187
|
-
case "com.amazonaws.mediaconvert#InternalServerErrorException":
|
|
3188
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3189
|
-
case "NotFoundException":
|
|
3190
|
-
case "com.amazonaws.mediaconvert#NotFoundException":
|
|
3191
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3192
|
-
case "TooManyRequestsException":
|
|
3193
|
-
case "com.amazonaws.mediaconvert#TooManyRequestsException":
|
|
3194
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3195
|
-
default:
|
|
3196
|
-
const parsedBody = parsedOutput.body;
|
|
3197
|
-
return throwDefaultError({
|
|
3198
|
-
output,
|
|
3199
|
-
parsedBody,
|
|
3200
|
-
errorCode
|
|
3201
|
-
});
|
|
3202
|
-
}
|
|
3203
|
-
}, "de_ListQueuesCommandError");
|
|
3204
2490
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3205
2491
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3206
|
-
return
|
|
2492
|
+
return de_CommandError(output, context);
|
|
3207
2493
|
}
|
|
3208
2494
|
const contents = (0, import_smithy_client.map)({
|
|
3209
2495
|
$metadata: deserializeMetadata(output)
|
|
@@ -3215,43 +2501,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
3215
2501
|
Object.assign(contents, doc);
|
|
3216
2502
|
return contents;
|
|
3217
2503
|
}, "de_ListTagsForResourceCommand");
|
|
3218
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3219
|
-
const parsedOutput = {
|
|
3220
|
-
...output,
|
|
3221
|
-
body: await parseErrorBody(output.body, context)
|
|
3222
|
-
};
|
|
3223
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3224
|
-
switch (errorCode) {
|
|
3225
|
-
case "BadRequestException":
|
|
3226
|
-
case "com.amazonaws.mediaconvert#BadRequestException":
|
|
3227
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3228
|
-
case "ConflictException":
|
|
3229
|
-
case "com.amazonaws.mediaconvert#ConflictException":
|
|
3230
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3231
|
-
case "ForbiddenException":
|
|
3232
|
-
case "com.amazonaws.mediaconvert#ForbiddenException":
|
|
3233
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3234
|
-
case "InternalServerErrorException":
|
|
3235
|
-
case "com.amazonaws.mediaconvert#InternalServerErrorException":
|
|
3236
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3237
|
-
case "NotFoundException":
|
|
3238
|
-
case "com.amazonaws.mediaconvert#NotFoundException":
|
|
3239
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3240
|
-
case "TooManyRequestsException":
|
|
3241
|
-
case "com.amazonaws.mediaconvert#TooManyRequestsException":
|
|
3242
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3243
|
-
default:
|
|
3244
|
-
const parsedBody = parsedOutput.body;
|
|
3245
|
-
return throwDefaultError({
|
|
3246
|
-
output,
|
|
3247
|
-
parsedBody,
|
|
3248
|
-
errorCode
|
|
3249
|
-
});
|
|
3250
|
-
}
|
|
3251
|
-
}, "de_ListTagsForResourceCommandError");
|
|
3252
2504
|
var de_PutPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3253
2505
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3254
|
-
return
|
|
2506
|
+
return de_CommandError(output, context);
|
|
3255
2507
|
}
|
|
3256
2508
|
const contents = (0, import_smithy_client.map)({
|
|
3257
2509
|
$metadata: deserializeMetadata(output)
|
|
@@ -3263,43 +2515,9 @@ var de_PutPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3263
2515
|
Object.assign(contents, doc);
|
|
3264
2516
|
return contents;
|
|
3265
2517
|
}, "de_PutPolicyCommand");
|
|
3266
|
-
var de_PutPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3267
|
-
const parsedOutput = {
|
|
3268
|
-
...output,
|
|
3269
|
-
body: await parseErrorBody(output.body, context)
|
|
3270
|
-
};
|
|
3271
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3272
|
-
switch (errorCode) {
|
|
3273
|
-
case "BadRequestException":
|
|
3274
|
-
case "com.amazonaws.mediaconvert#BadRequestException":
|
|
3275
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3276
|
-
case "ConflictException":
|
|
3277
|
-
case "com.amazonaws.mediaconvert#ConflictException":
|
|
3278
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3279
|
-
case "ForbiddenException":
|
|
3280
|
-
case "com.amazonaws.mediaconvert#ForbiddenException":
|
|
3281
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3282
|
-
case "InternalServerErrorException":
|
|
3283
|
-
case "com.amazonaws.mediaconvert#InternalServerErrorException":
|
|
3284
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3285
|
-
case "NotFoundException":
|
|
3286
|
-
case "com.amazonaws.mediaconvert#NotFoundException":
|
|
3287
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3288
|
-
case "TooManyRequestsException":
|
|
3289
|
-
case "com.amazonaws.mediaconvert#TooManyRequestsException":
|
|
3290
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3291
|
-
default:
|
|
3292
|
-
const parsedBody = parsedOutput.body;
|
|
3293
|
-
return throwDefaultError({
|
|
3294
|
-
output,
|
|
3295
|
-
parsedBody,
|
|
3296
|
-
errorCode
|
|
3297
|
-
});
|
|
3298
|
-
}
|
|
3299
|
-
}, "de_PutPolicyCommandError");
|
|
3300
2518
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3301
2519
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3302
|
-
return
|
|
2520
|
+
return de_CommandError(output, context);
|
|
3303
2521
|
}
|
|
3304
2522
|
const contents = (0, import_smithy_client.map)({
|
|
3305
2523
|
$metadata: deserializeMetadata(output)
|
|
@@ -3307,43 +2525,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3307
2525
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3308
2526
|
return contents;
|
|
3309
2527
|
}, "de_TagResourceCommand");
|
|
3310
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3311
|
-
const parsedOutput = {
|
|
3312
|
-
...output,
|
|
3313
|
-
body: await parseErrorBody(output.body, context)
|
|
3314
|
-
};
|
|
3315
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3316
|
-
switch (errorCode) {
|
|
3317
|
-
case "BadRequestException":
|
|
3318
|
-
case "com.amazonaws.mediaconvert#BadRequestException":
|
|
3319
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3320
|
-
case "ConflictException":
|
|
3321
|
-
case "com.amazonaws.mediaconvert#ConflictException":
|
|
3322
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3323
|
-
case "ForbiddenException":
|
|
3324
|
-
case "com.amazonaws.mediaconvert#ForbiddenException":
|
|
3325
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3326
|
-
case "InternalServerErrorException":
|
|
3327
|
-
case "com.amazonaws.mediaconvert#InternalServerErrorException":
|
|
3328
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3329
|
-
case "NotFoundException":
|
|
3330
|
-
case "com.amazonaws.mediaconvert#NotFoundException":
|
|
3331
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3332
|
-
case "TooManyRequestsException":
|
|
3333
|
-
case "com.amazonaws.mediaconvert#TooManyRequestsException":
|
|
3334
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3335
|
-
default:
|
|
3336
|
-
const parsedBody = parsedOutput.body;
|
|
3337
|
-
return throwDefaultError({
|
|
3338
|
-
output,
|
|
3339
|
-
parsedBody,
|
|
3340
|
-
errorCode
|
|
3341
|
-
});
|
|
3342
|
-
}
|
|
3343
|
-
}, "de_TagResourceCommandError");
|
|
3344
2528
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3345
2529
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3346
|
-
return
|
|
2530
|
+
return de_CommandError(output, context);
|
|
3347
2531
|
}
|
|
3348
2532
|
const contents = (0, import_smithy_client.map)({
|
|
3349
2533
|
$metadata: deserializeMetadata(output)
|
|
@@ -3351,43 +2535,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3351
2535
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3352
2536
|
return contents;
|
|
3353
2537
|
}, "de_UntagResourceCommand");
|
|
3354
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3355
|
-
const parsedOutput = {
|
|
3356
|
-
...output,
|
|
3357
|
-
body: await parseErrorBody(output.body, context)
|
|
3358
|
-
};
|
|
3359
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3360
|
-
switch (errorCode) {
|
|
3361
|
-
case "BadRequestException":
|
|
3362
|
-
case "com.amazonaws.mediaconvert#BadRequestException":
|
|
3363
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3364
|
-
case "ConflictException":
|
|
3365
|
-
case "com.amazonaws.mediaconvert#ConflictException":
|
|
3366
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3367
|
-
case "ForbiddenException":
|
|
3368
|
-
case "com.amazonaws.mediaconvert#ForbiddenException":
|
|
3369
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3370
|
-
case "InternalServerErrorException":
|
|
3371
|
-
case "com.amazonaws.mediaconvert#InternalServerErrorException":
|
|
3372
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3373
|
-
case "NotFoundException":
|
|
3374
|
-
case "com.amazonaws.mediaconvert#NotFoundException":
|
|
3375
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3376
|
-
case "TooManyRequestsException":
|
|
3377
|
-
case "com.amazonaws.mediaconvert#TooManyRequestsException":
|
|
3378
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3379
|
-
default:
|
|
3380
|
-
const parsedBody = parsedOutput.body;
|
|
3381
|
-
return throwDefaultError({
|
|
3382
|
-
output,
|
|
3383
|
-
parsedBody,
|
|
3384
|
-
errorCode
|
|
3385
|
-
});
|
|
3386
|
-
}
|
|
3387
|
-
}, "de_UntagResourceCommandError");
|
|
3388
2538
|
var de_UpdateJobTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3389
2539
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3390
|
-
return
|
|
2540
|
+
return de_CommandError(output, context);
|
|
3391
2541
|
}
|
|
3392
2542
|
const contents = (0, import_smithy_client.map)({
|
|
3393
2543
|
$metadata: deserializeMetadata(output)
|
|
@@ -3399,43 +2549,9 @@ var de_UpdateJobTemplateCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3399
2549
|
Object.assign(contents, doc);
|
|
3400
2550
|
return contents;
|
|
3401
2551
|
}, "de_UpdateJobTemplateCommand");
|
|
3402
|
-
var de_UpdateJobTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3403
|
-
const parsedOutput = {
|
|
3404
|
-
...output,
|
|
3405
|
-
body: await parseErrorBody(output.body, context)
|
|
3406
|
-
};
|
|
3407
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3408
|
-
switch (errorCode) {
|
|
3409
|
-
case "BadRequestException":
|
|
3410
|
-
case "com.amazonaws.mediaconvert#BadRequestException":
|
|
3411
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3412
|
-
case "ConflictException":
|
|
3413
|
-
case "com.amazonaws.mediaconvert#ConflictException":
|
|
3414
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3415
|
-
case "ForbiddenException":
|
|
3416
|
-
case "com.amazonaws.mediaconvert#ForbiddenException":
|
|
3417
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3418
|
-
case "InternalServerErrorException":
|
|
3419
|
-
case "com.amazonaws.mediaconvert#InternalServerErrorException":
|
|
3420
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3421
|
-
case "NotFoundException":
|
|
3422
|
-
case "com.amazonaws.mediaconvert#NotFoundException":
|
|
3423
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3424
|
-
case "TooManyRequestsException":
|
|
3425
|
-
case "com.amazonaws.mediaconvert#TooManyRequestsException":
|
|
3426
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3427
|
-
default:
|
|
3428
|
-
const parsedBody = parsedOutput.body;
|
|
3429
|
-
return throwDefaultError({
|
|
3430
|
-
output,
|
|
3431
|
-
parsedBody,
|
|
3432
|
-
errorCode
|
|
3433
|
-
});
|
|
3434
|
-
}
|
|
3435
|
-
}, "de_UpdateJobTemplateCommandError");
|
|
3436
2552
|
var de_UpdatePresetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3437
2553
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3438
|
-
return
|
|
2554
|
+
return de_CommandError(output, context);
|
|
3439
2555
|
}
|
|
3440
2556
|
const contents = (0, import_smithy_client.map)({
|
|
3441
2557
|
$metadata: deserializeMetadata(output)
|
|
@@ -3447,43 +2563,9 @@ var de_UpdatePresetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3447
2563
|
Object.assign(contents, doc);
|
|
3448
2564
|
return contents;
|
|
3449
2565
|
}, "de_UpdatePresetCommand");
|
|
3450
|
-
var de_UpdatePresetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3451
|
-
const parsedOutput = {
|
|
3452
|
-
...output,
|
|
3453
|
-
body: await parseErrorBody(output.body, context)
|
|
3454
|
-
};
|
|
3455
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3456
|
-
switch (errorCode) {
|
|
3457
|
-
case "BadRequestException":
|
|
3458
|
-
case "com.amazonaws.mediaconvert#BadRequestException":
|
|
3459
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3460
|
-
case "ConflictException":
|
|
3461
|
-
case "com.amazonaws.mediaconvert#ConflictException":
|
|
3462
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3463
|
-
case "ForbiddenException":
|
|
3464
|
-
case "com.amazonaws.mediaconvert#ForbiddenException":
|
|
3465
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3466
|
-
case "InternalServerErrorException":
|
|
3467
|
-
case "com.amazonaws.mediaconvert#InternalServerErrorException":
|
|
3468
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3469
|
-
case "NotFoundException":
|
|
3470
|
-
case "com.amazonaws.mediaconvert#NotFoundException":
|
|
3471
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3472
|
-
case "TooManyRequestsException":
|
|
3473
|
-
case "com.amazonaws.mediaconvert#TooManyRequestsException":
|
|
3474
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3475
|
-
default:
|
|
3476
|
-
const parsedBody = parsedOutput.body;
|
|
3477
|
-
return throwDefaultError({
|
|
3478
|
-
output,
|
|
3479
|
-
parsedBody,
|
|
3480
|
-
errorCode
|
|
3481
|
-
});
|
|
3482
|
-
}
|
|
3483
|
-
}, "de_UpdatePresetCommandError");
|
|
3484
2566
|
var de_UpdateQueueCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3485
2567
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3486
|
-
return
|
|
2568
|
+
return de_CommandError(output, context);
|
|
3487
2569
|
}
|
|
3488
2570
|
const contents = (0, import_smithy_client.map)({
|
|
3489
2571
|
$metadata: deserializeMetadata(output)
|
|
@@ -3495,7 +2577,7 @@ var de_UpdateQueueCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3495
2577
|
Object.assign(contents, doc);
|
|
3496
2578
|
return contents;
|
|
3497
2579
|
}, "de_UpdateQueueCommand");
|
|
3498
|
-
var
|
|
2580
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3499
2581
|
const parsedOutput = {
|
|
3500
2582
|
...output,
|
|
3501
2583
|
body: await parseErrorBody(output.body, context)
|
|
@@ -3528,7 +2610,7 @@ var de_UpdateQueueCommandError = /* @__PURE__ */ __name(async (output, context)
|
|
|
3528
2610
|
errorCode
|
|
3529
2611
|
});
|
|
3530
2612
|
}
|
|
3531
|
-
}, "
|
|
2613
|
+
}, "de_CommandError");
|
|
3532
2614
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(MediaConvertServiceException);
|
|
3533
2615
|
var de_BadRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
3534
2616
|
const contents = (0, import_smithy_client.map)({});
|