@aws-sdk/client-devops-guru 3.503.1 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +57 -957
- package/dist-es/protocols/Aws_restJson1.js +48 -948
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -1018,7 +1018,7 @@ var se_UpdateServiceIntegrationCommand = /* @__PURE__ */ __name(async (input, co
|
|
|
1018
1018
|
}, "se_UpdateServiceIntegrationCommand");
|
|
1019
1019
|
var de_AddNotificationChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1020
1020
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1021
|
-
return
|
|
1021
|
+
return de_CommandError(output, context);
|
|
1022
1022
|
}
|
|
1023
1023
|
const contents = (0, import_smithy_client.map)({
|
|
1024
1024
|
$metadata: deserializeMetadata(output)
|
|
@@ -1030,46 +1030,9 @@ var de_AddNotificationChannelCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1030
1030
|
Object.assign(contents, doc);
|
|
1031
1031
|
return contents;
|
|
1032
1032
|
}, "de_AddNotificationChannelCommand");
|
|
1033
|
-
var de_AddNotificationChannelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1034
|
-
const parsedOutput = {
|
|
1035
|
-
...output,
|
|
1036
|
-
body: await parseErrorBody(output.body, context)
|
|
1037
|
-
};
|
|
1038
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1039
|
-
switch (errorCode) {
|
|
1040
|
-
case "AccessDeniedException":
|
|
1041
|
-
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
1042
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1043
|
-
case "ConflictException":
|
|
1044
|
-
case "com.amazonaws.devopsguru#ConflictException":
|
|
1045
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1046
|
-
case "InternalServerException":
|
|
1047
|
-
case "com.amazonaws.devopsguru#InternalServerException":
|
|
1048
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1049
|
-
case "ResourceNotFoundException":
|
|
1050
|
-
case "com.amazonaws.devopsguru#ResourceNotFoundException":
|
|
1051
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1052
|
-
case "ServiceQuotaExceededException":
|
|
1053
|
-
case "com.amazonaws.devopsguru#ServiceQuotaExceededException":
|
|
1054
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1055
|
-
case "ThrottlingException":
|
|
1056
|
-
case "com.amazonaws.devopsguru#ThrottlingException":
|
|
1057
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1058
|
-
case "ValidationException":
|
|
1059
|
-
case "com.amazonaws.devopsguru#ValidationException":
|
|
1060
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1061
|
-
default:
|
|
1062
|
-
const parsedBody = parsedOutput.body;
|
|
1063
|
-
return throwDefaultError({
|
|
1064
|
-
output,
|
|
1065
|
-
parsedBody,
|
|
1066
|
-
errorCode
|
|
1067
|
-
});
|
|
1068
|
-
}
|
|
1069
|
-
}, "de_AddNotificationChannelCommandError");
|
|
1070
1033
|
var de_DeleteInsightCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1071
1034
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1072
|
-
return
|
|
1035
|
+
return de_CommandError(output, context);
|
|
1073
1036
|
}
|
|
1074
1037
|
const contents = (0, import_smithy_client.map)({
|
|
1075
1038
|
$metadata: deserializeMetadata(output)
|
|
@@ -1077,43 +1040,9 @@ var de_DeleteInsightCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1077
1040
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1078
1041
|
return contents;
|
|
1079
1042
|
}, "de_DeleteInsightCommand");
|
|
1080
|
-
var de_DeleteInsightCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1081
|
-
const parsedOutput = {
|
|
1082
|
-
...output,
|
|
1083
|
-
body: await parseErrorBody(output.body, context)
|
|
1084
|
-
};
|
|
1085
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1086
|
-
switch (errorCode) {
|
|
1087
|
-
case "AccessDeniedException":
|
|
1088
|
-
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
1089
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1090
|
-
case "ConflictException":
|
|
1091
|
-
case "com.amazonaws.devopsguru#ConflictException":
|
|
1092
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1093
|
-
case "InternalServerException":
|
|
1094
|
-
case "com.amazonaws.devopsguru#InternalServerException":
|
|
1095
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1096
|
-
case "ResourceNotFoundException":
|
|
1097
|
-
case "com.amazonaws.devopsguru#ResourceNotFoundException":
|
|
1098
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1099
|
-
case "ThrottlingException":
|
|
1100
|
-
case "com.amazonaws.devopsguru#ThrottlingException":
|
|
1101
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1102
|
-
case "ValidationException":
|
|
1103
|
-
case "com.amazonaws.devopsguru#ValidationException":
|
|
1104
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1105
|
-
default:
|
|
1106
|
-
const parsedBody = parsedOutput.body;
|
|
1107
|
-
return throwDefaultError({
|
|
1108
|
-
output,
|
|
1109
|
-
parsedBody,
|
|
1110
|
-
errorCode
|
|
1111
|
-
});
|
|
1112
|
-
}
|
|
1113
|
-
}, "de_DeleteInsightCommandError");
|
|
1114
1043
|
var de_DescribeAccountHealthCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1115
1044
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1116
|
-
return
|
|
1045
|
+
return de_CommandError(output, context);
|
|
1117
1046
|
}
|
|
1118
1047
|
const contents = (0, import_smithy_client.map)({
|
|
1119
1048
|
$metadata: deserializeMetadata(output)
|
|
@@ -1129,37 +1058,9 @@ var de_DescribeAccountHealthCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1129
1058
|
Object.assign(contents, doc);
|
|
1130
1059
|
return contents;
|
|
1131
1060
|
}, "de_DescribeAccountHealthCommand");
|
|
1132
|
-
var de_DescribeAccountHealthCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1133
|
-
const parsedOutput = {
|
|
1134
|
-
...output,
|
|
1135
|
-
body: await parseErrorBody(output.body, context)
|
|
1136
|
-
};
|
|
1137
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1138
|
-
switch (errorCode) {
|
|
1139
|
-
case "AccessDeniedException":
|
|
1140
|
-
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
1141
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1142
|
-
case "InternalServerException":
|
|
1143
|
-
case "com.amazonaws.devopsguru#InternalServerException":
|
|
1144
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1145
|
-
case "ThrottlingException":
|
|
1146
|
-
case "com.amazonaws.devopsguru#ThrottlingException":
|
|
1147
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1148
|
-
case "ValidationException":
|
|
1149
|
-
case "com.amazonaws.devopsguru#ValidationException":
|
|
1150
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1151
|
-
default:
|
|
1152
|
-
const parsedBody = parsedOutput.body;
|
|
1153
|
-
return throwDefaultError({
|
|
1154
|
-
output,
|
|
1155
|
-
parsedBody,
|
|
1156
|
-
errorCode
|
|
1157
|
-
});
|
|
1158
|
-
}
|
|
1159
|
-
}, "de_DescribeAccountHealthCommandError");
|
|
1160
1061
|
var de_DescribeAccountOverviewCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1161
1062
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1162
|
-
return
|
|
1063
|
+
return de_CommandError(output, context);
|
|
1163
1064
|
}
|
|
1164
1065
|
const contents = (0, import_smithy_client.map)({
|
|
1165
1066
|
$metadata: deserializeMetadata(output)
|
|
@@ -1173,37 +1074,9 @@ var de_DescribeAccountOverviewCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1173
1074
|
Object.assign(contents, doc);
|
|
1174
1075
|
return contents;
|
|
1175
1076
|
}, "de_DescribeAccountOverviewCommand");
|
|
1176
|
-
var de_DescribeAccountOverviewCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1177
|
-
const parsedOutput = {
|
|
1178
|
-
...output,
|
|
1179
|
-
body: await parseErrorBody(output.body, context)
|
|
1180
|
-
};
|
|
1181
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1182
|
-
switch (errorCode) {
|
|
1183
|
-
case "AccessDeniedException":
|
|
1184
|
-
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
1185
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1186
|
-
case "InternalServerException":
|
|
1187
|
-
case "com.amazonaws.devopsguru#InternalServerException":
|
|
1188
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1189
|
-
case "ThrottlingException":
|
|
1190
|
-
case "com.amazonaws.devopsguru#ThrottlingException":
|
|
1191
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1192
|
-
case "ValidationException":
|
|
1193
|
-
case "com.amazonaws.devopsguru#ValidationException":
|
|
1194
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1195
|
-
default:
|
|
1196
|
-
const parsedBody = parsedOutput.body;
|
|
1197
|
-
return throwDefaultError({
|
|
1198
|
-
output,
|
|
1199
|
-
parsedBody,
|
|
1200
|
-
errorCode
|
|
1201
|
-
});
|
|
1202
|
-
}
|
|
1203
|
-
}, "de_DescribeAccountOverviewCommandError");
|
|
1204
1077
|
var de_DescribeAnomalyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1205
1078
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1206
|
-
return
|
|
1079
|
+
return de_CommandError(output, context);
|
|
1207
1080
|
}
|
|
1208
1081
|
const contents = (0, import_smithy_client.map)({
|
|
1209
1082
|
$metadata: deserializeMetadata(output)
|
|
@@ -1216,40 +1089,9 @@ var de_DescribeAnomalyCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1216
1089
|
Object.assign(contents, doc);
|
|
1217
1090
|
return contents;
|
|
1218
1091
|
}, "de_DescribeAnomalyCommand");
|
|
1219
|
-
var de_DescribeAnomalyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1220
|
-
const parsedOutput = {
|
|
1221
|
-
...output,
|
|
1222
|
-
body: await parseErrorBody(output.body, context)
|
|
1223
|
-
};
|
|
1224
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1225
|
-
switch (errorCode) {
|
|
1226
|
-
case "AccessDeniedException":
|
|
1227
|
-
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
1228
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1229
|
-
case "InternalServerException":
|
|
1230
|
-
case "com.amazonaws.devopsguru#InternalServerException":
|
|
1231
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1232
|
-
case "ResourceNotFoundException":
|
|
1233
|
-
case "com.amazonaws.devopsguru#ResourceNotFoundException":
|
|
1234
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1235
|
-
case "ThrottlingException":
|
|
1236
|
-
case "com.amazonaws.devopsguru#ThrottlingException":
|
|
1237
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1238
|
-
case "ValidationException":
|
|
1239
|
-
case "com.amazonaws.devopsguru#ValidationException":
|
|
1240
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1241
|
-
default:
|
|
1242
|
-
const parsedBody = parsedOutput.body;
|
|
1243
|
-
return throwDefaultError({
|
|
1244
|
-
output,
|
|
1245
|
-
parsedBody,
|
|
1246
|
-
errorCode
|
|
1247
|
-
});
|
|
1248
|
-
}
|
|
1249
|
-
}, "de_DescribeAnomalyCommandError");
|
|
1250
1092
|
var de_DescribeEventSourcesConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1251
1093
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1252
|
-
return
|
|
1094
|
+
return de_CommandError(output, context);
|
|
1253
1095
|
}
|
|
1254
1096
|
const contents = (0, import_smithy_client.map)({
|
|
1255
1097
|
$metadata: deserializeMetadata(output)
|
|
@@ -1261,37 +1103,9 @@ var de_DescribeEventSourcesConfigCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1261
1103
|
Object.assign(contents, doc);
|
|
1262
1104
|
return contents;
|
|
1263
1105
|
}, "de_DescribeEventSourcesConfigCommand");
|
|
1264
|
-
var de_DescribeEventSourcesConfigCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1265
|
-
const parsedOutput = {
|
|
1266
|
-
...output,
|
|
1267
|
-
body: await parseErrorBody(output.body, context)
|
|
1268
|
-
};
|
|
1269
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1270
|
-
switch (errorCode) {
|
|
1271
|
-
case "AccessDeniedException":
|
|
1272
|
-
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
1273
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1274
|
-
case "InternalServerException":
|
|
1275
|
-
case "com.amazonaws.devopsguru#InternalServerException":
|
|
1276
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1277
|
-
case "ThrottlingException":
|
|
1278
|
-
case "com.amazonaws.devopsguru#ThrottlingException":
|
|
1279
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1280
|
-
case "ValidationException":
|
|
1281
|
-
case "com.amazonaws.devopsguru#ValidationException":
|
|
1282
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1283
|
-
default:
|
|
1284
|
-
const parsedBody = parsedOutput.body;
|
|
1285
|
-
return throwDefaultError({
|
|
1286
|
-
output,
|
|
1287
|
-
parsedBody,
|
|
1288
|
-
errorCode
|
|
1289
|
-
});
|
|
1290
|
-
}
|
|
1291
|
-
}, "de_DescribeEventSourcesConfigCommandError");
|
|
1292
1106
|
var de_DescribeFeedbackCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1293
1107
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1294
|
-
return
|
|
1108
|
+
return de_CommandError(output, context);
|
|
1295
1109
|
}
|
|
1296
1110
|
const contents = (0, import_smithy_client.map)({
|
|
1297
1111
|
$metadata: deserializeMetadata(output)
|
|
@@ -1303,40 +1117,9 @@ var de_DescribeFeedbackCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1303
1117
|
Object.assign(contents, doc);
|
|
1304
1118
|
return contents;
|
|
1305
1119
|
}, "de_DescribeFeedbackCommand");
|
|
1306
|
-
var de_DescribeFeedbackCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1307
|
-
const parsedOutput = {
|
|
1308
|
-
...output,
|
|
1309
|
-
body: await parseErrorBody(output.body, context)
|
|
1310
|
-
};
|
|
1311
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1312
|
-
switch (errorCode) {
|
|
1313
|
-
case "AccessDeniedException":
|
|
1314
|
-
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
1315
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1316
|
-
case "InternalServerException":
|
|
1317
|
-
case "com.amazonaws.devopsguru#InternalServerException":
|
|
1318
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1319
|
-
case "ResourceNotFoundException":
|
|
1320
|
-
case "com.amazonaws.devopsguru#ResourceNotFoundException":
|
|
1321
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1322
|
-
case "ThrottlingException":
|
|
1323
|
-
case "com.amazonaws.devopsguru#ThrottlingException":
|
|
1324
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1325
|
-
case "ValidationException":
|
|
1326
|
-
case "com.amazonaws.devopsguru#ValidationException":
|
|
1327
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1328
|
-
default:
|
|
1329
|
-
const parsedBody = parsedOutput.body;
|
|
1330
|
-
return throwDefaultError({
|
|
1331
|
-
output,
|
|
1332
|
-
parsedBody,
|
|
1333
|
-
errorCode
|
|
1334
|
-
});
|
|
1335
|
-
}
|
|
1336
|
-
}, "de_DescribeFeedbackCommandError");
|
|
1337
1120
|
var de_DescribeInsightCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1338
1121
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1339
|
-
return
|
|
1122
|
+
return de_CommandError(output, context);
|
|
1340
1123
|
}
|
|
1341
1124
|
const contents = (0, import_smithy_client.map)({
|
|
1342
1125
|
$metadata: deserializeMetadata(output)
|
|
@@ -1349,40 +1132,9 @@ var de_DescribeInsightCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1349
1132
|
Object.assign(contents, doc);
|
|
1350
1133
|
return contents;
|
|
1351
1134
|
}, "de_DescribeInsightCommand");
|
|
1352
|
-
var de_DescribeInsightCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1353
|
-
const parsedOutput = {
|
|
1354
|
-
...output,
|
|
1355
|
-
body: await parseErrorBody(output.body, context)
|
|
1356
|
-
};
|
|
1357
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1358
|
-
switch (errorCode) {
|
|
1359
|
-
case "AccessDeniedException":
|
|
1360
|
-
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
1361
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1362
|
-
case "InternalServerException":
|
|
1363
|
-
case "com.amazonaws.devopsguru#InternalServerException":
|
|
1364
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1365
|
-
case "ResourceNotFoundException":
|
|
1366
|
-
case "com.amazonaws.devopsguru#ResourceNotFoundException":
|
|
1367
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1368
|
-
case "ThrottlingException":
|
|
1369
|
-
case "com.amazonaws.devopsguru#ThrottlingException":
|
|
1370
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1371
|
-
case "ValidationException":
|
|
1372
|
-
case "com.amazonaws.devopsguru#ValidationException":
|
|
1373
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1374
|
-
default:
|
|
1375
|
-
const parsedBody = parsedOutput.body;
|
|
1376
|
-
return throwDefaultError({
|
|
1377
|
-
output,
|
|
1378
|
-
parsedBody,
|
|
1379
|
-
errorCode
|
|
1380
|
-
});
|
|
1381
|
-
}
|
|
1382
|
-
}, "de_DescribeInsightCommandError");
|
|
1383
1135
|
var de_DescribeOrganizationHealthCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1384
1136
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1385
|
-
return
|
|
1137
|
+
return de_CommandError(output, context);
|
|
1386
1138
|
}
|
|
1387
1139
|
const contents = (0, import_smithy_client.map)({
|
|
1388
1140
|
$metadata: deserializeMetadata(output)
|
|
@@ -1397,37 +1149,9 @@ var de_DescribeOrganizationHealthCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1397
1149
|
Object.assign(contents, doc);
|
|
1398
1150
|
return contents;
|
|
1399
1151
|
}, "de_DescribeOrganizationHealthCommand");
|
|
1400
|
-
var de_DescribeOrganizationHealthCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1401
|
-
const parsedOutput = {
|
|
1402
|
-
...output,
|
|
1403
|
-
body: await parseErrorBody(output.body, context)
|
|
1404
|
-
};
|
|
1405
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1406
|
-
switch (errorCode) {
|
|
1407
|
-
case "AccessDeniedException":
|
|
1408
|
-
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
1409
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1410
|
-
case "InternalServerException":
|
|
1411
|
-
case "com.amazonaws.devopsguru#InternalServerException":
|
|
1412
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1413
|
-
case "ThrottlingException":
|
|
1414
|
-
case "com.amazonaws.devopsguru#ThrottlingException":
|
|
1415
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1416
|
-
case "ValidationException":
|
|
1417
|
-
case "com.amazonaws.devopsguru#ValidationException":
|
|
1418
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1419
|
-
default:
|
|
1420
|
-
const parsedBody = parsedOutput.body;
|
|
1421
|
-
return throwDefaultError({
|
|
1422
|
-
output,
|
|
1423
|
-
parsedBody,
|
|
1424
|
-
errorCode
|
|
1425
|
-
});
|
|
1426
|
-
}
|
|
1427
|
-
}, "de_DescribeOrganizationHealthCommandError");
|
|
1428
1152
|
var de_DescribeOrganizationOverviewCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1429
1153
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1430
|
-
return
|
|
1154
|
+
return de_CommandError(output, context);
|
|
1431
1155
|
}
|
|
1432
1156
|
const contents = (0, import_smithy_client.map)({
|
|
1433
1157
|
$metadata: deserializeMetadata(output)
|
|
@@ -1440,37 +1164,9 @@ var de_DescribeOrganizationOverviewCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1440
1164
|
Object.assign(contents, doc);
|
|
1441
1165
|
return contents;
|
|
1442
1166
|
}, "de_DescribeOrganizationOverviewCommand");
|
|
1443
|
-
var de_DescribeOrganizationOverviewCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1444
|
-
const parsedOutput = {
|
|
1445
|
-
...output,
|
|
1446
|
-
body: await parseErrorBody(output.body, context)
|
|
1447
|
-
};
|
|
1448
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1449
|
-
switch (errorCode) {
|
|
1450
|
-
case "AccessDeniedException":
|
|
1451
|
-
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
1452
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1453
|
-
case "InternalServerException":
|
|
1454
|
-
case "com.amazonaws.devopsguru#InternalServerException":
|
|
1455
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1456
|
-
case "ThrottlingException":
|
|
1457
|
-
case "com.amazonaws.devopsguru#ThrottlingException":
|
|
1458
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1459
|
-
case "ValidationException":
|
|
1460
|
-
case "com.amazonaws.devopsguru#ValidationException":
|
|
1461
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1462
|
-
default:
|
|
1463
|
-
const parsedBody = parsedOutput.body;
|
|
1464
|
-
return throwDefaultError({
|
|
1465
|
-
output,
|
|
1466
|
-
parsedBody,
|
|
1467
|
-
errorCode
|
|
1468
|
-
});
|
|
1469
|
-
}
|
|
1470
|
-
}, "de_DescribeOrganizationOverviewCommandError");
|
|
1471
1167
|
var de_DescribeOrganizationResourceCollectionHealthCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1472
1168
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1473
|
-
return
|
|
1169
|
+
return de_CommandError(output, context);
|
|
1474
1170
|
}
|
|
1475
1171
|
const contents = (0, import_smithy_client.map)({
|
|
1476
1172
|
$metadata: deserializeMetadata(output)
|
|
@@ -1486,37 +1182,9 @@ var de_DescribeOrganizationResourceCollectionHealthCommand = /* @__PURE__ */ __n
|
|
|
1486
1182
|
Object.assign(contents, doc);
|
|
1487
1183
|
return contents;
|
|
1488
1184
|
}, "de_DescribeOrganizationResourceCollectionHealthCommand");
|
|
1489
|
-
var de_DescribeOrganizationResourceCollectionHealthCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1490
|
-
const parsedOutput = {
|
|
1491
|
-
...output,
|
|
1492
|
-
body: await parseErrorBody(output.body, context)
|
|
1493
|
-
};
|
|
1494
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1495
|
-
switch (errorCode) {
|
|
1496
|
-
case "AccessDeniedException":
|
|
1497
|
-
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
1498
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1499
|
-
case "InternalServerException":
|
|
1500
|
-
case "com.amazonaws.devopsguru#InternalServerException":
|
|
1501
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1502
|
-
case "ThrottlingException":
|
|
1503
|
-
case "com.amazonaws.devopsguru#ThrottlingException":
|
|
1504
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1505
|
-
case "ValidationException":
|
|
1506
|
-
case "com.amazonaws.devopsguru#ValidationException":
|
|
1507
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1508
|
-
default:
|
|
1509
|
-
const parsedBody = parsedOutput.body;
|
|
1510
|
-
return throwDefaultError({
|
|
1511
|
-
output,
|
|
1512
|
-
parsedBody,
|
|
1513
|
-
errorCode
|
|
1514
|
-
});
|
|
1515
|
-
}
|
|
1516
|
-
}, "de_DescribeOrganizationResourceCollectionHealthCommandError");
|
|
1517
1185
|
var de_DescribeResourceCollectionHealthCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1518
1186
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1519
|
-
return
|
|
1187
|
+
return de_CommandError(output, context);
|
|
1520
1188
|
}
|
|
1521
1189
|
const contents = (0, import_smithy_client.map)({
|
|
1522
1190
|
$metadata: deserializeMetadata(output)
|
|
@@ -1531,37 +1199,9 @@ var de_DescribeResourceCollectionHealthCommand = /* @__PURE__ */ __name(async (o
|
|
|
1531
1199
|
Object.assign(contents, doc);
|
|
1532
1200
|
return contents;
|
|
1533
1201
|
}, "de_DescribeResourceCollectionHealthCommand");
|
|
1534
|
-
var de_DescribeResourceCollectionHealthCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1535
|
-
const parsedOutput = {
|
|
1536
|
-
...output,
|
|
1537
|
-
body: await parseErrorBody(output.body, context)
|
|
1538
|
-
};
|
|
1539
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1540
|
-
switch (errorCode) {
|
|
1541
|
-
case "AccessDeniedException":
|
|
1542
|
-
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
1543
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1544
|
-
case "InternalServerException":
|
|
1545
|
-
case "com.amazonaws.devopsguru#InternalServerException":
|
|
1546
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1547
|
-
case "ThrottlingException":
|
|
1548
|
-
case "com.amazonaws.devopsguru#ThrottlingException":
|
|
1549
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1550
|
-
case "ValidationException":
|
|
1551
|
-
case "com.amazonaws.devopsguru#ValidationException":
|
|
1552
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1553
|
-
default:
|
|
1554
|
-
const parsedBody = parsedOutput.body;
|
|
1555
|
-
return throwDefaultError({
|
|
1556
|
-
output,
|
|
1557
|
-
parsedBody,
|
|
1558
|
-
errorCode
|
|
1559
|
-
});
|
|
1560
|
-
}
|
|
1561
|
-
}, "de_DescribeResourceCollectionHealthCommandError");
|
|
1562
1202
|
var de_DescribeServiceIntegrationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1563
1203
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1564
|
-
return
|
|
1204
|
+
return de_CommandError(output, context);
|
|
1565
1205
|
}
|
|
1566
1206
|
const contents = (0, import_smithy_client.map)({
|
|
1567
1207
|
$metadata: deserializeMetadata(output)
|
|
@@ -1573,40 +1213,9 @@ var de_DescribeServiceIntegrationCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1573
1213
|
Object.assign(contents, doc);
|
|
1574
1214
|
return contents;
|
|
1575
1215
|
}, "de_DescribeServiceIntegrationCommand");
|
|
1576
|
-
var de_DescribeServiceIntegrationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1577
|
-
const parsedOutput = {
|
|
1578
|
-
...output,
|
|
1579
|
-
body: await parseErrorBody(output.body, context)
|
|
1580
|
-
};
|
|
1581
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1582
|
-
switch (errorCode) {
|
|
1583
|
-
case "AccessDeniedException":
|
|
1584
|
-
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
1585
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1586
|
-
case "InternalServerException":
|
|
1587
|
-
case "com.amazonaws.devopsguru#InternalServerException":
|
|
1588
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1589
|
-
case "ResourceNotFoundException":
|
|
1590
|
-
case "com.amazonaws.devopsguru#ResourceNotFoundException":
|
|
1591
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1592
|
-
case "ThrottlingException":
|
|
1593
|
-
case "com.amazonaws.devopsguru#ThrottlingException":
|
|
1594
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1595
|
-
case "ValidationException":
|
|
1596
|
-
case "com.amazonaws.devopsguru#ValidationException":
|
|
1597
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1598
|
-
default:
|
|
1599
|
-
const parsedBody = parsedOutput.body;
|
|
1600
|
-
return throwDefaultError({
|
|
1601
|
-
output,
|
|
1602
|
-
parsedBody,
|
|
1603
|
-
errorCode
|
|
1604
|
-
});
|
|
1605
|
-
}
|
|
1606
|
-
}, "de_DescribeServiceIntegrationCommandError");
|
|
1607
1216
|
var de_GetCostEstimationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1608
1217
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1609
|
-
return
|
|
1218
|
+
return de_CommandError(output, context);
|
|
1610
1219
|
}
|
|
1611
1220
|
const contents = (0, import_smithy_client.map)({
|
|
1612
1221
|
$metadata: deserializeMetadata(output)
|
|
@@ -1623,40 +1232,9 @@ var de_GetCostEstimationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1623
1232
|
Object.assign(contents, doc);
|
|
1624
1233
|
return contents;
|
|
1625
1234
|
}, "de_GetCostEstimationCommand");
|
|
1626
|
-
var de_GetCostEstimationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1627
|
-
const parsedOutput = {
|
|
1628
|
-
...output,
|
|
1629
|
-
body: await parseErrorBody(output.body, context)
|
|
1630
|
-
};
|
|
1631
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1632
|
-
switch (errorCode) {
|
|
1633
|
-
case "AccessDeniedException":
|
|
1634
|
-
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
1635
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1636
|
-
case "InternalServerException":
|
|
1637
|
-
case "com.amazonaws.devopsguru#InternalServerException":
|
|
1638
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1639
|
-
case "ResourceNotFoundException":
|
|
1640
|
-
case "com.amazonaws.devopsguru#ResourceNotFoundException":
|
|
1641
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1642
|
-
case "ThrottlingException":
|
|
1643
|
-
case "com.amazonaws.devopsguru#ThrottlingException":
|
|
1644
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1645
|
-
case "ValidationException":
|
|
1646
|
-
case "com.amazonaws.devopsguru#ValidationException":
|
|
1647
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1648
|
-
default:
|
|
1649
|
-
const parsedBody = parsedOutput.body;
|
|
1650
|
-
return throwDefaultError({
|
|
1651
|
-
output,
|
|
1652
|
-
parsedBody,
|
|
1653
|
-
errorCode
|
|
1654
|
-
});
|
|
1655
|
-
}
|
|
1656
|
-
}, "de_GetCostEstimationCommandError");
|
|
1657
1235
|
var de_GetResourceCollectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1658
1236
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1659
|
-
return
|
|
1237
|
+
return de_CommandError(output, context);
|
|
1660
1238
|
}
|
|
1661
1239
|
const contents = (0, import_smithy_client.map)({
|
|
1662
1240
|
$metadata: deserializeMetadata(output)
|
|
@@ -1669,40 +1247,9 @@ var de_GetResourceCollectionCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1669
1247
|
Object.assign(contents, doc);
|
|
1670
1248
|
return contents;
|
|
1671
1249
|
}, "de_GetResourceCollectionCommand");
|
|
1672
|
-
var de_GetResourceCollectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1673
|
-
const parsedOutput = {
|
|
1674
|
-
...output,
|
|
1675
|
-
body: await parseErrorBody(output.body, context)
|
|
1676
|
-
};
|
|
1677
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1678
|
-
switch (errorCode) {
|
|
1679
|
-
case "AccessDeniedException":
|
|
1680
|
-
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
1681
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1682
|
-
case "InternalServerException":
|
|
1683
|
-
case "com.amazonaws.devopsguru#InternalServerException":
|
|
1684
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1685
|
-
case "ResourceNotFoundException":
|
|
1686
|
-
case "com.amazonaws.devopsguru#ResourceNotFoundException":
|
|
1687
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1688
|
-
case "ThrottlingException":
|
|
1689
|
-
case "com.amazonaws.devopsguru#ThrottlingException":
|
|
1690
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1691
|
-
case "ValidationException":
|
|
1692
|
-
case "com.amazonaws.devopsguru#ValidationException":
|
|
1693
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1694
|
-
default:
|
|
1695
|
-
const parsedBody = parsedOutput.body;
|
|
1696
|
-
return throwDefaultError({
|
|
1697
|
-
output,
|
|
1698
|
-
parsedBody,
|
|
1699
|
-
errorCode
|
|
1700
|
-
});
|
|
1701
|
-
}
|
|
1702
|
-
}, "de_GetResourceCollectionCommandError");
|
|
1703
1250
|
var de_ListAnomaliesForInsightCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1704
1251
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1705
|
-
return
|
|
1252
|
+
return de_CommandError(output, context);
|
|
1706
1253
|
}
|
|
1707
1254
|
const contents = (0, import_smithy_client.map)({
|
|
1708
1255
|
$metadata: deserializeMetadata(output)
|
|
@@ -1716,40 +1263,9 @@ var de_ListAnomaliesForInsightCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1716
1263
|
Object.assign(contents, doc);
|
|
1717
1264
|
return contents;
|
|
1718
1265
|
}, "de_ListAnomaliesForInsightCommand");
|
|
1719
|
-
var de_ListAnomaliesForInsightCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1720
|
-
const parsedOutput = {
|
|
1721
|
-
...output,
|
|
1722
|
-
body: await parseErrorBody(output.body, context)
|
|
1723
|
-
};
|
|
1724
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1725
|
-
switch (errorCode) {
|
|
1726
|
-
case "AccessDeniedException":
|
|
1727
|
-
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
1728
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1729
|
-
case "InternalServerException":
|
|
1730
|
-
case "com.amazonaws.devopsguru#InternalServerException":
|
|
1731
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1732
|
-
case "ResourceNotFoundException":
|
|
1733
|
-
case "com.amazonaws.devopsguru#ResourceNotFoundException":
|
|
1734
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1735
|
-
case "ThrottlingException":
|
|
1736
|
-
case "com.amazonaws.devopsguru#ThrottlingException":
|
|
1737
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1738
|
-
case "ValidationException":
|
|
1739
|
-
case "com.amazonaws.devopsguru#ValidationException":
|
|
1740
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1741
|
-
default:
|
|
1742
|
-
const parsedBody = parsedOutput.body;
|
|
1743
|
-
return throwDefaultError({
|
|
1744
|
-
output,
|
|
1745
|
-
parsedBody,
|
|
1746
|
-
errorCode
|
|
1747
|
-
});
|
|
1748
|
-
}
|
|
1749
|
-
}, "de_ListAnomaliesForInsightCommandError");
|
|
1750
1266
|
var de_ListAnomalousLogGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1751
1267
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1752
|
-
return
|
|
1268
|
+
return de_CommandError(output, context);
|
|
1753
1269
|
}
|
|
1754
1270
|
const contents = (0, import_smithy_client.map)({
|
|
1755
1271
|
$metadata: deserializeMetadata(output)
|
|
@@ -1763,40 +1279,9 @@ var de_ListAnomalousLogGroupsCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1763
1279
|
Object.assign(contents, doc);
|
|
1764
1280
|
return contents;
|
|
1765
1281
|
}, "de_ListAnomalousLogGroupsCommand");
|
|
1766
|
-
var de_ListAnomalousLogGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1767
|
-
const parsedOutput = {
|
|
1768
|
-
...output,
|
|
1769
|
-
body: await parseErrorBody(output.body, context)
|
|
1770
|
-
};
|
|
1771
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1772
|
-
switch (errorCode) {
|
|
1773
|
-
case "AccessDeniedException":
|
|
1774
|
-
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
1775
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1776
|
-
case "InternalServerException":
|
|
1777
|
-
case "com.amazonaws.devopsguru#InternalServerException":
|
|
1778
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1779
|
-
case "ResourceNotFoundException":
|
|
1780
|
-
case "com.amazonaws.devopsguru#ResourceNotFoundException":
|
|
1781
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1782
|
-
case "ThrottlingException":
|
|
1783
|
-
case "com.amazonaws.devopsguru#ThrottlingException":
|
|
1784
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1785
|
-
case "ValidationException":
|
|
1786
|
-
case "com.amazonaws.devopsguru#ValidationException":
|
|
1787
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1788
|
-
default:
|
|
1789
|
-
const parsedBody = parsedOutput.body;
|
|
1790
|
-
return throwDefaultError({
|
|
1791
|
-
output,
|
|
1792
|
-
parsedBody,
|
|
1793
|
-
errorCode
|
|
1794
|
-
});
|
|
1795
|
-
}
|
|
1796
|
-
}, "de_ListAnomalousLogGroupsCommandError");
|
|
1797
1282
|
var de_ListEventsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1798
1283
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1799
|
-
return
|
|
1284
|
+
return de_CommandError(output, context);
|
|
1800
1285
|
}
|
|
1801
1286
|
const contents = (0, import_smithy_client.map)({
|
|
1802
1287
|
$metadata: deserializeMetadata(output)
|
|
@@ -1809,40 +1294,9 @@ var de_ListEventsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1809
1294
|
Object.assign(contents, doc);
|
|
1810
1295
|
return contents;
|
|
1811
1296
|
}, "de_ListEventsCommand");
|
|
1812
|
-
var de_ListEventsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1813
|
-
const parsedOutput = {
|
|
1814
|
-
...output,
|
|
1815
|
-
body: await parseErrorBody(output.body, context)
|
|
1816
|
-
};
|
|
1817
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1818
|
-
switch (errorCode) {
|
|
1819
|
-
case "AccessDeniedException":
|
|
1820
|
-
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
1821
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1822
|
-
case "InternalServerException":
|
|
1823
|
-
case "com.amazonaws.devopsguru#InternalServerException":
|
|
1824
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1825
|
-
case "ResourceNotFoundException":
|
|
1826
|
-
case "com.amazonaws.devopsguru#ResourceNotFoundException":
|
|
1827
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1828
|
-
case "ThrottlingException":
|
|
1829
|
-
case "com.amazonaws.devopsguru#ThrottlingException":
|
|
1830
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1831
|
-
case "ValidationException":
|
|
1832
|
-
case "com.amazonaws.devopsguru#ValidationException":
|
|
1833
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1834
|
-
default:
|
|
1835
|
-
const parsedBody = parsedOutput.body;
|
|
1836
|
-
return throwDefaultError({
|
|
1837
|
-
output,
|
|
1838
|
-
parsedBody,
|
|
1839
|
-
errorCode
|
|
1840
|
-
});
|
|
1841
|
-
}
|
|
1842
|
-
}, "de_ListEventsCommandError");
|
|
1843
1297
|
var de_ListInsightsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1844
1298
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1845
|
-
return
|
|
1299
|
+
return de_CommandError(output, context);
|
|
1846
1300
|
}
|
|
1847
1301
|
const contents = (0, import_smithy_client.map)({
|
|
1848
1302
|
$metadata: deserializeMetadata(output)
|
|
@@ -1856,37 +1310,9 @@ var de_ListInsightsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1856
1310
|
Object.assign(contents, doc);
|
|
1857
1311
|
return contents;
|
|
1858
1312
|
}, "de_ListInsightsCommand");
|
|
1859
|
-
var de_ListInsightsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1860
|
-
const parsedOutput = {
|
|
1861
|
-
...output,
|
|
1862
|
-
body: await parseErrorBody(output.body, context)
|
|
1863
|
-
};
|
|
1864
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1865
|
-
switch (errorCode) {
|
|
1866
|
-
case "AccessDeniedException":
|
|
1867
|
-
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
1868
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1869
|
-
case "InternalServerException":
|
|
1870
|
-
case "com.amazonaws.devopsguru#InternalServerException":
|
|
1871
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1872
|
-
case "ThrottlingException":
|
|
1873
|
-
case "com.amazonaws.devopsguru#ThrottlingException":
|
|
1874
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1875
|
-
case "ValidationException":
|
|
1876
|
-
case "com.amazonaws.devopsguru#ValidationException":
|
|
1877
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1878
|
-
default:
|
|
1879
|
-
const parsedBody = parsedOutput.body;
|
|
1880
|
-
return throwDefaultError({
|
|
1881
|
-
output,
|
|
1882
|
-
parsedBody,
|
|
1883
|
-
errorCode
|
|
1884
|
-
});
|
|
1885
|
-
}
|
|
1886
|
-
}, "de_ListInsightsCommandError");
|
|
1887
1313
|
var de_ListMonitoredResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1888
1314
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1889
|
-
return
|
|
1315
|
+
return de_CommandError(output, context);
|
|
1890
1316
|
}
|
|
1891
1317
|
const contents = (0, import_smithy_client.map)({
|
|
1892
1318
|
$metadata: deserializeMetadata(output)
|
|
@@ -1899,37 +1325,9 @@ var de_ListMonitoredResourcesCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1899
1325
|
Object.assign(contents, doc);
|
|
1900
1326
|
return contents;
|
|
1901
1327
|
}, "de_ListMonitoredResourcesCommand");
|
|
1902
|
-
var de_ListMonitoredResourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1903
|
-
const parsedOutput = {
|
|
1904
|
-
...output,
|
|
1905
|
-
body: await parseErrorBody(output.body, context)
|
|
1906
|
-
};
|
|
1907
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1908
|
-
switch (errorCode) {
|
|
1909
|
-
case "InternalServerException":
|
|
1910
|
-
case "com.amazonaws.devopsguru#InternalServerException":
|
|
1911
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1912
|
-
case "ResourceNotFoundException":
|
|
1913
|
-
case "com.amazonaws.devopsguru#ResourceNotFoundException":
|
|
1914
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1915
|
-
case "ThrottlingException":
|
|
1916
|
-
case "com.amazonaws.devopsguru#ThrottlingException":
|
|
1917
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1918
|
-
case "ValidationException":
|
|
1919
|
-
case "com.amazonaws.devopsguru#ValidationException":
|
|
1920
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1921
|
-
default:
|
|
1922
|
-
const parsedBody = parsedOutput.body;
|
|
1923
|
-
return throwDefaultError({
|
|
1924
|
-
output,
|
|
1925
|
-
parsedBody,
|
|
1926
|
-
errorCode
|
|
1927
|
-
});
|
|
1928
|
-
}
|
|
1929
|
-
}, "de_ListMonitoredResourcesCommandError");
|
|
1930
1328
|
var de_ListNotificationChannelsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1931
1329
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1932
|
-
return
|
|
1330
|
+
return de_CommandError(output, context);
|
|
1933
1331
|
}
|
|
1934
1332
|
const contents = (0, import_smithy_client.map)({
|
|
1935
1333
|
$metadata: deserializeMetadata(output)
|
|
@@ -1938,85 +1336,29 @@ var de_ListNotificationChannelsCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1938
1336
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1939
1337
|
Channels: import_smithy_client._json,
|
|
1940
1338
|
NextToken: import_smithy_client.expectString
|
|
1941
|
-
});
|
|
1942
|
-
Object.assign(contents, doc);
|
|
1943
|
-
return contents;
|
|
1944
|
-
}, "de_ListNotificationChannelsCommand");
|
|
1945
|
-
var
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
body: await parseErrorBody(output.body, context)
|
|
1949
|
-
};
|
|
1950
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1951
|
-
switch (errorCode) {
|
|
1952
|
-
case "AccessDeniedException":
|
|
1953
|
-
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
1954
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1955
|
-
case "InternalServerException":
|
|
1956
|
-
case "com.amazonaws.devopsguru#InternalServerException":
|
|
1957
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1958
|
-
case "ThrottlingException":
|
|
1959
|
-
case "com.amazonaws.devopsguru#ThrottlingException":
|
|
1960
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1961
|
-
case "ValidationException":
|
|
1962
|
-
case "com.amazonaws.devopsguru#ValidationException":
|
|
1963
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1964
|
-
default:
|
|
1965
|
-
const parsedBody = parsedOutput.body;
|
|
1966
|
-
return throwDefaultError({
|
|
1967
|
-
output,
|
|
1968
|
-
parsedBody,
|
|
1969
|
-
errorCode
|
|
1970
|
-
});
|
|
1971
|
-
}
|
|
1972
|
-
}, "de_ListNotificationChannelsCommandError");
|
|
1973
|
-
var de_ListOrganizationInsightsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1974
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1975
|
-
return de_ListOrganizationInsightsCommandError(output, context);
|
|
1976
|
-
}
|
|
1977
|
-
const contents = (0, import_smithy_client.map)({
|
|
1978
|
-
$metadata: deserializeMetadata(output)
|
|
1979
|
-
});
|
|
1980
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1981
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1982
|
-
NextToken: import_smithy_client.expectString,
|
|
1983
|
-
ProactiveInsights: (_) => de_ProactiveOrganizationInsights(_, context),
|
|
1984
|
-
ReactiveInsights: (_) => de_ReactiveOrganizationInsights(_, context)
|
|
1985
|
-
});
|
|
1986
|
-
Object.assign(contents, doc);
|
|
1987
|
-
return contents;
|
|
1988
|
-
}, "de_ListOrganizationInsightsCommand");
|
|
1989
|
-
var de_ListOrganizationInsightsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1990
|
-
const parsedOutput = {
|
|
1991
|
-
...output,
|
|
1992
|
-
body: await parseErrorBody(output.body, context)
|
|
1993
|
-
};
|
|
1994
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1995
|
-
switch (errorCode) {
|
|
1996
|
-
case "AccessDeniedException":
|
|
1997
|
-
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
1998
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1999
|
-
case "InternalServerException":
|
|
2000
|
-
case "com.amazonaws.devopsguru#InternalServerException":
|
|
2001
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2002
|
-
case "ThrottlingException":
|
|
2003
|
-
case "com.amazonaws.devopsguru#ThrottlingException":
|
|
2004
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2005
|
-
case "ValidationException":
|
|
2006
|
-
case "com.amazonaws.devopsguru#ValidationException":
|
|
2007
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2008
|
-
default:
|
|
2009
|
-
const parsedBody = parsedOutput.body;
|
|
2010
|
-
return throwDefaultError({
|
|
2011
|
-
output,
|
|
2012
|
-
parsedBody,
|
|
2013
|
-
errorCode
|
|
2014
|
-
});
|
|
1339
|
+
});
|
|
1340
|
+
Object.assign(contents, doc);
|
|
1341
|
+
return contents;
|
|
1342
|
+
}, "de_ListNotificationChannelsCommand");
|
|
1343
|
+
var de_ListOrganizationInsightsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1344
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1345
|
+
return de_CommandError(output, context);
|
|
2015
1346
|
}
|
|
2016
|
-
|
|
1347
|
+
const contents = (0, import_smithy_client.map)({
|
|
1348
|
+
$metadata: deserializeMetadata(output)
|
|
1349
|
+
});
|
|
1350
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1351
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1352
|
+
NextToken: import_smithy_client.expectString,
|
|
1353
|
+
ProactiveInsights: (_) => de_ProactiveOrganizationInsights(_, context),
|
|
1354
|
+
ReactiveInsights: (_) => de_ReactiveOrganizationInsights(_, context)
|
|
1355
|
+
});
|
|
1356
|
+
Object.assign(contents, doc);
|
|
1357
|
+
return contents;
|
|
1358
|
+
}, "de_ListOrganizationInsightsCommand");
|
|
2017
1359
|
var de_ListRecommendationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2018
1360
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2019
|
-
return
|
|
1361
|
+
return de_CommandError(output, context);
|
|
2020
1362
|
}
|
|
2021
1363
|
const contents = (0, import_smithy_client.map)({
|
|
2022
1364
|
$metadata: deserializeMetadata(output)
|
|
@@ -2029,40 +1371,9 @@ var de_ListRecommendationsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2029
1371
|
Object.assign(contents, doc);
|
|
2030
1372
|
return contents;
|
|
2031
1373
|
}, "de_ListRecommendationsCommand");
|
|
2032
|
-
var de_ListRecommendationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2033
|
-
const parsedOutput = {
|
|
2034
|
-
...output,
|
|
2035
|
-
body: await parseErrorBody(output.body, context)
|
|
2036
|
-
};
|
|
2037
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2038
|
-
switch (errorCode) {
|
|
2039
|
-
case "AccessDeniedException":
|
|
2040
|
-
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
2041
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2042
|
-
case "InternalServerException":
|
|
2043
|
-
case "com.amazonaws.devopsguru#InternalServerException":
|
|
2044
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2045
|
-
case "ResourceNotFoundException":
|
|
2046
|
-
case "com.amazonaws.devopsguru#ResourceNotFoundException":
|
|
2047
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2048
|
-
case "ThrottlingException":
|
|
2049
|
-
case "com.amazonaws.devopsguru#ThrottlingException":
|
|
2050
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2051
|
-
case "ValidationException":
|
|
2052
|
-
case "com.amazonaws.devopsguru#ValidationException":
|
|
2053
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2054
|
-
default:
|
|
2055
|
-
const parsedBody = parsedOutput.body;
|
|
2056
|
-
return throwDefaultError({
|
|
2057
|
-
output,
|
|
2058
|
-
parsedBody,
|
|
2059
|
-
errorCode
|
|
2060
|
-
});
|
|
2061
|
-
}
|
|
2062
|
-
}, "de_ListRecommendationsCommandError");
|
|
2063
1374
|
var de_PutFeedbackCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2064
1375
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2065
|
-
return
|
|
1376
|
+
return de_CommandError(output, context);
|
|
2066
1377
|
}
|
|
2067
1378
|
const contents = (0, import_smithy_client.map)({
|
|
2068
1379
|
$metadata: deserializeMetadata(output)
|
|
@@ -2070,43 +1381,9 @@ var de_PutFeedbackCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2070
1381
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2071
1382
|
return contents;
|
|
2072
1383
|
}, "de_PutFeedbackCommand");
|
|
2073
|
-
var de_PutFeedbackCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2074
|
-
const parsedOutput = {
|
|
2075
|
-
...output,
|
|
2076
|
-
body: await parseErrorBody(output.body, context)
|
|
2077
|
-
};
|
|
2078
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2079
|
-
switch (errorCode) {
|
|
2080
|
-
case "AccessDeniedException":
|
|
2081
|
-
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
2082
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2083
|
-
case "ConflictException":
|
|
2084
|
-
case "com.amazonaws.devopsguru#ConflictException":
|
|
2085
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2086
|
-
case "InternalServerException":
|
|
2087
|
-
case "com.amazonaws.devopsguru#InternalServerException":
|
|
2088
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2089
|
-
case "ResourceNotFoundException":
|
|
2090
|
-
case "com.amazonaws.devopsguru#ResourceNotFoundException":
|
|
2091
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2092
|
-
case "ThrottlingException":
|
|
2093
|
-
case "com.amazonaws.devopsguru#ThrottlingException":
|
|
2094
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2095
|
-
case "ValidationException":
|
|
2096
|
-
case "com.amazonaws.devopsguru#ValidationException":
|
|
2097
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2098
|
-
default:
|
|
2099
|
-
const parsedBody = parsedOutput.body;
|
|
2100
|
-
return throwDefaultError({
|
|
2101
|
-
output,
|
|
2102
|
-
parsedBody,
|
|
2103
|
-
errorCode
|
|
2104
|
-
});
|
|
2105
|
-
}
|
|
2106
|
-
}, "de_PutFeedbackCommandError");
|
|
2107
1384
|
var de_RemoveNotificationChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2108
1385
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2109
|
-
return
|
|
1386
|
+
return de_CommandError(output, context);
|
|
2110
1387
|
}
|
|
2111
1388
|
const contents = (0, import_smithy_client.map)({
|
|
2112
1389
|
$metadata: deserializeMetadata(output)
|
|
@@ -2114,43 +1391,9 @@ var de_RemoveNotificationChannelCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2114
1391
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2115
1392
|
return contents;
|
|
2116
1393
|
}, "de_RemoveNotificationChannelCommand");
|
|
2117
|
-
var de_RemoveNotificationChannelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2118
|
-
const parsedOutput = {
|
|
2119
|
-
...output,
|
|
2120
|
-
body: await parseErrorBody(output.body, context)
|
|
2121
|
-
};
|
|
2122
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2123
|
-
switch (errorCode) {
|
|
2124
|
-
case "AccessDeniedException":
|
|
2125
|
-
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
2126
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2127
|
-
case "ConflictException":
|
|
2128
|
-
case "com.amazonaws.devopsguru#ConflictException":
|
|
2129
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2130
|
-
case "InternalServerException":
|
|
2131
|
-
case "com.amazonaws.devopsguru#InternalServerException":
|
|
2132
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2133
|
-
case "ResourceNotFoundException":
|
|
2134
|
-
case "com.amazonaws.devopsguru#ResourceNotFoundException":
|
|
2135
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2136
|
-
case "ThrottlingException":
|
|
2137
|
-
case "com.amazonaws.devopsguru#ThrottlingException":
|
|
2138
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2139
|
-
case "ValidationException":
|
|
2140
|
-
case "com.amazonaws.devopsguru#ValidationException":
|
|
2141
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2142
|
-
default:
|
|
2143
|
-
const parsedBody = parsedOutput.body;
|
|
2144
|
-
return throwDefaultError({
|
|
2145
|
-
output,
|
|
2146
|
-
parsedBody,
|
|
2147
|
-
errorCode
|
|
2148
|
-
});
|
|
2149
|
-
}
|
|
2150
|
-
}, "de_RemoveNotificationChannelCommandError");
|
|
2151
1394
|
var de_SearchInsightsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2152
1395
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2153
|
-
return
|
|
1396
|
+
return de_CommandError(output, context);
|
|
2154
1397
|
}
|
|
2155
1398
|
const contents = (0, import_smithy_client.map)({
|
|
2156
1399
|
$metadata: deserializeMetadata(output)
|
|
@@ -2164,37 +1407,9 @@ var de_SearchInsightsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2164
1407
|
Object.assign(contents, doc);
|
|
2165
1408
|
return contents;
|
|
2166
1409
|
}, "de_SearchInsightsCommand");
|
|
2167
|
-
var de_SearchInsightsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2168
|
-
const parsedOutput = {
|
|
2169
|
-
...output,
|
|
2170
|
-
body: await parseErrorBody(output.body, context)
|
|
2171
|
-
};
|
|
2172
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2173
|
-
switch (errorCode) {
|
|
2174
|
-
case "AccessDeniedException":
|
|
2175
|
-
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
2176
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2177
|
-
case "InternalServerException":
|
|
2178
|
-
case "com.amazonaws.devopsguru#InternalServerException":
|
|
2179
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2180
|
-
case "ThrottlingException":
|
|
2181
|
-
case "com.amazonaws.devopsguru#ThrottlingException":
|
|
2182
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2183
|
-
case "ValidationException":
|
|
2184
|
-
case "com.amazonaws.devopsguru#ValidationException":
|
|
2185
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2186
|
-
default:
|
|
2187
|
-
const parsedBody = parsedOutput.body;
|
|
2188
|
-
return throwDefaultError({
|
|
2189
|
-
output,
|
|
2190
|
-
parsedBody,
|
|
2191
|
-
errorCode
|
|
2192
|
-
});
|
|
2193
|
-
}
|
|
2194
|
-
}, "de_SearchInsightsCommandError");
|
|
2195
1410
|
var de_SearchOrganizationInsightsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2196
1411
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2197
|
-
return
|
|
1412
|
+
return de_CommandError(output, context);
|
|
2198
1413
|
}
|
|
2199
1414
|
const contents = (0, import_smithy_client.map)({
|
|
2200
1415
|
$metadata: deserializeMetadata(output)
|
|
@@ -2208,37 +1423,9 @@ var de_SearchOrganizationInsightsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2208
1423
|
Object.assign(contents, doc);
|
|
2209
1424
|
return contents;
|
|
2210
1425
|
}, "de_SearchOrganizationInsightsCommand");
|
|
2211
|
-
var de_SearchOrganizationInsightsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2212
|
-
const parsedOutput = {
|
|
2213
|
-
...output,
|
|
2214
|
-
body: await parseErrorBody(output.body, context)
|
|
2215
|
-
};
|
|
2216
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2217
|
-
switch (errorCode) {
|
|
2218
|
-
case "AccessDeniedException":
|
|
2219
|
-
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
2220
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2221
|
-
case "InternalServerException":
|
|
2222
|
-
case "com.amazonaws.devopsguru#InternalServerException":
|
|
2223
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2224
|
-
case "ThrottlingException":
|
|
2225
|
-
case "com.amazonaws.devopsguru#ThrottlingException":
|
|
2226
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2227
|
-
case "ValidationException":
|
|
2228
|
-
case "com.amazonaws.devopsguru#ValidationException":
|
|
2229
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2230
|
-
default:
|
|
2231
|
-
const parsedBody = parsedOutput.body;
|
|
2232
|
-
return throwDefaultError({
|
|
2233
|
-
output,
|
|
2234
|
-
parsedBody,
|
|
2235
|
-
errorCode
|
|
2236
|
-
});
|
|
2237
|
-
}
|
|
2238
|
-
}, "de_SearchOrganizationInsightsCommandError");
|
|
2239
1426
|
var de_StartCostEstimationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2240
1427
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2241
|
-
return
|
|
1428
|
+
return de_CommandError(output, context);
|
|
2242
1429
|
}
|
|
2243
1430
|
const contents = (0, import_smithy_client.map)({
|
|
2244
1431
|
$metadata: deserializeMetadata(output)
|
|
@@ -2246,43 +1433,9 @@ var de_StartCostEstimationCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2246
1433
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2247
1434
|
return contents;
|
|
2248
1435
|
}, "de_StartCostEstimationCommand");
|
|
2249
|
-
var de_StartCostEstimationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2250
|
-
const parsedOutput = {
|
|
2251
|
-
...output,
|
|
2252
|
-
body: await parseErrorBody(output.body, context)
|
|
2253
|
-
};
|
|
2254
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2255
|
-
switch (errorCode) {
|
|
2256
|
-
case "AccessDeniedException":
|
|
2257
|
-
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
2258
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2259
|
-
case "ConflictException":
|
|
2260
|
-
case "com.amazonaws.devopsguru#ConflictException":
|
|
2261
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2262
|
-
case "InternalServerException":
|
|
2263
|
-
case "com.amazonaws.devopsguru#InternalServerException":
|
|
2264
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2265
|
-
case "ResourceNotFoundException":
|
|
2266
|
-
case "com.amazonaws.devopsguru#ResourceNotFoundException":
|
|
2267
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2268
|
-
case "ThrottlingException":
|
|
2269
|
-
case "com.amazonaws.devopsguru#ThrottlingException":
|
|
2270
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2271
|
-
case "ValidationException":
|
|
2272
|
-
case "com.amazonaws.devopsguru#ValidationException":
|
|
2273
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2274
|
-
default:
|
|
2275
|
-
const parsedBody = parsedOutput.body;
|
|
2276
|
-
return throwDefaultError({
|
|
2277
|
-
output,
|
|
2278
|
-
parsedBody,
|
|
2279
|
-
errorCode
|
|
2280
|
-
});
|
|
2281
|
-
}
|
|
2282
|
-
}, "de_StartCostEstimationCommandError");
|
|
2283
1436
|
var de_UpdateEventSourcesConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2284
1437
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2285
|
-
return
|
|
1438
|
+
return de_CommandError(output, context);
|
|
2286
1439
|
}
|
|
2287
1440
|
const contents = (0, import_smithy_client.map)({
|
|
2288
1441
|
$metadata: deserializeMetadata(output)
|
|
@@ -2290,37 +1443,9 @@ var de_UpdateEventSourcesConfigCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2290
1443
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2291
1444
|
return contents;
|
|
2292
1445
|
}, "de_UpdateEventSourcesConfigCommand");
|
|
2293
|
-
var de_UpdateEventSourcesConfigCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2294
|
-
const parsedOutput = {
|
|
2295
|
-
...output,
|
|
2296
|
-
body: await parseErrorBody(output.body, context)
|
|
2297
|
-
};
|
|
2298
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2299
|
-
switch (errorCode) {
|
|
2300
|
-
case "AccessDeniedException":
|
|
2301
|
-
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
2302
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2303
|
-
case "InternalServerException":
|
|
2304
|
-
case "com.amazonaws.devopsguru#InternalServerException":
|
|
2305
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2306
|
-
case "ThrottlingException":
|
|
2307
|
-
case "com.amazonaws.devopsguru#ThrottlingException":
|
|
2308
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2309
|
-
case "ValidationException":
|
|
2310
|
-
case "com.amazonaws.devopsguru#ValidationException":
|
|
2311
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2312
|
-
default:
|
|
2313
|
-
const parsedBody = parsedOutput.body;
|
|
2314
|
-
return throwDefaultError({
|
|
2315
|
-
output,
|
|
2316
|
-
parsedBody,
|
|
2317
|
-
errorCode
|
|
2318
|
-
});
|
|
2319
|
-
}
|
|
2320
|
-
}, "de_UpdateEventSourcesConfigCommandError");
|
|
2321
1446
|
var de_UpdateResourceCollectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2322
1447
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2323
|
-
return
|
|
1448
|
+
return de_CommandError(output, context);
|
|
2324
1449
|
}
|
|
2325
1450
|
const contents = (0, import_smithy_client.map)({
|
|
2326
1451
|
$metadata: deserializeMetadata(output)
|
|
@@ -2328,40 +1453,9 @@ var de_UpdateResourceCollectionCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2328
1453
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2329
1454
|
return contents;
|
|
2330
1455
|
}, "de_UpdateResourceCollectionCommand");
|
|
2331
|
-
var de_UpdateResourceCollectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2332
|
-
const parsedOutput = {
|
|
2333
|
-
...output,
|
|
2334
|
-
body: await parseErrorBody(output.body, context)
|
|
2335
|
-
};
|
|
2336
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2337
|
-
switch (errorCode) {
|
|
2338
|
-
case "AccessDeniedException":
|
|
2339
|
-
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
2340
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2341
|
-
case "ConflictException":
|
|
2342
|
-
case "com.amazonaws.devopsguru#ConflictException":
|
|
2343
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2344
|
-
case "InternalServerException":
|
|
2345
|
-
case "com.amazonaws.devopsguru#InternalServerException":
|
|
2346
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2347
|
-
case "ThrottlingException":
|
|
2348
|
-
case "com.amazonaws.devopsguru#ThrottlingException":
|
|
2349
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2350
|
-
case "ValidationException":
|
|
2351
|
-
case "com.amazonaws.devopsguru#ValidationException":
|
|
2352
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2353
|
-
default:
|
|
2354
|
-
const parsedBody = parsedOutput.body;
|
|
2355
|
-
return throwDefaultError({
|
|
2356
|
-
output,
|
|
2357
|
-
parsedBody,
|
|
2358
|
-
errorCode
|
|
2359
|
-
});
|
|
2360
|
-
}
|
|
2361
|
-
}, "de_UpdateResourceCollectionCommandError");
|
|
2362
1456
|
var de_UpdateServiceIntegrationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2363
1457
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2364
|
-
return
|
|
1458
|
+
return de_CommandError(output, context);
|
|
2365
1459
|
}
|
|
2366
1460
|
const contents = (0, import_smithy_client.map)({
|
|
2367
1461
|
$metadata: deserializeMetadata(output)
|
|
@@ -2369,7 +1463,7 @@ var de_UpdateServiceIntegrationCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2369
1463
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2370
1464
|
return contents;
|
|
2371
1465
|
}, "de_UpdateServiceIntegrationCommand");
|
|
2372
|
-
var
|
|
1466
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2373
1467
|
const parsedOutput = {
|
|
2374
1468
|
...output,
|
|
2375
1469
|
body: await parseErrorBody(output.body, context)
|
|
@@ -2385,6 +1479,12 @@ var de_UpdateServiceIntegrationCommandError = /* @__PURE__ */ __name(async (outp
|
|
|
2385
1479
|
case "InternalServerException":
|
|
2386
1480
|
case "com.amazonaws.devopsguru#InternalServerException":
|
|
2387
1481
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1482
|
+
case "ResourceNotFoundException":
|
|
1483
|
+
case "com.amazonaws.devopsguru#ResourceNotFoundException":
|
|
1484
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1485
|
+
case "ServiceQuotaExceededException":
|
|
1486
|
+
case "com.amazonaws.devopsguru#ServiceQuotaExceededException":
|
|
1487
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2388
1488
|
case "ThrottlingException":
|
|
2389
1489
|
case "com.amazonaws.devopsguru#ThrottlingException":
|
|
2390
1490
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
@@ -2399,7 +1499,7 @@ var de_UpdateServiceIntegrationCommandError = /* @__PURE__ */ __name(async (outp
|
|
|
2399
1499
|
errorCode
|
|
2400
1500
|
});
|
|
2401
1501
|
}
|
|
2402
|
-
}, "
|
|
1502
|
+
}, "de_CommandError");
|
|
2403
1503
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(DevOpsGuruServiceException);
|
|
2404
1504
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2405
1505
|
const contents = (0, import_smithy_client.map)({});
|