@aws-sdk/client-ivs-realtime 3.504.0 → 3.509.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -818,7 +818,7 @@ var se_UpdateStageCommand = /* @__PURE__ */ __name(async (input, context) => {
818
818
  }, "se_UpdateStageCommand");
819
819
  var de_CreateEncoderConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
820
820
  if (output.statusCode !== 200 && output.statusCode >= 300) {
821
- return de_CreateEncoderConfigurationCommandError(output, context);
821
+ return de_CommandError(output, context);
822
822
  }
823
823
  const contents = (0, import_smithy_client.map)({
824
824
  $metadata: deserializeMetadata(output)
@@ -830,46 +830,9 @@ var de_CreateEncoderConfigurationCommand = /* @__PURE__ */ __name(async (output,
830
830
  Object.assign(contents, doc);
831
831
  return contents;
832
832
  }, "de_CreateEncoderConfigurationCommand");
833
- var de_CreateEncoderConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
834
- const parsedOutput = {
835
- ...output,
836
- body: await parseErrorBody(output.body, context)
837
- };
838
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
839
- switch (errorCode) {
840
- case "AccessDeniedException":
841
- case "com.amazonaws.ivsrealtime#AccessDeniedException":
842
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
843
- case "ConflictException":
844
- case "com.amazonaws.ivsrealtime#ConflictException":
845
- throw await de_ConflictExceptionRes(parsedOutput, context);
846
- case "InternalServerException":
847
- case "com.amazonaws.ivsrealtime#InternalServerException":
848
- throw await de_InternalServerExceptionRes(parsedOutput, context);
849
- case "PendingVerification":
850
- case "com.amazonaws.ivsrealtime#PendingVerification":
851
- throw await de_PendingVerificationRes(parsedOutput, context);
852
- case "ResourceNotFoundException":
853
- case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
854
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
855
- case "ServiceQuotaExceededException":
856
- case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
857
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
858
- case "ValidationException":
859
- case "com.amazonaws.ivsrealtime#ValidationException":
860
- throw await de_ValidationExceptionRes(parsedOutput, context);
861
- default:
862
- const parsedBody = parsedOutput.body;
863
- return throwDefaultError({
864
- output,
865
- parsedBody,
866
- errorCode
867
- });
868
- }
869
- }, "de_CreateEncoderConfigurationCommandError");
870
833
  var de_CreateParticipantTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
871
834
  if (output.statusCode !== 200 && output.statusCode >= 300) {
872
- return de_CreateParticipantTokenCommandError(output, context);
835
+ return de_CommandError(output, context);
873
836
  }
