@aws-sdk/client-mediapackage 3.52.0 → 3.54.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +30 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/MediaPackageServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +88 -2
- package/dist-cjs/protocols/Aws_restJson1.js +226 -816
- package/dist-es/index.js +1 -0
- package/dist-es/models/MediaPackageServiceException.js +12 -0
- package/dist-es/models/models_0.js +81 -1
- package/dist-es/protocols/Aws_restJson1.js +451 -878
- package/dist-types/MediaPackageClient.d.ts +2 -2
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/MediaPackageServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +45 -19
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/MediaPackageClient.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/MediaPackageServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +33 -19
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +27 -27
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.deserializeAws_restJson1UpdateOriginEndpointCommand = exports.deserializeAws_restJson1UpdateChannelCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1RotateIngestEndpointCredentialsCommand = exports.deserializeAws_restJson1RotateChannelCredentialsCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListOriginEndpointsCommand = exports.deserializeAws_restJson1ListHarvestJobsCommand = exports.deserializeAws_restJson1ListChannelsCommand = exports.deserializeAws_restJson1DescribeOriginEndpointCommand = exports.deserializeAws_restJson1DescribeHarvestJobCommand = exports.deserializeAws_restJson1DescribeChannelCommand = exports.deserializeAws_restJson1DeleteOriginEndpointCommand = exports.deserializeAws_restJson1DeleteChannelCommand = exports.deserializeAws_restJson1CreateOriginEndpointCommand = exports.deserializeAws_restJson1CreateHarvestJobCommand = exports.deserializeAws_restJson1CreateChannelCommand = exports.deserializeAws_restJson1ConfigureLogsCommand = exports.serializeAws_restJson1UpdateOriginEndpointCommand = exports.serializeAws_restJson1UpdateChannelCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1RotateIngestEndpointCredentialsCommand = exports.serializeAws_restJson1RotateChannelCredentialsCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListOriginEndpointsCommand = exports.serializeAws_restJson1ListHarvestJobsCommand = exports.serializeAws_restJson1ListChannelsCommand = exports.serializeAws_restJson1DescribeOriginEndpointCommand = exports.serializeAws_restJson1DescribeHarvestJobCommand = exports.serializeAws_restJson1DescribeChannelCommand = exports.serializeAws_restJson1DeleteOriginEndpointCommand = exports.serializeAws_restJson1DeleteChannelCommand = exports.serializeAws_restJson1CreateOriginEndpointCommand = exports.serializeAws_restJson1CreateHarvestJobCommand = exports.serializeAws_restJson1CreateChannelCommand = exports.serializeAws_restJson1ConfigureLogsCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const MediaPackageServiceException_1 = require("../models/MediaPackageServiceException");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
6
8
|
const serializeAws_restJson1ConfigureLogsCommand = async (input, context) => {
|
|
7
9
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
8
10
|
const headers = {
|
|
@@ -620,67 +622,31 @@ const deserializeAws_restJson1ConfigureLogsCommandError = async (output, context
|
|
|
620
622
|
switch (errorCode) {
|
|
621
623
|
case "ForbiddenException":
|
|
622
624
|
case "com.amazonaws.mediapackage#ForbiddenException":
|
|
623
|
-
|
|
624
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
625
|
-
name: errorCode,
|
|
626
|
-
$metadata: deserializeMetadata(output),
|
|
627
|
-
};
|
|
628
|
-
break;
|
|
625
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
629
626
|
case "InternalServerErrorException":
|
|
630
627
|
case "com.amazonaws.mediapackage#InternalServerErrorException":
|
|
631
|
-
|
|
632
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
633
|
-
name: errorCode,
|
|
634
|
-
$metadata: deserializeMetadata(output),
|
|
635
|
-
};
|
|
636
|
-
break;
|
|
628
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
637
629
|
case "NotFoundException":
|
|
638
630
|
case "com.amazonaws.mediapackage#NotFoundException":
|
|
639
|
-
|
|
640
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
641
|
-
name: errorCode,
|
|
642
|
-
$metadata: deserializeMetadata(output),
|
|
643
|
-
};
|
|
644
|
-
break;
|
|
631
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
645
632
|
case "ServiceUnavailableException":
|
|
646
633
|
case "com.amazonaws.mediapackage#ServiceUnavailableException":
|
|
647
|
-
|
|
648
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
649
|
-
name: errorCode,
|
|
650
|
-
$metadata: deserializeMetadata(output),
|
|
651
|
-
};
|
|
652
|
-
break;
|
|
634
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
653
635
|
case "TooManyRequestsException":
|
|
654
636
|
case "com.amazonaws.mediapackage#TooManyRequestsException":
|
|
655
|
-
|
|
656
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
657
|
-
name: errorCode,
|
|
658
|
-
$metadata: deserializeMetadata(output),
|
|
659
|
-
};
|
|
660
|
-
break;
|
|
637
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
661
638
|
case "UnprocessableEntityException":
|
|
662
639
|
case "com.amazonaws.mediapackage#UnprocessableEntityException":
|
|
663
|
-
|
|
664
|
-
...(await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context)),
|
|
665
|
-
name: errorCode,
|
|
666
|
-
$metadata: deserializeMetadata(output),
|
|
667
|
-
};
|
|
668
|
-
break;
|
|
640
|
+
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
669
641
|
default:
|
|
670
642
|
const parsedBody = parsedOutput.body;
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
...parsedBody,
|
|
674
|
-
name: `${errorCode}`,
|
|
675
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
643
|
+
response = new MediaPackageServiceException_1.MediaPackageServiceException({
|
|
644
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
676
645
|
$fault: "client",
|
|
677
646
|
$metadata: deserializeMetadata(output),
|
|
678
|
-
};
|
|
647
|
+
});
|
|
648
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
679
649
|
}
|
|
680
|
-
const message = response.message || response.Message || errorCode;
|
|
681
|
-
response.message = message;
|
|
682
|
-
delete response.Message;
|
|
683
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
684
650
|
};
|
|
685
651
|
const deserializeAws_restJson1CreateChannelCommand = async (output, context) => {
|
|
686
652
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -732,67 +698,31 @@ const deserializeAws_restJson1CreateChannelCommandError = async (output, context
|
|
|
732
698
|
switch (errorCode) {
|
|
733
699
|
case "ForbiddenException":
|
|
734
700
|
case "com.amazonaws.mediapackage#ForbiddenException":
|
|
735
|
-
|
|
736
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
737
|
-
name: errorCode,
|
|
738
|
-
$metadata: deserializeMetadata(output),
|
|
739
|
-
};
|
|
740
|
-
break;
|
|
701
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
741
702
|
case "InternalServerErrorException":
|
|
742
703
|
case "com.amazonaws.mediapackage#InternalServerErrorException":
|
|
743
|
-
|
|
744
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
745
|
-
name: errorCode,
|
|
746
|
-
$metadata: deserializeMetadata(output),
|
|
747
|
-
};
|
|
748
|
-
break;
|
|
704
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
749
705
|
case "NotFoundException":
|
|
750
706
|
case "com.amazonaws.mediapackage#NotFoundException":
|
|
751
|
-
|
|
752
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
753
|
-
name: errorCode,
|
|
754
|
-
$metadata: deserializeMetadata(output),
|
|
755
|
-
};
|
|
756
|
-
break;
|
|
707
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
757
708
|
case "ServiceUnavailableException":
|
|
758
709
|
case "com.amazonaws.mediapackage#ServiceUnavailableException":
|
|
759
|
-
|
|
760
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
761
|
-
name: errorCode,
|
|
762
|
-
$metadata: deserializeMetadata(output),
|
|
763
|
-
};
|
|
764
|
-
break;
|
|
710
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
765
711
|
case "TooManyRequestsException":
|
|
766
712
|
case "com.amazonaws.mediapackage#TooManyRequestsException":
|
|
767
|
-
|
|
768
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
769
|
-
name: errorCode,
|
|
770
|
-
$metadata: deserializeMetadata(output),
|
|
771
|
-
};
|
|
772
|
-
break;
|
|
713
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
773
714
|
case "UnprocessableEntityException":
|
|
774
715
|
case "com.amazonaws.mediapackage#UnprocessableEntityException":
|
|
775
|
-
|
|
776
|
-
...(await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context)),
|
|
777
|
-
name: errorCode,
|
|
778
|
-
$metadata: deserializeMetadata(output),
|
|
779
|
-
};
|
|
780
|
-
break;
|
|
716
|
+
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
781
717
|
default:
|
|
782
718
|
const parsedBody = parsedOutput.body;
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
...parsedBody,
|
|
786
|
-
name: `${errorCode}`,
|
|
787
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
719
|
+
response = new MediaPackageServiceException_1.MediaPackageServiceException({
|
|
720
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
788
721
|
$fault: "client",
|
|
789
722
|
$metadata: deserializeMetadata(output),
|
|
790
|
-
};
|
|
723
|
+
});
|
|
724
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
791
725
|
}
|
|
792
|
-
const message = response.message || response.Message || errorCode;
|
|
793
|
-
response.message = message;
|
|
794
|
-
delete response.Message;
|
|
795
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
796
726
|
};
|
|
797
727
|
const deserializeAws_restJson1CreateHarvestJobCommand = async (output, context) => {
|
|
798
728
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -852,67 +782,31 @@ const deserializeAws_restJson1CreateHarvestJobCommandError = async (output, cont
|
|
|
852
782
|
switch (errorCode) {
|
|
853
783
|
case "ForbiddenException":
|
|
854
784
|
case "com.amazonaws.mediapackage#ForbiddenException":
|
|
855
|
-
|
|
856
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
857
|
-
name: errorCode,
|
|
858
|
-
$metadata: deserializeMetadata(output),
|
|
859
|
-
};
|
|
860
|
-
break;
|
|
785
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
861
786
|
case "InternalServerErrorException":
|
|
862
787
|
case "com.amazonaws.mediapackage#InternalServerErrorException":
|
|
863
|
-
|
|
864
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
865
|
-
name: errorCode,
|
|
866
|
-
$metadata: deserializeMetadata(output),
|
|
867
|
-
};
|
|
868
|
-
break;
|
|
788
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
869
789
|
case "NotFoundException":
|
|
870
790
|
case "com.amazonaws.mediapackage#NotFoundException":
|
|
871
|
-
|
|
872
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
873
|
-
name: errorCode,
|
|
874
|
-
$metadata: deserializeMetadata(output),
|
|
875
|
-
};
|
|
876
|
-
break;
|
|
791
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
877
792
|
case "ServiceUnavailableException":
|
|
878
793
|
case "com.amazonaws.mediapackage#ServiceUnavailableException":
|
|
879
|
-
|
|
880
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
881
|
-
name: errorCode,
|
|
882
|
-
$metadata: deserializeMetadata(output),
|
|
883
|
-
};
|
|
884
|
-
break;
|
|
794
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
885
795
|
case "TooManyRequestsException":
|
|
886
796
|
case "com.amazonaws.mediapackage#TooManyRequestsException":
|
|
887
|
-
|
|
888
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
889
|
-
name: errorCode,
|
|
890
|
-
$metadata: deserializeMetadata(output),
|
|
891
|
-
};
|
|
892
|
-
break;
|
|
797
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
893
798
|
case "UnprocessableEntityException":
|
|
894
799
|
case "com.amazonaws.mediapackage#UnprocessableEntityException":
|
|
895
|
-
|
|
896
|
-
...(await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context)),
|
|
897
|
-
name: errorCode,
|
|
898
|
-
$metadata: deserializeMetadata(output),
|
|
899
|
-
};
|
|
900
|
-
break;
|
|
800
|
+
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
901
801
|
default:
|
|
902
802
|
const parsedBody = parsedOutput.body;
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
...parsedBody,
|
|
906
|
-
name: `${errorCode}`,
|
|
907
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
803
|
+
response = new MediaPackageServiceException_1.MediaPackageServiceException({
|
|
804
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
908
805
|
$fault: "client",
|
|
909
806
|
$metadata: deserializeMetadata(output),
|
|
910
|
-
};
|
|
807
|
+
});
|
|
808
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
911
809
|
}
|
|
912
|
-
const message = response.message || response.Message || errorCode;
|
|
913
|
-
response.message = message;
|
|
914
|
-
delete response.Message;
|
|
915
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
916
810
|
};
|
|
917
811
|
const deserializeAws_restJson1CreateOriginEndpointCommand = async (output, context) => {
|
|
918
812
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1000,67 +894,31 @@ const deserializeAws_restJson1CreateOriginEndpointCommandError = async (output,
|
|
|
1000
894
|
switch (errorCode) {
|
|
1001
895
|
case "ForbiddenException":
|
|
1002
896
|
case "com.amazonaws.mediapackage#ForbiddenException":
|
|
1003
|
-
|
|
1004
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
1005
|
-
name: errorCode,
|
|
1006
|
-
$metadata: deserializeMetadata(output),
|
|
1007
|
-
};
|
|
1008
|
-
break;
|
|
897
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1009
898
|
case "InternalServerErrorException":
|
|
1010
899
|
case "com.amazonaws.mediapackage#InternalServerErrorException":
|
|
1011
|
-
|
|
1012
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
1013
|
-
name: errorCode,
|
|
1014
|
-
$metadata: deserializeMetadata(output),
|
|
1015
|
-
};
|
|
1016
|
-
break;
|
|
900
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
1017
901
|
case "NotFoundException":
|
|
1018
902
|
case "com.amazonaws.mediapackage#NotFoundException":
|
|
1019
|
-
|
|
1020
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1021
|
-
name: errorCode,
|
|
1022
|
-
$metadata: deserializeMetadata(output),
|
|
1023
|
-
};
|
|
1024
|
-
break;
|
|
903
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
1025
904
|
case "ServiceUnavailableException":
|
|
1026
905
|
case "com.amazonaws.mediapackage#ServiceUnavailableException":
|
|
1027
|
-
|
|
1028
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1029
|
-
name: errorCode,
|
|
1030
|
-
$metadata: deserializeMetadata(output),
|
|
1031
|
-
};
|
|
1032
|
-
break;
|
|
906
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1033
907
|
case "TooManyRequestsException":
|
|
1034
908
|
case "com.amazonaws.mediapackage#TooManyRequestsException":
|
|
1035
|
-
|
|
1036
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1037
|
-
name: errorCode,
|
|
1038
|
-
$metadata: deserializeMetadata(output),
|
|
1039
|
-
};
|
|
1040
|
-
break;
|
|
909
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1041
910
|
case "UnprocessableEntityException":
|
|
1042
911
|
case "com.amazonaws.mediapackage#UnprocessableEntityException":
|
|
1043
|
-
|
|
1044
|
-
...(await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context)),
|
|
1045
|
-
name: errorCode,
|
|
1046
|
-
$metadata: deserializeMetadata(output),
|
|
1047
|
-
};
|
|
1048
|
-
break;
|
|
912
|
+
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
1049
913
|
default:
|
|
1050
914
|
const parsedBody = parsedOutput.body;
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
...parsedBody,
|
|
1054
|
-
name: `${errorCode}`,
|
|
1055
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
915
|
+
response = new MediaPackageServiceException_1.MediaPackageServiceException({
|
|
916
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1056
917
|
$fault: "client",
|
|
1057
918
|
$metadata: deserializeMetadata(output),
|
|
1058
|
-
};
|
|
919
|
+
});
|
|
920
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1059
921
|
}
|
|
1060
|
-
const message = response.message || response.Message || errorCode;
|
|
1061
|
-
response.message = message;
|
|
1062
|
-
delete response.Message;
|
|
1063
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1064
922
|
};
|
|
1065
923
|
const deserializeAws_restJson1DeleteChannelCommand = async (output, context) => {
|
|
1066
924
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
@@ -1084,67 +942,31 @@ const deserializeAws_restJson1DeleteChannelCommandError = async (output, context
|
|
|
1084
942
|
switch (errorCode) {
|
|
1085
943
|
case "ForbiddenException":
|
|
1086
944
|
case "com.amazonaws.mediapackage#ForbiddenException":
|
|
1087
|
-
|
|
1088
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
1089
|
-
name: errorCode,
|
|
1090
|
-
$metadata: deserializeMetadata(output),
|
|
1091
|
-
};
|
|
1092
|
-
break;
|
|
945
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1093
946
|
case "InternalServerErrorException":
|
|
1094
947
|
case "com.amazonaws.mediapackage#InternalServerErrorException":
|
|
1095
|
-
|
|
1096
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
1097
|
-
name: errorCode,
|
|
1098
|
-
$metadata: deserializeMetadata(output),
|
|
1099
|
-
};
|
|
1100
|
-
break;
|
|
948
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
1101
949
|
case "NotFoundException":
|
|
1102
950
|
case "com.amazonaws.mediapackage#NotFoundException":
|
|
1103
|
-
|
|
1104
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1105
|
-
name: errorCode,
|
|
1106
|
-
$metadata: deserializeMetadata(output),
|
|
1107
|
-
};
|
|
1108
|
-
break;
|
|
951
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
1109
952
|
case "ServiceUnavailableException":
|
|
1110
953
|
case "com.amazonaws.mediapackage#ServiceUnavailableException":
|
|
1111
|
-
|
|
1112
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1113
|
-
name: errorCode,
|
|
1114
|
-
$metadata: deserializeMetadata(output),
|
|
1115
|
-
};
|
|
1116
|
-
break;
|
|
954
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1117
955
|
case "TooManyRequestsException":
|
|
1118
956
|
case "com.amazonaws.mediapackage#TooManyRequestsException":
|
|
1119
|
-
|
|
1120
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1121
|
-
name: errorCode,
|
|
1122
|
-
$metadata: deserializeMetadata(output),
|
|
1123
|
-
};
|
|
1124
|
-
break;
|
|
957
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1125
958
|
case "UnprocessableEntityException":
|
|
1126
959
|
case "com.amazonaws.mediapackage#UnprocessableEntityException":
|
|
1127
|
-
|
|
1128
|
-
...(await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context)),
|
|
1129
|
-
name: errorCode,
|
|
1130
|
-
$metadata: deserializeMetadata(output),
|
|
1131
|
-
};
|
|
1132
|
-
break;
|
|
960
|
+
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
1133
961
|
default:
|
|
1134
962
|
const parsedBody = parsedOutput.body;
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
...parsedBody,
|
|
1138
|
-
name: `${errorCode}`,
|
|
1139
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
963
|
+
response = new MediaPackageServiceException_1.MediaPackageServiceException({
|
|
964
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1140
965
|
$fault: "client",
|
|
1141
966
|
$metadata: deserializeMetadata(output),
|
|
1142
|
-
};
|
|
967
|
+
});
|
|
968
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1143
969
|
}
|
|
1144
|
-
const message = response.message || response.Message || errorCode;
|
|
1145
|
-
response.message = message;
|
|
1146
|
-
delete response.Message;
|
|
1147
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1148
970
|
};
|
|
1149
971
|
const deserializeAws_restJson1DeleteOriginEndpointCommand = async (output, context) => {
|
|
1150
972
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
@@ -1168,67 +990,31 @@ const deserializeAws_restJson1DeleteOriginEndpointCommandError = async (output,
|
|
|
1168
990
|
switch (errorCode) {
|
|
1169
991
|
case "ForbiddenException":
|
|
1170
992
|
case "com.amazonaws.mediapackage#ForbiddenException":
|
|
1171
|
-
|
|
1172
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
1173
|
-
name: errorCode,
|
|
1174
|
-
$metadata: deserializeMetadata(output),
|
|
1175
|
-
};
|
|
1176
|
-
break;
|
|
993
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1177
994
|
case "InternalServerErrorException":
|
|
1178
995
|
case "com.amazonaws.mediapackage#InternalServerErrorException":
|
|
1179
|
-
|
|
1180
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
1181
|
-
name: errorCode,
|
|
1182
|
-
$metadata: deserializeMetadata(output),
|
|
1183
|
-
};
|
|
1184
|
-
break;
|
|
996
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
1185
997
|
case "NotFoundException":
|
|
1186
998
|
case "com.amazonaws.mediapackage#NotFoundException":
|
|
1187
|
-
|
|
1188
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1189
|
-
name: errorCode,
|
|
1190
|
-
$metadata: deserializeMetadata(output),
|
|
1191
|
-
};
|
|
1192
|
-
break;
|
|
999
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
1193
1000
|
case "ServiceUnavailableException":
|
|
1194
1001
|
case "com.amazonaws.mediapackage#ServiceUnavailableException":
|
|
1195
|
-
|
|
1196
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1197
|
-
name: errorCode,
|
|
1198
|
-
$metadata: deserializeMetadata(output),
|
|
1199
|
-
};
|
|
1200
|
-
break;
|
|
1002
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1201
1003
|
case "TooManyRequestsException":
|
|
1202
1004
|
case "com.amazonaws.mediapackage#TooManyRequestsException":
|
|
1203
|
-
|
|
1204
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1205
|
-
name: errorCode,
|
|
1206
|
-
$metadata: deserializeMetadata(output),
|
|
1207
|
-
};
|
|
1208
|
-
break;
|
|
1005
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1209
1006
|
case "UnprocessableEntityException":
|
|
1210
1007
|
case "com.amazonaws.mediapackage#UnprocessableEntityException":
|
|
1211
|
-
|
|
1212
|
-
...(await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context)),
|
|
1213
|
-
name: errorCode,
|
|
1214
|
-
$metadata: deserializeMetadata(output),
|
|
1215
|
-
};
|
|
1216
|
-
break;
|
|
1008
|
+
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
1217
1009
|
default:
|
|
1218
1010
|
const parsedBody = parsedOutput.body;
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
...parsedBody,
|
|
1222
|
-
name: `${errorCode}`,
|
|
1223
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1011
|
+
response = new MediaPackageServiceException_1.MediaPackageServiceException({
|
|
1012
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1224
1013
|
$fault: "client",
|
|
1225
1014
|
$metadata: deserializeMetadata(output),
|
|
1226
|
-
};
|
|
1015
|
+
});
|
|
1016
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1227
1017
|
}
|
|
1228
|
-
const message = response.message || response.Message || errorCode;
|
|
1229
|
-
response.message = message;
|
|
1230
|
-
delete response.Message;
|
|
1231
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1232
1018
|
};
|
|
1233
1019
|
const deserializeAws_restJson1DescribeChannelCommand = async (output, context) => {
|
|
1234
1020
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1280,67 +1066,31 @@ const deserializeAws_restJson1DescribeChannelCommandError = async (output, conte
|
|
|
1280
1066
|
switch (errorCode) {
|
|
1281
1067
|
case "ForbiddenException":
|
|
1282
1068
|
case "com.amazonaws.mediapackage#ForbiddenException":
|
|
1283
|
-
|
|
1284
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
1285
|
-
name: errorCode,
|
|
1286
|
-
$metadata: deserializeMetadata(output),
|
|
1287
|
-
};
|
|
1288
|
-
break;
|
|
1069
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1289
1070
|
case "InternalServerErrorException":
|
|
1290
1071
|
case "com.amazonaws.mediapackage#InternalServerErrorException":
|
|
1291
|
-
|
|
1292
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
1293
|
-
name: errorCode,
|
|
1294
|
-
$metadata: deserializeMetadata(output),
|
|
1295
|
-
};
|
|
1296
|
-
break;
|
|
1072
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
1297
1073
|
case "NotFoundException":
|
|
1298
1074
|
case "com.amazonaws.mediapackage#NotFoundException":
|
|
1299
|
-
|
|
1300
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1301
|
-
name: errorCode,
|
|
1302
|
-
$metadata: deserializeMetadata(output),
|
|
1303
|
-
};
|
|
1304
|
-
break;
|
|
1075
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
1305
1076
|
case "ServiceUnavailableException":
|
|
1306
1077
|
case "com.amazonaws.mediapackage#ServiceUnavailableException":
|
|
1307
|
-
|
|
1308
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1309
|
-
name: errorCode,
|
|
1310
|
-
$metadata: deserializeMetadata(output),
|
|
1311
|
-
};
|
|
1312
|
-
break;
|
|
1078
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1313
1079
|
case "TooManyRequestsException":
|
|
1314
1080
|
case "com.amazonaws.mediapackage#TooManyRequestsException":
|
|
1315
|
-
|
|
1316
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1317
|
-
name: errorCode,
|
|
1318
|
-
$metadata: deserializeMetadata(output),
|
|
1319
|
-
};
|
|
1320
|
-
break;
|
|
1081
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1321
1082
|
case "UnprocessableEntityException":
|
|
1322
1083
|
case "com.amazonaws.mediapackage#UnprocessableEntityException":
|
|
1323
|
-
|
|
1324
|
-
...(await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context)),
|
|
1325
|
-
name: errorCode,
|
|
1326
|
-
$metadata: deserializeMetadata(output),
|
|
1327
|
-
};
|
|
1328
|
-
break;
|
|
1084
|
+
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
1329
1085
|
default:
|
|
1330
1086
|
const parsedBody = parsedOutput.body;
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
...parsedBody,
|
|
1334
|
-
name: `${errorCode}`,
|
|
1335
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1087
|
+
response = new MediaPackageServiceException_1.MediaPackageServiceException({
|
|
1088
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1336
1089
|
$fault: "client",
|
|
1337
1090
|
$metadata: deserializeMetadata(output),
|
|
1338
|
-
};
|
|
1091
|
+
});
|
|
1092
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1339
1093
|
}
|
|
1340
|
-
const message = response.message || response.Message || errorCode;
|
|
1341
|
-
response.message = message;
|
|
1342
|
-
delete response.Message;
|
|
1343
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1344
1094
|
};
|
|
1345
1095
|
const deserializeAws_restJson1DescribeHarvestJobCommand = async (output, context) => {
|
|
1346
1096
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1400,67 +1150,31 @@ const deserializeAws_restJson1DescribeHarvestJobCommandError = async (output, co
|
|
|
1400
1150
|
switch (errorCode) {
|
|
1401
1151
|
case "ForbiddenException":
|
|
1402
1152
|
case "com.amazonaws.mediapackage#ForbiddenException":
|
|
1403
|
-
|
|
1404
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
1405
|
-
name: errorCode,
|
|
1406
|
-
$metadata: deserializeMetadata(output),
|
|
1407
|
-
};
|
|
1408
|
-
break;
|
|
1153
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1409
1154
|
case "InternalServerErrorException":
|
|
1410
1155
|
case "com.amazonaws.mediapackage#InternalServerErrorException":
|
|
1411
|
-
|
|
1412
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
1413
|
-
name: errorCode,
|
|
1414
|
-
$metadata: deserializeMetadata(output),
|
|
1415
|
-
};
|
|
1416
|
-
break;
|
|
1156
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
1417
1157
|
case "NotFoundException":
|
|
1418
1158
|
case "com.amazonaws.mediapackage#NotFoundException":
|
|
1419
|
-
|
|
1420
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1421
|
-
name: errorCode,
|
|
1422
|
-
$metadata: deserializeMetadata(output),
|
|
1423
|
-
};
|
|
1424
|
-
break;
|
|
1159
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
1425
1160
|
case "ServiceUnavailableException":
|
|
1426
1161
|
case "com.amazonaws.mediapackage#ServiceUnavailableException":
|
|
1427
|
-
|
|
1428
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1429
|
-
name: errorCode,
|
|
1430
|
-
$metadata: deserializeMetadata(output),
|
|
1431
|
-
};
|
|
1432
|
-
break;
|
|
1162
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1433
1163
|
case "TooManyRequestsException":
|
|
1434
1164
|
case "com.amazonaws.mediapackage#TooManyRequestsException":
|
|
1435
|
-
|
|
1436
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1437
|
-
name: errorCode,
|
|
1438
|
-
$metadata: deserializeMetadata(output),
|
|
1439
|
-
};
|
|
1440
|
-
break;
|
|
1165
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1441
1166
|
case "UnprocessableEntityException":
|
|
1442
1167
|
case "com.amazonaws.mediapackage#UnprocessableEntityException":
|
|
1443
|
-
|
|
1444
|
-
...(await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context)),
|
|
1445
|
-
name: errorCode,
|
|
1446
|
-
$metadata: deserializeMetadata(output),
|
|
1447
|
-
};
|
|
1448
|
-
break;
|
|
1168
|
+
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
1449
1169
|
default:
|
|
1450
1170
|
const parsedBody = parsedOutput.body;
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
...parsedBody,
|
|
1454
|
-
name: `${errorCode}`,
|
|
1455
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1171
|
+
response = new MediaPackageServiceException_1.MediaPackageServiceException({
|
|
1172
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1456
1173
|
$fault: "client",
|
|
1457
1174
|
$metadata: deserializeMetadata(output),
|
|
1458
|
-
};
|
|
1175
|
+
});
|
|
1176
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1459
1177
|
}
|
|
1460
|
-
const message = response.message || response.Message || errorCode;
|
|
1461
|
-
response.message = message;
|
|
1462
|
-
delete response.Message;
|
|
1463
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1464
1178
|
};
|
|
1465
1179
|
const deserializeAws_restJson1DescribeOriginEndpointCommand = async (output, context) => {
|
|
1466
1180
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1548,67 +1262,31 @@ const deserializeAws_restJson1DescribeOriginEndpointCommandError = async (output
|
|
|
1548
1262
|
switch (errorCode) {
|
|
1549
1263
|
case "ForbiddenException":
|
|
1550
1264
|
case "com.amazonaws.mediapackage#ForbiddenException":
|
|
1551
|
-
|
|
1552
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
1553
|
-
name: errorCode,
|
|
1554
|
-
$metadata: deserializeMetadata(output),
|
|
1555
|
-
};
|
|
1556
|
-
break;
|
|
1265
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1557
1266
|
case "InternalServerErrorException":
|
|
1558
1267
|
case "com.amazonaws.mediapackage#InternalServerErrorException":
|
|
1559
|
-
|
|
1560
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
1561
|
-
name: errorCode,
|
|
1562
|
-
$metadata: deserializeMetadata(output),
|
|
1563
|
-
};
|
|
1564
|
-
break;
|
|
1268
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
1565
1269
|
case "NotFoundException":
|
|
1566
1270
|
case "com.amazonaws.mediapackage#NotFoundException":
|
|
1567
|
-
|
|
1568
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1569
|
-
name: errorCode,
|
|
1570
|
-
$metadata: deserializeMetadata(output),
|
|
1571
|
-
};
|
|
1572
|
-
break;
|
|
1271
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
1573
1272
|
case "ServiceUnavailableException":
|
|
1574
1273
|
case "com.amazonaws.mediapackage#ServiceUnavailableException":
|
|
1575
|
-
|
|
1576
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1577
|
-
name: errorCode,
|
|
1578
|
-
$metadata: deserializeMetadata(output),
|
|
1579
|
-
};
|
|
1580
|
-
break;
|
|
1274
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1581
1275
|
case "TooManyRequestsException":
|
|
1582
1276
|
case "com.amazonaws.mediapackage#TooManyRequestsException":
|
|
1583
|
-
|
|
1584
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1585
|
-
name: errorCode,
|
|
1586
|
-
$metadata: deserializeMetadata(output),
|
|
1587
|
-
};
|
|
1588
|
-
break;
|
|
1277
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1589
1278
|
case "UnprocessableEntityException":
|
|
1590
1279
|
case "com.amazonaws.mediapackage#UnprocessableEntityException":
|
|
1591
|
-
|
|
1592
|
-
...(await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context)),
|
|
1593
|
-
name: errorCode,
|
|
1594
|
-
$metadata: deserializeMetadata(output),
|
|
1595
|
-
};
|
|
1596
|
-
break;
|
|
1280
|
+
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
1597
1281
|
default:
|
|
1598
1282
|
const parsedBody = parsedOutput.body;
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
...parsedBody,
|
|
1602
|
-
name: `${errorCode}`,
|
|
1603
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1283
|
+
response = new MediaPackageServiceException_1.MediaPackageServiceException({
|
|
1284
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1604
1285
|
$fault: "client",
|
|
1605
1286
|
$metadata: deserializeMetadata(output),
|
|
1606
|
-
};
|
|
1287
|
+
});
|
|
1288
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1607
1289
|
}
|
|
1608
|
-
const message = response.message || response.Message || errorCode;
|
|
1609
|
-
response.message = message;
|
|
1610
|
-
delete response.Message;
|
|
1611
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1612
1290
|
};
|
|
1613
1291
|
const deserializeAws_restJson1ListChannelsCommand = async (output, context) => {
|
|
1614
1292
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1640,67 +1318,31 @@ const deserializeAws_restJson1ListChannelsCommandError = async (output, context)
|
|
|
1640
1318
|
switch (errorCode) {
|
|
1641
1319
|
case "ForbiddenException":
|
|
1642
1320
|
case "com.amazonaws.mediapackage#ForbiddenException":
|
|
1643
|
-
|
|
1644
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
1645
|
-
name: errorCode,
|
|
1646
|
-
$metadata: deserializeMetadata(output),
|
|
1647
|
-
};
|
|
1648
|
-
break;
|
|
1321
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1649
1322
|
case "InternalServerErrorException":
|
|
1650
1323
|
case "com.amazonaws.mediapackage#InternalServerErrorException":
|
|
1651
|
-
|
|
1652
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
1653
|
-
name: errorCode,
|
|
1654
|
-
$metadata: deserializeMetadata(output),
|
|
1655
|
-
};
|
|
1656
|
-
break;
|
|
1324
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
1657
1325
|
case "NotFoundException":
|
|
1658
1326
|
case "com.amazonaws.mediapackage#NotFoundException":
|
|
1659
|
-
|
|
1660
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1661
|
-
name: errorCode,
|
|
1662
|
-
$metadata: deserializeMetadata(output),
|
|
1663
|
-
};
|
|
1664
|
-
break;
|
|
1327
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
1665
1328
|
case "ServiceUnavailableException":
|
|
1666
1329
|
case "com.amazonaws.mediapackage#ServiceUnavailableException":
|
|
1667
|
-
|
|
1668
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1669
|
-
name: errorCode,
|
|
1670
|
-
$metadata: deserializeMetadata(output),
|
|
1671
|
-
};
|
|
1672
|
-
break;
|
|
1330
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1673
1331
|
case "TooManyRequestsException":
|
|
1674
1332
|
case "com.amazonaws.mediapackage#TooManyRequestsException":
|
|
1675
|
-
|
|
1676
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1677
|
-
name: errorCode,
|
|
1678
|
-
$metadata: deserializeMetadata(output),
|
|
1679
|
-
};
|
|
1680
|
-
break;
|
|
1333
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1681
1334
|
case "UnprocessableEntityException":
|
|
1682
1335
|
case "com.amazonaws.mediapackage#UnprocessableEntityException":
|
|
1683
|
-
|
|
1684
|
-
...(await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context)),
|
|
1685
|
-
name: errorCode,
|
|
1686
|
-
$metadata: deserializeMetadata(output),
|
|
1687
|
-
};
|
|
1688
|
-
break;
|
|
1336
|
+
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
1689
1337
|
default:
|
|
1690
1338
|
const parsedBody = parsedOutput.body;
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
...parsedBody,
|
|
1694
|
-
name: `${errorCode}`,
|
|
1695
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1339
|
+
response = new MediaPackageServiceException_1.MediaPackageServiceException({
|
|
1340
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1696
1341
|
$fault: "client",
|
|
1697
1342
|
$metadata: deserializeMetadata(output),
|
|
1698
|
-
};
|
|
1343
|
+
});
|
|
1344
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1699
1345
|
}
|
|
1700
|
-
const message = response.message || response.Message || errorCode;
|
|
1701
|
-
response.message = message;
|
|
1702
|
-
delete response.Message;
|
|
1703
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1704
1346
|
};
|
|
1705
1347
|
const deserializeAws_restJson1ListHarvestJobsCommand = async (output, context) => {
|
|
1706
1348
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1732,67 +1374,31 @@ const deserializeAws_restJson1ListHarvestJobsCommandError = async (output, conte
|
|
|
1732
1374
|
switch (errorCode) {
|
|
1733
1375
|
case "ForbiddenException":
|
|
1734
1376
|
case "com.amazonaws.mediapackage#ForbiddenException":
|
|
1735
|
-
|
|
1736
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
1737
|
-
name: errorCode,
|
|
1738
|
-
$metadata: deserializeMetadata(output),
|
|
1739
|
-
};
|
|
1740
|
-
break;
|
|
1377
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1741
1378
|
case "InternalServerErrorException":
|
|
1742
1379
|
case "com.amazonaws.mediapackage#InternalServerErrorException":
|
|
1743
|
-
|
|
1744
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
1745
|
-
name: errorCode,
|
|
1746
|
-
$metadata: deserializeMetadata(output),
|
|
1747
|
-
};
|
|
1748
|
-
break;
|
|
1380
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
1749
1381
|
case "NotFoundException":
|
|
1750
1382
|
case "com.amazonaws.mediapackage#NotFoundException":
|
|
1751
|
-
|
|
1752
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1753
|
-
name: errorCode,
|
|
1754
|
-
$metadata: deserializeMetadata(output),
|
|
1755
|
-
};
|
|
1756
|
-
break;
|
|
1383
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
1757
1384
|
case "ServiceUnavailableException":
|
|
1758
1385
|
case "com.amazonaws.mediapackage#ServiceUnavailableException":
|
|
1759
|
-
|
|
1760
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1761
|
-
name: errorCode,
|
|
1762
|
-
$metadata: deserializeMetadata(output),
|
|
1763
|
-
};
|
|
1764
|
-
break;
|
|
1386
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1765
1387
|
case "TooManyRequestsException":
|
|
1766
1388
|
case "com.amazonaws.mediapackage#TooManyRequestsException":
|
|
1767
|
-
|
|
1768
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1769
|
-
name: errorCode,
|
|
1770
|
-
$metadata: deserializeMetadata(output),
|
|
1771
|
-
};
|
|
1772
|
-
break;
|
|
1389
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1773
1390
|
case "UnprocessableEntityException":
|
|
1774
1391
|
case "com.amazonaws.mediapackage#UnprocessableEntityException":
|
|
1775
|
-
|
|
1776
|
-
...(await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context)),
|
|
1777
|
-
name: errorCode,
|
|
1778
|
-
$metadata: deserializeMetadata(output),
|
|
1779
|
-
};
|
|
1780
|
-
break;
|
|
1392
|
+
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
1781
1393
|
default:
|
|
1782
1394
|
const parsedBody = parsedOutput.body;
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
...parsedBody,
|
|
1786
|
-
name: `${errorCode}`,
|
|
1787
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1395
|
+
response = new MediaPackageServiceException_1.MediaPackageServiceException({
|
|
1396
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1788
1397
|
$fault: "client",
|
|
1789
1398
|
$metadata: deserializeMetadata(output),
|
|
1790
|
-
};
|
|
1399
|
+
});
|
|
1400
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1791
1401
|
}
|
|
1792
|
-
const message = response.message || response.Message || errorCode;
|
|
1793
|
-
response.message = message;
|
|
1794
|
-
delete response.Message;
|
|
1795
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1796
1402
|
};
|
|
1797
1403
|
const deserializeAws_restJson1ListOriginEndpointsCommand = async (output, context) => {
|
|
1798
1404
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1824,67 +1430,31 @@ const deserializeAws_restJson1ListOriginEndpointsCommandError = async (output, c
|
|
|
1824
1430
|
switch (errorCode) {
|
|
1825
1431
|
case "ForbiddenException":
|
|
1826
1432
|
case "com.amazonaws.mediapackage#ForbiddenException":
|
|
1827
|
-
|
|
1828
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
1829
|
-
name: errorCode,
|
|
1830
|
-
$metadata: deserializeMetadata(output),
|
|
1831
|
-
};
|
|
1832
|
-
break;
|
|
1433
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1833
1434
|
case "InternalServerErrorException":
|
|
1834
1435
|
case "com.amazonaws.mediapackage#InternalServerErrorException":
|
|
1835
|
-
|
|
1836
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
1837
|
-
name: errorCode,
|
|
1838
|
-
$metadata: deserializeMetadata(output),
|
|
1839
|
-
};
|
|
1840
|
-
break;
|
|
1436
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
1841
1437
|
case "NotFoundException":
|
|
1842
1438
|
case "com.amazonaws.mediapackage#NotFoundException":
|
|
1843
|
-
|
|
1844
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1845
|
-
name: errorCode,
|
|
1846
|
-
$metadata: deserializeMetadata(output),
|
|
1847
|
-
};
|
|
1848
|
-
break;
|
|
1439
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
1849
1440
|
case "ServiceUnavailableException":
|
|
1850
1441
|
case "com.amazonaws.mediapackage#ServiceUnavailableException":
|
|
1851
|
-
|
|
1852
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1853
|
-
name: errorCode,
|
|
1854
|
-
$metadata: deserializeMetadata(output),
|
|
1855
|
-
};
|
|
1856
|
-
break;
|
|
1442
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1857
1443
|
case "TooManyRequestsException":
|
|
1858
1444
|
case "com.amazonaws.mediapackage#TooManyRequestsException":
|
|
1859
|
-
|
|
1860
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1861
|
-
name: errorCode,
|
|
1862
|
-
$metadata: deserializeMetadata(output),
|
|
1863
|
-
};
|
|
1864
|
-
break;
|
|
1445
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1865
1446
|
case "UnprocessableEntityException":
|
|
1866
1447
|
case "com.amazonaws.mediapackage#UnprocessableEntityException":
|
|
1867
|
-
|
|
1868
|
-
...(await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context)),
|
|
1869
|
-
name: errorCode,
|
|
1870
|
-
$metadata: deserializeMetadata(output),
|
|
1871
|
-
};
|
|
1872
|
-
break;
|
|
1448
|
+
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
1873
1449
|
default:
|
|
1874
1450
|
const parsedBody = parsedOutput.body;
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
...parsedBody,
|
|
1878
|
-
name: `${errorCode}`,
|
|
1879
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1451
|
+
response = new MediaPackageServiceException_1.MediaPackageServiceException({
|
|
1452
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1880
1453
|
$fault: "client",
|
|
1881
1454
|
$metadata: deserializeMetadata(output),
|
|
1882
|
-
};
|
|
1455
|
+
});
|
|
1456
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1883
1457
|
}
|
|
1884
|
-
const message = response.message || response.Message || errorCode;
|
|
1885
|
-
response.message = message;
|
|
1886
|
-
delete response.Message;
|
|
1887
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1888
1458
|
};
|
|
1889
1459
|
const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
1890
1460
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1912,19 +1482,13 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1912
1482
|
switch (errorCode) {
|
|
1913
1483
|
default:
|
|
1914
1484
|
const parsedBody = parsedOutput.body;
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
...parsedBody,
|
|
1918
|
-
name: `${errorCode}`,
|
|
1919
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1485
|
+
response = new MediaPackageServiceException_1.MediaPackageServiceException({
|
|
1486
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1920
1487
|
$fault: "client",
|
|
1921
1488
|
$metadata: deserializeMetadata(output),
|
|
1922
|
-
};
|
|
1489
|
+
});
|
|
1490
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1923
1491
|
}
|
|
1924
|
-
const message = response.message || response.Message || errorCode;
|
|
1925
|
-
response.message = message;
|
|
1926
|
-
delete response.Message;
|
|
1927
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1928
1492
|
};
|
|
1929
1493
|
const deserializeAws_restJson1RotateChannelCredentialsCommand = async (output, context) => {
|
|
1930
1494
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1976,67 +1540,31 @@ const deserializeAws_restJson1RotateChannelCredentialsCommandError = async (outp
|
|
|
1976
1540
|
switch (errorCode) {
|
|
1977
1541
|
case "ForbiddenException":
|
|
1978
1542
|
case "com.amazonaws.mediapackage#ForbiddenException":
|
|
1979
|
-
|
|
1980
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
1981
|
-
name: errorCode,
|
|
1982
|
-
$metadata: deserializeMetadata(output),
|
|
1983
|
-
};
|
|
1984
|
-
break;
|
|
1543
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1985
1544
|
case "InternalServerErrorException":
|
|
1986
1545
|
case "com.amazonaws.mediapackage#InternalServerErrorException":
|
|
1987
|
-
|
|
1988
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
1989
|
-
name: errorCode,
|
|
1990
|
-
$metadata: deserializeMetadata(output),
|
|
1991
|
-
};
|
|
1992
|
-
break;
|
|
1546
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
1993
1547
|
case "NotFoundException":
|
|
1994
1548
|
case "com.amazonaws.mediapackage#NotFoundException":
|
|
1995
|
-
|
|
1996
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1997
|
-
name: errorCode,
|
|
1998
|
-
$metadata: deserializeMetadata(output),
|
|
1999
|
-
};
|
|
2000
|
-
break;
|
|
1549
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
2001
1550
|
case "ServiceUnavailableException":
|
|
2002
1551
|
case "com.amazonaws.mediapackage#ServiceUnavailableException":
|
|
2003
|
-
|
|
2004
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2005
|
-
name: errorCode,
|
|
2006
|
-
$metadata: deserializeMetadata(output),
|
|
2007
|
-
};
|
|
2008
|
-
break;
|
|
1552
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2009
1553
|
case "TooManyRequestsException":
|
|
2010
1554
|
case "com.amazonaws.mediapackage#TooManyRequestsException":
|
|
2011
|
-
|
|
2012
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
2013
|
-
name: errorCode,
|
|
2014
|
-
$metadata: deserializeMetadata(output),
|
|
2015
|
-
};
|
|
2016
|
-
break;
|
|
1555
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2017
1556
|
case "UnprocessableEntityException":
|
|
2018
1557
|
case "com.amazonaws.mediapackage#UnprocessableEntityException":
|
|
2019
|
-
|
|
2020
|
-
...(await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context)),
|
|
2021
|
-
name: errorCode,
|
|
2022
|
-
$metadata: deserializeMetadata(output),
|
|
2023
|
-
};
|
|
2024
|
-
break;
|
|
1558
|
+
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
2025
1559
|
default:
|
|
2026
1560
|
const parsedBody = parsedOutput.body;
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
...parsedBody,
|
|
2030
|
-
name: `${errorCode}`,
|
|
2031
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1561
|
+
response = new MediaPackageServiceException_1.MediaPackageServiceException({
|
|
1562
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2032
1563
|
$fault: "client",
|
|
2033
1564
|
$metadata: deserializeMetadata(output),
|
|
2034
|
-
};
|
|
1565
|
+
});
|
|
1566
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2035
1567
|
}
|
|
2036
|
-
const message = response.message || response.Message || errorCode;
|
|
2037
|
-
response.message = message;
|
|
2038
|
-
delete response.Message;
|
|
2039
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2040
1568
|
};
|
|
2041
1569
|
const deserializeAws_restJson1RotateIngestEndpointCredentialsCommand = async (output, context) => {
|
|
2042
1570
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2088,67 +1616,31 @@ const deserializeAws_restJson1RotateIngestEndpointCredentialsCommandError = asyn
|
|
|
2088
1616
|
switch (errorCode) {
|
|
2089
1617
|
case "ForbiddenException":
|
|
2090
1618
|
case "com.amazonaws.mediapackage#ForbiddenException":
|
|
2091
|
-
|
|
2092
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
2093
|
-
name: errorCode,
|
|
2094
|
-
$metadata: deserializeMetadata(output),
|
|
2095
|
-
};
|
|
2096
|
-
break;
|
|
1619
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
2097
1620
|
case "InternalServerErrorException":
|
|
2098
1621
|
case "com.amazonaws.mediapackage#InternalServerErrorException":
|
|
2099
|
-
|
|
2100
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
2101
|
-
name: errorCode,
|
|
2102
|
-
$metadata: deserializeMetadata(output),
|
|
2103
|
-
};
|
|
2104
|
-
break;
|
|
1622
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2105
1623
|
case "NotFoundException":
|
|
2106
1624
|
case "com.amazonaws.mediapackage#NotFoundException":
|
|
2107
|
-
|
|
2108
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
2109
|
-
name: errorCode,
|
|
2110
|
-
$metadata: deserializeMetadata(output),
|
|
2111
|
-
};
|
|
2112
|
-
break;
|
|
1625
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
2113
1626
|
case "ServiceUnavailableException":
|
|
2114
1627
|
case "com.amazonaws.mediapackage#ServiceUnavailableException":
|
|
2115
|
-
|
|
2116
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2117
|
-
name: errorCode,
|
|
2118
|
-
$metadata: deserializeMetadata(output),
|
|
2119
|
-
};
|
|
2120
|
-
break;
|
|
1628
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2121
1629
|
case "TooManyRequestsException":
|
|
2122
1630
|
case "com.amazonaws.mediapackage#TooManyRequestsException":
|
|
2123
|
-
|
|
2124
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
2125
|
-
name: errorCode,
|
|
2126
|
-
$metadata: deserializeMetadata(output),
|
|
2127
|
-
};
|
|
2128
|
-
break;
|
|
1631
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2129
1632
|
case "UnprocessableEntityException":
|
|
2130
1633
|
case "com.amazonaws.mediapackage#UnprocessableEntityException":
|
|
2131
|
-
|
|
2132
|
-
...(await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context)),
|
|
2133
|
-
name: errorCode,
|
|
2134
|
-
$metadata: deserializeMetadata(output),
|
|
2135
|
-
};
|
|
2136
|
-
break;
|
|
1634
|
+
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
2137
1635
|
default:
|
|
2138
1636
|
const parsedBody = parsedOutput.body;
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
...parsedBody,
|
|
2142
|
-
name: `${errorCode}`,
|
|
2143
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1637
|
+
response = new MediaPackageServiceException_1.MediaPackageServiceException({
|
|
1638
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2144
1639
|
$fault: "client",
|
|
2145
1640
|
$metadata: deserializeMetadata(output),
|
|
2146
|
-
};
|
|
1641
|
+
});
|
|
1642
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2147
1643
|
}
|
|
2148
|
-
const message = response.message || response.Message || errorCode;
|
|
2149
|
-
response.message = message;
|
|
2150
|
-
delete response.Message;
|
|
2151
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2152
1644
|
};
|
|
2153
1645
|
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
2154
1646
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -2172,19 +1664,13 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2172
1664
|
switch (errorCode) {
|
|
2173
1665
|
default:
|
|
2174
1666
|
const parsedBody = parsedOutput.body;
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
...parsedBody,
|
|
2178
|
-
name: `${errorCode}`,
|
|
2179
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1667
|
+
response = new MediaPackageServiceException_1.MediaPackageServiceException({
|
|
1668
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2180
1669
|
$fault: "client",
|
|
2181
1670
|
$metadata: deserializeMetadata(output),
|
|
2182
|
-
};
|
|
1671
|
+
});
|
|
1672
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2183
1673
|
}
|
|
2184
|
-
const message = response.message || response.Message || errorCode;
|
|
2185
|
-
response.message = message;
|
|
2186
|
-
delete response.Message;
|
|
2187
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2188
1674
|
};
|
|
2189
1675
|
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
2190
1676
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -2208,19 +1694,13 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2208
1694
|
switch (errorCode) {
|
|
2209
1695
|
default:
|
|
2210
1696
|
const parsedBody = parsedOutput.body;
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
...parsedBody,
|
|
2214
|
-
name: `${errorCode}`,
|
|
2215
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1697
|
+
response = new MediaPackageServiceException_1.MediaPackageServiceException({
|
|
1698
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2216
1699
|
$fault: "client",
|
|
2217
1700
|
$metadata: deserializeMetadata(output),
|
|
2218
|
-
};
|
|
1701
|
+
});
|
|
1702
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2219
1703
|
}
|
|
2220
|
-
const message = response.message || response.Message || errorCode;
|
|
2221
|
-
response.message = message;
|
|
2222
|
-
delete response.Message;
|
|
2223
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2224
1704
|
};
|
|
2225
1705
|
const deserializeAws_restJson1UpdateChannelCommand = async (output, context) => {
|
|
2226
1706
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2272,67 +1752,31 @@ const deserializeAws_restJson1UpdateChannelCommandError = async (output, context
|
|
|
2272
1752
|
switch (errorCode) {
|
|
2273
1753
|
case "ForbiddenException":
|
|
2274
1754
|
case "com.amazonaws.mediapackage#ForbiddenException":
|
|
2275
|
-
|
|
2276
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
2277
|
-
name: errorCode,
|
|
2278
|
-
$metadata: deserializeMetadata(output),
|
|
2279
|
-
};
|
|
2280
|
-
break;
|
|
1755
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
2281
1756
|
case "InternalServerErrorException":
|
|
2282
1757
|
case "com.amazonaws.mediapackage#InternalServerErrorException":
|
|
2283
|
-
|
|
2284
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
2285
|
-
name: errorCode,
|
|
2286
|
-
$metadata: deserializeMetadata(output),
|
|
2287
|
-
};
|
|
2288
|
-
break;
|
|
1758
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2289
1759
|
case "NotFoundException":
|
|
2290
1760
|
case "com.amazonaws.mediapackage#NotFoundException":
|
|
2291
|
-
|
|
2292
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
2293
|
-
name: errorCode,
|
|
2294
|
-
$metadata: deserializeMetadata(output),
|
|
2295
|
-
};
|
|
2296
|
-
break;
|
|
1761
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
2297
1762
|
case "ServiceUnavailableException":
|
|
2298
1763
|
case "com.amazonaws.mediapackage#ServiceUnavailableException":
|
|
2299
|
-
|
|
2300
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2301
|
-
name: errorCode,
|
|
2302
|
-
$metadata: deserializeMetadata(output),
|
|
2303
|
-
};
|
|
2304
|
-
break;
|
|
1764
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2305
1765
|
case "TooManyRequestsException":
|
|
2306
1766
|
case "com.amazonaws.mediapackage#TooManyRequestsException":
|
|
2307
|
-
|
|
2308
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
2309
|
-
name: errorCode,
|
|
2310
|
-
$metadata: deserializeMetadata(output),
|
|
2311
|
-
};
|
|
2312
|
-
break;
|
|
1767
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2313
1768
|
case "UnprocessableEntityException":
|
|
2314
1769
|
case "com.amazonaws.mediapackage#UnprocessableEntityException":
|
|
2315
|
-
|
|
2316
|
-
...(await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context)),
|
|
2317
|
-
name: errorCode,
|
|
2318
|
-
$metadata: deserializeMetadata(output),
|
|
2319
|
-
};
|
|
2320
|
-
break;
|
|
1770
|
+
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
2321
1771
|
default:
|
|
2322
1772
|
const parsedBody = parsedOutput.body;
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
...parsedBody,
|
|
2326
|
-
name: `${errorCode}`,
|
|
2327
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1773
|
+
response = new MediaPackageServiceException_1.MediaPackageServiceException({
|
|
1774
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2328
1775
|
$fault: "client",
|
|
2329
1776
|
$metadata: deserializeMetadata(output),
|
|
2330
|
-
};
|
|
1777
|
+
});
|
|
1778
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2331
1779
|
}
|
|
2332
|
-
const message = response.message || response.Message || errorCode;
|
|
2333
|
-
response.message = message;
|
|
2334
|
-
delete response.Message;
|
|
2335
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2336
1780
|
};
|
|
2337
1781
|
const deserializeAws_restJson1UpdateOriginEndpointCommand = async (output, context) => {
|
|
2338
1782
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2420,145 +1864,103 @@ const deserializeAws_restJson1UpdateOriginEndpointCommandError = async (output,
|
|
|
2420
1864
|
switch (errorCode) {
|
|
2421
1865
|
case "ForbiddenException":
|
|
2422
1866
|
case "com.amazonaws.mediapackage#ForbiddenException":
|
|
2423
|
-
|
|
2424
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
2425
|
-
name: errorCode,
|
|
2426
|
-
$metadata: deserializeMetadata(output),
|
|
2427
|
-
};
|
|
2428
|
-
break;
|
|
1867
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
2429
1868
|
case "InternalServerErrorException":
|
|
2430
1869
|
case "com.amazonaws.mediapackage#InternalServerErrorException":
|
|
2431
|
-
|
|
2432
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
2433
|
-
name: errorCode,
|
|
2434
|
-
$metadata: deserializeMetadata(output),
|
|
2435
|
-
};
|
|
2436
|
-
break;
|
|
1870
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2437
1871
|
case "NotFoundException":
|
|
2438
1872
|
case "com.amazonaws.mediapackage#NotFoundException":
|
|
2439
|
-
|
|
2440
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
2441
|
-
name: errorCode,
|
|
2442
|
-
$metadata: deserializeMetadata(output),
|
|
2443
|
-
};
|
|
2444
|
-
break;
|
|
1873
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
2445
1874
|
case "ServiceUnavailableException":
|
|
2446
1875
|
case "com.amazonaws.mediapackage#ServiceUnavailableException":
|
|
2447
|
-
|
|
2448
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2449
|
-
name: errorCode,
|
|
2450
|
-
$metadata: deserializeMetadata(output),
|
|
2451
|
-
};
|
|
2452
|
-
break;
|
|
1876
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2453
1877
|
case "TooManyRequestsException":
|
|
2454
1878
|
case "com.amazonaws.mediapackage#TooManyRequestsException":
|
|
2455
|
-
|
|
2456
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
2457
|
-
name: errorCode,
|
|
2458
|
-
$metadata: deserializeMetadata(output),
|
|
2459
|
-
};
|
|
2460
|
-
break;
|
|
1879
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2461
1880
|
case "UnprocessableEntityException":
|
|
2462
1881
|
case "com.amazonaws.mediapackage#UnprocessableEntityException":
|
|
2463
|
-
|
|
2464
|
-
...(await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context)),
|
|
2465
|
-
name: errorCode,
|
|
2466
|
-
$metadata: deserializeMetadata(output),
|
|
2467
|
-
};
|
|
2468
|
-
break;
|
|
1882
|
+
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
2469
1883
|
default:
|
|
2470
1884
|
const parsedBody = parsedOutput.body;
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
...parsedBody,
|
|
2474
|
-
name: `${errorCode}`,
|
|
2475
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1885
|
+
response = new MediaPackageServiceException_1.MediaPackageServiceException({
|
|
1886
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2476
1887
|
$fault: "client",
|
|
2477
1888
|
$metadata: deserializeMetadata(output),
|
|
2478
|
-
};
|
|
1889
|
+
});
|
|
1890
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2479
1891
|
}
|
|
2480
|
-
const message = response.message || response.Message || errorCode;
|
|
2481
|
-
response.message = message;
|
|
2482
|
-
delete response.Message;
|
|
2483
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2484
1892
|
};
|
|
2485
1893
|
const deserializeAws_restJson1ForbiddenExceptionResponse = async (parsedOutput, context) => {
|
|
2486
|
-
const contents = {
|
|
2487
|
-
name: "ForbiddenException",
|
|
2488
|
-
$fault: "client",
|
|
2489
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2490
|
-
Message: undefined,
|
|
2491
|
-
};
|
|
1894
|
+
const contents = {};
|
|
2492
1895
|
const data = parsedOutput.body;
|
|
2493
1896
|
if (data.message !== undefined && data.message !== null) {
|
|
2494
1897
|
contents.Message = smithy_client_1.expectString(data.message);
|
|
2495
1898
|
}
|
|
2496
|
-
|
|
1899
|
+
const exception = new models_0_1.ForbiddenException({
|
|
1900
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1901
|
+
...contents,
|
|
1902
|
+
});
|
|
1903
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2497
1904
|
};
|
|
2498
1905
|
const deserializeAws_restJson1InternalServerErrorExceptionResponse = async (parsedOutput, context) => {
|
|
2499
|
-
const contents = {
|
|
2500
|
-
name: "InternalServerErrorException",
|
|
2501
|
-
$fault: "server",
|
|
2502
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2503
|
-
Message: undefined,
|
|
2504
|
-
};
|
|
1906
|
+
const contents = {};
|
|
2505
1907
|
const data = parsedOutput.body;
|
|
2506
1908
|
if (data.message !== undefined && data.message !== null) {
|
|
2507
1909
|
contents.Message = smithy_client_1.expectString(data.message);
|
|
2508
1910
|
}
|
|
2509
|
-
|
|
1911
|
+
const exception = new models_0_1.InternalServerErrorException({
|
|
1912
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1913
|
+
...contents,
|
|
1914
|
+
});
|
|
1915
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2510
1916
|
};
|
|
2511
1917
|
const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
2512
|
-
const contents = {
|
|
2513
|
-
name: "NotFoundException",
|
|
2514
|
-
$fault: "client",
|
|
2515
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2516
|
-
Message: undefined,
|
|
2517
|
-
};
|
|
1918
|
+
const contents = {};
|
|
2518
1919
|
const data = parsedOutput.body;
|
|
2519
1920
|
if (data.message !== undefined && data.message !== null) {
|
|
2520
1921
|
contents.Message = smithy_client_1.expectString(data.message);
|
|
2521
1922
|
}
|
|
2522
|
-
|
|
1923
|
+
const exception = new models_0_1.NotFoundException({
|
|
1924
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1925
|
+
...contents,
|
|
1926
|
+
});
|
|
1927
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2523
1928
|
};
|
|
2524
1929
|
const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parsedOutput, context) => {
|
|
2525
|
-
const contents = {
|
|
2526
|
-
name: "ServiceUnavailableException",
|
|
2527
|
-
$fault: "server",
|
|
2528
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2529
|
-
Message: undefined,
|
|
2530
|
-
};
|
|
1930
|
+
const contents = {};
|
|
2531
1931
|
const data = parsedOutput.body;
|
|
2532
1932
|
if (data.message !== undefined && data.message !== null) {
|
|
2533
1933
|
contents.Message = smithy_client_1.expectString(data.message);
|
|
2534
1934
|
}
|
|
2535
|
-
|
|
1935
|
+
const exception = new models_0_1.ServiceUnavailableException({
|
|
1936
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1937
|
+
...contents,
|
|
1938
|
+
});
|
|
1939
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2536
1940
|
};
|
|
2537
1941
|
const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOutput, context) => {
|
|
2538
|
-
const contents = {
|
|
2539
|
-
name: "TooManyRequestsException",
|
|
2540
|
-
$fault: "client",
|
|
2541
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2542
|
-
Message: undefined,
|
|
2543
|
-
};
|
|
1942
|
+
const contents = {};
|
|
2544
1943
|
const data = parsedOutput.body;
|
|
2545
1944
|
if (data.message !== undefined && data.message !== null) {
|
|
2546
1945
|
contents.Message = smithy_client_1.expectString(data.message);
|
|
2547
1946
|
}
|
|
2548
|
-
|
|
1947
|
+
const exception = new models_0_1.TooManyRequestsException({
|
|
1948
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1949
|
+
...contents,
|
|
1950
|
+
});
|
|
1951
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2549
1952
|
};
|
|
2550
1953
|
const deserializeAws_restJson1UnprocessableEntityExceptionResponse = async (parsedOutput, context) => {
|
|
2551
|
-
const contents = {
|
|
2552
|
-
name: "UnprocessableEntityException",
|
|
2553
|
-
$fault: "client",
|
|
2554
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2555
|
-
Message: undefined,
|
|
2556
|
-
};
|
|
1954
|
+
const contents = {};
|
|
2557
1955
|
const data = parsedOutput.body;
|
|
2558
1956
|
if (data.message !== undefined && data.message !== null) {
|
|
2559
1957
|
contents.Message = smithy_client_1.expectString(data.message);
|
|
2560
1958
|
}
|
|
2561
|
-
|
|
1959
|
+
const exception = new models_0_1.UnprocessableEntityException({
|
|
1960
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1961
|
+
...contents,
|
|
1962
|
+
});
|
|
1963
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2562
1964
|
};
|
|
2563
1965
|
const serializeAws_restJson1__listOf__PeriodTriggersElement = (input, context) => {
|
|
2564
1966
|
return input
|
|
@@ -2847,7 +2249,7 @@ const serializeAws_restJson1Tags = (input, context) => {
|
|
|
2847
2249
|
}, {});
|
|
2848
2250
|
};
|
|
2849
2251
|
const deserializeAws_restJson1__listOf__PeriodTriggersElement = (output, context) => {
|
|
2850
|
-
|
|
2252
|
+
const retVal = (output || [])
|
|
2851
2253
|
.filter((e) => e != null)
|
|
2852
2254
|
.map((entry) => {
|
|
2853
2255
|
if (entry === null) {
|
|
@@ -2855,9 +2257,10 @@ const deserializeAws_restJson1__listOf__PeriodTriggersElement = (output, context
|
|
|
2855
2257
|
}
|
|
2856
2258
|
return smithy_client_1.expectString(entry);
|
|
2857
2259
|
});
|
|
2260
|
+
return retVal;
|
|
2858
2261
|
};
|
|
2859
2262
|
const deserializeAws_restJson1__listOf__string = (output, context) => {
|
|
2860
|
-
|
|
2263
|
+
const retVal = (output || [])
|
|
2861
2264
|
.filter((e) => e != null)
|
|
2862
2265
|
.map((entry) => {
|
|
2863
2266
|
if (entry === null) {
|
|
@@ -2865,9 +2268,10 @@ const deserializeAws_restJson1__listOf__string = (output, context) => {
|
|
|
2865
2268
|
}
|
|
2866
2269
|
return smithy_client_1.expectString(entry);
|
|
2867
2270
|
});
|
|
2271
|
+
return retVal;
|
|
2868
2272
|
};
|
|
2869
2273
|
const deserializeAws_restJson1__listOfChannel = (output, context) => {
|
|
2870
|
-
|
|
2274
|
+
const retVal = (output || [])
|
|
2871
2275
|
.filter((e) => e != null)
|
|
2872
2276
|
.map((entry) => {
|
|
2873
2277
|
if (entry === null) {
|
|
@@ -2875,9 +2279,10 @@ const deserializeAws_restJson1__listOfChannel = (output, context) => {
|
|
|
2875
2279
|
}
|
|
2876
2280
|
return deserializeAws_restJson1Channel(entry, context);
|
|
2877
2281
|
});
|
|
2282
|
+
return retVal;
|
|
2878
2283
|
};
|
|
2879
2284
|
const deserializeAws_restJson1__listOfHarvestJob = (output, context) => {
|
|
2880
|
-
|
|
2285
|
+
const retVal = (output || [])
|
|
2881
2286
|
.filter((e) => e != null)
|
|
2882
2287
|
.map((entry) => {
|
|
2883
2288
|
if (entry === null) {
|
|
@@ -2885,9 +2290,10 @@ const deserializeAws_restJson1__listOfHarvestJob = (output, context) => {
|
|
|
2885
2290
|
}
|
|
2886
2291
|
return deserializeAws_restJson1HarvestJob(entry, context);
|
|
2887
2292
|
});
|
|
2293
|
+
return retVal;
|
|
2888
2294
|
};
|
|
2889
2295
|
const deserializeAws_restJson1__listOfHlsManifest = (output, context) => {
|
|
2890
|
-
|
|
2296
|
+
const retVal = (output || [])
|
|
2891
2297
|
.filter((e) => e != null)
|
|
2892
2298
|
.map((entry) => {
|
|
2893
2299
|
if (entry === null) {
|
|
@@ -2895,9 +2301,10 @@ const deserializeAws_restJson1__listOfHlsManifest = (output, context) => {
|
|
|
2895
2301
|
}
|
|
2896
2302
|
return deserializeAws_restJson1HlsManifest(entry, context);
|
|
2897
2303
|
});
|
|
2304
|
+
return retVal;
|
|
2898
2305
|
};
|
|
2899
2306
|
const deserializeAws_restJson1__listOfIngestEndpoint = (output, context) => {
|
|
2900
|
-
|
|
2307
|
+
const retVal = (output || [])
|
|
2901
2308
|
.filter((e) => e != null)
|
|
2902
2309
|
.map((entry) => {
|
|
2903
2310
|
if (entry === null) {
|
|
@@ -2905,9 +2312,10 @@ const deserializeAws_restJson1__listOfIngestEndpoint = (output, context) => {
|
|
|
2905
2312
|
}
|
|
2906
2313
|
return deserializeAws_restJson1IngestEndpoint(entry, context);
|
|
2907
2314
|
});
|
|
2315
|
+
return retVal;
|
|
2908
2316
|
};
|
|
2909
2317
|
const deserializeAws_restJson1__listOfOriginEndpoint = (output, context) => {
|
|
2910
|
-
|
|
2318
|
+
const retVal = (output || [])
|
|
2911
2319
|
.filter((e) => e != null)
|
|
2912
2320
|
.map((entry) => {
|
|
2913
2321
|
if (entry === null) {
|
|
@@ -2915,6 +2323,7 @@ const deserializeAws_restJson1__listOfOriginEndpoint = (output, context) => {
|
|
|
2915
2323
|
}
|
|
2916
2324
|
return deserializeAws_restJson1OriginEndpoint(entry, context);
|
|
2917
2325
|
});
|
|
2326
|
+
return retVal;
|
|
2918
2327
|
};
|
|
2919
2328
|
const deserializeAws_restJson1__mapOf__string = (output, context) => {
|
|
2920
2329
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
@@ -2928,7 +2337,7 @@ const deserializeAws_restJson1__mapOf__string = (output, context) => {
|
|
|
2928
2337
|
}, {});
|
|
2929
2338
|
};
|
|
2930
2339
|
const deserializeAws_restJson1AdTriggers = (output, context) => {
|
|
2931
|
-
|
|
2340
|
+
const retVal = (output || [])
|
|
2932
2341
|
.filter((e) => e != null)
|
|
2933
2342
|
.map((entry) => {
|
|
2934
2343
|
if (entry === null) {
|
|
@@ -2936,6 +2345,7 @@ const deserializeAws_restJson1AdTriggers = (output, context) => {
|
|
|
2936
2345
|
}
|
|
2937
2346
|
return smithy_client_1.expectString(entry);
|
|
2938
2347
|
});
|
|
2348
|
+
return retVal;
|
|
2939
2349
|
};
|
|
2940
2350
|
const deserializeAws_restJson1Authorization = (output, context) => {
|
|
2941
2351
|
return {
|