@aws-sdk/client-ivs-realtime 3.504.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 +37 -798
- package/dist-es/protocols/Aws_restJson1.js +71 -832
- package/package.json +3 -3
|
@@ -393,7 +393,7 @@ export const se_UpdateStageCommand = async (input, context) => {
|
|
|
393
393
|
};
|
|
394
394
|
export const de_CreateEncoderConfigurationCommand = async (output, context) => {
|
|
395
395
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
396
|
-
return
|
|
396
|
+
return de_CommandError(output, context);
|
|
397
397
|
}
|
|
398
398
|
const contents = map({
|
|
399
399
|
$metadata: deserializeMetadata(output),
|
|
@@ -405,46 +405,9 @@ export const de_CreateEncoderConfigurationCommand = async (output, context) => {
|
|
|
405
405
|
Object.assign(contents, doc);
|
|
406
406
|
return contents;
|
|
407
407
|
};
|
|
408
|
-
const de_CreateEncoderConfigurationCommandError = async (output, context) => {
|
|
409
|
-
const parsedOutput = {
|
|
410
|
-
...output,
|
|
411
|
-
body: await parseErrorBody(output.body, context),
|
|
412
|
-
};
|
|
413
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
414
|
-
switch (errorCode) {
|
|
415
|
-
case "AccessDeniedException":
|
|
416
|
-
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
417
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
418
|
-
case "ConflictException":
|
|
419
|
-
case "com.amazonaws.ivsrealtime#ConflictException":
|
|
420
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
421
|
-
case "InternalServerException":
|
|
422
|
-
case "com.amazonaws.ivsrealtime#InternalServerException":
|
|
423
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
424
|
-
case "PendingVerification":
|
|
425
|
-
case "com.amazonaws.ivsrealtime#PendingVerification":
|
|
426
|
-
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
427
|
-
case "ResourceNotFoundException":
|
|
428
|
-
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
429
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
430
|
-
case "ServiceQuotaExceededException":
|
|
431
|
-
case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
|
|
432
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
433
|
-
case "ValidationException":
|
|
434
|
-
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
435
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
436
|
-
default:
|
|
437
|
-
const parsedBody = parsedOutput.body;
|
|
438
|
-
return throwDefaultError({
|
|
439
|
-
output,
|
|
440
|
-
parsedBody,
|
|
441
|
-
errorCode,
|
|
442
|
-
});
|
|
443
|
-
}
|
|
444
|
-
};
|
|
445
408
|
export const de_CreateParticipantTokenCommand = async (output, context) => {
|
|
446
409
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
447
|
-
return
|
|
410
|
+
return de_CommandError(output, context);
|
|
448
411
|
}
|
|
449
412
|
const contents = map({
|
|
450
413
|
$metadata: deserializeMetadata(output),
|
|
@@ -456,40 +419,9 @@ export const de_CreateParticipantTokenCommand = async (output, context) => {
|
|
|
456
419
|
Object.assign(contents, doc);
|
|
457
420
|
return contents;
|
|
458
421
|
};
|
|
459
|
-
const de_CreateParticipantTokenCommandError = async (output, context) => {
|
|
460
|
-
const parsedOutput = {
|
|
461
|
-
...output,
|
|
462
|
-
body: await parseErrorBody(output.body, context),
|
|
463
|
-
};
|
|
464
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
465
|
-
switch (errorCode) {
|
|
466
|
-
case "AccessDeniedException":
|
|
467
|
-
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
468
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
469
|
-
case "PendingVerification":
|
|
470
|
-
case "com.amazonaws.ivsrealtime#PendingVerification":
|
|
471
|
-
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
472
|
-
case "ResourceNotFoundException":
|
|
473
|
-
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
474
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
475
|
-
case "ServiceQuotaExceededException":
|
|
476
|
-
case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
|
|
477
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
478
|
-
case "ValidationException":
|
|
479
|
-
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
480
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
481
|
-
default:
|
|
482
|
-
const parsedBody = parsedOutput.body;
|
|
483
|
-
return throwDefaultError({
|
|
484
|
-
output,
|
|
485
|
-
parsedBody,
|
|
486
|
-
errorCode,
|
|
487
|
-
});
|
|
488
|
-
}
|
|
489
|
-
};
|
|
490
422
|
export const de_CreateStageCommand = async (output, context) => {
|
|
491
423
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
492
|
-
return
|
|
424
|
+
return de_CommandError(output, context);
|
|
493
425
|
}
|
|
494
426
|
const contents = map({
|
|
495
427
|
$metadata: deserializeMetadata(output),
|
|
@@ -502,37 +434,9 @@ export const de_CreateStageCommand = async (output, context) => {
|
|
|
502
434
|
Object.assign(contents, doc);
|
|
503
435
|
return contents;
|
|
504
436
|
};
|
|
505
|
-
const de_CreateStageCommandError = async (output, context) => {
|
|
506
|
-
const parsedOutput = {
|
|
507
|
-
...output,
|
|
508
|
-
body: await parseErrorBody(output.body, context),
|
|
509
|
-
};
|
|
510
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
511
|
-
switch (errorCode) {
|
|
512
|
-
case "AccessDeniedException":
|
|
513
|
-
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
514
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
515
|
-
case "PendingVerification":
|
|
516
|
-
case "com.amazonaws.ivsrealtime#PendingVerification":
|
|
517
|
-
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
518
|
-
case "ServiceQuotaExceededException":
|
|
519
|
-
case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
|
|
520
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
521
|
-
case "ValidationException":
|
|
522
|
-
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
523
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
524
|
-
default:
|
|
525
|
-
const parsedBody = parsedOutput.body;
|
|
526
|
-
return throwDefaultError({
|
|
527
|
-
output,
|
|
528
|
-
parsedBody,
|
|
529
|
-
errorCode,
|
|
530
|
-
});
|
|
531
|
-
}
|
|
532
|
-
};
|
|
533
437
|
export const de_CreateStorageConfigurationCommand = async (output, context) => {
|
|
534
438
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
535
|
-
return
|
|
439
|
+
return de_CommandError(output, context);
|
|
536
440
|
}
|
|
537
441
|
const contents = map({
|
|
538
442
|
$metadata: deserializeMetadata(output),
|
|
@@ -544,46 +448,9 @@ export const de_CreateStorageConfigurationCommand = async (output, context) => {
|
|
|
544
448
|
Object.assign(contents, doc);
|
|
545
449
|
return contents;
|
|
546
450
|
};
|
|
547
|
-
const de_CreateStorageConfigurationCommandError = async (output, context) => {
|
|
548
|
-
const parsedOutput = {
|
|
549
|
-
...output,
|
|
550
|
-
body: await parseErrorBody(output.body, context),
|
|
551
|
-
};
|
|
552
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
553
|
-
switch (errorCode) {
|
|
554
|
-
case "AccessDeniedException":
|
|
555
|
-
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
556
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
557
|
-
case "ConflictException":
|
|
558
|
-
case "com.amazonaws.ivsrealtime#ConflictException":
|
|
559
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
560
|
-
case "InternalServerException":
|
|
561
|
-
case "com.amazonaws.ivsrealtime#InternalServerException":
|
|
562
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
563
|
-
case "PendingVerification":
|
|
564
|
-
case "com.amazonaws.ivsrealtime#PendingVerification":
|
|
565
|
-
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
566
|
-
case "ResourceNotFoundException":
|
|
567
|
-
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
568
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
569
|
-
case "ServiceQuotaExceededException":
|
|
570
|
-
case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
|
|
571
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
572
|
-
case "ValidationException":
|
|
573
|
-
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
574
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
575
|
-
default:
|
|
576
|
-
const parsedBody = parsedOutput.body;
|
|
577
|
-
return throwDefaultError({
|
|
578
|
-
output,
|
|
579
|
-
parsedBody,
|
|
580
|
-
errorCode,
|
|
581
|
-
});
|
|
582
|
-
}
|
|
583
|
-
};
|
|
584
451
|
export const de_DeleteEncoderConfigurationCommand = async (output, context) => {
|
|
585
452
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
586
|
-
return
|
|
453
|
+
return de_CommandError(output, context);
|
|
587
454
|
}
|
|
588
455
|
const contents = map({
|
|
589
456
|
$metadata: deserializeMetadata(output),
|
|
@@ -591,43 +458,9 @@ export const de_DeleteEncoderConfigurationCommand = async (output, context) => {
|
|
|
591
458
|
await collectBody(output.body, context);
|
|
592
459
|
return contents;
|
|
593
460
|
};
|
|
594
|
-
const de_DeleteEncoderConfigurationCommandError = async (output, context) => {
|
|
595
|
-
const parsedOutput = {
|
|
596
|
-
...output,
|
|
597
|
-
body: await parseErrorBody(output.body, context),
|
|
598
|
-
};
|
|
599
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
600
|
-
switch (errorCode) {
|
|
601
|
-
case "AccessDeniedException":
|
|
602
|
-
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
603
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
604
|
-
case "ConflictException":
|
|
605
|
-
case "com.amazonaws.ivsrealtime#ConflictException":
|
|
606
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
607
|
-
case "InternalServerException":
|
|
608
|
-
case "com.amazonaws.ivsrealtime#InternalServerException":
|
|
609
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
610
|
-
case "ResourceNotFoundException":
|
|
611
|
-
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
612
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
613
|
-
case "ServiceQuotaExceededException":
|
|
614
|
-
case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
|
|
615
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
616
|
-
case "ValidationException":
|
|
617
|
-
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
618
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
619
|
-
default:
|
|
620
|
-
const parsedBody = parsedOutput.body;
|
|
621
|
-
return throwDefaultError({
|
|
622
|
-
output,
|
|
623
|
-
parsedBody,
|
|
624
|
-
errorCode,
|
|
625
|
-
});
|
|
626
|
-
}
|
|
627
|
-
};
|
|
628
461
|
export const de_DeleteStageCommand = async (output, context) => {
|
|
629
462
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
630
|
-
return
|
|
463
|
+
return de_CommandError(output, context);
|
|
631
464
|
}
|
|
632
465
|
const contents = map({
|
|
633
466
|
$metadata: deserializeMetadata(output),
|
|
@@ -635,218 +468,57 @@ export const de_DeleteStageCommand = async (output, context) => {
|
|
|
635
468
|
await collectBody(output.body, context);
|
|
636
469
|
return contents;
|
|
637
470
|
};
|
|
638
|
-
const de_DeleteStageCommandError = async (output, context) => {
|
|
639
|
-
const parsedOutput = {
|
|
640
|
-
...output,
|
|
641
|
-
body: await parseErrorBody(output.body, context),
|
|
642
|
-
};
|
|
643
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
644
|
-
switch (errorCode) {
|
|
645
|
-
case "AccessDeniedException":
|
|
646
|
-
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
647
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
648
|
-
case "ConflictException":
|
|
649
|
-
case "com.amazonaws.ivsrealtime#ConflictException":
|
|
650
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
651
|
-
case "PendingVerification":
|
|
652
|
-
case "com.amazonaws.ivsrealtime#PendingVerification":
|
|
653
|
-
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
654
|
-
case "ResourceNotFoundException":
|
|
655
|
-
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
656
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
657
|
-
case "ValidationException":
|
|
658
|
-
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
659
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
660
|
-
default:
|
|
661
|
-
const parsedBody = parsedOutput.body;
|
|
662
|
-
return throwDefaultError({
|
|
663
|
-
output,
|
|
664
|
-
parsedBody,
|
|
665
|
-
errorCode,
|
|
666
|
-
});
|
|
667
|
-
}
|
|
668
|
-
};
|
|
669
471
|
export const de_DeleteStorageConfigurationCommand = async (output, context) => {
|
|
670
472
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
671
|
-
return
|
|
672
|
-
}
|
|
673
|
-
const contents = map({
|
|
674
|
-
$metadata: deserializeMetadata(output),
|
|
675
|
-
});
|
|
676
|
-
await collectBody(output.body, context);
|
|
677
|
-
return contents;
|
|
678
|
-
};
|
|
679
|
-
const de_DeleteStorageConfigurationCommandError = async (output, context) => {
|
|
680
|
-
const parsedOutput = {
|
|
681
|
-
...output,
|
|
682
|
-
body: await parseErrorBody(output.body, context),
|
|
683
|
-
};
|
|
684
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
685
|
-
switch (errorCode) {
|
|
686
|
-
case "AccessDeniedException":
|
|
687
|
-
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
688
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
689
|
-
case "ConflictException":
|
|
690
|
-
case "com.amazonaws.ivsrealtime#ConflictException":
|
|
691
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
692
|
-
case "InternalServerException":
|
|
693
|
-
case "com.amazonaws.ivsrealtime#InternalServerException":
|
|
694
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
695
|
-
case "ResourceNotFoundException":
|
|
696
|
-
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
697
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
698
|
-
case "ServiceQuotaExceededException":
|
|
699
|
-
case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
|
|
700
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
701
|
-
case "ValidationException":
|
|
702
|
-
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
703
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
704
|
-
default:
|
|
705
|
-
const parsedBody = parsedOutput.body;
|
|
706
|
-
return throwDefaultError({
|
|
707
|
-
output,
|
|
708
|
-
parsedBody,
|
|
709
|
-
errorCode,
|
|
710
|
-
});
|
|
711
|
-
}
|
|
712
|
-
};
|
|
713
|
-
export const de_DisconnectParticipantCommand = async (output, context) => {
|
|
714
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
715
|
-
return de_DisconnectParticipantCommandError(output, context);
|
|
473
|
+
return de_CommandError(output, context);
|
|
716
474
|
}
|
|
717
475
|
const contents = map({
|
|
718
476
|
$metadata: deserializeMetadata(output),
|
|
719
|
-
});
|
|
720
|
-
await collectBody(output.body, context);
|
|
721
|
-
return contents;
|
|
722
|
-
};
|
|
723
|
-
const
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
body: await parseErrorBody(output.body, context),
|
|
727
|
-
};
|
|
728
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
729
|
-
switch (errorCode) {
|
|
730
|
-
case "AccessDeniedException":
|
|
731
|
-
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
732
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
733
|
-
case "PendingVerification":
|
|
734
|
-
case "com.amazonaws.ivsrealtime#PendingVerification":
|
|
735
|
-
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
736
|
-
case "ResourceNotFoundException":
|
|
737
|
-
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
738
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
739
|
-
case "ValidationException":
|
|
740
|
-
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
741
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
742
|
-
default:
|
|
743
|
-
const parsedBody = parsedOutput.body;
|
|
744
|
-
return throwDefaultError({
|
|
745
|
-
output,
|
|
746
|
-
parsedBody,
|
|
747
|
-
errorCode,
|
|
748
|
-
});
|
|
749
|
-
}
|
|
750
|
-
};
|
|
751
|
-
export const de_GetCompositionCommand = async (output, context) => {
|
|
752
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
753
|
-
return de_GetCompositionCommandError(output, context);
|
|
754
|
-
}
|
|
755
|
-
const contents = map({
|
|
756
|
-
$metadata: deserializeMetadata(output),
|
|
757
|
-
});
|
|
758
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
759
|
-
const doc = take(data, {
|
|
760
|
-
composition: (_) => de_Composition(_, context),
|
|
761
|
-
});
|
|
762
|
-
Object.assign(contents, doc);
|
|
763
|
-
return contents;
|
|
764
|
-
};
|
|
765
|
-
const de_GetCompositionCommandError = async (output, context) => {
|
|
766
|
-
const parsedOutput = {
|
|
767
|
-
...output,
|
|
768
|
-
body: await parseErrorBody(output.body, context),
|
|
769
|
-
};
|
|
770
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
771
|
-
switch (errorCode) {
|
|
772
|
-
case "AccessDeniedException":
|
|
773
|
-
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
774
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
775
|
-
case "ConflictException":
|
|
776
|
-
case "com.amazonaws.ivsrealtime#ConflictException":
|
|
777
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
778
|
-
case "InternalServerException":
|
|
779
|
-
case "com.amazonaws.ivsrealtime#InternalServerException":
|
|
780
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
781
|
-
case "ResourceNotFoundException":
|
|
782
|
-
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
783
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
784
|
-
case "ServiceQuotaExceededException":
|
|
785
|
-
case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
|
|
786
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
787
|
-
case "ValidationException":
|
|
788
|
-
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
789
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
790
|
-
default:
|
|
791
|
-
const parsedBody = parsedOutput.body;
|
|
792
|
-
return throwDefaultError({
|
|
793
|
-
output,
|
|
794
|
-
parsedBody,
|
|
795
|
-
errorCode,
|
|
796
|
-
});
|
|
477
|
+
});
|
|
478
|
+
await collectBody(output.body, context);
|
|
479
|
+
return contents;
|
|
480
|
+
};
|
|
481
|
+
export const de_DisconnectParticipantCommand = async (output, context) => {
|
|
482
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
483
|
+
return de_CommandError(output, context);
|
|
797
484
|
}
|
|
485
|
+
const contents = map({
|
|
486
|
+
$metadata: deserializeMetadata(output),
|
|
487
|
+
});
|
|
488
|
+
await collectBody(output.body, context);
|
|
489
|
+
return contents;
|
|
798
490
|
};
|
|
799
|
-
export const
|
|
491
|
+
export const de_GetCompositionCommand = async (output, context) => {
|
|
800
492
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
801
|
-
return
|
|
493
|
+
return de_CommandError(output, context);
|
|
802
494
|
}
|
|
803
495
|
const contents = map({
|
|
804
496
|
$metadata: deserializeMetadata(output),
|
|
805
497
|
});
|
|
806
498
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
807
499
|
const doc = take(data, {
|
|
808
|
-
|
|
500
|
+
composition: (_) => de_Composition(_, context),
|
|
809
501
|
});
|
|
810
502
|
Object.assign(contents, doc);
|
|
811
503
|
return contents;
|
|
812
504
|
};
|
|
813
|
-
const
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
body: await parseErrorBody(output.body, context),
|
|
817
|
-
};
|
|
818
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
819
|
-
switch (errorCode) {
|
|
820
|
-
case "AccessDeniedException":
|
|
821
|
-
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
822
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
823
|
-
case "ConflictException":
|
|
824
|
-
case "com.amazonaws.ivsrealtime#ConflictException":
|
|
825
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
826
|
-
case "InternalServerException":
|
|
827
|
-
case "com.amazonaws.ivsrealtime#InternalServerException":
|
|
828
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
829
|
-
case "ResourceNotFoundException":
|
|
830
|
-
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
831
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
832
|
-
case "ServiceQuotaExceededException":
|
|
833
|
-
case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
|
|
834
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
835
|
-
case "ValidationException":
|
|
836
|
-
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
837
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
838
|
-
default:
|
|
839
|
-
const parsedBody = parsedOutput.body;
|
|
840
|
-
return throwDefaultError({
|
|
841
|
-
output,
|
|
842
|
-
parsedBody,
|
|
843
|
-
errorCode,
|
|
844
|
-
});
|
|
505
|
+
export const de_GetEncoderConfigurationCommand = async (output, context) => {
|
|
506
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
507
|
+
return de_CommandError(output, context);
|
|
845
508
|
}
|
|
509
|
+
const contents = map({
|
|
510
|
+
$metadata: deserializeMetadata(output),
|
|
511
|
+
});
|
|
512
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
513
|
+
const doc = take(data, {
|
|
514
|
+
encoderConfiguration: (_) => de_EncoderConfiguration(_, context),
|
|
515
|
+
});
|
|
516
|
+
Object.assign(contents, doc);
|
|
517
|
+
return contents;
|
|
846
518
|
};
|
|
847
519
|
export const de_GetParticipantCommand = async (output, context) => {
|
|
848
520
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
849
|
-
return
|
|
521
|
+
return de_CommandError(output, context);
|
|
850
522
|
}
|
|
851
523
|
const contents = map({
|
|
852
524
|
$metadata: deserializeMetadata(output),
|
|
@@ -858,34 +530,9 @@ export const de_GetParticipantCommand = async (output, context) => {
|
|
|
858
530
|
Object.assign(contents, doc);
|
|
859
531
|
return contents;
|
|
860
532
|
};
|
|
861
|
-
const de_GetParticipantCommandError = async (output, context) => {
|
|
862
|
-
const parsedOutput = {
|
|
863
|
-
...output,
|
|
864
|
-
body: await parseErrorBody(output.body, context),
|
|
865
|
-
};
|
|
866
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
867
|
-
switch (errorCode) {
|
|
868
|
-
case "AccessDeniedException":
|
|
869
|
-
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
870
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
871
|
-
case "ResourceNotFoundException":
|
|
872
|
-
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
873
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
874
|
-
case "ValidationException":
|
|
875
|
-
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
876
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
877
|
-
default:
|
|
878
|
-
const parsedBody = parsedOutput.body;
|
|
879
|
-
return throwDefaultError({
|
|
880
|
-
output,
|
|
881
|
-
parsedBody,
|
|
882
|
-
errorCode,
|
|
883
|
-
});
|
|
884
|
-
}
|
|
885
|
-
};
|
|
886
533
|
export const de_GetStageCommand = async (output, context) => {
|
|
887
534
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
888
|
-
return
|
|
535
|
+
return de_CommandError(output, context);
|
|
889
536
|
}
|
|
890
537
|
const contents = map({
|
|
891
538
|
$metadata: deserializeMetadata(output),
|
|
@@ -897,34 +544,9 @@ export const de_GetStageCommand = async (output, context) => {
|
|
|
897
544
|
Object.assign(contents, doc);
|
|
898
545
|
return contents;
|
|
899
546
|
};
|
|
900
|
-
const de_GetStageCommandError = async (output, context) => {
|
|
901
|
-
const parsedOutput = {
|
|
902
|
-
...output,
|
|
903
|
-
body: await parseErrorBody(output.body, context),
|
|
904
|
-
};
|
|
905
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
906
|
-
switch (errorCode) {
|
|
907
|
-
case "AccessDeniedException":
|
|
908
|
-
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
909
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
910
|
-
case "ResourceNotFoundException":
|
|
911
|
-
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
912
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
913
|
-
case "ValidationException":
|
|
914
|
-
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
915
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
916
|
-
default:
|
|
917
|
-
const parsedBody = parsedOutput.body;
|
|
918
|
-
return throwDefaultError({
|
|
919
|
-
output,
|
|
920
|
-
parsedBody,
|
|
921
|
-
errorCode,
|
|
922
|
-
});
|
|
923
|
-
}
|
|
924
|
-
};
|
|
925
547
|
export const de_GetStageSessionCommand = async (output, context) => {
|
|
926
548
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
927
|
-
return
|
|
549
|
+
return de_CommandError(output, context);
|
|
928
550
|
}
|
|
929
551
|
const contents = map({
|
|
930
552
|
$metadata: deserializeMetadata(output),
|
|
@@ -936,34 +558,9 @@ export const de_GetStageSessionCommand = async (output, context) => {
|
|
|
936
558
|
Object.assign(contents, doc);
|
|
937
559
|
return contents;
|
|
938
560
|
};
|
|
939
|
-
const de_GetStageSessionCommandError = async (output, context) => {
|
|
940
|
-
const parsedOutput = {
|
|
941
|
-
...output,
|
|
942
|
-
body: await parseErrorBody(output.body, context),
|
|
943
|
-
};
|
|
944
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
945
|
-
switch (errorCode) {
|
|
946
|
-
case "AccessDeniedException":
|
|
947
|
-
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
948
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
949
|
-
case "ResourceNotFoundException":
|
|
950
|
-
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
951
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
952
|
-
case "ValidationException":
|
|
953
|
-
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
954
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
955
|
-
default:
|
|
956
|
-
const parsedBody = parsedOutput.body;
|
|
957
|
-
return throwDefaultError({
|
|
958
|
-
output,
|
|
959
|
-
parsedBody,
|
|
960
|
-
errorCode,
|
|
961
|
-
});
|
|
962
|
-
}
|
|
963
|
-
};
|
|
964
561
|
export const de_GetStorageConfigurationCommand = async (output, context) => {
|
|
965
562
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
966
|
-
return
|
|
563
|
+
return de_CommandError(output, context);
|
|
967
564
|
}
|
|
968
565
|
const contents = map({
|
|
969
566
|
$metadata: deserializeMetadata(output),
|
|
@@ -975,43 +572,9 @@ export const de_GetStorageConfigurationCommand = async (output, context) => {
|
|
|
975
572
|
Object.assign(contents, doc);
|
|
976
573
|
return contents;
|
|
977
574
|
};
|
|
978
|
-
const de_GetStorageConfigurationCommandError = async (output, context) => {
|
|
979
|
-
const parsedOutput = {
|
|
980
|
-
...output,
|
|
981
|
-
body: await parseErrorBody(output.body, context),
|
|
982
|
-
};
|
|
983
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
984
|
-
switch (errorCode) {
|
|
985
|
-
case "AccessDeniedException":
|
|
986
|
-
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
987
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
988
|
-
case "ConflictException":
|
|
989
|
-
case "com.amazonaws.ivsrealtime#ConflictException":
|
|
990
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
991
|
-
case "InternalServerException":
|
|
992
|
-
case "com.amazonaws.ivsrealtime#InternalServerException":
|
|
993
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
994
|
-
case "ResourceNotFoundException":
|
|
995
|
-
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
996
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
997
|
-
case "ServiceQuotaExceededException":
|
|
998
|
-
case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
|
|
999
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1000
|
-
case "ValidationException":
|
|
1001
|
-
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
1002
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1003
|
-
default:
|
|
1004
|
-
const parsedBody = parsedOutput.body;
|
|
1005
|
-
return throwDefaultError({
|
|
1006
|
-
output,
|
|
1007
|
-
parsedBody,
|
|
1008
|
-
errorCode,
|
|
1009
|
-
});
|
|
1010
|
-
}
|
|
1011
|
-
};
|
|
1012
575
|
export const de_ListCompositionsCommand = async (output, context) => {
|
|
1013
576
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1014
|
-
return
|
|
577
|
+
return de_CommandError(output, context);
|
|
1015
578
|
}
|
|
1016
579
|
const contents = map({
|
|
1017
580
|
$metadata: deserializeMetadata(output),
|
|
@@ -1024,40 +587,9 @@ export const de_ListCompositionsCommand = async (output, context) => {
|
|
|
1024
587
|
Object.assign(contents, doc);
|
|
1025
588
|
return contents;
|
|
1026
589
|
};
|
|
1027
|
-
const de_ListCompositionsCommandError = async (output, context) => {
|
|
1028
|
-
const parsedOutput = {
|
|
1029
|
-
...output,
|
|
1030
|
-
body: await parseErrorBody(output.body, context),
|
|
1031
|
-
};
|
|
1032
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1033
|
-
switch (errorCode) {
|
|
1034
|
-
case "AccessDeniedException":
|
|
1035
|
-
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
1036
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1037
|
-
case "ConflictException":
|
|
1038
|
-
case "com.amazonaws.ivsrealtime#ConflictException":
|
|
1039
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1040
|
-
case "InternalServerException":
|
|
1041
|
-
case "com.amazonaws.ivsrealtime#InternalServerException":
|
|
1042
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1043
|
-
case "ServiceQuotaExceededException":
|
|
1044
|
-
case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
|
|
1045
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1046
|
-
case "ValidationException":
|
|
1047
|
-
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
1048
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1049
|
-
default:
|
|
1050
|
-
const parsedBody = parsedOutput.body;
|
|
1051
|
-
return throwDefaultError({
|
|
1052
|
-
output,
|
|
1053
|
-
parsedBody,
|
|
1054
|
-
errorCode,
|
|
1055
|
-
});
|
|
1056
|
-
}
|
|
1057
|
-
};
|
|
1058
590
|
export const de_ListEncoderConfigurationsCommand = async (output, context) => {
|
|
1059
591
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1060
|
-
return
|
|
592
|
+
return de_CommandError(output, context);
|
|
1061
593
|
}
|
|
1062
594
|
const contents = map({
|
|
1063
595
|
$metadata: deserializeMetadata(output),
|
|
@@ -1069,78 +601,25 @@ export const de_ListEncoderConfigurationsCommand = async (output, context) => {
|
|
|
1069
601
|
});
|
|
1070
602
|
Object.assign(contents, doc);
|
|
1071
603
|
return contents;
|
|
1072
|
-
};
|
|
1073
|
-
const
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
body: await parseErrorBody(output.body, context),
|
|
1077
|
-
};
|
|
1078
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1079
|
-
switch (errorCode) {
|
|
1080
|
-
case "AccessDeniedException":
|
|
1081
|
-
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
1082
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1083
|
-
case "ConflictException":
|
|
1084
|
-
case "com.amazonaws.ivsrealtime#ConflictException":
|
|
1085
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1086
|
-
case "InternalServerException":
|
|
1087
|
-
case "com.amazonaws.ivsrealtime#InternalServerException":
|
|
1088
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1089
|
-
case "ServiceQuotaExceededException":
|
|
1090
|
-
case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
|
|
1091
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1092
|
-
case "ValidationException":
|
|
1093
|
-
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
1094
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1095
|
-
default:
|
|
1096
|
-
const parsedBody = parsedOutput.body;
|
|
1097
|
-
return throwDefaultError({
|
|
1098
|
-
output,
|
|
1099
|
-
parsedBody,
|
|
1100
|
-
errorCode,
|
|
1101
|
-
});
|
|
1102
|
-
}
|
|
1103
|
-
};
|
|
1104
|
-
export const de_ListParticipantEventsCommand = async (output, context) => {
|
|
1105
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1106
|
-
return de_ListParticipantEventsCommandError(output, context);
|
|
1107
|
-
}
|
|
1108
|
-
const contents = map({
|
|
1109
|
-
$metadata: deserializeMetadata(output),
|
|
1110
|
-
});
|
|
1111
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1112
|
-
const doc = take(data, {
|
|
1113
|
-
events: (_) => de_EventList(_, context),
|
|
1114
|
-
nextToken: __expectString,
|
|
1115
|
-
});
|
|
1116
|
-
Object.assign(contents, doc);
|
|
1117
|
-
return contents;
|
|
1118
|
-
};
|
|
1119
|
-
const de_ListParticipantEventsCommandError = async (output, context) => {
|
|
1120
|
-
const parsedOutput = {
|
|
1121
|
-
...output,
|
|
1122
|
-
body: await parseErrorBody(output.body, context),
|
|
1123
|
-
};
|
|
1124
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1125
|
-
switch (errorCode) {
|
|
1126
|
-
case "AccessDeniedException":
|
|
1127
|
-
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
1128
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1129
|
-
case "ValidationException":
|
|
1130
|
-
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
1131
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1132
|
-
default:
|
|
1133
|
-
const parsedBody = parsedOutput.body;
|
|
1134
|
-
return throwDefaultError({
|
|
1135
|
-
output,
|
|
1136
|
-
parsedBody,
|
|
1137
|
-
errorCode,
|
|
1138
|
-
});
|
|
604
|
+
};
|
|
605
|
+
export const de_ListParticipantEventsCommand = async (output, context) => {
|
|
606
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
607
|
+
return de_CommandError(output, context);
|
|
1139
608
|
}
|
|
609
|
+
const contents = map({
|
|
610
|
+
$metadata: deserializeMetadata(output),
|
|
611
|
+
});
|
|
612
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
613
|
+
const doc = take(data, {
|
|
614
|
+
events: (_) => de_EventList(_, context),
|
|
615
|
+
nextToken: __expectString,
|
|
616
|
+
});
|
|
617
|
+
Object.assign(contents, doc);
|
|
618
|
+
return contents;
|
|
1140
619
|
};
|
|
1141
620
|
export const de_ListParticipantsCommand = async (output, context) => {
|
|
1142
621
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1143
|
-
return
|
|
622
|
+
return de_CommandError(output, context);
|
|
1144
623
|
}
|
|
1145
624
|
const contents = map({
|
|
1146
625
|
$metadata: deserializeMetadata(output),
|
|
@@ -1153,31 +632,9 @@ export const de_ListParticipantsCommand = async (output, context) => {
|
|
|
1153
632
|
Object.assign(contents, doc);
|
|
1154
633
|
return contents;
|
|
1155
634
|
};
|
|
1156
|
-
const de_ListParticipantsCommandError = async (output, context) => {
|
|
1157
|
-
const parsedOutput = {
|
|
1158
|
-
...output,
|
|
1159
|
-
body: await parseErrorBody(output.body, context),
|
|
1160
|
-
};
|
|
1161
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1162
|
-
switch (errorCode) {
|
|
1163
|
-
case "AccessDeniedException":
|
|
1164
|
-
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
1165
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1166
|
-
case "ValidationException":
|
|
1167
|
-
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
1168
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1169
|
-
default:
|
|
1170
|
-
const parsedBody = parsedOutput.body;
|
|
1171
|
-
return throwDefaultError({
|
|
1172
|
-
output,
|
|
1173
|
-
parsedBody,
|
|
1174
|
-
errorCode,
|
|
1175
|
-
});
|
|
1176
|
-
}
|
|
1177
|
-
};
|
|
1178
635
|
export const de_ListStagesCommand = async (output, context) => {
|
|
1179
636
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1180
|
-
return
|
|
637
|
+
return de_CommandError(output, context);
|
|
1181
638
|
}
|
|
1182
639
|
const contents = map({
|
|
1183
640
|
$metadata: deserializeMetadata(output),
|
|
@@ -1190,34 +647,9 @@ export const de_ListStagesCommand = async (output, context) => {
|
|
|
1190
647
|
Object.assign(contents, doc);
|
|
1191
648
|
return contents;
|
|
1192
649
|
};
|
|
1193
|
-
const de_ListStagesCommandError = async (output, context) => {
|
|
1194
|
-
const parsedOutput = {
|
|
1195
|
-
...output,
|
|
1196
|
-
body: await parseErrorBody(output.body, context),
|
|
1197
|
-
};
|
|
1198
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1199
|
-
switch (errorCode) {
|
|
1200
|
-
case "AccessDeniedException":
|
|
1201
|
-
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
1202
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1203
|
-
case "ConflictException":
|
|
1204
|
-
case "com.amazonaws.ivsrealtime#ConflictException":
|
|
1205
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1206
|
-
case "ValidationException":
|
|
1207
|
-
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
1208
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1209
|
-
default:
|
|
1210
|
-
const parsedBody = parsedOutput.body;
|
|
1211
|
-
return throwDefaultError({
|
|
1212
|
-
output,
|
|
1213
|
-
parsedBody,
|
|
1214
|
-
errorCode,
|
|
1215
|
-
});
|
|
1216
|
-
}
|
|
1217
|
-
};
|
|
1218
650
|
export const de_ListStageSessionsCommand = async (output, context) => {
|
|
1219
651
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1220
|
-
return
|
|
652
|
+
return de_CommandError(output, context);
|
|
1221
653
|
}
|
|
1222
654
|
const contents = map({
|
|
1223
655
|
$metadata: deserializeMetadata(output),
|
|
@@ -1230,31 +662,9 @@ export const de_ListStageSessionsCommand = async (output, context) => {
|
|
|
1230
662
|
Object.assign(contents, doc);
|
|
1231
663
|
return contents;
|
|
1232
664
|
};
|
|
1233
|
-
const de_ListStageSessionsCommandError = async (output, context) => {
|
|
1234
|
-
const parsedOutput = {
|
|
1235
|
-
...output,
|
|
1236
|
-
body: await parseErrorBody(output.body, context),
|
|
1237
|
-
};
|
|
1238
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1239
|
-
switch (errorCode) {
|
|
1240
|
-
case "AccessDeniedException":
|
|
1241
|
-
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
1242
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1243
|
-
case "ValidationException":
|
|
1244
|
-
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
1245
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1246
|
-
default:
|
|
1247
|
-
const parsedBody = parsedOutput.body;
|
|
1248
|
-
return throwDefaultError({
|
|
1249
|
-
output,
|
|
1250
|
-
parsedBody,
|
|
1251
|
-
errorCode,
|
|
1252
|
-
});
|
|
1253
|
-
}
|
|
1254
|
-
};
|
|
1255
665
|
export const de_ListStorageConfigurationsCommand = async (output, context) => {
|
|
1256
666
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1257
|
-
return
|
|
667
|
+
return de_CommandError(output, context);
|
|
1258
668
|
}
|
|
1259
669
|
const contents = map({
|
|
1260
670
|
$metadata: deserializeMetadata(output),
|
|
@@ -1267,40 +677,9 @@ export const de_ListStorageConfigurationsCommand = async (output, context) => {
|
|
|
1267
677
|
Object.assign(contents, doc);
|
|
1268
678
|
return contents;
|
|
1269
679
|
};
|
|
1270
|
-
const de_ListStorageConfigurationsCommandError = async (output, context) => {
|
|
1271
|
-
const parsedOutput = {
|
|
1272
|
-
...output,
|
|
1273
|
-
body: await parseErrorBody(output.body, context),
|
|
1274
|
-
};
|
|
1275
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1276
|
-
switch (errorCode) {
|
|
1277
|
-
case "AccessDeniedException":
|
|
1278
|
-
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
1279
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1280
|
-
case "ConflictException":
|
|
1281
|
-
case "com.amazonaws.ivsrealtime#ConflictException":
|
|
1282
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1283
|
-
case "InternalServerException":
|
|
1284
|
-
case "com.amazonaws.ivsrealtime#InternalServerException":
|
|
1285
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1286
|
-
case "ServiceQuotaExceededException":
|
|
1287
|
-
case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
|
|
1288
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1289
|
-
case "ValidationException":
|
|
1290
|
-
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
1291
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1292
|
-
default:
|
|
1293
|
-
const parsedBody = parsedOutput.body;
|
|
1294
|
-
return throwDefaultError({
|
|
1295
|
-
output,
|
|
1296
|
-
parsedBody,
|
|
1297
|
-
errorCode,
|
|
1298
|
-
});
|
|
1299
|
-
}
|
|
1300
|
-
};
|
|
1301
680
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1302
681
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1303
|
-
return
|
|
682
|
+
return de_CommandError(output, context);
|
|
1304
683
|
}
|
|
1305
684
|
const contents = map({
|
|
1306
685
|
$metadata: deserializeMetadata(output),
|
|
@@ -1312,34 +691,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1312
691
|
Object.assign(contents, doc);
|
|
1313
692
|
return contents;
|
|
1314
693
|
};
|
|
1315
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1316
|
-
const parsedOutput = {
|
|
1317
|
-
...output,
|
|
1318
|
-
body: await parseErrorBody(output.body, context),
|
|
1319
|
-
};
|
|
1320
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1321
|
-
switch (errorCode) {
|
|
1322
|
-
case "InternalServerException":
|
|
1323
|
-
case "com.amazonaws.ivsrealtime#InternalServerException":
|
|
1324
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1325
|
-
case "ResourceNotFoundException":
|
|
1326
|
-
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
1327
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1328
|
-
case "ValidationException":
|
|
1329
|
-
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
1330
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1331
|
-
default:
|
|
1332
|
-
const parsedBody = parsedOutput.body;
|
|
1333
|
-
return throwDefaultError({
|
|
1334
|
-
output,
|
|
1335
|
-
parsedBody,
|
|
1336
|
-
errorCode,
|
|
1337
|
-
});
|
|
1338
|
-
}
|
|
1339
|
-
};
|
|
1340
694
|
export const de_StartCompositionCommand = async (output, context) => {
|
|
1341
695
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1342
|
-
return
|
|
696
|
+
return de_CommandError(output, context);
|
|
1343
697
|
}
|
|
1344
698
|
const contents = map({
|
|
1345
699
|
$metadata: deserializeMetadata(output),
|
|
@@ -1351,46 +705,9 @@ export const de_StartCompositionCommand = async (output, context) => {
|
|
|
1351
705
|
Object.assign(contents, doc);
|
|
1352
706
|
return contents;
|
|
1353
707
|
};
|
|
1354
|
-
const de_StartCompositionCommandError = async (output, context) => {
|
|
1355
|
-
const parsedOutput = {
|
|
1356
|
-
...output,
|
|
1357
|
-
body: await parseErrorBody(output.body, context),
|
|
1358
|
-
};
|
|
1359
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1360
|
-
switch (errorCode) {
|
|
1361
|
-
case "AccessDeniedException":
|
|
1362
|
-
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
1363
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1364
|
-
case "ConflictException":
|
|
1365
|
-
case "com.amazonaws.ivsrealtime#ConflictException":
|
|
1366
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1367
|
-
case "InternalServerException":
|
|
1368
|
-
case "com.amazonaws.ivsrealtime#InternalServerException":
|
|
1369
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1370
|
-
case "PendingVerification":
|
|
1371
|
-
case "com.amazonaws.ivsrealtime#PendingVerification":
|
|
1372
|
-
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
1373
|
-
case "ResourceNotFoundException":
|
|
1374
|
-
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
1375
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1376
|
-
case "ServiceQuotaExceededException":
|
|
1377
|
-
case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
|
|
1378
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1379
|
-
case "ValidationException":
|
|
1380
|
-
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
1381
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1382
|
-
default:
|
|
1383
|
-
const parsedBody = parsedOutput.body;
|
|
1384
|
-
return throwDefaultError({
|
|
1385
|
-
output,
|
|
1386
|
-
parsedBody,
|
|
1387
|
-
errorCode,
|
|
1388
|
-
});
|
|
1389
|
-
}
|
|
1390
|
-
};
|
|
1391
708
|
export const de_StopCompositionCommand = async (output, context) => {
|
|
1392
709
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1393
|
-
return
|
|
710
|
+
return de_CommandError(output, context);
|
|
1394
711
|
}
|
|
1395
712
|
const contents = map({
|
|
1396
713
|
$metadata: deserializeMetadata(output),
|
|
@@ -1398,43 +715,9 @@ export const de_StopCompositionCommand = async (output, context) => {
|
|
|
1398
715
|
await collectBody(output.body, context);
|
|
1399
716
|
return contents;
|
|
1400
717
|
};
|
|
1401
|
-
const de_StopCompositionCommandError = async (output, context) => {
|
|
1402
|
-
const parsedOutput = {
|
|
1403
|
-
...output,
|
|
1404
|
-
body: await parseErrorBody(output.body, context),
|
|
1405
|
-
};
|
|
1406
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1407
|
-
switch (errorCode) {
|
|
1408
|
-
case "AccessDeniedException":
|
|
1409
|
-
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
1410
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1411
|
-
case "ConflictException":
|
|
1412
|
-
case "com.amazonaws.ivsrealtime#ConflictException":
|
|
1413
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1414
|
-
case "InternalServerException":
|
|
1415
|
-
case "com.amazonaws.ivsrealtime#InternalServerException":
|
|
1416
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1417
|
-
case "ResourceNotFoundException":
|
|
1418
|
-
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
1419
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1420
|
-
case "ServiceQuotaExceededException":
|
|
1421
|
-
case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
|
|
1422
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1423
|
-
case "ValidationException":
|
|
1424
|
-
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
1425
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1426
|
-
default:
|
|
1427
|
-
const parsedBody = parsedOutput.body;
|
|
1428
|
-
return throwDefaultError({
|
|
1429
|
-
output,
|
|
1430
|
-
parsedBody,
|
|
1431
|
-
errorCode,
|
|
1432
|
-
});
|
|
1433
|
-
}
|
|
1434
|
-
};
|
|
1435
718
|
export const de_TagResourceCommand = async (output, context) => {
|
|
1436
719
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1437
|
-
return
|
|
720
|
+
return de_CommandError(output, context);
|
|
1438
721
|
}
|
|
1439
722
|
const contents = map({
|
|
1440
723
|
$metadata: deserializeMetadata(output),
|
|
@@ -1442,34 +725,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
1442
725
|
await collectBody(output.body, context);
|
|
1443
726
|
return contents;
|
|
1444
727
|
};
|
|
1445
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1446
|
-
const parsedOutput = {
|
|
1447
|
-
...output,
|
|
1448
|
-
body: await parseErrorBody(output.body, context),
|
|
1449
|
-
};
|
|
1450
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1451
|
-
switch (errorCode) {
|
|
1452
|
-
case "InternalServerException":
|
|
1453
|
-
case "com.amazonaws.ivsrealtime#InternalServerException":
|
|
1454
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1455
|
-
case "ResourceNotFoundException":
|
|
1456
|
-
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
1457
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1458
|
-
case "ValidationException":
|
|
1459
|
-
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
1460
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1461
|
-
default:
|
|
1462
|
-
const parsedBody = parsedOutput.body;
|
|
1463
|
-
return throwDefaultError({
|
|
1464
|
-
output,
|
|
1465
|
-
parsedBody,
|
|
1466
|
-
errorCode,
|
|
1467
|
-
});
|
|
1468
|
-
}
|
|
1469
|
-
};
|
|
1470
728
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
1471
729
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1472
|
-
return
|
|
730
|
+
return de_CommandError(output, context);
|
|
1473
731
|
}
|
|
1474
732
|
const contents = map({
|
|
1475
733
|
$metadata: deserializeMetadata(output),
|
|
@@ -1477,34 +735,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
1477
735
|
await collectBody(output.body, context);
|
|
1478
736
|
return contents;
|
|
1479
737
|
};
|
|
1480
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1481
|
-
const parsedOutput = {
|
|
1482
|
-
...output,
|
|
1483
|
-
body: await parseErrorBody(output.body, context),
|
|
1484
|
-
};
|
|
1485
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1486
|
-
switch (errorCode) {
|
|
1487
|
-
case "InternalServerException":
|
|
1488
|
-
case "com.amazonaws.ivsrealtime#InternalServerException":
|
|
1489
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1490
|
-
case "ResourceNotFoundException":
|
|
1491
|
-
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
1492
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1493
|
-
case "ValidationException":
|
|
1494
|
-
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
1495
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1496
|
-
default:
|
|
1497
|
-
const parsedBody = parsedOutput.body;
|
|
1498
|
-
return throwDefaultError({
|
|
1499
|
-
output,
|
|
1500
|
-
parsedBody,
|
|
1501
|
-
errorCode,
|
|
1502
|
-
});
|
|
1503
|
-
}
|
|
1504
|
-
};
|
|
1505
738
|
export const de_UpdateStageCommand = async (output, context) => {
|
|
1506
739
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1507
|
-
return
|
|
740
|
+
return de_CommandError(output, context);
|
|
1508
741
|
}
|
|
1509
742
|
const contents = map({
|
|
1510
743
|
$metadata: deserializeMetadata(output),
|
|
@@ -1516,7 +749,7 @@ export const de_UpdateStageCommand = async (output, context) => {
|
|
|
1516
749
|
Object.assign(contents, doc);
|
|
1517
750
|
return contents;
|
|
1518
751
|
};
|
|
1519
|
-
const
|
|
752
|
+
const de_CommandError = async (output, context) => {
|
|
1520
753
|
const parsedOutput = {
|
|
1521
754
|
...output,
|
|
1522
755
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1526,6 +759,12 @@ const de_UpdateStageCommandError = async (output, context) => {
|
|
|
1526
759
|
case "AccessDeniedException":
|
|
1527
760
|
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
1528
761
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
762
|
+
case "ConflictException":
|
|
763
|
+
case "com.amazonaws.ivsrealtime#ConflictException":
|
|
764
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
765
|
+
case "InternalServerException":
|
|
766
|
+
case "com.amazonaws.ivsrealtime#InternalServerException":
|
|
767
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1529
768
|
case "PendingVerification":
|
|
1530
769
|
case "com.amazonaws.ivsrealtime#PendingVerification":
|
|
1531
770
|
throw await de_PendingVerificationRes(parsedOutput, context);
|