@aws-sdk/client-macie2 3.504.0 → 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.
- package/dist-cjs/index.js +162 -2817
- package/dist-es/protocols/Aws_restJson1.js +163 -2818
- package/package.json +3 -3
|
@@ -1028,7 +1028,7 @@ export const se_UpdateSensitivityInspectionTemplateCommand = async (input, conte
|
|
|
1028
1028
|
};
|
|
1029
1029
|
export const de_AcceptInvitationCommand = async (output, context) => {
|
|
1030
1030
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1031
|
-
return
|
|
1031
|
+
return de_CommandError(output, context);
|
|
1032
1032
|
}
|
|
1033
1033
|
const contents = map({
|
|
1034
1034
|
$metadata: deserializeMetadata(output),
|
|
@@ -1036,46 +1036,9 @@ export const de_AcceptInvitationCommand = async (output, context) => {
|
|
|
1036
1036
|
await collectBody(output.body, context);
|
|
1037
1037
|
return contents;
|
|
1038
1038
|
};
|
|
1039
|
-
const de_AcceptInvitationCommandError = async (output, context) => {
|
|
1040
|
-
const parsedOutput = {
|
|
1041
|
-
...output,
|
|
1042
|
-
body: await parseErrorBody(output.body, context),
|
|
1043
|
-
};
|
|
1044
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1045
|
-
switch (errorCode) {
|
|
1046
|
-
case "AccessDeniedException":
|
|
1047
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
1048
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1049
|
-
case "ConflictException":
|
|
1050
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
1051
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1052
|
-
case "InternalServerException":
|
|
1053
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
1054
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1055
|
-
case "ResourceNotFoundException":
|
|
1056
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
1057
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1058
|
-
case "ServiceQuotaExceededException":
|
|
1059
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
1060
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1061
|
-
case "ThrottlingException":
|
|
1062
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
1063
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1064
|
-
case "ValidationException":
|
|
1065
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
1066
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1067
|
-
default:
|
|
1068
|
-
const parsedBody = parsedOutput.body;
|
|
1069
|
-
return throwDefaultError({
|
|
1070
|
-
output,
|
|
1071
|
-
parsedBody,
|
|
1072
|
-
errorCode,
|
|
1073
|
-
});
|
|
1074
|
-
}
|
|
1075
|
-
};
|
|
1076
1039
|
export const de_BatchGetCustomDataIdentifiersCommand = async (output, context) => {
|
|
1077
1040
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1078
|
-
return
|
|
1041
|
+
return de_CommandError(output, context);
|
|
1079
1042
|
}
|
|
1080
1043
|
const contents = map({
|
|
1081
1044
|
$metadata: deserializeMetadata(output),
|
|
@@ -1092,46 +1055,9 @@ export const de_BatchGetCustomDataIdentifiersCommand = async (output, context) =
|
|
|
1092
1055
|
Object.assign(contents, doc);
|
|
1093
1056
|
return contents;
|
|
1094
1057
|
};
|
|
1095
|
-
const de_BatchGetCustomDataIdentifiersCommandError = async (output, context) => {
|
|
1096
|
-
const parsedOutput = {
|
|
1097
|
-
...output,
|
|
1098
|
-
body: await parseErrorBody(output.body, context),
|
|
1099
|
-
};
|
|
1100
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1101
|
-
switch (errorCode) {
|
|
1102
|
-
case "AccessDeniedException":
|
|
1103
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
1104
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1105
|
-
case "ConflictException":
|
|
1106
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
1107
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1108
|
-
case "InternalServerException":
|
|
1109
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
1110
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1111
|
-
case "ResourceNotFoundException":
|
|
1112
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
1113
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1114
|
-
case "ServiceQuotaExceededException":
|
|
1115
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
1116
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1117
|
-
case "ThrottlingException":
|
|
1118
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
1119
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1120
|
-
case "ValidationException":
|
|
1121
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
1122
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1123
|
-
default:
|
|
1124
|
-
const parsedBody = parsedOutput.body;
|
|
1125
|
-
return throwDefaultError({
|
|
1126
|
-
output,
|
|
1127
|
-
parsedBody,
|
|
1128
|
-
errorCode,
|
|
1129
|
-
});
|
|
1130
|
-
}
|
|
1131
|
-
};
|
|
1132
1058
|
export const de_CreateAllowListCommand = async (output, context) => {
|
|
1133
1059
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1134
|
-
return
|
|
1060
|
+
return de_CommandError(output, context);
|
|
1135
1061
|
}
|
|
1136
1062
|
const contents = map({
|
|
1137
1063
|
$metadata: deserializeMetadata(output),
|
|
@@ -1144,46 +1070,9 @@ export const de_CreateAllowListCommand = async (output, context) => {
|
|
|
1144
1070
|
Object.assign(contents, doc);
|
|
1145
1071
|
return contents;
|
|
1146
1072
|
};
|
|
1147
|
-
const de_CreateAllowListCommandError = async (output, context) => {
|
|
1148
|
-
const parsedOutput = {
|
|
1149
|
-
...output,
|
|
1150
|
-
body: await parseErrorBody(output.body, context),
|
|
1151
|
-
};
|
|
1152
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1153
|
-
switch (errorCode) {
|
|
1154
|
-
case "AccessDeniedException":
|
|
1155
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
1156
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1157
|
-
case "ConflictException":
|
|
1158
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
1159
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1160
|
-
case "InternalServerException":
|
|
1161
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
1162
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1163
|
-
case "ResourceNotFoundException":
|
|
1164
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
1165
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1166
|
-
case "ServiceQuotaExceededException":
|
|
1167
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
1168
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1169
|
-
case "ThrottlingException":
|
|
1170
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
1171
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1172
|
-
case "ValidationException":
|
|
1173
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
1174
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1175
|
-
default:
|
|
1176
|
-
const parsedBody = parsedOutput.body;
|
|
1177
|
-
return throwDefaultError({
|
|
1178
|
-
output,
|
|
1179
|
-
parsedBody,
|
|
1180
|
-
errorCode,
|
|
1181
|
-
});
|
|
1182
|
-
}
|
|
1183
|
-
};
|
|
1184
1073
|
export const de_CreateClassificationJobCommand = async (output, context) => {
|
|
1185
1074
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1186
|
-
return
|
|
1075
|
+
return de_CommandError(output, context);
|
|
1187
1076
|
}
|
|
1188
1077
|
const contents = map({
|
|
1189
1078
|
$metadata: deserializeMetadata(output),
|
|
@@ -1196,46 +1085,9 @@ export const de_CreateClassificationJobCommand = async (output, context) => {
|
|
|
1196
1085
|
Object.assign(contents, doc);
|
|
1197
1086
|
return contents;
|
|
1198
1087
|
};
|
|
1199
|
-
const de_CreateClassificationJobCommandError = async (output, context) => {
|
|
1200
|
-
const parsedOutput = {
|
|
1201
|
-
...output,
|
|
1202
|
-
body: await parseErrorBody(output.body, context),
|
|
1203
|
-
};
|
|
1204
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1205
|
-
switch (errorCode) {
|
|
1206
|
-
case "AccessDeniedException":
|
|
1207
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
1208
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1209
|
-
case "ConflictException":
|
|
1210
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
1211
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1212
|
-
case "InternalServerException":
|
|
1213
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
1214
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1215
|
-
case "ResourceNotFoundException":
|
|
1216
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
1217
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1218
|
-
case "ServiceQuotaExceededException":
|
|
1219
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
1220
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1221
|
-
case "ThrottlingException":
|
|
1222
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
1223
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1224
|
-
case "ValidationException":
|
|
1225
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
1226
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1227
|
-
default:
|
|
1228
|
-
const parsedBody = parsedOutput.body;
|
|
1229
|
-
return throwDefaultError({
|
|
1230
|
-
output,
|
|
1231
|
-
parsedBody,
|
|
1232
|
-
errorCode,
|
|
1233
|
-
});
|
|
1234
|
-
}
|
|
1235
|
-
};
|
|
1236
1088
|
export const de_CreateCustomDataIdentifierCommand = async (output, context) => {
|
|
1237
1089
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1238
|
-
return
|
|
1090
|
+
return de_CommandError(output, context);
|
|
1239
1091
|
}
|
|
1240
1092
|
const contents = map({
|
|
1241
1093
|
$metadata: deserializeMetadata(output),
|
|
@@ -1247,46 +1099,9 @@ export const de_CreateCustomDataIdentifierCommand = async (output, context) => {
|
|
|
1247
1099
|
Object.assign(contents, doc);
|
|
1248
1100
|
return contents;
|
|
1249
1101
|
};
|
|
1250
|
-
const de_CreateCustomDataIdentifierCommandError = async (output, context) => {
|
|
1251
|
-
const parsedOutput = {
|
|
1252
|
-
...output,
|
|
1253
|
-
body: await parseErrorBody(output.body, context),
|
|
1254
|
-
};
|
|
1255
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1256
|
-
switch (errorCode) {
|
|
1257
|
-
case "AccessDeniedException":
|
|
1258
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
1259
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1260
|
-
case "ConflictException":
|
|
1261
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
1262
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1263
|
-
case "InternalServerException":
|
|
1264
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
1265
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1266
|
-
case "ResourceNotFoundException":
|
|
1267
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
1268
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1269
|
-
case "ServiceQuotaExceededException":
|
|
1270
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
1271
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1272
|
-
case "ThrottlingException":
|
|
1273
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
1274
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1275
|
-
case "ValidationException":
|
|
1276
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
1277
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1278
|
-
default:
|
|
1279
|
-
const parsedBody = parsedOutput.body;
|
|
1280
|
-
return throwDefaultError({
|
|
1281
|
-
output,
|
|
1282
|
-
parsedBody,
|
|
1283
|
-
errorCode,
|
|
1284
|
-
});
|
|
1285
|
-
}
|
|
1286
|
-
};
|
|
1287
1102
|
export const de_CreateFindingsFilterCommand = async (output, context) => {
|
|
1288
1103
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1289
|
-
return
|
|
1104
|
+
return de_CommandError(output, context);
|
|
1290
1105
|
}
|
|
1291
1106
|
const contents = map({
|
|
1292
1107
|
$metadata: deserializeMetadata(output),
|
|
@@ -1299,46 +1114,9 @@ export const de_CreateFindingsFilterCommand = async (output, context) => {
|
|
|
1299
1114
|
Object.assign(contents, doc);
|
|
1300
1115
|
return contents;
|
|
1301
1116
|
};
|
|
1302
|
-
const de_CreateFindingsFilterCommandError = async (output, context) => {
|
|
1303
|
-
const parsedOutput = {
|
|
1304
|
-
...output,
|
|
1305
|
-
body: await parseErrorBody(output.body, context),
|
|
1306
|
-
};
|
|
1307
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1308
|
-
switch (errorCode) {
|
|
1309
|
-
case "AccessDeniedException":
|
|
1310
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
1311
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1312
|
-
case "ConflictException":
|
|
1313
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
1314
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1315
|
-
case "InternalServerException":
|
|
1316
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
1317
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1318
|
-
case "ResourceNotFoundException":
|
|
1319
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
1320
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1321
|
-
case "ServiceQuotaExceededException":
|
|
1322
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
1323
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1324
|
-
case "ThrottlingException":
|
|
1325
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
1326
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1327
|
-
case "ValidationException":
|
|
1328
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
1329
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1330
|
-
default:
|
|
1331
|
-
const parsedBody = parsedOutput.body;
|
|
1332
|
-
return throwDefaultError({
|
|
1333
|
-
output,
|
|
1334
|
-
parsedBody,
|
|
1335
|
-
errorCode,
|
|
1336
|
-
});
|
|
1337
|
-
}
|
|
1338
|
-
};
|
|
1339
1117
|
export const de_CreateInvitationsCommand = async (output, context) => {
|
|
1340
1118
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1341
|
-
return
|
|
1119
|
+
return de_CommandError(output, context);
|
|
1342
1120
|
}
|
|
1343
1121
|
const contents = map({
|
|
1344
1122
|
$metadata: deserializeMetadata(output),
|
|
@@ -1350,46 +1128,9 @@ export const de_CreateInvitationsCommand = async (output, context) => {
|
|
|
1350
1128
|
Object.assign(contents, doc);
|
|
1351
1129
|
return contents;
|
|
1352
1130
|
};
|
|
1353
|
-
const de_CreateInvitationsCommandError = async (output, context) => {
|
|
1354
|
-
const parsedOutput = {
|
|
1355
|
-
...output,
|
|
1356
|
-
body: await parseErrorBody(output.body, context),
|
|
1357
|
-
};
|
|
1358
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1359
|
-
switch (errorCode) {
|
|
1360
|
-
case "AccessDeniedException":
|
|
1361
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
1362
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1363
|
-
case "ConflictException":
|
|
1364
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
1365
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1366
|
-
case "InternalServerException":
|
|
1367
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
1368
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1369
|
-
case "ResourceNotFoundException":
|
|
1370
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
1371
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1372
|
-
case "ServiceQuotaExceededException":
|
|
1373
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
1374
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1375
|
-
case "ThrottlingException":
|
|
1376
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
1377
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1378
|
-
case "ValidationException":
|
|
1379
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
1380
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1381
|
-
default:
|
|
1382
|
-
const parsedBody = parsedOutput.body;
|
|
1383
|
-
return throwDefaultError({
|
|
1384
|
-
output,
|
|
1385
|
-
parsedBody,
|
|
1386
|
-
errorCode,
|
|
1387
|
-
});
|
|
1388
|
-
}
|
|
1389
|
-
};
|
|
1390
1131
|
export const de_CreateMemberCommand = async (output, context) => {
|
|
1391
1132
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1392
|
-
return
|
|
1133
|
+
return de_CommandError(output, context);
|
|
1393
1134
|
}
|
|
1394
1135
|
const contents = map({
|
|
1395
1136
|
$metadata: deserializeMetadata(output),
|
|
@@ -1401,46 +1142,9 @@ export const de_CreateMemberCommand = async (output, context) => {
|
|
|
1401
1142
|
Object.assign(contents, doc);
|
|
1402
1143
|
return contents;
|
|
1403
1144
|
};
|
|
1404
|
-
const de_CreateMemberCommandError = async (output, context) => {
|
|
1405
|
-
const parsedOutput = {
|
|
1406
|
-
...output,
|
|
1407
|
-
body: await parseErrorBody(output.body, context),
|
|
1408
|
-
};
|
|
1409
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1410
|
-
switch (errorCode) {
|
|
1411
|
-
case "AccessDeniedException":
|
|
1412
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
1413
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1414
|
-
case "ConflictException":
|
|
1415
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
1416
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1417
|
-
case "InternalServerException":
|
|
1418
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
1419
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1420
|
-
case "ResourceNotFoundException":
|
|
1421
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
1422
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1423
|
-
case "ServiceQuotaExceededException":
|
|
1424
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
1425
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1426
|
-
case "ThrottlingException":
|
|
1427
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
1428
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1429
|
-
case "ValidationException":
|
|
1430
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
1431
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1432
|
-
default:
|
|
1433
|
-
const parsedBody = parsedOutput.body;
|
|
1434
|
-
return throwDefaultError({
|
|
1435
|
-
output,
|
|
1436
|
-
parsedBody,
|
|
1437
|
-
errorCode,
|
|
1438
|
-
});
|
|
1439
|
-
}
|
|
1440
|
-
};
|
|
1441
1145
|
export const de_CreateSampleFindingsCommand = async (output, context) => {
|
|
1442
1146
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1443
|
-
return
|
|
1147
|
+
return de_CommandError(output, context);
|
|
1444
1148
|
}
|
|
1445
1149
|
const contents = map({
|
|
1446
1150
|
$metadata: deserializeMetadata(output),
|
|
@@ -1448,46 +1152,9 @@ export const de_CreateSampleFindingsCommand = async (output, context) => {
|
|
|
1448
1152
|
await collectBody(output.body, context);
|
|
1449
1153
|
return contents;
|
|
1450
1154
|
};
|
|
1451
|
-
const de_CreateSampleFindingsCommandError = async (output, context) => {
|
|
1452
|
-
const parsedOutput = {
|
|
1453
|
-
...output,
|
|
1454
|
-
body: await parseErrorBody(output.body, context),
|
|
1455
|
-
};
|
|
1456
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1457
|
-
switch (errorCode) {
|
|
1458
|
-
case "AccessDeniedException":
|
|
1459
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
1460
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1461
|
-
case "ConflictException":
|
|
1462
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
1463
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1464
|
-
case "InternalServerException":
|
|
1465
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
1466
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1467
|
-
case "ResourceNotFoundException":
|
|
1468
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
1469
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1470
|
-
case "ServiceQuotaExceededException":
|
|
1471
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
1472
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1473
|
-
case "ThrottlingException":
|
|
1474
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
1475
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1476
|
-
case "ValidationException":
|
|
1477
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
1478
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1479
|
-
default:
|
|
1480
|
-
const parsedBody = parsedOutput.body;
|
|
1481
|
-
return throwDefaultError({
|
|
1482
|
-
output,
|
|
1483
|
-
parsedBody,
|
|
1484
|
-
errorCode,
|
|
1485
|
-
});
|
|
1486
|
-
}
|
|
1487
|
-
};
|
|
1488
1155
|
export const de_DeclineInvitationsCommand = async (output, context) => {
|
|
1489
1156
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1490
|
-
return
|
|
1157
|
+
return de_CommandError(output, context);
|
|
1491
1158
|
}
|
|
1492
1159
|
const contents = map({
|
|
1493
1160
|
$metadata: deserializeMetadata(output),
|
|
@@ -1499,46 +1166,9 @@ export const de_DeclineInvitationsCommand = async (output, context) => {
|
|
|
1499
1166
|
Object.assign(contents, doc);
|
|
1500
1167
|
return contents;
|
|
1501
1168
|
};
|
|
1502
|
-
const de_DeclineInvitationsCommandError = async (output, context) => {
|
|
1503
|
-
const parsedOutput = {
|
|
1504
|
-
...output,
|
|
1505
|
-
body: await parseErrorBody(output.body, context),
|
|
1506
|
-
};
|
|
1507
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1508
|
-
switch (errorCode) {
|
|
1509
|
-
case "AccessDeniedException":
|
|
1510
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
1511
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1512
|
-
case "ConflictException":
|
|
1513
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
1514
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1515
|
-
case "InternalServerException":
|
|
1516
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
1517
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1518
|
-
case "ResourceNotFoundException":
|
|
1519
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
1520
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1521
|
-
case "ServiceQuotaExceededException":
|
|
1522
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
1523
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1524
|
-
case "ThrottlingException":
|
|
1525
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
1526
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1527
|
-
case "ValidationException":
|
|
1528
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
1529
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1530
|
-
default:
|
|
1531
|
-
const parsedBody = parsedOutput.body;
|
|
1532
|
-
return throwDefaultError({
|
|
1533
|
-
output,
|
|
1534
|
-
parsedBody,
|
|
1535
|
-
errorCode,
|
|
1536
|
-
});
|
|
1537
|
-
}
|
|
1538
|
-
};
|
|
1539
1169
|
export const de_DeleteAllowListCommand = async (output, context) => {
|
|
1540
1170
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1541
|
-
return
|
|
1171
|
+
return de_CommandError(output, context);
|
|
1542
1172
|
}
|
|
1543
1173
|
const contents = map({
|
|
1544
1174
|
$metadata: deserializeMetadata(output),
|
|
@@ -1546,40 +1176,9 @@ export const de_DeleteAllowListCommand = async (output, context) => {
|
|
|
1546
1176
|
await collectBody(output.body, context);
|
|
1547
1177
|
return contents;
|
|
1548
1178
|
};
|
|
1549
|
-
const de_DeleteAllowListCommandError = async (output, context) => {
|
|
1550
|
-
const parsedOutput = {
|
|
1551
|
-
...output,
|
|
1552
|
-
body: await parseErrorBody(output.body, context),
|
|
1553
|
-
};
|
|
1554
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1555
|
-
switch (errorCode) {
|
|
1556
|
-
case "AccessDeniedException":
|
|
1557
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
1558
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1559
|
-
case "InternalServerException":
|
|
1560
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
1561
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1562
|
-
case "ResourceNotFoundException":
|
|
1563
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
1564
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1565
|
-
case "ThrottlingException":
|
|
1566
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
1567
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1568
|
-
case "ValidationException":
|
|
1569
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
1570
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1571
|
-
default:
|
|
1572
|
-
const parsedBody = parsedOutput.body;
|
|
1573
|
-
return throwDefaultError({
|
|
1574
|
-
output,
|
|
1575
|
-
parsedBody,
|
|
1576
|
-
errorCode,
|
|
1577
|
-
});
|
|
1578
|
-
}
|
|
1579
|
-
};
|
|
1580
1179
|
export const de_DeleteCustomDataIdentifierCommand = async (output, context) => {
|
|
1581
1180
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1582
|
-
return
|
|
1181
|
+
return de_CommandError(output, context);
|
|
1583
1182
|
}
|
|
1584
1183
|
const contents = map({
|
|
1585
1184
|
$metadata: deserializeMetadata(output),
|
|
@@ -1587,46 +1186,9 @@ export const de_DeleteCustomDataIdentifierCommand = async (output, context) => {
|
|
|
1587
1186
|
await collectBody(output.body, context);
|
|
1588
1187
|
return contents;
|
|
1589
1188
|
};
|
|
1590
|
-
const de_DeleteCustomDataIdentifierCommandError = async (output, context) => {
|
|
1591
|
-
const parsedOutput = {
|
|
1592
|
-
...output,
|
|
1593
|
-
body: await parseErrorBody(output.body, context),
|
|
1594
|
-
};
|
|
1595
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1596
|
-
switch (errorCode) {
|
|
1597
|
-
case "AccessDeniedException":
|
|
1598
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
1599
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1600
|
-
case "ConflictException":
|
|
1601
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
1602
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1603
|
-
case "InternalServerException":
|
|
1604
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
1605
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1606
|
-
case "ResourceNotFoundException":
|
|
1607
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
1608
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1609
|
-
case "ServiceQuotaExceededException":
|
|
1610
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
1611
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1612
|
-
case "ThrottlingException":
|
|
1613
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
1614
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1615
|
-
case "ValidationException":
|
|
1616
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
1617
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1618
|
-
default:
|
|
1619
|
-
const parsedBody = parsedOutput.body;
|
|
1620
|
-
return throwDefaultError({
|
|
1621
|
-
output,
|
|
1622
|
-
parsedBody,
|
|
1623
|
-
errorCode,
|
|
1624
|
-
});
|
|
1625
|
-
}
|
|
1626
|
-
};
|
|
1627
1189
|
export const de_DeleteFindingsFilterCommand = async (output, context) => {
|
|
1628
1190
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1629
|
-
return
|
|
1191
|
+
return de_CommandError(output, context);
|
|
1630
1192
|
}
|
|
1631
1193
|
const contents = map({
|
|
1632
1194
|
$metadata: deserializeMetadata(output),
|
|
@@ -1634,46 +1196,9 @@ export const de_DeleteFindingsFilterCommand = async (output, context) => {
|
|
|
1634
1196
|
await collectBody(output.body, context);
|
|
1635
1197
|
return contents;
|
|
1636
1198
|
};
|
|
1637
|
-
const de_DeleteFindingsFilterCommandError = async (output, context) => {
|
|
1638
|
-
const parsedOutput = {
|
|
1639
|
-
...output,
|
|
1640
|
-
body: await parseErrorBody(output.body, context),
|
|
1641
|
-
};
|
|
1642
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1643
|
-
switch (errorCode) {
|
|
1644
|
-
case "AccessDeniedException":
|
|
1645
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
1646
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1647
|
-
case "ConflictException":
|
|
1648
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
1649
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1650
|
-
case "InternalServerException":
|
|
1651
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
1652
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1653
|
-
case "ResourceNotFoundException":
|
|
1654
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
1655
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1656
|
-
case "ServiceQuotaExceededException":
|
|
1657
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
1658
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1659
|
-
case "ThrottlingException":
|
|
1660
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
1661
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1662
|
-
case "ValidationException":
|
|
1663
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
1664
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1665
|
-
default:
|
|
1666
|
-
const parsedBody = parsedOutput.body;
|
|
1667
|
-
return throwDefaultError({
|
|
1668
|
-
output,
|
|
1669
|
-
parsedBody,
|
|
1670
|
-
errorCode,
|
|
1671
|
-
});
|
|
1672
|
-
}
|
|
1673
|
-
};
|
|
1674
1199
|
export const de_DeleteInvitationsCommand = async (output, context) => {
|
|
1675
1200
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1676
|
-
return
|
|
1201
|
+
return de_CommandError(output, context);
|
|
1677
1202
|
}
|
|
1678
1203
|
const contents = map({
|
|
1679
1204
|
$metadata: deserializeMetadata(output),
|
|
@@ -1685,46 +1210,9 @@ export const de_DeleteInvitationsCommand = async (output, context) => {
|
|
|
1685
1210
|
Object.assign(contents, doc);
|
|
1686
1211
|
return contents;
|
|
1687
1212
|
};
|
|
1688
|
-
const de_DeleteInvitationsCommandError = async (output, context) => {
|
|
1689
|
-
const parsedOutput = {
|
|
1690
|
-
...output,
|
|
1691
|
-
body: await parseErrorBody(output.body, context),
|
|
1692
|
-
};
|
|
1693
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1694
|
-
switch (errorCode) {
|
|
1695
|
-
case "AccessDeniedException":
|
|
1696
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
1697
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1698
|
-
case "ConflictException":
|
|
1699
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
1700
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1701
|
-
case "InternalServerException":
|
|
1702
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
1703
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1704
|
-
case "ResourceNotFoundException":
|
|
1705
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
1706
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1707
|
-
case "ServiceQuotaExceededException":
|
|
1708
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
1709
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1710
|
-
case "ThrottlingException":
|
|
1711
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
1712
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1713
|
-
case "ValidationException":
|
|
1714
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
1715
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1716
|
-
default:
|
|
1717
|
-
const parsedBody = parsedOutput.body;
|
|
1718
|
-
return throwDefaultError({
|
|
1719
|
-
output,
|
|
1720
|
-
parsedBody,
|
|
1721
|
-
errorCode,
|
|
1722
|
-
});
|
|
1723
|
-
}
|
|
1724
|
-
};
|
|
1725
1213
|
export const de_DeleteMemberCommand = async (output, context) => {
|
|
1726
1214
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1727
|
-
return
|
|
1215
|
+
return de_CommandError(output, context);
|
|
1728
1216
|
}
|
|
1729
1217
|
const contents = map({
|
|
1730
1218
|
$metadata: deserializeMetadata(output),
|
|
@@ -1732,46 +1220,9 @@ export const de_DeleteMemberCommand = async (output, context) => {
|
|
|
1732
1220
|
await collectBody(output.body, context);
|
|
1733
1221
|
return contents;
|
|
1734
1222
|
};
|
|
1735
|
-
const de_DeleteMemberCommandError = async (output, context) => {
|
|
1736
|
-
const parsedOutput = {
|
|
1737
|
-
...output,
|
|
1738
|
-
body: await parseErrorBody(output.body, context),
|
|
1739
|
-
};
|
|
1740
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1741
|
-
switch (errorCode) {
|
|
1742
|
-
case "AccessDeniedException":
|
|
1743
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
1744
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1745
|
-
case "ConflictException":
|
|
1746
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
1747
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1748
|
-
case "InternalServerException":
|
|
1749
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
1750
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1751
|
-
case "ResourceNotFoundException":
|
|
1752
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
1753
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1754
|
-
case "ServiceQuotaExceededException":
|
|
1755
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
1756
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1757
|
-
case "ThrottlingException":
|
|
1758
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
1759
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1760
|
-
case "ValidationException":
|
|
1761
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
1762
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1763
|
-
default:
|
|
1764
|
-
const parsedBody = parsedOutput.body;
|
|
1765
|
-
return throwDefaultError({
|
|
1766
|
-
output,
|
|
1767
|
-
parsedBody,
|
|
1768
|
-
errorCode,
|
|
1769
|
-
});
|
|
1770
|
-
}
|
|
1771
|
-
};
|
|
1772
1223
|
export const de_DescribeBucketsCommand = async (output, context) => {
|
|
1773
1224
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1774
|
-
return
|
|
1225
|
+
return de_CommandError(output, context);
|
|
1775
1226
|
}
|
|
1776
1227
|
const contents = map({
|
|
1777
1228
|
$metadata: deserializeMetadata(output),
|
|
@@ -1784,46 +1235,9 @@ export const de_DescribeBucketsCommand = async (output, context) => {
|
|
|
1784
1235
|
Object.assign(contents, doc);
|
|
1785
1236
|
return contents;
|
|
1786
1237
|
};
|
|
1787
|
-
const de_DescribeBucketsCommandError = async (output, context) => {
|
|
1788
|
-
const parsedOutput = {
|
|
1789
|
-
...output,
|
|
1790
|
-
body: await parseErrorBody(output.body, context),
|
|
1791
|
-
};
|
|
1792
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1793
|
-
switch (errorCode) {
|
|
1794
|
-
case "AccessDeniedException":
|
|
1795
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
1796
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1797
|
-
case "ConflictException":
|
|
1798
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
1799
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1800
|
-
case "InternalServerException":
|
|
1801
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
1802
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1803
|
-
case "ResourceNotFoundException":
|
|
1804
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
1805
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1806
|
-
case "ServiceQuotaExceededException":
|
|
1807
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
1808
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1809
|
-
case "ThrottlingException":
|
|
1810
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
1811
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1812
|
-
case "ValidationException":
|
|
1813
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
1814
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1815
|
-
default:
|
|
1816
|
-
const parsedBody = parsedOutput.body;
|
|
1817
|
-
return throwDefaultError({
|
|
1818
|
-
output,
|
|
1819
|
-
parsedBody,
|
|
1820
|
-
errorCode,
|
|
1821
|
-
});
|
|
1822
|
-
}
|
|
1823
|
-
};
|
|
1824
1238
|
export const de_DescribeClassificationJobCommand = async (output, context) => {
|
|
1825
1239
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1826
|
-
return
|
|
1240
|
+
return de_CommandError(output, context);
|
|
1827
1241
|
}
|
|
1828
1242
|
const contents = map({
|
|
1829
1243
|
$metadata: deserializeMetadata(output),
|
|
@@ -1855,46 +1269,9 @@ export const de_DescribeClassificationJobCommand = async (output, context) => {
|
|
|
1855
1269
|
Object.assign(contents, doc);
|
|
1856
1270
|
return contents;
|
|
1857
1271
|
};
|
|
1858
|
-
const de_DescribeClassificationJobCommandError = async (output, context) => {
|
|
1859
|
-
const parsedOutput = {
|
|
1860
|
-
...output,
|
|
1861
|
-
body: await parseErrorBody(output.body, context),
|
|
1862
|
-
};
|
|
1863
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1864
|
-
switch (errorCode) {
|
|
1865
|
-
case "AccessDeniedException":
|
|
1866
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
1867
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1868
|
-
case "ConflictException":
|
|
1869
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
1870
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1871
|
-
case "InternalServerException":
|
|
1872
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
1873
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1874
|
-
case "ResourceNotFoundException":
|
|
1875
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
1876
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1877
|
-
case "ServiceQuotaExceededException":
|
|
1878
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
1879
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1880
|
-
case "ThrottlingException":
|
|
1881
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
1882
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1883
|
-
case "ValidationException":
|
|
1884
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
1885
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1886
|
-
default:
|
|
1887
|
-
const parsedBody = parsedOutput.body;
|
|
1888
|
-
return throwDefaultError({
|
|
1889
|
-
output,
|
|
1890
|
-
parsedBody,
|
|
1891
|
-
errorCode,
|
|
1892
|
-
});
|
|
1893
|
-
}
|
|
1894
|
-
};
|
|
1895
1272
|
export const de_DescribeOrganizationConfigurationCommand = async (output, context) => {
|
|
1896
1273
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1897
|
-
return
|
|
1274
|
+
return de_CommandError(output, context);
|
|
1898
1275
|
}
|
|
1899
1276
|
const contents = map({
|
|
1900
1277
|
$metadata: deserializeMetadata(output),
|
|
@@ -1907,46 +1284,9 @@ export const de_DescribeOrganizationConfigurationCommand = async (output, contex
|
|
|
1907
1284
|
Object.assign(contents, doc);
|
|
1908
1285
|
return contents;
|
|
1909
1286
|
};
|
|
1910
|
-
const de_DescribeOrganizationConfigurationCommandError = async (output, context) => {
|
|
1911
|
-
const parsedOutput = {
|
|
1912
|
-
...output,
|
|
1913
|
-
body: await parseErrorBody(output.body, context),
|
|
1914
|
-
};
|
|
1915
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1916
|
-
switch (errorCode) {
|
|
1917
|
-
case "AccessDeniedException":
|
|
1918
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
1919
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1920
|
-
case "ConflictException":
|
|
1921
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
1922
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1923
|
-
case "InternalServerException":
|
|
1924
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
1925
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1926
|
-
case "ResourceNotFoundException":
|
|
1927
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
1928
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1929
|
-
case "ServiceQuotaExceededException":
|
|
1930
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
1931
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1932
|
-
case "ThrottlingException":
|
|
1933
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
1934
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1935
|
-
case "ValidationException":
|
|
1936
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
1937
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1938
|
-
default:
|
|
1939
|
-
const parsedBody = parsedOutput.body;
|
|
1940
|
-
return throwDefaultError({
|
|
1941
|
-
output,
|
|
1942
|
-
parsedBody,
|
|
1943
|
-
errorCode,
|
|
1944
|
-
});
|
|
1945
|
-
}
|
|
1946
|
-
};
|
|
1947
1287
|
export const de_DisableMacieCommand = async (output, context) => {
|
|
1948
1288
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1949
|
-
return
|
|
1289
|
+
return de_CommandError(output, context);
|
|
1950
1290
|
}
|
|
1951
1291
|
const contents = map({
|
|
1952
1292
|
$metadata: deserializeMetadata(output),
|
|
@@ -1954,46 +1294,9 @@ export const de_DisableMacieCommand = async (output, context) => {
|
|
|
1954
1294
|
await collectBody(output.body, context);
|
|
1955
1295
|
return contents;
|
|
1956
1296
|
};
|
|
1957
|
-
const de_DisableMacieCommandError = async (output, context) => {
|
|
1958
|
-
const parsedOutput = {
|
|
1959
|
-
...output,
|
|
1960
|
-
body: await parseErrorBody(output.body, context),
|
|
1961
|
-
};
|
|
1962
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1963
|
-
switch (errorCode) {
|
|
1964
|
-
case "AccessDeniedException":
|
|
1965
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
1966
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1967
|
-
case "ConflictException":
|
|
1968
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
1969
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1970
|
-
case "InternalServerException":
|
|
1971
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
1972
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1973
|
-
case "ResourceNotFoundException":
|
|
1974
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
1975
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1976
|
-
case "ServiceQuotaExceededException":
|
|
1977
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
1978
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1979
|
-
case "ThrottlingException":
|
|
1980
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
1981
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1982
|
-
case "ValidationException":
|
|
1983
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
1984
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1985
|
-
default:
|
|
1986
|
-
const parsedBody = parsedOutput.body;
|
|
1987
|
-
return throwDefaultError({
|
|
1988
|
-
output,
|
|
1989
|
-
parsedBody,
|
|
1990
|
-
errorCode,
|
|
1991
|
-
});
|
|
1992
|
-
}
|
|
1993
|
-
};
|
|
1994
1297
|
export const de_DisableOrganizationAdminAccountCommand = async (output, context) => {
|
|
1995
1298
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1996
|
-
return
|
|
1299
|
+
return de_CommandError(output, context);
|
|
1997
1300
|
}
|
|
1998
1301
|
const contents = map({
|
|
1999
1302
|
$metadata: deserializeMetadata(output),
|
|
@@ -2001,46 +1304,9 @@ export const de_DisableOrganizationAdminAccountCommand = async (output, context)
|
|
|
2001
1304
|
await collectBody(output.body, context);
|
|
2002
1305
|
return contents;
|
|
2003
1306
|
};
|
|
2004
|
-
const de_DisableOrganizationAdminAccountCommandError = async (output, context) => {
|
|
2005
|
-
const parsedOutput = {
|
|
2006
|
-
...output,
|
|
2007
|
-
body: await parseErrorBody(output.body, context),
|
|
2008
|
-
};
|
|
2009
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2010
|
-
switch (errorCode) {
|
|
2011
|
-
case "AccessDeniedException":
|
|
2012
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
2013
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2014
|
-
case "ConflictException":
|
|
2015
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
2016
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2017
|
-
case "InternalServerException":
|
|
2018
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
2019
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2020
|
-
case "ResourceNotFoundException":
|
|
2021
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
2022
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2023
|
-
case "ServiceQuotaExceededException":
|
|
2024
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
2025
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2026
|
-
case "ThrottlingException":
|
|
2027
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
2028
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2029
|
-
case "ValidationException":
|
|
2030
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
2031
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2032
|
-
default:
|
|
2033
|
-
const parsedBody = parsedOutput.body;
|
|
2034
|
-
return throwDefaultError({
|
|
2035
|
-
output,
|
|
2036
|
-
parsedBody,
|
|
2037
|
-
errorCode,
|
|
2038
|
-
});
|
|
2039
|
-
}
|
|
2040
|
-
};
|
|
2041
1307
|
export const de_DisassociateFromAdministratorAccountCommand = async (output, context) => {
|
|
2042
1308
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2043
|
-
return
|
|
1309
|
+
return de_CommandError(output, context);
|
|
2044
1310
|
}
|
|
2045
1311
|
const contents = map({
|
|
2046
1312
|
$metadata: deserializeMetadata(output),
|
|
@@ -2048,46 +1314,9 @@ export const de_DisassociateFromAdministratorAccountCommand = async (output, con
|
|
|
2048
1314
|
await collectBody(output.body, context);
|
|
2049
1315
|
return contents;
|
|
2050
1316
|
};
|
|
2051
|
-
const de_DisassociateFromAdministratorAccountCommandError = async (output, context) => {
|
|
2052
|
-
const parsedOutput = {
|
|
2053
|
-
...output,
|
|
2054
|
-
body: await parseErrorBody(output.body, context),
|
|
2055
|
-
};
|
|
2056
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2057
|
-
switch (errorCode) {
|
|
2058
|
-
case "AccessDeniedException":
|
|
2059
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
2060
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2061
|
-
case "ConflictException":
|
|
2062
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
2063
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2064
|
-
case "InternalServerException":
|
|
2065
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
2066
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2067
|
-
case "ResourceNotFoundException":
|
|
2068
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
2069
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2070
|
-
case "ServiceQuotaExceededException":
|
|
2071
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
2072
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2073
|
-
case "ThrottlingException":
|
|
2074
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
2075
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2076
|
-
case "ValidationException":
|
|
2077
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
2078
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2079
|
-
default:
|
|
2080
|
-
const parsedBody = parsedOutput.body;
|
|
2081
|
-
return throwDefaultError({
|
|
2082
|
-
output,
|
|
2083
|
-
parsedBody,
|
|
2084
|
-
errorCode,
|
|
2085
|
-
});
|
|
2086
|
-
}
|
|
2087
|
-
};
|
|
2088
1317
|
export const de_DisassociateFromMasterAccountCommand = async (output, context) => {
|
|
2089
1318
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2090
|
-
return
|
|
1319
|
+
return de_CommandError(output, context);
|
|
2091
1320
|
}
|
|
2092
1321
|
const contents = map({
|
|
2093
1322
|
$metadata: deserializeMetadata(output),
|
|
@@ -2095,46 +1324,9 @@ export const de_DisassociateFromMasterAccountCommand = async (output, context) =
|
|
|
2095
1324
|
await collectBody(output.body, context);
|
|
2096
1325
|
return contents;
|
|
2097
1326
|
};
|
|
2098
|
-
const de_DisassociateFromMasterAccountCommandError = async (output, context) => {
|
|
2099
|
-
const parsedOutput = {
|
|
2100
|
-
...output,
|
|
2101
|
-
body: await parseErrorBody(output.body, context),
|
|
2102
|
-
};
|
|
2103
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2104
|
-
switch (errorCode) {
|
|
2105
|
-
case "AccessDeniedException":
|
|
2106
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
2107
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2108
|
-
case "ConflictException":
|
|
2109
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
2110
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2111
|
-
case "InternalServerException":
|
|
2112
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
2113
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2114
|
-
case "ResourceNotFoundException":
|
|
2115
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
2116
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2117
|
-
case "ServiceQuotaExceededException":
|
|
2118
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
2119
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2120
|
-
case "ThrottlingException":
|
|
2121
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
2122
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2123
|
-
case "ValidationException":
|
|
2124
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
2125
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2126
|
-
default:
|
|
2127
|
-
const parsedBody = parsedOutput.body;
|
|
2128
|
-
return throwDefaultError({
|
|
2129
|
-
output,
|
|
2130
|
-
parsedBody,
|
|
2131
|
-
errorCode,
|
|
2132
|
-
});
|
|
2133
|
-
}
|
|
2134
|
-
};
|
|
2135
1327
|
export const de_DisassociateMemberCommand = async (output, context) => {
|
|
2136
1328
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2137
|
-
return
|
|
1329
|
+
return de_CommandError(output, context);
|
|
2138
1330
|
}
|
|
2139
1331
|
const contents = map({
|
|
2140
1332
|
$metadata: deserializeMetadata(output),
|
|
@@ -2142,46 +1334,9 @@ export const de_DisassociateMemberCommand = async (output, context) => {
|
|
|
2142
1334
|
await collectBody(output.body, context);
|
|
2143
1335
|
return contents;
|
|
2144
1336
|
};
|
|
2145
|
-
const de_DisassociateMemberCommandError = async (output, context) => {
|
|
2146
|
-
const parsedOutput = {
|
|
2147
|
-
...output,
|
|
2148
|
-
body: await parseErrorBody(output.body, context),
|
|
2149
|
-
};
|
|
2150
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2151
|
-
switch (errorCode) {
|
|
2152
|
-
case "AccessDeniedException":
|
|
2153
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
2154
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2155
|
-
case "ConflictException":
|
|
2156
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
2157
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2158
|
-
case "InternalServerException":
|
|
2159
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
2160
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2161
|
-
case "ResourceNotFoundException":
|
|
2162
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
2163
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2164
|
-
case "ServiceQuotaExceededException":
|
|
2165
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
2166
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2167
|
-
case "ThrottlingException":
|
|
2168
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
2169
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2170
|
-
case "ValidationException":
|
|
2171
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
2172
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2173
|
-
default:
|
|
2174
|
-
const parsedBody = parsedOutput.body;
|
|
2175
|
-
return throwDefaultError({
|
|
2176
|
-
output,
|
|
2177
|
-
parsedBody,
|
|
2178
|
-
errorCode,
|
|
2179
|
-
});
|
|
2180
|
-
}
|
|
2181
|
-
};
|
|
2182
1337
|
export const de_EnableMacieCommand = async (output, context) => {
|
|
2183
1338
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2184
|
-
return
|
|
1339
|
+
return de_CommandError(output, context);
|
|
2185
1340
|
}
|
|
2186
1341
|
const contents = map({
|
|
2187
1342
|
$metadata: deserializeMetadata(output),
|
|
@@ -2189,46 +1344,9 @@ export const de_EnableMacieCommand = async (output, context) => {
|
|
|
2189
1344
|
await collectBody(output.body, context);
|
|
2190
1345
|
return contents;
|
|
2191
1346
|
};
|
|
2192
|
-
const de_EnableMacieCommandError = async (output, context) => {
|
|
2193
|
-
const parsedOutput = {
|
|
2194
|
-
...output,
|
|
2195
|
-
body: await parseErrorBody(output.body, context),
|
|
2196
|
-
};
|
|
2197
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2198
|
-
switch (errorCode) {
|
|
2199
|
-
case "AccessDeniedException":
|
|
2200
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
2201
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2202
|
-
case "ConflictException":
|
|
2203
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
2204
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2205
|
-
case "InternalServerException":
|
|
2206
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
2207
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2208
|
-
case "ResourceNotFoundException":
|
|
2209
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
2210
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2211
|
-
case "ServiceQuotaExceededException":
|
|
2212
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
2213
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2214
|
-
case "ThrottlingException":
|
|
2215
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
2216
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2217
|
-
case "ValidationException":
|
|
2218
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
2219
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2220
|
-
default:
|
|
2221
|
-
const parsedBody = parsedOutput.body;
|
|
2222
|
-
return throwDefaultError({
|
|
2223
|
-
output,
|
|
2224
|
-
parsedBody,
|
|
2225
|
-
errorCode,
|
|
2226
|
-
});
|
|
2227
|
-
}
|
|
2228
|
-
};
|
|
2229
1347
|
export const de_EnableOrganizationAdminAccountCommand = async (output, context) => {
|
|
2230
1348
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2231
|
-
return
|
|
1349
|
+
return de_CommandError(output, context);
|
|
2232
1350
|
}
|
|
2233
1351
|
const contents = map({
|
|
2234
1352
|
$metadata: deserializeMetadata(output),
|
|
@@ -2236,46 +1354,9 @@ export const de_EnableOrganizationAdminAccountCommand = async (output, context)
|
|
|
2236
1354
|
await collectBody(output.body, context);
|
|
2237
1355
|
return contents;
|
|
2238
1356
|
};
|
|
2239
|
-
const de_EnableOrganizationAdminAccountCommandError = async (output, context) => {
|
|
2240
|
-
const parsedOutput = {
|
|
2241
|
-
...output,
|
|
2242
|
-
body: await parseErrorBody(output.body, context),
|
|
2243
|
-
};
|
|
2244
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2245
|
-
switch (errorCode) {
|
|
2246
|
-
case "AccessDeniedException":
|
|
2247
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
2248
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2249
|
-
case "ConflictException":
|
|
2250
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
2251
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2252
|
-
case "InternalServerException":
|
|
2253
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
2254
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2255
|
-
case "ResourceNotFoundException":
|
|
2256
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
2257
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2258
|
-
case "ServiceQuotaExceededException":
|
|
2259
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
2260
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2261
|
-
case "ThrottlingException":
|
|
2262
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
2263
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2264
|
-
case "ValidationException":
|
|
2265
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
2266
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2267
|
-
default:
|
|
2268
|
-
const parsedBody = parsedOutput.body;
|
|
2269
|
-
return throwDefaultError({
|
|
2270
|
-
output,
|
|
2271
|
-
parsedBody,
|
|
2272
|
-
errorCode,
|
|
2273
|
-
});
|
|
2274
|
-
}
|
|
2275
|
-
};
|
|
2276
1357
|
export const de_GetAdministratorAccountCommand = async (output, context) => {
|
|
2277
1358
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2278
|
-
return
|
|
1359
|
+
return de_CommandError(output, context);
|
|
2279
1360
|
}
|
|
2280
1361
|
const contents = map({
|
|
2281
1362
|
$metadata: deserializeMetadata(output),
|
|
@@ -2285,48 +1366,11 @@ export const de_GetAdministratorAccountCommand = async (output, context) => {
|
|
|
2285
1366
|
administrator: [, (_) => de_Invitation(_, context), `administrator`],
|
|
2286
1367
|
});
|
|
2287
1368
|
Object.assign(contents, doc);
|
|
2288
|
-
return contents;
|
|
2289
|
-
};
|
|
2290
|
-
const de_GetAdministratorAccountCommandError = async (output, context) => {
|
|
2291
|
-
const parsedOutput = {
|
|
2292
|
-
...output,
|
|
2293
|
-
body: await parseErrorBody(output.body, context),
|
|
2294
|
-
};
|
|
2295
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2296
|
-
switch (errorCode) {
|
|
2297
|
-
case "AccessDeniedException":
|
|
2298
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
2299
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2300
|
-
case "ConflictException":
|
|
2301
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
2302
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2303
|
-
case "InternalServerException":
|
|
2304
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
2305
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2306
|
-
case "ResourceNotFoundException":
|
|
2307
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
2308
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2309
|
-
case "ServiceQuotaExceededException":
|
|
2310
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
2311
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2312
|
-
case "ThrottlingException":
|
|
2313
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
2314
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2315
|
-
case "ValidationException":
|
|
2316
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
2317
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2318
|
-
default:
|
|
2319
|
-
const parsedBody = parsedOutput.body;
|
|
2320
|
-
return throwDefaultError({
|
|
2321
|
-
output,
|
|
2322
|
-
parsedBody,
|
|
2323
|
-
errorCode,
|
|
2324
|
-
});
|
|
2325
|
-
}
|
|
1369
|
+
return contents;
|
|
2326
1370
|
};
|
|
2327
1371
|
export const de_GetAllowListCommand = async (output, context) => {
|
|
2328
1372
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2329
|
-
return
|
|
1373
|
+
return de_CommandError(output, context);
|
|
2330
1374
|
}
|
|
2331
1375
|
const contents = map({
|
|
2332
1376
|
$metadata: deserializeMetadata(output),
|
|
@@ -2346,40 +1390,9 @@ export const de_GetAllowListCommand = async (output, context) => {
|
|
|
2346
1390
|
Object.assign(contents, doc);
|
|
2347
1391
|
return contents;
|
|
2348
1392
|
};
|
|
2349
|
-
const de_GetAllowListCommandError = async (output, context) => {
|
|
2350
|
-
const parsedOutput = {
|
|
2351
|
-
...output,
|
|
2352
|
-
body: await parseErrorBody(output.body, context),
|
|
2353
|
-
};
|
|
2354
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2355
|
-
switch (errorCode) {
|
|
2356
|
-
case "AccessDeniedException":
|
|
2357
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
2358
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2359
|
-
case "InternalServerException":
|
|
2360
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
2361
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2362
|
-
case "ResourceNotFoundException":
|
|
2363
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
2364
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2365
|
-
case "ThrottlingException":
|
|
2366
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
2367
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2368
|
-
case "ValidationException":
|
|
2369
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
2370
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2371
|
-
default:
|
|
2372
|
-
const parsedBody = parsedOutput.body;
|
|
2373
|
-
return throwDefaultError({
|
|
2374
|
-
output,
|
|
2375
|
-
parsedBody,
|
|
2376
|
-
errorCode,
|
|
2377
|
-
});
|
|
2378
|
-
}
|
|
2379
|
-
};
|
|
2380
1393
|
export const de_GetAutomatedDiscoveryConfigurationCommand = async (output, context) => {
|
|
2381
1394
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2382
|
-
return
|
|
1395
|
+
return de_CommandError(output, context);
|
|
2383
1396
|
}
|
|
2384
1397
|
const contents = map({
|
|
2385
1398
|
$metadata: deserializeMetadata(output),
|
|
@@ -2396,37 +1409,9 @@ export const de_GetAutomatedDiscoveryConfigurationCommand = async (output, conte
|
|
|
2396
1409
|
Object.assign(contents, doc);
|
|
2397
1410
|
return contents;
|
|
2398
1411
|
};
|
|
2399
|
-
const de_GetAutomatedDiscoveryConfigurationCommandError = async (output, context) => {
|
|
2400
|
-
const parsedOutput = {
|
|
2401
|
-
...output,
|
|
2402
|
-
body: await parseErrorBody(output.body, context),
|
|
2403
|
-
};
|
|
2404
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2405
|
-
switch (errorCode) {
|
|
2406
|
-
case "AccessDeniedException":
|
|
2407
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
2408
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2409
|
-
case "InternalServerException":
|
|
2410
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
2411
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2412
|
-
case "ThrottlingException":
|
|
2413
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
2414
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2415
|
-
case "ValidationException":
|
|
2416
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
2417
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2418
|
-
default:
|
|
2419
|
-
const parsedBody = parsedOutput.body;
|
|
2420
|
-
return throwDefaultError({
|
|
2421
|
-
output,
|
|
2422
|
-
parsedBody,
|
|
2423
|
-
errorCode,
|
|
2424
|
-
});
|
|
2425
|
-
}
|
|
2426
|
-
};
|
|
2427
1412
|
export const de_GetBucketStatisticsCommand = async (output, context) => {
|
|
2428
1413
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2429
|
-
return
|
|
1414
|
+
return de_CommandError(output, context);
|
|
2430
1415
|
}
|
|
2431
1416
|
const contents = map({
|
|
2432
1417
|
$metadata: deserializeMetadata(output),
|
|
@@ -2467,46 +1452,9 @@ export const de_GetBucketStatisticsCommand = async (output, context) => {
|
|
|
2467
1452
|
Object.assign(contents, doc);
|
|
2468
1453
|
return contents;
|
|
2469
1454
|
};
|
|
2470
|
-
const de_GetBucketStatisticsCommandError = async (output, context) => {
|
|
2471
|
-
const parsedOutput = {
|
|
2472
|
-
...output,
|
|
2473
|
-
body: await parseErrorBody(output.body, context),
|
|
2474
|
-
};
|
|
2475
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2476
|
-
switch (errorCode) {
|
|
2477
|
-
case "AccessDeniedException":
|
|
2478
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
2479
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2480
|
-
case "ConflictException":
|
|
2481
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
2482
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2483
|
-
case "InternalServerException":
|
|
2484
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
2485
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2486
|
-
case "ResourceNotFoundException":
|
|
2487
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
2488
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2489
|
-
case "ServiceQuotaExceededException":
|
|
2490
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
2491
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2492
|
-
case "ThrottlingException":
|
|
2493
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
2494
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2495
|
-
case "ValidationException":
|
|
2496
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
2497
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2498
|
-
default:
|
|
2499
|
-
const parsedBody = parsedOutput.body;
|
|
2500
|
-
return throwDefaultError({
|
|
2501
|
-
output,
|
|
2502
|
-
parsedBody,
|
|
2503
|
-
errorCode,
|
|
2504
|
-
});
|
|
2505
|
-
}
|
|
2506
|
-
};
|
|
2507
1455
|
export const de_GetClassificationExportConfigurationCommand = async (output, context) => {
|
|
2508
1456
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2509
|
-
return
|
|
1457
|
+
return de_CommandError(output, context);
|
|
2510
1458
|
}
|
|
2511
1459
|
const contents = map({
|
|
2512
1460
|
$metadata: deserializeMetadata(output),
|
|
@@ -2518,46 +1466,9 @@ export const de_GetClassificationExportConfigurationCommand = async (output, con
|
|
|
2518
1466
|
Object.assign(contents, doc);
|
|
2519
1467
|
return contents;
|
|
2520
1468
|
};
|
|
2521
|
-
const de_GetClassificationExportConfigurationCommandError = async (output, context) => {
|
|
2522
|
-
const parsedOutput = {
|
|
2523
|
-
...output,
|
|
2524
|
-
body: await parseErrorBody(output.body, context),
|
|
2525
|
-
};
|
|
2526
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2527
|
-
switch (errorCode) {
|
|
2528
|
-
case "AccessDeniedException":
|
|
2529
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
2530
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2531
|
-
case "ConflictException":
|
|
2532
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
2533
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2534
|
-
case "InternalServerException":
|
|
2535
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
2536
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2537
|
-
case "ResourceNotFoundException":
|
|
2538
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
2539
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2540
|
-
case "ServiceQuotaExceededException":
|
|
2541
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
2542
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2543
|
-
case "ThrottlingException":
|
|
2544
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
2545
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2546
|
-
case "ValidationException":
|
|
2547
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
2548
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2549
|
-
default:
|
|
2550
|
-
const parsedBody = parsedOutput.body;
|
|
2551
|
-
return throwDefaultError({
|
|
2552
|
-
output,
|
|
2553
|
-
parsedBody,
|
|
2554
|
-
errorCode,
|
|
2555
|
-
});
|
|
2556
|
-
}
|
|
2557
|
-
};
|
|
2558
1469
|
export const de_GetClassificationScopeCommand = async (output, context) => {
|
|
2559
1470
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2560
|
-
return
|
|
1471
|
+
return de_CommandError(output, context);
|
|
2561
1472
|
}
|
|
2562
1473
|
const contents = map({
|
|
2563
1474
|
$metadata: deserializeMetadata(output),
|
|
@@ -2571,40 +1482,9 @@ export const de_GetClassificationScopeCommand = async (output, context) => {
|
|
|
2571
1482
|
Object.assign(contents, doc);
|
|
2572
1483
|
return contents;
|
|
2573
1484
|
};
|
|
2574
|
-
const de_GetClassificationScopeCommandError = async (output, context) => {
|
|
2575
|
-
const parsedOutput = {
|
|
2576
|
-
...output,
|
|
2577
|
-
body: await parseErrorBody(output.body, context),
|
|
2578
|
-
};
|
|
2579
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2580
|
-
switch (errorCode) {
|
|
2581
|
-
case "AccessDeniedException":
|
|
2582
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
2583
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2584
|
-
case "InternalServerException":
|
|
2585
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
2586
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2587
|
-
case "ResourceNotFoundException":
|
|
2588
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
2589
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2590
|
-
case "ThrottlingException":
|
|
2591
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
2592
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2593
|
-
case "ValidationException":
|
|
2594
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
2595
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2596
|
-
default:
|
|
2597
|
-
const parsedBody = parsedOutput.body;
|
|
2598
|
-
return throwDefaultError({
|
|
2599
|
-
output,
|
|
2600
|
-
parsedBody,
|
|
2601
|
-
errorCode,
|
|
2602
|
-
});
|
|
2603
|
-
}
|
|
2604
|
-
};
|
|
2605
1485
|
export const de_GetCustomDataIdentifierCommand = async (output, context) => {
|
|
2606
1486
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2607
|
-
return
|
|
1487
|
+
return de_CommandError(output, context);
|
|
2608
1488
|
}
|
|
2609
1489
|
const contents = map({
|
|
2610
1490
|
$metadata: deserializeMetadata(output),
|
|
@@ -2614,110 +1494,36 @@ export const de_GetCustomDataIdentifierCommand = async (output, context) => {
|
|
|
2614
1494
|
arn: [, __expectString, `arn`],
|
|
2615
1495
|
createdAt: [, (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), `createdAt`],
|
|
2616
1496
|
deleted: [, __expectBoolean, `deleted`],
|
|
2617
|
-
description: [, __expectString, `description`],
|
|
2618
|
-
id: [, __expectString, `id`],
|
|
2619
|
-
ignoreWords: [, _json, `ignoreWords`],
|
|
2620
|
-
keywords: [, _json, `keywords`],
|
|
2621
|
-
maximumMatchDistance: [, __expectInt32, `maximumMatchDistance`],
|
|
2622
|
-
name: [, __expectString, `name`],
|
|
2623
|
-
regex: [, __expectString, `regex`],
|
|
2624
|
-
severityLevels: [, (_) => de_SeverityLevelList(_, context), `severityLevels`],
|
|
2625
|
-
tags: [, _json, `tags`],
|
|
2626
|
-
});
|
|
2627
|
-
Object.assign(contents, doc);
|
|
2628
|
-
return contents;
|
|
2629
|
-
};
|
|
2630
|
-
const
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
body: await parseErrorBody(output.body, context),
|
|
2634
|
-
};
|
|
2635
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2636
|
-
switch (errorCode) {
|
|
2637
|
-
case "AccessDeniedException":
|
|
2638
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
2639
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2640
|
-
case "ConflictException":
|
|
2641
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
2642
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2643
|
-
case "InternalServerException":
|
|
2644
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
2645
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2646
|
-
case "ResourceNotFoundException":
|
|
2647
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
2648
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2649
|
-
case "ServiceQuotaExceededException":
|
|
2650
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
2651
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2652
|
-
case "ThrottlingException":
|
|
2653
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
2654
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2655
|
-
case "ValidationException":
|
|
2656
|
-
case "com.amazonaws.macie2#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_GetFindingsCommand = async (output, context) => {
|
|
2668
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2669
|
-
return de_GetFindingsCommandError(output, context);
|
|
2670
|
-
}
|
|
2671
|
-
const contents = map({
|
|
2672
|
-
$metadata: deserializeMetadata(output),
|
|
2673
|
-
});
|
|
2674
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2675
|
-
const doc = take(data, {
|
|
2676
|
-
findings: [, (_) => de___listOfFinding(_, context), `findings`],
|
|
2677
|
-
});
|
|
2678
|
-
Object.assign(contents, doc);
|
|
2679
|
-
return contents;
|
|
2680
|
-
};
|
|
2681
|
-
const de_GetFindingsCommandError = async (output, context) => {
|
|
2682
|
-
const parsedOutput = {
|
|
2683
|
-
...output,
|
|
2684
|
-
body: await parseErrorBody(output.body, context),
|
|
2685
|
-
};
|
|
2686
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2687
|
-
switch (errorCode) {
|
|
2688
|
-
case "AccessDeniedException":
|
|
2689
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
2690
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2691
|
-
case "ConflictException":
|
|
2692
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
2693
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2694
|
-
case "InternalServerException":
|
|
2695
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
2696
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2697
|
-
case "ResourceNotFoundException":
|
|
2698
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
2699
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2700
|
-
case "ServiceQuotaExceededException":
|
|
2701
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
2702
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2703
|
-
case "ThrottlingException":
|
|
2704
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
2705
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2706
|
-
case "ValidationException":
|
|
2707
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
2708
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2709
|
-
default:
|
|
2710
|
-
const parsedBody = parsedOutput.body;
|
|
2711
|
-
return throwDefaultError({
|
|
2712
|
-
output,
|
|
2713
|
-
parsedBody,
|
|
2714
|
-
errorCode,
|
|
2715
|
-
});
|
|
1497
|
+
description: [, __expectString, `description`],
|
|
1498
|
+
id: [, __expectString, `id`],
|
|
1499
|
+
ignoreWords: [, _json, `ignoreWords`],
|
|
1500
|
+
keywords: [, _json, `keywords`],
|
|
1501
|
+
maximumMatchDistance: [, __expectInt32, `maximumMatchDistance`],
|
|
1502
|
+
name: [, __expectString, `name`],
|
|
1503
|
+
regex: [, __expectString, `regex`],
|
|
1504
|
+
severityLevels: [, (_) => de_SeverityLevelList(_, context), `severityLevels`],
|
|
1505
|
+
tags: [, _json, `tags`],
|
|
1506
|
+
});
|
|
1507
|
+
Object.assign(contents, doc);
|
|
1508
|
+
return contents;
|
|
1509
|
+
};
|
|
1510
|
+
export const de_GetFindingsCommand = async (output, context) => {
|
|
1511
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1512
|
+
return de_CommandError(output, context);
|
|
2716
1513
|
}
|
|
1514
|
+
const contents = map({
|
|
1515
|
+
$metadata: deserializeMetadata(output),
|
|
1516
|
+
});
|
|
1517
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1518
|
+
const doc = take(data, {
|
|
1519
|
+
findings: [, (_) => de___listOfFinding(_, context), `findings`],
|
|
1520
|
+
});
|
|
1521
|
+
Object.assign(contents, doc);
|
|
1522
|
+
return contents;
|
|
2717
1523
|
};
|
|
2718
1524
|
export const de_GetFindingsFilterCommand = async (output, context) => {
|
|
2719
1525
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2720
|
-
return
|
|
1526
|
+
return de_CommandError(output, context);
|
|
2721
1527
|
}
|
|
2722
1528
|
const contents = map({
|
|
2723
1529
|
$metadata: deserializeMetadata(output),
|
|
@@ -2736,46 +1542,9 @@ export const de_GetFindingsFilterCommand = async (output, context) => {
|
|
|
2736
1542
|
Object.assign(contents, doc);
|
|
2737
1543
|
return contents;
|
|
2738
1544
|
};
|
|
2739
|
-
const de_GetFindingsFilterCommandError = async (output, context) => {
|
|
2740
|
-
const parsedOutput = {
|
|
2741
|
-
...output,
|
|
2742
|
-
body: await parseErrorBody(output.body, context),
|
|
2743
|
-
};
|
|
2744
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2745
|
-
switch (errorCode) {
|
|
2746
|
-
case "AccessDeniedException":
|
|
2747
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
2748
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2749
|
-
case "ConflictException":
|
|
2750
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
2751
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2752
|
-
case "InternalServerException":
|
|
2753
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
2754
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2755
|
-
case "ResourceNotFoundException":
|
|
2756
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
2757
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2758
|
-
case "ServiceQuotaExceededException":
|
|
2759
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
2760
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2761
|
-
case "ThrottlingException":
|
|
2762
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
2763
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2764
|
-
case "ValidationException":
|
|
2765
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
2766
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2767
|
-
default:
|
|
2768
|
-
const parsedBody = parsedOutput.body;
|
|
2769
|
-
return throwDefaultError({
|
|
2770
|
-
output,
|
|
2771
|
-
parsedBody,
|
|
2772
|
-
errorCode,
|
|
2773
|
-
});
|
|
2774
|
-
}
|
|
2775
|
-
};
|
|
2776
1545
|
export const de_GetFindingsPublicationConfigurationCommand = async (output, context) => {
|
|
2777
1546
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2778
|
-
return
|
|
1547
|
+
return de_CommandError(output, context);
|
|
2779
1548
|
}
|
|
2780
1549
|
const contents = map({
|
|
2781
1550
|
$metadata: deserializeMetadata(output),
|
|
@@ -2787,46 +1556,9 @@ export const de_GetFindingsPublicationConfigurationCommand = async (output, cont
|
|
|
2787
1556
|
Object.assign(contents, doc);
|
|
2788
1557
|
return contents;
|
|
2789
1558
|
};
|
|
2790
|
-
const de_GetFindingsPublicationConfigurationCommandError = async (output, context) => {
|
|
2791
|
-
const parsedOutput = {
|
|
2792
|
-
...output,
|
|
2793
|
-
body: await parseErrorBody(output.body, context),
|
|
2794
|
-
};
|
|
2795
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2796
|
-
switch (errorCode) {
|
|
2797
|
-
case "AccessDeniedException":
|
|
2798
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
2799
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2800
|
-
case "ConflictException":
|
|
2801
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
2802
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2803
|
-
case "InternalServerException":
|
|
2804
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
2805
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2806
|
-
case "ResourceNotFoundException":
|
|
2807
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
2808
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2809
|
-
case "ServiceQuotaExceededException":
|
|
2810
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
2811
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2812
|
-
case "ThrottlingException":
|
|
2813
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
2814
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2815
|
-
case "ValidationException":
|
|
2816
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
2817
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2818
|
-
default:
|
|
2819
|
-
const parsedBody = parsedOutput.body;
|
|
2820
|
-
return throwDefaultError({
|
|
2821
|
-
output,
|
|
2822
|
-
parsedBody,
|
|
2823
|
-
errorCode,
|
|
2824
|
-
});
|
|
2825
|
-
}
|
|
2826
|
-
};
|
|
2827
1559
|
export const de_GetFindingStatisticsCommand = async (output, context) => {
|
|
2828
1560
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2829
|
-
return
|
|
1561
|
+
return de_CommandError(output, context);
|
|
2830
1562
|
}
|
|
2831
1563
|
const contents = map({
|
|
2832
1564
|
$metadata: deserializeMetadata(output),
|
|
@@ -2838,46 +1570,9 @@ export const de_GetFindingStatisticsCommand = async (output, context) => {
|
|
|
2838
1570
|
Object.assign(contents, doc);
|
|
2839
1571
|
return contents;
|
|
2840
1572
|
};
|
|
2841
|
-
const de_GetFindingStatisticsCommandError = async (output, context) => {
|
|
2842
|
-
const parsedOutput = {
|
|
2843
|
-
...output,
|
|
2844
|
-
body: await parseErrorBody(output.body, context),
|
|
2845
|
-
};
|
|
2846
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2847
|
-
switch (errorCode) {
|
|
2848
|
-
case "AccessDeniedException":
|
|
2849
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
2850
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2851
|
-
case "ConflictException":
|
|
2852
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
2853
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2854
|
-
case "InternalServerException":
|
|
2855
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
2856
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2857
|
-
case "ResourceNotFoundException":
|
|
2858
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
2859
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2860
|
-
case "ServiceQuotaExceededException":
|
|
2861
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
2862
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2863
|
-
case "ThrottlingException":
|
|
2864
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
2865
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2866
|
-
case "ValidationException":
|
|
2867
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
2868
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2869
|
-
default:
|
|
2870
|
-
const parsedBody = parsedOutput.body;
|
|
2871
|
-
return throwDefaultError({
|
|
2872
|
-
output,
|
|
2873
|
-
parsedBody,
|
|
2874
|
-
errorCode,
|
|
2875
|
-
});
|
|
2876
|
-
}
|
|
2877
|
-
};
|
|
2878
1573
|
export const de_GetInvitationsCountCommand = async (output, context) => {
|
|
2879
1574
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2880
|
-
return
|
|
1575
|
+
return de_CommandError(output, context);
|
|
2881
1576
|
}
|
|
2882
1577
|
const contents = map({
|
|
2883
1578
|
$metadata: deserializeMetadata(output),
|
|
@@ -2889,46 +1584,9 @@ export const de_GetInvitationsCountCommand = async (output, context) => {
|
|
|
2889
1584
|
Object.assign(contents, doc);
|
|
2890
1585
|
return contents;
|
|
2891
1586
|
};
|
|
2892
|
-
const de_GetInvitationsCountCommandError = async (output, context) => {
|
|
2893
|
-
const parsedOutput = {
|
|
2894
|
-
...output,
|
|
2895
|
-
body: await parseErrorBody(output.body, context),
|
|
2896
|
-
};
|
|
2897
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2898
|
-
switch (errorCode) {
|
|
2899
|
-
case "AccessDeniedException":
|
|
2900
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
2901
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2902
|
-
case "ConflictException":
|
|
2903
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
2904
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2905
|
-
case "InternalServerException":
|
|
2906
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
2907
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2908
|
-
case "ResourceNotFoundException":
|
|
2909
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
2910
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2911
|
-
case "ServiceQuotaExceededException":
|
|
2912
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
2913
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2914
|
-
case "ThrottlingException":
|
|
2915
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
2916
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2917
|
-
case "ValidationException":
|
|
2918
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
2919
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2920
|
-
default:
|
|
2921
|
-
const parsedBody = parsedOutput.body;
|
|
2922
|
-
return throwDefaultError({
|
|
2923
|
-
output,
|
|
2924
|
-
parsedBody,
|
|
2925
|
-
errorCode,
|
|
2926
|
-
});
|
|
2927
|
-
}
|
|
2928
|
-
};
|
|
2929
1587
|
export const de_GetMacieSessionCommand = async (output, context) => {
|
|
2930
1588
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2931
|
-
return
|
|
1589
|
+
return de_CommandError(output, context);
|
|
2932
1590
|
}
|
|
2933
1591
|
const contents = map({
|
|
2934
1592
|
$metadata: deserializeMetadata(output),
|
|
@@ -2939,102 +1597,28 @@ export const de_GetMacieSessionCommand = async (output, context) => {
|
|
|
2939
1597
|
findingPublishingFrequency: [, __expectString, `findingPublishingFrequency`],
|
|
2940
1598
|
serviceRole: [, __expectString, `serviceRole`],
|
|
2941
1599
|
status: [, __expectString, `status`],
|
|
2942
|
-
updatedAt: [, (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), `updatedAt`],
|
|
2943
|
-
});
|
|
2944
|
-
Object.assign(contents, doc);
|
|
2945
|
-
return contents;
|
|
2946
|
-
};
|
|
2947
|
-
const
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
body: await parseErrorBody(output.body, context),
|
|
2951
|
-
};
|
|
2952
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2953
|
-
switch (errorCode) {
|
|
2954
|
-
case "AccessDeniedException":
|
|
2955
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
2956
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2957
|
-
case "ConflictException":
|
|
2958
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
2959
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2960
|
-
case "InternalServerException":
|
|
2961
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
2962
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2963
|
-
case "ResourceNotFoundException":
|
|
2964
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
2965
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2966
|
-
case "ServiceQuotaExceededException":
|
|
2967
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
2968
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2969
|
-
case "ThrottlingException":
|
|
2970
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
2971
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2972
|
-
case "ValidationException":
|
|
2973
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
2974
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2975
|
-
default:
|
|
2976
|
-
const parsedBody = parsedOutput.body;
|
|
2977
|
-
return throwDefaultError({
|
|
2978
|
-
output,
|
|
2979
|
-
parsedBody,
|
|
2980
|
-
errorCode,
|
|
2981
|
-
});
|
|
2982
|
-
}
|
|
2983
|
-
};
|
|
2984
|
-
export const de_GetMasterAccountCommand = async (output, context) => {
|
|
2985
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2986
|
-
return de_GetMasterAccountCommandError(output, context);
|
|
2987
|
-
}
|
|
2988
|
-
const contents = map({
|
|
2989
|
-
$metadata: deserializeMetadata(output),
|
|
2990
|
-
});
|
|
2991
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2992
|
-
const doc = take(data, {
|
|
2993
|
-
master: [, (_) => de_Invitation(_, context), `master`],
|
|
2994
|
-
});
|
|
2995
|
-
Object.assign(contents, doc);
|
|
2996
|
-
return contents;
|
|
2997
|
-
};
|
|
2998
|
-
const de_GetMasterAccountCommandError = async (output, context) => {
|
|
2999
|
-
const parsedOutput = {
|
|
3000
|
-
...output,
|
|
3001
|
-
body: await parseErrorBody(output.body, context),
|
|
3002
|
-
};
|
|
3003
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3004
|
-
switch (errorCode) {
|
|
3005
|
-
case "AccessDeniedException":
|
|
3006
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
3007
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3008
|
-
case "ConflictException":
|
|
3009
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
3010
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3011
|
-
case "InternalServerException":
|
|
3012
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
3013
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3014
|
-
case "ResourceNotFoundException":
|
|
3015
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
3016
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3017
|
-
case "ServiceQuotaExceededException":
|
|
3018
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
3019
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3020
|
-
case "ThrottlingException":
|
|
3021
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
3022
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3023
|
-
case "ValidationException":
|
|
3024
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
3025
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3026
|
-
default:
|
|
3027
|
-
const parsedBody = parsedOutput.body;
|
|
3028
|
-
return throwDefaultError({
|
|
3029
|
-
output,
|
|
3030
|
-
parsedBody,
|
|
3031
|
-
errorCode,
|
|
3032
|
-
});
|
|
1600
|
+
updatedAt: [, (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), `updatedAt`],
|
|
1601
|
+
});
|
|
1602
|
+
Object.assign(contents, doc);
|
|
1603
|
+
return contents;
|
|
1604
|
+
};
|
|
1605
|
+
export const de_GetMasterAccountCommand = async (output, context) => {
|
|
1606
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1607
|
+
return de_CommandError(output, context);
|
|
3033
1608
|
}
|
|
1609
|
+
const contents = map({
|
|
1610
|
+
$metadata: deserializeMetadata(output),
|
|
1611
|
+
});
|
|
1612
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1613
|
+
const doc = take(data, {
|
|
1614
|
+
master: [, (_) => de_Invitation(_, context), `master`],
|
|
1615
|
+
});
|
|
1616
|
+
Object.assign(contents, doc);
|
|
1617
|
+
return contents;
|
|
3034
1618
|
};
|
|
3035
1619
|
export const de_GetMemberCommand = async (output, context) => {
|
|
3036
1620
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3037
|
-
return
|
|
1621
|
+
return de_CommandError(output, context);
|
|
3038
1622
|
}
|
|
3039
1623
|
const contents = map({
|
|
3040
1624
|
$metadata: deserializeMetadata(output),
|
|
@@ -3054,46 +1638,9 @@ export const de_GetMemberCommand = async (output, context) => {
|
|
|
3054
1638
|
Object.assign(contents, doc);
|
|
3055
1639
|
return contents;
|
|
3056
1640
|
};
|
|
3057
|
-
const de_GetMemberCommandError = async (output, context) => {
|
|
3058
|
-
const parsedOutput = {
|
|
3059
|
-
...output,
|
|
3060
|
-
body: await parseErrorBody(output.body, context),
|
|
3061
|
-
};
|
|
3062
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3063
|
-
switch (errorCode) {
|
|
3064
|
-
case "AccessDeniedException":
|
|
3065
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
3066
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3067
|
-
case "ConflictException":
|
|
3068
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
3069
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3070
|
-
case "InternalServerException":
|
|
3071
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
3072
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3073
|
-
case "ResourceNotFoundException":
|
|
3074
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
3075
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3076
|
-
case "ServiceQuotaExceededException":
|
|
3077
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
3078
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3079
|
-
case "ThrottlingException":
|
|
3080
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
3081
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3082
|
-
case "ValidationException":
|
|
3083
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
3084
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3085
|
-
default:
|
|
3086
|
-
const parsedBody = parsedOutput.body;
|
|
3087
|
-
return throwDefaultError({
|
|
3088
|
-
output,
|
|
3089
|
-
parsedBody,
|
|
3090
|
-
errorCode,
|
|
3091
|
-
});
|
|
3092
|
-
}
|
|
3093
|
-
};
|
|
3094
1641
|
export const de_GetResourceProfileCommand = async (output, context) => {
|
|
3095
1642
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3096
|
-
return
|
|
1643
|
+
return de_CommandError(output, context);
|
|
3097
1644
|
}
|
|
3098
1645
|
const contents = map({
|
|
3099
1646
|
$metadata: deserializeMetadata(output),
|
|
@@ -3108,43 +1655,9 @@ export const de_GetResourceProfileCommand = async (output, context) => {
|
|
|
3108
1655
|
Object.assign(contents, doc);
|
|
3109
1656
|
return contents;
|
|
3110
1657
|
};
|
|
3111
|
-
const de_GetResourceProfileCommandError = async (output, context) => {
|
|
3112
|
-
const parsedOutput = {
|
|
3113
|
-
...output,
|
|
3114
|
-
body: await parseErrorBody(output.body, context),
|
|
3115
|
-
};
|
|
3116
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3117
|
-
switch (errorCode) {
|
|
3118
|
-
case "AccessDeniedException":
|
|
3119
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
3120
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3121
|
-
case "InternalServerException":
|
|
3122
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
3123
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3124
|
-
case "ResourceNotFoundException":
|
|
3125
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
3126
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3127
|
-
case "ServiceQuotaExceededException":
|
|
3128
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
3129
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3130
|
-
case "ThrottlingException":
|
|
3131
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
3132
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3133
|
-
case "ValidationException":
|
|
3134
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
3135
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3136
|
-
default:
|
|
3137
|
-
const parsedBody = parsedOutput.body;
|
|
3138
|
-
return throwDefaultError({
|
|
3139
|
-
output,
|
|
3140
|
-
parsedBody,
|
|
3141
|
-
errorCode,
|
|
3142
|
-
});
|
|
3143
|
-
}
|
|
3144
|
-
};
|
|
3145
1658
|
export const de_GetRevealConfigurationCommand = async (output, context) => {
|
|
3146
1659
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3147
|
-
return
|
|
1660
|
+
return de_CommandError(output, context);
|
|
3148
1661
|
}
|
|
3149
1662
|
const contents = map({
|
|
3150
1663
|
$metadata: deserializeMetadata(output),
|
|
@@ -3157,37 +1670,9 @@ export const de_GetRevealConfigurationCommand = async (output, context) => {
|
|
|
3157
1670
|
Object.assign(contents, doc);
|
|
3158
1671
|
return contents;
|
|
3159
1672
|
};
|
|
3160
|
-
const de_GetRevealConfigurationCommandError = async (output, context) => {
|
|
3161
|
-
const parsedOutput = {
|
|
3162
|
-
...output,
|
|
3163
|
-
body: await parseErrorBody(output.body, context),
|
|
3164
|
-
};
|
|
3165
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3166
|
-
switch (errorCode) {
|
|
3167
|
-
case "AccessDeniedException":
|
|
3168
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
3169
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3170
|
-
case "InternalServerException":
|
|
3171
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
3172
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3173
|
-
case "ThrottlingException":
|
|
3174
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
3175
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3176
|
-
case "ValidationException":
|
|
3177
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
3178
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3179
|
-
default:
|
|
3180
|
-
const parsedBody = parsedOutput.body;
|
|
3181
|
-
return throwDefaultError({
|
|
3182
|
-
output,
|
|
3183
|
-
parsedBody,
|
|
3184
|
-
errorCode,
|
|
3185
|
-
});
|
|
3186
|
-
}
|
|
3187
|
-
};
|
|
3188
1673
|
export const de_GetSensitiveDataOccurrencesCommand = async (output, context) => {
|
|
3189
1674
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3190
|
-
return
|
|
1675
|
+
return de_CommandError(output, context);
|
|
3191
1676
|
}
|
|
3192
1677
|
const contents = map({
|
|
3193
1678
|
$metadata: deserializeMetadata(output),
|
|
@@ -3201,43 +1686,9 @@ export const de_GetSensitiveDataOccurrencesCommand = async (output, context) =>
|
|
|
3201
1686
|
Object.assign(contents, doc);
|
|
3202
1687
|
return contents;
|
|
3203
1688
|
};
|
|
3204
|
-
const de_GetSensitiveDataOccurrencesCommandError = async (output, context) => {
|
|
3205
|
-
const parsedOutput = {
|
|
3206
|
-
...output,
|
|
3207
|
-
body: await parseErrorBody(output.body, context),
|
|
3208
|
-
};
|
|
3209
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3210
|
-
switch (errorCode) {
|
|
3211
|
-
case "AccessDeniedException":
|
|
3212
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
3213
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3214
|
-
case "InternalServerException":
|
|
3215
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
3216
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3217
|
-
case "ResourceNotFoundException":
|
|
3218
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
3219
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3220
|
-
case "ServiceQuotaExceededException":
|
|
3221
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
3222
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3223
|
-
case "ThrottlingException":
|
|
3224
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
3225
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3226
|
-
case "UnprocessableEntityException":
|
|
3227
|
-
case "com.amazonaws.macie2#UnprocessableEntityException":
|
|
3228
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
3229
|
-
default:
|
|
3230
|
-
const parsedBody = parsedOutput.body;
|
|
3231
|
-
return throwDefaultError({
|
|
3232
|
-
output,
|
|
3233
|
-
parsedBody,
|
|
3234
|
-
errorCode,
|
|
3235
|
-
});
|
|
3236
|
-
}
|
|
3237
|
-
};
|
|
3238
1689
|
export const de_GetSensitiveDataOccurrencesAvailabilityCommand = async (output, context) => {
|
|
3239
1690
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3240
|
-
return
|
|
1691
|
+
return de_CommandError(output, context);
|
|
3241
1692
|
}
|
|
3242
1693
|
const contents = map({
|
|
3243
1694
|
$metadata: deserializeMetadata(output),
|
|
@@ -3250,37 +1701,9 @@ export const de_GetSensitiveDataOccurrencesAvailabilityCommand = async (output,
|
|
|
3250
1701
|
Object.assign(contents, doc);
|
|
3251
1702
|
return contents;
|
|
3252
1703
|
};
|
|
3253
|
-
const de_GetSensitiveDataOccurrencesAvailabilityCommandError = async (output, context) => {
|
|
3254
|
-
const parsedOutput = {
|
|
3255
|
-
...output,
|
|
3256
|
-
body: await parseErrorBody(output.body, context),
|
|
3257
|
-
};
|
|
3258
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3259
|
-
switch (errorCode) {
|
|
3260
|
-
case "AccessDeniedException":
|
|
3261
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
3262
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3263
|
-
case "InternalServerException":
|
|
3264
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
3265
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3266
|
-
case "ResourceNotFoundException":
|
|
3267
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
3268
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3269
|
-
case "ThrottlingException":
|
|
3270
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
3271
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3272
|
-
default:
|
|
3273
|
-
const parsedBody = parsedOutput.body;
|
|
3274
|
-
return throwDefaultError({
|
|
3275
|
-
output,
|
|
3276
|
-
parsedBody,
|
|
3277
|
-
errorCode,
|
|
3278
|
-
});
|
|
3279
|
-
}
|
|
3280
|
-
};
|
|
3281
1704
|
export const de_GetSensitivityInspectionTemplateCommand = async (output, context) => {
|
|
3282
1705
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3283
|
-
return
|
|
1706
|
+
return de_CommandError(output, context);
|
|
3284
1707
|
}
|
|
3285
1708
|
const contents = map({
|
|
3286
1709
|
$metadata: deserializeMetadata(output),
|
|
@@ -3291,98 +1714,30 @@ export const de_GetSensitivityInspectionTemplateCommand = async (output, context
|
|
|
3291
1714
|
excludes: [, (_) => de_SensitivityInspectionTemplateExcludes(_, context), `excludes`],
|
|
3292
1715
|
includes: [, (_) => de_SensitivityInspectionTemplateIncludes(_, context), `includes`],
|
|
3293
1716
|
name: [, __expectString, `name`],
|
|
3294
|
-
sensitivityInspectionTemplateId: [, __expectString, `sensitivityInspectionTemplateId`],
|
|
3295
|
-
});
|
|
3296
|
-
Object.assign(contents, doc);
|
|
3297
|
-
return contents;
|
|
3298
|
-
};
|
|
3299
|
-
const
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
body: await parseErrorBody(output.body, context),
|
|
3303
|
-
};
|
|
3304
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3305
|
-
switch (errorCode) {
|
|
3306
|
-
case "AccessDeniedException":
|
|
3307
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
3308
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3309
|
-
case "InternalServerException":
|
|
3310
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
3311
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3312
|
-
case "ResourceNotFoundException":
|
|
3313
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
3314
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3315
|
-
case "ThrottlingException":
|
|
3316
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
3317
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3318
|
-
case "ValidationException":
|
|
3319
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
3320
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3321
|
-
default:
|
|
3322
|
-
const parsedBody = parsedOutput.body;
|
|
3323
|
-
return throwDefaultError({
|
|
3324
|
-
output,
|
|
3325
|
-
parsedBody,
|
|
3326
|
-
errorCode,
|
|
3327
|
-
});
|
|
3328
|
-
}
|
|
3329
|
-
};
|
|
3330
|
-
export const de_GetUsageStatisticsCommand = async (output, context) => {
|
|
3331
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3332
|
-
return de_GetUsageStatisticsCommandError(output, context);
|
|
3333
|
-
}
|
|
3334
|
-
const contents = map({
|
|
3335
|
-
$metadata: deserializeMetadata(output),
|
|
3336
|
-
});
|
|
3337
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3338
|
-
const doc = take(data, {
|
|
3339
|
-
nextToken: [, __expectString, `nextToken`],
|
|
3340
|
-
records: [, (_) => de___listOfUsageRecord(_, context), `records`],
|
|
3341
|
-
timeRange: [, __expectString, `timeRange`],
|
|
3342
|
-
});
|
|
3343
|
-
Object.assign(contents, doc);
|
|
3344
|
-
return contents;
|
|
3345
|
-
};
|
|
3346
|
-
const de_GetUsageStatisticsCommandError = async (output, context) => {
|
|
3347
|
-
const parsedOutput = {
|
|
3348
|
-
...output,
|
|
3349
|
-
body: await parseErrorBody(output.body, context),
|
|
3350
|
-
};
|
|
3351
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3352
|
-
switch (errorCode) {
|
|
3353
|
-
case "AccessDeniedException":
|
|
3354
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
3355
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3356
|
-
case "ConflictException":
|
|
3357
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
3358
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3359
|
-
case "InternalServerException":
|
|
3360
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
3361
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3362
|
-
case "ResourceNotFoundException":
|
|
3363
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
3364
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3365
|
-
case "ServiceQuotaExceededException":
|
|
3366
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
3367
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3368
|
-
case "ThrottlingException":
|
|
3369
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
3370
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3371
|
-
case "ValidationException":
|
|
3372
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
3373
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3374
|
-
default:
|
|
3375
|
-
const parsedBody = parsedOutput.body;
|
|
3376
|
-
return throwDefaultError({
|
|
3377
|
-
output,
|
|
3378
|
-
parsedBody,
|
|
3379
|
-
errorCode,
|
|
3380
|
-
});
|
|
1717
|
+
sensitivityInspectionTemplateId: [, __expectString, `sensitivityInspectionTemplateId`],
|
|
1718
|
+
});
|
|
1719
|
+
Object.assign(contents, doc);
|
|
1720
|
+
return contents;
|
|
1721
|
+
};
|
|
1722
|
+
export const de_GetUsageStatisticsCommand = async (output, context) => {
|
|
1723
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1724
|
+
return de_CommandError(output, context);
|
|
3381
1725
|
}
|
|
1726
|
+
const contents = map({
|
|
1727
|
+
$metadata: deserializeMetadata(output),
|
|
1728
|
+
});
|
|
1729
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1730
|
+
const doc = take(data, {
|
|
1731
|
+
nextToken: [, __expectString, `nextToken`],
|
|
1732
|
+
records: [, (_) => de___listOfUsageRecord(_, context), `records`],
|
|
1733
|
+
timeRange: [, __expectString, `timeRange`],
|
|
1734
|
+
});
|
|
1735
|
+
Object.assign(contents, doc);
|
|
1736
|
+
return contents;
|
|
3382
1737
|
};
|
|
3383
1738
|
export const de_GetUsageTotalsCommand = async (output, context) => {
|
|
3384
1739
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3385
|
-
return
|
|
1740
|
+
return de_CommandError(output, context);
|
|
3386
1741
|
}
|
|
3387
1742
|
const contents = map({
|
|
3388
1743
|
$metadata: deserializeMetadata(output),
|
|
@@ -3395,46 +1750,9 @@ export const de_GetUsageTotalsCommand = async (output, context) => {
|
|
|
3395
1750
|
Object.assign(contents, doc);
|
|
3396
1751
|
return contents;
|
|
3397
1752
|
};
|
|
3398
|
-
const de_GetUsageTotalsCommandError = async (output, context) => {
|
|
3399
|
-
const parsedOutput = {
|
|
3400
|
-
...output,
|
|
3401
|
-
body: await parseErrorBody(output.body, context),
|
|
3402
|
-
};
|
|
3403
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3404
|
-
switch (errorCode) {
|
|
3405
|
-
case "AccessDeniedException":
|
|
3406
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
3407
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3408
|
-
case "ConflictException":
|
|
3409
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
3410
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3411
|
-
case "InternalServerException":
|
|
3412
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
3413
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3414
|
-
case "ResourceNotFoundException":
|
|
3415
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
3416
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3417
|
-
case "ServiceQuotaExceededException":
|
|
3418
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
3419
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3420
|
-
case "ThrottlingException":
|
|
3421
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
3422
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3423
|
-
case "ValidationException":
|
|
3424
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
3425
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3426
|
-
default:
|
|
3427
|
-
const parsedBody = parsedOutput.body;
|
|
3428
|
-
return throwDefaultError({
|
|
3429
|
-
output,
|
|
3430
|
-
parsedBody,
|
|
3431
|
-
errorCode,
|
|
3432
|
-
});
|
|
3433
|
-
}
|
|
3434
|
-
};
|
|
3435
1753
|
export const de_ListAllowListsCommand = async (output, context) => {
|
|
3436
1754
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3437
|
-
return
|
|
1755
|
+
return de_CommandError(output, context);
|
|
3438
1756
|
}
|
|
3439
1757
|
const contents = map({
|
|
3440
1758
|
$metadata: deserializeMetadata(output),
|
|
@@ -3447,37 +1765,9 @@ export const de_ListAllowListsCommand = async (output, context) => {
|
|
|
3447
1765
|
Object.assign(contents, doc);
|
|
3448
1766
|
return contents;
|
|
3449
1767
|
};
|
|
3450
|
-
const de_ListAllowListsCommandError = async (output, context) => {
|
|
3451
|
-
const parsedOutput = {
|
|
3452
|
-
...output,
|
|
3453
|
-
body: await parseErrorBody(output.body, context),
|
|
3454
|
-
};
|
|
3455
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3456
|
-
switch (errorCode) {
|
|
3457
|
-
case "AccessDeniedException":
|
|
3458
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
3459
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3460
|
-
case "InternalServerException":
|
|
3461
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
3462
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3463
|
-
case "ThrottlingException":
|
|
3464
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
3465
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3466
|
-
case "ValidationException":
|
|
3467
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
3468
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3469
|
-
default:
|
|
3470
|
-
const parsedBody = parsedOutput.body;
|
|
3471
|
-
return throwDefaultError({
|
|
3472
|
-
output,
|
|
3473
|
-
parsedBody,
|
|
3474
|
-
errorCode,
|
|
3475
|
-
});
|
|
3476
|
-
}
|
|
3477
|
-
};
|
|
3478
1768
|
export const de_ListClassificationJobsCommand = async (output, context) => {
|
|
3479
1769
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3480
|
-
return
|
|
1770
|
+
return de_CommandError(output, context);
|
|
3481
1771
|
}
|
|
3482
1772
|
const contents = map({
|
|
3483
1773
|
$metadata: deserializeMetadata(output),
|
|
@@ -3490,46 +1780,9 @@ export const de_ListClassificationJobsCommand = async (output, context) => {
|
|
|
3490
1780
|
Object.assign(contents, doc);
|
|
3491
1781
|
return contents;
|
|
3492
1782
|
};
|
|
3493
|
-
const de_ListClassificationJobsCommandError = async (output, context) => {
|
|
3494
|
-
const parsedOutput = {
|
|
3495
|
-
...output,
|
|
3496
|
-
body: await parseErrorBody(output.body, context),
|
|
3497
|
-
};
|
|
3498
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3499
|
-
switch (errorCode) {
|
|
3500
|
-
case "AccessDeniedException":
|
|
3501
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
3502
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3503
|
-
case "ConflictException":
|
|
3504
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
3505
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3506
|
-
case "InternalServerException":
|
|
3507
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
3508
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3509
|
-
case "ResourceNotFoundException":
|
|
3510
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
3511
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3512
|
-
case "ServiceQuotaExceededException":
|
|
3513
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
3514
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3515
|
-
case "ThrottlingException":
|
|
3516
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
3517
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3518
|
-
case "ValidationException":
|
|
3519
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
3520
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3521
|
-
default:
|
|
3522
|
-
const parsedBody = parsedOutput.body;
|
|
3523
|
-
return throwDefaultError({
|
|
3524
|
-
output,
|
|
3525
|
-
parsedBody,
|
|
3526
|
-
errorCode,
|
|
3527
|
-
});
|
|
3528
|
-
}
|
|
3529
|
-
};
|
|
3530
1783
|
export const de_ListClassificationScopesCommand = async (output, context) => {
|
|
3531
1784
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3532
|
-
return
|
|
1785
|
+
return de_CommandError(output, context);
|
|
3533
1786
|
}
|
|
3534
1787
|
const contents = map({
|
|
3535
1788
|
$metadata: deserializeMetadata(output),
|
|
@@ -3542,37 +1795,9 @@ export const de_ListClassificationScopesCommand = async (output, context) => {
|
|
|
3542
1795
|
Object.assign(contents, doc);
|
|
3543
1796
|
return contents;
|
|
3544
1797
|
};
|
|
3545
|
-
const de_ListClassificationScopesCommandError = async (output, context) => {
|
|
3546
|
-
const parsedOutput = {
|
|
3547
|
-
...output,
|
|
3548
|
-
body: await parseErrorBody(output.body, context),
|
|
3549
|
-
};
|
|
3550
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3551
|
-
switch (errorCode) {
|
|
3552
|
-
case "AccessDeniedException":
|
|
3553
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
3554
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3555
|
-
case "InternalServerException":
|
|
3556
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
3557
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3558
|
-
case "ThrottlingException":
|
|
3559
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
3560
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3561
|
-
case "ValidationException":
|
|
3562
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
3563
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3564
|
-
default:
|
|
3565
|
-
const parsedBody = parsedOutput.body;
|
|
3566
|
-
return throwDefaultError({
|
|
3567
|
-
output,
|
|
3568
|
-
parsedBody,
|
|
3569
|
-
errorCode,
|
|
3570
|
-
});
|
|
3571
|
-
}
|
|
3572
|
-
};
|
|
3573
1798
|
export const de_ListCustomDataIdentifiersCommand = async (output, context) => {
|
|
3574
1799
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3575
|
-
return
|
|
1800
|
+
return de_CommandError(output, context);
|
|
3576
1801
|
}
|
|
3577
1802
|
const contents = map({
|
|
3578
1803
|
$metadata: deserializeMetadata(output),
|
|
@@ -3585,46 +1810,9 @@ export const de_ListCustomDataIdentifiersCommand = async (output, context) => {
|
|
|
3585
1810
|
Object.assign(contents, doc);
|
|
3586
1811
|
return contents;
|
|
3587
1812
|
};
|
|
3588
|
-
const de_ListCustomDataIdentifiersCommandError = async (output, context) => {
|
|
3589
|
-
const parsedOutput = {
|
|
3590
|
-
...output,
|
|
3591
|
-
body: await parseErrorBody(output.body, context),
|
|
3592
|
-
};
|
|
3593
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3594
|
-
switch (errorCode) {
|
|
3595
|
-
case "AccessDeniedException":
|
|
3596
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
3597
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3598
|
-
case "ConflictException":
|
|
3599
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
3600
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3601
|
-
case "InternalServerException":
|
|
3602
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
3603
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3604
|
-
case "ResourceNotFoundException":
|
|
3605
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
3606
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3607
|
-
case "ServiceQuotaExceededException":
|
|
3608
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
3609
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3610
|
-
case "ThrottlingException":
|
|
3611
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
3612
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3613
|
-
case "ValidationException":
|
|
3614
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
3615
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3616
|
-
default:
|
|
3617
|
-
const parsedBody = parsedOutput.body;
|
|
3618
|
-
return throwDefaultError({
|
|
3619
|
-
output,
|
|
3620
|
-
parsedBody,
|
|
3621
|
-
errorCode,
|
|
3622
|
-
});
|
|
3623
|
-
}
|
|
3624
|
-
};
|
|
3625
1813
|
export const de_ListFindingsCommand = async (output, context) => {
|
|
3626
1814
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3627
|
-
return
|
|
1815
|
+
return de_CommandError(output, context);
|
|
3628
1816
|
}
|
|
3629
1817
|
const contents = map({
|
|
3630
1818
|
$metadata: deserializeMetadata(output),
|
|
@@ -3637,46 +1825,9 @@ export const de_ListFindingsCommand = async (output, context) => {
|
|
|
3637
1825
|
Object.assign(contents, doc);
|
|
3638
1826
|
return contents;
|
|
3639
1827
|
};
|
|
3640
|
-
const de_ListFindingsCommandError = async (output, context) => {
|
|
3641
|
-
const parsedOutput = {
|
|
3642
|
-
...output,
|
|
3643
|
-
body: await parseErrorBody(output.body, context),
|
|
3644
|
-
};
|
|
3645
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3646
|
-
switch (errorCode) {
|
|
3647
|
-
case "AccessDeniedException":
|
|
3648
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
3649
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3650
|
-
case "ConflictException":
|
|
3651
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
3652
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3653
|
-
case "InternalServerException":
|
|
3654
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
3655
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3656
|
-
case "ResourceNotFoundException":
|
|
3657
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
3658
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3659
|
-
case "ServiceQuotaExceededException":
|
|
3660
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
3661
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3662
|
-
case "ThrottlingException":
|
|
3663
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
3664
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3665
|
-
case "ValidationException":
|
|
3666
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
3667
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3668
|
-
default:
|
|
3669
|
-
const parsedBody = parsedOutput.body;
|
|
3670
|
-
return throwDefaultError({
|
|
3671
|
-
output,
|
|
3672
|
-
parsedBody,
|
|
3673
|
-
errorCode,
|
|
3674
|
-
});
|
|
3675
|
-
}
|
|
3676
|
-
};
|
|
3677
1828
|
export const de_ListFindingsFiltersCommand = async (output, context) => {
|
|
3678
1829
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3679
|
-
return
|
|
1830
|
+
return de_CommandError(output, context);
|
|
3680
1831
|
}
|
|
3681
1832
|
const contents = map({
|
|
3682
1833
|
$metadata: deserializeMetadata(output),
|
|
@@ -3684,51 +1835,14 @@ export const de_ListFindingsFiltersCommand = async (output, context) => {
|
|
|
3684
1835
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3685
1836
|
const doc = take(data, {
|
|
3686
1837
|
findingsFilterListItems: [, (_) => de___listOfFindingsFilterListItem(_, context), `findingsFilterListItems`],
|
|
3687
|
-
nextToken: [, __expectString, `nextToken`],
|
|
3688
|
-
});
|
|
3689
|
-
Object.assign(contents, doc);
|
|
3690
|
-
return contents;
|
|
3691
|
-
};
|
|
3692
|
-
const de_ListFindingsFiltersCommandError = async (output, context) => {
|
|
3693
|
-
const parsedOutput = {
|
|
3694
|
-
...output,
|
|
3695
|
-
body: await parseErrorBody(output.body, context),
|
|
3696
|
-
};
|
|
3697
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3698
|
-
switch (errorCode) {
|
|
3699
|
-
case "AccessDeniedException":
|
|
3700
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
3701
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3702
|
-
case "ConflictException":
|
|
3703
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
3704
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3705
|
-
case "InternalServerException":
|
|
3706
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
3707
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3708
|
-
case "ResourceNotFoundException":
|
|
3709
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
3710
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3711
|
-
case "ServiceQuotaExceededException":
|
|
3712
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
3713
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3714
|
-
case "ThrottlingException":
|
|
3715
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
3716
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3717
|
-
case "ValidationException":
|
|
3718
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
3719
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3720
|
-
default:
|
|
3721
|
-
const parsedBody = parsedOutput.body;
|
|
3722
|
-
return throwDefaultError({
|
|
3723
|
-
output,
|
|
3724
|
-
parsedBody,
|
|
3725
|
-
errorCode,
|
|
3726
|
-
});
|
|
3727
|
-
}
|
|
1838
|
+
nextToken: [, __expectString, `nextToken`],
|
|
1839
|
+
});
|
|
1840
|
+
Object.assign(contents, doc);
|
|
1841
|
+
return contents;
|
|
3728
1842
|
};
|
|
3729
1843
|
export const de_ListInvitationsCommand = async (output, context) => {
|
|
3730
1844
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3731
|
-
return
|
|
1845
|
+
return de_CommandError(output, context);
|
|
3732
1846
|
}
|
|
3733
1847
|
const contents = map({
|
|
3734
1848
|
$metadata: deserializeMetadata(output),
|
|
@@ -3741,46 +1855,9 @@ export const de_ListInvitationsCommand = async (output, context) => {
|
|
|
3741
1855
|
Object.assign(contents, doc);
|
|
3742
1856
|
return contents;
|
|
3743
1857
|
};
|
|
3744
|
-
const de_ListInvitationsCommandError = async (output, context) => {
|
|
3745
|
-
const parsedOutput = {
|
|
3746
|
-
...output,
|
|
3747
|
-
body: await parseErrorBody(output.body, context),
|
|
3748
|
-
};
|
|
3749
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3750
|
-
switch (errorCode) {
|
|
3751
|
-
case "AccessDeniedException":
|
|
3752
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
3753
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3754
|
-
case "ConflictException":
|
|
3755
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
3756
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3757
|
-
case "InternalServerException":
|
|
3758
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
3759
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3760
|
-
case "ResourceNotFoundException":
|
|
3761
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
3762
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3763
|
-
case "ServiceQuotaExceededException":
|
|
3764
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
3765
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3766
|
-
case "ThrottlingException":
|
|
3767
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
3768
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3769
|
-
case "ValidationException":
|
|
3770
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
3771
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3772
|
-
default:
|
|
3773
|
-
const parsedBody = parsedOutput.body;
|
|
3774
|
-
return throwDefaultError({
|
|
3775
|
-
output,
|
|
3776
|
-
parsedBody,
|
|
3777
|
-
errorCode,
|
|
3778
|
-
});
|
|
3779
|
-
}
|
|
3780
|
-
};
|
|
3781
1858
|
export const de_ListManagedDataIdentifiersCommand = async (output, context) => {
|
|
3782
1859
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3783
|
-
return
|
|
1860
|
+
return de_CommandError(output, context);
|
|
3784
1861
|
}
|
|
3785
1862
|
const contents = map({
|
|
3786
1863
|
$metadata: deserializeMetadata(output),
|
|
@@ -3793,22 +1870,9 @@ export const de_ListManagedDataIdentifiersCommand = async (output, context) => {
|
|
|
3793
1870
|
Object.assign(contents, doc);
|
|
3794
1871
|
return contents;
|
|
3795
1872
|
};
|
|
3796
|
-
const de_ListManagedDataIdentifiersCommandError = async (output, context) => {
|
|
3797
|
-
const parsedOutput = {
|
|
3798
|
-
...output,
|
|
3799
|
-
body: await parseErrorBody(output.body, context),
|
|
3800
|
-
};
|
|
3801
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3802
|
-
const parsedBody = parsedOutput.body;
|
|
3803
|
-
return throwDefaultError({
|
|
3804
|
-
output,
|
|
3805
|
-
parsedBody,
|
|
3806
|
-
errorCode,
|
|
3807
|
-
});
|
|
3808
|
-
};
|
|
3809
1873
|
export const de_ListMembersCommand = async (output, context) => {
|
|
3810
1874
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3811
|
-
return
|
|
1875
|
+
return de_CommandError(output, context);
|
|
3812
1876
|
}
|
|
3813
1877
|
const contents = map({
|
|
3814
1878
|
$metadata: deserializeMetadata(output),
|
|
@@ -3821,46 +1885,9 @@ export const de_ListMembersCommand = async (output, context) => {
|
|
|
3821
1885
|
Object.assign(contents, doc);
|
|
3822
1886
|
return contents;
|
|
3823
1887
|
};
|
|
3824
|
-
const de_ListMembersCommandError = async (output, context) => {
|
|
3825
|
-
const parsedOutput = {
|
|
3826
|
-
...output,
|
|
3827
|
-
body: await parseErrorBody(output.body, context),
|
|
3828
|
-
};
|
|
3829
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3830
|
-
switch (errorCode) {
|
|
3831
|
-
case "AccessDeniedException":
|
|
3832
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
3833
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3834
|
-
case "ConflictException":
|
|
3835
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
3836
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3837
|
-
case "InternalServerException":
|
|
3838
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
3839
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3840
|
-
case "ResourceNotFoundException":
|
|
3841
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
3842
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3843
|
-
case "ServiceQuotaExceededException":
|
|
3844
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
3845
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3846
|
-
case "ThrottlingException":
|
|
3847
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
3848
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3849
|
-
case "ValidationException":
|
|
3850
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
3851
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3852
|
-
default:
|
|
3853
|
-
const parsedBody = parsedOutput.body;
|
|
3854
|
-
return throwDefaultError({
|
|
3855
|
-
output,
|
|
3856
|
-
parsedBody,
|
|
3857
|
-
errorCode,
|
|
3858
|
-
});
|
|
3859
|
-
}
|
|
3860
|
-
};
|
|
3861
1888
|
export const de_ListOrganizationAdminAccountsCommand = async (output, context) => {
|
|
3862
1889
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3863
|
-
return
|
|
1890
|
+
return de_CommandError(output, context);
|
|
3864
1891
|
}
|
|
3865
1892
|
const contents = map({
|
|
3866
1893
|
$metadata: deserializeMetadata(output),
|
|
@@ -3873,46 +1900,9 @@ export const de_ListOrganizationAdminAccountsCommand = async (output, context) =
|
|
|
3873
1900
|
Object.assign(contents, doc);
|
|
3874
1901
|
return contents;
|
|
3875
1902
|
};
|
|
3876
|
-
const de_ListOrganizationAdminAccountsCommandError = async (output, context) => {
|
|
3877
|
-
const parsedOutput = {
|
|
3878
|
-
...output,
|
|
3879
|
-
body: await parseErrorBody(output.body, context),
|
|
3880
|
-
};
|
|
3881
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3882
|
-
switch (errorCode) {
|
|
3883
|
-
case "AccessDeniedException":
|
|
3884
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
3885
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3886
|
-
case "ConflictException":
|
|
3887
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
3888
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3889
|
-
case "InternalServerException":
|
|
3890
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
3891
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3892
|
-
case "ResourceNotFoundException":
|
|
3893
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
3894
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3895
|
-
case "ServiceQuotaExceededException":
|
|
3896
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
3897
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3898
|
-
case "ThrottlingException":
|
|
3899
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
3900
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3901
|
-
case "ValidationException":
|
|
3902
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
3903
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3904
|
-
default:
|
|
3905
|
-
const parsedBody = parsedOutput.body;
|
|
3906
|
-
return throwDefaultError({
|
|
3907
|
-
output,
|
|
3908
|
-
parsedBody,
|
|
3909
|
-
errorCode,
|
|
3910
|
-
});
|
|
3911
|
-
}
|
|
3912
|
-
};
|
|
3913
1903
|
export const de_ListResourceProfileArtifactsCommand = async (output, context) => {
|
|
3914
1904
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3915
|
-
return
|
|
1905
|
+
return de_CommandError(output, context);
|
|
3916
1906
|
}
|
|
3917
1907
|
const contents = map({
|
|
3918
1908
|
$metadata: deserializeMetadata(output),
|
|
@@ -3925,40 +1915,9 @@ export const de_ListResourceProfileArtifactsCommand = async (output, context) =>
|
|
|
3925
1915
|
Object.assign(contents, doc);
|
|
3926
1916
|
return contents;
|
|
3927
1917
|
};
|
|
3928
|
-
const de_ListResourceProfileArtifactsCommandError = async (output, context) => {
|
|
3929
|
-
const parsedOutput = {
|
|
3930
|
-
...output,
|
|
3931
|
-
body: await parseErrorBody(output.body, context),
|
|
3932
|
-
};
|
|
3933
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3934
|
-
switch (errorCode) {
|
|
3935
|
-
case "AccessDeniedException":
|
|
3936
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
3937
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3938
|
-
case "InternalServerException":
|
|
3939
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
3940
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3941
|
-
case "ResourceNotFoundException":
|
|
3942
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
3943
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3944
|
-
case "ThrottlingException":
|
|
3945
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
3946
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3947
|
-
case "ValidationException":
|
|
3948
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
3949
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3950
|
-
default:
|
|
3951
|
-
const parsedBody = parsedOutput.body;
|
|
3952
|
-
return throwDefaultError({
|
|
3953
|
-
output,
|
|
3954
|
-
parsedBody,
|
|
3955
|
-
errorCode,
|
|
3956
|
-
});
|
|
3957
|
-
}
|
|
3958
|
-
};
|
|
3959
1918
|
export const de_ListResourceProfileDetectionsCommand = async (output, context) => {
|
|
3960
1919
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3961
|
-
return
|
|
1920
|
+
return de_CommandError(output, context);
|
|
3962
1921
|
}
|
|
3963
1922
|
const contents = map({
|
|
3964
1923
|
$metadata: deserializeMetadata(output),
|
|
@@ -3971,43 +1930,9 @@ export const de_ListResourceProfileDetectionsCommand = async (output, context) =
|
|
|
3971
1930
|
Object.assign(contents, doc);
|
|
3972
1931
|
return contents;
|
|
3973
1932
|
};
|
|
3974
|
-
const de_ListResourceProfileDetectionsCommandError = async (output, context) => {
|
|
3975
|
-
const parsedOutput = {
|
|
3976
|
-
...output,
|
|
3977
|
-
body: await parseErrorBody(output.body, context),
|
|
3978
|
-
};
|
|
3979
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3980
|
-
switch (errorCode) {
|
|
3981
|
-
case "AccessDeniedException":
|
|
3982
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
3983
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3984
|
-
case "InternalServerException":
|
|
3985
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
3986
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3987
|
-
case "ResourceNotFoundException":
|
|
3988
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
3989
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3990
|
-
case "ServiceQuotaExceededException":
|
|
3991
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
3992
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3993
|
-
case "ThrottlingException":
|
|
3994
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
3995
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3996
|
-
case "ValidationException":
|
|
3997
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
3998
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3999
|
-
default:
|
|
4000
|
-
const parsedBody = parsedOutput.body;
|
|
4001
|
-
return throwDefaultError({
|
|
4002
|
-
output,
|
|
4003
|
-
parsedBody,
|
|
4004
|
-
errorCode,
|
|
4005
|
-
});
|
|
4006
|
-
}
|
|
4007
|
-
};
|
|
4008
1933
|
export const de_ListSensitivityInspectionTemplatesCommand = async (output, context) => {
|
|
4009
1934
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4010
|
-
return
|
|
1935
|
+
return de_CommandError(output, context);
|
|
4011
1936
|
}
|
|
4012
1937
|
const contents = map({
|
|
4013
1938
|
$metadata: deserializeMetadata(output),
|
|
@@ -4024,40 +1949,9 @@ export const de_ListSensitivityInspectionTemplatesCommand = async (output, conte
|
|
|
4024
1949
|
Object.assign(contents, doc);
|
|
4025
1950
|
return contents;
|
|
4026
1951
|
};
|
|
4027
|
-
const de_ListSensitivityInspectionTemplatesCommandError = async (output, context) => {
|
|
4028
|
-
const parsedOutput = {
|
|
4029
|
-
...output,
|
|
4030
|
-
body: await parseErrorBody(output.body, context),
|
|
4031
|
-
};
|
|
4032
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4033
|
-
switch (errorCode) {
|
|
4034
|
-
case "AccessDeniedException":
|
|
4035
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
4036
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4037
|
-
case "InternalServerException":
|
|
4038
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
4039
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4040
|
-
case "ServiceQuotaExceededException":
|
|
4041
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
4042
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
4043
|
-
case "ThrottlingException":
|
|
4044
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
4045
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4046
|
-
case "ValidationException":
|
|
4047
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
4048
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4049
|
-
default:
|
|
4050
|
-
const parsedBody = parsedOutput.body;
|
|
4051
|
-
return throwDefaultError({
|
|
4052
|
-
output,
|
|
4053
|
-
parsedBody,
|
|
4054
|
-
errorCode,
|
|
4055
|
-
});
|
|
4056
|
-
}
|
|
4057
|
-
};
|
|
4058
1952
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
4059
1953
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4060
|
-
return
|
|
1954
|
+
return de_CommandError(output, context);
|
|
4061
1955
|
}
|
|
4062
1956
|
const contents = map({
|
|
4063
1957
|
$metadata: deserializeMetadata(output),
|
|
@@ -4069,22 +1963,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
4069
1963
|
Object.assign(contents, doc);
|
|
4070
1964
|
return contents;
|
|
4071
1965
|
};
|
|
4072
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
4073
|
-
const parsedOutput = {
|
|
4074
|
-
...output,
|
|
4075
|
-
body: await parseErrorBody(output.body, context),
|
|
4076
|
-
};
|
|
4077
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4078
|
-
const parsedBody = parsedOutput.body;
|
|
4079
|
-
return throwDefaultError({
|
|
4080
|
-
output,
|
|
4081
|
-
parsedBody,
|
|
4082
|
-
errorCode,
|
|
4083
|
-
});
|
|
4084
|
-
};
|
|
4085
1966
|
export const de_PutClassificationExportConfigurationCommand = async (output, context) => {
|
|
4086
1967
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4087
|
-
return
|
|
1968
|
+
return de_CommandError(output, context);
|
|
4088
1969
|
}
|
|
4089
1970
|
const contents = map({
|
|
4090
1971
|
$metadata: deserializeMetadata(output),
|
|
@@ -4094,48 +1975,11 @@ export const de_PutClassificationExportConfigurationCommand = async (output, con
|
|
|
4094
1975
|
configuration: [, (_) => de_ClassificationExportConfiguration(_, context), `configuration`],
|
|
4095
1976
|
});
|
|
4096
1977
|
Object.assign(contents, doc);
|
|
4097
|
-
return contents;
|
|
4098
|
-
};
|
|
4099
|
-
const de_PutClassificationExportConfigurationCommandError = async (output, context) => {
|
|
4100
|
-
const parsedOutput = {
|
|
4101
|
-
...output,
|
|
4102
|
-
body: await parseErrorBody(output.body, context),
|
|
4103
|
-
};
|
|
4104
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4105
|
-
switch (errorCode) {
|
|
4106
|
-
case "AccessDeniedException":
|
|
4107
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
4108
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4109
|
-
case "ConflictException":
|
|
4110
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
4111
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4112
|
-
case "InternalServerException":
|
|
4113
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
4114
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4115
|
-
case "ResourceNotFoundException":
|
|
4116
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
4117
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4118
|
-
case "ServiceQuotaExceededException":
|
|
4119
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
4120
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
4121
|
-
case "ThrottlingException":
|
|
4122
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
4123
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4124
|
-
case "ValidationException":
|
|
4125
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
4126
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4127
|
-
default:
|
|
4128
|
-
const parsedBody = parsedOutput.body;
|
|
4129
|
-
return throwDefaultError({
|
|
4130
|
-
output,
|
|
4131
|
-
parsedBody,
|
|
4132
|
-
errorCode,
|
|
4133
|
-
});
|
|
4134
|
-
}
|
|
1978
|
+
return contents;
|
|
4135
1979
|
};
|
|
4136
1980
|
export const de_PutFindingsPublicationConfigurationCommand = async (output, context) => {
|
|
4137
1981
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4138
|
-
return
|
|
1982
|
+
return de_CommandError(output, context);
|
|
4139
1983
|
}
|
|
4140
1984
|
const contents = map({
|
|
4141
1985
|
$metadata: deserializeMetadata(output),
|
|
@@ -4143,46 +1987,9 @@ export const de_PutFindingsPublicationConfigurationCommand = async (output, cont
|
|
|
4143
1987
|
await collectBody(output.body, context);
|
|
4144
1988
|
return contents;
|
|
4145
1989
|
};
|
|
4146
|
-
const de_PutFindingsPublicationConfigurationCommandError = async (output, context) => {
|
|
4147
|
-
const parsedOutput = {
|
|
4148
|
-
...output,
|
|
4149
|
-
body: await parseErrorBody(output.body, context),
|
|
4150
|
-
};
|
|
4151
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4152
|
-
switch (errorCode) {
|
|
4153
|
-
case "AccessDeniedException":
|
|
4154
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
4155
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4156
|
-
case "ConflictException":
|
|
4157
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
4158
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4159
|
-
case "InternalServerException":
|
|
4160
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
4161
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4162
|
-
case "ResourceNotFoundException":
|
|
4163
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
4164
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4165
|
-
case "ServiceQuotaExceededException":
|
|
4166
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
4167
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
4168
|
-
case "ThrottlingException":
|
|
4169
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
4170
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4171
|
-
case "ValidationException":
|
|
4172
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
4173
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4174
|
-
default:
|
|
4175
|
-
const parsedBody = parsedOutput.body;
|
|
4176
|
-
return throwDefaultError({
|
|
4177
|
-
output,
|
|
4178
|
-
parsedBody,
|
|
4179
|
-
errorCode,
|
|
4180
|
-
});
|
|
4181
|
-
}
|
|
4182
|
-
};
|
|
4183
1990
|
export const de_SearchResourcesCommand = async (output, context) => {
|
|
4184
1991
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4185
|
-
return
|
|
1992
|
+
return de_CommandError(output, context);
|
|
4186
1993
|
}
|
|
4187
1994
|
const contents = map({
|
|
4188
1995
|
$metadata: deserializeMetadata(output),
|
|
@@ -4195,46 +2002,9 @@ export const de_SearchResourcesCommand = async (output, context) => {
|
|
|
4195
2002
|
Object.assign(contents, doc);
|
|
4196
2003
|
return contents;
|
|
4197
2004
|
};
|
|
4198
|
-
const de_SearchResourcesCommandError = async (output, context) => {
|
|
4199
|
-
const parsedOutput = {
|
|
4200
|
-
...output,
|
|
4201
|
-
body: await parseErrorBody(output.body, context),
|
|
4202
|
-
};
|
|
4203
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4204
|
-
switch (errorCode) {
|
|
4205
|
-
case "AccessDeniedException":
|
|
4206
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
4207
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4208
|
-
case "ConflictException":
|
|
4209
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
4210
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4211
|
-
case "InternalServerException":
|
|
4212
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
4213
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4214
|
-
case "ResourceNotFoundException":
|
|
4215
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
4216
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4217
|
-
case "ServiceQuotaExceededException":
|
|
4218
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
4219
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
4220
|
-
case "ThrottlingException":
|
|
4221
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
4222
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4223
|
-
case "ValidationException":
|
|
4224
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
4225
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4226
|
-
default:
|
|
4227
|
-
const parsedBody = parsedOutput.body;
|
|
4228
|
-
return throwDefaultError({
|
|
4229
|
-
output,
|
|
4230
|
-
parsedBody,
|
|
4231
|
-
errorCode,
|
|
4232
|
-
});
|
|
4233
|
-
}
|
|
4234
|
-
};
|
|
4235
2005
|
export const de_TagResourceCommand = async (output, context) => {
|
|
4236
2006
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
4237
|
-
return
|
|
2007
|
+
return de_CommandError(output, context);
|
|
4238
2008
|
}
|
|
4239
2009
|
const contents = map({
|
|
4240
2010
|
$metadata: deserializeMetadata(output),
|
|
@@ -4242,22 +2012,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
4242
2012
|
await collectBody(output.body, context);
|
|
4243
2013
|
return contents;
|
|
4244
2014
|
};
|
|
4245
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
4246
|
-
const parsedOutput = {
|
|
4247
|
-
...output,
|
|
4248
|
-
body: await parseErrorBody(output.body, context),
|
|
4249
|
-
};
|
|
4250
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4251
|
-
const parsedBody = parsedOutput.body;
|
|
4252
|
-
return throwDefaultError({
|
|
4253
|
-
output,
|
|
4254
|
-
parsedBody,
|
|
4255
|
-
errorCode,
|
|
4256
|
-
});
|
|
4257
|
-
};
|
|
4258
2015
|
export const de_TestCustomDataIdentifierCommand = async (output, context) => {
|
|
4259
2016
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4260
|
-
return
|
|
2017
|
+
return de_CommandError(output, context);
|
|
4261
2018
|
}
|
|
4262
2019
|
const contents = map({
|
|
4263
2020
|
$metadata: deserializeMetadata(output),
|
|
@@ -4269,46 +2026,9 @@ export const de_TestCustomDataIdentifierCommand = async (output, context) => {
|
|
|
4269
2026
|
Object.assign(contents, doc);
|
|
4270
2027
|
return contents;
|
|
4271
2028
|
};
|
|
4272
|
-
const de_TestCustomDataIdentifierCommandError = async (output, context) => {
|
|
4273
|
-
const parsedOutput = {
|
|
4274
|
-
...output,
|
|
4275
|
-
body: await parseErrorBody(output.body, context),
|
|
4276
|
-
};
|
|
4277
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4278
|
-
switch (errorCode) {
|
|
4279
|
-
case "AccessDeniedException":
|
|
4280
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
4281
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4282
|
-
case "ConflictException":
|
|
4283
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
4284
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4285
|
-
case "InternalServerException":
|
|
4286
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
4287
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4288
|
-
case "ResourceNotFoundException":
|
|
4289
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
4290
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4291
|
-
case "ServiceQuotaExceededException":
|
|
4292
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
4293
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
4294
|
-
case "ThrottlingException":
|
|
4295
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
4296
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4297
|
-
case "ValidationException":
|
|
4298
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
4299
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4300
|
-
default:
|
|
4301
|
-
const parsedBody = parsedOutput.body;
|
|
4302
|
-
return throwDefaultError({
|
|
4303
|
-
output,
|
|
4304
|
-
parsedBody,
|
|
4305
|
-
errorCode,
|
|
4306
|
-
});
|
|
4307
|
-
}
|
|
4308
|
-
};
|
|
4309
2029
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
4310
2030
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
4311
|
-
return
|
|
2031
|
+
return de_CommandError(output, context);
|
|
4312
2032
|
}
|
|
4313
2033
|
const contents = map({
|
|
4314
2034
|
$metadata: deserializeMetadata(output),
|
|
@@ -4316,22 +2036,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
4316
2036
|
await collectBody(output.body, context);
|
|
4317
2037
|
return contents;
|
|
4318
2038
|
};
|
|
4319
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
4320
|
-
const parsedOutput = {
|
|
4321
|
-
...output,
|
|
4322
|
-
body: await parseErrorBody(output.body, context),
|
|
4323
|
-
};
|
|
4324
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4325
|
-
const parsedBody = parsedOutput.body;
|
|
4326
|
-
return throwDefaultError({
|
|
4327
|
-
output,
|
|
4328
|
-
parsedBody,
|
|
4329
|
-
errorCode,
|
|
4330
|
-
});
|
|
4331
|
-
};
|
|
4332
2039
|
export const de_UpdateAllowListCommand = async (output, context) => {
|
|
4333
2040
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4334
|
-
return
|
|
2041
|
+
return de_CommandError(output, context);
|
|
4335
2042
|
}
|
|
4336
2043
|
const contents = map({
|
|
4337
2044
|
$metadata: deserializeMetadata(output),
|
|
@@ -4344,40 +2051,9 @@ export const de_UpdateAllowListCommand = async (output, context) => {
|
|
|
4344
2051
|
Object.assign(contents, doc);
|
|
4345
2052
|
return contents;
|
|
4346
2053
|
};
|
|
4347
|
-
const de_UpdateAllowListCommandError = async (output, context) => {
|
|
4348
|
-
const parsedOutput = {
|
|
4349
|
-
...output,
|
|
4350
|
-
body: await parseErrorBody(output.body, context),
|
|
4351
|
-
};
|
|
4352
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4353
|
-
switch (errorCode) {
|
|
4354
|
-
case "AccessDeniedException":
|
|
4355
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
4356
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4357
|
-
case "InternalServerException":
|
|
4358
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
4359
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4360
|
-
case "ResourceNotFoundException":
|
|
4361
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
4362
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4363
|
-
case "ThrottlingException":
|
|
4364
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
4365
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4366
|
-
case "ValidationException":
|
|
4367
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
4368
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4369
|
-
default:
|
|
4370
|
-
const parsedBody = parsedOutput.body;
|
|
4371
|
-
return throwDefaultError({
|
|
4372
|
-
output,
|
|
4373
|
-
parsedBody,
|
|
4374
|
-
errorCode,
|
|
4375
|
-
});
|
|
4376
|
-
}
|
|
4377
|
-
};
|
|
4378
2054
|
export const de_UpdateAutomatedDiscoveryConfigurationCommand = async (output, context) => {
|
|
4379
2055
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4380
|
-
return
|
|
2056
|
+
return de_CommandError(output, context);
|
|
4381
2057
|
}
|
|
4382
2058
|
const contents = map({
|
|
4383
2059
|
$metadata: deserializeMetadata(output),
|
|
@@ -4385,125 +2061,29 @@ export const de_UpdateAutomatedDiscoveryConfigurationCommand = async (output, co
|
|
|
4385
2061
|
await collectBody(output.body, context);
|
|
4386
2062
|
return contents;
|
|
4387
2063
|
};
|
|
4388
|
-
const de_UpdateAutomatedDiscoveryConfigurationCommandError = async (output, context) => {
|
|
4389
|
-
const parsedOutput = {
|
|
4390
|
-
...output,
|
|
4391
|
-
body: await parseErrorBody(output.body, context),
|
|
4392
|
-
};
|
|
4393
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4394
|
-
switch (errorCode) {
|
|
4395
|
-
case "AccessDeniedException":
|
|
4396
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
4397
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4398
|
-
case "InternalServerException":
|
|
4399
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
4400
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4401
|
-
case "ThrottlingException":
|
|
4402
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
4403
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4404
|
-
case "ValidationException":
|
|
4405
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
4406
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4407
|
-
default:
|
|
4408
|
-
const parsedBody = parsedOutput.body;
|
|
4409
|
-
return throwDefaultError({
|
|
4410
|
-
output,
|
|
4411
|
-
parsedBody,
|
|
4412
|
-
errorCode,
|
|
4413
|
-
});
|
|
4414
|
-
}
|
|
4415
|
-
};
|
|
4416
2064
|
export const de_UpdateClassificationJobCommand = async (output, context) => {
|
|
4417
2065
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4418
|
-
return
|
|
4419
|
-
}
|
|
4420
|
-
const contents = map({
|
|
4421
|
-
$metadata: deserializeMetadata(output),
|
|
4422
|
-
});
|
|
4423
|
-
await collectBody(output.body, context);
|
|
4424
|
-
return contents;
|
|
4425
|
-
};
|
|
4426
|
-
const de_UpdateClassificationJobCommandError = async (output, context) => {
|
|
4427
|
-
const parsedOutput = {
|
|
4428
|
-
...output,
|
|
4429
|
-
body: await parseErrorBody(output.body, context),
|
|
4430
|
-
};
|
|
4431
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4432
|
-
switch (errorCode) {
|
|
4433
|
-
case "AccessDeniedException":
|
|
4434
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
4435
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4436
|
-
case "ConflictException":
|
|
4437
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
4438
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4439
|
-
case "InternalServerException":
|
|
4440
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
4441
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4442
|
-
case "ResourceNotFoundException":
|
|
4443
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
4444
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4445
|
-
case "ServiceQuotaExceededException":
|
|
4446
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
4447
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
4448
|
-
case "ThrottlingException":
|
|
4449
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
4450
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4451
|
-
case "ValidationException":
|
|
4452
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
4453
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4454
|
-
default:
|
|
4455
|
-
const parsedBody = parsedOutput.body;
|
|
4456
|
-
return throwDefaultError({
|
|
4457
|
-
output,
|
|
4458
|
-
parsedBody,
|
|
4459
|
-
errorCode,
|
|
4460
|
-
});
|
|
4461
|
-
}
|
|
4462
|
-
};
|
|
4463
|
-
export const de_UpdateClassificationScopeCommand = async (output, context) => {
|
|
4464
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4465
|
-
return de_UpdateClassificationScopeCommandError(output, context);
|
|
2066
|
+
return de_CommandError(output, context);
|
|
4466
2067
|
}
|
|
4467
2068
|
const contents = map({
|
|
4468
2069
|
$metadata: deserializeMetadata(output),
|
|
4469
2070
|
});
|
|
4470
|
-
await collectBody(output.body, context);
|
|
4471
|
-
return contents;
|
|
4472
|
-
};
|
|
4473
|
-
const
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
body: await parseErrorBody(output.body, context),
|
|
4477
|
-
};
|
|
4478
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4479
|
-
switch (errorCode) {
|
|
4480
|
-
case "AccessDeniedException":
|
|
4481
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
4482
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4483
|
-
case "InternalServerException":
|
|
4484
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
4485
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4486
|
-
case "ResourceNotFoundException":
|
|
4487
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
4488
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4489
|
-
case "ThrottlingException":
|
|
4490
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
4491
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4492
|
-
case "ValidationException":
|
|
4493
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
4494
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4495
|
-
default:
|
|
4496
|
-
const parsedBody = parsedOutput.body;
|
|
4497
|
-
return throwDefaultError({
|
|
4498
|
-
output,
|
|
4499
|
-
parsedBody,
|
|
4500
|
-
errorCode,
|
|
4501
|
-
});
|
|
2071
|
+
await collectBody(output.body, context);
|
|
2072
|
+
return contents;
|
|
2073
|
+
};
|
|
2074
|
+
export const de_UpdateClassificationScopeCommand = async (output, context) => {
|
|
2075
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2076
|
+
return de_CommandError(output, context);
|
|
4502
2077
|
}
|
|
2078
|
+
const contents = map({
|
|
2079
|
+
$metadata: deserializeMetadata(output),
|
|
2080
|
+
});
|
|
2081
|
+
await collectBody(output.body, context);
|
|
2082
|
+
return contents;
|
|
4503
2083
|
};
|
|
4504
2084
|
export const de_UpdateFindingsFilterCommand = async (output, context) => {
|
|
4505
2085
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4506
|
-
return
|
|
2086
|
+
return de_CommandError(output, context);
|
|
4507
2087
|
}
|
|
4508
2088
|
const contents = map({
|
|
4509
2089
|
$metadata: deserializeMetadata(output),
|
|
@@ -4516,46 +2096,9 @@ export const de_UpdateFindingsFilterCommand = async (output, context) => {
|
|
|
4516
2096
|
Object.assign(contents, doc);
|
|
4517
2097
|
return contents;
|
|
4518
2098
|
};
|
|
4519
|
-
const de_UpdateFindingsFilterCommandError = async (output, context) => {
|
|
4520
|
-
const parsedOutput = {
|
|
4521
|
-
...output,
|
|
4522
|
-
body: await parseErrorBody(output.body, context),
|
|
4523
|
-
};
|
|
4524
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4525
|
-
switch (errorCode) {
|
|
4526
|
-
case "AccessDeniedException":
|
|
4527
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
4528
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4529
|
-
case "ConflictException":
|
|
4530
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
4531
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4532
|
-
case "InternalServerException":
|
|
4533
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
4534
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4535
|
-
case "ResourceNotFoundException":
|
|
4536
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
4537
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4538
|
-
case "ServiceQuotaExceededException":
|
|
4539
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
4540
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
4541
|
-
case "ThrottlingException":
|
|
4542
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
4543
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4544
|
-
case "ValidationException":
|
|
4545
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
4546
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4547
|
-
default:
|
|
4548
|
-
const parsedBody = parsedOutput.body;
|
|
4549
|
-
return throwDefaultError({
|
|
4550
|
-
output,
|
|
4551
|
-
parsedBody,
|
|
4552
|
-
errorCode,
|
|
4553
|
-
});
|
|
4554
|
-
}
|
|
4555
|
-
};
|
|
4556
2099
|
export const de_UpdateMacieSessionCommand = async (output, context) => {
|
|
4557
2100
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4558
|
-
return
|
|
2101
|
+
return de_CommandError(output, context);
|
|
4559
2102
|
}
|
|
4560
2103
|
const contents = map({
|
|
4561
2104
|
$metadata: deserializeMetadata(output),
|
|
@@ -4563,46 +2106,9 @@ export const de_UpdateMacieSessionCommand = async (output, context) => {
|
|
|
4563
2106
|
await collectBody(output.body, context);
|
|
4564
2107
|
return contents;
|
|
4565
2108
|
};
|
|
4566
|
-
const de_UpdateMacieSessionCommandError = async (output, context) => {
|
|
4567
|
-
const parsedOutput = {
|
|
4568
|
-
...output,
|
|
4569
|
-
body: await parseErrorBody(output.body, context),
|
|
4570
|
-
};
|
|
4571
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4572
|
-
switch (errorCode) {
|
|
4573
|
-
case "AccessDeniedException":
|
|
4574
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
4575
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4576
|
-
case "ConflictException":
|
|
4577
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
4578
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4579
|
-
case "InternalServerException":
|
|
4580
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
4581
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4582
|
-
case "ResourceNotFoundException":
|
|
4583
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
4584
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4585
|
-
case "ServiceQuotaExceededException":
|
|
4586
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
4587
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
4588
|
-
case "ThrottlingException":
|
|
4589
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
4590
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4591
|
-
case "ValidationException":
|
|
4592
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
4593
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4594
|
-
default:
|
|
4595
|
-
const parsedBody = parsedOutput.body;
|
|
4596
|
-
return throwDefaultError({
|
|
4597
|
-
output,
|
|
4598
|
-
parsedBody,
|
|
4599
|
-
errorCode,
|
|
4600
|
-
});
|
|
4601
|
-
}
|
|
4602
|
-
};
|
|
4603
2109
|
export const de_UpdateMemberSessionCommand = async (output, context) => {
|
|
4604
2110
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4605
|
-
return
|
|
2111
|
+
return de_CommandError(output, context);
|
|
4606
2112
|
}
|
|
4607
2113
|
const contents = map({
|
|
4608
2114
|
$metadata: deserializeMetadata(output),
|
|
@@ -4610,46 +2116,9 @@ export const de_UpdateMemberSessionCommand = async (output, context) => {
|
|
|
4610
2116
|
await collectBody(output.body, context);
|
|
4611
2117
|
return contents;
|
|
4612
2118
|
};
|
|
4613
|
-
const de_UpdateMemberSessionCommandError = async (output, context) => {
|
|
4614
|
-
const parsedOutput = {
|
|
4615
|
-
...output,
|
|
4616
|
-
body: await parseErrorBody(output.body, context),
|
|
4617
|
-
};
|
|
4618
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4619
|
-
switch (errorCode) {
|
|
4620
|
-
case "AccessDeniedException":
|
|
4621
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
4622
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4623
|
-
case "ConflictException":
|
|
4624
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
4625
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4626
|
-
case "InternalServerException":
|
|
4627
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
4628
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4629
|
-
case "ResourceNotFoundException":
|
|
4630
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
4631
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4632
|
-
case "ServiceQuotaExceededException":
|
|
4633
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
4634
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
4635
|
-
case "ThrottlingException":
|
|
4636
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
4637
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4638
|
-
case "ValidationException":
|
|
4639
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
4640
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4641
|
-
default:
|
|
4642
|
-
const parsedBody = parsedOutput.body;
|
|
4643
|
-
return throwDefaultError({
|
|
4644
|
-
output,
|
|
4645
|
-
parsedBody,
|
|
4646
|
-
errorCode,
|
|
4647
|
-
});
|
|
4648
|
-
}
|
|
4649
|
-
};
|
|
4650
2119
|
export const de_UpdateOrganizationConfigurationCommand = async (output, context) => {
|
|
4651
2120
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4652
|
-
return
|
|
2121
|
+
return de_CommandError(output, context);
|
|
4653
2122
|
}
|
|
4654
2123
|
const contents = map({
|
|
4655
2124
|
$metadata: deserializeMetadata(output),
|
|
@@ -4657,46 +2126,9 @@ export const de_UpdateOrganizationConfigurationCommand = async (output, context)
|
|
|
4657
2126
|
await collectBody(output.body, context);
|
|
4658
2127
|
return contents;
|
|
4659
2128
|
};
|
|
4660
|
-
const de_UpdateOrganizationConfigurationCommandError = async (output, context) => {
|
|
4661
|
-
const parsedOutput = {
|
|
4662
|
-
...output,
|
|
4663
|
-
body: await parseErrorBody(output.body, context),
|
|
4664
|
-
};
|
|
4665
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4666
|
-
switch (errorCode) {
|
|
4667
|
-
case "AccessDeniedException":
|
|
4668
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
4669
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4670
|
-
case "ConflictException":
|
|
4671
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
4672
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4673
|
-
case "InternalServerException":
|
|
4674
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
4675
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4676
|
-
case "ResourceNotFoundException":
|
|
4677
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
4678
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4679
|
-
case "ServiceQuotaExceededException":
|
|
4680
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
4681
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
4682
|
-
case "ThrottlingException":
|
|
4683
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
4684
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4685
|
-
case "ValidationException":
|
|
4686
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
4687
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4688
|
-
default:
|
|
4689
|
-
const parsedBody = parsedOutput.body;
|
|
4690
|
-
return throwDefaultError({
|
|
4691
|
-
output,
|
|
4692
|
-
parsedBody,
|
|
4693
|
-
errorCode,
|
|
4694
|
-
});
|
|
4695
|
-
}
|
|
4696
|
-
};
|
|
4697
2129
|
export const de_UpdateResourceProfileCommand = async (output, context) => {
|
|
4698
2130
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4699
|
-
return
|
|
2131
|
+
return de_CommandError(output, context);
|
|
4700
2132
|
}
|
|
4701
2133
|
const contents = map({
|
|
4702
2134
|
$metadata: deserializeMetadata(output),
|
|
@@ -4704,43 +2136,9 @@ export const de_UpdateResourceProfileCommand = async (output, context) => {
|
|
|
4704
2136
|
await collectBody(output.body, context);
|
|
4705
2137
|
return contents;
|
|
4706
2138
|
};
|
|
4707
|
-
const de_UpdateResourceProfileCommandError = async (output, context) => {
|
|
4708
|
-
const parsedOutput = {
|
|
4709
|
-
...output,
|
|
4710
|
-
body: await parseErrorBody(output.body, context),
|
|
4711
|
-
};
|
|
4712
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4713
|
-
switch (errorCode) {
|
|
4714
|
-
case "AccessDeniedException":
|
|
4715
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
4716
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4717
|
-
case "InternalServerException":
|
|
4718
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
4719
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4720
|
-
case "ResourceNotFoundException":
|
|
4721
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
4722
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4723
|
-
case "ServiceQuotaExceededException":
|
|
4724
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
4725
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
4726
|
-
case "ThrottlingException":
|
|
4727
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
4728
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4729
|
-
case "ValidationException":
|
|
4730
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
4731
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4732
|
-
default:
|
|
4733
|
-
const parsedBody = parsedOutput.body;
|
|
4734
|
-
return throwDefaultError({
|
|
4735
|
-
output,
|
|
4736
|
-
parsedBody,
|
|
4737
|
-
errorCode,
|
|
4738
|
-
});
|
|
4739
|
-
}
|
|
4740
|
-
};
|
|
4741
2139
|
export const de_UpdateResourceProfileDetectionsCommand = async (output, context) => {
|
|
4742
2140
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4743
|
-
return
|
|
2141
|
+
return de_CommandError(output, context);
|
|
4744
2142
|
}
|
|
4745
2143
|
const contents = map({
|
|
4746
2144
|
$metadata: deserializeMetadata(output),
|
|
@@ -4748,43 +2146,9 @@ export const de_UpdateResourceProfileDetectionsCommand = async (output, context)
|
|
|
4748
2146
|
await collectBody(output.body, context);
|
|
4749
2147
|
return contents;
|
|
4750
2148
|
};
|
|
4751
|
-
const de_UpdateResourceProfileDetectionsCommandError = async (output, context) => {
|
|
4752
|
-
const parsedOutput = {
|
|
4753
|
-
...output,
|
|
4754
|
-
body: await parseErrorBody(output.body, context),
|
|
4755
|
-
};
|
|
4756
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4757
|
-
switch (errorCode) {
|
|
4758
|
-
case "AccessDeniedException":
|
|
4759
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
4760
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4761
|
-
case "InternalServerException":
|
|
4762
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
4763
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4764
|
-
case "ResourceNotFoundException":
|
|
4765
|
-
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
4766
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4767
|
-
case "ServiceQuotaExceededException":
|
|
4768
|
-
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
4769
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
4770
|
-
case "ThrottlingException":
|
|
4771
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
4772
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4773
|
-
case "ValidationException":
|
|
4774
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
4775
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4776
|
-
default:
|
|
4777
|
-
const parsedBody = parsedOutput.body;
|
|
4778
|
-
return throwDefaultError({
|
|
4779
|
-
output,
|
|
4780
|
-
parsedBody,
|
|
4781
|
-
errorCode,
|
|
4782
|
-
});
|
|
4783
|
-
}
|
|
4784
|
-
};
|
|
4785
2149
|
export const de_UpdateRevealConfigurationCommand = async (output, context) => {
|
|
4786
2150
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4787
|
-
return
|
|
2151
|
+
return de_CommandError(output, context);
|
|
4788
2152
|
}
|
|
4789
2153
|
const contents = map({
|
|
4790
2154
|
$metadata: deserializeMetadata(output),
|
|
@@ -4797,37 +2161,9 @@ export const de_UpdateRevealConfigurationCommand = async (output, context) => {
|
|
|
4797
2161
|
Object.assign(contents, doc);
|
|
4798
2162
|
return contents;
|
|
4799
2163
|
};
|
|
4800
|
-
const de_UpdateRevealConfigurationCommandError = async (output, context) => {
|
|
4801
|
-
const parsedOutput = {
|
|
4802
|
-
...output,
|
|
4803
|
-
body: await parseErrorBody(output.body, context),
|
|
4804
|
-
};
|
|
4805
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4806
|
-
switch (errorCode) {
|
|
4807
|
-
case "AccessDeniedException":
|
|
4808
|
-
case "com.amazonaws.macie2#AccessDeniedException":
|
|
4809
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4810
|
-
case "InternalServerException":
|
|
4811
|
-
case "com.amazonaws.macie2#InternalServerException":
|
|
4812
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4813
|
-
case "ThrottlingException":
|
|
4814
|
-
case "com.amazonaws.macie2#ThrottlingException":
|
|
4815
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4816
|
-
case "ValidationException":
|
|
4817
|
-
case "com.amazonaws.macie2#ValidationException":
|
|
4818
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4819
|
-
default:
|
|
4820
|
-
const parsedBody = parsedOutput.body;
|
|
4821
|
-
return throwDefaultError({
|
|
4822
|
-
output,
|
|
4823
|
-
parsedBody,
|
|
4824
|
-
errorCode,
|
|
4825
|
-
});
|
|
4826
|
-
}
|
|
4827
|
-
};
|
|
4828
2164
|
export const de_UpdateSensitivityInspectionTemplateCommand = async (output, context) => {
|
|
4829
2165
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4830
|
-
return
|
|
2166
|
+
return de_CommandError(output, context);
|
|
4831
2167
|
}
|
|
4832
2168
|
const contents = map({
|
|
4833
2169
|
$metadata: deserializeMetadata(output),
|
|
@@ -4835,7 +2171,7 @@ export const de_UpdateSensitivityInspectionTemplateCommand = async (output, cont
|
|
|
4835
2171
|
await collectBody(output.body, context);
|
|
4836
2172
|
return contents;
|
|
4837
2173
|
};
|
|
4838
|
-
const
|
|
2174
|
+
const de_CommandError = async (output, context) => {
|
|
4839
2175
|
const parsedOutput = {
|
|
4840
2176
|
...output,
|
|
4841
2177
|
body: await parseErrorBody(output.body, context),
|
|
@@ -4845,18 +2181,27 @@ const de_UpdateSensitivityInspectionTemplateCommandError = async (output, contex
|
|
|
4845
2181
|
case "AccessDeniedException":
|
|
4846
2182
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
4847
2183
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2184
|
+
case "ConflictException":
|
|
2185
|
+
case "com.amazonaws.macie2#ConflictException":
|
|
2186
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4848
2187
|
case "InternalServerException":
|
|
4849
2188
|
case "com.amazonaws.macie2#InternalServerException":
|
|
4850
2189
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4851
2190
|
case "ResourceNotFoundException":
|
|
4852
2191
|
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
4853
2192
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2193
|
+
case "ServiceQuotaExceededException":
|
|
2194
|
+
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
2195
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
4854
2196
|
case "ThrottlingException":
|
|
4855
2197
|
case "com.amazonaws.macie2#ThrottlingException":
|
|
4856
2198
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4857
2199
|
case "ValidationException":
|
|
4858
2200
|
case "com.amazonaws.macie2#ValidationException":
|
|
4859
2201
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2202
|
+
case "UnprocessableEntityException":
|
|
2203
|
+
case "com.amazonaws.macie2#UnprocessableEntityException":
|
|
2204
|
+
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
4860
2205
|
default:
|
|
4861
2206
|
const parsedBody = parsedOutput.body;
|
|
4862
2207
|
return throwDefaultError({
|