874
837
  const contents = (0, import_smithy_client.map)({
875
838
  $metadata: deserializeMetadata(output)
@@ -881,40 +844,9 @@ var de_CreateParticipantTokenCommand = /* @__PURE__ */ __name(async (output, con
881
844
  Object.assign(contents, doc);
882
845
  return contents;
883
846
  }, "de_CreateParticipantTokenCommand");
884
- var de_CreateParticipantTokenCommandError = /* @__PURE__ */ __name(async (output, context) => {
885
- const parsedOutput = {
886
- ...output,
887
- body: await parseErrorBody(output.body, context)
888
- };
889
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
890
- switch (errorCode) {
891
- case "AccessDeniedException":
892
- case "com.amazonaws.ivsrealtime#AccessDeniedException":
893
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
894
- case "PendingVerification":
895
- case "com.amazonaws.ivsrealtime#PendingVerification":
896
- throw await de_PendingVerificationRes(parsedOutput, context);
897
- case "ResourceNotFoundException":
898
- case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
899
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
900
- case "ServiceQuotaExceededException":
901
- case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
902
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
903
- case "ValidationException":
904
- case "com.amazonaws.ivsrealtime#ValidationException":
905
- throw await de_ValidationExceptionRes(parsedOutput, context);
906
- default:
907
- const parsedBody = parsedOutput.body;
908
- return throwDefaultError({
909
- output,
910
- parsedBody,
911
- errorCode
912
- });
913
- }
914
- }, "de_CreateParticipantTokenCommandError");
915
847
  var de_CreateStageCommand = /* @__PURE__ */ __name(async (output, context) => {
916
848
  if (output.statusCode !== 200 && output.statusCode >= 300) {
917
- return de_CreateStageCommandError(output, context);
849
+ return de_CommandError(output, context);
918
850
  }
919
851
  const contents = (0, import_smithy_client.map)({
920
852
  $metadata: deserializeMetadata(output)
@@ -927,37 +859,9 @@ var de_CreateStageCommand = /* @__PURE__ */ __name(async (output, context) => {
927
859
  Object.assign(contents, doc);
928
860
  return contents;
929
861
  }, "de_CreateStageCommand");
930
- var de_CreateStageCommandError = /* @__PURE__ */ __name(async (output, context) => {
931
- const parsedOutput = {
932
- ...output,
933
- body: await parseErrorBody(output.body, context)
934
- };
935
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
936
- switch (errorCode) {
937
- case "AccessDeniedException":
938
- case "com.amazonaws.ivsrealtime#AccessDeniedException":
939
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
940
- case "PendingVerification":
941
- case "com.amazonaws.ivsrealtime#PendingVerification":
942
- throw await de_PendingVerificationRes(parsedOutput, context);
943
- case "ServiceQuotaExceededException":
944
- case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
945
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
946
- case "ValidationException":
947
- case "com.amazonaws.ivsrealtime#ValidationException":
948
- throw await de_ValidationExceptionRes(parsedOutput, context);
949
- default:
950
- const parsedBody = parsedOutput.body;
951
- return throwDefaultError({
952
- output,
953
- parsedBody,
954
- errorCode
955
- });
956
- }
957
- }, "de_CreateStageCommandError");
958
862
  var de_CreateStorageConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
959
863
  if (output.statusCode !== 200 && output.statusCode >= 300) {
960
- return de_CreateStorageConfigurationCommandError(output, context);
864
+ return de_CommandError(output, context);
961
865
  }
962
866
  const contents = (0, import_smithy_client.map)({
963
867
  $metadata: deserializeMetadata(output)
@@ -969,46 +873,9 @@ var de_CreateStorageConfigurationCommand = /* @__PURE__ */ __name(async (output,
969
873
  Object.assign(contents, doc);
970
874
  return contents;
971
875
  }, "de_CreateStorageConfigurationCommand");
972
- var de_CreateStorageConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
973
- const parsedOutput = {
974
- ...output,
975
- body: await parseErrorBody(output.body, context)
976
- };
977
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
978
- switch (errorCode) {
979
- case "AccessDeniedException":
980
- case "com.amazonaws.ivsrealtime#AccessDeniedException":
981
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
982
- case "ConflictException":
983
- case "com.amazonaws.ivsrealtime#ConflictException":
984
- throw await de_ConflictExceptionRes(parsedOutput, context);
985
- case "InternalServerException":
986
- case "com.amazonaws.ivsrealtime#InternalServerException":
987
- throw await de_InternalServerExceptionRes(parsedOutput, context);
988
- case "PendingVerification":
989
- case "com.amazonaws.ivsrealtime#PendingVerification":
990
- throw await de_PendingVerificationRes(parsedOutput, context);
991
- case "ResourceNotFoundException":
992
- case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
993
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
994
- case "ServiceQuotaExceededException":
995
- case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
996
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
997
- case "ValidationException":
998
- case "com.amazonaws.ivsrealtime#ValidationException":
999
- throw await de_ValidationExceptionRes(parsedOutput, context);
1000
- default:
1001
- const parsedBody = parsedOutput.body;
1002
- return throwDefaultError({
1003
- output,
1004
- parsedBody,
1005
- errorCode
1006
- });
1007
- }
1008
- }, "de_CreateStorageConfigurationCommandError");
1009
876
  var de_DeleteEncoderConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
1010
877
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1011
- return de_DeleteEncoderConfigurationCommandError(output, context);
878
+ return de_CommandError(output, context);
1012
879
  }
1013
880
  const contents = (0, import_smithy_client.map)({
1014
881
  $metadata: deserializeMetadata(output)
@@ -1016,43 +883,9 @@ var de_DeleteEncoderConfigurationCommand = /* @__PURE__ */ __name(async (output,
1016
883
  await (0, import_smithy_client.collectBody)(output.body, context);
1017
884
  return contents;
1018
885
  }, "de_DeleteEncoderConfigurationCommand");
1019
- var de_DeleteEncoderConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1020
- const parsedOutput = {
1021
- ...output,
1022
- body: await parseErrorBody(output.body, context)
1023
- };
1024
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1025
- switch (errorCode) {
1026
- case "AccessDeniedException":
1027
- case "com.amazonaws.ivsrealtime#AccessDeniedException":
1028
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1029
- case "ConflictException":
1030
- case "com.amazonaws.ivsrealtime#ConflictException":
1031
- throw await de_ConflictExceptionRes(parsedOutput, context);
1032
- case "InternalServerException":
1033
- case "com.amazonaws.ivsrealtime#InternalServerException":
1034
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1035
- case "ResourceNotFoundException":
1036
- case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
1037
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1038
- case "ServiceQuotaExceededException":
1039
- case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
1040
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1041
- case "ValidationException":
1042
- case "com.amazonaws.ivsrealtime#ValidationException":
1043
- throw await de_ValidationExceptionRes(parsedOutput, context);
1044
- default:
1045
- const parsedBody = parsedOutput.body;
1046
- return throwDefaultError({
1047
- output,
1048
- parsedBody,
1049
- errorCode
1050
- });
1051
- }
1052
- }, "de_DeleteEncoderConfigurationCommandError");
1053
886
  var de_DeleteStageCommand = /* @__PURE__ */ __name(async (output, context) => {
1054
887
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1055
- return de_DeleteStageCommandError(output, context);
888
+ return de_CommandError(output, context);
1056
889
  }
1057
890
  const contents = (0, import_smithy_client.map)({
1058
891
  $metadata: deserializeMetadata(output)
@@ -1060,40 +893,9 @@ var de_DeleteStageCommand = /* @__PURE__ */ __name(async (output, context) => {
1060
893
  await (0, import_smithy_client.collectBody)(output.body, context);
1061
894
  return contents;
1062
895
  }, "de_DeleteStageCommand");
1063
- var de_DeleteStageCommandError = /* @__PURE__ */ __name(async (output, context) => {
1064
- const parsedOutput = {
1065
- ...output,
1066
- body: await parseErrorBody(output.body, context)
1067
- };
1068
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1069
- switch (errorCode) {
1070
- case "AccessDeniedException":
1071
- case "com.amazonaws.ivsrealtime#AccessDeniedException":
1072
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1073
- case "ConflictException":
1074
- case "com.amazonaws.ivsrealtime#ConflictException":
1075
- throw await de_ConflictExceptionRes(parsedOutput, context);
1076
- case "PendingVerification":
1077
- case "com.amazonaws.ivsrealtime#PendingVerification":
1078
- throw await de_PendingVerificationRes(parsedOutput, context);
1079
- case "ResourceNotFoundException":
1080
- case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
1081
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1082
- case "ValidationException":
1083
- case "com.amazonaws.ivsrealtime#ValidationException":
1084
- throw await de_ValidationExceptionRes(parsedOutput, context);
1085
- default:
1086
- const parsedBody = parsedOutput.body;
1087
- return throwDefaultError({
1088
- output,
1089
- parsedBody,
1090
- errorCode
1091
- });
1092
- }
1093
- }, "de_DeleteStageCommandError");
1094
896
  var de_DeleteStorageConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
1095
897
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1096
- return de_DeleteStorageConfigurationCommandError(output, context);
898
+ return de_CommandError(output, context);
1097
899
  }
1098
900
  const contents = (0, import_smithy_client.map)({
1099
901
  $metadata: deserializeMetadata(output)
@@ -1101,43 +903,9 @@ var de_DeleteStorageConfigurationCommand = /* @__PURE__ */ __name(async (output,
1101
903
  await (0, import_smithy_client.collectBody)(output.body, context);
1102
904
  return contents;
1103
905
  }, "de_DeleteStorageConfigurationCommand");
1104
- var de_DeleteStorageConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1105
- const parsedOutput = {
1106
- ...output,
1107
- body: await parseErrorBody(output.body, context)
1108
- };
1109
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1110
- switch (errorCode) {
1111
- case "AccessDeniedException":
1112
- case "com.amazonaws.ivsrealtime#AccessDeniedException":
1113
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1114
- case "ConflictException":
1115
- case "com.amazonaws.ivsrealtime#ConflictException":
1116
- throw await de_ConflictExceptionRes(parsedOutput, context);
1117
- case "InternalServerException":
1118
- case "com.amazonaws.ivsrealtime#InternalServerException":
1119
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1120
- case "ResourceNotFoundException":
1121
- case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
1122
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1123
- case "ServiceQuotaExceededException":
1124
- case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
1125
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1126
- case "ValidationException":
1127
- case "com.amazonaws.ivsrealtime#ValidationException":
1128
- throw await de_ValidationExceptionRes(parsedOutput, context);
1129
- default:
1130
- const parsedBody = parsedOutput.body;
1131
- return throwDefaultError({
1132
- output,
1133
- parsedBody,
1134
- errorCode
1135
- });
1136
- }
1137
- }, "de_DeleteStorageConfigurationCommandError");
1138
906
  var de_DisconnectParticipantCommand = /* @__PURE__ */ __name(async (output, context) => {
1139
907
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1140
- return de_DisconnectParticipantCommandError(output, context);
908
+ return de_CommandError(output, context);
1141
909
  }
1142
910
  const contents = (0, import_smithy_client.map)({
1143
911
  $metadata: deserializeMetadata(output)
@@ -1145,37 +913,9 @@ var de_DisconnectParticipantCommand = /* @__PURE__ */ __name(async (output, cont
1145
913
  await (0, import_smithy_client.collectBody)(output.body, context);
1146
914
  return contents;
1147
915
  }, "de_DisconnectParticipantCommand");
1148
- var de_DisconnectParticipantCommandError = /* @__PURE__ */ __name(async (output, context) => {
1149
- const parsedOutput = {
1150
- ...output,
1151
- body: await parseErrorBody(output.body, context)
1152
- };
1153
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1154
- switch (errorCode) {
1155
- case "AccessDeniedException":
1156
- case "com.amazonaws.ivsrealtime#AccessDeniedException":
1157
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1158
- case "PendingVerification":
1159
- case "com.amazonaws.ivsrealtime#PendingVerification":
1160
- throw await de_PendingVerificationRes(parsedOutput, context);
1161
- case "ResourceNotFoundException":
1162
- case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
1163
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1164
- case "ValidationException":
1165
- case "com.amazonaws.ivsrealtime#ValidationException":
1166
- throw await de_ValidationExceptionRes(parsedOutput, context);
1167
- default:
1168
- const parsedBody = parsedOutput.body;
1169
- return throwDefaultError({
1170
- output,
1171
- parsedBody,
1172
- errorCode
1173
- });
1174
- }
1175
- }, "de_DisconnectParticipantCommandError");
1176
916
  var de_GetCompositionCommand = /* @__PURE__ */ __name(async (output, context) => {
1177
917
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1178
- return de_GetCompositionCommandError(output, context);
918
+ return de_CommandError(output, context);
1179
919
  }
1180
920
  const contents = (0, import_smithy_client.map)({
1181
921
  $metadata: deserializeMetadata(output)
@@ -1187,43 +927,9 @@ var de_GetCompositionCommand = /* @__PURE__ */ __name(async (output, context) =>
1187
927
  Object.assign(contents, doc);
1188
928
  return contents;
1189
929
  }, "de_GetCompositionCommand");
1190
- var de_GetCompositionCommandError = /* @__PURE__ */ __name(async (output, context) => {
1191
- const parsedOutput = {
1192
- ...output,
1193
- body: await parseErrorBody(output.body, context)
1194
- };
1195
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1196
- switch (errorCode) {
1197
- case "AccessDeniedException":
1198
- case "com.amazonaws.ivsrealtime#AccessDeniedException":
1199
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1200
- case "ConflictException":
1201
- case "com.amazonaws.ivsrealtime#ConflictException":
1202
- throw await de_ConflictExceptionRes(parsedOutput, context);
1203
- case "InternalServerException":
1204
- case "com.amazonaws.ivsrealtime#InternalServerException":
1205
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1206
- case "ResourceNotFoundException":
1207
- case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
1208
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1209
- case "ServiceQuotaExceededException":
1210
- case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
1211
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1212
- case "ValidationException":
1213
- case "com.amazonaws.ivsrealtime#ValidationException":
1214
- throw await de_ValidationExceptionRes(parsedOutput, context);
1215
- default:
1216
- const parsedBody = parsedOutput.body;
1217
- return throwDefaultError({
1218
- output,
1219
- parsedBody,
1220
- errorCode
1221
- });
1222
- }
1223
- }, "de_GetCompositionCommandError");
1224
930
  var de_GetEncoderConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
1225
931
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1226
- return de_GetEncoderConfigurationCommandError(output, context);
932
+ return de_CommandError(output, context);
1227
933
  }
1228
934
  const contents = (0, import_smithy_client.map)({
1229
935
  $metadata: deserializeMetadata(output)
@@ -1235,43 +941,9 @@ var de_GetEncoderConfigurationCommand = /* @__PURE__ */ __name(async (output, co
1235
941
  Object.assign(contents, doc);
1236
942
  return contents;
1237
943
  }, "de_GetEncoderConfigurationCommand");
1238
- var de_GetEncoderConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1239
- const parsedOutput = {
1240
- ...output,
1241
- body: await parseErrorBody(output.body, context)
1242
- };
1243
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1244
- switch (errorCode) {
1245
- case "AccessDeniedException":
1246
- case "com.amazonaws.ivsrealtime#AccessDeniedException":
1247
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1248
- case "ConflictException":
1249
- case "com.amazonaws.ivsrealtime#ConflictException":
1250
- throw await de_ConflictExceptionRes(parsedOutput, context);
1251
- case "InternalServerException":
1252
- case "com.amazonaws.ivsrealtime#InternalServerException":
1253
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1254
- case "ResourceNotFoundException":
1255
- case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
1256
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1257
- case "ServiceQuotaExceededException":
1258
- case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
1259
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1260
- case "ValidationException":
1261
- case "com.amazonaws.ivsrealtime#ValidationException":
1262
- throw await de_ValidationExceptionRes(parsedOutput, context);
1263
- default:
1264
- const parsedBody = parsedOutput.body;
1265
- return throwDefaultError({
1266
- output,
1267
- parsedBody,
1268
- errorCode
1269
- });
1270
- }
1271
- }, "de_GetEncoderConfigurationCommandError");
1272
944
  var de_GetParticipantCommand = /* @__PURE__ */ __name(async (output, context) => {
1273
945
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1274
- return de_GetParticipantCommandError(output, context);
946
+ return de_CommandError(output, context);
1275
947
  }
1276
948
  const contents = (0, import_smithy_client.map)({
1277
949
  $metadata: deserializeMetadata(output)
@@ -1283,34 +955,9 @@ var de_GetParticipantCommand = /* @__PURE__ */ __name(async (output, context) =>
1283
955
  Object.assign(contents, doc);
1284
956
  return contents;
1285
957
  }, "de_GetParticipantCommand");
1286
- var de_GetParticipantCommandError = /* @__PURE__ */ __name(async (output, context) => {
1287
- const parsedOutput = {
1288
- ...output,
1289
- body: await parseErrorBody(output.body, context)
1290
- };
1291
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1292
- switch (errorCode) {
1293
- case "AccessDeniedException":
1294
- case "com.amazonaws.ivsrealtime#AccessDeniedException":
1295
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1296
- case "ResourceNotFoundException":
1297
- case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
1298
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1299
- case "ValidationException":
1300
- case "com.amazonaws.ivsrealtime#ValidationException":
1301
- throw await de_ValidationExceptionRes(parsedOutput, context);
1302
- default:
1303
- const parsedBody = parsedOutput.body;
1304
- return throwDefaultError({
1305
- output,
1306
- parsedBody,
1307
- errorCode
1308
- });
1309
- }
1310
- }, "de_GetParticipantCommandError");
1311
958
  var de_GetStageCommand = /* @__PURE__ */ __name(async (output, context) => {
1312
959
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1313
- return de_GetStageCommandError(output, context);
960
+ return de_CommandError(output, context);
1314
961
  }
1315
962
  const contents = (0, import_smithy_client.map)({
1316
963
  $metadata: deserializeMetadata(output)
@@ -1322,34 +969,9 @@ var de_GetStageCommand = /* @__PURE__ */ __name(async (output, context) => {
1322
969
  Object.assign(contents, doc);
1323
970
  return contents;
1324
971
  }, "de_GetStageCommand");
1325
- var de_GetStageCommandError = /* @__PURE__ */ __name(async (output, context) => {
1326
- const parsedOutput = {
1327
- ...output,
1328
- body: await parseErrorBody(output.body, context)
1329
- };
1330
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1331
- switch (errorCode) {
1332
- case "AccessDeniedException":
1333
- case "com.amazonaws.ivsrealtime#AccessDeniedException":
1334
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1335
- case "ResourceNotFoundException":
1336
- case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
1337
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1338
- case "ValidationException":
1339
- case "com.amazonaws.ivsrealtime#ValidationException":
1340
- throw await de_ValidationExceptionRes(parsedOutput, context);
1341
- default:
1342
- const parsedBody = parsedOutput.body;
1343
- return throwDefaultError({
1344
- output,
1345
- parsedBody,
1346
- errorCode
1347
- });
1348
- }
1349
- }, "de_GetStageCommandError");
1350
972
  var de_GetStageSessionCommand = /* @__PURE__ */ __name(async (output, context) => {
1351
973
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1352
- return de_GetStageSessionCommandError(output, context);
974
+ return de_CommandError(output, context);
1353
975
  }
1354
976
  const contents = (0, import_smithy_client.map)({
1355
977
  $metadata: deserializeMetadata(output)
@@ -1361,34 +983,9 @@ var de_GetStageSessionCommand = /* @__PURE__ */ __name(async (output, context) =
1361
983
  Object.assign(contents, doc);
1362
984
  return contents;
1363
985
  }, "de_GetStageSessionCommand");
1364
- var de_GetStageSessionCommandError = /* @__PURE__ */ __name(async (output, context) => {
1365
- const parsedOutput = {
1366
- ...output,
1367
- body: await parseErrorBody(output.body, context)
1368
- };
1369
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1370
- switch (errorCode) {
1371
- case "AccessDeniedException":
1372
- case "com.amazonaws.ivsrealtime#AccessDeniedException":
1373
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1374
- case "ResourceNotFoundException":
1375
- case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
1376
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1377
- case "ValidationException":
1378
- case "com.amazonaws.ivsrealtime#ValidationException":
1379
- throw await de_ValidationExceptionRes(parsedOutput, context);
1380
- default:
1381
- const parsedBody = parsedOutput.body;
1382
- return throwDefaultError({
1383
- output,
1384
- parsedBody,
1385
- errorCode
1386
- });
1387
- }
1388
- }, "de_GetStageSessionCommandError");
1389
986
  var de_GetStorageConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
1390
987
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1391
- return de_GetStorageConfigurationCommandError(output, context);
988
+ return de_CommandError(output, context);
1392
989
  }
1393
990
  const contents = (0, import_smithy_client.map)({
1394
991
  $metadata: deserializeMetadata(output)
@@ -1400,43 +997,9 @@ var de_GetStorageConfigurationCommand = /* @__PURE__ */ __name(async (output, co
1400
997
  Object.assign(contents, doc);
1401
998
  return contents;
1402
999
  }, "de_GetStorageConfigurationCommand");
1403
- var de_GetStorageConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1404
- const parsedOutput = {
1405
- ...output,
1406
- body: await parseErrorBody(output.body, context)
1407
- };
1408
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1409
- switch (errorCode) {
1410
- case "AccessDeniedException":
1411
- case "com.amazonaws.ivsrealtime#AccessDeniedException":
1412
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1413
- case "ConflictException":
1414
- case "com.amazonaws.ivsrealtime#ConflictException":
1415
- throw await de_ConflictExceptionRes(parsedOutput, context);
1416
- case "InternalServerException":
1417
- case "com.amazonaws.ivsrealtime#InternalServerException":
1418
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1419
- case "ResourceNotFoundException":
1420
- case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
1421
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1422
- case "ServiceQuotaExceededException":
1423
- case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
1424
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1425
- case "ValidationException":
1426
- case "com.amazonaws.ivsrealtime#ValidationException":
1427
- throw await de_ValidationExceptionRes(parsedOutput, context);
1428
- default:
1429
- const parsedBody = parsedOutput.body;
1430
- return throwDefaultError({
1431
- output,
1432
- parsedBody,
1433
- errorCode
1434
- });
1435
- }
1436
- }, "de_GetStorageConfigurationCommandError");
1437
1000
  var de_ListCompositionsCommand = /* @__PURE__ */ __name(async (output, context) => {
1438
1001
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1439
- return de_ListCompositionsCommandError(output, context);
1002
+ return de_CommandError(output, context);
1440
1003
  }
1441
1004
  const contents = (0, import_smithy_client.map)({
1442
1005
  $metadata: deserializeMetadata(output)
@@ -1449,40 +1012,9 @@ var de_ListCompositionsCommand = /* @__PURE__ */ __name(async (output, context)
1449
1012
  Object.assign(contents, doc);
1450
1013
  return contents;
1451
1014
  }, "de_ListCompositionsCommand");
1452
- var de_ListCompositionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1453
- const parsedOutput = {
1454
- ...output,
1455
- body: await parseErrorBody(output.body, context)
1456
- };
1457
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1458
- switch (errorCode) {
1459
- case "AccessDeniedException":
1460
- case "com.amazonaws.ivsrealtime#AccessDeniedException":
1461
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1462
- case "ConflictException":
1463
- case "com.amazonaws.ivsrealtime#ConflictException":
1464
- throw await de_ConflictExceptionRes(parsedOutput, context);
1465
- case "InternalServerException":
1466
- case "com.amazonaws.ivsrealtime#InternalServerException":
1467
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1468
- case "ServiceQuotaExceededException":
1469
- case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
1470
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1471
- case "ValidationException":
1472
- case "com.amazonaws.ivsrealtime#ValidationException":
1473
- throw await de_ValidationExceptionRes(parsedOutput, context);
1474
- default:
1475
- const parsedBody = parsedOutput.body;
1476
- return throwDefaultError({
1477
- output,
1478
- parsedBody,
1479
- errorCode
1480
- });
1481
- }
1482
- }, "de_ListCompositionsCommandError");
1483
1015
  var de_ListEncoderConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1484
1016
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1485
- return de_ListEncoderConfigurationsCommandError(output, context);
1017
+ return de_CommandError(output, context);
1486
1018
  }
1487
1019
  const contents = (0, import_smithy_client.map)({
1488
1020
  $metadata: deserializeMetadata(output)
@@ -1493,42 +1025,11 @@ var de_ListEncoderConfigurationsCommand = /* @__PURE__ */ __name(async (output,
1493
1025
  nextToken: import_smithy_client.expectString
1494
1026
  });
1495
1027
  Object.assign(contents, doc);
1496
- return contents;
1497
- }, "de_ListEncoderConfigurationsCommand");
1498
- var de_ListEncoderConfigurationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1499
- const parsedOutput = {
1500
- ...output,
1501
- body: await parseErrorBody(output.body, context)
1502
- };
1503
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1504
- switch (errorCode) {
1505
- case "AccessDeniedException":
1506
- case "com.amazonaws.ivsrealtime#AccessDeniedException":
1507
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1508
- case "ConflictException":
1509
- case "com.amazonaws.ivsrealtime#ConflictException":
1510
- throw await de_ConflictExceptionRes(parsedOutput, context);
1511
- case "InternalServerException":
1512
- case "com.amazonaws.ivsrealtime#InternalServerException":
1513
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1514
- case "ServiceQuotaExceededException":
1515
- case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
1516
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1517
- case "ValidationException":
1518
- case "com.amazonaws.ivsrealtime#ValidationException":
1519
- throw await de_ValidationExceptionRes(parsedOutput, context);
1520
- default:
1521
- const parsedBody = parsedOutput.body;
1522
- return throwDefaultError({
1523
- output,
1524
- parsedBody,
1525
- errorCode
1526
- });
1527
- }
1528
- }, "de_ListEncoderConfigurationsCommandError");
1028
+ return contents;
1029
+ }, "de_ListEncoderConfigurationsCommand");
1529
1030
  var de_ListParticipantEventsCommand = /* @__PURE__ */ __name(async (output, context) => {
1530
1031
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1531
- return de_ListParticipantEventsCommandError(output, context);
1032
+ return de_CommandError(output, context);
1532
1033
  }
1533
1034
  const contents = (0, import_smithy_client.map)({
1534
1035
  $metadata: deserializeMetadata(output)
@@ -1541,31 +1042,9 @@ var de_ListParticipantEventsCommand = /* @__PURE__ */ __name(async (output, cont
1541
1042
  Object.assign(contents, doc);
1542
1043
  return contents;
1543
1044
  }, "de_ListParticipantEventsCommand");
1544
- var de_ListParticipantEventsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1545
- const parsedOutput = {
1546
- ...output,
1547
- body: await parseErrorBody(output.body, context)
1548
- };
1549
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1550
- switch (errorCode) {
1551
- case "AccessDeniedException":
1552
- case "com.amazonaws.ivsrealtime#AccessDeniedException":
1553
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1554
- case "ValidationException":
1555
- case "com.amazonaws.ivsrealtime#ValidationException":
1556
- throw await de_ValidationExceptionRes(parsedOutput, context);
1557
- default:
1558
- const parsedBody = parsedOutput.body;
1559
- return throwDefaultError({
1560
- output,
1561
- parsedBody,
1562
- errorCode
1563
- });
1564
- }
1565
- }, "de_ListParticipantEventsCommandError");
1566
1045
  var de_ListParticipantsCommand = /* @__PURE__ */ __name(async (output, context) => {
1567
1046
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1568
- return de_ListParticipantsCommandError(output, context);
1047
+ return de_CommandError(output, context);
1569
1048
  }
1570
1049
  const contents = (0, import_smithy_client.map)({
1571
1050
  $metadata: deserializeMetadata(output)
@@ -1578,31 +1057,9 @@ var de_ListParticipantsCommand = /* @__PURE__ */ __name(async (output, context)
1578
1057
  Object.assign(contents, doc);
1579
1058
  return contents;
1580
1059
  }, "de_ListParticipantsCommand");
1581
- var de_ListParticipantsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1582
- const parsedOutput = {
1583
- ...output,
1584
- body: await parseErrorBody(output.body, context)
1585
- };
1586
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1587
- switch (errorCode) {
1588
- case "AccessDeniedException":
1589
- case "com.amazonaws.ivsrealtime#AccessDeniedException":
1590
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1591
- case "ValidationException":
1592
- case "com.amazonaws.ivsrealtime#ValidationException":
1593
- throw await de_ValidationExceptionRes(parsedOutput, context);
1594
- default:
1595
- const parsedBody = parsedOutput.body;
1596
- return throwDefaultError({
1597
- output,
1598
- parsedBody,
1599
- errorCode
1600
- });
1601
- }
1602
- }, "de_ListParticipantsCommandError");
1603
1060
  var de_ListStagesCommand = /* @__PURE__ */ __name(async (output, context) => {
1604
1061
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1605
- return de_ListStagesCommandError(output, context);
1062
+ return de_CommandError(output, context);
1606
1063
  }
1607
1064
  const contents = (0, import_smithy_client.map)({
1608
1065
  $metadata: deserializeMetadata(output)
@@ -1615,34 +1072,9 @@ var de_ListStagesCommand = /* @__PURE__ */ __name(async (output, context) => {
1615
1072
  Object.assign(contents, doc);
1616
1073
  return contents;
1617
1074
  }, "de_ListStagesCommand");
1618
- var de_ListStagesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1619
- const parsedOutput = {
1620
- ...output,
1621
- body: await parseErrorBody(output.body, context)
1622
- };
1623
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1624
- switch (errorCode) {
1625
- case "AccessDeniedException":
1626
- case "com.amazonaws.ivsrealtime#AccessDeniedException":
1627
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1628
- case "ConflictException":
1629
- case "com.amazonaws.ivsrealtime#ConflictException":
1630
- throw await de_ConflictExceptionRes(parsedOutput, context);
1631
- case "ValidationException":
1632
- case "com.amazonaws.ivsrealtime#ValidationException":
1633
- throw await de_ValidationExceptionRes(parsedOutput, context);
1634
- default:
1635
- const parsedBody = parsedOutput.body;
1636
- return throwDefaultError({
1637
- output,
1638
- parsedBody,
1639
- errorCode
1640
- });
1641
- }
1642
- }, "de_ListStagesCommandError");
1643
1075
  var de_ListStageSessionsCommand = /* @__PURE__ */ __name(async (output, context) => {
1644
1076
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1645
- return de_ListStageSessionsCommandError(output, context);
1077
+ return de_CommandError(output, context);
1646
1078
  }
1647
1079
  const contents = (0, import_smithy_client.map)({
1648
1080
  $metadata: deserializeMetadata(output)
@@ -1655,31 +1087,9 @@ var de_ListStageSessionsCommand = /* @__PURE__ */ __name(async (output, context)
1655
1087
  Object.assign(contents, doc);
1656
1088
  return contents;
1657
1089
  }, "de_ListStageSessionsCommand");
1658
- var de_ListStageSessionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1659
- const parsedOutput = {
1660
- ...output,
1661
- body: await parseErrorBody(output.body, context)
1662
- };
1663
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1664
- switch (errorCode) {
1665
- case "AccessDeniedException":
1666
- case "com.amazonaws.ivsrealtime#AccessDeniedException":
1667
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1668
- case "ValidationException":
1669
- case "com.amazonaws.ivsrealtime#ValidationException":
1670
- throw await de_ValidationExceptionRes(parsedOutput, context);
1671
- default:
1672
- const parsedBody = parsedOutput.body;
1673
- return throwDefaultError({
1674
- output,
1675
- parsedBody,
1676
- errorCode
1677
- });
1678
- }
1679
- }, "de_ListStageSessionsCommandError");
1680
1090
  var de_ListStorageConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1681
1091
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1682
- return de_ListStorageConfigurationsCommandError(output, context);
1092
+ return de_CommandError(output, context);
1683
1093
  }
1684
1094
  const contents = (0, import_smithy_client.map)({
1685
1095
  $metadata: deserializeMetadata(output)
@@ -1692,40 +1102,9 @@ var de_ListStorageConfigurationsCommand = /* @__PURE__ */ __name(async (output,
1692
1102
  Object.assign(contents, doc);
1693
1103
  return contents;
1694
1104
  }, "de_ListStorageConfigurationsCommand");
1695
- var de_ListStorageConfigurationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1696
- const parsedOutput = {
1697
- ...output,
1698
- body: await parseErrorBody(output.body, context)
1699
- };
1700
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1701
- switch (errorCode) {
1702
- case "AccessDeniedException":
1703
- case "com.amazonaws.ivsrealtime#AccessDeniedException":
1704
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1705
- case "ConflictException":
1706
- case "com.amazonaws.ivsrealtime#ConflictException":
1707
- throw await de_ConflictExceptionRes(parsedOutput, context);
1708
- case "InternalServerException":
1709
- case "com.amazonaws.ivsrealtime#InternalServerException":
1710
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1711
- case "ServiceQuotaExceededException":
1712
- case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
1713
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1714
- case "ValidationException":
1715
- case "com.amazonaws.ivsrealtime#ValidationException":
1716
- throw await de_ValidationExceptionRes(parsedOutput, context);
1717
- default:
1718
- const parsedBody = parsedOutput.body;
1719
- return throwDefaultError({
1720
- output,
1721
- parsedBody,
1722
- errorCode
1723
- });
1724
- }
1725
- }, "de_ListStorageConfigurationsCommandError");
1726
1105
  var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1727
1106
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1728
- return de_ListTagsForResourceCommandError(output, context);
1107
+ return de_CommandError(output, context);
1729
1108
  }
1730
1109
  const contents = (0, import_smithy_client.map)({
1731
1110
  $metadata: deserializeMetadata(output)
@@ -1737,34 +1116,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
1737
1116
  Object.assign(contents, doc);
1738
1117
  return contents;
1739
1118
  }, "de_ListTagsForResourceCommand");
1740
- var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1741
- const parsedOutput = {
1742
- ...output,
1743
- body: await parseErrorBody(output.body, context)
1744
- };
1745
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1746
- switch (errorCode) {
1747
- case "InternalServerException":
1748
- case "com.amazonaws.ivsrealtime#InternalServerException":
1749
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1750
- case "ResourceNotFoundException":
1751
- case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
1752
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1753
- case "ValidationException":
1754
- case "com.amazonaws.ivsrealtime#ValidationException":
1755
- throw await de_ValidationExceptionRes(parsedOutput, context);
1756
- default:
1757
- const parsedBody = parsedOutput.body;
1758
- return throwDefaultError({
1759
- output,
1760
- parsedBody,
1761
- errorCode
1762
- });
1763
- }
1764
- }, "de_ListTagsForResourceCommandError");
1765
1119
  var de_StartCompositionCommand = /* @__PURE__ */ __name(async (output, context) => {
1766
1120
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1767
- return de_StartCompositionCommandError(output, context);
1121
+ return de_CommandError(output, context);
1768
1122
  }
1769
1123
  const contents = (0, import_smithy_client.map)({
1770
1124
  $metadata: deserializeMetadata(output)
@@ -1776,46 +1130,9 @@ var de_StartCompositionCommand = /* @__PURE__ */ __name(async (output, context)
1776
1130
  Object.assign(contents, doc);
1777
1131
  return contents;
1778
1132
  }, "de_StartCompositionCommand");
1779
- var de_StartCompositionCommandError = /* @__PURE__ */ __name(async (output, context) => {
1780
- const parsedOutput = {
1781
- ...output,
1782
- body: await parseErrorBody(output.body, context)
1783
- };
1784
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1785
- switch (errorCode) {
1786
- case "AccessDeniedException":
1787
- case "com.amazonaws.ivsrealtime#AccessDeniedException":
1788
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1789
- case "ConflictException":
1790
- case "com.amazonaws.ivsrealtime#ConflictException":
1791
- throw await de_ConflictExceptionRes(parsedOutput, context);
1792
- case "InternalServerException":
1793
- case "com.amazonaws.ivsrealtime#InternalServerException":
1794
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1795
- case "PendingVerification":
1796
- case "com.amazonaws.ivsrealtime#PendingVerification":
1797
- throw await de_PendingVerificationRes(parsedOutput, context);
1798
- case "ResourceNotFoundException":
1799
- case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
1800
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1801
- case "ServiceQuotaExceededException":
1802
- case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
1803
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1804
- case "ValidationException":
1805
- case "com.amazonaws.ivsrealtime#ValidationException":
1806
- throw await de_ValidationExceptionRes(parsedOutput, context);
1807
- default:
1808
- const parsedBody = parsedOutput.body;
1809
- return throwDefaultError({
1810
- output,
1811
- parsedBody,
1812
- errorCode
1813
- });
1814
- }
1815
- }, "de_StartCompositionCommandError");
1816
1133
  var de_StopCompositionCommand = /* @__PURE__ */ __name(async (output, context) => {
1817
1134
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1818
- return de_StopCompositionCommandError(output, context);
1135
+ return de_CommandError(output, context);
1819
1136
  }
1820
1137
  const contents = (0, import_smithy_client.map)({
1821
1138
  $metadata: deserializeMetadata(output)
@@ -1823,43 +1140,9 @@ var de_StopCompositionCommand = /* @__PURE__ */ __name(async (output, context) =
1823
1140
  await (0, import_smithy_client.collectBody)(output.body, context);
1824
1141
  return contents;
1825
1142
  }, "de_StopCompositionCommand");
1826
- var de_StopCompositionCommandError = /* @__PURE__ */ __name(async (output, context) => {
1827
- const parsedOutput = {
1828
- ...output,
1829
- body: await parseErrorBody(output.body, context)
1830
- };
1831
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1832
- switch (errorCode) {
1833
- case "AccessDeniedException":
1834
- case "com.amazonaws.ivsrealtime#AccessDeniedException":
1835
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1836
- case "ConflictException":
1837
- case "com.amazonaws.ivsrealtime#ConflictException":
1838
- throw await de_ConflictExceptionRes(parsedOutput, context);
1839
- case "InternalServerException":
1840
- case "com.amazonaws.ivsrealtime#InternalServerException":
1841
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1842
- case "ResourceNotFoundException":
1843
- case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
1844
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1845
- case "ServiceQuotaExceededException":
1846
- case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
1847
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1848
- case "ValidationException":
1849
- case "com.amazonaws.ivsrealtime#ValidationException":
1850
- throw await de_ValidationExceptionRes(parsedOutput, context);
1851
- default:
1852
- const parsedBody = parsedOutput.body;
1853
- return throwDefaultError({
1854
- output,
1855
- parsedBody,
1856
- errorCode
1857
- });
1858
- }
1859
- }, "de_StopCompositionCommandError");
1860
1143
  var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1861
1144
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1862
- return de_TagResourceCommandError(output, context);
1145
+ return de_CommandError(output, context);
1863
1146
  }
1864
1147
  const contents = (0, import_smithy_client.map)({
1865
1148
  $metadata: deserializeMetadata(output)
@@ -1867,34 +1150,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1867
1150
  await (0, import_smithy_client.collectBody)(output.body, context);
1868
1151
  return contents;
1869
1152
  }, "de_TagResourceCommand");
1870
- var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1871
- const parsedOutput = {
1872
- ...output,
1873
- body: await parseErrorBody(output.body, context)
1874
- };
1875
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1876
- switch (errorCode) {
1877
- case "InternalServerException":
1878
- case "com.amazonaws.ivsrealtime#InternalServerException":
1879
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1880
- case "ResourceNotFoundException":
1881
- case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
1882
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1883
- case "ValidationException":
1884
- case "com.amazonaws.ivsrealtime#ValidationException":
1885
- throw await de_ValidationExceptionRes(parsedOutput, context);
1886
- default:
1887
- const parsedBody = parsedOutput.body;
1888
- return throwDefaultError({
1889
- output,
1890
- parsedBody,
1891
- errorCode
1892
- });
1893
- }
1894
- }, "de_TagResourceCommandError");
1895
1153
  var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1896
1154
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1897
- return de_UntagResourceCommandError(output, context);
1155
+ return de_CommandError(output, context);
1898
1156
  }
1899
1157
  const contents = (0, import_smithy_client.map)({
1900
1158
  $metadata: deserializeMetadata(output)
@@ -1902,34 +1160,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
1902
1160
  await (0, import_smithy_client.collectBody)(output.body, context);
1903
1161
  return contents;
1904
1162
  }, "de_UntagResourceCommand");
1905
- var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1906
- const parsedOutput = {
1907
- ...output,
1908
- body: await parseErrorBody(output.body, context)
1909
- };
1910
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1911
- switch (errorCode) {
1912
- case "InternalServerException":
1913
- case "com.amazonaws.ivsrealtime#InternalServerException":
1914
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1915
- case "ResourceNotFoundException":
1916
- case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
1917
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1918
- case "ValidationException":
1919
- case "com.amazonaws.ivsrealtime#ValidationException":
1920
- throw await de_ValidationExceptionRes(parsedOutput, context);
1921
- default:
1922
- const parsedBody = parsedOutput.body;
1923
- return throwDefaultError({
1924
- output,
1925
- parsedBody,
1926
- errorCode
1927
- });
1928
- }
1929
- }, "de_UntagResourceCommandError");
1930
1163
  var de_UpdateStageCommand = /* @__PURE__ */ __name(async (output, context) => {
1931
1164
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1932
- return de_UpdateStageCommandError(output, context);
1165
+ return de_CommandError(output, context);
1933
1166
  }
1934
1167
  const contents = (0, import_smithy_client.map)({
1935
1168
  $metadata: deserializeMetadata(output)
@@ -1941,7 +1174,7 @@ var de_UpdateStageCommand = /* @__PURE__ */ __name(async (output, context) => {
1941
1174
  Object.assign(contents, doc);
1942
1175
  return contents;
1943
1176
  }, "de_UpdateStageCommand");
1944
- var de_UpdateStageCommandError = /* @__PURE__ */ __name(async (output, context) => {
1177
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1945
1178
  const parsedOutput = {
1946
1179
  ...output,
1947
1180
  body: await parseErrorBody(output.body, context)
@@ -1951,6 +1184,12 @@ var de_UpdateStageCommandError = /* @__PURE__ */ __name(async (output, context)
1951
1184
  case "AccessDeniedException":
1952
1185
  case "com.amazonaws.ivsrealtime#AccessDeniedException":
1953
1186
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1187
+ case "ConflictException":
1188
+ case "com.amazonaws.ivsrealtime#ConflictException":
1189
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1190
+ case "InternalServerException":
1191
+ case "com.amazonaws.ivsrealtime#InternalServerException":
1192
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1954
1193
  case "PendingVerification":
1955
1194
  case "com.amazonaws.ivsrealtime#PendingVerification":
1956
1195
  throw await de_PendingVerificationRes(parsedOutput, context);
@@ -1971,7 +1210,7 @@ var de_UpdateStageCommandError = /* @__PURE__ */ __name(async (output, context)
1971
1210
  errorCode
1972
1211
  });
1973
1212
  }
1974
- }, "de_UpdateStageCommandError");
1213
+ }, "de_CommandError");
1975
1214
  var throwDefaultError = (0, import_smithy_client.withBaseException)(IVSRealTimeServiceException);
1976
1215
  var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1977
1216
  const contents = (0, import_smithy_client.map)({});