@aws-sdk/client-mediapackagev2 3.504.0 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +45 -746
- package/dist-es/protocols/Aws_restJson1.js +35 -736
- package/package.json +3 -3
|
@@ -320,7 +320,7 @@ export const se_UpdateOriginEndpointCommand = async (input, context) => {
|
|
|
320
320
|
};
|
|
321
321
|
export const de_CreateChannelCommand = async (output, context) => {
|
|
322
322
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
323
|
-
return
|
|
323
|
+
return de_CommandError(output, context);
|
|
324
324
|
}
|
|
325
325
|
const contents = map({
|
|
326
326
|
$metadata: deserializeMetadata(output),
|
|
@@ -339,46 +339,9 @@ export const de_CreateChannelCommand = async (output, context) => {
|
|
|
339
339
|
Object.assign(contents, doc);
|
|
340
340
|
return contents;
|
|
341
341
|
};
|
|
342
|
-
const de_CreateChannelCommandError = async (output, context) => {
|
|
343
|
-
const parsedOutput = {
|
|
344
|
-
...output,
|
|
345
|
-
body: await parseErrorBody(output.body, context),
|
|
346
|
-
};
|
|
347
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
348
|
-
switch (errorCode) {
|
|
349
|
-
case "AccessDeniedException":
|
|
350
|
-
case "com.amazonaws.mediapackagev2#AccessDeniedException":
|
|
351
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
352
|
-
case "ConflictException":
|
|
353
|
-
case "com.amazonaws.mediapackagev2#ConflictException":
|
|
354
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
355
|
-
case "InternalServerException":
|
|
356
|
-
case "com.amazonaws.mediapackagev2#InternalServerException":
|
|
357
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
358
|
-
case "ResourceNotFoundException":
|
|
359
|
-
case "com.amazonaws.mediapackagev2#ResourceNotFoundException":
|
|
360
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
361
|
-
case "ServiceQuotaExceededException":
|
|
362
|
-
case "com.amazonaws.mediapackagev2#ServiceQuotaExceededException":
|
|
363
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
364
|
-
case "ThrottlingException":
|
|
365
|
-
case "com.amazonaws.mediapackagev2#ThrottlingException":
|
|
366
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
367
|
-
case "ValidationException":
|
|
368
|
-
case "com.amazonaws.mediapackagev2#ValidationException":
|
|
369
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
370
|
-
default:
|
|
371
|
-
const parsedBody = parsedOutput.body;
|
|
372
|
-
return throwDefaultError({
|
|
373
|
-
output,
|
|
374
|
-
parsedBody,
|
|
375
|
-
errorCode,
|
|
376
|
-
});
|
|
377
|
-
}
|
|
378
|
-
};
|
|
379
342
|
export const de_CreateChannelGroupCommand = async (output, context) => {
|
|
380
343
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
381
|
-
return
|
|
344
|
+
return de_CommandError(output, context);
|
|
382
345
|
}
|
|
383
346
|
const contents = map({
|
|
384
347
|
$metadata: deserializeMetadata(output),
|
|
@@ -396,46 +359,9 @@ export const de_CreateChannelGroupCommand = async (output, context) => {
|
|
|
396
359
|
Object.assign(contents, doc);
|
|
397
360
|
return contents;
|
|
398
361
|
};
|
|
399
|
-
const de_CreateChannelGroupCommandError = async (output, context) => {
|
|
400
|
-
const parsedOutput = {
|
|
401
|
-
...output,
|
|
402
|
-
body: await parseErrorBody(output.body, context),
|
|
403
|
-
};
|
|
404
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
405
|
-
switch (errorCode) {
|
|
406
|
-
case "AccessDeniedException":
|
|
407
|
-
case "com.amazonaws.mediapackagev2#AccessDeniedException":
|
|
408
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
409
|
-
case "ConflictException":
|
|
410
|
-
case "com.amazonaws.mediapackagev2#ConflictException":
|
|
411
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
412
|
-
case "InternalServerException":
|
|
413
|
-
case "com.amazonaws.mediapackagev2#InternalServerException":
|
|
414
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
415
|
-
case "ResourceNotFoundException":
|
|
416
|
-
case "com.amazonaws.mediapackagev2#ResourceNotFoundException":
|
|
417
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
418
|
-
case "ServiceQuotaExceededException":
|
|
419
|
-
case "com.amazonaws.mediapackagev2#ServiceQuotaExceededException":
|
|
420
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
421
|
-
case "ThrottlingException":
|
|
422
|
-
case "com.amazonaws.mediapackagev2#ThrottlingException":
|
|
423
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
424
|
-
case "ValidationException":
|
|
425
|
-
case "com.amazonaws.mediapackagev2#ValidationException":
|
|
426
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
427
|
-
default:
|
|
428
|
-
const parsedBody = parsedOutput.body;
|
|
429
|
-
return throwDefaultError({
|
|
430
|
-
output,
|
|
431
|
-
parsedBody,
|
|
432
|
-
errorCode,
|
|
433
|
-
});
|
|
434
|
-
}
|
|
435
|
-
};
|
|
436
362
|
export const de_CreateOriginEndpointCommand = async (output, context) => {
|
|
437
363
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
438
|
-
return
|
|
364
|
+
return de_CommandError(output, context);
|
|
439
365
|
}
|
|
440
366
|
const contents = map({
|
|
441
367
|
$metadata: deserializeMetadata(output),
|
|
@@ -459,46 +385,9 @@ export const de_CreateOriginEndpointCommand = async (output, context) => {
|
|
|
459
385
|
Object.assign(contents, doc);
|
|
460
386
|
return contents;
|
|
461
387
|
};
|
|
462
|
-
const de_CreateOriginEndpointCommandError = async (output, context) => {
|
|
463
|
-
const parsedOutput = {
|
|
464
|
-
...output,
|
|
465
|
-
body: await parseErrorBody(output.body, context),
|
|
466
|
-
};
|
|
467
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
468
|
-
switch (errorCode) {
|
|
469
|
-
case "AccessDeniedException":
|
|
470
|
-
case "com.amazonaws.mediapackagev2#AccessDeniedException":
|
|
471
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
472
|
-
case "ConflictException":
|
|
473
|
-
case "com.amazonaws.mediapackagev2#ConflictException":
|
|
474
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
475
|
-
case "InternalServerException":
|
|
476
|
-
case "com.amazonaws.mediapackagev2#InternalServerException":
|
|
477
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
478
|
-
case "ResourceNotFoundException":
|
|
479
|
-
case "com.amazonaws.mediapackagev2#ResourceNotFoundException":
|
|
480
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
481
|
-
case "ServiceQuotaExceededException":
|
|
482
|
-
case "com.amazonaws.mediapackagev2#ServiceQuotaExceededException":
|
|
483
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
484
|
-
case "ThrottlingException":
|
|
485
|
-
case "com.amazonaws.mediapackagev2#ThrottlingException":
|
|
486
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
487
|
-
case "ValidationException":
|
|
488
|
-
case "com.amazonaws.mediapackagev2#ValidationException":
|
|
489
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
490
|
-
default:
|
|
491
|
-
const parsedBody = parsedOutput.body;
|
|
492
|
-
return throwDefaultError({
|
|
493
|
-
output,
|
|
494
|
-
parsedBody,
|
|
495
|
-
errorCode,
|
|
496
|
-
});
|
|
497
|
-
}
|
|
498
|
-
};
|
|
499
388
|
export const de_DeleteChannelCommand = async (output, context) => {
|
|
500
389
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
501
|
-
return
|
|
390
|
+
return de_CommandError(output, context);
|
|
502
391
|
}
|
|
503
392
|
const contents = map({
|
|
504
393
|
$metadata: deserializeMetadata(output),
|
|
@@ -506,40 +395,9 @@ export const de_DeleteChannelCommand = async (output, context) => {
|
|
|
506
395
|
await collectBody(output.body, context);
|
|
507
396
|
return contents;
|
|
508
397
|
};
|
|
509
|
-
const de_DeleteChannelCommandError = async (output, context) => {
|
|
510
|
-
const parsedOutput = {
|
|
511
|
-
...output,
|
|
512
|
-
body: await parseErrorBody(output.body, context),
|
|
513
|
-
};
|
|
514
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
515
|
-
switch (errorCode) {
|
|
516
|
-
case "AccessDeniedException":
|
|
517
|
-
case "com.amazonaws.mediapackagev2#AccessDeniedException":
|
|
518
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
519
|
-
case "ConflictException":
|
|
520
|
-
case "com.amazonaws.mediapackagev2#ConflictException":
|
|
521
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
522
|
-
case "InternalServerException":
|
|
523
|
-
case "com.amazonaws.mediapackagev2#InternalServerException":
|
|
524
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
525
|
-
case "ThrottlingException":
|
|
526
|
-
case "com.amazonaws.mediapackagev2#ThrottlingException":
|
|
527
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
528
|
-
case "ValidationException":
|
|
529
|
-
case "com.amazonaws.mediapackagev2#ValidationException":
|
|
530
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
531
|
-
default:
|
|
532
|
-
const parsedBody = parsedOutput.body;
|
|
533
|
-
return throwDefaultError({
|
|
534
|
-
output,
|
|
535
|
-
parsedBody,
|
|
536
|
-
errorCode,
|
|
537
|
-
});
|
|
538
|
-
}
|
|
539
|
-
};
|
|
540
398
|
export const de_DeleteChannelGroupCommand = async (output, context) => {
|
|
541
399
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
542
|
-
return
|
|
400
|
+
return de_CommandError(output, context);
|
|
543
401
|
}
|
|
544
402
|
const contents = map({
|
|
545
403
|
$metadata: deserializeMetadata(output),
|
|
@@ -547,40 +405,9 @@ export const de_DeleteChannelGroupCommand = async (output, context) => {
|
|
|
547
405
|
await collectBody(output.body, context);
|
|
548
406
|
return contents;
|
|
549
407
|
};
|
|
550
|
-
const de_DeleteChannelGroupCommandError = async (output, context) => {
|
|
551
|
-
const parsedOutput = {
|
|
552
|
-
...output,
|
|
553
|
-
body: await parseErrorBody(output.body, context),
|
|
554
|
-
};
|
|
555
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
556
|
-
switch (errorCode) {
|
|
557
|
-
case "AccessDeniedException":
|
|
558
|
-
case "com.amazonaws.mediapackagev2#AccessDeniedException":
|
|
559
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
560
|
-
case "ConflictException":
|
|
561
|
-
case "com.amazonaws.mediapackagev2#ConflictException":
|
|
562
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
563
|
-
case "InternalServerException":
|
|
564
|
-
case "com.amazonaws.mediapackagev2#InternalServerException":
|
|
565
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
566
|
-
case "ThrottlingException":
|
|
567
|
-
case "com.amazonaws.mediapackagev2#ThrottlingException":
|
|
568
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
569
|
-
case "ValidationException":
|
|
570
|
-
case "com.amazonaws.mediapackagev2#ValidationException":
|
|
571
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
572
|
-
default:
|
|
573
|
-
const parsedBody = parsedOutput.body;
|
|
574
|
-
return throwDefaultError({
|
|
575
|
-
output,
|
|
576
|
-
parsedBody,
|
|
577
|
-
errorCode,
|
|
578
|
-
});
|
|
579
|
-
}
|
|
580
|
-
};
|
|
581
408
|
export const de_DeleteChannelPolicyCommand = async (output, context) => {
|
|
582
409
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
583
|
-
return
|
|
410
|
+
return de_CommandError(output, context);
|
|
584
411
|
}
|
|
585
412
|
const contents = map({
|
|
586
413
|
$metadata: deserializeMetadata(output),
|
|
@@ -588,40 +415,9 @@ export const de_DeleteChannelPolicyCommand = async (output, context) => {
|
|
|
588
415
|
await collectBody(output.body, context);
|
|
589
416
|
return contents;
|
|
590
417
|
};
|
|
591
|
-
const de_DeleteChannelPolicyCommandError = async (output, context) => {
|
|
592
|
-
const parsedOutput = {
|
|
593
|
-
...output,
|
|
594
|
-
body: await parseErrorBody(output.body, context),
|
|
595
|
-
};
|
|
596
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
597
|
-
switch (errorCode) {
|
|
598
|
-
case "AccessDeniedException":
|
|
599
|
-
case "com.amazonaws.mediapackagev2#AccessDeniedException":
|
|
600
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
601
|
-
case "ConflictException":
|
|
602
|
-
case "com.amazonaws.mediapackagev2#ConflictException":
|
|
603
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
604
|
-
case "InternalServerException":
|
|
605
|
-
case "com.amazonaws.mediapackagev2#InternalServerException":
|
|
606
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
607
|
-
case "ThrottlingException":
|
|
608
|
-
case "com.amazonaws.mediapackagev2#ThrottlingException":
|
|
609
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
610
|
-
case "ValidationException":
|
|
611
|
-
case "com.amazonaws.mediapackagev2#ValidationException":
|
|
612
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
613
|
-
default:
|
|
614
|
-
const parsedBody = parsedOutput.body;
|
|
615
|
-
return throwDefaultError({
|
|
616
|
-
output,
|
|
617
|
-
parsedBody,
|
|
618
|
-
errorCode,
|
|
619
|
-
});
|
|
620
|
-
}
|
|
621
|
-
};
|
|
622
418
|
export const de_DeleteOriginEndpointCommand = async (output, context) => {
|
|
623
419
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
624
|
-
return
|
|
420
|
+
return de_CommandError(output, context);
|
|
625
421
|
}
|
|
626
422
|
const contents = map({
|
|
627
423
|
$metadata: deserializeMetadata(output),
|
|
@@ -629,37 +425,9 @@ export const de_DeleteOriginEndpointCommand = async (output, context) => {
|
|
|
629
425
|
await collectBody(output.body, context);
|
|
630
426
|
return contents;
|
|
631
427
|
};
|
|
632
|
-
const de_DeleteOriginEndpointCommandError = async (output, context) => {
|
|
633
|
-
const parsedOutput = {
|
|
634
|
-
...output,
|
|
635
|
-
body: await parseErrorBody(output.body, context),
|
|
636
|
-
};
|
|
637
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
638
|
-
switch (errorCode) {
|
|
639
|
-
case "AccessDeniedException":
|
|
640
|
-
case "com.amazonaws.mediapackagev2#AccessDeniedException":
|
|
641
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
642
|
-
case "InternalServerException":
|
|
643
|
-
case "com.amazonaws.mediapackagev2#InternalServerException":
|
|
644
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
645
|
-
case "ThrottlingException":
|
|
646
|
-
case "com.amazonaws.mediapackagev2#ThrottlingException":
|
|
647
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
648
|
-
case "ValidationException":
|
|
649
|
-
case "com.amazonaws.mediapackagev2#ValidationException":
|
|
650
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
651
|
-
default:
|
|
652
|
-
const parsedBody = parsedOutput.body;
|
|
653
|
-
return throwDefaultError({
|
|
654
|
-
output,
|
|
655
|
-
parsedBody,
|
|
656
|
-
errorCode,
|
|
657
|
-
});
|
|
658
|
-
}
|
|
659
|
-
};
|
|
660
428
|
export const de_DeleteOriginEndpointPolicyCommand = async (output, context) => {
|
|
661
429
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
662
|
-
return
|
|
430
|
+
return de_CommandError(output, context);
|
|
663
431
|
}
|
|
664
432
|
const contents = map({
|
|
665
433
|
$metadata: deserializeMetadata(output),
|
|
@@ -667,40 +435,9 @@ export const de_DeleteOriginEndpointPolicyCommand = async (output, context) => {
|
|
|
667
435
|
await collectBody(output.body, context);
|
|
668
436
|
return contents;
|
|
669
437
|
};
|
|
670
|
-
const de_DeleteOriginEndpointPolicyCommandError = async (output, context) => {
|
|
671
|
-
const parsedOutput = {
|
|
672
|
-
...output,
|
|
673
|
-
body: await parseErrorBody(output.body, context),
|
|
674
|
-
};
|
|
675
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
676
|
-
switch (errorCode) {
|
|
677
|
-
case "AccessDeniedException":
|
|
678
|
-
case "com.amazonaws.mediapackagev2#AccessDeniedException":
|
|
679
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
680
|
-
case "ConflictException":
|
|
681
|
-
case "com.amazonaws.mediapackagev2#ConflictException":
|
|
682
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
683
|
-
case "InternalServerException":
|
|
684
|
-
case "com.amazonaws.mediapackagev2#InternalServerException":
|
|
685
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
686
|
-
case "ThrottlingException":
|
|
687
|
-
case "com.amazonaws.mediapackagev2#ThrottlingException":
|
|
688
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
689
|
-
case "ValidationException":
|
|
690
|
-
case "com.amazonaws.mediapackagev2#ValidationException":
|
|
691
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
692
|
-
default:
|
|
693
|
-
const parsedBody = parsedOutput.body;
|
|
694
|
-
return throwDefaultError({
|
|
695
|
-
output,
|
|
696
|
-
parsedBody,
|
|
697
|
-
errorCode,
|
|
698
|
-
});
|
|
699
|
-
}
|
|
700
|
-
};
|
|
701
438
|
export const de_GetChannelCommand = async (output, context) => {
|
|
702
439
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
703
|
-
return
|
|
440
|
+
return de_CommandError(output, context);
|
|
704
441
|
}
|
|
705
442
|
const contents = map({
|
|
706
443
|
$metadata: deserializeMetadata(output),
|
|
@@ -719,40 +456,9 @@ export const de_GetChannelCommand = async (output, context) => {
|
|
|
719
456
|
Object.assign(contents, doc);
|
|
720
457
|
return contents;
|
|
721
458
|
};
|
|
722
|
-
const de_GetChannelCommandError = async (output, context) => {
|
|
723
|
-
const parsedOutput = {
|
|
724
|
-
...output,
|
|
725
|
-
body: await parseErrorBody(output.body, context),
|
|
726
|
-
};
|
|
727
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
728
|
-
switch (errorCode) {
|
|
729
|
-
case "AccessDeniedException":
|
|
730
|
-
case "com.amazonaws.mediapackagev2#AccessDeniedException":
|
|
731
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
732
|
-
case "InternalServerException":
|
|
733
|
-
case "com.amazonaws.mediapackagev2#InternalServerException":
|
|
734
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
735
|
-
case "ResourceNotFoundException":
|
|
736
|
-
case "com.amazonaws.mediapackagev2#ResourceNotFoundException":
|
|
737
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
738
|
-
case "ThrottlingException":
|
|
739
|
-
case "com.amazonaws.mediapackagev2#ThrottlingException":
|
|
740
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
741
|
-
case "ValidationException":
|
|
742
|
-
case "com.amazonaws.mediapackagev2#ValidationException":
|
|
743
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
744
|
-
default:
|
|
745
|
-
const parsedBody = parsedOutput.body;
|
|
746
|
-
return throwDefaultError({
|
|
747
|
-
output,
|
|
748
|
-
parsedBody,
|
|
749
|
-
errorCode,
|
|
750
|
-
});
|
|
751
|
-
}
|
|
752
|
-
};
|
|
753
459
|
export const de_GetChannelGroupCommand = async (output, context) => {
|
|
754
460
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
755
|
-
return
|
|
461
|
+
return de_CommandError(output, context);
|
|
756
462
|
}
|
|
757
463
|
const contents = map({
|
|
758
464
|
$metadata: deserializeMetadata(output),
|
|
@@ -770,40 +476,9 @@ export const de_GetChannelGroupCommand = async (output, context) => {
|
|
|
770
476
|
Object.assign(contents, doc);
|
|
771
477
|
return contents;
|
|
772
478
|
};
|
|
773
|
-
const de_GetChannelGroupCommandError = async (output, context) => {
|
|
774
|
-
const parsedOutput = {
|
|
775
|
-
...output,
|
|
776
|
-
body: await parseErrorBody(output.body, context),
|
|
777
|
-
};
|
|
778
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
779
|
-
switch (errorCode) {
|
|
780
|
-
case "AccessDeniedException":
|
|
781
|
-
case "com.amazonaws.mediapackagev2#AccessDeniedException":
|
|
782
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
783
|
-
case "InternalServerException":
|
|
784
|
-
case "com.amazonaws.mediapackagev2#InternalServerException":
|
|
785
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
786
|
-
case "ResourceNotFoundException":
|
|
787
|
-
case "com.amazonaws.mediapackagev2#ResourceNotFoundException":
|
|
788
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
789
|
-
case "ThrottlingException":
|
|
790
|
-
case "com.amazonaws.mediapackagev2#ThrottlingException":
|
|
791
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
792
|
-
case "ValidationException":
|
|
793
|
-
case "com.amazonaws.mediapackagev2#ValidationException":
|
|
794
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
795
|
-
default:
|
|
796
|
-
const parsedBody = parsedOutput.body;
|
|
797
|
-
return throwDefaultError({
|
|
798
|
-
output,
|
|
799
|
-
parsedBody,
|
|
800
|
-
errorCode,
|
|
801
|
-
});
|
|
802
|
-
}
|
|
803
|
-
};
|
|
804
479
|
export const de_GetChannelPolicyCommand = async (output, context) => {
|
|
805
480
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
806
|
-
return
|
|
481
|
+
return de_CommandError(output, context);
|
|
807
482
|
}
|
|
808
483
|
const contents = map({
|
|
809
484
|
$metadata: deserializeMetadata(output),
|
|
@@ -817,40 +492,9 @@ export const de_GetChannelPolicyCommand = async (output, context) => {
|
|
|
817
492
|
Object.assign(contents, doc);
|
|
818
493
|
return contents;
|
|
819
494
|
};
|
|
820
|
-
const de_GetChannelPolicyCommandError = async (output, context) => {
|
|
821
|
-
const parsedOutput = {
|
|
822
|
-
...output,
|
|
823
|
-
body: await parseErrorBody(output.body, context),
|
|
824
|
-
};
|
|
825
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
826
|
-
switch (errorCode) {
|
|
827
|
-
case "AccessDeniedException":
|
|
828
|
-
case "com.amazonaws.mediapackagev2#AccessDeniedException":
|
|
829
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
830
|
-
case "InternalServerException":
|
|
831
|
-
case "com.amazonaws.mediapackagev2#InternalServerException":
|
|
832
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
833
|
-
case "ResourceNotFoundException":
|
|
834
|
-
case "com.amazonaws.mediapackagev2#ResourceNotFoundException":
|
|
835
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
836
|
-
case "ThrottlingException":
|
|
837
|
-
case "com.amazonaws.mediapackagev2#ThrottlingException":
|
|
838
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
839
|
-
case "ValidationException":
|
|
840
|
-
case "com.amazonaws.mediapackagev2#ValidationException":
|
|
841
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
842
|
-
default:
|
|
843
|
-
const parsedBody = parsedOutput.body;
|
|
844
|
-
return throwDefaultError({
|
|
845
|
-
output,
|
|
846
|
-
parsedBody,
|
|
847
|
-
errorCode,
|
|
848
|
-
});
|
|
849
|
-
}
|
|
850
|
-
};
|
|
851
495
|
export const de_GetOriginEndpointCommand = async (output, context) => {
|
|
852
496
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
853
|
-
return
|
|
497
|
+
return de_CommandError(output, context);
|
|
854
498
|
}
|
|
855
499
|
const contents = map({
|
|
856
500
|
$metadata: deserializeMetadata(output),
|
|
@@ -874,40 +518,9 @@ export const de_GetOriginEndpointCommand = async (output, context) => {
|
|
|
874
518
|
Object.assign(contents, doc);
|
|
875
519
|
return contents;
|
|
876
520
|
};
|
|
877
|
-
const de_GetOriginEndpointCommandError = async (output, context) => {
|
|
878
|
-
const parsedOutput = {
|
|
879
|
-
...output,
|
|
880
|
-
body: await parseErrorBody(output.body, context),
|
|
881
|
-
};
|
|
882
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
883
|
-
switch (errorCode) {
|
|
884
|
-
case "AccessDeniedException":
|
|
885
|
-
case "com.amazonaws.mediapackagev2#AccessDeniedException":
|
|
886
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
887
|
-
case "InternalServerException":
|
|
888
|
-
case "com.amazonaws.mediapackagev2#InternalServerException":
|
|
889
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
890
|
-
case "ResourceNotFoundException":
|
|
891
|
-
case "com.amazonaws.mediapackagev2#ResourceNotFoundException":
|
|
892
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
893
|
-
case "ThrottlingException":
|
|
894
|
-
case "com.amazonaws.mediapackagev2#ThrottlingException":
|
|
895
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
896
|
-
case "ValidationException":
|
|
897
|
-
case "com.amazonaws.mediapackagev2#ValidationException":
|
|
898
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
899
|
-
default:
|
|
900
|
-
const parsedBody = parsedOutput.body;
|
|
901
|
-
return throwDefaultError({
|
|
902
|
-
output,
|
|
903
|
-
parsedBody,
|
|
904
|
-
errorCode,
|
|
905
|
-
});
|
|
906
|
-
}
|
|
907
|
-
};
|
|
908
521
|
export const de_GetOriginEndpointPolicyCommand = async (output, context) => {
|
|
909
522
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
910
|
-
return
|
|
523
|
+
return de_CommandError(output, context);
|
|
911
524
|
}
|
|
912
525
|
const contents = map({
|
|
913
526
|
$metadata: deserializeMetadata(output),
|
|
@@ -922,83 +535,24 @@ export const de_GetOriginEndpointPolicyCommand = async (output, context) => {
|
|
|
922
535
|
Object.assign(contents, doc);
|
|
923
536
|
return contents;
|
|
924
537
|
};
|
|
925
|
-
const de_GetOriginEndpointPolicyCommandError = async (output, context) => {
|
|
926
|
-
const parsedOutput = {
|
|
927
|
-
...output,
|
|
928
|
-
body: await parseErrorBody(output.body, context),
|
|
929
|
-
};
|
|
930
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
931
|
-
switch (errorCode) {
|
|
932
|
-
case "AccessDeniedException":
|
|
933
|
-
case "com.amazonaws.mediapackagev2#AccessDeniedException":
|
|
934
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
935
|
-
case "InternalServerException":
|
|
936
|
-
case "com.amazonaws.mediapackagev2#InternalServerException":
|
|
937
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
938
|
-
case "ResourceNotFoundException":
|
|
939
|
-
case "com.amazonaws.mediapackagev2#ResourceNotFoundException":
|
|
940
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
941
|
-
case "ThrottlingException":
|
|
942
|
-
case "com.amazonaws.mediapackagev2#ThrottlingException":
|
|
943
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
944
|
-
case "ValidationException":
|
|
945
|
-
case "com.amazonaws.mediapackagev2#ValidationException":
|
|
946
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
947
|
-
default:
|
|
948
|
-
const parsedBody = parsedOutput.body;
|
|
949
|
-
return throwDefaultError({
|
|
950
|
-
output,
|
|
951
|
-
parsedBody,
|
|
952
|
-
errorCode,
|
|
953
|
-
});
|
|
954
|
-
}
|
|
955
|
-
};
|
|
956
538
|
export const de_ListChannelGroupsCommand = async (output, context) => {
|
|
957
539
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
958
|
-
return
|
|
959
|
-
}
|
|
960
|
-
const contents = map({
|
|
961
|
-
$metadata: deserializeMetadata(output),
|
|
962
|
-
});
|
|
963
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
964
|
-
const doc = take(data, {
|
|
965
|
-
Items: (_) => de_ChannelGroupsList(_, context),
|
|
966
|
-
NextToken: __expectString,
|
|
967
|
-
});
|
|
968
|
-
Object.assign(contents, doc);
|
|
969
|
-
return contents;
|
|
970
|
-
};
|
|
971
|
-
const de_ListChannelGroupsCommandError = async (output, context) => {
|
|
972
|
-
const parsedOutput = {
|
|
973
|
-
...output,
|
|
974
|
-
body: await parseErrorBody(output.body, context),
|
|
975
|
-
};
|
|
976
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
977
|
-
switch (errorCode) {
|
|
978
|
-
case "AccessDeniedException":
|
|
979
|
-
case "com.amazonaws.mediapackagev2#AccessDeniedException":
|
|
980
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
981
|
-
case "InternalServerException":
|
|
982
|
-
case "com.amazonaws.mediapackagev2#InternalServerException":
|
|
983
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
984
|
-
case "ThrottlingException":
|
|
985
|
-
case "com.amazonaws.mediapackagev2#ThrottlingException":
|
|
986
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
987
|
-
case "ValidationException":
|
|
988
|
-
case "com.amazonaws.mediapackagev2#ValidationException":
|
|
989
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
990
|
-
default:
|
|
991
|
-
const parsedBody = parsedOutput.body;
|
|
992
|
-
return throwDefaultError({
|
|
993
|
-
output,
|
|
994
|
-
parsedBody,
|
|
995
|
-
errorCode,
|
|
996
|
-
});
|
|
540
|
+
return de_CommandError(output, context);
|
|
997
541
|
}
|
|
542
|
+
const contents = map({
|
|
543
|
+
$metadata: deserializeMetadata(output),
|
|
544
|
+
});
|
|
545
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
546
|
+
const doc = take(data, {
|
|
547
|
+
Items: (_) => de_ChannelGroupsList(_, context),
|
|
548
|
+
NextToken: __expectString,
|
|
549
|
+
});
|
|
550
|
+
Object.assign(contents, doc);
|
|
551
|
+
return contents;
|
|
998
552
|
};
|
|
999
553
|
export const de_ListChannelsCommand = async (output, context) => {
|
|
1000
554
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1001
|
-
return
|
|
555
|
+
return de_CommandError(output, context);
|
|
1002
556
|
}
|
|
1003
557
|
const contents = map({
|
|
1004
558
|
$metadata: deserializeMetadata(output),
|
|
@@ -1011,40 +565,9 @@ export const de_ListChannelsCommand = async (output, context) => {
|
|
|
1011
565
|
Object.assign(contents, doc);
|
|
1012
566
|
return contents;
|
|
1013
567
|
};
|
|
1014
|
-
const de_ListChannelsCommandError = async (output, context) => {
|
|
1015
|
-
const parsedOutput = {
|
|
1016
|
-
...output,
|
|
1017
|
-
body: await parseErrorBody(output.body, context),
|
|
1018
|
-
};
|
|
1019
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1020
|
-
switch (errorCode) {
|
|
1021
|
-
case "AccessDeniedException":
|
|
1022
|
-
case "com.amazonaws.mediapackagev2#AccessDeniedException":
|
|
1023
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1024
|
-
case "InternalServerException":
|
|
1025
|
-
case "com.amazonaws.mediapackagev2#InternalServerException":
|
|
1026
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1027
|
-
case "ResourceNotFoundException":
|
|
1028
|
-
case "com.amazonaws.mediapackagev2#ResourceNotFoundException":
|
|
1029
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1030
|
-
case "ThrottlingException":
|
|
1031
|
-
case "com.amazonaws.mediapackagev2#ThrottlingException":
|
|
1032
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1033
|
-
case "ValidationException":
|
|
1034
|
-
case "com.amazonaws.mediapackagev2#ValidationException":
|
|
1035
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1036
|
-
default:
|
|
1037
|
-
const parsedBody = parsedOutput.body;
|
|
1038
|
-
return throwDefaultError({
|
|
1039
|
-
output,
|
|
1040
|
-
parsedBody,
|
|
1041
|
-
errorCode,
|
|
1042
|
-
});
|
|
1043
|
-
}
|
|
1044
|
-
};
|
|
1045
568
|
export const de_ListOriginEndpointsCommand = async (output, context) => {
|
|
1046
569
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1047
|
-
return
|
|
570
|
+
return de_CommandError(output, context);
|
|
1048
571
|
}
|
|
1049
572
|
const contents = map({
|
|
1050
573
|
$metadata: deserializeMetadata(output),
|
|
@@ -1057,40 +580,9 @@ export const de_ListOriginEndpointsCommand = async (output, context) => {
|
|
|
1057
580
|
Object.assign(contents, doc);
|
|
1058
581
|
return contents;
|
|
1059
582
|
};
|
|
1060
|
-
const de_ListOriginEndpointsCommandError = async (output, context) => {
|
|
1061
|
-
const parsedOutput = {
|
|
1062
|
-
...output,
|
|
1063
|
-
body: await parseErrorBody(output.body, context),
|
|
1064
|
-
};
|
|
1065
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1066
|
-
switch (errorCode) {
|
|
1067
|
-
case "AccessDeniedException":
|
|
1068
|
-
case "com.amazonaws.mediapackagev2#AccessDeniedException":
|
|
1069
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1070
|
-
case "InternalServerException":
|
|
1071
|
-
case "com.amazonaws.mediapackagev2#InternalServerException":
|
|
1072
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1073
|
-
case "ResourceNotFoundException":
|
|
1074
|
-
case "com.amazonaws.mediapackagev2#ResourceNotFoundException":
|
|
1075
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1076
|
-
case "ThrottlingException":
|
|
1077
|
-
case "com.amazonaws.mediapackagev2#ThrottlingException":
|
|
1078
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1079
|
-
case "ValidationException":
|
|
1080
|
-
case "com.amazonaws.mediapackagev2#ValidationException":
|
|
1081
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1082
|
-
default:
|
|
1083
|
-
const parsedBody = parsedOutput.body;
|
|
1084
|
-
return throwDefaultError({
|
|
1085
|
-
output,
|
|
1086
|
-
parsedBody,
|
|
1087
|
-
errorCode,
|
|
1088
|
-
});
|
|
1089
|
-
}
|
|
1090
|
-
};
|
|
1091
583
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1092
584
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1093
|
-
return
|
|
585
|
+
return de_CommandError(output, context);
|
|
1094
586
|
}
|
|
1095
587
|
const contents = map({
|
|
1096
588
|
$metadata: deserializeMetadata(output),
|
|
@@ -1102,28 +594,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1102
594
|
Object.assign(contents, doc);
|
|
1103
595
|
return contents;
|
|
1104
596
|
};
|
|
1105
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1106
|
-
const parsedOutput = {
|
|
1107
|
-
...output,
|
|
1108
|
-
body: await parseErrorBody(output.body, context),
|
|
1109
|
-
};
|
|
1110
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1111
|
-
switch (errorCode) {
|
|
1112
|
-
case "ValidationException":
|
|
1113
|
-
case "com.amazonaws.mediapackagev2#ValidationException":
|
|
1114
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1115
|
-
default:
|
|
1116
|
-
const parsedBody = parsedOutput.body;
|
|
1117
|
-
return throwDefaultError({
|
|
1118
|
-
output,
|
|
1119
|
-
parsedBody,
|
|
1120
|
-
errorCode,
|
|
1121
|
-
});
|
|
1122
|
-
}
|
|
1123
|
-
};
|
|
1124
597
|
export const de_PutChannelPolicyCommand = async (output, context) => {
|
|
1125
598
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1126
|
-
return
|
|
599
|
+
return de_CommandError(output, context);
|
|
1127
600
|
}
|
|
1128
601
|
const contents = map({
|
|
1129
602
|
$metadata: deserializeMetadata(output),
|
|
@@ -1131,43 +604,9 @@ export const de_PutChannelPolicyCommand = async (output, context) => {
|
|
|
1131
604
|
await collectBody(output.body, context);
|
|
1132
605
|
return contents;
|
|
1133
606
|
};
|
|
1134
|
-
const de_PutChannelPolicyCommandError = async (output, context) => {
|
|
1135
|
-
const parsedOutput = {
|
|
1136
|
-
...output,
|
|
1137
|
-
body: await parseErrorBody(output.body, context),
|
|
1138
|
-
};
|
|
1139
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1140
|
-
switch (errorCode) {
|
|
1141
|
-
case "AccessDeniedException":
|
|
1142
|
-
case "com.amazonaws.mediapackagev2#AccessDeniedException":
|
|
1143
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1144
|
-
case "ConflictException":
|
|
1145
|
-
case "com.amazonaws.mediapackagev2#ConflictException":
|
|
1146
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1147
|
-
case "InternalServerException":
|
|
1148
|
-
case "com.amazonaws.mediapackagev2#InternalServerException":
|
|
1149
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1150
|
-
case "ResourceNotFoundException":
|
|
1151
|
-
case "com.amazonaws.mediapackagev2#ResourceNotFoundException":
|
|
1152
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1153
|
-
case "ThrottlingException":
|
|
1154
|
-
case "com.amazonaws.mediapackagev2#ThrottlingException":
|
|
1155
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1156
|
-
case "ValidationException":
|
|
1157
|
-
case "com.amazonaws.mediapackagev2#ValidationException":
|
|
1158
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1159
|
-
default:
|
|
1160
|
-
const parsedBody = parsedOutput.body;
|
|
1161
|
-
return throwDefaultError({
|
|
1162
|
-
output,
|
|
1163
|
-
parsedBody,
|
|
1164
|
-
errorCode,
|
|
1165
|
-
});
|
|
1166
|
-
}
|
|
1167
|
-
};
|
|
1168
607
|
export const de_PutOriginEndpointPolicyCommand = async (output, context) => {
|
|
1169
608
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1170
|
-
return
|
|
609
|
+
return de_CommandError(output, context);
|
|
1171
610
|
}
|
|
1172
611
|
const contents = map({
|
|
1173
612
|
$metadata: deserializeMetadata(output),
|
|
@@ -1175,43 +614,9 @@ export const de_PutOriginEndpointPolicyCommand = async (output, context) => {
|
|
|
1175
614
|
await collectBody(output.body, context);
|
|
1176
615
|
return contents;
|
|
1177
616
|
};
|
|
1178
|
-
const de_PutOriginEndpointPolicyCommandError = async (output, context) => {
|
|
1179
|
-
const parsedOutput = {
|
|
1180
|
-
...output,
|
|
1181
|
-
body: await parseErrorBody(output.body, context),
|
|
1182
|
-
};
|
|
1183
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1184
|
-
switch (errorCode) {
|
|
1185
|
-
case "AccessDeniedException":
|
|
1186
|
-
case "com.amazonaws.mediapackagev2#AccessDeniedException":
|
|
1187
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1188
|
-
case "ConflictException":
|
|
1189
|
-
case "com.amazonaws.mediapackagev2#ConflictException":
|
|
1190
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1191
|
-
case "InternalServerException":
|
|
1192
|
-
case "com.amazonaws.mediapackagev2#InternalServerException":
|
|
1193
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1194
|
-
case "ResourceNotFoundException":
|
|
1195
|
-
case "com.amazonaws.mediapackagev2#ResourceNotFoundException":
|
|
1196
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1197
|
-
case "ThrottlingException":
|
|
1198
|
-
case "com.amazonaws.mediapackagev2#ThrottlingException":
|
|
1199
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1200
|
-
case "ValidationException":
|
|
1201
|
-
case "com.amazonaws.mediapackagev2#ValidationException":
|
|
1202
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1203
|
-
default:
|
|
1204
|
-
const parsedBody = parsedOutput.body;
|
|
1205
|
-
return throwDefaultError({
|
|
1206
|
-
output,
|
|
1207
|
-
parsedBody,
|
|
1208
|
-
errorCode,
|
|
1209
|
-
});
|
|
1210
|
-
}
|
|
1211
|
-
};
|
|
1212
617
|
export const de_TagResourceCommand = async (output, context) => {
|
|
1213
618
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1214
|
-
return
|
|
619
|
+
return de_CommandError(output, context);
|
|
1215
620
|
}
|
|
1216
621
|
const contents = map({
|
|
1217
622
|
$metadata: deserializeMetadata(output),
|
|
@@ -1219,28 +624,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
1219
624
|
await collectBody(output.body, context);
|
|
1220
625
|
return contents;
|
|
1221
626
|
};
|
|
1222
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1223
|
-
const parsedOutput = {
|
|
1224
|
-
...output,
|
|
1225
|
-
body: await parseErrorBody(output.body, context),
|
|
1226
|
-
};
|
|
1227
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1228
|
-
switch (errorCode) {
|
|
1229
|
-
case "ValidationException":
|
|
1230
|
-
case "com.amazonaws.mediapackagev2#ValidationException":
|
|
1231
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1232
|
-
default:
|
|
1233
|
-
const parsedBody = parsedOutput.body;
|
|
1234
|
-
return throwDefaultError({
|
|
1235
|
-
output,
|
|
1236
|
-
parsedBody,
|
|
1237
|
-
errorCode,
|
|
1238
|
-
});
|
|
1239
|
-
}
|
|
1240
|
-
};
|
|
1241
627
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
1242
628
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1243
|
-
return
|
|
629
|
+
return de_CommandError(output, context);
|
|
1244
630
|
}
|
|
1245
631
|
const contents = map({
|
|
1246
632
|
$metadata: deserializeMetadata(output),
|
|
@@ -1248,28 +634,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
1248
634
|
await collectBody(output.body, context);
|
|
1249
635
|
return contents;
|
|
1250
636
|
};
|
|
1251
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1252
|
-
const parsedOutput = {
|
|
1253
|
-
...output,
|
|
1254
|
-
body: await parseErrorBody(output.body, context),
|
|
1255
|
-
};
|
|
1256
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1257
|
-
switch (errorCode) {
|
|
1258
|
-
case "ValidationException":
|
|
1259
|
-
case "com.amazonaws.mediapackagev2#ValidationException":
|
|
1260
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1261
|
-
default:
|
|
1262
|
-
const parsedBody = parsedOutput.body;
|
|
1263
|
-
return throwDefaultError({
|
|
1264
|
-
output,
|
|
1265
|
-
parsedBody,
|
|
1266
|
-
errorCode,
|
|
1267
|
-
});
|
|
1268
|
-
}
|
|
1269
|
-
};
|
|
1270
637
|
export const de_UpdateChannelCommand = async (output, context) => {
|
|
1271
638
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1272
|
-
return
|
|
639
|
+
return de_CommandError(output, context);
|
|
1273
640
|
}
|
|
1274
641
|
const contents = map({
|
|
1275
642
|
$metadata: deserializeMetadata(output),
|
|
@@ -1288,43 +655,9 @@ export const de_UpdateChannelCommand = async (output, context) => {
|
|
|
1288
655
|
Object.assign(contents, doc);
|
|
1289
656
|
return contents;
|
|
1290
657
|
};
|
|
1291
|
-
const de_UpdateChannelCommandError = async (output, context) => {
|
|
1292
|
-
const parsedOutput = {
|
|
1293
|
-
...output,
|
|
1294
|
-
body: await parseErrorBody(output.body, context),
|
|
1295
|
-
};
|
|
1296
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1297
|
-
switch (errorCode) {
|
|
1298
|
-
case "AccessDeniedException":
|
|
1299
|
-
case "com.amazonaws.mediapackagev2#AccessDeniedException":
|
|
1300
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1301
|
-
case "ConflictException":
|
|
1302
|
-
case "com.amazonaws.mediapackagev2#ConflictException":
|
|
1303
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1304
|
-
case "InternalServerException":
|
|
1305
|
-
case "com.amazonaws.mediapackagev2#InternalServerException":
|
|
1306
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1307
|
-
case "ResourceNotFoundException":
|
|
1308
|
-
case "com.amazonaws.mediapackagev2#ResourceNotFoundException":
|
|
1309
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1310
|
-
case "ThrottlingException":
|
|
1311
|
-
case "com.amazonaws.mediapackagev2#ThrottlingException":
|
|
1312
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1313
|
-
case "ValidationException":
|
|
1314
|
-
case "com.amazonaws.mediapackagev2#ValidationException":
|
|
1315
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1316
|
-
default:
|
|
1317
|
-
const parsedBody = parsedOutput.body;
|
|
1318
|
-
return throwDefaultError({
|
|
1319
|
-
output,
|
|
1320
|
-
parsedBody,
|
|
1321
|
-
errorCode,
|
|
1322
|
-
});
|
|
1323
|
-
}
|
|
1324
|
-
};
|
|
1325
658
|
export const de_UpdateChannelGroupCommand = async (output, context) => {
|
|
1326
659
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1327
|
-
return
|
|
660
|
+
return de_CommandError(output, context);
|
|
1328
661
|
}
|
|
1329
662
|
const contents = map({
|
|
1330
663
|
$metadata: deserializeMetadata(output),
|
|
@@ -1342,43 +675,9 @@ export const de_UpdateChannelGroupCommand = async (output, context) => {
|
|
|
1342
675
|
Object.assign(contents, doc);
|
|
1343
676
|
return contents;
|
|
1344
677
|
};
|
|
1345
|
-
const de_UpdateChannelGroupCommandError = async (output, context) => {
|
|
1346
|
-
const parsedOutput = {
|
|
1347
|
-
...output,
|
|
1348
|
-
body: await parseErrorBody(output.body, context),
|
|
1349
|
-
};
|
|
1350
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1351
|
-
switch (errorCode) {
|
|
1352
|
-
case "AccessDeniedException":
|
|
1353
|
-
case "com.amazonaws.mediapackagev2#AccessDeniedException":
|
|
1354
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1355
|
-
case "ConflictException":
|
|
1356
|
-
case "com.amazonaws.mediapackagev2#ConflictException":
|
|
1357
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1358
|
-
case "InternalServerException":
|
|
1359
|
-
case "com.amazonaws.mediapackagev2#InternalServerException":
|
|
1360
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1361
|
-
case "ResourceNotFoundException":
|
|
1362
|
-
case "com.amazonaws.mediapackagev2#ResourceNotFoundException":
|
|
1363
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1364
|
-
case "ThrottlingException":
|
|
1365
|
-
case "com.amazonaws.mediapackagev2#ThrottlingException":
|
|
1366
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1367
|
-
case "ValidationException":
|
|
1368
|
-
case "com.amazonaws.mediapackagev2#ValidationException":
|
|
1369
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1370
|
-
default:
|
|
1371
|
-
const parsedBody = parsedOutput.body;
|
|
1372
|
-
return throwDefaultError({
|
|
1373
|
-
output,
|
|
1374
|
-
parsedBody,
|
|
1375
|
-
errorCode,
|
|
1376
|
-
});
|
|
1377
|
-
}
|
|
1378
|
-
};
|
|
1379
678
|
export const de_UpdateOriginEndpointCommand = async (output, context) => {
|
|
1380
679
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1381
|
-
return
|
|
680
|
+
return de_CommandError(output, context);
|
|
1382
681
|
}
|
|
1383
682
|
const contents = map({
|
|
1384
683
|
$metadata: deserializeMetadata(output),
|
|
@@ -1402,7 +701,7 @@ export const de_UpdateOriginEndpointCommand = async (output, context) => {
|
|
|
1402
701
|
Object.assign(contents, doc);
|
|
1403
702
|
return contents;
|
|
1404
703
|
};
|
|
1405
|
-
const
|
|
704
|
+
const de_CommandError = async (output, context) => {
|
|
1406
705
|
const parsedOutput = {
|
|
1407
706
|
...output,
|
|
1408
707
|
body: await parseErrorBody(output.body, context),
|