@aws-sdk/client-cleanrooms 3.503.1 → 3.507.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -805,7 +805,7 @@ export const se_UpdateProtectedQueryCommand = async (input, context) => {
805
805
  };
806
806
  export const de_BatchGetCollaborationAnalysisTemplateCommand = async (output, context) => {
807
807
  if (output.statusCode !== 200 && output.statusCode >= 300) {
808
- return de_BatchGetCollaborationAnalysisTemplateCommandError(output, context);
808
+ return de_CommandError(output, context);
809
809
  }
810
810
  const contents = map({
811
811
  $metadata: deserializeMetadata(output),
@@ -818,40 +818,9 @@ export const de_BatchGetCollaborationAnalysisTemplateCommand = async (output, co
818
818
  Object.assign(contents, doc);
819
819
  return contents;
820
820
  };
821
- const de_BatchGetCollaborationAnalysisTemplateCommandError = async (output, context) => {
822
- const parsedOutput = {
823
- ...output,
824
- body: await parseErrorBody(output.body, context),
825
- };
826
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
827
- switch (errorCode) {
828
- case "AccessDeniedException":
829
- case "com.amazonaws.cleanrooms#AccessDeniedException":
830
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
831
- case "InternalServerException":
832
- case "com.amazonaws.cleanrooms#InternalServerException":
833
- throw await de_InternalServerExceptionRes(parsedOutput, context);
834
- case "ResourceNotFoundException":
835
- case "com.amazonaws.cleanrooms#ResourceNotFoundException":
836
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
837
- case "ThrottlingException":
838
- case "com.amazonaws.cleanrooms#ThrottlingException":
839
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
840
- case "ValidationException":
841
- case "com.amazonaws.cleanrooms#ValidationException":
842
- throw await de_ValidationExceptionRes(parsedOutput, context);
843
- default:
844
- const parsedBody = parsedOutput.body;
845
- return throwDefaultError({
846
- output,
847
- parsedBody,
848
- errorCode,
849
- });
850
- }
851
- };
852
821
  export const de_BatchGetSchemaCommand = async (output, context) => {
853
822
  if (output.statusCode !== 200 && output.statusCode >= 300) {
854
- return de_BatchGetSchemaCommandError(output, context);
823
+ return de_CommandError(output, context);
855
824
  }
856
825
  const contents = map({
857
826
  $metadata: deserializeMetadata(output),
@@ -864,40 +833,9 @@ export const de_BatchGetSchemaCommand = async (output, context) => {
864
833
  Object.assign(contents, doc);
865
834
  return contents;
866
835
  };
867
- const de_BatchGetSchemaCommandError = async (output, context) => {
868
- const parsedOutput = {
869
- ...output,
870
- body: await parseErrorBody(output.body, context),
871
- };
872
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
873
- switch (errorCode) {
874
- case "AccessDeniedException":
875
- case "com.amazonaws.cleanrooms#AccessDeniedException":
876
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
877
- case "InternalServerException":
878
- case "com.amazonaws.cleanrooms#InternalServerException":
879
- throw await de_InternalServerExceptionRes(parsedOutput, context);
880
- case "ResourceNotFoundException":
881
- case "com.amazonaws.cleanrooms#ResourceNotFoundException":
882
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
883
- case "ThrottlingException":
884
- case "com.amazonaws.cleanrooms#ThrottlingException":
885
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
886
- case "ValidationException":
887
- case "com.amazonaws.cleanrooms#ValidationException":
888
- throw await de_ValidationExceptionRes(parsedOutput, context);
889
- default:
890
- const parsedBody = parsedOutput.body;
891
- return throwDefaultError({
892
- output,
893
- parsedBody,
894
- errorCode,
895
- });
896
- }
897
- };
898
836
  export const de_CreateAnalysisTemplateCommand = async (output, context) => {
899
837
  if (output.statusCode !== 200 && output.statusCode >= 300) {
900
- return de_CreateAnalysisTemplateCommandError(output, context);
838
+ return de_CommandError(output, context);
901
839
  }
902
840
  const contents = map({
903
841
  $metadata: deserializeMetadata(output),
@@ -909,46 +847,9 @@ export const de_CreateAnalysisTemplateCommand = async (output, context) => {
909
847
  Object.assign(contents, doc);
910
848
  return contents;
911
849
  };
912
- const de_CreateAnalysisTemplateCommandError = async (output, context) => {
913
- const parsedOutput = {
914
- ...output,
915
- body: await parseErrorBody(output.body, context),
916
- };
917
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
918
- switch (errorCode) {
919
- case "AccessDeniedException":
920
- case "com.amazonaws.cleanrooms#AccessDeniedException":
921
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
922
- case "ConflictException":
923
- case "com.amazonaws.cleanrooms#ConflictException":
924
- throw await de_ConflictExceptionRes(parsedOutput, context);
925
- case "InternalServerException":
926
- case "com.amazonaws.cleanrooms#InternalServerException":
927
- throw await de_InternalServerExceptionRes(parsedOutput, context);
928
- case "ResourceNotFoundException":
929
- case "com.amazonaws.cleanrooms#ResourceNotFoundException":
930
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
931
- case "ServiceQuotaExceededException":
932
- case "com.amazonaws.cleanrooms#ServiceQuotaExceededException":
933
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
934
- case "ThrottlingException":
935
- case "com.amazonaws.cleanrooms#ThrottlingException":
936
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
937
- case "ValidationException":
938
- case "com.amazonaws.cleanrooms#ValidationException":
939
- throw await de_ValidationExceptionRes(parsedOutput, context);
940
- default:
941
- const parsedBody = parsedOutput.body;
942
- return throwDefaultError({
943
- output,
944
- parsedBody,
945
- errorCode,
946
- });
947
- }
948
- };
949
850
  export const de_CreateCollaborationCommand = async (output, context) => {
950
851
  if (output.statusCode !== 200 && output.statusCode >= 300) {
951
- return de_CreateCollaborationCommandError(output, context);
852
+ return de_CommandError(output, context);
952
853
  }
953
854
  const contents = map({
954
855
  $metadata: deserializeMetadata(output),
@@ -960,40 +861,9 @@ export const de_CreateCollaborationCommand = async (output, context) => {
960
861
  Object.assign(contents, doc);
961
862
  return contents;
962
863
  };
963
- const de_CreateCollaborationCommandError = async (output, context) => {
964
- const parsedOutput = {
965
- ...output,
966
- body: await parseErrorBody(output.body, context),
967
- };
968
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
969
- switch (errorCode) {
970
- case "AccessDeniedException":
971
- case "com.amazonaws.cleanrooms#AccessDeniedException":
972
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
973
- case "InternalServerException":
974
- case "com.amazonaws.cleanrooms#InternalServerException":
975
- throw await de_InternalServerExceptionRes(parsedOutput, context);
976
- case "ServiceQuotaExceededException":
977
- case "com.amazonaws.cleanrooms#ServiceQuotaExceededException":
978
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
979
- case "ThrottlingException":
980
- case "com.amazonaws.cleanrooms#ThrottlingException":
981
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
982
- case "ValidationException":
983
- case "com.amazonaws.cleanrooms#ValidationException":
984
- throw await de_ValidationExceptionRes(parsedOutput, context);
985
- default:
986
- const parsedBody = parsedOutput.body;
987
- return throwDefaultError({
988
- output,
989
- parsedBody,
990
- errorCode,
991
- });
992
- }
993
- };
994
864
  export const de_CreateConfiguredAudienceModelAssociationCommand = async (output, context) => {
995
865
  if (output.statusCode !== 200 && output.statusCode >= 300) {
996
- return de_CreateConfiguredAudienceModelAssociationCommandError(output, context);
866
+ return de_CommandError(output, context);
997
867
  }
998
868
  const contents = map({
999
869
  $metadata: deserializeMetadata(output),
@@ -1005,46 +875,9 @@ export const de_CreateConfiguredAudienceModelAssociationCommand = async (output,
1005
875
  Object.assign(contents, doc);
1006
876
  return contents;
1007
877
  };
1008
- const de_CreateConfiguredAudienceModelAssociationCommandError = async (output, context) => {
1009
- const parsedOutput = {
1010
- ...output,
1011
- body: await parseErrorBody(output.body, context),
1012
- };
1013
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1014
- switch (errorCode) {
1015
- case "AccessDeniedException":
1016
- case "com.amazonaws.cleanrooms#AccessDeniedException":
1017
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1018
- case "ConflictException":
1019
- case "com.amazonaws.cleanrooms#ConflictException":
1020
- throw await de_ConflictExceptionRes(parsedOutput, context);
1021
- case "InternalServerException":
1022
- case "com.amazonaws.cleanrooms#InternalServerException":
1023
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1024
- case "ResourceNotFoundException":
1025
- case "com.amazonaws.cleanrooms#ResourceNotFoundException":
1026
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1027
- case "ServiceQuotaExceededException":
1028
- case "com.amazonaws.cleanrooms#ServiceQuotaExceededException":
1029
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1030
- case "ThrottlingException":
1031
- case "com.amazonaws.cleanrooms#ThrottlingException":
1032
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1033
- case "ValidationException":
1034
- case "com.amazonaws.cleanrooms#ValidationException":
1035
- throw await de_ValidationExceptionRes(parsedOutput, context);
1036
- default:
1037
- const parsedBody = parsedOutput.body;
1038
- return throwDefaultError({
1039
- output,
1040
- parsedBody,
1041
- errorCode,
1042
- });
1043
- }
1044
- };
1045
878
  export const de_CreateConfiguredTableCommand = async (output, context) => {
1046
879
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1047
- return de_CreateConfiguredTableCommandError(output, context);
880
+ return de_CommandError(output, context);
1048
881
  }
1049
882
  const contents = map({
1050
883
  $metadata: deserializeMetadata(output),
@@ -1056,46 +889,9 @@ export const de_CreateConfiguredTableCommand = async (output, context) => {
1056
889
  Object.assign(contents, doc);
1057
890
  return contents;
1058
891
  };
1059
- const de_CreateConfiguredTableCommandError = async (output, context) => {
1060
- const parsedOutput = {
1061
- ...output,
1062
- body: await parseErrorBody(output.body, context),
1063
- };
1064
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1065
- switch (errorCode) {
1066
- case "AccessDeniedException":
1067
- case "com.amazonaws.cleanrooms#AccessDeniedException":
1068
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1069
- case "ConflictException":
1070
- case "com.amazonaws.cleanrooms#ConflictException":
1071
- throw await de_ConflictExceptionRes(parsedOutput, context);
1072
- case "InternalServerException":
1073
- case "com.amazonaws.cleanrooms#InternalServerException":
1074
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1075
- case "ResourceNotFoundException":
1076
- case "com.amazonaws.cleanrooms#ResourceNotFoundException":
1077
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1078
- case "ServiceQuotaExceededException":
1079
- case "com.amazonaws.cleanrooms#ServiceQuotaExceededException":
1080
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1081
- case "ThrottlingException":
1082
- case "com.amazonaws.cleanrooms#ThrottlingException":
1083
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1084
- case "ValidationException":
1085
- case "com.amazonaws.cleanrooms#ValidationException":
1086
- throw await de_ValidationExceptionRes(parsedOutput, context);
1087
- default:
1088
- const parsedBody = parsedOutput.body;
1089
- return throwDefaultError({
1090
- output,
1091
- parsedBody,
1092
- errorCode,
1093
- });
1094
- }
1095
- };
1096
892
  export const de_CreateConfiguredTableAnalysisRuleCommand = async (output, context) => {
1097
893
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1098
- return de_CreateConfiguredTableAnalysisRuleCommandError(output, context);
894
+ return de_CommandError(output, context);
1099
895
  }
1100
896
  const contents = map({
1101
897
  $metadata: deserializeMetadata(output),
@@ -1107,43 +903,9 @@ export const de_CreateConfiguredTableAnalysisRuleCommand = async (output, contex
1107
903
  Object.assign(contents, doc);
1108
904
  return contents;
1109
905
  };
1110
- const de_CreateConfiguredTableAnalysisRuleCommandError = async (output, context) => {
1111
- const parsedOutput = {
1112
- ...output,
1113
- body: await parseErrorBody(output.body, context),
1114
- };
1115
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1116
- switch (errorCode) {
1117
- case "AccessDeniedException":
1118
- case "com.amazonaws.cleanrooms#AccessDeniedException":
1119
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1120
- case "ConflictException":
1121
- case "com.amazonaws.cleanrooms#ConflictException":
1122
- throw await de_ConflictExceptionRes(parsedOutput, context);
1123
- case "InternalServerException":
1124
- case "com.amazonaws.cleanrooms#InternalServerException":
1125
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1126
- case "ResourceNotFoundException":
1127
- case "com.amazonaws.cleanrooms#ResourceNotFoundException":
1128
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1129
- case "ThrottlingException":
1130
- case "com.amazonaws.cleanrooms#ThrottlingException":
1131
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1132
- case "ValidationException":
1133
- case "com.amazonaws.cleanrooms#ValidationException":
1134
- throw await de_ValidationExceptionRes(parsedOutput, context);
1135
- default:
1136
- const parsedBody = parsedOutput.body;
1137
- return throwDefaultError({
1138
- output,
1139
- parsedBody,
1140
- errorCode,
1141
- });
1142
- }
1143
- };
1144
906
  export const de_CreateConfiguredTableAssociationCommand = async (output, context) => {
1145
907
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1146
- return de_CreateConfiguredTableAssociationCommandError(output, context);
908
+ return de_CommandError(output, context);
1147
909
  }
1148
910
  const contents = map({
1149
911
  $metadata: deserializeMetadata(output),
@@ -1155,46 +917,9 @@ export const de_CreateConfiguredTableAssociationCommand = async (output, context
1155
917
  Object.assign(contents, doc);
1156
918
  return contents;
1157
919
  };
1158
- const de_CreateConfiguredTableAssociationCommandError = async (output, context) => {
1159
- const parsedOutput = {
1160
- ...output,
1161
- body: await parseErrorBody(output.body, context),
1162
- };
1163
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1164
- switch (errorCode) {
1165
- case "AccessDeniedException":
1166
- case "com.amazonaws.cleanrooms#AccessDeniedException":
1167
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1168
- case "ConflictException":
1169
- case "com.amazonaws.cleanrooms#ConflictException":
1170
- throw await de_ConflictExceptionRes(parsedOutput, context);
1171
- case "InternalServerException":
1172
- case "com.amazonaws.cleanrooms#InternalServerException":
1173
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1174
- case "ResourceNotFoundException":
1175
- case "com.amazonaws.cleanrooms#ResourceNotFoundException":
1176
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1177
- case "ServiceQuotaExceededException":
1178
- case "com.amazonaws.cleanrooms#ServiceQuotaExceededException":
1179
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1180
- case "ThrottlingException":
1181
- case "com.amazonaws.cleanrooms#ThrottlingException":
1182
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1183
- case "ValidationException":
1184
- case "com.amazonaws.cleanrooms#ValidationException":
1185
- throw await de_ValidationExceptionRes(parsedOutput, context);
1186
- default:
1187
- const parsedBody = parsedOutput.body;
1188
- return throwDefaultError({
1189
- output,
1190
- parsedBody,
1191
- errorCode,
1192
- });
1193
- }
1194
- };
1195
920
  export const de_CreateMembershipCommand = async (output, context) => {
1196
921
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1197
- return de_CreateMembershipCommandError(output, context);
922
+ return de_CommandError(output, context);
1198
923
  }
1199
924
  const contents = map({
1200
925
  $metadata: deserializeMetadata(output),
@@ -1206,46 +931,9 @@ export const de_CreateMembershipCommand = async (output, context) => {
1206
931
  Object.assign(contents, doc);
1207
932
  return contents;
1208
933
  };
1209
- const de_CreateMembershipCommandError = async (output, context) => {
1210
- const parsedOutput = {
1211
- ...output,
1212
- body: await parseErrorBody(output.body, context),
1213
- };
1214
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1215
- switch (errorCode) {
1216
- case "AccessDeniedException":
1217
- case "com.amazonaws.cleanrooms#AccessDeniedException":
1218
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1219
- case "ConflictException":
1220
- case "com.amazonaws.cleanrooms#ConflictException":
1221
- throw await de_ConflictExceptionRes(parsedOutput, context);
1222
- case "InternalServerException":
1223
- case "com.amazonaws.cleanrooms#InternalServerException":
1224
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1225
- case "ResourceNotFoundException":
1226
- case "com.amazonaws.cleanrooms#ResourceNotFoundException":
1227
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1228
- case "ServiceQuotaExceededException":
1229
- case "com.amazonaws.cleanrooms#ServiceQuotaExceededException":
1230
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1231
- case "ThrottlingException":
1232
- case "com.amazonaws.cleanrooms#ThrottlingException":
1233
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1234
- case "ValidationException":
1235
- case "com.amazonaws.cleanrooms#ValidationException":
1236
- throw await de_ValidationExceptionRes(parsedOutput, context);
1237
- default:
1238
- const parsedBody = parsedOutput.body;
1239
- return throwDefaultError({
1240
- output,
1241
- parsedBody,
1242
- errorCode,
1243
- });
1244
- }
1245
- };
1246
934
  export const de_CreatePrivacyBudgetTemplateCommand = async (output, context) => {
1247
935
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1248
- return de_CreatePrivacyBudgetTemplateCommandError(output, context);
936
+ return de_CommandError(output, context);
1249
937
  }
1250
938
  const contents = map({
1251
939
  $metadata: deserializeMetadata(output),
@@ -1257,43 +945,9 @@ export const de_CreatePrivacyBudgetTemplateCommand = async (output, context) =>
1257
945
  Object.assign(contents, doc);
1258
946
  return contents;
1259
947
  };
1260
- const de_CreatePrivacyBudgetTemplateCommandError = async (output, context) => {
1261
- const parsedOutput = {
1262
- ...output,
1263
- body: await parseErrorBody(output.body, context),
1264
- };
1265
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1266
- switch (errorCode) {
1267
- case "AccessDeniedException":
1268
- case "com.amazonaws.cleanrooms#AccessDeniedException":
1269
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1270
- case "ConflictException":
1271
- case "com.amazonaws.cleanrooms#ConflictException":
1272
- throw await de_ConflictExceptionRes(parsedOutput, context);
1273
- case "InternalServerException":
1274
- case "com.amazonaws.cleanrooms#InternalServerException":
1275
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1276
- case "ResourceNotFoundException":
1277
- case "com.amazonaws.cleanrooms#ResourceNotFoundException":
1278
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1279
- case "ThrottlingException":
1280
- case "com.amazonaws.cleanrooms#ThrottlingException":
1281
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1282
- case "ValidationException":
1283
- case "com.amazonaws.cleanrooms#ValidationException":
1284
- throw await de_ValidationExceptionRes(parsedOutput, context);
1285
- default:
1286
- const parsedBody = parsedOutput.body;
1287
- return throwDefaultError({
1288
- output,
1289
- parsedBody,
1290
- errorCode,
1291
- });
1292
- }
1293
- };
1294
948
  export const de_DeleteAnalysisTemplateCommand = async (output, context) => {
1295
949
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1296
- return de_DeleteAnalysisTemplateCommandError(output, context);
950
+ return de_CommandError(output, context);
1297
951
  }
1298
952
  const contents = map({
1299
953
  $metadata: deserializeMetadata(output),
@@ -1301,40 +955,9 @@ export const de_DeleteAnalysisTemplateCommand = async (output, context) => {
1301
955
  await collectBody(output.body, context);
1302
956
  return contents;
1303
957
  };
1304
- const de_DeleteAnalysisTemplateCommandError = async (output, context) => {
1305
- const parsedOutput = {
1306
- ...output,
1307
- body: await parseErrorBody(output.body, context),
1308
- };
1309
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1310
- switch (errorCode) {
1311
- case "AccessDeniedException":
1312
- case "com.amazonaws.cleanrooms#AccessDeniedException":
1313
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1314
- case "InternalServerException":
1315
- case "com.amazonaws.cleanrooms#InternalServerException":
1316
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1317
- case "ResourceNotFoundException":
1318
- case "com.amazonaws.cleanrooms#ResourceNotFoundException":
1319
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1320
- case "ThrottlingException":
1321
- case "com.amazonaws.cleanrooms#ThrottlingException":
1322
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1323
- case "ValidationException":
1324
- case "com.amazonaws.cleanrooms#ValidationException":
1325
- throw await de_ValidationExceptionRes(parsedOutput, context);
1326
- default:
1327
- const parsedBody = parsedOutput.body;
1328
- return throwDefaultError({
1329
- output,
1330
- parsedBody,
1331
- errorCode,
1332
- });
1333
- }
1334
- };
1335
958
  export const de_DeleteCollaborationCommand = async (output, context) => {
1336
959
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1337
- return de_DeleteCollaborationCommandError(output, context);
960
+ return de_CommandError(output, context);
1338
961
  }
1339
962
  const contents = map({
1340
963
  $metadata: deserializeMetadata(output),
@@ -1342,37 +965,9 @@ export const de_DeleteCollaborationCommand = async (output, context) => {
1342
965
  await collectBody(output.body, context);
1343
966
  return contents;
1344
967
  };
1345
- const de_DeleteCollaborationCommandError = async (output, context) => {
1346
- const parsedOutput = {
1347
- ...output,
1348
- body: await parseErrorBody(output.body, context),
1349
- };
1350
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1351
- switch (errorCode) {
1352
- case "AccessDeniedException":
1353
- case "com.amazonaws.cleanrooms#AccessDeniedException":
1354
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1355
- case "InternalServerException":
1356
- case "com.amazonaws.cleanrooms#InternalServerException":
1357
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1358
- case "ThrottlingException":
1359
- case "com.amazonaws.cleanrooms#ThrottlingException":
1360
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1361
- case "ValidationException":
1362
- case "com.amazonaws.cleanrooms#ValidationException":
1363
- throw await de_ValidationExceptionRes(parsedOutput, context);
1364
- default:
1365
- const parsedBody = parsedOutput.body;
1366
- return throwDefaultError({
1367
- output,
1368
- parsedBody,
1369
- errorCode,
1370
- });
1371
- }
1372
- };
1373
968
  export const de_DeleteConfiguredAudienceModelAssociationCommand = async (output, context) => {
1374
969
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1375
- return de_DeleteConfiguredAudienceModelAssociationCommandError(output, context);
970
+ return de_CommandError(output, context);
1376
971
  }
1377
972
  const contents = map({
1378
973
  $metadata: deserializeMetadata(output),
@@ -1380,40 +975,19 @@ export const de_DeleteConfiguredAudienceModelAssociationCommand = async (output,
1380
975
  await collectBody(output.body, context);
1381
976
  return contents;
1382
977
  };
1383
- const de_DeleteConfiguredAudienceModelAssociationCommandError = async (output, context) => {
1384
- const parsedOutput = {
1385
- ...output,
1386
- body: await parseErrorBody(output.body, context),
1387
- };
1388
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1389
- switch (errorCode) {
1390
- case "AccessDeniedException":
1391
- case "com.amazonaws.cleanrooms#AccessDeniedException":
1392
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1393
- case "InternalServerException":
1394
- case "com.amazonaws.cleanrooms#InternalServerException":
1395
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1396
- case "ResourceNotFoundException":
1397
- case "com.amazonaws.cleanrooms#ResourceNotFoundException":
1398
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1399
- case "ThrottlingException":
1400
- case "com.amazonaws.cleanrooms#ThrottlingException":
1401
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1402
- case "ValidationException":
1403
- case "com.amazonaws.cleanrooms#ValidationException":
1404
- throw await de_ValidationExceptionRes(parsedOutput, context);
1405
- default:
1406
- const parsedBody = parsedOutput.body;
1407
- return throwDefaultError({
1408
- output,
1409
- parsedBody,
1410
- errorCode,
1411
- });
978
+ export const de_DeleteConfiguredTableCommand = async (output, context) => {
979
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
980
+ return de_CommandError(output, context);
1412
981
  }
982
+ const contents = map({
983
+ $metadata: deserializeMetadata(output),
984
+ });
985
+ await collectBody(output.body, context);
986
+ return contents;
1413
987
  };
1414
- export const de_DeleteConfiguredTableCommand = async (output, context) => {
988
+ export const de_DeleteConfiguredTableAnalysisRuleCommand = async (output, context) => {
1415
989
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1416
- return de_DeleteConfiguredTableCommandError(output, context);
990
+ return de_CommandError(output, context);
1417
991
  }
1418
992
  const contents = map({
1419
993
  $metadata: deserializeMetadata(output),
@@ -1421,43 +995,19 @@ export const de_DeleteConfiguredTableCommand = async (output, context) => {
1421
995
  await collectBody(output.body, context);
1422
996
  return contents;
1423
997
  };
1424
- const de_DeleteConfiguredTableCommandError = async (output, context) => {
1425
- const parsedOutput = {
1426
- ...output,
1427
- body: await parseErrorBody(output.body, context),
1428
- };
1429
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1430
- switch (errorCode) {
1431
- case "AccessDeniedException":
1432
- case "com.amazonaws.cleanrooms#AccessDeniedException":
1433
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1434
- case "ConflictException":
1435
- case "com.amazonaws.cleanrooms#ConflictException":
1436
- throw await de_ConflictExceptionRes(parsedOutput, context);
1437
- case "InternalServerException":
1438
- case "com.amazonaws.cleanrooms#InternalServerException":
1439
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1440
- case "ResourceNotFoundException":
1441
- case "com.amazonaws.cleanrooms#ResourceNotFoundException":
1442
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1443
- case "ThrottlingException":
1444
- case "com.amazonaws.cleanrooms#ThrottlingException":
1445
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1446
- case "ValidationException":
1447
- case "com.amazonaws.cleanrooms#ValidationException":
1448
- throw await de_ValidationExceptionRes(parsedOutput, context);
1449
- default:
1450
- const parsedBody = parsedOutput.body;
1451
- return throwDefaultError({
1452
- output,
1453
- parsedBody,
1454
- errorCode,
1455
- });
998
+ export const de_DeleteConfiguredTableAssociationCommand = async (output, context) => {
999
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1000
+ return de_CommandError(output, context);
1456
1001
  }
1002
+ const contents = map({
1003
+ $metadata: deserializeMetadata(output),
1004
+ });
1005
+ await collectBody(output.body, context);
1006
+ return contents;
1457
1007
  };
1458
- export const de_DeleteConfiguredTableAnalysisRuleCommand = async (output, context) => {
1008
+ export const de_DeleteMemberCommand = async (output, context) => {
1459
1009
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1460
- return de_DeleteConfiguredTableAnalysisRuleCommandError(output, context);
1010
+ return de_CommandError(output, context);
1461
1011
  }
1462
1012
  const contents = map({
1463
1013
  $metadata: deserializeMetadata(output),
@@ -1465,43 +1015,19 @@ export const de_DeleteConfiguredTableAnalysisRuleCommand = async (output, contex
1465
1015
  await collectBody(output.body, context);
1466
1016
  return contents;
1467
1017
  };
1468
- const de_DeleteConfiguredTableAnalysisRuleCommandError = async (output, context) => {
1469
- const parsedOutput = {
1470
- ...output,
1471
- body: await parseErrorBody(output.body, context),
1472
- };
1473
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1474
- switch (errorCode) {
1475
- case "AccessDeniedException":
1476
- case "com.amazonaws.cleanrooms#AccessDeniedException":
1477
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1478
- case "ConflictException":
1479
- case "com.amazonaws.cleanrooms#ConflictException":
1480
- throw await de_ConflictExceptionRes(parsedOutput, context);
1481
- case "InternalServerException":
1482
- case "com.amazonaws.cleanrooms#InternalServerException":
1483
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1484
- case "ResourceNotFoundException":
1485
- case "com.amazonaws.cleanrooms#ResourceNotFoundException":
1486
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1487
- case "ThrottlingException":
1488
- case "com.amazonaws.cleanrooms#ThrottlingException":
1489
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1490
- case "ValidationException":
1491
- case "com.amazonaws.cleanrooms#ValidationException":
1492
- throw await de_ValidationExceptionRes(parsedOutput, context);
1493
- default:
1494
- const parsedBody = parsedOutput.body;
1495
- return throwDefaultError({
1496
- output,
1497
- parsedBody,
1498
- errorCode,
1499
- });
1018
+ export const de_DeleteMembershipCommand = async (output, context) => {
1019
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1020
+ return de_CommandError(output, context);
1500
1021
  }
1022
+ const contents = map({
1023
+ $metadata: deserializeMetadata(output),
1024
+ });
1025
+ await collectBody(output.body, context);
1026
+ return contents;
1501
1027
  };
1502
- export const de_DeleteConfiguredTableAssociationCommand = async (output, context) => {
1028
+ export const de_DeletePrivacyBudgetTemplateCommand = async (output, context) => {
1503
1029
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1504
- return de_DeleteConfiguredTableAssociationCommandError(output, context);
1030
+ return de_CommandError(output, context);
1505
1031
  }
1506
1032
  const contents = map({
1507
1033
  $metadata: deserializeMetadata(output),
@@ -1509,172 +1035,9 @@ export const de_DeleteConfiguredTableAssociationCommand = async (output, context
1509
1035
  await collectBody(output.body, context);
1510
1036
  return contents;
1511
1037
  };
1512
- const de_DeleteConfiguredTableAssociationCommandError = async (output, context) => {
1513
- const parsedOutput = {
1514
- ...output,
1515
- body: await parseErrorBody(output.body, context),
1516
- };
1517
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1518
- switch (errorCode) {
1519
- case "AccessDeniedException":
1520
- case "com.amazonaws.cleanrooms#AccessDeniedException":
1521
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1522
- case "ConflictException":
1523
- case "com.amazonaws.cleanrooms#ConflictException":
1524
- throw await de_ConflictExceptionRes(parsedOutput, context);
1525
- case "InternalServerException":
1526
- case "com.amazonaws.cleanrooms#InternalServerException":
1527
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1528
- case "ResourceNotFoundException":
1529
- case "com.amazonaws.cleanrooms#ResourceNotFoundException":
1530
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1531
- case "ThrottlingException":
1532
- case "com.amazonaws.cleanrooms#ThrottlingException":
1533
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1534
- case "ValidationException":
1535
- case "com.amazonaws.cleanrooms#ValidationException":
1536
- throw await de_ValidationExceptionRes(parsedOutput, context);
1537
- default:
1538
- const parsedBody = parsedOutput.body;
1539
- return throwDefaultError({
1540
- output,
1541
- parsedBody,
1542
- errorCode,
1543
- });
1544
- }
1545
- };
1546
- export const de_DeleteMemberCommand = async (output, context) => {
1547
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1548
- return de_DeleteMemberCommandError(output, context);
1549
- }
1550
- const contents = map({
1551
- $metadata: deserializeMetadata(output),
1552
- });
1553
- await collectBody(output.body, context);
1554
- return contents;
1555
- };
1556
- const de_DeleteMemberCommandError = async (output, context) => {
1557
- const parsedOutput = {
1558
- ...output,
1559
- body: await parseErrorBody(output.body, context),
1560
- };
1561
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1562
- switch (errorCode) {
1563
- case "AccessDeniedException":
1564
- case "com.amazonaws.cleanrooms#AccessDeniedException":
1565
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1566
- case "ConflictException":
1567
- case "com.amazonaws.cleanrooms#ConflictException":
1568
- throw await de_ConflictExceptionRes(parsedOutput, context);
1569
- case "InternalServerException":
1570
- case "com.amazonaws.cleanrooms#InternalServerException":
1571
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1572
- case "ResourceNotFoundException":
1573
- case "com.amazonaws.cleanrooms#ResourceNotFoundException":
1574
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1575
- case "ThrottlingException":
1576
- case "com.amazonaws.cleanrooms#ThrottlingException":
1577
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1578
- case "ValidationException":
1579
- case "com.amazonaws.cleanrooms#ValidationException":
1580
- throw await de_ValidationExceptionRes(parsedOutput, context);
1581
- default:
1582
- const parsedBody = parsedOutput.body;
1583
- return throwDefaultError({
1584
- output,
1585
- parsedBody,
1586
- errorCode,
1587
- });
1588
- }
1589
- };
1590
- export const de_DeleteMembershipCommand = async (output, context) => {
1591
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1592
- return de_DeleteMembershipCommandError(output, context);
1593
- }
1594
- const contents = map({
1595
- $metadata: deserializeMetadata(output),
1596
- });
1597
- await collectBody(output.body, context);
1598
- return contents;
1599
- };
1600
- const de_DeleteMembershipCommandError = async (output, context) => {
1601
- const parsedOutput = {
1602
- ...output,
1603
- body: await parseErrorBody(output.body, context),
1604
- };
1605
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1606
- switch (errorCode) {
1607
- case "AccessDeniedException":
1608
- case "com.amazonaws.cleanrooms#AccessDeniedException":
1609
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1610
- case "ConflictException":
1611
- case "com.amazonaws.cleanrooms#ConflictException":
1612
- throw await de_ConflictExceptionRes(parsedOutput, context);
1613
- case "InternalServerException":
1614
- case "com.amazonaws.cleanrooms#InternalServerException":
1615
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1616
- case "ResourceNotFoundException":
1617
- case "com.amazonaws.cleanrooms#ResourceNotFoundException":
1618
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1619
- case "ThrottlingException":
1620
- case "com.amazonaws.cleanrooms#ThrottlingException":
1621
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1622
- case "ValidationException":
1623
- case "com.amazonaws.cleanrooms#ValidationException":
1624
- throw await de_ValidationExceptionRes(parsedOutput, context);
1625
- default:
1626
- const parsedBody = parsedOutput.body;
1627
- return throwDefaultError({
1628
- output,
1629
- parsedBody,
1630
- errorCode,
1631
- });
1632
- }
1633
- };
1634
- export const de_DeletePrivacyBudgetTemplateCommand = async (output, context) => {
1635
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1636
- return de_DeletePrivacyBudgetTemplateCommandError(output, context);
1637
- }
1638
- const contents = map({
1639
- $metadata: deserializeMetadata(output),
1640
- });
1641
- await collectBody(output.body, context);
1642
- return contents;
1643
- };
1644
- const de_DeletePrivacyBudgetTemplateCommandError = async (output, context) => {
1645
- const parsedOutput = {
1646
- ...output,
1647
- body: await parseErrorBody(output.body, context),
1648
- };
1649
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1650
- switch (errorCode) {
1651
- case "AccessDeniedException":
1652
- case "com.amazonaws.cleanrooms#AccessDeniedException":
1653
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1654
- case "InternalServerException":
1655
- case "com.amazonaws.cleanrooms#InternalServerException":
1656
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1657
- case "ResourceNotFoundException":
1658
- case "com.amazonaws.cleanrooms#ResourceNotFoundException":
1659
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1660
- case "ThrottlingException":
1661
- case "com.amazonaws.cleanrooms#ThrottlingException":
1662
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1663
- case "ValidationException":
1664
- case "com.amazonaws.cleanrooms#ValidationException":
1665
- throw await de_ValidationExceptionRes(parsedOutput, context);
1666
- default:
1667
- const parsedBody = parsedOutput.body;
1668
- return throwDefaultError({
1669
- output,
1670
- parsedBody,
1671
- errorCode,
1672
- });
1673
- }
1674
- };
1675
1038
  export const de_GetAnalysisTemplateCommand = async (output, context) => {
1676
1039
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1677
- return de_GetAnalysisTemplateCommandError(output, context);
1040
+ return de_CommandError(output, context);
1678
1041
  }
1679
1042
  const contents = map({
1680
1043
  $metadata: deserializeMetadata(output),
@@ -1686,40 +1049,9 @@ export const de_GetAnalysisTemplateCommand = async (output, context) => {
1686
1049
  Object.assign(contents, doc);
1687
1050
  return contents;
1688
1051
  };
1689
- const de_GetAnalysisTemplateCommandError = async (output, context) => {
1690
- const parsedOutput = {
1691
- ...output,
1692
- body: await parseErrorBody(output.body, context),
1693
- };
1694
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1695
- switch (errorCode) {
1696
- case "AccessDeniedException":
1697
- case "com.amazonaws.cleanrooms#AccessDeniedException":
1698
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1699
- case "InternalServerException":
1700
- case "com.amazonaws.cleanrooms#InternalServerException":
1701
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1702
- case "ResourceNotFoundException":
1703
- case "com.amazonaws.cleanrooms#ResourceNotFoundException":
1704
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1705
- case "ThrottlingException":
1706
- case "com.amazonaws.cleanrooms#ThrottlingException":
1707
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1708
- case "ValidationException":
1709
- case "com.amazonaws.cleanrooms#ValidationException":
1710
- throw await de_ValidationExceptionRes(parsedOutput, context);
1711
- default:
1712
- const parsedBody = parsedOutput.body;
1713
- return throwDefaultError({
1714
- output,
1715
- parsedBody,
1716
- errorCode,
1717
- });
1718
- }
1719
- };
1720
1052
  export const de_GetCollaborationCommand = async (output, context) => {
1721
1053
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1722
- return de_GetCollaborationCommandError(output, context);
1054
+ return de_CommandError(output, context);
1723
1055
  }
1724
1056
  const contents = map({
1725
1057
  $metadata: deserializeMetadata(output),
@@ -1731,37 +1063,9 @@ export const de_GetCollaborationCommand = async (output, context) => {
1731
1063
  Object.assign(contents, doc);
1732
1064
  return contents;
1733
1065
  };
1734
- const de_GetCollaborationCommandError = async (output, context) => {
1735
- const parsedOutput = {
1736
- ...output,
1737
- body: await parseErrorBody(output.body, context),
1738
- };
1739
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1740
- switch (errorCode) {
1741
- case "AccessDeniedException":
1742
- case "com.amazonaws.cleanrooms#AccessDeniedException":
1743
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1744
- case "InternalServerException":
1745
- case "com.amazonaws.cleanrooms#InternalServerException":
1746
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1747
- case "ThrottlingException":
1748
- case "com.amazonaws.cleanrooms#ThrottlingException":
1749
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1750
- case "ValidationException":
1751
- case "com.amazonaws.cleanrooms#ValidationException":
1752
- throw await de_ValidationExceptionRes(parsedOutput, context);
1753
- default:
1754
- const parsedBody = parsedOutput.body;
1755
- return throwDefaultError({
1756
- output,
1757
- parsedBody,
1758
- errorCode,
1759
- });
1760
- }
1761
- };
1762
1066
  export const de_GetCollaborationAnalysisTemplateCommand = async (output, context) => {
1763
1067
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1764
- return de_GetCollaborationAnalysisTemplateCommandError(output, context);
1068
+ return de_CommandError(output, context);
1765
1069
  }
1766
1070
  const contents = map({
1767
1071
  $metadata: deserializeMetadata(output),
@@ -1773,40 +1077,9 @@ export const de_GetCollaborationAnalysisTemplateCommand = async (output, context
1773
1077
  Object.assign(contents, doc);
1774
1078
  return contents;
1775
1079
  };
1776
- const de_GetCollaborationAnalysisTemplateCommandError = async (output, context) => {
1777
- const parsedOutput = {
1778
- ...output,
1779
- body: await parseErrorBody(output.body, context),
1780
- };
1781
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1782
- switch (errorCode) {
1783
- case "AccessDeniedException":
1784
- case "com.amazonaws.cleanrooms#AccessDeniedException":
1785
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1786
- case "InternalServerException":
1787
- case "com.amazonaws.cleanrooms#InternalServerException":
1788
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1789
- case "ResourceNotFoundException":
1790
- case "com.amazonaws.cleanrooms#ResourceNotFoundException":
1791
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1792
- case "ThrottlingException":
1793
- case "com.amazonaws.cleanrooms#ThrottlingException":
1794
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1795
- case "ValidationException":
1796
- case "com.amazonaws.cleanrooms#ValidationException":
1797
- throw await de_ValidationExceptionRes(parsedOutput, context);
1798
- default:
1799
- const parsedBody = parsedOutput.body;
1800
- return throwDefaultError({
1801
- output,
1802
- parsedBody,
1803
- errorCode,
1804
- });
1805
- }
1806
- };
1807
1080
  export const de_GetCollaborationConfiguredAudienceModelAssociationCommand = async (output, context) => {
1808
1081
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1809
- return de_GetCollaborationConfiguredAudienceModelAssociationCommandError(output, context);
1082
+ return de_CommandError(output, context);
1810
1083
  }
1811
1084
  const contents = map({
1812
1085
  $metadata: deserializeMetadata(output),
@@ -1818,1451 +1091,464 @@ export const de_GetCollaborationConfiguredAudienceModelAssociationCommand = asyn
1818
1091
  Object.assign(contents, doc);
1819
1092
  return contents;
1820
1093
  };
1821
- const de_GetCollaborationConfiguredAudienceModelAssociationCommandError = async (output, context) => {
1822
- const parsedOutput = {
1823
- ...output,
1824
- body: await parseErrorBody(output.body, context),
1825
- };
1826
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1827
- switch (errorCode) {
1828
- case "AccessDeniedException":
1829
- case "com.amazonaws.cleanrooms#AccessDeniedException":
1830
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1831
- case "InternalServerException":
1832
- case "com.amazonaws.cleanrooms#InternalServerException":
1833
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1834
- case "ResourceNotFoundException":
1835
- case "com.amazonaws.cleanrooms#ResourceNotFoundException":
1836
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1837
- case "ThrottlingException":
1838
- case "com.amazonaws.cleanrooms#ThrottlingException":
1839
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1840
- case "ValidationException":
1841
- case "com.amazonaws.cleanrooms#ValidationException":
1842
- throw await de_ValidationExceptionRes(parsedOutput, context);
1843
- default:
1844
- const parsedBody = parsedOutput.body;
1845
- return throwDefaultError({
1846
- output,
1847
- parsedBody,
1848
- errorCode,
1849
- });
1850
- }
1851
- };
1852
1094
  export const de_GetCollaborationPrivacyBudgetTemplateCommand = async (output, context) => {
1853
1095
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1854
- return de_GetCollaborationPrivacyBudgetTemplateCommandError(output, context);
1855
- }
1856
- const contents = map({
1857
- $metadata: deserializeMetadata(output),
1858
- });
1859
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1860
- const doc = take(data, {
1861
- collaborationPrivacyBudgetTemplate: (_) => de_CollaborationPrivacyBudgetTemplate(_, context),
1862
- });
1863
- Object.assign(contents, doc);
1864
- return contents;
1865
- };
1866
- const de_GetCollaborationPrivacyBudgetTemplateCommandError = async (output, context) => {
1867
- const parsedOutput = {
1868
- ...output,
1869
- body: await parseErrorBody(output.body, context),
1870
- };
1871
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1872
- switch (errorCode) {
1873
- case "AccessDeniedException":
1874
- case "com.amazonaws.cleanrooms#AccessDeniedException":
1875
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1876
- case "InternalServerException":
1877
- case "com.amazonaws.cleanrooms#InternalServerException":
1878
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1879
- case "ResourceNotFoundException":
1880
- case "com.amazonaws.cleanrooms#ResourceNotFoundException":
1881
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1882
- case "ThrottlingException":
1883
- case "com.amazonaws.cleanrooms#ThrottlingException":
1884
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1885
- case "ValidationException":
1886
- case "com.amazonaws.cleanrooms#ValidationException":
1887
- throw await de_ValidationExceptionRes(parsedOutput, context);
1888
- default:
1889
- const parsedBody = parsedOutput.body;
1890
- return throwDefaultError({
1891
- output,
1892
- parsedBody,
1893
- errorCode,
1894
- });
1895
- }
1896
- };
1897
- export const de_GetConfiguredAudienceModelAssociationCommand = async (output, context) => {
1898
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1899
- return de_GetConfiguredAudienceModelAssociationCommandError(output, context);
1900
- }
1901
- const contents = map({
1902
- $metadata: deserializeMetadata(output),
1903
- });
1904
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1905
- const doc = take(data, {
1906
- configuredAudienceModelAssociation: (_) => de_ConfiguredAudienceModelAssociation(_, context),
1907
- });
1908
- Object.assign(contents, doc);
1909
- return contents;
1910
- };
1911
- const de_GetConfiguredAudienceModelAssociationCommandError = async (output, context) => {
1912
- const parsedOutput = {
1913
- ...output,
1914
- body: await parseErrorBody(output.body, context),
1915
- };
1916
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1917
- switch (errorCode) {
1918
- case "AccessDeniedException":
1919
- case "com.amazonaws.cleanrooms#AccessDeniedException":
1920
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1921
- case "InternalServerException":
1922
- case "com.amazonaws.cleanrooms#InternalServerException":
1923
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1924
- case "ResourceNotFoundException":
1925
- case "com.amazonaws.cleanrooms#ResourceNotFoundException":
1926
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1927
- case "ThrottlingException":
1928
- case "com.amazonaws.cleanrooms#ThrottlingException":
1929
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1930
- case "ValidationException":
1931
- case "com.amazonaws.cleanrooms#ValidationException":
1932
- throw await de_ValidationExceptionRes(parsedOutput, context);
1933
- default:
1934
- const parsedBody = parsedOutput.body;
1935
- return throwDefaultError({
1936
- output,
1937
- parsedBody,
1938
- errorCode,
1939
- });
1940
- }
1941
- };
1942
- export const de_GetConfiguredTableCommand = async (output, context) => {
1943
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1944
- return de_GetConfiguredTableCommandError(output, context);
1945
- }
1946
- const contents = map({
1947
- $metadata: deserializeMetadata(output),
1948
- });
1949
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1950
- const doc = take(data, {
1951
- configuredTable: (_) => de_ConfiguredTable(_, context),
1952
- });
1953
- Object.assign(contents, doc);
1954
- return contents;
1955
- };
1956
- const de_GetConfiguredTableCommandError = async (output, context) => {
1957
- const parsedOutput = {
1958
- ...output,
1959
- body: await parseErrorBody(output.body, context),
1960
- };
1961
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1962
- switch (errorCode) {
1963
- case "AccessDeniedException":
1964
- case "com.amazonaws.cleanrooms#AccessDeniedException":
1965
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1966
- case "InternalServerException":
1967
- case "com.amazonaws.cleanrooms#InternalServerException":
1968
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1969
- case "ResourceNotFoundException":
1970
- case "com.amazonaws.cleanrooms#ResourceNotFoundException":
1971
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1972
- case "ThrottlingException":
1973
- case "com.amazonaws.cleanrooms#ThrottlingException":
1974
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1975
- case "ValidationException":
1976
- case "com.amazonaws.cleanrooms#ValidationException":
1977
- throw await de_ValidationExceptionRes(parsedOutput, context);
1978
- default:
1979
- const parsedBody = parsedOutput.body;
1980
- return throwDefaultError({
1981
- output,
1982
- parsedBody,
1983
- errorCode,
1984
- });
1985
- }
1986
- };
1987
- export const de_GetConfiguredTableAnalysisRuleCommand = async (output, context) => {
1988
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1989
- return de_GetConfiguredTableAnalysisRuleCommandError(output, context);
1990
- }
1991
- const contents = map({
1992
- $metadata: deserializeMetadata(output),
1993
- });
1994
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1995
- const doc = take(data, {
1996
- analysisRule: (_) => de_ConfiguredTableAnalysisRule(_, context),
1997
- });
1998
- Object.assign(contents, doc);
1999
- return contents;
2000
- };
2001
- const de_GetConfiguredTableAnalysisRuleCommandError = async (output, context) => {
2002
- const parsedOutput = {
2003
- ...output,
2004
- body: await parseErrorBody(output.body, context),
2005
- };
2006
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2007
- switch (errorCode) {
2008
- case "AccessDeniedException":
2009
- case "com.amazonaws.cleanrooms#AccessDeniedException":
2010
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2011
- case "InternalServerException":
2012
- case "com.amazonaws.cleanrooms#InternalServerException":
2013
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2014
- case "ResourceNotFoundException":
2015
- case "com.amazonaws.cleanrooms#ResourceNotFoundException":
2016
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2017
- case "ThrottlingException":
2018
- case "com.amazonaws.cleanrooms#ThrottlingException":
2019
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2020
- case "ValidationException":
2021
- case "com.amazonaws.cleanrooms#ValidationException":
2022
- throw await de_ValidationExceptionRes(parsedOutput, context);
2023
- default:
2024
- const parsedBody = parsedOutput.body;
2025
- return throwDefaultError({
2026
- output,
2027
- parsedBody,
2028
- errorCode,
2029
- });
2030
- }
2031
- };
2032
- export const de_GetConfiguredTableAssociationCommand = async (output, context) => {
2033
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2034
- return de_GetConfiguredTableAssociationCommandError(output, context);
2035
- }
2036
- const contents = map({
2037
- $metadata: deserializeMetadata(output),
2038
- });
2039
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2040
- const doc = take(data, {
2041
- configuredTableAssociation: (_) => de_ConfiguredTableAssociation(_, context),
2042
- });
2043
- Object.assign(contents, doc);
2044
- return contents;
2045
- };
2046
- const de_GetConfiguredTableAssociationCommandError = async (output, context) => {
2047
- const parsedOutput = {
2048
- ...output,
2049
- body: await parseErrorBody(output.body, context),
2050
- };
2051
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2052
- switch (errorCode) {
2053
- case "AccessDeniedException":
2054
- case "com.amazonaws.cleanrooms#AccessDeniedException":
2055
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2056
- case "InternalServerException":
2057
- case "com.amazonaws.cleanrooms#InternalServerException":
2058
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2059
- case "ResourceNotFoundException":
2060
- case "com.amazonaws.cleanrooms#ResourceNotFoundException":
2061
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2062
- case "ThrottlingException":
2063
- case "com.amazonaws.cleanrooms#ThrottlingException":
2064
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2065
- case "ValidationException":
2066
- case "com.amazonaws.cleanrooms#ValidationException":
2067
- throw await de_ValidationExceptionRes(parsedOutput, context);
2068
- default:
2069
- const parsedBody = parsedOutput.body;
2070
- return throwDefaultError({
2071
- output,
2072
- parsedBody,
2073
- errorCode,
2074
- });
2075
- }
2076
- };
2077
- export const de_GetMembershipCommand = async (output, context) => {
2078
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2079
- return de_GetMembershipCommandError(output, context);
2080
- }
2081
- const contents = map({
2082
- $metadata: deserializeMetadata(output),
2083
- });
2084
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2085
- const doc = take(data, {
2086
- membership: (_) => de_Membership(_, context),
2087
- });
2088
- Object.assign(contents, doc);
2089
- return contents;
2090
- };
2091
- const de_GetMembershipCommandError = async (output, context) => {
2092
- const parsedOutput = {
2093
- ...output,
2094
- body: await parseErrorBody(output.body, context),
2095
- };
2096
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2097
- switch (errorCode) {
2098
- case "AccessDeniedException":
2099
- case "com.amazonaws.cleanrooms#AccessDeniedException":
2100
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2101
- case "InternalServerException":
2102
- case "com.amazonaws.cleanrooms#InternalServerException":
2103
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2104
- case "ResourceNotFoundException":
2105
- case "com.amazonaws.cleanrooms#ResourceNotFoundException":
2106
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2107
- case "ThrottlingException":
2108
- case "com.amazonaws.cleanrooms#ThrottlingException":
2109
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2110
- case "ValidationException":
2111
- case "com.amazonaws.cleanrooms#ValidationException":
2112
- throw await de_ValidationExceptionRes(parsedOutput, context);
2113
- default:
2114
- const parsedBody = parsedOutput.body;
2115
- return throwDefaultError({
2116
- output,
2117
- parsedBody,
2118
- errorCode,
2119
- });
2120
- }
2121
- };
2122
- export const de_GetPrivacyBudgetTemplateCommand = async (output, context) => {
2123
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2124
- return de_GetPrivacyBudgetTemplateCommandError(output, context);
2125
- }
2126
- const contents = map({
2127
- $metadata: deserializeMetadata(output),
2128
- });
2129
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2130
- const doc = take(data, {
2131
- privacyBudgetTemplate: (_) => de_PrivacyBudgetTemplate(_, context),
2132
- });
2133
- Object.assign(contents, doc);
2134
- return contents;
2135
- };
2136
- const de_GetPrivacyBudgetTemplateCommandError = async (output, context) => {
2137
- const parsedOutput = {
2138
- ...output,
2139
- body: await parseErrorBody(output.body, context),
2140
- };
2141
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2142
- switch (errorCode) {
2143
- case "AccessDeniedException":
2144
- case "com.amazonaws.cleanrooms#AccessDeniedException":
2145
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2146
- case "InternalServerException":
2147
- case "com.amazonaws.cleanrooms#InternalServerException":
2148
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2149
- case "ResourceNotFoundException":
2150
- case "com.amazonaws.cleanrooms#ResourceNotFoundException":
2151
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2152
- case "ThrottlingException":
2153
- case "com.amazonaws.cleanrooms#ThrottlingException":
2154
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2155
- case "ValidationException":
2156
- case "com.amazonaws.cleanrooms#ValidationException":
2157
- throw await de_ValidationExceptionRes(parsedOutput, context);
2158
- default:
2159
- const parsedBody = parsedOutput.body;
2160
- return throwDefaultError({
2161
- output,
2162
- parsedBody,
2163
- errorCode,
2164
- });
2165
- }
2166
- };
2167
- export const de_GetProtectedQueryCommand = async (output, context) => {
2168
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2169
- return de_GetProtectedQueryCommandError(output, context);
2170
- }
2171
- const contents = map({
2172
- $metadata: deserializeMetadata(output),
2173
- });
2174
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2175
- const doc = take(data, {
2176
- protectedQuery: (_) => de_ProtectedQuery(_, context),
2177
- });
2178
- Object.assign(contents, doc);
2179
- return contents;
2180
- };
2181
- const de_GetProtectedQueryCommandError = async (output, context) => {
2182
- const parsedOutput = {
2183
- ...output,
2184
- body: await parseErrorBody(output.body, context),
2185
- };
2186
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2187
- switch (errorCode) {
2188
- case "AccessDeniedException":
2189
- case "com.amazonaws.cleanrooms#AccessDeniedException":
2190
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2191
- case "InternalServerException":
2192
- case "com.amazonaws.cleanrooms#InternalServerException":
2193
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2194
- case "ResourceNotFoundException":
2195
- case "com.amazonaws.cleanrooms#ResourceNotFoundException":
2196
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2197
- case "ThrottlingException":
2198
- case "com.amazonaws.cleanrooms#ThrottlingException":
2199
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2200
- case "ValidationException":
2201
- case "com.amazonaws.cleanrooms#ValidationException":
2202
- throw await de_ValidationExceptionRes(parsedOutput, context);
2203
- default:
2204
- const parsedBody = parsedOutput.body;
2205
- return throwDefaultError({
2206
- output,
2207
- parsedBody,
2208
- errorCode,
2209
- });
2210
- }
2211
- };
2212
- export const de_GetSchemaCommand = async (output, context) => {
2213
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2214
- return de_GetSchemaCommandError(output, context);
2215
- }
2216
- const contents = map({
2217
- $metadata: deserializeMetadata(output),
2218
- });
2219
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2220
- const doc = take(data, {
2221
- schema: (_) => de_Schema(_, context),
2222
- });
2223
- Object.assign(contents, doc);
2224
- return contents;
2225
- };
2226
- const de_GetSchemaCommandError = async (output, context) => {
2227
- const parsedOutput = {
2228
- ...output,
2229
- body: await parseErrorBody(output.body, context),
2230
- };
2231
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2232
- switch (errorCode) {
2233
- case "AccessDeniedException":
2234
- case "com.amazonaws.cleanrooms#AccessDeniedException":
2235
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2236
- case "InternalServerException":
2237
- case "com.amazonaws.cleanrooms#InternalServerException":
2238
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2239
- case "ResourceNotFoundException":
2240
- case "com.amazonaws.cleanrooms#ResourceNotFoundException":
2241
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2242
- case "ThrottlingException":
2243
- case "com.amazonaws.cleanrooms#ThrottlingException":
2244
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2245
- case "ValidationException":
2246
- case "com.amazonaws.cleanrooms#ValidationException":
2247
- throw await de_ValidationExceptionRes(parsedOutput, context);
2248
- default:
2249
- const parsedBody = parsedOutput.body;
2250
- return throwDefaultError({
2251
- output,
2252
- parsedBody,
2253
- errorCode,
2254
- });
2255
- }
2256
- };
2257
- export const de_GetSchemaAnalysisRuleCommand = async (output, context) => {
2258
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2259
- return de_GetSchemaAnalysisRuleCommandError(output, context);
2260
- }
2261
- const contents = map({
2262
- $metadata: deserializeMetadata(output),
2263
- });
2264
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2265
- const doc = take(data, {
2266
- analysisRule: (_) => de_AnalysisRule(_, context),
2267
- });
2268
- Object.assign(contents, doc);
2269
- return contents;
2270
- };
2271
- const de_GetSchemaAnalysisRuleCommandError = async (output, context) => {
2272
- const parsedOutput = {
2273
- ...output,
2274
- body: await parseErrorBody(output.body, context),
2275
- };
2276
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2277
- switch (errorCode) {
2278
- case "AccessDeniedException":
2279
- case "com.amazonaws.cleanrooms#AccessDeniedException":
2280
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2281
- case "InternalServerException":
2282
- case "com.amazonaws.cleanrooms#InternalServerException":
2283
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2284
- case "ResourceNotFoundException":
2285
- case "com.amazonaws.cleanrooms#ResourceNotFoundException":
2286
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2287
- case "ThrottlingException":
2288
- case "com.amazonaws.cleanrooms#ThrottlingException":
2289
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2290
- case "ValidationException":
2291
- case "com.amazonaws.cleanrooms#ValidationException":
2292
- throw await de_ValidationExceptionRes(parsedOutput, context);
2293
- default:
2294
- const parsedBody = parsedOutput.body;
2295
- return throwDefaultError({
2296
- output,
2297
- parsedBody,
2298
- errorCode,
2299
- });
2300
- }
2301
- };
2302
- export const de_ListAnalysisTemplatesCommand = async (output, context) => {
2303
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2304
- return de_ListAnalysisTemplatesCommandError(output, context);
1096
+ return de_CommandError(output, context);
2305
1097
  }
2306
1098
  const contents = map({
2307
1099
  $metadata: deserializeMetadata(output),
2308
1100
  });
2309
1101
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2310
1102
  const doc = take(data, {
2311
- analysisTemplateSummaries: (_) => de_AnalysisTemplateSummaryList(_, context),
2312
- nextToken: __expectString,
1103
+ collaborationPrivacyBudgetTemplate: (_) => de_CollaborationPrivacyBudgetTemplate(_, context),
2313
1104
  });
2314
1105
  Object.assign(contents, doc);
2315
1106
  return contents;
2316
1107
  };
2317
- const de_ListAnalysisTemplatesCommandError = async (output, context) => {
2318
- const parsedOutput = {
2319
- ...output,
2320
- body: await parseErrorBody(output.body, context),
2321
- };
2322
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2323
- switch (errorCode) {
2324
- case "AccessDeniedException":
2325
- case "com.amazonaws.cleanrooms#AccessDeniedException":
2326
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2327
- case "InternalServerException":
2328
- case "com.amazonaws.cleanrooms#InternalServerException":
2329
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2330
- case "ResourceNotFoundException":
2331
- case "com.amazonaws.cleanrooms#ResourceNotFoundException":
2332
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2333
- case "ThrottlingException":
2334
- case "com.amazonaws.cleanrooms#ThrottlingException":
2335
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2336
- case "ValidationException":
2337
- case "com.amazonaws.cleanrooms#ValidationException":
2338
- throw await de_ValidationExceptionRes(parsedOutput, context);
2339
- default:
2340
- const parsedBody = parsedOutput.body;
2341
- return throwDefaultError({
2342
- output,
2343
- parsedBody,
2344
- errorCode,
2345
- });
2346
- }
2347
- };
2348
- export const de_ListCollaborationAnalysisTemplatesCommand = async (output, context) => {
1108
+ export const de_GetConfiguredAudienceModelAssociationCommand = async (output, context) => {
2349
1109
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2350
- return de_ListCollaborationAnalysisTemplatesCommandError(output, context);
1110
+ return de_CommandError(output, context);
2351
1111
  }
2352
1112
  const contents = map({
2353
1113
  $metadata: deserializeMetadata(output),
2354
1114
  });
2355
1115
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2356
1116
  const doc = take(data, {
2357
- collaborationAnalysisTemplateSummaries: (_) => de_CollaborationAnalysisTemplateSummaryList(_, context),
2358
- nextToken: __expectString,
1117
+ configuredAudienceModelAssociation: (_) => de_ConfiguredAudienceModelAssociation(_, context),
2359
1118
  });
2360
1119
  Object.assign(contents, doc);
2361
1120
  return contents;
2362
1121
  };
2363
- const de_ListCollaborationAnalysisTemplatesCommandError = async (output, context) => {
2364
- const parsedOutput = {
2365
- ...output,
2366
- body: await parseErrorBody(output.body, context),
2367
- };
2368
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2369
- switch (errorCode) {
2370
- case "AccessDeniedException":
2371
- case "com.amazonaws.cleanrooms#AccessDeniedException":
2372
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2373
- case "InternalServerException":
2374
- case "com.amazonaws.cleanrooms#InternalServerException":
2375
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2376
- case "ResourceNotFoundException":
2377
- case "com.amazonaws.cleanrooms#ResourceNotFoundException":
2378
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2379
- case "ThrottlingException":
2380
- case "com.amazonaws.cleanrooms#ThrottlingException":
2381
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2382
- case "ValidationException":
2383
- case "com.amazonaws.cleanrooms#ValidationException":
2384
- throw await de_ValidationExceptionRes(parsedOutput, context);
2385
- default:
2386
- const parsedBody = parsedOutput.body;
2387
- return throwDefaultError({
2388
- output,
2389
- parsedBody,
2390
- errorCode,
2391
- });
2392
- }
2393
- };
2394
- export const de_ListCollaborationConfiguredAudienceModelAssociationsCommand = async (output, context) => {
1122
+ export const de_GetConfiguredTableCommand = async (output, context) => {
2395
1123
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2396
- return de_ListCollaborationConfiguredAudienceModelAssociationsCommandError(output, context);
1124
+ return de_CommandError(output, context);
2397
1125
  }
2398
1126
  const contents = map({
2399
1127
  $metadata: deserializeMetadata(output),
2400
1128
  });
2401
1129
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2402
1130
  const doc = take(data, {
2403
- collaborationConfiguredAudienceModelAssociationSummaries: (_) => de_CollaborationConfiguredAudienceModelAssociationSummaryList(_, context),
2404
- nextToken: __expectString,
1131
+ configuredTable: (_) => de_ConfiguredTable(_, context),
2405
1132
  });
2406
1133
  Object.assign(contents, doc);
2407
1134
  return contents;
2408
1135
  };
2409
- const de_ListCollaborationConfiguredAudienceModelAssociationsCommandError = async (output, context) => {
2410
- const parsedOutput = {
2411
- ...output,
2412
- body: await parseErrorBody(output.body, context),
2413
- };
2414
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2415
- switch (errorCode) {
2416
- case "AccessDeniedException":
2417
- case "com.amazonaws.cleanrooms#AccessDeniedException":
2418
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2419
- case "InternalServerException":
2420
- case "com.amazonaws.cleanrooms#InternalServerException":
2421
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2422
- case "ResourceNotFoundException":
2423
- case "com.amazonaws.cleanrooms#ResourceNotFoundException":
2424
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2425
- case "ThrottlingException":
2426
- case "com.amazonaws.cleanrooms#ThrottlingException":
2427
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2428
- case "ValidationException":
2429
- case "com.amazonaws.cleanrooms#ValidationException":
2430
- throw await de_ValidationExceptionRes(parsedOutput, context);
2431
- default:
2432
- const parsedBody = parsedOutput.body;
2433
- return throwDefaultError({
2434
- output,
2435
- parsedBody,
2436
- errorCode,
2437
- });
2438
- }
2439
- };
2440
- export const de_ListCollaborationPrivacyBudgetsCommand = async (output, context) => {
1136
+ export const de_GetConfiguredTableAnalysisRuleCommand = async (output, context) => {
2441
1137
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2442
- return de_ListCollaborationPrivacyBudgetsCommandError(output, context);
1138
+ return de_CommandError(output, context);
2443
1139
  }
2444
1140
  const contents = map({
2445
1141
  $metadata: deserializeMetadata(output),
2446
1142
  });
2447
1143
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2448
1144
  const doc = take(data, {
2449
- collaborationPrivacyBudgetSummaries: (_) => de_CollaborationPrivacyBudgetSummaryList(_, context),
2450
- nextToken: __expectString,
1145
+ analysisRule: (_) => de_ConfiguredTableAnalysisRule(_, context),
2451
1146
  });
2452
1147
  Object.assign(contents, doc);
2453
1148
  return contents;
2454
1149
  };
2455
- const de_ListCollaborationPrivacyBudgetsCommandError = async (output, context) => {
2456
- const parsedOutput = {
2457
- ...output,
2458
- body: await parseErrorBody(output.body, context),
2459
- };
2460
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2461
- switch (errorCode) {
2462
- case "AccessDeniedException":
2463
- case "com.amazonaws.cleanrooms#AccessDeniedException":
2464
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2465
- case "InternalServerException":
2466
- case "com.amazonaws.cleanrooms#InternalServerException":
2467
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2468
- case "ResourceNotFoundException":
2469
- case "com.amazonaws.cleanrooms#ResourceNotFoundException":
2470
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2471
- case "ThrottlingException":
2472
- case "com.amazonaws.cleanrooms#ThrottlingException":
2473
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2474
- case "ValidationException":
2475
- case "com.amazonaws.cleanrooms#ValidationException":
2476
- throw await de_ValidationExceptionRes(parsedOutput, context);
2477
- default:
2478
- const parsedBody = parsedOutput.body;
2479
- return throwDefaultError({
2480
- output,
2481
- parsedBody,
2482
- errorCode,
2483
- });
2484
- }
2485
- };
2486
- export const de_ListCollaborationPrivacyBudgetTemplatesCommand = async (output, context) => {
1150
+ export const de_GetConfiguredTableAssociationCommand = async (output, context) => {
2487
1151
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2488
- return de_ListCollaborationPrivacyBudgetTemplatesCommandError(output, context);
1152
+ return de_CommandError(output, context);
2489
1153
  }
2490
1154
  const contents = map({
2491
1155
  $metadata: deserializeMetadata(output),
2492
1156
  });
2493
1157
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2494
1158
  const doc = take(data, {
2495
- collaborationPrivacyBudgetTemplateSummaries: (_) => de_CollaborationPrivacyBudgetTemplateSummaryList(_, context),
2496
- nextToken: __expectString,
1159
+ configuredTableAssociation: (_) => de_ConfiguredTableAssociation(_, context),
2497
1160
  });
2498
1161
  Object.assign(contents, doc);
2499
1162
  return contents;
2500
1163
  };
2501
- const de_ListCollaborationPrivacyBudgetTemplatesCommandError = async (output, context) => {
2502
- const parsedOutput = {
2503
- ...output,
2504
- body: await parseErrorBody(output.body, context),
2505
- };
2506
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2507
- switch (errorCode) {
2508
- case "AccessDeniedException":
2509
- case "com.amazonaws.cleanrooms#AccessDeniedException":
2510
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2511
- case "InternalServerException":
2512
- case "com.amazonaws.cleanrooms#InternalServerException":
2513
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2514
- case "ResourceNotFoundException":
2515
- case "com.amazonaws.cleanrooms#ResourceNotFoundException":
2516
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2517
- case "ThrottlingException":
2518
- case "com.amazonaws.cleanrooms#ThrottlingException":
2519
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2520
- case "ValidationException":
2521
- case "com.amazonaws.cleanrooms#ValidationException":
2522
- throw await de_ValidationExceptionRes(parsedOutput, context);
2523
- default:
2524
- const parsedBody = parsedOutput.body;
2525
- return throwDefaultError({
2526
- output,
2527
- parsedBody,
2528
- errorCode,
2529
- });
2530
- }
2531
- };
2532
- export const de_ListCollaborationsCommand = async (output, context) => {
1164
+ export const de_GetMembershipCommand = async (output, context) => {
2533
1165
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2534
- return de_ListCollaborationsCommandError(output, context);
1166
+ return de_CommandError(output, context);
2535
1167
  }
2536
1168
  const contents = map({
2537
1169
  $metadata: deserializeMetadata(output),
2538
1170
  });
2539
1171
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2540
1172
  const doc = take(data, {
2541
- collaborationList: (_) => de_CollaborationSummaryList(_, context),
2542
- nextToken: __expectString,
1173
+ membership: (_) => de_Membership(_, context),
2543
1174
  });
2544
1175
  Object.assign(contents, doc);
2545
1176
  return contents;
2546
1177
  };
2547
- const de_ListCollaborationsCommandError = async (output, context) => {
2548
- const parsedOutput = {
2549
- ...output,
2550
- body: await parseErrorBody(output.body, context),
2551
- };
2552
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2553
- switch (errorCode) {
2554
- case "AccessDeniedException":
2555
- case "com.amazonaws.cleanrooms#AccessDeniedException":
2556
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2557
- case "InternalServerException":
2558
- case "com.amazonaws.cleanrooms#InternalServerException":
2559
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2560
- case "ThrottlingException":
2561
- case "com.amazonaws.cleanrooms#ThrottlingException":
2562
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2563
- case "ValidationException":
2564
- case "com.amazonaws.cleanrooms#ValidationException":
2565
- throw await de_ValidationExceptionRes(parsedOutput, context);
2566
- default:
2567
- const parsedBody = parsedOutput.body;
2568
- return throwDefaultError({
2569
- output,
2570
- parsedBody,
2571
- errorCode,
2572
- });
1178
+ export const de_GetPrivacyBudgetTemplateCommand = async (output, context) => {
1179
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1180
+ return de_CommandError(output, context);
2573
1181
  }
1182
+ const contents = map({
1183
+ $metadata: deserializeMetadata(output),
1184
+ });
1185
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1186
+ const doc = take(data, {
1187
+ privacyBudgetTemplate: (_) => de_PrivacyBudgetTemplate(_, context),
1188
+ });
1189
+ Object.assign(contents, doc);
1190
+ return contents;
2574
1191
  };
2575
- export const de_ListConfiguredAudienceModelAssociationsCommand = async (output, context) => {
1192
+ export const de_GetProtectedQueryCommand = async (output, context) => {
2576
1193
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2577
- return de_ListConfiguredAudienceModelAssociationsCommandError(output, context);
1194
+ return de_CommandError(output, context);
2578
1195
  }
2579
1196
  const contents = map({
2580
1197
  $metadata: deserializeMetadata(output),
2581
1198
  });
2582
1199
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2583
1200
  const doc = take(data, {
2584
- configuredAudienceModelAssociationSummaries: (_) => de_ConfiguredAudienceModelAssociationSummaryList(_, context),
2585
- nextToken: __expectString,
1201
+ protectedQuery: (_) => de_ProtectedQuery(_, context),
2586
1202
  });
2587
1203
  Object.assign(contents, doc);
2588
1204
  return contents;
2589
1205
  };
2590
- const de_ListConfiguredAudienceModelAssociationsCommandError = async (output, context) => {
2591
- const parsedOutput = {
2592
- ...output,
2593
- body: await parseErrorBody(output.body, context),
2594
- };
2595
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2596
- switch (errorCode) {
2597
- case "AccessDeniedException":
2598
- case "com.amazonaws.cleanrooms#AccessDeniedException":
2599
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2600
- case "InternalServerException":
2601
- case "com.amazonaws.cleanrooms#InternalServerException":
2602
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2603
- case "ResourceNotFoundException":
2604
- case "com.amazonaws.cleanrooms#ResourceNotFoundException":
2605
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2606
- case "ThrottlingException":
2607
- case "com.amazonaws.cleanrooms#ThrottlingException":
2608
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2609
- case "ValidationException":
2610
- case "com.amazonaws.cleanrooms#ValidationException":
2611
- throw await de_ValidationExceptionRes(parsedOutput, context);
2612
- default:
2613
- const parsedBody = parsedOutput.body;
2614
- return throwDefaultError({
2615
- output,
2616
- parsedBody,
2617
- errorCode,
2618
- });
1206
+ export const de_GetSchemaCommand = async (output, context) => {
1207
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1208
+ return de_CommandError(output, context);
2619
1209
  }
1210
+ const contents = map({
1211
+ $metadata: deserializeMetadata(output),
1212
+ });
1213
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1214
+ const doc = take(data, {
1215
+ schema: (_) => de_Schema(_, context),
1216
+ });
1217
+ Object.assign(contents, doc);
1218
+ return contents;
2620
1219
  };
2621
- export const de_ListConfiguredTableAssociationsCommand = async (output, context) => {
1220
+ export const de_GetSchemaAnalysisRuleCommand = async (output, context) => {
2622
1221
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2623
- return de_ListConfiguredTableAssociationsCommandError(output, context);
1222
+ return de_CommandError(output, context);
2624
1223
  }
2625
1224
  const contents = map({
2626
1225
  $metadata: deserializeMetadata(output),
2627
1226
  });
2628
1227
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2629
1228
  const doc = take(data, {
2630
- configuredTableAssociationSummaries: (_) => de_ConfiguredTableAssociationSummaryList(_, context),
2631
- nextToken: __expectString,
1229
+ analysisRule: (_) => de_AnalysisRule(_, context),
2632
1230
  });
2633
1231
  Object.assign(contents, doc);
2634
1232
  return contents;
2635
1233
  };
2636
- const de_ListConfiguredTableAssociationsCommandError = async (output, context) => {
2637
- const parsedOutput = {
2638
- ...output,
2639
- body: await parseErrorBody(output.body, context),
2640
- };
2641
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2642
- switch (errorCode) {
2643
- case "AccessDeniedException":
2644
- case "com.amazonaws.cleanrooms#AccessDeniedException":
2645
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2646
- case "InternalServerException":
2647
- case "com.amazonaws.cleanrooms#InternalServerException":
2648
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2649
- case "ResourceNotFoundException":
2650
- case "com.amazonaws.cleanrooms#ResourceNotFoundException":
2651
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2652
- case "ThrottlingException":
2653
- case "com.amazonaws.cleanrooms#ThrottlingException":
2654
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2655
- case "ValidationException":
2656
- case "com.amazonaws.cleanrooms#ValidationException":
2657
- throw await de_ValidationExceptionRes(parsedOutput, context);
2658
- default:
2659
- const parsedBody = parsedOutput.body;
2660
- return throwDefaultError({
2661
- output,
2662
- parsedBody,
2663
- errorCode,
2664
- });
2665
- }
2666
- };
2667
- export const de_ListConfiguredTablesCommand = async (output, context) => {
1234
+ export const de_ListAnalysisTemplatesCommand = async (output, context) => {
2668
1235
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2669
- return de_ListConfiguredTablesCommandError(output, context);
1236
+ return de_CommandError(output, context);
2670
1237
  }
2671
1238
  const contents = map({
2672
1239
  $metadata: deserializeMetadata(output),
2673
1240
  });
2674
1241
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2675
1242
  const doc = take(data, {
2676
- configuredTableSummaries: (_) => de_ConfiguredTableSummaryList(_, context),
1243
+ analysisTemplateSummaries: (_) => de_AnalysisTemplateSummaryList(_, context),
2677
1244
  nextToken: __expectString,
2678
1245
  });
2679
1246
  Object.assign(contents, doc);
2680
1247
  return contents;
2681
1248
  };
2682
- const de_ListConfiguredTablesCommandError = async (output, context) => {
2683
- const parsedOutput = {
2684
- ...output,
2685
- body: await parseErrorBody(output.body, context),
2686
- };
2687
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2688
- switch (errorCode) {
2689
- case "AccessDeniedException":
2690
- case "com.amazonaws.cleanrooms#AccessDeniedException":
2691
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2692
- case "InternalServerException":
2693
- case "com.amazonaws.cleanrooms#InternalServerException":
2694
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2695
- case "ThrottlingException":
2696
- case "com.amazonaws.cleanrooms#ThrottlingException":
2697
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2698
- case "ValidationException":
2699
- case "com.amazonaws.cleanrooms#ValidationException":
2700
- throw await de_ValidationExceptionRes(parsedOutput, context);
2701
- default:
2702
- const parsedBody = parsedOutput.body;
2703
- return throwDefaultError({
2704
- output,
2705
- parsedBody,
2706
- errorCode,
2707
- });
2708
- }
2709
- };
2710
- export const de_ListMembersCommand = async (output, context) => {
1249
+ export const de_ListCollaborationAnalysisTemplatesCommand = async (output, context) => {
2711
1250
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2712
- return de_ListMembersCommandError(output, context);
1251
+ return de_CommandError(output, context);
2713
1252
  }
2714
1253
  const contents = map({
2715
1254
  $metadata: deserializeMetadata(output),
2716
1255
  });
2717
1256
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2718
1257
  const doc = take(data, {
2719
- memberSummaries: (_) => de_MemberSummaryList(_, context),
1258
+ collaborationAnalysisTemplateSummaries: (_) => de_CollaborationAnalysisTemplateSummaryList(_, context),
2720
1259
  nextToken: __expectString,
2721
1260
  });
2722
1261
  Object.assign(contents, doc);
2723
1262
  return contents;
2724
1263
  };
2725
- const de_ListMembersCommandError = async (output, context) => {
2726
- const parsedOutput = {
2727
- ...output,
2728
- body: await parseErrorBody(output.body, context),
2729
- };
2730
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2731
- switch (errorCode) {
2732
- case "AccessDeniedException":
2733
- case "com.amazonaws.cleanrooms#AccessDeniedException":
2734
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2735
- case "InternalServerException":
2736
- case "com.amazonaws.cleanrooms#InternalServerException":
2737
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2738
- case "ResourceNotFoundException":
2739
- case "com.amazonaws.cleanrooms#ResourceNotFoundException":
2740
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2741
- case "ThrottlingException":
2742
- case "com.amazonaws.cleanrooms#ThrottlingException":
2743
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2744
- case "ValidationException":
2745
- case "com.amazonaws.cleanrooms#ValidationException":
2746
- throw await de_ValidationExceptionRes(parsedOutput, context);
2747
- default:
2748
- const parsedBody = parsedOutput.body;
2749
- return throwDefaultError({
2750
- output,
2751
- parsedBody,
2752
- errorCode,
2753
- });
2754
- }
2755
- };
2756
- export const de_ListMembershipsCommand = async (output, context) => {
1264
+ export const de_ListCollaborationConfiguredAudienceModelAssociationsCommand = async (output, context) => {
2757
1265
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2758
- return de_ListMembershipsCommandError(output, context);
1266
+ return de_CommandError(output, context);
2759
1267
  }
2760
1268
  const contents = map({
2761
1269
  $metadata: deserializeMetadata(output),
2762
1270
  });
2763
1271
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2764
1272
  const doc = take(data, {
2765
- membershipSummaries: (_) => de_MembershipSummaryList(_, context),
1273
+ collaborationConfiguredAudienceModelAssociationSummaries: (_) => de_CollaborationConfiguredAudienceModelAssociationSummaryList(_, context),
2766
1274
  nextToken: __expectString,
2767
1275
  });
2768
1276
  Object.assign(contents, doc);
2769
1277
  return contents;
2770
1278
  };
2771
- const de_ListMembershipsCommandError = async (output, context) => {
2772
- const parsedOutput = {
2773
- ...output,
2774
- body: await parseErrorBody(output.body, context),
2775
- };
2776
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2777
- switch (errorCode) {
2778
- case "AccessDeniedException":
2779
- case "com.amazonaws.cleanrooms#AccessDeniedException":
2780
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2781
- case "InternalServerException":
2782
- case "com.amazonaws.cleanrooms#InternalServerException":
2783
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2784
- case "ThrottlingException":
2785
- case "com.amazonaws.cleanrooms#ThrottlingException":
2786
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2787
- case "ValidationException":
2788
- case "com.amazonaws.cleanrooms#ValidationException":
2789
- throw await de_ValidationExceptionRes(parsedOutput, context);
2790
- default:
2791
- const parsedBody = parsedOutput.body;
2792
- return throwDefaultError({
2793
- output,
2794
- parsedBody,
2795
- errorCode,
2796
- });
2797
- }
2798
- };
2799
- export const de_ListPrivacyBudgetsCommand = async (output, context) => {
1279
+ export const de_ListCollaborationPrivacyBudgetsCommand = async (output, context) => {
2800
1280
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2801
- return de_ListPrivacyBudgetsCommandError(output, context);
1281
+ return de_CommandError(output, context);
2802
1282
  }
2803
1283
  const contents = map({
2804
1284
  $metadata: deserializeMetadata(output),
2805
1285
  });
2806
1286
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2807
1287
  const doc = take(data, {
1288
+ collaborationPrivacyBudgetSummaries: (_) => de_CollaborationPrivacyBudgetSummaryList(_, context),
2808
1289
  nextToken: __expectString,
2809
- privacyBudgetSummaries: (_) => de_PrivacyBudgetSummaryList(_, context),
2810
1290
  });
2811
1291
  Object.assign(contents, doc);
2812
1292
  return contents;
2813
1293
  };
2814
- const de_ListPrivacyBudgetsCommandError = async (output, context) => {
2815
- const parsedOutput = {
2816
- ...output,
2817
- body: await parseErrorBody(output.body, context),
2818
- };
2819
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2820
- switch (errorCode) {
2821
- case "AccessDeniedException":
2822
- case "com.amazonaws.cleanrooms#AccessDeniedException":
2823
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2824
- case "InternalServerException":
2825
- case "com.amazonaws.cleanrooms#InternalServerException":
2826
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2827
- case "ResourceNotFoundException":
2828
- case "com.amazonaws.cleanrooms#ResourceNotFoundException":
2829
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2830
- case "ThrottlingException":
2831
- case "com.amazonaws.cleanrooms#ThrottlingException":
2832
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2833
- case "ValidationException":
2834
- case "com.amazonaws.cleanrooms#ValidationException":
2835
- throw await de_ValidationExceptionRes(parsedOutput, context);
2836
- default:
2837
- const parsedBody = parsedOutput.body;
2838
- return throwDefaultError({
2839
- output,
2840
- parsedBody,
2841
- errorCode,
2842
- });
2843
- }
2844
- };
2845
- export const de_ListPrivacyBudgetTemplatesCommand = async (output, context) => {
1294
+ export const de_ListCollaborationPrivacyBudgetTemplatesCommand = async (output, context) => {
2846
1295
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2847
- return de_ListPrivacyBudgetTemplatesCommandError(output, context);
1296
+ return de_CommandError(output, context);
2848
1297
  }
2849
1298
  const contents = map({
2850
1299
  $metadata: deserializeMetadata(output),
2851
1300
  });
2852
1301
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2853
1302
  const doc = take(data, {
1303
+ collaborationPrivacyBudgetTemplateSummaries: (_) => de_CollaborationPrivacyBudgetTemplateSummaryList(_, context),
2854
1304
  nextToken: __expectString,
2855
- privacyBudgetTemplateSummaries: (_) => de_PrivacyBudgetTemplateSummaryList(_, context),
2856
1305
  });
2857
1306
  Object.assign(contents, doc);
2858
1307
  return contents;
2859
1308
  };
2860
- const de_ListPrivacyBudgetTemplatesCommandError = async (output, context) => {
2861
- const parsedOutput = {
2862
- ...output,
2863
- body: await parseErrorBody(output.body, context),
2864
- };
2865
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2866
- switch (errorCode) {
2867
- case "AccessDeniedException":
2868
- case "com.amazonaws.cleanrooms#AccessDeniedException":
2869
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2870
- case "InternalServerException":
2871
- case "com.amazonaws.cleanrooms#InternalServerException":
2872
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2873
- case "ResourceNotFoundException":
2874
- case "com.amazonaws.cleanrooms#ResourceNotFoundException":
2875
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2876
- case "ThrottlingException":
2877
- case "com.amazonaws.cleanrooms#ThrottlingException":
2878
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2879
- case "ValidationException":
2880
- case "com.amazonaws.cleanrooms#ValidationException":
2881
- throw await de_ValidationExceptionRes(parsedOutput, context);
2882
- default:
2883
- const parsedBody = parsedOutput.body;
2884
- return throwDefaultError({
2885
- output,
2886
- parsedBody,
2887
- errorCode,
2888
- });
1309
+ export const de_ListCollaborationsCommand = async (output, context) => {
1310
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1311
+ return de_CommandError(output, context);
2889
1312
  }
1313
+ const contents = map({
1314
+ $metadata: deserializeMetadata(output),
1315
+ });
1316
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1317
+ const doc = take(data, {
1318
+ collaborationList: (_) => de_CollaborationSummaryList(_, context),
1319
+ nextToken: __expectString,
1320
+ });
1321
+ Object.assign(contents, doc);
1322
+ return contents;
2890
1323
  };
2891
- export const de_ListProtectedQueriesCommand = async (output, context) => {
1324
+ export const de_ListConfiguredAudienceModelAssociationsCommand = async (output, context) => {
2892
1325
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2893
- return de_ListProtectedQueriesCommandError(output, context);
1326
+ return de_CommandError(output, context);
2894
1327
  }
2895
1328
  const contents = map({
2896
1329
  $metadata: deserializeMetadata(output),
2897
1330
  });
2898
1331
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2899
1332
  const doc = take(data, {
1333
+ configuredAudienceModelAssociationSummaries: (_) => de_ConfiguredAudienceModelAssociationSummaryList(_, context),
2900
1334
  nextToken: __expectString,
2901
- protectedQueries: (_) => de_ProtectedQuerySummaryList(_, context),
2902
1335
  });
2903
1336
  Object.assign(contents, doc);
2904
1337
  return contents;
2905
1338
  };
2906
- const de_ListProtectedQueriesCommandError = async (output, context) => {
2907
- const parsedOutput = {
2908
- ...output,
2909
- body: await parseErrorBody(output.body, context),
2910
- };
2911
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2912
- switch (errorCode) {
2913
- case "AccessDeniedException":
2914
- case "com.amazonaws.cleanrooms#AccessDeniedException":
2915
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2916
- case "InternalServerException":
2917
- case "com.amazonaws.cleanrooms#InternalServerException":
2918
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2919
- case "ResourceNotFoundException":
2920
- case "com.amazonaws.cleanrooms#ResourceNotFoundException":
2921
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2922
- case "ThrottlingException":
2923
- case "com.amazonaws.cleanrooms#ThrottlingException":
2924
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2925
- case "ValidationException":
2926
- case "com.amazonaws.cleanrooms#ValidationException":
2927
- throw await de_ValidationExceptionRes(parsedOutput, context);
2928
- default:
2929
- const parsedBody = parsedOutput.body;
2930
- return throwDefaultError({
2931
- output,
2932
- parsedBody,
2933
- errorCode,
2934
- });
1339
+ export const de_ListConfiguredTableAssociationsCommand = async (output, context) => {
1340
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1341
+ return de_CommandError(output, context);
2935
1342
  }
1343
+ const contents = map({
1344
+ $metadata: deserializeMetadata(output),
1345
+ });
1346
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1347
+ const doc = take(data, {
1348
+ configuredTableAssociationSummaries: (_) => de_ConfiguredTableAssociationSummaryList(_, context),
1349
+ nextToken: __expectString,
1350
+ });
1351
+ Object.assign(contents, doc);
1352
+ return contents;
2936
1353
  };
2937
- export const de_ListSchemasCommand = async (output, context) => {
1354
+ export const de_ListConfiguredTablesCommand = async (output, context) => {
2938
1355
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2939
- return de_ListSchemasCommandError(output, context);
1356
+ return de_CommandError(output, context);
2940
1357
  }
2941
1358
  const contents = map({
2942
1359
  $metadata: deserializeMetadata(output),
2943
1360
  });
2944
1361
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2945
1362
  const doc = take(data, {
1363
+ configuredTableSummaries: (_) => de_ConfiguredTableSummaryList(_, context),
2946
1364
  nextToken: __expectString,
2947
- schemaSummaries: (_) => de_SchemaSummaryList(_, context),
2948
1365
  });
2949
1366
  Object.assign(contents, doc);
2950
1367
  return contents;
2951
1368
  };
2952
- const de_ListSchemasCommandError = async (output, context) => {
2953
- const parsedOutput = {
2954
- ...output,
2955
- body: await parseErrorBody(output.body, context),
2956
- };
2957
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2958
- switch (errorCode) {
2959
- case "AccessDeniedException":
2960
- case "com.amazonaws.cleanrooms#AccessDeniedException":
2961
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2962
- case "InternalServerException":
2963
- case "com.amazonaws.cleanrooms#InternalServerException":
2964
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2965
- case "ResourceNotFoundException":
2966
- case "com.amazonaws.cleanrooms#ResourceNotFoundException":
2967
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2968
- case "ThrottlingException":
2969
- case "com.amazonaws.cleanrooms#ThrottlingException":
2970
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2971
- case "ValidationException":
2972
- case "com.amazonaws.cleanrooms#ValidationException":
2973
- throw await de_ValidationExceptionRes(parsedOutput, context);
2974
- default:
2975
- const parsedBody = parsedOutput.body;
2976
- return throwDefaultError({
2977
- output,
2978
- parsedBody,
2979
- errorCode,
2980
- });
2981
- }
2982
- };
2983
- export const de_ListTagsForResourceCommand = async (output, context) => {
1369
+ export const de_ListMembersCommand = async (output, context) => {
2984
1370
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2985
- return de_ListTagsForResourceCommandError(output, context);
1371
+ return de_CommandError(output, context);
2986
1372
  }
2987
1373
  const contents = map({
2988
1374
  $metadata: deserializeMetadata(output),
2989
1375
  });
2990
1376
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2991
1377
  const doc = take(data, {
2992
- tags: _json,
1378
+ memberSummaries: (_) => de_MemberSummaryList(_, context),
1379
+ nextToken: __expectString,
2993
1380
  });
2994
1381
  Object.assign(contents, doc);
2995
1382
  return contents;
2996
1383
  };
2997
- const de_ListTagsForResourceCommandError = async (output, context) => {
2998
- const parsedOutput = {
2999
- ...output,
3000
- body: await parseErrorBody(output.body, context),
3001
- };
3002
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3003
- switch (errorCode) {
3004
- case "ResourceNotFoundException":
3005
- case "com.amazonaws.cleanrooms#ResourceNotFoundException":
3006
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3007
- case "ValidationException":
3008
- case "com.amazonaws.cleanrooms#ValidationException":
3009
- throw await de_ValidationExceptionRes(parsedOutput, context);
3010
- default:
3011
- const parsedBody = parsedOutput.body;
3012
- return throwDefaultError({
3013
- output,
3014
- parsedBody,
3015
- errorCode,
3016
- });
3017
- }
3018
- };
3019
- export const de_PreviewPrivacyImpactCommand = async (output, context) => {
1384
+ export const de_ListMembershipsCommand = async (output, context) => {
3020
1385
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3021
- return de_PreviewPrivacyImpactCommandError(output, context);
1386
+ return de_CommandError(output, context);
3022
1387
  }
3023
1388
  const contents = map({
3024
1389
  $metadata: deserializeMetadata(output),
3025
1390
  });
3026
1391
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3027
1392
  const doc = take(data, {
3028
- privacyImpact: (_) => _json(__expectUnion(_)),
1393
+ membershipSummaries: (_) => de_MembershipSummaryList(_, context),
1394
+ nextToken: __expectString,
3029
1395
  });
3030
1396
  Object.assign(contents, doc);
3031
1397
  return contents;
3032
1398
  };
3033
- const de_PreviewPrivacyImpactCommandError = async (output, context) => {
3034
- const parsedOutput = {
3035
- ...output,
3036
- body: await parseErrorBody(output.body, context),
3037
- };
3038
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3039
- switch (errorCode) {
3040
- case "AccessDeniedException":
3041
- case "com.amazonaws.cleanrooms#AccessDeniedException":
3042
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3043
- case "InternalServerException":
3044
- case "com.amazonaws.cleanrooms#InternalServerException":
3045
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3046
- case "ResourceNotFoundException":
3047
- case "com.amazonaws.cleanrooms#ResourceNotFoundException":
3048
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3049
- case "ThrottlingException":
3050
- case "com.amazonaws.cleanrooms#ThrottlingException":
3051
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3052
- case "ValidationException":
3053
- case "com.amazonaws.cleanrooms#ValidationException":
3054
- throw await de_ValidationExceptionRes(parsedOutput, context);
3055
- default:
3056
- const parsedBody = parsedOutput.body;
3057
- return throwDefaultError({
3058
- output,
3059
- parsedBody,
3060
- errorCode,
3061
- });
3062
- }
3063
- };
3064
- export const de_StartProtectedQueryCommand = async (output, context) => {
1399
+ export const de_ListPrivacyBudgetsCommand = async (output, context) => {
3065
1400
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3066
- return de_StartProtectedQueryCommandError(output, context);
1401
+ return de_CommandError(output, context);
3067
1402
  }
3068
1403
  const contents = map({
3069
1404
  $metadata: deserializeMetadata(output),
3070
1405
  });
3071
1406
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3072
1407
  const doc = take(data, {
3073
- protectedQuery: (_) => de_ProtectedQuery(_, context),
1408
+ nextToken: __expectString,
1409
+ privacyBudgetSummaries: (_) => de_PrivacyBudgetSummaryList(_, context),
3074
1410
  });
3075
1411
  Object.assign(contents, doc);
3076
1412
  return contents;
3077
1413
  };
3078
- const de_StartProtectedQueryCommandError = async (output, context) => {
3079
- const parsedOutput = {
3080
- ...output,
3081
- body: await parseErrorBody(output.body, context),
3082
- };
3083
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3084
- switch (errorCode) {
3085
- case "AccessDeniedException":
3086
- case "com.amazonaws.cleanrooms#AccessDeniedException":
3087
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3088
- case "InternalServerException":
3089
- case "com.amazonaws.cleanrooms#InternalServerException":
3090
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3091
- case "ResourceNotFoundException":
3092
- case "com.amazonaws.cleanrooms#ResourceNotFoundException":
3093
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3094
- case "ServiceQuotaExceededException":
3095
- case "com.amazonaws.cleanrooms#ServiceQuotaExceededException":
3096
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
3097
- case "ThrottlingException":
3098
- case "com.amazonaws.cleanrooms#ThrottlingException":
3099
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3100
- case "ValidationException":
3101
- case "com.amazonaws.cleanrooms#ValidationException":
3102
- throw await de_ValidationExceptionRes(parsedOutput, context);
3103
- default:
3104
- const parsedBody = parsedOutput.body;
3105
- return throwDefaultError({
3106
- output,
3107
- parsedBody,
3108
- errorCode,
3109
- });
1414
+ export const de_ListPrivacyBudgetTemplatesCommand = async (output, context) => {
1415
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1416
+ return de_CommandError(output, context);
3110
1417
  }
1418
+ const contents = map({
1419
+ $metadata: deserializeMetadata(output),
1420
+ });
1421
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1422
+ const doc = take(data, {
1423
+ nextToken: __expectString,
1424
+ privacyBudgetTemplateSummaries: (_) => de_PrivacyBudgetTemplateSummaryList(_, context),
1425
+ });
1426
+ Object.assign(contents, doc);
1427
+ return contents;
3111
1428
  };
3112
- export const de_TagResourceCommand = async (output, context) => {
1429
+ export const de_ListProtectedQueriesCommand = async (output, context) => {
3113
1430
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3114
- return de_TagResourceCommandError(output, context);
1431
+ return de_CommandError(output, context);
3115
1432
  }
3116
1433
  const contents = map({
3117
1434
  $metadata: deserializeMetadata(output),
3118
1435
  });
3119
- await collectBody(output.body, context);
1436
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1437
+ const doc = take(data, {
1438
+ nextToken: __expectString,
1439
+ protectedQueries: (_) => de_ProtectedQuerySummaryList(_, context),
1440
+ });
1441
+ Object.assign(contents, doc);
3120
1442
  return contents;
3121
1443
  };
3122
- const de_TagResourceCommandError = async (output, context) => {
3123
- const parsedOutput = {
3124
- ...output,
3125
- body: await parseErrorBody(output.body, context),
3126
- };
3127
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3128
- switch (errorCode) {
3129
- case "ResourceNotFoundException":
3130
- case "com.amazonaws.cleanrooms#ResourceNotFoundException":
3131
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3132
- case "ValidationException":
3133
- case "com.amazonaws.cleanrooms#ValidationException":
3134
- throw await de_ValidationExceptionRes(parsedOutput, context);
3135
- default:
3136
- const parsedBody = parsedOutput.body;
3137
- return throwDefaultError({
3138
- output,
3139
- parsedBody,
3140
- errorCode,
3141
- });
1444
+ export const de_ListSchemasCommand = async (output, context) => {
1445
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1446
+ return de_CommandError(output, context);
3142
1447
  }
1448
+ const contents = map({
1449
+ $metadata: deserializeMetadata(output),
1450
+ });
1451
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1452
+ const doc = take(data, {
1453
+ nextToken: __expectString,
1454
+ schemaSummaries: (_) => de_SchemaSummaryList(_, context),
1455
+ });
1456
+ Object.assign(contents, doc);
1457
+ return contents;
3143
1458
  };
3144
- export const de_UntagResourceCommand = async (output, context) => {
1459
+ export const de_ListTagsForResourceCommand = async (output, context) => {
3145
1460
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3146
- return de_UntagResourceCommandError(output, context);
1461
+ return de_CommandError(output, context);
3147
1462
  }
3148
1463
  const contents = map({
3149
1464
  $metadata: deserializeMetadata(output),
3150
1465
  });
3151
- await collectBody(output.body, context);
1466
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1467
+ const doc = take(data, {
1468
+ tags: _json,
1469
+ });
1470
+ Object.assign(contents, doc);
3152
1471
  return contents;
3153
1472
  };
3154
- const de_UntagResourceCommandError = async (output, context) => {
3155
- const parsedOutput = {
3156
- ...output,
3157
- body: await parseErrorBody(output.body, context),
3158
- };
3159
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3160
- switch (errorCode) {
3161
- case "ResourceNotFoundException":
3162
- case "com.amazonaws.cleanrooms#ResourceNotFoundException":
3163
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3164
- case "ValidationException":
3165
- case "com.amazonaws.cleanrooms#ValidationException":
3166
- throw await de_ValidationExceptionRes(parsedOutput, context);
3167
- default:
3168
- const parsedBody = parsedOutput.body;
3169
- return throwDefaultError({
3170
- output,
3171
- parsedBody,
3172
- errorCode,
3173
- });
1473
+ export const de_PreviewPrivacyImpactCommand = async (output, context) => {
1474
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1475
+ return de_CommandError(output, context);
3174
1476
  }
1477
+ const contents = map({
1478
+ $metadata: deserializeMetadata(output),
1479
+ });
1480
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1481
+ const doc = take(data, {
1482
+ privacyImpact: (_) => _json(__expectUnion(_)),
1483
+ });
1484
+ Object.assign(contents, doc);
1485
+ return contents;
3175
1486
  };
3176
- export const de_UpdateAnalysisTemplateCommand = async (output, context) => {
1487
+ export const de_StartProtectedQueryCommand = async (output, context) => {
3177
1488
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3178
- return de_UpdateAnalysisTemplateCommandError(output, context);
1489
+ return de_CommandError(output, context);
3179
1490
  }
3180
1491
  const contents = map({
3181
1492
  $metadata: deserializeMetadata(output),
3182
1493
  });
3183
1494
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3184
1495
  const doc = take(data, {
3185
- analysisTemplate: (_) => de_AnalysisTemplate(_, context),
1496
+ protectedQuery: (_) => de_ProtectedQuery(_, context),
3186
1497
  });
3187
1498
  Object.assign(contents, doc);
3188
1499
  return contents;
3189
1500
  };
3190
- const de_UpdateAnalysisTemplateCommandError = async (output, context) => {
3191
- const parsedOutput = {
3192
- ...output,
3193
- body: await parseErrorBody(output.body, context),
3194
- };
3195
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3196
- switch (errorCode) {
3197
- case "AccessDeniedException":
3198
- case "com.amazonaws.cleanrooms#AccessDeniedException":
3199
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3200
- case "InternalServerException":
3201
- case "com.amazonaws.cleanrooms#InternalServerException":
3202
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3203
- case "ResourceNotFoundException":
3204
- case "com.amazonaws.cleanrooms#ResourceNotFoundException":
3205
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3206
- case "ThrottlingException":
3207
- case "com.amazonaws.cleanrooms#ThrottlingException":
3208
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3209
- case "ValidationException":
3210
- case "com.amazonaws.cleanrooms#ValidationException":
3211
- throw await de_ValidationExceptionRes(parsedOutput, context);
3212
- default:
3213
- const parsedBody = parsedOutput.body;
3214
- return throwDefaultError({
3215
- output,
3216
- parsedBody,
3217
- errorCode,
3218
- });
1501
+ export const de_TagResourceCommand = async (output, context) => {
1502
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1503
+ return de_CommandError(output, context);
1504
+ }
1505
+ const contents = map({
1506
+ $metadata: deserializeMetadata(output),
1507
+ });
1508
+ await collectBody(output.body, context);
1509
+ return contents;
1510
+ };
1511
+ export const de_UntagResourceCommand = async (output, context) => {
1512
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1513
+ return de_CommandError(output, context);
3219
1514
  }
1515
+ const contents = map({
1516
+ $metadata: deserializeMetadata(output),
1517
+ });
1518
+ await collectBody(output.body, context);
1519
+ return contents;
3220
1520
  };
3221
- export const de_UpdateCollaborationCommand = async (output, context) => {
1521
+ export const de_UpdateAnalysisTemplateCommand = async (output, context) => {
3222
1522
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3223
- return de_UpdateCollaborationCommandError(output, context);
1523
+ return de_CommandError(output, context);
3224
1524
  }
3225
1525
  const contents = map({
3226
1526
  $metadata: deserializeMetadata(output),
3227
1527
  });
3228
1528
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3229
1529
  const doc = take(data, {
3230
- collaboration: (_) => de_Collaboration(_, context),
1530
+ analysisTemplate: (_) => de_AnalysisTemplate(_, context),
3231
1531
  });
3232
1532
  Object.assign(contents, doc);
3233
1533
  return contents;
3234
1534
  };
3235
- const de_UpdateCollaborationCommandError = async (output, context) => {
3236
- const parsedOutput = {
3237
- ...output,
3238
- body: await parseErrorBody(output.body, context),
3239
- };
3240
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3241
- switch (errorCode) {
3242
- case "AccessDeniedException":
3243
- case "com.amazonaws.cleanrooms#AccessDeniedException":
3244
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3245
- case "InternalServerException":
3246
- case "com.amazonaws.cleanrooms#InternalServerException":
3247
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3248
- case "ThrottlingException":
3249
- case "com.amazonaws.cleanrooms#ThrottlingException":
3250
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3251
- case "ValidationException":
3252
- case "com.amazonaws.cleanrooms#ValidationException":
3253
- throw await de_ValidationExceptionRes(parsedOutput, context);
3254
- default:
3255
- const parsedBody = parsedOutput.body;
3256
- return throwDefaultError({
3257
- output,
3258
- parsedBody,
3259
- errorCode,
3260
- });
1535
+ export const de_UpdateCollaborationCommand = async (output, context) => {
1536
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1537
+ return de_CommandError(output, context);
3261
1538
  }
1539
+ const contents = map({
1540
+ $metadata: deserializeMetadata(output),
1541
+ });
1542
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1543
+ const doc = take(data, {
1544
+ collaboration: (_) => de_Collaboration(_, context),
1545
+ });
1546
+ Object.assign(contents, doc);
1547
+ return contents;
3262
1548
  };
3263
1549
  export const de_UpdateConfiguredAudienceModelAssociationCommand = async (output, context) => {
3264
1550
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3265
- return de_UpdateConfiguredAudienceModelAssociationCommandError(output, context);
1551
+ return de_CommandError(output, context);
3266
1552
  }
3267
1553
  const contents = map({
3268
1554
  $metadata: deserializeMetadata(output),
@@ -3274,40 +1560,9 @@ export const de_UpdateConfiguredAudienceModelAssociationCommand = async (output,
3274
1560
  Object.assign(contents, doc);
3275
1561
  return contents;
3276
1562
  };
3277
- const de_UpdateConfiguredAudienceModelAssociationCommandError = async (output, context) => {
3278
- const parsedOutput = {
3279
- ...output,
3280
- body: await parseErrorBody(output.body, context),
3281
- };
3282
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3283
- switch (errorCode) {
3284
- case "AccessDeniedException":
3285
- case "com.amazonaws.cleanrooms#AccessDeniedException":
3286
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3287
- case "InternalServerException":
3288
- case "com.amazonaws.cleanrooms#InternalServerException":
3289
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3290
- case "ResourceNotFoundException":
3291
- case "com.amazonaws.cleanrooms#ResourceNotFoundException":
3292
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3293
- case "ThrottlingException":
3294
- case "com.amazonaws.cleanrooms#ThrottlingException":
3295
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3296
- case "ValidationException":
3297
- case "com.amazonaws.cleanrooms#ValidationException":
3298
- throw await de_ValidationExceptionRes(parsedOutput, context);
3299
- default:
3300
- const parsedBody = parsedOutput.body;
3301
- return throwDefaultError({
3302
- output,
3303
- parsedBody,
3304
- errorCode,
3305
- });
3306
- }
3307
- };
3308
1563
  export const de_UpdateConfiguredTableCommand = async (output, context) => {
3309
1564
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3310
- return de_UpdateConfiguredTableCommandError(output, context);
1565
+ return de_CommandError(output, context);
3311
1566
  }
3312
1567
  const contents = map({
3313
1568
  $metadata: deserializeMetadata(output),
@@ -3319,43 +1574,9 @@ export const de_UpdateConfiguredTableCommand = async (output, context) => {
3319
1574
  Object.assign(contents, doc);
3320
1575
  return contents;
3321
1576
  };
3322
- const de_UpdateConfiguredTableCommandError = async (output, context) => {
3323
- const parsedOutput = {
3324
- ...output,
3325
- body: await parseErrorBody(output.body, context),
3326
- };
3327
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3328
- switch (errorCode) {
3329
- case "AccessDeniedException":
3330
- case "com.amazonaws.cleanrooms#AccessDeniedException":
3331
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3332
- case "ConflictException":
3333
- case "com.amazonaws.cleanrooms#ConflictException":
3334
- throw await de_ConflictExceptionRes(parsedOutput, context);
3335
- case "InternalServerException":
3336
- case "com.amazonaws.cleanrooms#InternalServerException":
3337
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3338
- case "ResourceNotFoundException":
3339
- case "com.amazonaws.cleanrooms#ResourceNotFoundException":
3340
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3341
- case "ThrottlingException":
3342
- case "com.amazonaws.cleanrooms#ThrottlingException":
3343
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3344
- case "ValidationException":
3345
- case "com.amazonaws.cleanrooms#ValidationException":
3346
- throw await de_ValidationExceptionRes(parsedOutput, context);
3347
- default:
3348
- const parsedBody = parsedOutput.body;
3349
- return throwDefaultError({
3350
- output,
3351
- parsedBody,
3352
- errorCode,
3353
- });
3354
- }
3355
- };
3356
1577
  export const de_UpdateConfiguredTableAnalysisRuleCommand = async (output, context) => {
3357
1578
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3358
- return de_UpdateConfiguredTableAnalysisRuleCommandError(output, context);
1579
+ return de_CommandError(output, context);
3359
1580
  }
3360
1581
  const contents = map({
3361
1582
  $metadata: deserializeMetadata(output),
@@ -3367,43 +1588,9 @@ export const de_UpdateConfiguredTableAnalysisRuleCommand = async (output, contex
3367
1588
  Object.assign(contents, doc);
3368
1589
  return contents;
3369
1590
  };
3370
- const de_UpdateConfiguredTableAnalysisRuleCommandError = async (output, context) => {
3371
- const parsedOutput = {
3372
- ...output,
3373
- body: await parseErrorBody(output.body, context),
3374
- };
3375
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3376
- switch (errorCode) {
3377
- case "AccessDeniedException":
3378
- case "com.amazonaws.cleanrooms#AccessDeniedException":
3379
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3380
- case "ConflictException":
3381
- case "com.amazonaws.cleanrooms#ConflictException":
3382
- throw await de_ConflictExceptionRes(parsedOutput, context);
3383
- case "InternalServerException":
3384
- case "com.amazonaws.cleanrooms#InternalServerException":
3385
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3386
- case "ResourceNotFoundException":
3387
- case "com.amazonaws.cleanrooms#ResourceNotFoundException":
3388
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3389
- case "ThrottlingException":
3390
- case "com.amazonaws.cleanrooms#ThrottlingException":
3391
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3392
- case "ValidationException":
3393
- case "com.amazonaws.cleanrooms#ValidationException":
3394
- throw await de_ValidationExceptionRes(parsedOutput, context);
3395
- default:
3396
- const parsedBody = parsedOutput.body;
3397
- return throwDefaultError({
3398
- output,
3399
- parsedBody,
3400
- errorCode,
3401
- });
3402
- }
3403
- };
3404
1591
  export const de_UpdateConfiguredTableAssociationCommand = async (output, context) => {
3405
1592
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3406
- return de_UpdateConfiguredTableAssociationCommandError(output, context);
1593
+ return de_CommandError(output, context);
3407
1594
  }
3408
1595
  const contents = map({
3409
1596
  $metadata: deserializeMetadata(output),
@@ -3415,43 +1602,9 @@ export const de_UpdateConfiguredTableAssociationCommand = async (output, context
3415
1602
  Object.assign(contents, doc);
3416
1603
  return contents;
3417
1604
  };
3418
- const de_UpdateConfiguredTableAssociationCommandError = async (output, context) => {
3419
- const parsedOutput = {
3420
- ...output,
3421
- body: await parseErrorBody(output.body, context),
3422
- };
3423
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3424
- switch (errorCode) {
3425
- case "AccessDeniedException":
3426
- case "com.amazonaws.cleanrooms#AccessDeniedException":
3427
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3428
- case "ConflictException":
3429
- case "com.amazonaws.cleanrooms#ConflictException":
3430
- throw await de_ConflictExceptionRes(parsedOutput, context);
3431
- case "InternalServerException":
3432
- case "com.amazonaws.cleanrooms#InternalServerException":
3433
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3434
- case "ResourceNotFoundException":
3435
- case "com.amazonaws.cleanrooms#ResourceNotFoundException":
3436
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3437
- case "ThrottlingException":
3438
- case "com.amazonaws.cleanrooms#ThrottlingException":
3439
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3440
- case "ValidationException":
3441
- case "com.amazonaws.cleanrooms#ValidationException":
3442
- throw await de_ValidationExceptionRes(parsedOutput, context);
3443
- default:
3444
- const parsedBody = parsedOutput.body;
3445
- return throwDefaultError({
3446
- output,
3447
- parsedBody,
3448
- errorCode,
3449
- });
3450
- }
3451
- };
3452
1605
  export const de_UpdateMembershipCommand = async (output, context) => {
3453
1606
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3454
- return de_UpdateMembershipCommandError(output, context);
1607
+ return de_CommandError(output, context);
3455
1608
  }
3456
1609
  const contents = map({
3457
1610
  $metadata: deserializeMetadata(output),
@@ -3463,43 +1616,9 @@ export const de_UpdateMembershipCommand = async (output, context) => {
3463
1616
  Object.assign(contents, doc);
3464
1617
  return contents;
3465
1618
  };
3466
- const de_UpdateMembershipCommandError = async (output, context) => {
3467
- const parsedOutput = {
3468
- ...output,
3469
- body: await parseErrorBody(output.body, context),
3470
- };
3471
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3472
- switch (errorCode) {
3473
- case "AccessDeniedException":
3474
- case "com.amazonaws.cleanrooms#AccessDeniedException":
3475
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3476
- case "ConflictException":
3477
- case "com.amazonaws.cleanrooms#ConflictException":
3478
- throw await de_ConflictExceptionRes(parsedOutput, context);
3479
- case "InternalServerException":
3480
- case "com.amazonaws.cleanrooms#InternalServerException":
3481
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3482
- case "ResourceNotFoundException":
3483
- case "com.amazonaws.cleanrooms#ResourceNotFoundException":
3484
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3485
- case "ThrottlingException":
3486
- case "com.amazonaws.cleanrooms#ThrottlingException":
3487
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3488
- case "ValidationException":
3489
- case "com.amazonaws.cleanrooms#ValidationException":
3490
- throw await de_ValidationExceptionRes(parsedOutput, context);
3491
- default:
3492
- const parsedBody = parsedOutput.body;
3493
- return throwDefaultError({
3494
- output,
3495
- parsedBody,
3496
- errorCode,
3497
- });
3498
- }
3499
- };
3500
1619
  export const de_UpdatePrivacyBudgetTemplateCommand = async (output, context) => {
3501
1620
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3502
- return de_UpdatePrivacyBudgetTemplateCommandError(output, context);
1621
+ return de_CommandError(output, context);
3503
1622
  }
3504
1623
  const contents = map({
3505
1624
  $metadata: deserializeMetadata(output),
@@ -3511,43 +1630,9 @@ export const de_UpdatePrivacyBudgetTemplateCommand = async (output, context) =>
3511
1630
  Object.assign(contents, doc);
3512
1631
  return contents;
3513
1632
  };
3514
- const de_UpdatePrivacyBudgetTemplateCommandError = async (output, context) => {
3515
- const parsedOutput = {
3516
- ...output,
3517
- body: await parseErrorBody(output.body, context),
3518
- };
3519
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3520
- switch (errorCode) {
3521
- case "AccessDeniedException":
3522
- case "com.amazonaws.cleanrooms#AccessDeniedException":
3523
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3524
- case "ConflictException":
3525
- case "com.amazonaws.cleanrooms#ConflictException":
3526
- throw await de_ConflictExceptionRes(parsedOutput, context);
3527
- case "InternalServerException":
3528
- case "com.amazonaws.cleanrooms#InternalServerException":
3529
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3530
- case "ResourceNotFoundException":
3531
- case "com.amazonaws.cleanrooms#ResourceNotFoundException":
3532
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3533
- case "ThrottlingException":
3534
- case "com.amazonaws.cleanrooms#ThrottlingException":
3535
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3536
- case "ValidationException":
3537
- case "com.amazonaws.cleanrooms#ValidationException":
3538
- throw await de_ValidationExceptionRes(parsedOutput, context);
3539
- default:
3540
- const parsedBody = parsedOutput.body;
3541
- return throwDefaultError({
3542
- output,
3543
- parsedBody,
3544
- errorCode,
3545
- });
3546
- }
3547
- };
3548
1633
  export const de_UpdateProtectedQueryCommand = async (output, context) => {
3549
1634
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3550
- return de_UpdateProtectedQueryCommandError(output, context);
1635
+ return de_CommandError(output, context);
3551
1636
  }
3552
1637
  const contents = map({
3553
1638
  $metadata: deserializeMetadata(output),
@@ -3559,7 +1644,7 @@ export const de_UpdateProtectedQueryCommand = async (output, context) => {
3559
1644
  Object.assign(contents, doc);
3560
1645
  return contents;
3561
1646
  };
3562
- const de_UpdateProtectedQueryCommandError = async (output, context) => {
1647
+ const de_CommandError = async (output, context) => {
3563
1648
  const parsedOutput = {
3564
1649
  ...output,
3565
1650
  body: await parseErrorBody(output.body, context),
@@ -3569,9 +1654,6 @@ const de_UpdateProtectedQueryCommandError = async (output, context) => {
3569
1654
  case "AccessDeniedException":
3570
1655
  case "com.amazonaws.cleanrooms#AccessDeniedException":
3571
1656
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3572
- case "ConflictException":
3573
- case "com.amazonaws.cleanrooms#ConflictException":
3574
- throw await de_ConflictExceptionRes(parsedOutput, context);
3575
1657
  case "InternalServerException":
3576
1658
  case "com.amazonaws.cleanrooms#InternalServerException":
3577
1659
  throw await de_InternalServerExceptionRes(parsedOutput, context);
@@ -3584,6 +1666,12 @@ const de_UpdateProtectedQueryCommandError = async (output, context) => {
3584
1666
  case "ValidationException":
3585
1667
  case "com.amazonaws.cleanrooms#ValidationException":
3586
1668
  throw await de_ValidationExceptionRes(parsedOutput, context);
1669
+ case "ConflictException":
1670
+ case "com.amazonaws.cleanrooms#ConflictException":
1671
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1672
+ case "ServiceQuotaExceededException":
1673
+ case "com.amazonaws.cleanrooms#ServiceQuotaExceededException":
1674
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
3587
1675
  default:
3588
1676
  const parsedBody = parsedOutput.body;
3589
1677
  return throwDefaultError({