@aws-sdk/client-devops-guru 3.118.1 → 3.121.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist-cjs/protocols/Aws_restJson1.js +145 -117
- package/dist-es/protocols/Aws_restJson1.js +145 -117
- package/package.json +3 -3
|
@@ -786,8 +786,7 @@ const deserializeAws_restJson1AddNotificationChannelCommandError = async (output
|
|
|
786
786
|
body: await parseBody(output.body, context),
|
|
787
787
|
};
|
|
788
788
|
let response;
|
|
789
|
-
|
|
790
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
789
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
791
790
|
switch (errorCode) {
|
|
792
791
|
case "AccessDeniedException":
|
|
793
792
|
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
@@ -812,10 +811,12 @@ const deserializeAws_restJson1AddNotificationChannelCommandError = async (output
|
|
|
812
811
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
813
812
|
default:
|
|
814
813
|
const parsedBody = parsedOutput.body;
|
|
814
|
+
const $metadata = deserializeMetadata(output);
|
|
815
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
815
816
|
response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
|
|
816
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
817
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
817
818
|
$fault: "client",
|
|
818
|
-
$metadata
|
|
819
|
+
$metadata,
|
|
819
820
|
});
|
|
820
821
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
821
822
|
}
|
|
@@ -837,8 +838,7 @@ const deserializeAws_restJson1DeleteInsightCommandError = async (output, context
|
|
|
837
838
|
body: await parseBody(output.body, context),
|
|
838
839
|
};
|
|
839
840
|
let response;
|
|
840
|
-
|
|
841
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
841
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
842
842
|
switch (errorCode) {
|
|
843
843
|
case "AccessDeniedException":
|
|
844
844
|
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
@@ -860,10 +860,12 @@ const deserializeAws_restJson1DeleteInsightCommandError = async (output, context
|
|
|
860
860
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
861
861
|
default:
|
|
862
862
|
const parsedBody = parsedOutput.body;
|
|
863
|
+
const $metadata = deserializeMetadata(output);
|
|
864
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
863
865
|
response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
|
|
864
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
866
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
865
867
|
$fault: "client",
|
|
866
|
-
$metadata
|
|
868
|
+
$metadata,
|
|
867
869
|
});
|
|
868
870
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
869
871
|
}
|
|
@@ -901,8 +903,7 @@ const deserializeAws_restJson1DescribeAccountHealthCommandError = async (output,
|
|
|
901
903
|
body: await parseBody(output.body, context),
|
|
902
904
|
};
|
|
903
905
|
let response;
|
|
904
|
-
|
|
905
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
906
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
906
907
|
switch (errorCode) {
|
|
907
908
|
case "AccessDeniedException":
|
|
908
909
|
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
@@ -918,10 +919,12 @@ const deserializeAws_restJson1DescribeAccountHealthCommandError = async (output,
|
|
|
918
919
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
919
920
|
default:
|
|
920
921
|
const parsedBody = parsedOutput.body;
|
|
922
|
+
const $metadata = deserializeMetadata(output);
|
|
923
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
921
924
|
response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
|
|
922
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
925
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
923
926
|
$fault: "client",
|
|
924
|
-
$metadata
|
|
927
|
+
$metadata,
|
|
925
928
|
});
|
|
926
929
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
927
930
|
}
|
|
@@ -955,8 +958,7 @@ const deserializeAws_restJson1DescribeAccountOverviewCommandError = async (outpu
|
|
|
955
958
|
body: await parseBody(output.body, context),
|
|
956
959
|
};
|
|
957
960
|
let response;
|
|
958
|
-
|
|
959
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
961
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
960
962
|
switch (errorCode) {
|
|
961
963
|
case "AccessDeniedException":
|
|
962
964
|
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
@@ -972,10 +974,12 @@ const deserializeAws_restJson1DescribeAccountOverviewCommandError = async (outpu
|
|
|
972
974
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
973
975
|
default:
|
|
974
976
|
const parsedBody = parsedOutput.body;
|
|
977
|
+
const $metadata = deserializeMetadata(output);
|
|
978
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
975
979
|
response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
|
|
976
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
980
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
977
981
|
$fault: "client",
|
|
978
|
-
$metadata
|
|
982
|
+
$metadata,
|
|
979
983
|
});
|
|
980
984
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
981
985
|
}
|
|
@@ -1005,8 +1009,7 @@ const deserializeAws_restJson1DescribeAnomalyCommandError = async (output, conte
|
|
|
1005
1009
|
body: await parseBody(output.body, context),
|
|
1006
1010
|
};
|
|
1007
1011
|
let response;
|
|
1008
|
-
|
|
1009
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1012
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1010
1013
|
switch (errorCode) {
|
|
1011
1014
|
case "AccessDeniedException":
|
|
1012
1015
|
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
@@ -1025,10 +1028,12 @@ const deserializeAws_restJson1DescribeAnomalyCommandError = async (output, conte
|
|
|
1025
1028
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1026
1029
|
default:
|
|
1027
1030
|
const parsedBody = parsedOutput.body;
|
|
1031
|
+
const $metadata = deserializeMetadata(output);
|
|
1032
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1028
1033
|
response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
|
|
1029
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1034
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1030
1035
|
$fault: "client",
|
|
1031
|
-
$metadata
|
|
1036
|
+
$metadata,
|
|
1032
1037
|
});
|
|
1033
1038
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1034
1039
|
}
|
|
@@ -1054,8 +1059,7 @@ const deserializeAws_restJson1DescribeEventSourcesConfigCommandError = async (ou
|
|
|
1054
1059
|
body: await parseBody(output.body, context),
|
|
1055
1060
|
};
|
|
1056
1061
|
let response;
|
|
1057
|
-
|
|
1058
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1062
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1059
1063
|
switch (errorCode) {
|
|
1060
1064
|
case "AccessDeniedException":
|
|
1061
1065
|
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
@@ -1071,10 +1075,12 @@ const deserializeAws_restJson1DescribeEventSourcesConfigCommandError = async (ou
|
|
|
1071
1075
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1072
1076
|
default:
|
|
1073
1077
|
const parsedBody = parsedOutput.body;
|
|
1078
|
+
const $metadata = deserializeMetadata(output);
|
|
1079
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1074
1080
|
response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
|
|
1075
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1081
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1076
1082
|
$fault: "client",
|
|
1077
|
-
$metadata
|
|
1083
|
+
$metadata,
|
|
1078
1084
|
});
|
|
1079
1085
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1080
1086
|
}
|
|
@@ -1100,8 +1106,7 @@ const deserializeAws_restJson1DescribeFeedbackCommandError = async (output, cont
|
|
|
1100
1106
|
body: await parseBody(output.body, context),
|
|
1101
1107
|
};
|
|
1102
1108
|
let response;
|
|
1103
|
-
|
|
1104
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1109
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1105
1110
|
switch (errorCode) {
|
|
1106
1111
|
case "AccessDeniedException":
|
|
1107
1112
|
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
@@ -1120,10 +1125,12 @@ const deserializeAws_restJson1DescribeFeedbackCommandError = async (output, cont
|
|
|
1120
1125
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1121
1126
|
default:
|
|
1122
1127
|
const parsedBody = parsedOutput.body;
|
|
1128
|
+
const $metadata = deserializeMetadata(output);
|
|
1129
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1123
1130
|
response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
|
|
1124
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1131
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1125
1132
|
$fault: "client",
|
|
1126
|
-
$metadata
|
|
1133
|
+
$metadata,
|
|
1127
1134
|
});
|
|
1128
1135
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1129
1136
|
}
|
|
@@ -1153,8 +1160,7 @@ const deserializeAws_restJson1DescribeInsightCommandError = async (output, conte
|
|
|
1153
1160
|
body: await parseBody(output.body, context),
|
|
1154
1161
|
};
|
|
1155
1162
|
let response;
|
|
1156
|
-
|
|
1157
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1163
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1158
1164
|
switch (errorCode) {
|
|
1159
1165
|
case "AccessDeniedException":
|
|
1160
1166
|
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
@@ -1173,10 +1179,12 @@ const deserializeAws_restJson1DescribeInsightCommandError = async (output, conte
|
|
|
1173
1179
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1174
1180
|
default:
|
|
1175
1181
|
const parsedBody = parsedOutput.body;
|
|
1182
|
+
const $metadata = deserializeMetadata(output);
|
|
1183
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1176
1184
|
response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
|
|
1177
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1185
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1178
1186
|
$fault: "client",
|
|
1179
|
-
$metadata
|
|
1187
|
+
$metadata,
|
|
1180
1188
|
});
|
|
1181
1189
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1182
1190
|
}
|
|
@@ -1214,8 +1222,7 @@ const deserializeAws_restJson1DescribeOrganizationHealthCommandError = async (ou
|
|
|
1214
1222
|
body: await parseBody(output.body, context),
|
|
1215
1223
|
};
|
|
1216
1224
|
let response;
|
|
1217
|
-
|
|
1218
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1225
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1219
1226
|
switch (errorCode) {
|
|
1220
1227
|
case "AccessDeniedException":
|
|
1221
1228
|
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
@@ -1231,10 +1238,12 @@ const deserializeAws_restJson1DescribeOrganizationHealthCommandError = async (ou
|
|
|
1231
1238
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1232
1239
|
default:
|
|
1233
1240
|
const parsedBody = parsedOutput.body;
|
|
1241
|
+
const $metadata = deserializeMetadata(output);
|
|
1242
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1234
1243
|
response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
|
|
1235
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1244
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1236
1245
|
$fault: "client",
|
|
1237
|
-
$metadata
|
|
1246
|
+
$metadata,
|
|
1238
1247
|
});
|
|
1239
1248
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1240
1249
|
}
|
|
@@ -1264,8 +1273,7 @@ const deserializeAws_restJson1DescribeOrganizationOverviewCommandError = async (
|
|
|
1264
1273
|
body: await parseBody(output.body, context),
|
|
1265
1274
|
};
|
|
1266
1275
|
let response;
|
|
1267
|
-
|
|
1268
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1276
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1269
1277
|
switch (errorCode) {
|
|
1270
1278
|
case "AccessDeniedException":
|
|
1271
1279
|
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
@@ -1281,10 +1289,12 @@ const deserializeAws_restJson1DescribeOrganizationOverviewCommandError = async (
|
|
|
1281
1289
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1282
1290
|
default:
|
|
1283
1291
|
const parsedBody = parsedOutput.body;
|
|
1292
|
+
const $metadata = deserializeMetadata(output);
|
|
1293
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1284
1294
|
response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
|
|
1285
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1295
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1286
1296
|
$fault: "client",
|
|
1287
|
-
$metadata
|
|
1297
|
+
$metadata,
|
|
1288
1298
|
});
|
|
1289
1299
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1290
1300
|
}
|
|
@@ -1326,8 +1336,7 @@ const deserializeAws_restJson1DescribeOrganizationResourceCollectionHealthComman
|
|
|
1326
1336
|
body: await parseBody(output.body, context),
|
|
1327
1337
|
};
|
|
1328
1338
|
let response;
|
|
1329
|
-
|
|
1330
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1339
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1331
1340
|
switch (errorCode) {
|
|
1332
1341
|
case "AccessDeniedException":
|
|
1333
1342
|
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
@@ -1343,10 +1352,12 @@ const deserializeAws_restJson1DescribeOrganizationResourceCollectionHealthComman
|
|
|
1343
1352
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1344
1353
|
default:
|
|
1345
1354
|
const parsedBody = parsedOutput.body;
|
|
1355
|
+
const $metadata = deserializeMetadata(output);
|
|
1356
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1346
1357
|
response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
|
|
1347
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1358
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1348
1359
|
$fault: "client",
|
|
1349
|
-
$metadata
|
|
1360
|
+
$metadata,
|
|
1350
1361
|
});
|
|
1351
1362
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1352
1363
|
}
|
|
@@ -1384,8 +1395,7 @@ const deserializeAws_restJson1DescribeResourceCollectionHealthCommandError = asy
|
|
|
1384
1395
|
body: await parseBody(output.body, context),
|
|
1385
1396
|
};
|
|
1386
1397
|
let response;
|
|
1387
|
-
|
|
1388
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1398
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1389
1399
|
switch (errorCode) {
|
|
1390
1400
|
case "AccessDeniedException":
|
|
1391
1401
|
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
@@ -1401,10 +1411,12 @@ const deserializeAws_restJson1DescribeResourceCollectionHealthCommandError = asy
|
|
|
1401
1411
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1402
1412
|
default:
|
|
1403
1413
|
const parsedBody = parsedOutput.body;
|
|
1414
|
+
const $metadata = deserializeMetadata(output);
|
|
1415
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1404
1416
|
response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
|
|
1405
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1417
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1406
1418
|
$fault: "client",
|
|
1407
|
-
$metadata
|
|
1419
|
+
$metadata,
|
|
1408
1420
|
});
|
|
1409
1421
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1410
1422
|
}
|
|
@@ -1430,8 +1442,7 @@ const deserializeAws_restJson1DescribeServiceIntegrationCommandError = async (ou
|
|
|
1430
1442
|
body: await parseBody(output.body, context),
|
|
1431
1443
|
};
|
|
1432
1444
|
let response;
|
|
1433
|
-
|
|
1434
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1445
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1435
1446
|
switch (errorCode) {
|
|
1436
1447
|
case "AccessDeniedException":
|
|
1437
1448
|
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
@@ -1447,10 +1458,12 @@ const deserializeAws_restJson1DescribeServiceIntegrationCommandError = async (ou
|
|
|
1447
1458
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1448
1459
|
default:
|
|
1449
1460
|
const parsedBody = parsedOutput.body;
|
|
1461
|
+
const $metadata = deserializeMetadata(output);
|
|
1462
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1450
1463
|
response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
|
|
1451
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1464
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1452
1465
|
$fault: "client",
|
|
1453
|
-
$metadata
|
|
1466
|
+
$metadata,
|
|
1454
1467
|
});
|
|
1455
1468
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1456
1469
|
}
|
|
@@ -1496,8 +1509,7 @@ const deserializeAws_restJson1GetCostEstimationCommandError = async (output, con
|
|
|
1496
1509
|
body: await parseBody(output.body, context),
|
|
1497
1510
|
};
|
|
1498
1511
|
let response;
|
|
1499
|
-
|
|
1500
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1512
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1501
1513
|
switch (errorCode) {
|
|
1502
1514
|
case "AccessDeniedException":
|
|
1503
1515
|
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
@@ -1516,10 +1528,12 @@ const deserializeAws_restJson1GetCostEstimationCommandError = async (output, con
|
|
|
1516
1528
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1517
1529
|
default:
|
|
1518
1530
|
const parsedBody = parsedOutput.body;
|
|
1531
|
+
const $metadata = deserializeMetadata(output);
|
|
1532
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1519
1533
|
response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
|
|
1520
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1534
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1521
1535
|
$fault: "client",
|
|
1522
|
-
$metadata
|
|
1536
|
+
$metadata,
|
|
1523
1537
|
});
|
|
1524
1538
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1525
1539
|
}
|
|
@@ -1549,8 +1563,7 @@ const deserializeAws_restJson1GetResourceCollectionCommandError = async (output,
|
|
|
1549
1563
|
body: await parseBody(output.body, context),
|
|
1550
1564
|
};
|
|
1551
1565
|
let response;
|
|
1552
|
-
|
|
1553
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1566
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1554
1567
|
switch (errorCode) {
|
|
1555
1568
|
case "AccessDeniedException":
|
|
1556
1569
|
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
@@ -1569,10 +1582,12 @@ const deserializeAws_restJson1GetResourceCollectionCommandError = async (output,
|
|
|
1569
1582
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1570
1583
|
default:
|
|
1571
1584
|
const parsedBody = parsedOutput.body;
|
|
1585
|
+
const $metadata = deserializeMetadata(output);
|
|
1586
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1572
1587
|
response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
|
|
1573
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1588
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1574
1589
|
$fault: "client",
|
|
1575
|
-
$metadata
|
|
1590
|
+
$metadata,
|
|
1576
1591
|
});
|
|
1577
1592
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1578
1593
|
}
|
|
@@ -1606,8 +1621,7 @@ const deserializeAws_restJson1ListAnomaliesForInsightCommandError = async (outpu
|
|
|
1606
1621
|
body: await parseBody(output.body, context),
|
|
1607
1622
|
};
|
|
1608
1623
|
let response;
|
|
1609
|
-
|
|
1610
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1624
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1611
1625
|
switch (errorCode) {
|
|
1612
1626
|
case "AccessDeniedException":
|
|
1613
1627
|
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
@@ -1626,10 +1640,12 @@ const deserializeAws_restJson1ListAnomaliesForInsightCommandError = async (outpu
|
|
|
1626
1640
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1627
1641
|
default:
|
|
1628
1642
|
const parsedBody = parsedOutput.body;
|
|
1643
|
+
const $metadata = deserializeMetadata(output);
|
|
1644
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1629
1645
|
response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
|
|
1630
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1646
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1631
1647
|
$fault: "client",
|
|
1632
|
-
$metadata
|
|
1648
|
+
$metadata,
|
|
1633
1649
|
});
|
|
1634
1650
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1635
1651
|
}
|
|
@@ -1659,8 +1675,7 @@ const deserializeAws_restJson1ListEventsCommandError = async (output, context) =
|
|
|
1659
1675
|
body: await parseBody(output.body, context),
|
|
1660
1676
|
};
|
|
1661
1677
|
let response;
|
|
1662
|
-
|
|
1663
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1678
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1664
1679
|
switch (errorCode) {
|
|
1665
1680
|
case "AccessDeniedException":
|
|
1666
1681
|
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
@@ -1679,10 +1694,12 @@ const deserializeAws_restJson1ListEventsCommandError = async (output, context) =
|
|
|
1679
1694
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1680
1695
|
default:
|
|
1681
1696
|
const parsedBody = parsedOutput.body;
|
|
1697
|
+
const $metadata = deserializeMetadata(output);
|
|
1698
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1682
1699
|
response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
|
|
1683
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1700
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1684
1701
|
$fault: "client",
|
|
1685
|
-
$metadata
|
|
1702
|
+
$metadata,
|
|
1686
1703
|
});
|
|
1687
1704
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1688
1705
|
}
|
|
@@ -1716,8 +1733,7 @@ const deserializeAws_restJson1ListInsightsCommandError = async (output, context)
|
|
|
1716
1733
|
body: await parseBody(output.body, context),
|
|
1717
1734
|
};
|
|
1718
1735
|
let response;
|
|
1719
|
-
|
|
1720
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1736
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1721
1737
|
switch (errorCode) {
|
|
1722
1738
|
case "AccessDeniedException":
|
|
1723
1739
|
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
@@ -1733,10 +1749,12 @@ const deserializeAws_restJson1ListInsightsCommandError = async (output, context)
|
|
|
1733
1749
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1734
1750
|
default:
|
|
1735
1751
|
const parsedBody = parsedOutput.body;
|
|
1752
|
+
const $metadata = deserializeMetadata(output);
|
|
1753
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1736
1754
|
response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
|
|
1737
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1755
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1738
1756
|
$fault: "client",
|
|
1739
|
-
$metadata
|
|
1757
|
+
$metadata,
|
|
1740
1758
|
});
|
|
1741
1759
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1742
1760
|
}
|
|
@@ -1766,8 +1784,7 @@ const deserializeAws_restJson1ListNotificationChannelsCommandError = async (outp
|
|
|
1766
1784
|
body: await parseBody(output.body, context),
|
|
1767
1785
|
};
|
|
1768
1786
|
let response;
|
|
1769
|
-
|
|
1770
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1787
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1771
1788
|
switch (errorCode) {
|
|
1772
1789
|
case "AccessDeniedException":
|
|
1773
1790
|
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
@@ -1783,10 +1800,12 @@ const deserializeAws_restJson1ListNotificationChannelsCommandError = async (outp
|
|
|
1783
1800
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1784
1801
|
default:
|
|
1785
1802
|
const parsedBody = parsedOutput.body;
|
|
1803
|
+
const $metadata = deserializeMetadata(output);
|
|
1804
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1786
1805
|
response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
|
|
1787
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1806
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1788
1807
|
$fault: "client",
|
|
1789
|
-
$metadata
|
|
1808
|
+
$metadata,
|
|
1790
1809
|
});
|
|
1791
1810
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1792
1811
|
}
|
|
@@ -1820,8 +1839,7 @@ const deserializeAws_restJson1ListOrganizationInsightsCommandError = async (outp
|
|
|
1820
1839
|
body: await parseBody(output.body, context),
|
|
1821
1840
|
};
|
|
1822
1841
|
let response;
|
|
1823
|
-
|
|
1824
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1842
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1825
1843
|
switch (errorCode) {
|
|
1826
1844
|
case "AccessDeniedException":
|
|
1827
1845
|
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
@@ -1837,10 +1855,12 @@ const deserializeAws_restJson1ListOrganizationInsightsCommandError = async (outp
|
|
|
1837
1855
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1838
1856
|
default:
|
|
1839
1857
|
const parsedBody = parsedOutput.body;
|
|
1858
|
+
const $metadata = deserializeMetadata(output);
|
|
1859
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1840
1860
|
response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
|
|
1841
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1861
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1842
1862
|
$fault: "client",
|
|
1843
|
-
$metadata
|
|
1863
|
+
$metadata,
|
|
1844
1864
|
});
|
|
1845
1865
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1846
1866
|
}
|
|
@@ -1870,8 +1890,7 @@ const deserializeAws_restJson1ListRecommendationsCommandError = async (output, c
|
|
|
1870
1890
|
body: await parseBody(output.body, context),
|
|
1871
1891
|
};
|
|
1872
1892
|
let response;
|
|
1873
|
-
|
|
1874
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1893
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1875
1894
|
switch (errorCode) {
|
|
1876
1895
|
case "AccessDeniedException":
|
|
1877
1896
|
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
@@ -1890,10 +1909,12 @@ const deserializeAws_restJson1ListRecommendationsCommandError = async (output, c
|
|
|
1890
1909
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1891
1910
|
default:
|
|
1892
1911
|
const parsedBody = parsedOutput.body;
|
|
1912
|
+
const $metadata = deserializeMetadata(output);
|
|
1913
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1893
1914
|
response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
|
|
1894
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1915
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1895
1916
|
$fault: "client",
|
|
1896
|
-
$metadata
|
|
1917
|
+
$metadata,
|
|
1897
1918
|
});
|
|
1898
1919
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1899
1920
|
}
|
|
@@ -1915,8 +1936,7 @@ const deserializeAws_restJson1PutFeedbackCommandError = async (output, context)
|
|
|
1915
1936
|
body: await parseBody(output.body, context),
|
|
1916
1937
|
};
|
|
1917
1938
|
let response;
|
|
1918
|
-
|
|
1919
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1939
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1920
1940
|
switch (errorCode) {
|
|
1921
1941
|
case "AccessDeniedException":
|
|
1922
1942
|
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
@@ -1938,10 +1958,12 @@ const deserializeAws_restJson1PutFeedbackCommandError = async (output, context)
|
|
|
1938
1958
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1939
1959
|
default:
|
|
1940
1960
|
const parsedBody = parsedOutput.body;
|
|
1961
|
+
const $metadata = deserializeMetadata(output);
|
|
1962
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1941
1963
|
response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
|
|
1942
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1964
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1943
1965
|
$fault: "client",
|
|
1944
|
-
$metadata
|
|
1966
|
+
$metadata,
|
|
1945
1967
|
});
|
|
1946
1968
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1947
1969
|
}
|
|
@@ -1963,8 +1985,7 @@ const deserializeAws_restJson1RemoveNotificationChannelCommandError = async (out
|
|
|
1963
1985
|
body: await parseBody(output.body, context),
|
|
1964
1986
|
};
|
|
1965
1987
|
let response;
|
|
1966
|
-
|
|
1967
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1988
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1968
1989
|
switch (errorCode) {
|
|
1969
1990
|
case "AccessDeniedException":
|
|
1970
1991
|
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
@@ -1986,10 +2007,12 @@ const deserializeAws_restJson1RemoveNotificationChannelCommandError = async (out
|
|
|
1986
2007
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1987
2008
|
default:
|
|
1988
2009
|
const parsedBody = parsedOutput.body;
|
|
2010
|
+
const $metadata = deserializeMetadata(output);
|
|
2011
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1989
2012
|
response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
|
|
1990
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2013
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1991
2014
|
$fault: "client",
|
|
1992
|
-
$metadata
|
|
2015
|
+
$metadata,
|
|
1993
2016
|
});
|
|
1994
2017
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1995
2018
|
}
|
|
@@ -2023,8 +2046,7 @@ const deserializeAws_restJson1SearchInsightsCommandError = async (output, contex
|
|
|
2023
2046
|
body: await parseBody(output.body, context),
|
|
2024
2047
|
};
|
|
2025
2048
|
let response;
|
|
2026
|
-
|
|
2027
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2049
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2028
2050
|
switch (errorCode) {
|
|
2029
2051
|
case "AccessDeniedException":
|
|
2030
2052
|
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
@@ -2040,10 +2062,12 @@ const deserializeAws_restJson1SearchInsightsCommandError = async (output, contex
|
|
|
2040
2062
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2041
2063
|
default:
|
|
2042
2064
|
const parsedBody = parsedOutput.body;
|
|
2065
|
+
const $metadata = deserializeMetadata(output);
|
|
2066
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2043
2067
|
response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
|
|
2044
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2068
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2045
2069
|
$fault: "client",
|
|
2046
|
-
$metadata
|
|
2070
|
+
$metadata,
|
|
2047
2071
|
});
|
|
2048
2072
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2049
2073
|
}
|
|
@@ -2077,8 +2101,7 @@ const deserializeAws_restJson1SearchOrganizationInsightsCommandError = async (ou
|
|
|
2077
2101
|
body: await parseBody(output.body, context),
|
|
2078
2102
|
};
|
|
2079
2103
|
let response;
|
|
2080
|
-
|
|
2081
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2104
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2082
2105
|
switch (errorCode) {
|
|
2083
2106
|
case "AccessDeniedException":
|
|
2084
2107
|
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
@@ -2094,10 +2117,12 @@ const deserializeAws_restJson1SearchOrganizationInsightsCommandError = async (ou
|
|
|
2094
2117
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2095
2118
|
default:
|
|
2096
2119
|
const parsedBody = parsedOutput.body;
|
|
2120
|
+
const $metadata = deserializeMetadata(output);
|
|
2121
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2097
2122
|
response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
|
|
2098
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2123
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2099
2124
|
$fault: "client",
|
|
2100
|
-
$metadata
|
|
2125
|
+
$metadata,
|
|
2101
2126
|
});
|
|
2102
2127
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2103
2128
|
}
|
|
@@ -2119,8 +2144,7 @@ const deserializeAws_restJson1StartCostEstimationCommandError = async (output, c
|
|
|
2119
2144
|
body: await parseBody(output.body, context),
|
|
2120
2145
|
};
|
|
2121
2146
|
let response;
|
|
2122
|
-
|
|
2123
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2147
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2124
2148
|
switch (errorCode) {
|
|
2125
2149
|
case "AccessDeniedException":
|
|
2126
2150
|
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
@@ -2142,10 +2166,12 @@ const deserializeAws_restJson1StartCostEstimationCommandError = async (output, c
|
|
|
2142
2166
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2143
2167
|
default:
|
|
2144
2168
|
const parsedBody = parsedOutput.body;
|
|
2169
|
+
const $metadata = deserializeMetadata(output);
|
|
2170
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2145
2171
|
response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
|
|
2146
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2172
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2147
2173
|
$fault: "client",
|
|
2148
|
-
$metadata
|
|
2174
|
+
$metadata,
|
|
2149
2175
|
});
|
|
2150
2176
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2151
2177
|
}
|
|
@@ -2167,8 +2193,7 @@ const deserializeAws_restJson1UpdateEventSourcesConfigCommandError = async (outp
|
|
|
2167
2193
|
body: await parseBody(output.body, context),
|
|
2168
2194
|
};
|
|
2169
2195
|
let response;
|
|
2170
|
-
|
|
2171
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2196
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2172
2197
|
switch (errorCode) {
|
|
2173
2198
|
case "AccessDeniedException":
|
|
2174
2199
|
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
@@ -2184,10 +2209,12 @@ const deserializeAws_restJson1UpdateEventSourcesConfigCommandError = async (outp
|
|
|
2184
2209
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2185
2210
|
default:
|
|
2186
2211
|
const parsedBody = parsedOutput.body;
|
|
2212
|
+
const $metadata = deserializeMetadata(output);
|
|
2213
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2187
2214
|
response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
|
|
2188
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2215
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2189
2216
|
$fault: "client",
|
|
2190
|
-
$metadata
|
|
2217
|
+
$metadata,
|
|
2191
2218
|
});
|
|
2192
2219
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2193
2220
|
}
|
|
@@ -2209,8 +2236,7 @@ const deserializeAws_restJson1UpdateResourceCollectionCommandError = async (outp
|
|
|
2209
2236
|
body: await parseBody(output.body, context),
|
|
2210
2237
|
};
|
|
2211
2238
|
let response;
|
|
2212
|
-
|
|
2213
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2239
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2214
2240
|
switch (errorCode) {
|
|
2215
2241
|
case "AccessDeniedException":
|
|
2216
2242
|
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
@@ -2229,10 +2255,12 @@ const deserializeAws_restJson1UpdateResourceCollectionCommandError = async (outp
|
|
|
2229
2255
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2230
2256
|
default:
|
|
2231
2257
|
const parsedBody = parsedOutput.body;
|
|
2258
|
+
const $metadata = deserializeMetadata(output);
|
|
2259
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2232
2260
|
response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
|
|
2233
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2261
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2234
2262
|
$fault: "client",
|
|
2235
|
-
$metadata
|
|
2263
|
+
$metadata,
|
|
2236
2264
|
});
|
|
2237
2265
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2238
2266
|
}
|
|
@@ -2254,8 +2282,7 @@ const deserializeAws_restJson1UpdateServiceIntegrationCommandError = async (outp
|
|
|
2254
2282
|
body: await parseBody(output.body, context),
|
|
2255
2283
|
};
|
|
2256
2284
|
let response;
|
|
2257
|
-
|
|
2258
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2285
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2259
2286
|
switch (errorCode) {
|
|
2260
2287
|
case "AccessDeniedException":
|
|
2261
2288
|
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
@@ -2274,10 +2301,12 @@ const deserializeAws_restJson1UpdateServiceIntegrationCommandError = async (outp
|
|
|
2274
2301
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2275
2302
|
default:
|
|
2276
2303
|
const parsedBody = parsedOutput.body;
|
|
2304
|
+
const $metadata = deserializeMetadata(output);
|
|
2305
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2277
2306
|
response = new DevOpsGuruServiceException_1.DevOpsGuruServiceException({
|
|
2278
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2307
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2279
2308
|
$fault: "client",
|
|
2280
|
-
$metadata
|
|
2309
|
+
$metadata,
|
|
2281
2310
|
});
|
|
2282
2311
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2283
2312
|
}
|
|
@@ -3990,5 +4019,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
3990
4019
|
if (data["__type"] !== undefined) {
|
|
3991
4020
|
return sanitizeErrorCode(data["__type"]);
|
|
3992
4021
|
}
|
|
3993
|
-
return "";
|
|
3994
4022
|
};
|