@aws-sdk/client-ivs 3.50.0 → 3.53.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/CHANGELOG.md +27 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/IvsServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +143 -2
- package/dist-cjs/protocols/Aws_restJson1.js +293 -954
- package/dist-es/index.js +1 -0
- package/dist-es/models/IvsServiceException.js +12 -0
- package/dist-es/models/models_0.js +132 -1
- package/dist-es/protocols/Aws_restJson1.js +589 -1063
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/IvsServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +72 -31
- package/dist-types/ts3.4/Ivs.d.ts +145 -0
- package/dist-types/ts3.4/IvsClient.d.ts +101 -0
- package/dist-types/ts3.4/commands/BatchGetChannelCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/BatchGetStreamKeyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateChannelCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateRecordingConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateStreamKeyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteChannelCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeletePlaybackKeyPairCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteRecordingConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteStreamKeyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetChannelCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetPlaybackKeyPairCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetRecordingConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetStreamCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetStreamKeyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetStreamSessionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ImportPlaybackKeyPairCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListChannelsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListPlaybackKeyPairsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListRecordingConfigurationsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListStreamKeysCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListStreamSessionsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListStreamsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutMetadataCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StopStreamCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateChannelCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +28 -0
- package/dist-types/ts3.4/endpoints.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +6 -0
- package/dist-types/ts3.4/models/IvsServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +959 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListChannelsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListPlaybackKeyPairsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListRecordingConfigurationsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListStreamKeysPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListStreamSessionsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListStreamsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +7 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +86 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
- package/package.json +33 -33
|
@@ -4,6 +4,8 @@ exports.deserializeAws_restJson1ListStreamSessionsCommand = exports.deserializeA
|
|
|
4
4
|
exports.deserializeAws_restJson1UpdateChannelCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StopStreamCommand = exports.deserializeAws_restJson1PutMetadataCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const IvsServiceException_1 = require("../models/IvsServiceException");
|
|
8
|
+
const models_0_1 = require("../models/models_0");
|
|
7
9
|
const serializeAws_restJson1BatchGetChannelCommand = async (input, context) => {
|
|
8
10
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
9
11
|
const headers = {
|
|
@@ -690,19 +692,13 @@ const deserializeAws_restJson1BatchGetChannelCommandError = async (output, conte
|
|
|
690
692
|
switch (errorCode) {
|
|
691
693
|
default:
|
|
692
694
|
const parsedBody = parsedOutput.body;
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
...parsedBody,
|
|
696
|
-
name: `${errorCode}`,
|
|
697
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
695
|
+
response = new IvsServiceException_1.IvsServiceException({
|
|
696
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
698
697
|
$fault: "client",
|
|
699
698
|
$metadata: deserializeMetadata(output),
|
|
700
|
-
};
|
|
699
|
+
});
|
|
700
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
701
701
|
}
|
|
702
|
-
const message = response.message || response.Message || errorCode;
|
|
703
|
-
response.message = message;
|
|
704
|
-
delete response.Message;
|
|
705
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
706
702
|
};
|
|
707
703
|
const deserializeAws_restJson1BatchGetStreamKeyCommand = async (output, context) => {
|
|
708
704
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -734,19 +730,13 @@ const deserializeAws_restJson1BatchGetStreamKeyCommandError = async (output, con
|
|
|
734
730
|
switch (errorCode) {
|
|
735
731
|
default:
|
|
736
732
|
const parsedBody = parsedOutput.body;
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
...parsedBody,
|
|
740
|
-
name: `${errorCode}`,
|
|
741
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
733
|
+
response = new IvsServiceException_1.IvsServiceException({
|
|
734
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
742
735
|
$fault: "client",
|
|
743
736
|
$metadata: deserializeMetadata(output),
|
|
744
|
-
};
|
|
737
|
+
});
|
|
738
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
745
739
|
}
|
|
746
|
-
const message = response.message || response.Message || errorCode;
|
|
747
|
-
response.message = message;
|
|
748
|
-
delete response.Message;
|
|
749
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
750
740
|
};
|
|
751
741
|
const deserializeAws_restJson1CreateChannelCommand = async (output, context) => {
|
|
752
742
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -778,59 +768,28 @@ const deserializeAws_restJson1CreateChannelCommandError = async (output, context
|
|
|
778
768
|
switch (errorCode) {
|
|
779
769
|
case "AccessDeniedException":
|
|
780
770
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
781
|
-
|
|
782
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
783
|
-
name: errorCode,
|
|
784
|
-
$metadata: deserializeMetadata(output),
|
|
785
|
-
};
|
|
786
|
-
break;
|
|
771
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
787
772
|
case "PendingVerification":
|
|
788
773
|
case "com.amazonaws.ivs#PendingVerification":
|
|
789
|
-
|
|
790
|
-
...(await deserializeAws_restJson1PendingVerificationResponse(parsedOutput, context)),
|
|
791
|
-
name: errorCode,
|
|
792
|
-
$metadata: deserializeMetadata(output),
|
|
793
|
-
};
|
|
794
|
-
break;
|
|
774
|
+
throw await deserializeAws_restJson1PendingVerificationResponse(parsedOutput, context);
|
|
795
775
|
case "ResourceNotFoundException":
|
|
796
776
|
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
797
|
-
|
|
798
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
799
|
-
name: errorCode,
|
|
800
|
-
$metadata: deserializeMetadata(output),
|
|
801
|
-
};
|
|
802
|
-
break;
|
|
777
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
803
778
|
case "ServiceQuotaExceededException":
|
|
804
779
|
case "com.amazonaws.ivs#ServiceQuotaExceededException":
|
|
805
|
-
|
|
806
|
-
...(await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
807
|
-
name: errorCode,
|
|
808
|
-
$metadata: deserializeMetadata(output),
|
|
809
|
-
};
|
|
810
|
-
break;
|
|
780
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
811
781
|
case "ValidationException":
|
|
812
782
|
case "com.amazonaws.ivs#ValidationException":
|
|
813
|
-
|
|
814
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
815
|
-
name: errorCode,
|
|
816
|
-
$metadata: deserializeMetadata(output),
|
|
817
|
-
};
|
|
818
|
-
break;
|
|
783
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
819
784
|
default:
|
|
820
785
|
const parsedBody = parsedOutput.body;
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
...parsedBody,
|
|
824
|
-
name: `${errorCode}`,
|
|
825
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
786
|
+
response = new IvsServiceException_1.IvsServiceException({
|
|
787
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
826
788
|
$fault: "client",
|
|
827
789
|
$metadata: deserializeMetadata(output),
|
|
828
|
-
};
|
|
790
|
+
});
|
|
791
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
829
792
|
}
|
|
830
|
-
const message = response.message || response.Message || errorCode;
|
|
831
|
-
response.message = message;
|
|
832
|
-
delete response.Message;
|
|
833
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
834
793
|
};
|
|
835
794
|
const deserializeAws_restJson1CreateRecordingConfigurationCommand = async (output, context) => {
|
|
836
795
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -858,67 +817,31 @@ const deserializeAws_restJson1CreateRecordingConfigurationCommandError = async (
|
|
|
858
817
|
switch (errorCode) {
|
|
859
818
|
case "AccessDeniedException":
|
|
860
819
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
861
|
-
|
|
862
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
863
|
-
name: errorCode,
|
|
864
|
-
$metadata: deserializeMetadata(output),
|
|
865
|
-
};
|
|
866
|
-
break;
|
|
820
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
867
821
|
case "ConflictException":
|
|
868
822
|
case "com.amazonaws.ivs#ConflictException":
|
|
869
|
-
|
|
870
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
871
|
-
name: errorCode,
|
|
872
|
-
$metadata: deserializeMetadata(output),
|
|
873
|
-
};
|
|
874
|
-
break;
|
|
823
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
875
824
|
case "InternalServerException":
|
|
876
825
|
case "com.amazonaws.ivs#InternalServerException":
|
|
877
|
-
|
|
878
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
879
|
-
name: errorCode,
|
|
880
|
-
$metadata: deserializeMetadata(output),
|
|
881
|
-
};
|
|
882
|
-
break;
|
|
826
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
883
827
|
case "PendingVerification":
|
|
884
828
|
case "com.amazonaws.ivs#PendingVerification":
|
|
885
|
-
|
|
886
|
-
...(await deserializeAws_restJson1PendingVerificationResponse(parsedOutput, context)),
|
|
887
|
-
name: errorCode,
|
|
888
|
-
$metadata: deserializeMetadata(output),
|
|
889
|
-
};
|
|
890
|
-
break;
|
|
829
|
+
throw await deserializeAws_restJson1PendingVerificationResponse(parsedOutput, context);
|
|
891
830
|
case "ServiceQuotaExceededException":
|
|
892
831
|
case "com.amazonaws.ivs#ServiceQuotaExceededException":
|
|
893
|
-
|
|
894
|
-
...(await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
895
|
-
name: errorCode,
|
|
896
|
-
$metadata: deserializeMetadata(output),
|
|
897
|
-
};
|
|
898
|
-
break;
|
|
832
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
899
833
|
case "ValidationException":
|
|
900
834
|
case "com.amazonaws.ivs#ValidationException":
|
|
901
|
-
|
|
902
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
903
|
-
name: errorCode,
|
|
904
|
-
$metadata: deserializeMetadata(output),
|
|
905
|
-
};
|
|
906
|
-
break;
|
|
835
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
907
836
|
default:
|
|
908
837
|
const parsedBody = parsedOutput.body;
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
...parsedBody,
|
|
912
|
-
name: `${errorCode}`,
|
|
913
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
838
|
+
response = new IvsServiceException_1.IvsServiceException({
|
|
839
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
914
840
|
$fault: "client",
|
|
915
841
|
$metadata: deserializeMetadata(output),
|
|
916
|
-
};
|
|
842
|
+
});
|
|
843
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
917
844
|
}
|
|
918
|
-
const message = response.message || response.Message || errorCode;
|
|
919
|
-
response.message = message;
|
|
920
|
-
delete response.Message;
|
|
921
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
922
845
|
};
|
|
923
846
|
const deserializeAws_restJson1CreateStreamKeyCommand = async (output, context) => {
|
|
924
847
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -946,59 +869,28 @@ const deserializeAws_restJson1CreateStreamKeyCommandError = async (output, conte
|
|
|
946
869
|
switch (errorCode) {
|
|
947
870
|
case "AccessDeniedException":
|
|
948
871
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
949
|
-
|
|
950
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
951
|
-
name: errorCode,
|
|
952
|
-
$metadata: deserializeMetadata(output),
|
|
953
|
-
};
|
|
954
|
-
break;
|
|
872
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
955
873
|
case "PendingVerification":
|
|
956
874
|
case "com.amazonaws.ivs#PendingVerification":
|
|
957
|
-
|
|
958
|
-
...(await deserializeAws_restJson1PendingVerificationResponse(parsedOutput, context)),
|
|
959
|
-
name: errorCode,
|
|
960
|
-
$metadata: deserializeMetadata(output),
|
|
961
|
-
};
|
|
962
|
-
break;
|
|
875
|
+
throw await deserializeAws_restJson1PendingVerificationResponse(parsedOutput, context);
|
|
963
876
|
case "ResourceNotFoundException":
|
|
964
877
|
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
965
|
-
|
|
966
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
967
|
-
name: errorCode,
|
|
968
|
-
$metadata: deserializeMetadata(output),
|
|
969
|
-
};
|
|
970
|
-
break;
|
|
878
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
971
879
|
case "ServiceQuotaExceededException":
|
|
972
880
|
case "com.amazonaws.ivs#ServiceQuotaExceededException":
|
|
973
|
-
|
|
974
|
-
...(await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
975
|
-
name: errorCode,
|
|
976
|
-
$metadata: deserializeMetadata(output),
|
|
977
|
-
};
|
|
978
|
-
break;
|
|
881
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
979
882
|
case "ValidationException":
|
|
980
883
|
case "com.amazonaws.ivs#ValidationException":
|
|
981
|
-
|
|
982
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
983
|
-
name: errorCode,
|
|
984
|
-
$metadata: deserializeMetadata(output),
|
|
985
|
-
};
|
|
986
|
-
break;
|
|
884
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
987
885
|
default:
|
|
988
886
|
const parsedBody = parsedOutput.body;
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
...parsedBody,
|
|
992
|
-
name: `${errorCode}`,
|
|
993
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
887
|
+
response = new IvsServiceException_1.IvsServiceException({
|
|
888
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
994
889
|
$fault: "client",
|
|
995
890
|
$metadata: deserializeMetadata(output),
|
|
996
|
-
};
|
|
891
|
+
});
|
|
892
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
997
893
|
}
|
|
998
|
-
const message = response.message || response.Message || errorCode;
|
|
999
|
-
response.message = message;
|
|
1000
|
-
delete response.Message;
|
|
1001
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1002
894
|
};
|
|
1003
895
|
const deserializeAws_restJson1DeleteChannelCommand = async (output, context) => {
|
|
1004
896
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -1022,59 +914,28 @@ const deserializeAws_restJson1DeleteChannelCommandError = async (output, context
|
|
|
1022
914
|
switch (errorCode) {
|
|
1023
915
|
case "AccessDeniedException":
|
|
1024
916
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
1025
|
-
|
|
1026
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1027
|
-
name: errorCode,
|
|
1028
|
-
$metadata: deserializeMetadata(output),
|
|
1029
|
-
};
|
|
1030
|
-
break;
|
|
917
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1031
918
|
case "ConflictException":
|
|
1032
919
|
case "com.amazonaws.ivs#ConflictException":
|
|
1033
|
-
|
|
1034
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1035
|
-
name: errorCode,
|
|
1036
|
-
$metadata: deserializeMetadata(output),
|
|
1037
|
-
};
|
|
1038
|
-
break;
|
|
920
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1039
921
|
case "PendingVerification":
|
|
1040
922
|
case "com.amazonaws.ivs#PendingVerification":
|
|
1041
|
-
|
|
1042
|
-
...(await deserializeAws_restJson1PendingVerificationResponse(parsedOutput, context)),
|
|
1043
|
-
name: errorCode,
|
|
1044
|
-
$metadata: deserializeMetadata(output),
|
|
1045
|
-
};
|
|
1046
|
-
break;
|
|
923
|
+
throw await deserializeAws_restJson1PendingVerificationResponse(parsedOutput, context);
|
|
1047
924
|
case "ResourceNotFoundException":
|
|
1048
925
|
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
1049
|
-
|
|
1050
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1051
|
-
name: errorCode,
|
|
1052
|
-
$metadata: deserializeMetadata(output),
|
|
1053
|
-
};
|
|
1054
|
-
break;
|
|
926
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1055
927
|
case "ValidationException":
|
|
1056
928
|
case "com.amazonaws.ivs#ValidationException":
|
|
1057
|
-
|
|
1058
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1059
|
-
name: errorCode,
|
|
1060
|
-
$metadata: deserializeMetadata(output),
|
|
1061
|
-
};
|
|
1062
|
-
break;
|
|
929
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1063
930
|
default:
|
|
1064
931
|
const parsedBody = parsedOutput.body;
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
...parsedBody,
|
|
1068
|
-
name: `${errorCode}`,
|
|
1069
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
932
|
+
response = new IvsServiceException_1.IvsServiceException({
|
|
933
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1070
934
|
$fault: "client",
|
|
1071
935
|
$metadata: deserializeMetadata(output),
|
|
1072
|
-
};
|
|
936
|
+
});
|
|
937
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1073
938
|
}
|
|
1074
|
-
const message = response.message || response.Message || errorCode;
|
|
1075
|
-
response.message = message;
|
|
1076
|
-
delete response.Message;
|
|
1077
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1078
939
|
};
|
|
1079
940
|
const deserializeAws_restJson1DeletePlaybackKeyPairCommand = async (output, context) => {
|
|
1080
941
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1098,51 +959,25 @@ const deserializeAws_restJson1DeletePlaybackKeyPairCommandError = async (output,
|
|
|
1098
959
|
switch (errorCode) {
|
|
1099
960
|
case "AccessDeniedException":
|
|
1100
961
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
1101
|
-
|
|
1102
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1103
|
-
name: errorCode,
|
|
1104
|
-
$metadata: deserializeMetadata(output),
|
|
1105
|
-
};
|
|
1106
|
-
break;
|
|
962
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1107
963
|
case "PendingVerification":
|
|
1108
964
|
case "com.amazonaws.ivs#PendingVerification":
|
|
1109
|
-
|
|
1110
|
-
...(await deserializeAws_restJson1PendingVerificationResponse(parsedOutput, context)),
|
|
1111
|
-
name: errorCode,
|
|
1112
|
-
$metadata: deserializeMetadata(output),
|
|
1113
|
-
};
|
|
1114
|
-
break;
|
|
965
|
+
throw await deserializeAws_restJson1PendingVerificationResponse(parsedOutput, context);
|
|
1115
966
|
case "ResourceNotFoundException":
|
|
1116
967
|
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
1117
|
-
|
|
1118
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1119
|
-
name: errorCode,
|
|
1120
|
-
$metadata: deserializeMetadata(output),
|
|
1121
|
-
};
|
|
1122
|
-
break;
|
|
968
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1123
969
|
case "ValidationException":
|
|
1124
970
|
case "com.amazonaws.ivs#ValidationException":
|
|
1125
|
-
|
|
1126
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1127
|
-
name: errorCode,
|
|
1128
|
-
$metadata: deserializeMetadata(output),
|
|
1129
|
-
};
|
|
1130
|
-
break;
|
|
971
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1131
972
|
default:
|
|
1132
973
|
const parsedBody = parsedOutput.body;
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
...parsedBody,
|
|
1136
|
-
name: `${errorCode}`,
|
|
1137
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
974
|
+
response = new IvsServiceException_1.IvsServiceException({
|
|
975
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1138
976
|
$fault: "client",
|
|
1139
977
|
$metadata: deserializeMetadata(output),
|
|
1140
|
-
};
|
|
978
|
+
});
|
|
979
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1141
980
|
}
|
|
1142
|
-
const message = response.message || response.Message || errorCode;
|
|
1143
|
-
response.message = message;
|
|
1144
|
-
delete response.Message;
|
|
1145
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1146
981
|
};
|
|
1147
982
|
const deserializeAws_restJson1DeleteRecordingConfigurationCommand = async (output, context) => {
|
|
1148
983
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1166,59 +1001,28 @@ const deserializeAws_restJson1DeleteRecordingConfigurationCommandError = async (
|
|
|
1166
1001
|
switch (errorCode) {
|
|
1167
1002
|
case "AccessDeniedException":
|
|
1168
1003
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
1169
|
-
|
|
1170
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1171
|
-
name: errorCode,
|
|
1172
|
-
$metadata: deserializeMetadata(output),
|
|
1173
|
-
};
|
|
1174
|
-
break;
|
|
1004
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1175
1005
|
case "ConflictException":
|
|
1176
1006
|
case "com.amazonaws.ivs#ConflictException":
|
|
1177
|
-
|
|
1178
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1179
|
-
name: errorCode,
|
|
1180
|
-
$metadata: deserializeMetadata(output),
|
|
1181
|
-
};
|
|
1182
|
-
break;
|
|
1007
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1183
1008
|
case "InternalServerException":
|
|
1184
1009
|
case "com.amazonaws.ivs#InternalServerException":
|
|
1185
|
-
|
|
1186
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1187
|
-
name: errorCode,
|
|
1188
|
-
$metadata: deserializeMetadata(output),
|
|
1189
|
-
};
|
|
1190
|
-
break;
|
|
1010
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1191
1011
|
case "ResourceNotFoundException":
|
|
1192
1012
|
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
1193
|
-
|
|
1194
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1195
|
-
name: errorCode,
|
|
1196
|
-
$metadata: deserializeMetadata(output),
|
|
1197
|
-
};
|
|
1198
|
-
break;
|
|
1013
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1199
1014
|
case "ValidationException":
|
|
1200
1015
|
case "com.amazonaws.ivs#ValidationException":
|
|
1201
|
-
|
|
1202
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1203
|
-
name: errorCode,
|
|
1204
|
-
$metadata: deserializeMetadata(output),
|
|
1205
|
-
};
|
|
1206
|
-
break;
|
|
1016
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1207
1017
|
default:
|
|
1208
1018
|
const parsedBody = parsedOutput.body;
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
...parsedBody,
|
|
1212
|
-
name: `${errorCode}`,
|
|
1213
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1019
|
+
response = new IvsServiceException_1.IvsServiceException({
|
|
1020
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1214
1021
|
$fault: "client",
|
|
1215
1022
|
$metadata: deserializeMetadata(output),
|
|
1216
|
-
};
|
|
1023
|
+
});
|
|
1024
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1217
1025
|
}
|
|
1218
|
-
const message = response.message || response.Message || errorCode;
|
|
1219
|
-
response.message = message;
|
|
1220
|
-
delete response.Message;
|
|
1221
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1222
1026
|
};
|
|
1223
1027
|
const deserializeAws_restJson1DeleteStreamKeyCommand = async (output, context) => {
|
|
1224
1028
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -1242,51 +1046,25 @@ const deserializeAws_restJson1DeleteStreamKeyCommandError = async (output, conte
|
|
|
1242
1046
|
switch (errorCode) {
|
|
1243
1047
|
case "AccessDeniedException":
|
|
1244
1048
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
1245
|
-
|
|
1246
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1247
|
-
name: errorCode,
|
|
1248
|
-
$metadata: deserializeMetadata(output),
|
|
1249
|
-
};
|
|
1250
|
-
break;
|
|
1049
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1251
1050
|
case "PendingVerification":
|
|
1252
1051
|
case "com.amazonaws.ivs#PendingVerification":
|
|
1253
|
-
|
|
1254
|
-
...(await deserializeAws_restJson1PendingVerificationResponse(parsedOutput, context)),
|
|
1255
|
-
name: errorCode,
|
|
1256
|
-
$metadata: deserializeMetadata(output),
|
|
1257
|
-
};
|
|
1258
|
-
break;
|
|
1052
|
+
throw await deserializeAws_restJson1PendingVerificationResponse(parsedOutput, context);
|
|
1259
1053
|
case "ResourceNotFoundException":
|
|
1260
1054
|
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
1261
|
-
|
|
1262
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1263
|
-
name: errorCode,
|
|
1264
|
-
$metadata: deserializeMetadata(output),
|
|
1265
|
-
};
|
|
1266
|
-
break;
|
|
1055
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1267
1056
|
case "ValidationException":
|
|
1268
1057
|
case "com.amazonaws.ivs#ValidationException":
|
|
1269
|
-
|
|
1270
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1271
|
-
name: errorCode,
|
|
1272
|
-
$metadata: deserializeMetadata(output),
|
|
1273
|
-
};
|
|
1274
|
-
break;
|
|
1058
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1275
1059
|
default:
|
|
1276
1060
|
const parsedBody = parsedOutput.body;
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
...parsedBody,
|
|
1280
|
-
name: `${errorCode}`,
|
|
1281
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1061
|
+
response = new IvsServiceException_1.IvsServiceException({
|
|
1062
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1282
1063
|
$fault: "client",
|
|
1283
1064
|
$metadata: deserializeMetadata(output),
|
|
1284
|
-
};
|
|
1065
|
+
});
|
|
1066
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1285
1067
|
}
|
|
1286
|
-
const message = response.message || response.Message || errorCode;
|
|
1287
|
-
response.message = message;
|
|
1288
|
-
delete response.Message;
|
|
1289
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1290
1068
|
};
|
|
1291
1069
|
const deserializeAws_restJson1GetChannelCommand = async (output, context) => {
|
|
1292
1070
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1314,43 +1092,22 @@ const deserializeAws_restJson1GetChannelCommandError = async (output, context) =
|
|
|
1314
1092
|
switch (errorCode) {
|
|
1315
1093
|
case "AccessDeniedException":
|
|
1316
1094
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
1317
|
-
|
|
1318
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1319
|
-
name: errorCode,
|
|
1320
|
-
$metadata: deserializeMetadata(output),
|
|
1321
|
-
};
|
|
1322
|
-
break;
|
|
1095
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1323
1096
|
case "ResourceNotFoundException":
|
|
1324
1097
|
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
1325
|
-
|
|
1326
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1327
|
-
name: errorCode,
|
|
1328
|
-
$metadata: deserializeMetadata(output),
|
|
1329
|
-
};
|
|
1330
|
-
break;
|
|
1098
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1331
1099
|
case "ValidationException":
|
|
1332
1100
|
case "com.amazonaws.ivs#ValidationException":
|
|
1333
|
-
|
|
1334
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1335
|
-
name: errorCode,
|
|
1336
|
-
$metadata: deserializeMetadata(output),
|
|
1337
|
-
};
|
|
1338
|
-
break;
|
|
1101
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1339
1102
|
default:
|
|
1340
1103
|
const parsedBody = parsedOutput.body;
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
...parsedBody,
|
|
1344
|
-
name: `${errorCode}`,
|
|
1345
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1104
|
+
response = new IvsServiceException_1.IvsServiceException({
|
|
1105
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1346
1106
|
$fault: "client",
|
|
1347
1107
|
$metadata: deserializeMetadata(output),
|
|
1348
|
-
};
|
|
1108
|
+
});
|
|
1109
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1349
1110
|
}
|
|
1350
|
-
const message = response.message || response.Message || errorCode;
|
|
1351
|
-
response.message = message;
|
|
1352
|
-
delete response.Message;
|
|
1353
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1354
1111
|
};
|
|
1355
1112
|
const deserializeAws_restJson1GetPlaybackKeyPairCommand = async (output, context) => {
|
|
1356
1113
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1378,43 +1135,22 @@ const deserializeAws_restJson1GetPlaybackKeyPairCommandError = async (output, co
|
|
|
1378
1135
|
switch (errorCode) {
|
|
1379
1136
|
case "AccessDeniedException":
|
|
1380
1137
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
1381
|
-
|
|
1382
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1383
|
-
name: errorCode,
|
|
1384
|
-
$metadata: deserializeMetadata(output),
|
|
1385
|
-
};
|
|
1386
|
-
break;
|
|
1138
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1387
1139
|
case "ResourceNotFoundException":
|
|
1388
1140
|
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
1389
|
-
|
|
1390
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1391
|
-
name: errorCode,
|
|
1392
|
-
$metadata: deserializeMetadata(output),
|
|
1393
|
-
};
|
|
1394
|
-
break;
|
|
1141
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1395
1142
|
case "ValidationException":
|
|
1396
1143
|
case "com.amazonaws.ivs#ValidationException":
|
|
1397
|
-
|
|
1398
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1399
|
-
name: errorCode,
|
|
1400
|
-
$metadata: deserializeMetadata(output),
|
|
1401
|
-
};
|
|
1402
|
-
break;
|
|
1144
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1403
1145
|
default:
|
|
1404
1146
|
const parsedBody = parsedOutput.body;
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
...parsedBody,
|
|
1408
|
-
name: `${errorCode}`,
|
|
1409
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1147
|
+
response = new IvsServiceException_1.IvsServiceException({
|
|
1148
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1410
1149
|
$fault: "client",
|
|
1411
1150
|
$metadata: deserializeMetadata(output),
|
|
1412
|
-
};
|
|
1151
|
+
});
|
|
1152
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1413
1153
|
}
|
|
1414
|
-
const message = response.message || response.Message || errorCode;
|
|
1415
|
-
response.message = message;
|
|
1416
|
-
delete response.Message;
|
|
1417
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1418
1154
|
};
|
|
1419
1155
|
const deserializeAws_restJson1GetRecordingConfigurationCommand = async (output, context) => {
|
|
1420
1156
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1442,51 +1178,25 @@ const deserializeAws_restJson1GetRecordingConfigurationCommandError = async (out
|
|
|
1442
1178
|
switch (errorCode) {
|
|
1443
1179
|
case "AccessDeniedException":
|
|
1444
1180
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
1445
|
-
|
|
1446
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1447
|
-
name: errorCode,
|
|
1448
|
-
$metadata: deserializeMetadata(output),
|
|
1449
|
-
};
|
|
1450
|
-
break;
|
|
1181
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1451
1182
|
case "InternalServerException":
|
|
1452
1183
|
case "com.amazonaws.ivs#InternalServerException":
|
|
1453
|
-
|
|
1454
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1455
|
-
name: errorCode,
|
|
1456
|
-
$metadata: deserializeMetadata(output),
|
|
1457
|
-
};
|
|
1458
|
-
break;
|
|
1184
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1459
1185
|
case "ResourceNotFoundException":
|
|
1460
1186
|
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
1461
|
-
|
|
1462
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1463
|
-
name: errorCode,
|
|
1464
|
-
$metadata: deserializeMetadata(output),
|
|
1465
|
-
};
|
|
1466
|
-
break;
|
|
1187
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1467
1188
|
case "ValidationException":
|
|
1468
1189
|
case "com.amazonaws.ivs#ValidationException":
|
|
1469
|
-
|
|
1470
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1471
|
-
name: errorCode,
|
|
1472
|
-
$metadata: deserializeMetadata(output),
|
|
1473
|
-
};
|
|
1474
|
-
break;
|
|
1190
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1475
1191
|
default:
|
|
1476
1192
|
const parsedBody = parsedOutput.body;
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
...parsedBody,
|
|
1480
|
-
name: `${errorCode}`,
|
|
1481
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1193
|
+
response = new IvsServiceException_1.IvsServiceException({
|
|
1194
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1482
1195
|
$fault: "client",
|
|
1483
1196
|
$metadata: deserializeMetadata(output),
|
|
1484
|
-
};
|
|
1197
|
+
});
|
|
1198
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1485
1199
|
}
|
|
1486
|
-
const message = response.message || response.Message || errorCode;
|
|
1487
|
-
response.message = message;
|
|
1488
|
-
delete response.Message;
|
|
1489
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1490
1200
|
};
|
|
1491
1201
|
const deserializeAws_restJson1GetStreamCommand = async (output, context) => {
|
|
1492
1202
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1514,51 +1224,25 @@ const deserializeAws_restJson1GetStreamCommandError = async (output, context) =>
|
|
|
1514
1224
|
switch (errorCode) {
|
|
1515
1225
|
case "AccessDeniedException":
|
|
1516
1226
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
1517
|
-
|
|
1518
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1519
|
-
name: errorCode,
|
|
1520
|
-
$metadata: deserializeMetadata(output),
|
|
1521
|
-
};
|
|
1522
|
-
break;
|
|
1227
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1523
1228
|
case "ChannelNotBroadcasting":
|
|
1524
1229
|
case "com.amazonaws.ivs#ChannelNotBroadcasting":
|
|
1525
|
-
|
|
1526
|
-
...(await deserializeAws_restJson1ChannelNotBroadcastingResponse(parsedOutput, context)),
|
|
1527
|
-
name: errorCode,
|
|
1528
|
-
$metadata: deserializeMetadata(output),
|
|
1529
|
-
};
|
|
1530
|
-
break;
|
|
1230
|
+
throw await deserializeAws_restJson1ChannelNotBroadcastingResponse(parsedOutput, context);
|
|
1531
1231
|
case "ResourceNotFoundException":
|
|
1532
1232
|
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
1533
|
-
|
|
1534
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1535
|
-
name: errorCode,
|
|
1536
|
-
$metadata: deserializeMetadata(output),
|
|
1537
|
-
};
|
|
1538
|
-
break;
|
|
1233
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1539
1234
|
case "ValidationException":
|
|
1540
1235
|
case "com.amazonaws.ivs#ValidationException":
|
|
1541
|
-
|
|
1542
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1543
|
-
name: errorCode,
|
|
1544
|
-
$metadata: deserializeMetadata(output),
|
|
1545
|
-
};
|
|
1546
|
-
break;
|
|
1236
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1547
1237
|
default:
|
|
1548
1238
|
const parsedBody = parsedOutput.body;
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
...parsedBody,
|
|
1552
|
-
name: `${errorCode}`,
|
|
1553
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1239
|
+
response = new IvsServiceException_1.IvsServiceException({
|
|
1240
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1554
1241
|
$fault: "client",
|
|
1555
1242
|
$metadata: deserializeMetadata(output),
|
|
1556
|
-
};
|
|
1243
|
+
});
|
|
1244
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1557
1245
|
}
|
|
1558
|
-
const message = response.message || response.Message || errorCode;
|
|
1559
|
-
response.message = message;
|
|
1560
|
-
delete response.Message;
|
|
1561
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1562
1246
|
};
|
|
1563
1247
|
const deserializeAws_restJson1GetStreamKeyCommand = async (output, context) => {
|
|
1564
1248
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1586,43 +1270,22 @@ const deserializeAws_restJson1GetStreamKeyCommandError = async (output, context)
|
|
|
1586
1270
|
switch (errorCode) {
|
|
1587
1271
|
case "AccessDeniedException":
|
|
1588
1272
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
1589
|
-
|
|
1590
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1591
|
-
name: errorCode,
|
|
1592
|
-
$metadata: deserializeMetadata(output),
|
|
1593
|
-
};
|
|
1594
|
-
break;
|
|
1273
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1595
1274
|
case "ResourceNotFoundException":
|
|
1596
1275
|
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
1597
|
-
|
|
1598
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1599
|
-
name: errorCode,
|
|
1600
|
-
$metadata: deserializeMetadata(output),
|
|
1601
|
-
};
|
|
1602
|
-
break;
|
|
1276
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1603
1277
|
case "ValidationException":
|
|
1604
1278
|
case "com.amazonaws.ivs#ValidationException":
|
|
1605
|
-
|
|
1606
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1607
|
-
name: errorCode,
|
|
1608
|
-
$metadata: deserializeMetadata(output),
|
|
1609
|
-
};
|
|
1610
|
-
break;
|
|
1279
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1611
1280
|
default:
|
|
1612
1281
|
const parsedBody = parsedOutput.body;
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
...parsedBody,
|
|
1616
|
-
name: `${errorCode}`,
|
|
1617
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1282
|
+
response = new IvsServiceException_1.IvsServiceException({
|
|
1283
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1618
1284
|
$fault: "client",
|
|
1619
1285
|
$metadata: deserializeMetadata(output),
|
|
1620
|
-
};
|
|
1286
|
+
});
|
|
1287
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1621
1288
|
}
|
|
1622
|
-
const message = response.message || response.Message || errorCode;
|
|
1623
|
-
response.message = message;
|
|
1624
|
-
delete response.Message;
|
|
1625
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1626
1289
|
};
|
|
1627
1290
|
const deserializeAws_restJson1GetStreamSessionCommand = async (output, context) => {
|
|
1628
1291
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1650,43 +1313,22 @@ const deserializeAws_restJson1GetStreamSessionCommandError = async (output, cont
|
|
|
1650
1313
|
switch (errorCode) {
|
|
1651
1314
|
case "AccessDeniedException":
|
|
1652
1315
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
1653
|
-
|
|
1654
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1655
|
-
name: errorCode,
|
|
1656
|
-
$metadata: deserializeMetadata(output),
|
|
1657
|
-
};
|
|
1658
|
-
break;
|
|
1316
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1659
1317
|
case "ResourceNotFoundException":
|
|
1660
1318
|
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
1661
|
-
|
|
1662
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1663
|
-
name: errorCode,
|
|
1664
|
-
$metadata: deserializeMetadata(output),
|
|
1665
|
-
};
|
|
1666
|
-
break;
|
|
1319
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1667
1320
|
case "ValidationException":
|
|
1668
1321
|
case "com.amazonaws.ivs#ValidationException":
|
|
1669
|
-
|
|
1670
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1671
|
-
name: errorCode,
|
|
1672
|
-
$metadata: deserializeMetadata(output),
|
|
1673
|
-
};
|
|
1674
|
-
break;
|
|
1322
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1675
1323
|
default:
|
|
1676
1324
|
const parsedBody = parsedOutput.body;
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
...parsedBody,
|
|
1680
|
-
name: `${errorCode}`,
|
|
1681
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1325
|
+
response = new IvsServiceException_1.IvsServiceException({
|
|
1326
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1682
1327
|
$fault: "client",
|
|
1683
1328
|
$metadata: deserializeMetadata(output),
|
|
1684
|
-
};
|
|
1329
|
+
});
|
|
1330
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1685
1331
|
}
|
|
1686
|
-
const message = response.message || response.Message || errorCode;
|
|
1687
|
-
response.message = message;
|
|
1688
|
-
delete response.Message;
|
|
1689
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1690
1332
|
};
|
|
1691
1333
|
const deserializeAws_restJson1ImportPlaybackKeyPairCommand = async (output, context) => {
|
|
1692
1334
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1714,59 +1356,28 @@ const deserializeAws_restJson1ImportPlaybackKeyPairCommandError = async (output,
|
|
|
1714
1356
|
switch (errorCode) {
|
|
1715
1357
|
case "AccessDeniedException":
|
|
1716
1358
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
1717
|
-
|
|
1718
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1719
|
-
name: errorCode,
|
|
1720
|
-
$metadata: deserializeMetadata(output),
|
|
1721
|
-
};
|
|
1722
|
-
break;
|
|
1359
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1723
1360
|
case "ConflictException":
|
|
1724
1361
|
case "com.amazonaws.ivs#ConflictException":
|
|
1725
|
-
|
|
1726
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1727
|
-
name: errorCode,
|
|
1728
|
-
$metadata: deserializeMetadata(output),
|
|
1729
|
-
};
|
|
1730
|
-
break;
|
|
1362
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1731
1363
|
case "PendingVerification":
|
|
1732
1364
|
case "com.amazonaws.ivs#PendingVerification":
|
|
1733
|
-
|
|
1734
|
-
...(await deserializeAws_restJson1PendingVerificationResponse(parsedOutput, context)),
|
|
1735
|
-
name: errorCode,
|
|
1736
|
-
$metadata: deserializeMetadata(output),
|
|
1737
|
-
};
|
|
1738
|
-
break;
|
|
1365
|
+
throw await deserializeAws_restJson1PendingVerificationResponse(parsedOutput, context);
|
|
1739
1366
|
case "ServiceQuotaExceededException":
|
|
1740
1367
|
case "com.amazonaws.ivs#ServiceQuotaExceededException":
|
|
1741
|
-
|
|
1742
|
-
...(await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
1743
|
-
name: errorCode,
|
|
1744
|
-
$metadata: deserializeMetadata(output),
|
|
1745
|
-
};
|
|
1746
|
-
break;
|
|
1368
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
1747
1369
|
case "ValidationException":
|
|
1748
1370
|
case "com.amazonaws.ivs#ValidationException":
|
|
1749
|
-
|
|
1750
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1751
|
-
name: errorCode,
|
|
1752
|
-
$metadata: deserializeMetadata(output),
|
|
1753
|
-
};
|
|
1754
|
-
break;
|
|
1371
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1755
1372
|
default:
|
|
1756
1373
|
const parsedBody = parsedOutput.body;
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
...parsedBody,
|
|
1760
|
-
name: `${errorCode}`,
|
|
1761
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1374
|
+
response = new IvsServiceException_1.IvsServiceException({
|
|
1375
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1762
1376
|
$fault: "client",
|
|
1763
1377
|
$metadata: deserializeMetadata(output),
|
|
1764
|
-
};
|
|
1378
|
+
});
|
|
1379
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1765
1380
|
}
|
|
1766
|
-
const message = response.message || response.Message || errorCode;
|
|
1767
|
-
response.message = message;
|
|
1768
|
-
delete response.Message;
|
|
1769
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1770
1381
|
};
|
|
1771
1382
|
const deserializeAws_restJson1ListChannelsCommand = async (output, context) => {
|
|
1772
1383
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1798,43 +1409,22 @@ const deserializeAws_restJson1ListChannelsCommandError = async (output, context)
|
|
|
1798
1409
|
switch (errorCode) {
|
|
1799
1410
|
case "AccessDeniedException":
|
|
1800
1411
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
1801
|
-
|
|
1802
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1803
|
-
name: errorCode,
|
|
1804
|
-
$metadata: deserializeMetadata(output),
|
|
1805
|
-
};
|
|
1806
|
-
break;
|
|
1412
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1807
1413
|
case "ConflictException":
|
|
1808
1414
|
case "com.amazonaws.ivs#ConflictException":
|
|
1809
|
-
|
|
1810
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1811
|
-
name: errorCode,
|
|
1812
|
-
$metadata: deserializeMetadata(output),
|
|
1813
|
-
};
|
|
1814
|
-
break;
|
|
1415
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1815
1416
|
case "ValidationException":
|
|
1816
1417
|
case "com.amazonaws.ivs#ValidationException":
|
|
1817
|
-
|
|
1818
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1819
|
-
name: errorCode,
|
|
1820
|
-
$metadata: deserializeMetadata(output),
|
|
1821
|
-
};
|
|
1822
|
-
break;
|
|
1418
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1823
1419
|
default:
|
|
1824
1420
|
const parsedBody = parsedOutput.body;
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
...parsedBody,
|
|
1828
|
-
name: `${errorCode}`,
|
|
1829
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1421
|
+
response = new IvsServiceException_1.IvsServiceException({
|
|
1422
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1830
1423
|
$fault: "client",
|
|
1831
1424
|
$metadata: deserializeMetadata(output),
|
|
1832
|
-
};
|
|
1425
|
+
});
|
|
1426
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1833
1427
|
}
|
|
1834
|
-
const message = response.message || response.Message || errorCode;
|
|
1835
|
-
response.message = message;
|
|
1836
|
-
delete response.Message;
|
|
1837
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1838
1428
|
};
|
|
1839
1429
|
const deserializeAws_restJson1ListPlaybackKeyPairsCommand = async (output, context) => {
|
|
1840
1430
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1866,35 +1456,19 @@ const deserializeAws_restJson1ListPlaybackKeyPairsCommandError = async (output,
|
|
|
1866
1456
|
switch (errorCode) {
|
|
1867
1457
|
case "AccessDeniedException":
|
|
1868
1458
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
1869
|
-
|
|
1870
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1871
|
-
name: errorCode,
|
|
1872
|
-
$metadata: deserializeMetadata(output),
|
|
1873
|
-
};
|
|
1874
|
-
break;
|
|
1459
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1875
1460
|
case "ValidationException":
|
|
1876
1461
|
case "com.amazonaws.ivs#ValidationException":
|
|
1877
|
-
|
|
1878
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1879
|
-
name: errorCode,
|
|
1880
|
-
$metadata: deserializeMetadata(output),
|
|
1881
|
-
};
|
|
1882
|
-
break;
|
|
1462
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1883
1463
|
default:
|
|
1884
1464
|
const parsedBody = parsedOutput.body;
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
...parsedBody,
|
|
1888
|
-
name: `${errorCode}`,
|
|
1889
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1465
|
+
response = new IvsServiceException_1.IvsServiceException({
|
|
1466
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1890
1467
|
$fault: "client",
|
|
1891
1468
|
$metadata: deserializeMetadata(output),
|
|
1892
|
-
};
|
|
1469
|
+
});
|
|
1470
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1893
1471
|
}
|
|
1894
|
-
const message = response.message || response.Message || errorCode;
|
|
1895
|
-
response.message = message;
|
|
1896
|
-
delete response.Message;
|
|
1897
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1898
1472
|
};
|
|
1899
1473
|
const deserializeAws_restJson1ListRecordingConfigurationsCommand = async (output, context) => {
|
|
1900
1474
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1926,43 +1500,22 @@ const deserializeAws_restJson1ListRecordingConfigurationsCommandError = async (o
|
|
|
1926
1500
|
switch (errorCode) {
|
|
1927
1501
|
case "AccessDeniedException":
|
|
1928
1502
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
1929
|
-
|
|
1930
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1931
|
-
name: errorCode,
|
|
1932
|
-
$metadata: deserializeMetadata(output),
|
|
1933
|
-
};
|
|
1934
|
-
break;
|
|
1503
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1935
1504
|
case "InternalServerException":
|
|
1936
1505
|
case "com.amazonaws.ivs#InternalServerException":
|
|
1937
|
-
|
|
1938
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1939
|
-
name: errorCode,
|
|
1940
|
-
$metadata: deserializeMetadata(output),
|
|
1941
|
-
};
|
|
1942
|
-
break;
|
|
1506
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1943
1507
|
case "ValidationException":
|
|
1944
1508
|
case "com.amazonaws.ivs#ValidationException":
|
|
1945
|
-
|
|
1946
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1947
|
-
name: errorCode,
|
|
1948
|
-
$metadata: deserializeMetadata(output),
|
|
1949
|
-
};
|
|
1950
|
-
break;
|
|
1509
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1951
1510
|
default:
|
|
1952
1511
|
const parsedBody = parsedOutput.body;
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
...parsedBody,
|
|
1956
|
-
name: `${errorCode}`,
|
|
1957
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1512
|
+
response = new IvsServiceException_1.IvsServiceException({
|
|
1513
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1958
1514
|
$fault: "client",
|
|
1959
1515
|
$metadata: deserializeMetadata(output),
|
|
1960
|
-
};
|
|
1516
|
+
});
|
|
1517
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1961
1518
|
}
|
|
1962
|
-
const message = response.message || response.Message || errorCode;
|
|
1963
|
-
response.message = message;
|
|
1964
|
-
delete response.Message;
|
|
1965
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1966
1519
|
};
|
|
1967
1520
|
const deserializeAws_restJson1ListStreamKeysCommand = async (output, context) => {
|
|
1968
1521
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1994,43 +1547,22 @@ const deserializeAws_restJson1ListStreamKeysCommandError = async (output, contex
|
|
|
1994
1547
|
switch (errorCode) {
|
|
1995
1548
|
case "AccessDeniedException":
|
|
1996
1549
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
1997
|
-
|
|
1998
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1999
|
-
name: errorCode,
|
|
2000
|
-
$metadata: deserializeMetadata(output),
|
|
2001
|
-
};
|
|
2002
|
-
break;
|
|
1550
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2003
1551
|
case "ResourceNotFoundException":
|
|
2004
1552
|
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
2005
|
-
|
|
2006
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2007
|
-
name: errorCode,
|
|
2008
|
-
$metadata: deserializeMetadata(output),
|
|
2009
|
-
};
|
|
2010
|
-
break;
|
|
1553
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2011
1554
|
case "ValidationException":
|
|
2012
1555
|
case "com.amazonaws.ivs#ValidationException":
|
|
2013
|
-
|
|
2014
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2015
|
-
name: errorCode,
|
|
2016
|
-
$metadata: deserializeMetadata(output),
|
|
2017
|
-
};
|
|
2018
|
-
break;
|
|
1556
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2019
1557
|
default:
|
|
2020
1558
|
const parsedBody = parsedOutput.body;
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
...parsedBody,
|
|
2024
|
-
name: `${errorCode}`,
|
|
2025
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1559
|
+
response = new IvsServiceException_1.IvsServiceException({
|
|
1560
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2026
1561
|
$fault: "client",
|
|
2027
1562
|
$metadata: deserializeMetadata(output),
|
|
2028
|
-
};
|
|
1563
|
+
});
|
|
1564
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2029
1565
|
}
|
|
2030
|
-
const message = response.message || response.Message || errorCode;
|
|
2031
|
-
response.message = message;
|
|
2032
|
-
delete response.Message;
|
|
2033
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2034
1566
|
};
|
|
2035
1567
|
const deserializeAws_restJson1ListStreamsCommand = async (output, context) => {
|
|
2036
1568
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2062,35 +1594,19 @@ const deserializeAws_restJson1ListStreamsCommandError = async (output, context)
|
|
|
2062
1594
|
switch (errorCode) {
|
|
2063
1595
|
case "AccessDeniedException":
|
|
2064
1596
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
2065
|
-
|
|
2066
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2067
|
-
name: errorCode,
|
|
2068
|
-
$metadata: deserializeMetadata(output),
|
|
2069
|
-
};
|
|
2070
|
-
break;
|
|
1597
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2071
1598
|
case "ValidationException":
|
|
2072
1599
|
case "com.amazonaws.ivs#ValidationException":
|
|
2073
|
-
|
|
2074
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2075
|
-
name: errorCode,
|
|
2076
|
-
$metadata: deserializeMetadata(output),
|
|
2077
|
-
};
|
|
2078
|
-
break;
|
|
1600
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2079
1601
|
default:
|
|
2080
1602
|
const parsedBody = parsedOutput.body;
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
...parsedBody,
|
|
2084
|
-
name: `${errorCode}`,
|
|
2085
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1603
|
+
response = new IvsServiceException_1.IvsServiceException({
|
|
1604
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2086
1605
|
$fault: "client",
|
|
2087
1606
|
$metadata: deserializeMetadata(output),
|
|
2088
|
-
};
|
|
1607
|
+
});
|
|
1608
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2089
1609
|
}
|
|
2090
|
-
const message = response.message || response.Message || errorCode;
|
|
2091
|
-
response.message = message;
|
|
2092
|
-
delete response.Message;
|
|
2093
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2094
1610
|
};
|
|
2095
1611
|
const deserializeAws_restJson1ListStreamSessionsCommand = async (output, context) => {
|
|
2096
1612
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2122,43 +1638,22 @@ const deserializeAws_restJson1ListStreamSessionsCommandError = async (output, co
|
|
|
2122
1638
|
switch (errorCode) {
|
|
2123
1639
|
case "AccessDeniedException":
|
|
2124
1640
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
2125
|
-
|
|
2126
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2127
|
-
name: errorCode,
|
|
2128
|
-
$metadata: deserializeMetadata(output),
|
|
2129
|
-
};
|
|
2130
|
-
break;
|
|
1641
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2131
1642
|
case "ResourceNotFoundException":
|
|
2132
1643
|
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
2133
|
-
|
|
2134
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2135
|
-
name: errorCode,
|
|
2136
|
-
$metadata: deserializeMetadata(output),
|
|
2137
|
-
};
|
|
2138
|
-
break;
|
|
1644
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2139
1645
|
case "ValidationException":
|
|
2140
1646
|
case "com.amazonaws.ivs#ValidationException":
|
|
2141
|
-
|
|
2142
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2143
|
-
name: errorCode,
|
|
2144
|
-
$metadata: deserializeMetadata(output),
|
|
2145
|
-
};
|
|
2146
|
-
break;
|
|
1647
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2147
1648
|
default:
|
|
2148
1649
|
const parsedBody = parsedOutput.body;
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
...parsedBody,
|
|
2152
|
-
name: `${errorCode}`,
|
|
2153
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1650
|
+
response = new IvsServiceException_1.IvsServiceException({
|
|
1651
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2154
1652
|
$fault: "client",
|
|
2155
1653
|
$metadata: deserializeMetadata(output),
|
|
2156
|
-
};
|
|
1654
|
+
});
|
|
1655
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2157
1656
|
}
|
|
2158
|
-
const message = response.message || response.Message || errorCode;
|
|
2159
|
-
response.message = message;
|
|
2160
|
-
delete response.Message;
|
|
2161
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2162
1657
|
};
|
|
2163
1658
|
const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
2164
1659
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2186,43 +1681,22 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2186
1681
|
switch (errorCode) {
|
|
2187
1682
|
case "InternalServerException":
|
|
2188
1683
|
case "com.amazonaws.ivs#InternalServerException":
|
|
2189
|
-
|
|
2190
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2191
|
-
name: errorCode,
|
|
2192
|
-
$metadata: deserializeMetadata(output),
|
|
2193
|
-
};
|
|
2194
|
-
break;
|
|
1684
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2195
1685
|
case "ResourceNotFoundException":
|
|
2196
1686
|
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
2197
|
-
|
|
2198
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2199
|
-
name: errorCode,
|
|
2200
|
-
$metadata: deserializeMetadata(output),
|
|
2201
|
-
};
|
|
2202
|
-
break;
|
|
1687
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2203
1688
|
case "ValidationException":
|
|
2204
1689
|
case "com.amazonaws.ivs#ValidationException":
|
|
2205
|
-
|
|
2206
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2207
|
-
name: errorCode,
|
|
2208
|
-
$metadata: deserializeMetadata(output),
|
|
2209
|
-
};
|
|
2210
|
-
break;
|
|
1690
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2211
1691
|
default:
|
|
2212
1692
|
const parsedBody = parsedOutput.body;
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
...parsedBody,
|
|
2216
|
-
name: `${errorCode}`,
|
|
2217
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1693
|
+
response = new IvsServiceException_1.IvsServiceException({
|
|
1694
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2218
1695
|
$fault: "client",
|
|
2219
1696
|
$metadata: deserializeMetadata(output),
|
|
2220
|
-
};
|
|
1697
|
+
});
|
|
1698
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2221
1699
|
}
|
|
2222
|
-
const message = response.message || response.Message || errorCode;
|
|
2223
|
-
response.message = message;
|
|
2224
|
-
delete response.Message;
|
|
2225
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2226
1700
|
};
|
|
2227
1701
|
const deserializeAws_restJson1PutMetadataCommand = async (output, context) => {
|
|
2228
1702
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2246,59 +1720,28 @@ const deserializeAws_restJson1PutMetadataCommandError = async (output, context)
|
|
|
2246
1720
|
switch (errorCode) {
|
|
2247
1721
|
case "AccessDeniedException":
|
|
2248
1722
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
2249
|
-
|
|
2250
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2251
|
-
name: errorCode,
|
|
2252
|
-
$metadata: deserializeMetadata(output),
|
|
2253
|
-
};
|
|
2254
|
-
break;
|
|
1723
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2255
1724
|
case "ChannelNotBroadcasting":
|
|
2256
1725
|
case "com.amazonaws.ivs#ChannelNotBroadcasting":
|
|
2257
|
-
|
|
2258
|
-
...(await deserializeAws_restJson1ChannelNotBroadcastingResponse(parsedOutput, context)),
|
|
2259
|
-
name: errorCode,
|
|
2260
|
-
$metadata: deserializeMetadata(output),
|
|
2261
|
-
};
|
|
2262
|
-
break;
|
|
1726
|
+
throw await deserializeAws_restJson1ChannelNotBroadcastingResponse(parsedOutput, context);
|
|
2263
1727
|
case "ResourceNotFoundException":
|
|
2264
1728
|
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
2265
|
-
|
|
2266
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2267
|
-
name: errorCode,
|
|
2268
|
-
$metadata: deserializeMetadata(output),
|
|
2269
|
-
};
|
|
2270
|
-
break;
|
|
1729
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2271
1730
|
case "ThrottlingException":
|
|
2272
1731
|
case "com.amazonaws.ivs#ThrottlingException":
|
|
2273
|
-
|
|
2274
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2275
|
-
name: errorCode,
|
|
2276
|
-
$metadata: deserializeMetadata(output),
|
|
2277
|
-
};
|
|
2278
|
-
break;
|
|
1732
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2279
1733
|
case "ValidationException":
|
|
2280
1734
|
case "com.amazonaws.ivs#ValidationException":
|
|
2281
|
-
|
|
2282
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2283
|
-
name: errorCode,
|
|
2284
|
-
$metadata: deserializeMetadata(output),
|
|
2285
|
-
};
|
|
2286
|
-
break;
|
|
1735
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2287
1736
|
default:
|
|
2288
1737
|
const parsedBody = parsedOutput.body;
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
...parsedBody,
|
|
2292
|
-
name: `${errorCode}`,
|
|
2293
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1738
|
+
response = new IvsServiceException_1.IvsServiceException({
|
|
1739
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2294
1740
|
$fault: "client",
|
|
2295
1741
|
$metadata: deserializeMetadata(output),
|
|
2296
|
-
};
|
|
1742
|
+
});
|
|
1743
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2297
1744
|
}
|
|
2298
|
-
const message = response.message || response.Message || errorCode;
|
|
2299
|
-
response.message = message;
|
|
2300
|
-
delete response.Message;
|
|
2301
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2302
1745
|
};
|
|
2303
1746
|
const deserializeAws_restJson1StopStreamCommand = async (output, context) => {
|
|
2304
1747
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2322,59 +1765,28 @@ const deserializeAws_restJson1StopStreamCommandError = async (output, context) =
|
|
|
2322
1765
|
switch (errorCode) {
|
|
2323
1766
|
case "AccessDeniedException":
|
|
2324
1767
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
2325
|
-
|
|
2326
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2327
|
-
name: errorCode,
|
|
2328
|
-
$metadata: deserializeMetadata(output),
|
|
2329
|
-
};
|
|
2330
|
-
break;
|
|
1768
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2331
1769
|
case "ChannelNotBroadcasting":
|
|
2332
1770
|
case "com.amazonaws.ivs#ChannelNotBroadcasting":
|
|
2333
|
-
|
|
2334
|
-
...(await deserializeAws_restJson1ChannelNotBroadcastingResponse(parsedOutput, context)),
|
|
2335
|
-
name: errorCode,
|
|
2336
|
-
$metadata: deserializeMetadata(output),
|
|
2337
|
-
};
|
|
2338
|
-
break;
|
|
1771
|
+
throw await deserializeAws_restJson1ChannelNotBroadcastingResponse(parsedOutput, context);
|
|
2339
1772
|
case "ResourceNotFoundException":
|
|
2340
1773
|
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
2341
|
-
|
|
2342
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2343
|
-
name: errorCode,
|
|
2344
|
-
$metadata: deserializeMetadata(output),
|
|
2345
|
-
};
|
|
2346
|
-
break;
|
|
1774
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2347
1775
|
case "StreamUnavailable":
|
|
2348
1776
|
case "com.amazonaws.ivs#StreamUnavailable":
|
|
2349
|
-
|
|
2350
|
-
...(await deserializeAws_restJson1StreamUnavailableResponse(parsedOutput, context)),
|
|
2351
|
-
name: errorCode,
|
|
2352
|
-
$metadata: deserializeMetadata(output),
|
|
2353
|
-
};
|
|
2354
|
-
break;
|
|
1777
|
+
throw await deserializeAws_restJson1StreamUnavailableResponse(parsedOutput, context);
|
|
2355
1778
|
case "ValidationException":
|
|
2356
1779
|
case "com.amazonaws.ivs#ValidationException":
|
|
2357
|
-
|
|
2358
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2359
|
-
name: errorCode,
|
|
2360
|
-
$metadata: deserializeMetadata(output),
|
|
2361
|
-
};
|
|
2362
|
-
break;
|
|
1780
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2363
1781
|
default:
|
|
2364
1782
|
const parsedBody = parsedOutput.body;
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
...parsedBody,
|
|
2368
|
-
name: `${errorCode}`,
|
|
2369
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1783
|
+
response = new IvsServiceException_1.IvsServiceException({
|
|
1784
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2370
1785
|
$fault: "client",
|
|
2371
1786
|
$metadata: deserializeMetadata(output),
|
|
2372
|
-
};
|
|
1787
|
+
});
|
|
1788
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2373
1789
|
}
|
|
2374
|
-
const message = response.message || response.Message || errorCode;
|
|
2375
|
-
response.message = message;
|
|
2376
|
-
delete response.Message;
|
|
2377
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2378
1790
|
};
|
|
2379
1791
|
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
2380
1792
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2398,43 +1810,22 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2398
1810
|
switch (errorCode) {
|
|
2399
1811
|
case "InternalServerException":
|
|
2400
1812
|
case "com.amazonaws.ivs#InternalServerException":
|
|
2401
|
-
|
|
2402
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2403
|
-
name: errorCode,
|
|
2404
|
-
$metadata: deserializeMetadata(output),
|
|
2405
|
-
};
|
|
2406
|
-
break;
|
|
1813
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2407
1814
|
case "ResourceNotFoundException":
|
|
2408
1815
|
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
2409
|
-
|
|
2410
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2411
|
-
name: errorCode,
|
|
2412
|
-
$metadata: deserializeMetadata(output),
|
|
2413
|
-
};
|
|
2414
|
-
break;
|
|
1816
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2415
1817
|
case "ValidationException":
|
|
2416
1818
|
case "com.amazonaws.ivs#ValidationException":
|
|
2417
|
-
|
|
2418
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2419
|
-
name: errorCode,
|
|
2420
|
-
$metadata: deserializeMetadata(output),
|
|
2421
|
-
};
|
|
2422
|
-
break;
|
|
1819
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2423
1820
|
default:
|
|
2424
1821
|
const parsedBody = parsedOutput.body;
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
...parsedBody,
|
|
2428
|
-
name: `${errorCode}`,
|
|
2429
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1822
|
+
response = new IvsServiceException_1.IvsServiceException({
|
|
1823
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2430
1824
|
$fault: "client",
|
|
2431
1825
|
$metadata: deserializeMetadata(output),
|
|
2432
|
-
};
|
|
1826
|
+
});
|
|
1827
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2433
1828
|
}
|
|
2434
|
-
const message = response.message || response.Message || errorCode;
|
|
2435
|
-
response.message = message;
|
|
2436
|
-
delete response.Message;
|
|
2437
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2438
1829
|
};
|
|
2439
1830
|
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
2440
1831
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2458,43 +1849,22 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2458
1849
|
switch (errorCode) {
|
|
2459
1850
|
case "InternalServerException":
|
|
2460
1851
|
case "com.amazonaws.ivs#InternalServerException":
|
|
2461
|
-
|
|
2462
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2463
|
-
name: errorCode,
|
|
2464
|
-
$metadata: deserializeMetadata(output),
|
|
2465
|
-
};
|
|
2466
|
-
break;
|
|
1852
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2467
1853
|
case "ResourceNotFoundException":
|
|
2468
1854
|
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
2469
|
-
|
|
2470
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2471
|
-
name: errorCode,
|
|
2472
|
-
$metadata: deserializeMetadata(output),
|
|
2473
|
-
};
|
|
2474
|
-
break;
|
|
1855
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2475
1856
|
case "ValidationException":
|
|
2476
1857
|
case "com.amazonaws.ivs#ValidationException":
|
|
2477
|
-
|
|
2478
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2479
|
-
name: errorCode,
|
|
2480
|
-
$metadata: deserializeMetadata(output),
|
|
2481
|
-
};
|
|
2482
|
-
break;
|
|
1858
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2483
1859
|
default:
|
|
2484
1860
|
const parsedBody = parsedOutput.body;
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
...parsedBody,
|
|
2488
|
-
name: `${errorCode}`,
|
|
2489
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1861
|
+
response = new IvsServiceException_1.IvsServiceException({
|
|
1862
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2490
1863
|
$fault: "client",
|
|
2491
1864
|
$metadata: deserializeMetadata(output),
|
|
2492
|
-
};
|
|
1865
|
+
});
|
|
1866
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2493
1867
|
}
|
|
2494
|
-
const message = response.message || response.Message || errorCode;
|
|
2495
|
-
response.message = message;
|
|
2496
|
-
delete response.Message;
|
|
2497
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2498
1868
|
};
|
|
2499
1869
|
const deserializeAws_restJson1UpdateChannelCommand = async (output, context) => {
|
|
2500
1870
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2522,189 +1892,148 @@ const deserializeAws_restJson1UpdateChannelCommandError = async (output, context
|
|
|
2522
1892
|
switch (errorCode) {
|
|
2523
1893
|
case "AccessDeniedException":
|
|
2524
1894
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
2525
|
-
|
|
2526
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2527
|
-
name: errorCode,
|
|
2528
|
-
$metadata: deserializeMetadata(output),
|
|
2529
|
-
};
|
|
2530
|
-
break;
|
|
1895
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2531
1896
|
case "ConflictException":
|
|
2532
1897
|
case "com.amazonaws.ivs#ConflictException":
|
|
2533
|
-
|
|
2534
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
2535
|
-
name: errorCode,
|
|
2536
|
-
$metadata: deserializeMetadata(output),
|
|
2537
|
-
};
|
|
2538
|
-
break;
|
|
1898
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2539
1899
|
case "PendingVerification":
|
|
2540
1900
|
case "com.amazonaws.ivs#PendingVerification":
|
|
2541
|
-
|
|
2542
|
-
...(await deserializeAws_restJson1PendingVerificationResponse(parsedOutput, context)),
|
|
2543
|
-
name: errorCode,
|
|
2544
|
-
$metadata: deserializeMetadata(output),
|
|
2545
|
-
};
|
|
2546
|
-
break;
|
|
1901
|
+
throw await deserializeAws_restJson1PendingVerificationResponse(parsedOutput, context);
|
|
2547
1902
|
case "ResourceNotFoundException":
|
|
2548
1903
|
case "com.amazonaws.ivs#ResourceNotFoundException":
|
|
2549
|
-
|
|
2550
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2551
|
-
name: errorCode,
|
|
2552
|
-
$metadata: deserializeMetadata(output),
|
|
2553
|
-
};
|
|
2554
|
-
break;
|
|
1904
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2555
1905
|
case "ValidationException":
|
|
2556
1906
|
case "com.amazonaws.ivs#ValidationException":
|
|
2557
|
-
|
|
2558
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2559
|
-
name: errorCode,
|
|
2560
|
-
$metadata: deserializeMetadata(output),
|
|
2561
|
-
};
|
|
2562
|
-
break;
|
|
1907
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2563
1908
|
default:
|
|
2564
1909
|
const parsedBody = parsedOutput.body;
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
...parsedBody,
|
|
2568
|
-
name: `${errorCode}`,
|
|
2569
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1910
|
+
response = new IvsServiceException_1.IvsServiceException({
|
|
1911
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2570
1912
|
$fault: "client",
|
|
2571
1913
|
$metadata: deserializeMetadata(output),
|
|
2572
|
-
};
|
|
1914
|
+
});
|
|
1915
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2573
1916
|
}
|
|
2574
|
-
const message = response.message || response.Message || errorCode;
|
|
2575
|
-
response.message = message;
|
|
2576
|
-
delete response.Message;
|
|
2577
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2578
1917
|
};
|
|
2579
1918
|
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
2580
|
-
const contents = {
|
|
2581
|
-
name: "AccessDeniedException",
|
|
2582
|
-
$fault: "client",
|
|
2583
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2584
|
-
exceptionMessage: undefined,
|
|
2585
|
-
};
|
|
1919
|
+
const contents = {};
|
|
2586
1920
|
const data = parsedOutput.body;
|
|
2587
1921
|
if (data.exceptionMessage !== undefined && data.exceptionMessage !== null) {
|
|
2588
1922
|
contents.exceptionMessage = smithy_client_1.expectString(data.exceptionMessage);
|
|
2589
1923
|
}
|
|
2590
|
-
|
|
1924
|
+
const exception = new models_0_1.AccessDeniedException({
|
|
1925
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1926
|
+
...contents,
|
|
1927
|
+
});
|
|
1928
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2591
1929
|
};
|
|
2592
1930
|
const deserializeAws_restJson1ChannelNotBroadcastingResponse = async (parsedOutput, context) => {
|
|
2593
|
-
const contents = {
|
|
2594
|
-
name: "ChannelNotBroadcasting",
|
|
2595
|
-
$fault: "client",
|
|
2596
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2597
|
-
exceptionMessage: undefined,
|
|
2598
|
-
};
|
|
1931
|
+
const contents = {};
|
|
2599
1932
|
const data = parsedOutput.body;
|
|
2600
1933
|
if (data.exceptionMessage !== undefined && data.exceptionMessage !== null) {
|
|
2601
1934
|
contents.exceptionMessage = smithy_client_1.expectString(data.exceptionMessage);
|
|
2602
1935
|
}
|
|
2603
|
-
|
|
1936
|
+
const exception = new models_0_1.ChannelNotBroadcasting({
|
|
1937
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1938
|
+
...contents,
|
|
1939
|
+
});
|
|
1940
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2604
1941
|
};
|
|
2605
1942
|
const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
2606
|
-
const contents = {
|
|
2607
|
-
name: "ConflictException",
|
|
2608
|
-
$fault: "client",
|
|
2609
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2610
|
-
exceptionMessage: undefined,
|
|
2611
|
-
};
|
|
1943
|
+
const contents = {};
|
|
2612
1944
|
const data = parsedOutput.body;
|
|
2613
1945
|
if (data.exceptionMessage !== undefined && data.exceptionMessage !== null) {
|
|
2614
1946
|
contents.exceptionMessage = smithy_client_1.expectString(data.exceptionMessage);
|
|
2615
1947
|
}
|
|
2616
|
-
|
|
1948
|
+
const exception = new models_0_1.ConflictException({
|
|
1949
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1950
|
+
...contents,
|
|
1951
|
+
});
|
|
1952
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2617
1953
|
};
|
|
2618
1954
|
const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
2619
|
-
const contents = {
|
|
2620
|
-
name: "InternalServerException",
|
|
2621
|
-
$fault: "server",
|
|
2622
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2623
|
-
exceptionMessage: undefined,
|
|
2624
|
-
};
|
|
1955
|
+
const contents = {};
|
|
2625
1956
|
const data = parsedOutput.body;
|
|
2626
1957
|
if (data.exceptionMessage !== undefined && data.exceptionMessage !== null) {
|
|
2627
1958
|
contents.exceptionMessage = smithy_client_1.expectString(data.exceptionMessage);
|
|
2628
1959
|
}
|
|
2629
|
-
|
|
1960
|
+
const exception = new models_0_1.InternalServerException({
|
|
1961
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1962
|
+
...contents,
|
|
1963
|
+
});
|
|
1964
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2630
1965
|
};
|
|
2631
1966
|
const deserializeAws_restJson1PendingVerificationResponse = async (parsedOutput, context) => {
|
|
2632
|
-
const contents = {
|
|
2633
|
-
name: "PendingVerification",
|
|
2634
|
-
$fault: "client",
|
|
2635
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2636
|
-
exceptionMessage: undefined,
|
|
2637
|
-
};
|
|
1967
|
+
const contents = {};
|
|
2638
1968
|
const data = parsedOutput.body;
|
|
2639
1969
|
if (data.exceptionMessage !== undefined && data.exceptionMessage !== null) {
|
|
2640
1970
|
contents.exceptionMessage = smithy_client_1.expectString(data.exceptionMessage);
|
|
2641
1971
|
}
|
|
2642
|
-
|
|
1972
|
+
const exception = new models_0_1.PendingVerification({
|
|
1973
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1974
|
+
...contents,
|
|
1975
|
+
});
|
|
1976
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2643
1977
|
};
|
|
2644
1978
|
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
2645
|
-
const contents = {
|
|
2646
|
-
name: "ResourceNotFoundException",
|
|
2647
|
-
$fault: "client",
|
|
2648
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2649
|
-
exceptionMessage: undefined,
|
|
2650
|
-
};
|
|
1979
|
+
const contents = {};
|
|
2651
1980
|
const data = parsedOutput.body;
|
|
2652
1981
|
if (data.exceptionMessage !== undefined && data.exceptionMessage !== null) {
|
|
2653
1982
|
contents.exceptionMessage = smithy_client_1.expectString(data.exceptionMessage);
|
|
2654
1983
|
}
|
|
2655
|
-
|
|
1984
|
+
const exception = new models_0_1.ResourceNotFoundException({
|
|
1985
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1986
|
+
...contents,
|
|
1987
|
+
});
|
|
1988
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2656
1989
|
};
|
|
2657
1990
|
const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
|
|
2658
|
-
const contents = {
|
|
2659
|
-
name: "ServiceQuotaExceededException",
|
|
2660
|
-
$fault: "client",
|
|
2661
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2662
|
-
exceptionMessage: undefined,
|
|
2663
|
-
};
|
|
1991
|
+
const contents = {};
|
|
2664
1992
|
const data = parsedOutput.body;
|
|
2665
1993
|
if (data.exceptionMessage !== undefined && data.exceptionMessage !== null) {
|
|
2666
1994
|
contents.exceptionMessage = smithy_client_1.expectString(data.exceptionMessage);
|
|
2667
1995
|
}
|
|
2668
|
-
|
|
1996
|
+
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
1997
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1998
|
+
...contents,
|
|
1999
|
+
});
|
|
2000
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2669
2001
|
};
|
|
2670
2002
|
const deserializeAws_restJson1StreamUnavailableResponse = async (parsedOutput, context) => {
|
|
2671
|
-
const contents = {
|
|
2672
|
-
name: "StreamUnavailable",
|
|
2673
|
-
$fault: "server",
|
|
2674
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2675
|
-
exceptionMessage: undefined,
|
|
2676
|
-
};
|
|
2003
|
+
const contents = {};
|
|
2677
2004
|
const data = parsedOutput.body;
|
|
2678
2005
|
if (data.exceptionMessage !== undefined && data.exceptionMessage !== null) {
|
|
2679
2006
|
contents.exceptionMessage = smithy_client_1.expectString(data.exceptionMessage);
|
|
2680
2007
|
}
|
|
2681
|
-
|
|
2008
|
+
const exception = new models_0_1.StreamUnavailable({
|
|
2009
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2010
|
+
...contents,
|
|
2011
|
+
});
|
|
2012
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2682
2013
|
};
|
|
2683
2014
|
const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
2684
|
-
const contents = {
|
|
2685
|
-
name: "ThrottlingException",
|
|
2686
|
-
$fault: "client",
|
|
2687
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2688
|
-
exceptionMessage: undefined,
|
|
2689
|
-
};
|
|
2015
|
+
const contents = {};
|
|
2690
2016
|
const data = parsedOutput.body;
|
|
2691
2017
|
if (data.exceptionMessage !== undefined && data.exceptionMessage !== null) {
|
|
2692
2018
|
contents.exceptionMessage = smithy_client_1.expectString(data.exceptionMessage);
|
|
2693
2019
|
}
|
|
2694
|
-
|
|
2020
|
+
const exception = new models_0_1.ThrottlingException({
|
|
2021
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2022
|
+
...contents,
|
|
2023
|
+
});
|
|
2024
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2695
2025
|
};
|
|
2696
2026
|
const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
2697
|
-
const contents = {
|
|
2698
|
-
name: "ValidationException",
|
|
2699
|
-
$fault: "client",
|
|
2700
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2701
|
-
exceptionMessage: undefined,
|
|
2702
|
-
};
|
|
2027
|
+
const contents = {};
|
|
2703
2028
|
const data = parsedOutput.body;
|
|
2704
2029
|
if (data.exceptionMessage !== undefined && data.exceptionMessage !== null) {
|
|
2705
2030
|
contents.exceptionMessage = smithy_client_1.expectString(data.exceptionMessage);
|
|
2706
2031
|
}
|
|
2707
|
-
|
|
2032
|
+
const exception = new models_0_1.ValidationException({
|
|
2033
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2034
|
+
...contents,
|
|
2035
|
+
});
|
|
2036
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2708
2037
|
};
|
|
2709
2038
|
const serializeAws_restJson1ChannelArnList = (input, context) => {
|
|
2710
2039
|
return input
|
|
@@ -2776,7 +2105,7 @@ const deserializeAws_restJson1BatchError = (output, context) => {
|
|
|
2776
2105
|
};
|
|
2777
2106
|
};
|
|
2778
2107
|
const deserializeAws_restJson1BatchErrors = (output, context) => {
|
|
2779
|
-
|
|
2108
|
+
const retVal = (output || [])
|
|
2780
2109
|
.filter((e) => e != null)
|
|
2781
2110
|
.map((entry) => {
|
|
2782
2111
|
if (entry === null) {
|
|
@@ -2784,6 +2113,7 @@ const deserializeAws_restJson1BatchErrors = (output, context) => {
|
|
|
2784
2113
|
}
|
|
2785
2114
|
return deserializeAws_restJson1BatchError(entry, context);
|
|
2786
2115
|
});
|
|
2116
|
+
return retVal;
|
|
2787
2117
|
};
|
|
2788
2118
|
const deserializeAws_restJson1Channel = (output, context) => {
|
|
2789
2119
|
return {
|
|
@@ -2801,7 +2131,7 @@ const deserializeAws_restJson1Channel = (output, context) => {
|
|
|
2801
2131
|
};
|
|
2802
2132
|
};
|
|
2803
2133
|
const deserializeAws_restJson1ChannelList = (output, context) => {
|
|
2804
|
-
|
|
2134
|
+
const retVal = (output || [])
|
|
2805
2135
|
.filter((e) => e != null)
|
|
2806
2136
|
.map((entry) => {
|
|
2807
2137
|
if (entry === null) {
|
|
@@ -2809,9 +2139,10 @@ const deserializeAws_restJson1ChannelList = (output, context) => {
|
|
|
2809
2139
|
}
|
|
2810
2140
|
return deserializeAws_restJson1ChannelSummary(entry, context);
|
|
2811
2141
|
});
|
|
2142
|
+
return retVal;
|
|
2812
2143
|
};
|
|
2813
2144
|
const deserializeAws_restJson1Channels = (output, context) => {
|
|
2814
|
-
|
|
2145
|
+
const retVal = (output || [])
|
|
2815
2146
|
.filter((e) => e != null)
|
|
2816
2147
|
.map((entry) => {
|
|
2817
2148
|
if (entry === null) {
|
|
@@ -2819,6 +2150,7 @@ const deserializeAws_restJson1Channels = (output, context) => {
|
|
|
2819
2150
|
}
|
|
2820
2151
|
return deserializeAws_restJson1Channel(entry, context);
|
|
2821
2152
|
});
|
|
2153
|
+
return retVal;
|
|
2822
2154
|
};
|
|
2823
2155
|
const deserializeAws_restJson1ChannelSummary = (output, context) => {
|
|
2824
2156
|
return {
|
|
@@ -2860,7 +2192,7 @@ const deserializeAws_restJson1PlaybackKeyPair = (output, context) => {
|
|
|
2860
2192
|
};
|
|
2861
2193
|
};
|
|
2862
2194
|
const deserializeAws_restJson1PlaybackKeyPairList = (output, context) => {
|
|
2863
|
-
|
|
2195
|
+
const retVal = (output || [])
|
|
2864
2196
|
.filter((e) => e != null)
|
|
2865
2197
|
.map((entry) => {
|
|
2866
2198
|
if (entry === null) {
|
|
@@ -2868,6 +2200,7 @@ const deserializeAws_restJson1PlaybackKeyPairList = (output, context) => {
|
|
|
2868
2200
|
}
|
|
2869
2201
|
return deserializeAws_restJson1PlaybackKeyPairSummary(entry, context);
|
|
2870
2202
|
});
|
|
2203
|
+
return retVal;
|
|
2871
2204
|
};
|
|
2872
2205
|
const deserializeAws_restJson1PlaybackKeyPairSummary = (output, context) => {
|
|
2873
2206
|
return {
|
|
@@ -2895,7 +2228,7 @@ const deserializeAws_restJson1RecordingConfiguration = (output, context) => {
|
|
|
2895
2228
|
};
|
|
2896
2229
|
};
|
|
2897
2230
|
const deserializeAws_restJson1RecordingConfigurationList = (output, context) => {
|
|
2898
|
-
|
|
2231
|
+
const retVal = (output || [])
|
|
2899
2232
|
.filter((e) => e != null)
|
|
2900
2233
|
.map((entry) => {
|
|
2901
2234
|
if (entry === null) {
|
|
@@ -2903,6 +2236,7 @@ const deserializeAws_restJson1RecordingConfigurationList = (output, context) =>
|
|
|
2903
2236
|
}
|
|
2904
2237
|
return deserializeAws_restJson1RecordingConfigurationSummary(entry, context);
|
|
2905
2238
|
});
|
|
2239
|
+
return retVal;
|
|
2906
2240
|
};
|
|
2907
2241
|
const deserializeAws_restJson1RecordingConfigurationSummary = (output, context) => {
|
|
2908
2242
|
return {
|
|
@@ -2945,7 +2279,7 @@ const deserializeAws_restJson1StreamEvent = (output, context) => {
|
|
|
2945
2279
|
};
|
|
2946
2280
|
};
|
|
2947
2281
|
const deserializeAws_restJson1StreamEvents = (output, context) => {
|
|
2948
|
-
|
|
2282
|
+
const retVal = (output || [])
|
|
2949
2283
|
.filter((e) => e != null)
|
|
2950
2284
|
.map((entry) => {
|
|
2951
2285
|
if (entry === null) {
|
|
@@ -2953,6 +2287,7 @@ const deserializeAws_restJson1StreamEvents = (output, context) => {
|
|
|
2953
2287
|
}
|
|
2954
2288
|
return deserializeAws_restJson1StreamEvent(entry, context);
|
|
2955
2289
|
});
|
|
2290
|
+
return retVal;
|
|
2956
2291
|
};
|
|
2957
2292
|
const deserializeAws_restJson1StreamKey = (output, context) => {
|
|
2958
2293
|
return {
|
|
@@ -2965,7 +2300,7 @@ const deserializeAws_restJson1StreamKey = (output, context) => {
|
|
|
2965
2300
|
};
|
|
2966
2301
|
};
|
|
2967
2302
|
const deserializeAws_restJson1StreamKeyList = (output, context) => {
|
|
2968
|
-
|
|
2303
|
+
const retVal = (output || [])
|
|
2969
2304
|
.filter((e) => e != null)
|
|
2970
2305
|
.map((entry) => {
|
|
2971
2306
|
if (entry === null) {
|
|
@@ -2973,9 +2308,10 @@ const deserializeAws_restJson1StreamKeyList = (output, context) => {
|
|
|
2973
2308
|
}
|
|
2974
2309
|
return deserializeAws_restJson1StreamKeySummary(entry, context);
|
|
2975
2310
|
});
|
|
2311
|
+
return retVal;
|
|
2976
2312
|
};
|
|
2977
2313
|
const deserializeAws_restJson1StreamKeys = (output, context) => {
|
|
2978
|
-
|
|
2314
|
+
const retVal = (output || [])
|
|
2979
2315
|
.filter((e) => e != null)
|
|
2980
2316
|
.map((entry) => {
|
|
2981
2317
|
if (entry === null) {
|
|
@@ -2983,6 +2319,7 @@ const deserializeAws_restJson1StreamKeys = (output, context) => {
|
|
|
2983
2319
|
}
|
|
2984
2320
|
return deserializeAws_restJson1StreamKey(entry, context);
|
|
2985
2321
|
});
|
|
2322
|
+
return retVal;
|
|
2986
2323
|
};
|
|
2987
2324
|
const deserializeAws_restJson1StreamKeySummary = (output, context) => {
|
|
2988
2325
|
return {
|
|
@@ -2994,7 +2331,7 @@ const deserializeAws_restJson1StreamKeySummary = (output, context) => {
|
|
|
2994
2331
|
};
|
|
2995
2332
|
};
|
|
2996
2333
|
const deserializeAws_restJson1StreamList = (output, context) => {
|
|
2997
|
-
|
|
2334
|
+
const retVal = (output || [])
|
|
2998
2335
|
.filter((e) => e != null)
|
|
2999
2336
|
.map((entry) => {
|
|
3000
2337
|
if (entry === null) {
|
|
@@ -3002,6 +2339,7 @@ const deserializeAws_restJson1StreamList = (output, context) => {
|
|
|
3002
2339
|
}
|
|
3003
2340
|
return deserializeAws_restJson1StreamSummary(entry, context);
|
|
3004
2341
|
});
|
|
2342
|
+
return retVal;
|
|
3005
2343
|
};
|
|
3006
2344
|
const deserializeAws_restJson1StreamSession = (output, context) => {
|
|
3007
2345
|
return {
|
|
@@ -3027,7 +2365,7 @@ const deserializeAws_restJson1StreamSession = (output, context) => {
|
|
|
3027
2365
|
};
|
|
3028
2366
|
};
|
|
3029
2367
|
const deserializeAws_restJson1StreamSessionList = (output, context) => {
|
|
3030
|
-
|
|
2368
|
+
const retVal = (output || [])
|
|
3031
2369
|
.filter((e) => e != null)
|
|
3032
2370
|
.map((entry) => {
|
|
3033
2371
|
if (entry === null) {
|
|
@@ -3035,6 +2373,7 @@ const deserializeAws_restJson1StreamSessionList = (output, context) => {
|
|
|
3035
2373
|
}
|
|
3036
2374
|
return deserializeAws_restJson1StreamSessionSummary(entry, context);
|
|
3037
2375
|
});
|
|
2376
|
+
return retVal;
|
|
3038
2377
|
};
|
|
3039
2378
|
const deserializeAws_restJson1StreamSessionSummary = (output, context) => {
|
|
3040
2379
|
return {
|