@aws-sdk/client-cloudwatch-logs 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 +159 -2140
- package/dist-es/protocols/Aws_json1_1.js +327 -2308
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -1202,7 +1202,7 @@ var se_UpdateLogAnomalyDetectorCommand = /* @__PURE__ */ __name(async (input, co
|
|
|
1202
1202
|
}, "se_UpdateLogAnomalyDetectorCommand");
|
|
1203
1203
|
var de_AssociateKmsKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1204
1204
|
if (output.statusCode >= 300) {
|
|
1205
|
-
return
|
|
1205
|
+
return de_CommandError(output, context);
|
|
1206
1206
|
}
|
|
1207
1207
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1208
1208
|
const response = {
|
|
@@ -1210,37 +1210,9 @@ var de_AssociateKmsKeyCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1210
1210
|
};
|
|
1211
1211
|
return response;
|
|
1212
1212
|
}, "de_AssociateKmsKeyCommand");
|
|
1213
|
-
var de_AssociateKmsKeyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1214
|
-
const parsedOutput = {
|
|
1215
|
-
...output,
|
|
1216
|
-
body: await parseErrorBody(output.body, context)
|
|
1217
|
-
};
|
|
1218
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1219
|
-
switch (errorCode) {
|
|
1220
|
-
case "InvalidParameterException":
|
|
1221
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1222
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1223
|
-
case "OperationAbortedException":
|
|
1224
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
1225
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
1226
|
-
case "ResourceNotFoundException":
|
|
1227
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1228
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1229
|
-
case "ServiceUnavailableException":
|
|
1230
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1231
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1232
|
-
default:
|
|
1233
|
-
const parsedBody = parsedOutput.body;
|
|
1234
|
-
return throwDefaultError({
|
|
1235
|
-
output,
|
|
1236
|
-
parsedBody,
|
|
1237
|
-
errorCode
|
|
1238
|
-
});
|
|
1239
|
-
}
|
|
1240
|
-
}, "de_AssociateKmsKeyCommandError");
|
|
1241
1213
|
var de_CancelExportTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1242
1214
|
if (output.statusCode >= 300) {
|
|
1243
|
-
return
|
|
1215
|
+
return de_CommandError(output, context);
|
|
1244
1216
|
}
|
|
1245
1217
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1246
1218
|
const response = {
|
|
@@ -1248,37 +1220,9 @@ var de_CancelExportTaskCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1248
1220
|
};
|
|
1249
1221
|
return response;
|
|
1250
1222
|
}, "de_CancelExportTaskCommand");
|
|
1251
|
-
var de_CancelExportTaskCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1252
|
-
const parsedOutput = {
|
|
1253
|
-
...output,
|
|
1254
|
-
body: await parseErrorBody(output.body, context)
|
|
1255
|
-
};
|
|
1256
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1257
|
-
switch (errorCode) {
|
|
1258
|
-
case "InvalidOperationException":
|
|
1259
|
-
case "com.amazonaws.cloudwatchlogs#InvalidOperationException":
|
|
1260
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1261
|
-
case "InvalidParameterException":
|
|
1262
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1263
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1264
|
-
case "ResourceNotFoundException":
|
|
1265
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1266
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1267
|
-
case "ServiceUnavailableException":
|
|
1268
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1269
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1270
|
-
default:
|
|
1271
|
-
const parsedBody = parsedOutput.body;
|
|
1272
|
-
return throwDefaultError({
|
|
1273
|
-
output,
|
|
1274
|
-
parsedBody,
|
|
1275
|
-
errorCode
|
|
1276
|
-
});
|
|
1277
|
-
}
|
|
1278
|
-
}, "de_CancelExportTaskCommandError");
|
|
1279
1223
|
var de_CreateDeliveryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1280
1224
|
if (output.statusCode >= 300) {
|
|
1281
|
-
return
|
|
1225
|
+
return de_CommandError(output, context);
|
|
1282
1226
|
}
|
|
1283
1227
|
const data = await parseBody(output.body, context);
|
|
1284
1228
|
let contents = {};
|
|
@@ -1289,46 +1233,9 @@ var de_CreateDeliveryCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1289
1233
|
};
|
|
1290
1234
|
return response;
|
|
1291
1235
|
}, "de_CreateDeliveryCommand");
|
|
1292
|
-
var de_CreateDeliveryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1293
|
-
const parsedOutput = {
|
|
1294
|
-
...output,
|
|
1295
|
-
body: await parseErrorBody(output.body, context)
|
|
1296
|
-
};
|
|
1297
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1298
|
-
switch (errorCode) {
|
|
1299
|
-
case "AccessDeniedException":
|
|
1300
|
-
case "com.amazonaws.cloudwatchlogs#AccessDeniedException":
|
|
1301
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1302
|
-
case "ConflictException":
|
|
1303
|
-
case "com.amazonaws.cloudwatchlogs#ConflictException":
|
|
1304
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1305
|
-
case "ResourceNotFoundException":
|
|
1306
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1307
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1308
|
-
case "ServiceQuotaExceededException":
|
|
1309
|
-
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
1310
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1311
|
-
case "ServiceUnavailableException":
|
|
1312
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1313
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1314
|
-
case "ThrottlingException":
|
|
1315
|
-
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
1316
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1317
|
-
case "ValidationException":
|
|
1318
|
-
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
1319
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1320
|
-
default:
|
|
1321
|
-
const parsedBody = parsedOutput.body;
|
|
1322
|
-
return throwDefaultError({
|
|
1323
|
-
output,
|
|
1324
|
-
parsedBody,
|
|
1325
|
-
errorCode
|
|
1326
|
-
});
|
|
1327
|
-
}
|
|
1328
|
-
}, "de_CreateDeliveryCommandError");
|
|
1329
1236
|
var de_CreateExportTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1330
1237
|
if (output.statusCode >= 300) {
|
|
1331
|
-
return
|
|
1238
|
+
return de_CommandError(output, context);
|
|
1332
1239
|
}
|
|
1333
1240
|
const data = await parseBody(output.body, context);
|
|
1334
1241
|
let contents = {};
|
|
@@ -1339,43 +1246,9 @@ var de_CreateExportTaskCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1339
1246
|
};
|
|
1340
1247
|
return response;
|
|
1341
1248
|
}, "de_CreateExportTaskCommand");
|
|
1342
|
-
var de_CreateExportTaskCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1343
|
-
const parsedOutput = {
|
|
1344
|
-
...output,
|
|
1345
|
-
body: await parseErrorBody(output.body, context)
|
|
1346
|
-
};
|
|
1347
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1348
|
-
switch (errorCode) {
|
|
1349
|
-
case "InvalidParameterException":
|
|
1350
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1351
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1352
|
-
case "LimitExceededException":
|
|
1353
|
-
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
1354
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1355
|
-
case "OperationAbortedException":
|
|
1356
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
1357
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
1358
|
-
case "ResourceAlreadyExistsException":
|
|
1359
|
-
case "com.amazonaws.cloudwatchlogs#ResourceAlreadyExistsException":
|
|
1360
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1361
|
-
case "ResourceNotFoundException":
|
|
1362
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1363
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1364
|
-
case "ServiceUnavailableException":
|
|
1365
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1366
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1367
|
-
default:
|
|
1368
|
-
const parsedBody = parsedOutput.body;
|
|
1369
|
-
return throwDefaultError({
|
|
1370
|
-
output,
|
|
1371
|
-
parsedBody,
|
|
1372
|
-
errorCode
|
|
1373
|
-
});
|
|
1374
|
-
}
|
|
1375
|
-
}, "de_CreateExportTaskCommandError");
|
|
1376
1249
|
var de_CreateLogAnomalyDetectorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1377
1250
|
if (output.statusCode >= 300) {
|
|
1378
|
-
return
|
|
1251
|
+
return de_CommandError(output, context);
|
|
1379
1252
|
}
|
|
1380
1253
|
const data = await parseBody(output.body, context);
|
|
1381
1254
|
let contents = {};
|
|
@@ -1386,40 +1259,9 @@ var de_CreateLogAnomalyDetectorCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1386
1259
|
};
|
|
1387
1260
|
return response;
|
|
1388
1261
|
}, "de_CreateLogAnomalyDetectorCommand");
|
|
1389
|
-
var de_CreateLogAnomalyDetectorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1390
|
-
const parsedOutput = {
|
|
1391
|
-
...output,
|
|
1392
|
-
body: await parseErrorBody(output.body, context)
|
|
1393
|
-
};
|
|
1394
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1395
|
-
switch (errorCode) {
|
|
1396
|
-
case "InvalidParameterException":
|
|
1397
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1398
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1399
|
-
case "LimitExceededException":
|
|
1400
|
-
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
1401
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1402
|
-
case "OperationAbortedException":
|
|
1403
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
1404
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
1405
|
-
case "ResourceNotFoundException":
|
|
1406
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1407
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1408
|
-
case "ServiceUnavailableException":
|
|
1409
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1410
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1411
|
-
default:
|
|
1412
|
-
const parsedBody = parsedOutput.body;
|
|
1413
|
-
return throwDefaultError({
|
|
1414
|
-
output,
|
|
1415
|
-
parsedBody,
|
|
1416
|
-
errorCode
|
|
1417
|
-
});
|
|
1418
|
-
}
|
|
1419
|
-
}, "de_CreateLogAnomalyDetectorCommandError");
|
|
1420
1262
|
var de_CreateLogGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1421
1263
|
if (output.statusCode >= 300) {
|
|
1422
|
-
return
|
|
1264
|
+
return de_CommandError(output, context);
|
|
1423
1265
|
}
|
|
1424
1266
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1425
1267
|
const response = {
|
|
@@ -1427,40 +1269,9 @@ var de_CreateLogGroupCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1427
1269
|
};
|
|
1428
1270
|
return response;
|
|
1429
1271
|
}, "de_CreateLogGroupCommand");
|
|
1430
|
-
var de_CreateLogGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1431
|
-
const parsedOutput = {
|
|
1432
|
-
...output,
|
|
1433
|
-
body: await parseErrorBody(output.body, context)
|
|
1434
|
-
};
|
|
1435
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1436
|
-
switch (errorCode) {
|
|
1437
|
-
case "InvalidParameterException":
|
|
1438
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1439
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1440
|
-
case "LimitExceededException":
|
|
1441
|
-
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
1442
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1443
|
-
case "OperationAbortedException":
|
|
1444
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
1445
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
1446
|
-
case "ResourceAlreadyExistsException":
|
|
1447
|
-
case "com.amazonaws.cloudwatchlogs#ResourceAlreadyExistsException":
|
|
1448
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1449
|
-
case "ServiceUnavailableException":
|
|
1450
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1451
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1452
|
-
default:
|
|
1453
|
-
const parsedBody = parsedOutput.body;
|
|
1454
|
-
return throwDefaultError({
|
|
1455
|
-
output,
|
|
1456
|
-
parsedBody,
|
|
1457
|
-
errorCode
|
|
1458
|
-
});
|
|
1459
|
-
}
|
|
1460
|
-
}, "de_CreateLogGroupCommandError");
|
|
1461
1272
|
var de_CreateLogStreamCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1462
1273
|
if (output.statusCode >= 300) {
|
|
1463
|
-
return
|
|
1274
|
+
return de_CommandError(output, context);
|
|
1464
1275
|
}
|
|
1465
1276
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1466
1277
|
const response = {
|
|
@@ -1468,37 +1279,9 @@ var de_CreateLogStreamCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1468
1279
|
};
|
|
1469
1280
|
return response;
|
|
1470
1281
|
}, "de_CreateLogStreamCommand");
|
|
1471
|
-
var de_CreateLogStreamCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1472
|
-
const parsedOutput = {
|
|
1473
|
-
...output,
|
|
1474
|
-
body: await parseErrorBody(output.body, context)
|
|
1475
|
-
};
|
|
1476
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1477
|
-
switch (errorCode) {
|
|
1478
|
-
case "InvalidParameterException":
|
|
1479
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1480
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1481
|
-
case "ResourceAlreadyExistsException":
|
|
1482
|
-
case "com.amazonaws.cloudwatchlogs#ResourceAlreadyExistsException":
|
|
1483
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1484
|
-
case "ResourceNotFoundException":
|
|
1485
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1486
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1487
|
-
case "ServiceUnavailableException":
|
|
1488
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1489
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1490
|
-
default:
|
|
1491
|
-
const parsedBody = parsedOutput.body;
|
|
1492
|
-
return throwDefaultError({
|
|
1493
|
-
output,
|
|
1494
|
-
parsedBody,
|
|
1495
|
-
errorCode
|
|
1496
|
-
});
|
|
1497
|
-
}
|
|
1498
|
-
}, "de_CreateLogStreamCommandError");
|
|
1499
1282
|
var de_DeleteAccountPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1500
1283
|
if (output.statusCode >= 300) {
|
|
1501
|
-
return
|
|
1284
|
+
return de_CommandError(output, context);
|
|
1502
1285
|
}
|
|
1503
1286
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1504
1287
|
const response = {
|
|
@@ -1506,37 +1289,9 @@ var de_DeleteAccountPolicyCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1506
1289
|
};
|
|
1507
1290
|
return response;
|
|
1508
1291
|
}, "de_DeleteAccountPolicyCommand");
|
|
1509
|
-
var de_DeleteAccountPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1510
|
-
const parsedOutput = {
|
|
1511
|
-
...output,
|
|
1512
|
-
body: await parseErrorBody(output.body, context)
|
|
1513
|
-
};
|
|
1514
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1515
|
-
switch (errorCode) {
|
|
1516
|
-
case "InvalidParameterException":
|
|
1517
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1518
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1519
|
-
case "OperationAbortedException":
|
|
1520
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
1521
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
1522
|
-
case "ResourceNotFoundException":
|
|
1523
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1524
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1525
|
-
case "ServiceUnavailableException":
|
|
1526
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1527
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1528
|
-
default:
|
|
1529
|
-
const parsedBody = parsedOutput.body;
|
|
1530
|
-
return throwDefaultError({
|
|
1531
|
-
output,
|
|
1532
|
-
parsedBody,
|
|
1533
|
-
errorCode
|
|
1534
|
-
});
|
|
1535
|
-
}
|
|
1536
|
-
}, "de_DeleteAccountPolicyCommandError");
|
|
1537
1292
|
var de_DeleteDataProtectionPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1538
1293
|
if (output.statusCode >= 300) {
|
|
1539
|
-
return
|
|
1294
|
+
return de_CommandError(output, context);
|
|
1540
1295
|
}
|
|
1541
1296
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1542
1297
|
const response = {
|
|
@@ -1544,37 +1299,9 @@ var de_DeleteDataProtectionPolicyCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1544
1299
|
};
|
|
1545
1300
|
return response;
|
|
1546
1301
|
}, "de_DeleteDataProtectionPolicyCommand");
|
|
1547
|
-
var de_DeleteDataProtectionPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1548
|
-
const parsedOutput = {
|
|
1549
|
-
...output,
|
|
1550
|
-
body: await parseErrorBody(output.body, context)
|
|
1551
|
-
};
|
|
1552
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1553
|
-
switch (errorCode) {
|
|
1554
|
-
case "InvalidParameterException":
|
|
1555
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1556
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1557
|
-
case "OperationAbortedException":
|
|
1558
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
1559
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
1560
|
-
case "ResourceNotFoundException":
|
|
1561
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1562
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1563
|
-
case "ServiceUnavailableException":
|
|
1564
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1565
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1566
|
-
default:
|
|
1567
|
-
const parsedBody = parsedOutput.body;
|
|
1568
|
-
return throwDefaultError({
|
|
1569
|
-
output,
|
|
1570
|
-
parsedBody,
|
|
1571
|
-
errorCode
|
|
1572
|
-
});
|
|
1573
|
-
}
|
|
1574
|
-
}, "de_DeleteDataProtectionPolicyCommandError");
|
|
1575
1302
|
var de_DeleteDeliveryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1576
1303
|
if (output.statusCode >= 300) {
|
|
1577
|
-
return
|
|
1304
|
+
return de_CommandError(output, context);
|
|
1578
1305
|
}
|
|
1579
1306
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1580
1307
|
const response = {
|
|
@@ -1582,43 +1309,9 @@ var de_DeleteDeliveryCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1582
1309
|
};
|
|
1583
1310
|
return response;
|
|
1584
1311
|
}, "de_DeleteDeliveryCommand");
|
|
1585
|
-
var de_DeleteDeliveryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1586
|
-
const parsedOutput = {
|
|
1587
|
-
...output,
|
|
1588
|
-
body: await parseErrorBody(output.body, context)
|
|
1589
|
-
};
|
|
1590
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1591
|
-
switch (errorCode) {
|
|
1592
|
-
case "ConflictException":
|
|
1593
|
-
case "com.amazonaws.cloudwatchlogs#ConflictException":
|
|
1594
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1595
|
-
case "ResourceNotFoundException":
|
|
1596
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1597
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1598
|
-
case "ServiceQuotaExceededException":
|
|
1599
|
-
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
1600
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1601
|
-
case "ServiceUnavailableException":
|
|
1602
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1603
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1604
|
-
case "ThrottlingException":
|
|
1605
|
-
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
1606
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1607
|
-
case "ValidationException":
|
|
1608
|
-
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
1609
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1610
|
-
default:
|
|
1611
|
-
const parsedBody = parsedOutput.body;
|
|
1612
|
-
return throwDefaultError({
|
|
1613
|
-
output,
|
|
1614
|
-
parsedBody,
|
|
1615
|
-
errorCode
|
|
1616
|
-
});
|
|
1617
|
-
}
|
|
1618
|
-
}, "de_DeleteDeliveryCommandError");
|
|
1619
1312
|
var de_DeleteDeliveryDestinationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1620
1313
|
if (output.statusCode >= 300) {
|
|
1621
|
-
return
|
|
1314
|
+
return de_CommandError(output, context);
|
|
1622
1315
|
}
|
|
1623
1316
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1624
1317
|
const response = {
|
|
@@ -1626,43 +1319,9 @@ var de_DeleteDeliveryDestinationCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1626
1319
|
};
|
|
1627
1320
|
return response;
|
|
1628
1321
|
}, "de_DeleteDeliveryDestinationCommand");
|
|
1629
|
-
var de_DeleteDeliveryDestinationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1630
|
-
const parsedOutput = {
|
|
1631
|
-
...output,
|
|
1632
|
-
body: await parseErrorBody(output.body, context)
|
|
1633
|
-
};
|
|
1634
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1635
|
-
switch (errorCode) {
|
|
1636
|
-
case "ConflictException":
|
|
1637
|
-
case "com.amazonaws.cloudwatchlogs#ConflictException":
|
|
1638
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1639
|
-
case "ResourceNotFoundException":
|
|
1640
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1641
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1642
|
-
case "ServiceQuotaExceededException":
|
|
1643
|
-
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
1644
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1645
|
-
case "ServiceUnavailableException":
|
|
1646
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1647
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1648
|
-
case "ThrottlingException":
|
|
1649
|
-
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
1650
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1651
|
-
case "ValidationException":
|
|
1652
|
-
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
1653
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1654
|
-
default:
|
|
1655
|
-
const parsedBody = parsedOutput.body;
|
|
1656
|
-
return throwDefaultError({
|
|
1657
|
-
output,
|
|
1658
|
-
parsedBody,
|
|
1659
|
-
errorCode
|
|
1660
|
-
});
|
|
1661
|
-
}
|
|
1662
|
-
}, "de_DeleteDeliveryDestinationCommandError");
|
|
1663
1322
|
var de_DeleteDeliveryDestinationPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1664
1323
|
if (output.statusCode >= 300) {
|
|
1665
|
-
return
|
|
1324
|
+
return de_CommandError(output, context);
|
|
1666
1325
|
}
|
|
1667
1326
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1668
1327
|
const response = {
|
|
@@ -1670,37 +1329,9 @@ var de_DeleteDeliveryDestinationPolicyCommand = /* @__PURE__ */ __name(async (ou
|
|
|
1670
1329
|
};
|
|
1671
1330
|
return response;
|
|
1672
1331
|
}, "de_DeleteDeliveryDestinationPolicyCommand");
|
|
1673
|
-
var de_DeleteDeliveryDestinationPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1674
|
-
const parsedOutput = {
|
|
1675
|
-
...output,
|
|
1676
|
-
body: await parseErrorBody(output.body, context)
|
|
1677
|
-
};
|
|
1678
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1679
|
-
switch (errorCode) {
|
|
1680
|
-
case "ConflictException":
|
|
1681
|
-
case "com.amazonaws.cloudwatchlogs#ConflictException":
|
|
1682
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1683
|
-
case "ResourceNotFoundException":
|
|
1684
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1685
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1686
|
-
case "ServiceUnavailableException":
|
|
1687
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1688
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1689
|
-
case "ValidationException":
|
|
1690
|
-
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
1691
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1692
|
-
default:
|
|
1693
|
-
const parsedBody = parsedOutput.body;
|
|
1694
|
-
return throwDefaultError({
|
|
1695
|
-
output,
|
|
1696
|
-
parsedBody,
|
|
1697
|
-
errorCode
|
|
1698
|
-
});
|
|
1699
|
-
}
|
|
1700
|
-
}, "de_DeleteDeliveryDestinationPolicyCommandError");
|
|
1701
1332
|
var de_DeleteDeliverySourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1702
1333
|
if (output.statusCode >= 300) {
|
|
1703
|
-
return
|
|
1334
|
+
return de_CommandError(output, context);
|
|
1704
1335
|
}
|
|
1705
1336
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1706
1337
|
const response = {
|
|
@@ -1708,43 +1339,9 @@ var de_DeleteDeliverySourceCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1708
1339
|
};
|
|
1709
1340
|
return response;
|
|
1710
1341
|
}, "de_DeleteDeliverySourceCommand");
|
|
1711
|
-
var de_DeleteDeliverySourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1712
|
-
const parsedOutput = {
|
|
1713
|
-
...output,
|
|
1714
|
-
body: await parseErrorBody(output.body, context)
|
|
1715
|
-
};
|
|
1716
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1717
|
-
switch (errorCode) {
|
|
1718
|
-
case "ConflictException":
|
|
1719
|
-
case "com.amazonaws.cloudwatchlogs#ConflictException":
|
|
1720
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1721
|
-
case "ResourceNotFoundException":
|
|
1722
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1723
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1724
|
-
case "ServiceQuotaExceededException":
|
|
1725
|
-
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
1726
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1727
|
-
case "ServiceUnavailableException":
|
|
1728
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1729
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1730
|
-
case "ThrottlingException":
|
|
1731
|
-
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
1732
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1733
|
-
case "ValidationException":
|
|
1734
|
-
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
1735
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1736
|
-
default:
|
|
1737
|
-
const parsedBody = parsedOutput.body;
|
|
1738
|
-
return throwDefaultError({
|
|
1739
|
-
output,
|
|
1740
|
-
parsedBody,
|
|
1741
|
-
errorCode
|
|
1742
|
-
});
|
|
1743
|
-
}
|
|
1744
|
-
}, "de_DeleteDeliverySourceCommandError");
|
|
1745
1342
|
var de_DeleteDestinationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1746
1343
|
if (output.statusCode >= 300) {
|
|
1747
|
-
return
|
|
1344
|
+
return de_CommandError(output, context);
|
|
1748
1345
|
}
|
|
1749
1346
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1750
1347
|
const response = {
|
|
@@ -1752,37 +1349,9 @@ var de_DeleteDestinationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1752
1349
|
};
|
|
1753
1350
|
return response;
|
|
1754
1351
|
}, "de_DeleteDestinationCommand");
|
|
1755
|
-
var de_DeleteDestinationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1756
|
-
const parsedOutput = {
|
|
1757
|
-
...output,
|
|
1758
|
-
body: await parseErrorBody(output.body, context)
|
|
1759
|
-
};
|
|
1760
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1761
|
-
switch (errorCode) {
|
|
1762
|
-
case "InvalidParameterException":
|
|
1763
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1764
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1765
|
-
case "OperationAbortedException":
|
|
1766
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
1767
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
1768
|
-
case "ResourceNotFoundException":
|
|
1769
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1770
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1771
|
-
case "ServiceUnavailableException":
|
|
1772
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1773
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1774
|
-
default:
|
|
1775
|
-
const parsedBody = parsedOutput.body;
|
|
1776
|
-
return throwDefaultError({
|
|
1777
|
-
output,
|
|
1778
|
-
parsedBody,
|
|
1779
|
-
errorCode
|
|
1780
|
-
});
|
|
1781
|
-
}
|
|
1782
|
-
}, "de_DeleteDestinationCommandError");
|
|
1783
1352
|
var de_DeleteLogAnomalyDetectorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1784
1353
|
if (output.statusCode >= 300) {
|
|
1785
|
-
return
|
|
1354
|
+
return de_CommandError(output, context);
|
|
1786
1355
|
}
|
|
1787
1356
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1788
1357
|
const response = {
|
|
@@ -1790,37 +1359,9 @@ var de_DeleteLogAnomalyDetectorCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1790
1359
|
};
|
|
1791
1360
|
return response;
|
|
1792
1361
|
}, "de_DeleteLogAnomalyDetectorCommand");
|
|
1793
|
-
var de_DeleteLogAnomalyDetectorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1794
|
-
const parsedOutput = {
|
|
1795
|
-
...output,
|
|
1796
|
-
body: await parseErrorBody(output.body, context)
|
|
1797
|
-
};
|
|
1798
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1799
|
-
switch (errorCode) {
|
|
1800
|
-
case "InvalidParameterException":
|
|
1801
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1802
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1803
|
-
case "OperationAbortedException":
|
|
1804
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
1805
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
1806
|
-
case "ResourceNotFoundException":
|
|
1807
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1808
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1809
|
-
case "ServiceUnavailableException":
|
|
1810
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1811
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1812
|
-
default:
|
|
1813
|
-
const parsedBody = parsedOutput.body;
|
|
1814
|
-
return throwDefaultError({
|
|
1815
|
-
output,
|
|
1816
|
-
parsedBody,
|
|
1817
|
-
errorCode
|
|
1818
|
-
});
|
|
1819
|
-
}
|
|
1820
|
-
}, "de_DeleteLogAnomalyDetectorCommandError");
|
|
1821
1362
|
var de_DeleteLogGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1822
1363
|
if (output.statusCode >= 300) {
|
|
1823
|
-
return
|
|
1364
|
+
return de_CommandError(output, context);
|
|
1824
1365
|
}
|
|
1825
1366
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1826
1367
|
const response = {
|
|
@@ -1828,37 +1369,9 @@ var de_DeleteLogGroupCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1828
1369
|
};
|
|
1829
1370
|
return response;
|
|
1830
1371
|
}, "de_DeleteLogGroupCommand");
|
|
1831
|
-
var de_DeleteLogGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1832
|
-
const parsedOutput = {
|
|
1833
|
-
...output,
|
|
1834
|
-
body: await parseErrorBody(output.body, context)
|
|
1835
|
-
};
|
|
1836
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1837
|
-
switch (errorCode) {
|
|
1838
|
-
case "InvalidParameterException":
|
|
1839
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1840
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1841
|
-
case "OperationAbortedException":
|
|
1842
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
1843
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
1844
|
-
case "ResourceNotFoundException":
|
|
1845
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1846
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1847
|
-
case "ServiceUnavailableException":
|
|
1848
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1849
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1850
|
-
default:
|
|
1851
|
-
const parsedBody = parsedOutput.body;
|
|
1852
|
-
return throwDefaultError({
|
|
1853
|
-
output,
|
|
1854
|
-
parsedBody,
|
|
1855
|
-
errorCode
|
|
1856
|
-
});
|
|
1857
|
-
}
|
|
1858
|
-
}, "de_DeleteLogGroupCommandError");
|
|
1859
1372
|
var de_DeleteLogStreamCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1860
1373
|
if (output.statusCode >= 300) {
|
|
1861
|
-
return
|
|
1374
|
+
return de_CommandError(output, context);
|
|
1862
1375
|
}
|
|
1863
1376
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1864
1377
|
const response = {
|
|
@@ -1866,37 +1379,9 @@ var de_DeleteLogStreamCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1866
1379
|
};
|
|
1867
1380
|
return response;
|
|
1868
1381
|
}, "de_DeleteLogStreamCommand");
|
|
1869
|
-
var de_DeleteLogStreamCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1870
|
-
const parsedOutput = {
|
|
1871
|
-
...output,
|
|
1872
|
-
body: await parseErrorBody(output.body, context)
|
|
1873
|
-
};
|
|
1874
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1875
|
-
switch (errorCode) {
|
|
1876
|
-
case "InvalidParameterException":
|
|
1877
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1878
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1879
|
-
case "OperationAbortedException":
|
|
1880
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
1881
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
1882
|
-
case "ResourceNotFoundException":
|
|
1883
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1884
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1885
|
-
case "ServiceUnavailableException":
|
|
1886
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1887
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1888
|
-
default:
|
|
1889
|
-
const parsedBody = parsedOutput.body;
|
|
1890
|
-
return throwDefaultError({
|
|
1891
|
-
output,
|
|
1892
|
-
parsedBody,
|
|
1893
|
-
errorCode
|
|
1894
|
-
});
|
|
1895
|
-
}
|
|
1896
|
-
}, "de_DeleteLogStreamCommandError");
|
|
1897
1382
|
var de_DeleteMetricFilterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1898
1383
|
if (output.statusCode >= 300) {
|
|
1899
|
-
return
|
|
1384
|
+
return de_CommandError(output, context);
|
|
1900
1385
|
}
|
|
1901
1386
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1902
1387
|
const response = {
|
|
@@ -1904,37 +1389,9 @@ var de_DeleteMetricFilterCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1904
1389
|
};
|
|
1905
1390
|
return response;
|
|
1906
1391
|
}, "de_DeleteMetricFilterCommand");
|
|
1907
|
-
var de_DeleteMetricFilterCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1908
|
-
const parsedOutput = {
|
|
1909
|
-
...output,
|
|
1910
|
-
body: await parseErrorBody(output.body, context)
|
|
1911
|
-
};
|
|
1912
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1913
|
-
switch (errorCode) {
|
|
1914
|
-
case "InvalidParameterException":
|
|
1915
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1916
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1917
|
-
case "OperationAbortedException":
|
|
1918
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
1919
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
1920
|
-
case "ResourceNotFoundException":
|
|
1921
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1922
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1923
|
-
case "ServiceUnavailableException":
|
|
1924
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1925
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1926
|
-
default:
|
|
1927
|
-
const parsedBody = parsedOutput.body;
|
|
1928
|
-
return throwDefaultError({
|
|
1929
|
-
output,
|
|
1930
|
-
parsedBody,
|
|
1931
|
-
errorCode
|
|
1932
|
-
});
|
|
1933
|
-
}
|
|
1934
|
-
}, "de_DeleteMetricFilterCommandError");
|
|
1935
1392
|
var de_DeleteQueryDefinitionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1936
1393
|
if (output.statusCode >= 300) {
|
|
1937
|
-
return
|
|
1394
|
+
return de_CommandError(output, context);
|
|
1938
1395
|
}
|
|
1939
1396
|
const data = await parseBody(output.body, context);
|
|
1940
1397
|
let contents = {};
|
|
@@ -1945,34 +1402,9 @@ var de_DeleteQueryDefinitionCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1945
1402
|
};
|
|
1946
1403
|
return response;
|
|
1947
1404
|
}, "de_DeleteQueryDefinitionCommand");
|
|
1948
|
-
var de_DeleteQueryDefinitionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1949
|
-
const parsedOutput = {
|
|
1950
|
-
...output,
|
|
1951
|
-
body: await parseErrorBody(output.body, context)
|
|
1952
|
-
};
|
|
1953
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1954
|
-
switch (errorCode) {
|
|
1955
|
-
case "InvalidParameterException":
|
|
1956
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1957
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1958
|
-
case "ResourceNotFoundException":
|
|
1959
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1960
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1961
|
-
case "ServiceUnavailableException":
|
|
1962
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1963
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1964
|
-
default:
|
|
1965
|
-
const parsedBody = parsedOutput.body;
|
|
1966
|
-
return throwDefaultError({
|
|
1967
|
-
output,
|
|
1968
|
-
parsedBody,
|
|
1969
|
-
errorCode
|
|
1970
|
-
});
|
|
1971
|
-
}
|
|
1972
|
-
}, "de_DeleteQueryDefinitionCommandError");
|
|
1973
1405
|
var de_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1974
1406
|
if (output.statusCode >= 300) {
|
|
1975
|
-
return
|
|
1407
|
+
return de_CommandError(output, context);
|
|
1976
1408
|
}
|
|
1977
1409
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1978
1410
|
const response = {
|
|
@@ -1980,34 +1412,9 @@ var de_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1980
1412
|
};
|
|
1981
1413
|
return response;
|
|
1982
1414
|
}, "de_DeleteResourcePolicyCommand");
|
|
1983
|
-
var de_DeleteResourcePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1984
|
-
const parsedOutput = {
|
|
1985
|
-
...output,
|
|
1986
|
-
body: await parseErrorBody(output.body, context)
|
|
1987
|
-
};
|
|
1988
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1989
|
-
switch (errorCode) {
|
|
1990
|
-
case "InvalidParameterException":
|
|
1991
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1992
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1993
|
-
case "ResourceNotFoundException":
|
|
1994
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1995
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1996
|
-
case "ServiceUnavailableException":
|
|
1997
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1998
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1999
|
-
default:
|
|
2000
|
-
const parsedBody = parsedOutput.body;
|
|
2001
|
-
return throwDefaultError({
|
|
2002
|
-
output,
|
|
2003
|
-
parsedBody,
|
|
2004
|
-
errorCode
|
|
2005
|
-
});
|
|
2006
|
-
}
|
|
2007
|
-
}, "de_DeleteResourcePolicyCommandError");
|
|
2008
1415
|
var de_DeleteRetentionPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2009
1416
|
if (output.statusCode >= 300) {
|
|
2010
|
-
return
|
|
1417
|
+
return de_CommandError(output, context);
|
|
2011
1418
|
}
|
|
2012
1419
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2013
1420
|
const response = {
|
|
@@ -2015,37 +1422,9 @@ var de_DeleteRetentionPolicyCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2015
1422
|
};
|
|
2016
1423
|
return response;
|
|
2017
1424
|
}, "de_DeleteRetentionPolicyCommand");
|
|
2018
|
-
var de_DeleteRetentionPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2019
|
-
const parsedOutput = {
|
|
2020
|
-
...output,
|
|
2021
|
-
body: await parseErrorBody(output.body, context)
|
|
2022
|
-
};
|
|
2023
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2024
|
-
switch (errorCode) {
|
|
2025
|
-
case "InvalidParameterException":
|
|
2026
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2027
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2028
|
-
case "OperationAbortedException":
|
|
2029
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
2030
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
2031
|
-
case "ResourceNotFoundException":
|
|
2032
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2033
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2034
|
-
case "ServiceUnavailableException":
|
|
2035
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2036
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2037
|
-
default:
|
|
2038
|
-
const parsedBody = parsedOutput.body;
|
|
2039
|
-
return throwDefaultError({
|
|
2040
|
-
output,
|
|
2041
|
-
parsedBody,
|
|
2042
|
-
errorCode
|
|
2043
|
-
});
|
|
2044
|
-
}
|
|
2045
|
-
}, "de_DeleteRetentionPolicyCommandError");
|
|
2046
1425
|
var de_DeleteSubscriptionFilterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2047
1426
|
if (output.statusCode >= 300) {
|
|
2048
|
-
return
|
|
1427
|
+
return de_CommandError(output, context);
|
|
2049
1428
|
}
|
|
2050
1429
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2051
1430
|
const response = {
|
|
@@ -2053,37 +1432,9 @@ var de_DeleteSubscriptionFilterCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2053
1432
|
};
|
|
2054
1433
|
return response;
|
|
2055
1434
|
}, "de_DeleteSubscriptionFilterCommand");
|
|
2056
|
-
var de_DeleteSubscriptionFilterCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2057
|
-
const parsedOutput = {
|
|
2058
|
-
...output,
|
|
2059
|
-
body: await parseErrorBody(output.body, context)
|
|
2060
|
-
};
|
|
2061
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2062
|
-
switch (errorCode) {
|
|
2063
|
-
case "InvalidParameterException":
|
|
2064
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2065
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2066
|
-
case "OperationAbortedException":
|
|
2067
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
2068
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
2069
|
-
case "ResourceNotFoundException":
|
|
2070
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2071
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2072
|
-
case "ServiceUnavailableException":
|
|
2073
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2074
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2075
|
-
default:
|
|
2076
|
-
const parsedBody = parsedOutput.body;
|
|
2077
|
-
return throwDefaultError({
|
|
2078
|
-
output,
|
|
2079
|
-
parsedBody,
|
|
2080
|
-
errorCode
|
|
2081
|
-
});
|
|
2082
|
-
}
|
|
2083
|
-
}, "de_DeleteSubscriptionFilterCommandError");
|
|
2084
1435
|
var de_DescribeAccountPoliciesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2085
1436
|
if (output.statusCode >= 300) {
|
|
2086
|
-
return
|
|
1437
|
+
return de_CommandError(output, context);
|
|
2087
1438
|
}
|
|
2088
1439
|
const data = await parseBody(output.body, context);
|
|
2089
1440
|
let contents = {};
|
|
@@ -2094,37 +1445,9 @@ var de_DescribeAccountPoliciesCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2094
1445
|
};
|
|
2095
1446
|
return response;
|
|
2096
1447
|
}, "de_DescribeAccountPoliciesCommand");
|
|
2097
|
-
var de_DescribeAccountPoliciesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2098
|
-
const parsedOutput = {
|
|
2099
|
-
...output,
|
|
2100
|
-
body: await parseErrorBody(output.body, context)
|
|
2101
|
-
};
|
|
2102
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2103
|
-
switch (errorCode) {
|
|
2104
|
-
case "InvalidParameterException":
|
|
2105
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2106
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2107
|
-
case "OperationAbortedException":
|
|
2108
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
2109
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
2110
|
-
case "ResourceNotFoundException":
|
|
2111
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2112
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2113
|
-
case "ServiceUnavailableException":
|
|
2114
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2115
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2116
|
-
default:
|
|
2117
|
-
const parsedBody = parsedOutput.body;
|
|
2118
|
-
return throwDefaultError({
|
|
2119
|
-
output,
|
|
2120
|
-
parsedBody,
|
|
2121
|
-
errorCode
|
|
2122
|
-
});
|
|
2123
|
-
}
|
|
2124
|
-
}, "de_DescribeAccountPoliciesCommandError");
|
|
2125
1448
|
var de_DescribeDeliveriesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2126
1449
|
if (output.statusCode >= 300) {
|
|
2127
|
-
return
|
|
1450
|
+
return de_CommandError(output, context);
|
|
2128
1451
|
}
|
|
2129
1452
|
const data = await parseBody(output.body, context);
|
|
2130
1453
|
let contents = {};
|
|
@@ -2135,78 +1458,9 @@ var de_DescribeDeliveriesCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2135
1458
|
};
|
|
2136
1459
|
return response;
|
|
2137
1460
|
}, "de_DescribeDeliveriesCommand");
|
|
2138
|
-
var de_DescribeDeliveriesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2139
|
-
const parsedOutput = {
|
|
2140
|
-
...output,
|
|
2141
|
-
body: await parseErrorBody(output.body, context)
|
|
2142
|
-
};
|
|
2143
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2144
|
-
switch (errorCode) {
|
|
2145
|
-
case "ServiceQuotaExceededException":
|
|
2146
|
-
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
2147
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2148
|
-
case "ServiceUnavailableException":
|
|
2149
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2150
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2151
|
-
case "ThrottlingException":
|
|
2152
|
-
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
2153
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2154
|
-
case "ValidationException":
|
|
2155
|
-
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
2156
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2157
|
-
default:
|
|
2158
|
-
const parsedBody = parsedOutput.body;
|
|
2159
|
-
return throwDefaultError({
|
|
2160
|
-
output,
|
|
2161
|
-
parsedBody,
|
|
2162
|
-
errorCode
|
|
2163
|
-
});
|
|
2164
|
-
}
|
|
2165
|
-
}, "de_DescribeDeliveriesCommandError");
|
|
2166
1461
|
var de_DescribeDeliveryDestinationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2167
1462
|
if (output.statusCode >= 300) {
|
|
2168
|
-
return
|
|
2169
|
-
}
|
|
2170
|
-
const data = await parseBody(output.body, context);
|
|
2171
|
-
let contents = {};
|
|
2172
|
-
contents = (0, import_smithy_client._json)(data);
|
|
2173
|
-
const response = {
|
|
2174
|
-
$metadata: deserializeMetadata(output),
|
|
2175
|
-
...contents
|
|
2176
|
-
};
|
|
2177
|
-
return response;
|
|
2178
|
-
}, "de_DescribeDeliveryDestinationsCommand");
|
|
2179
|
-
var de_DescribeDeliveryDestinationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2180
|
-
const parsedOutput = {
|
|
2181
|
-
...output,
|
|
2182
|
-
body: await parseErrorBody(output.body, context)
|
|
2183
|
-
};
|
|
2184
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2185
|
-
switch (errorCode) {
|
|
2186
|
-
case "ServiceQuotaExceededException":
|
|
2187
|
-
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
2188
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2189
|
-
case "ServiceUnavailableException":
|
|
2190
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2191
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2192
|
-
case "ThrottlingException":
|
|
2193
|
-
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
2194
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2195
|
-
case "ValidationException":
|
|
2196
|
-
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
2197
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2198
|
-
default:
|
|
2199
|
-
const parsedBody = parsedOutput.body;
|
|
2200
|
-
return throwDefaultError({
|
|
2201
|
-
output,
|
|
2202
|
-
parsedBody,
|
|
2203
|
-
errorCode
|
|
2204
|
-
});
|
|
2205
|
-
}
|
|
2206
|
-
}, "de_DescribeDeliveryDestinationsCommandError");
|
|
2207
|
-
var de_DescribeDeliverySourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2208
|
-
if (output.statusCode >= 300) {
|
|
2209
|
-
return de_DescribeDeliverySourcesCommandError(output, context);
|
|
1463
|
+
return de_CommandError(output, context);
|
|
2210
1464
|
}
|
|
2211
1465
|
const data = await parseBody(output.body, context);
|
|
2212
1466
|
let contents = {};
|
|
@@ -2216,38 +1470,23 @@ var de_DescribeDeliverySourcesCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2216
1470
|
...contents
|
|
2217
1471
|
};
|
|
2218
1472
|
return response;
|
|
2219
|
-
}, "
|
|
2220
|
-
var
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
body: await parseErrorBody(output.body, context)
|
|
2224
|
-
};
|
|
2225
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2226
|
-
switch (errorCode) {
|
|
2227
|
-
case "ServiceQuotaExceededException":
|
|
2228
|
-
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
2229
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2230
|
-
case "ServiceUnavailableException":
|
|
2231
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2232
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2233
|
-
case "ThrottlingException":
|
|
2234
|
-
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
2235
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2236
|
-
case "ValidationException":
|
|
2237
|
-
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
2238
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2239
|
-
default:
|
|
2240
|
-
const parsedBody = parsedOutput.body;
|
|
2241
|
-
return throwDefaultError({
|
|
2242
|
-
output,
|
|
2243
|
-
parsedBody,
|
|
2244
|
-
errorCode
|
|
2245
|
-
});
|
|
1473
|
+
}, "de_DescribeDeliveryDestinationsCommand");
|
|
1474
|
+
var de_DescribeDeliverySourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1475
|
+
if (output.statusCode >= 300) {
|
|
1476
|
+
return de_CommandError(output, context);
|
|
2246
1477
|
}
|
|
2247
|
-
|
|
1478
|
+
const data = await parseBody(output.body, context);
|
|
1479
|
+
let contents = {};
|
|
1480
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1481
|
+
const response = {
|
|
1482
|
+
$metadata: deserializeMetadata(output),
|
|
1483
|
+
...contents
|
|
1484
|
+
};
|
|
1485
|
+
return response;
|
|
1486
|
+
}, "de_DescribeDeliverySourcesCommand");
|
|
2248
1487
|
var de_DescribeDestinationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2249
1488
|
if (output.statusCode >= 300) {
|
|
2250
|
-
return
|
|
1489
|
+
return de_CommandError(output, context);
|
|
2251
1490
|
}
|
|
2252
1491
|
const data = await parseBody(output.body, context);
|
|
2253
1492
|
let contents = {};
|
|
@@ -2258,31 +1497,9 @@ var de_DescribeDestinationsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2258
1497
|
};
|
|
2259
1498
|
return response;
|
|
2260
1499
|
}, "de_DescribeDestinationsCommand");
|
|
2261
|
-
var de_DescribeDestinationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2262
|
-
const parsedOutput = {
|
|
2263
|
-
...output,
|
|
2264
|
-
body: await parseErrorBody(output.body, context)
|
|
2265
|
-
};
|
|
2266
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2267
|
-
switch (errorCode) {
|
|
2268
|
-
case "InvalidParameterException":
|
|
2269
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2270
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2271
|
-
case "ServiceUnavailableException":
|
|
2272
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2273
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2274
|
-
default:
|
|
2275
|
-
const parsedBody = parsedOutput.body;
|
|
2276
|
-
return throwDefaultError({
|
|
2277
|
-
output,
|
|
2278
|
-
parsedBody,
|
|
2279
|
-
errorCode
|
|
2280
|
-
});
|
|
2281
|
-
}
|
|
2282
|
-
}, "de_DescribeDestinationsCommandError");
|
|
2283
1500
|
var de_DescribeExportTasksCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2284
1501
|
if (output.statusCode >= 300) {
|
|
2285
|
-
return
|
|
1502
|
+
return de_CommandError(output, context);
|
|
2286
1503
|
}
|
|
2287
1504
|
const data = await parseBody(output.body, context);
|
|
2288
1505
|
let contents = {};
|
|
@@ -2293,31 +1510,9 @@ var de_DescribeExportTasksCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2293
1510
|
};
|
|
2294
1511
|
return response;
|
|
2295
1512
|
}, "de_DescribeExportTasksCommand");
|
|
2296
|
-
var de_DescribeExportTasksCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2297
|
-
const parsedOutput = {
|
|
2298
|
-
...output,
|
|
2299
|
-
body: await parseErrorBody(output.body, context)
|
|
2300
|
-
};
|
|
2301
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2302
|
-
switch (errorCode) {
|
|
2303
|
-
case "InvalidParameterException":
|
|
2304
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2305
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2306
|
-
case "ServiceUnavailableException":
|
|
2307
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2308
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2309
|
-
default:
|
|
2310
|
-
const parsedBody = parsedOutput.body;
|
|
2311
|
-
return throwDefaultError({
|
|
2312
|
-
output,
|
|
2313
|
-
parsedBody,
|
|
2314
|
-
errorCode
|
|
2315
|
-
});
|
|
2316
|
-
}
|
|
2317
|
-
}, "de_DescribeExportTasksCommandError");
|
|
2318
1513
|
var de_DescribeLogGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2319
1514
|
if (output.statusCode >= 300) {
|
|
2320
|
-
return
|
|
1515
|
+
return de_CommandError(output, context);
|
|
2321
1516
|
}
|
|
2322
1517
|
const data = await parseBody(output.body, context);
|
|
2323
1518
|
let contents = {};
|
|
@@ -2328,31 +1523,9 @@ var de_DescribeLogGroupsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2328
1523
|
};
|
|
2329
1524
|
return response;
|
|
2330
1525
|
}, "de_DescribeLogGroupsCommand");
|
|
2331
|
-
var de_DescribeLogGroupsCommandError = /* @__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 "InvalidParameterException":
|
|
2339
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2340
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2341
|
-
case "ServiceUnavailableException":
|
|
2342
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2343
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2344
|
-
default:
|
|
2345
|
-
const parsedBody = parsedOutput.body;
|
|
2346
|
-
return throwDefaultError({
|
|
2347
|
-
output,
|
|
2348
|
-
parsedBody,
|
|
2349
|
-
errorCode
|
|
2350
|
-
});
|
|
2351
|
-
}
|
|
2352
|
-
}, "de_DescribeLogGroupsCommandError");
|
|
2353
1526
|
var de_DescribeLogStreamsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2354
1527
|
if (output.statusCode >= 300) {
|
|
2355
|
-
return
|
|
1528
|
+
return de_CommandError(output, context);
|
|
2356
1529
|
}
|
|
2357
1530
|
const data = await parseBody(output.body, context);
|
|
2358
1531
|
let contents = {};
|
|
@@ -2363,34 +1536,9 @@ var de_DescribeLogStreamsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2363
1536
|
};
|
|
2364
1537
|
return response;
|
|
2365
1538
|
}, "de_DescribeLogStreamsCommand");
|
|
2366
|
-
var de_DescribeLogStreamsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2367
|
-
const parsedOutput = {
|
|
2368
|
-
...output,
|
|
2369
|
-
body: await parseErrorBody(output.body, context)
|
|
2370
|
-
};
|
|
2371
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2372
|
-
switch (errorCode) {
|
|
2373
|
-
case "InvalidParameterException":
|
|
2374
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2375
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2376
|
-
case "ResourceNotFoundException":
|
|
2377
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2378
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2379
|
-
case "ServiceUnavailableException":
|
|
2380
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2381
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2382
|
-
default:
|
|
2383
|
-
const parsedBody = parsedOutput.body;
|
|
2384
|
-
return throwDefaultError({
|
|
2385
|
-
output,
|
|
2386
|
-
parsedBody,
|
|
2387
|
-
errorCode
|
|
2388
|
-
});
|
|
2389
|
-
}
|
|
2390
|
-
}, "de_DescribeLogStreamsCommandError");
|
|
2391
1539
|
var de_DescribeMetricFiltersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2392
1540
|
if (output.statusCode >= 300) {
|
|
2393
|
-
return
|
|
1541
|
+
return de_CommandError(output, context);
|
|
2394
1542
|
}
|
|
2395
1543
|
const data = await parseBody(output.body, context);
|
|
2396
1544
|
let contents = {};
|
|
@@ -2401,34 +1549,9 @@ var de_DescribeMetricFiltersCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2401
1549
|
};
|
|
2402
1550
|
return response;
|
|
2403
1551
|
}, "de_DescribeMetricFiltersCommand");
|
|
2404
|
-
var de_DescribeMetricFiltersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2405
|
-
const parsedOutput = {
|
|
2406
|
-
...output,
|
|
2407
|
-
body: await parseErrorBody(output.body, context)
|
|
2408
|
-
};
|
|
2409
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2410
|
-
switch (errorCode) {
|
|
2411
|
-
case "InvalidParameterException":
|
|
2412
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2413
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2414
|
-
case "ResourceNotFoundException":
|
|
2415
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2416
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2417
|
-
case "ServiceUnavailableException":
|
|
2418
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2419
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2420
|
-
default:
|
|
2421
|
-
const parsedBody = parsedOutput.body;
|
|
2422
|
-
return throwDefaultError({
|
|
2423
|
-
output,
|
|
2424
|
-
parsedBody,
|
|
2425
|
-
errorCode
|
|
2426
|
-
});
|
|
2427
|
-
}
|
|
2428
|
-
}, "de_DescribeMetricFiltersCommandError");
|
|
2429
1552
|
var de_DescribeQueriesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2430
1553
|
if (output.statusCode >= 300) {
|
|
2431
|
-
return
|
|
1554
|
+
return de_CommandError(output, context);
|
|
2432
1555
|
}
|
|
2433
1556
|
const data = await parseBody(output.body, context);
|
|
2434
1557
|
let contents = {};
|
|
@@ -2439,34 +1562,9 @@ var de_DescribeQueriesCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2439
1562
|
};
|
|
2440
1563
|
return response;
|
|
2441
1564
|
}, "de_DescribeQueriesCommand");
|
|
2442
|
-
var de_DescribeQueriesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2443
|
-
const parsedOutput = {
|
|
2444
|
-
...output,
|
|
2445
|
-
body: await parseErrorBody(output.body, context)
|
|
2446
|
-
};
|
|
2447
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2448
|
-
switch (errorCode) {
|
|
2449
|
-
case "InvalidParameterException":
|
|
2450
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2451
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2452
|
-
case "ResourceNotFoundException":
|
|
2453
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2454
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2455
|
-
case "ServiceUnavailableException":
|
|
2456
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2457
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2458
|
-
default:
|
|
2459
|
-
const parsedBody = parsedOutput.body;
|
|
2460
|
-
return throwDefaultError({
|
|
2461
|
-
output,
|
|
2462
|
-
parsedBody,
|
|
2463
|
-
errorCode
|
|
2464
|
-
});
|
|
2465
|
-
}
|
|
2466
|
-
}, "de_DescribeQueriesCommandError");
|
|
2467
1565
|
var de_DescribeQueryDefinitionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2468
1566
|
if (output.statusCode >= 300) {
|
|
2469
|
-
return
|
|
1567
|
+
return de_CommandError(output, context);
|
|
2470
1568
|
}
|
|
2471
1569
|
const data = await parseBody(output.body, context);
|
|
2472
1570
|
let contents = {};
|
|
@@ -2477,31 +1575,9 @@ var de_DescribeQueryDefinitionsCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2477
1575
|
};
|
|
2478
1576
|
return response;
|
|
2479
1577
|
}, "de_DescribeQueryDefinitionsCommand");
|
|
2480
|
-
var de_DescribeQueryDefinitionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2481
|
-
const parsedOutput = {
|
|
2482
|
-
...output,
|
|
2483
|
-
body: await parseErrorBody(output.body, context)
|
|
2484
|
-
};
|
|
2485
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2486
|
-
switch (errorCode) {
|
|
2487
|
-
case "InvalidParameterException":
|
|
2488
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2489
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2490
|
-
case "ServiceUnavailableException":
|
|
2491
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2492
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2493
|
-
default:
|
|
2494
|
-
const parsedBody = parsedOutput.body;
|
|
2495
|
-
return throwDefaultError({
|
|
2496
|
-
output,
|
|
2497
|
-
parsedBody,
|
|
2498
|
-
errorCode
|
|
2499
|
-
});
|
|
2500
|
-
}
|
|
2501
|
-
}, "de_DescribeQueryDefinitionsCommandError");
|
|
2502
1578
|
var de_DescribeResourcePoliciesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2503
1579
|
if (output.statusCode >= 300) {
|
|
2504
|
-
return
|
|
1580
|
+
return de_CommandError(output, context);
|
|
2505
1581
|
}
|
|
2506
1582
|
const data = await parseBody(output.body, context);
|
|
2507
1583
|
let contents = {};
|
|
@@ -2512,31 +1588,9 @@ var de_DescribeResourcePoliciesCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2512
1588
|
};
|
|
2513
1589
|
return response;
|
|
2514
1590
|
}, "de_DescribeResourcePoliciesCommand");
|
|
2515
|
-
var de_DescribeResourcePoliciesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2516
|
-
const parsedOutput = {
|
|
2517
|
-
...output,
|
|
2518
|
-
body: await parseErrorBody(output.body, context)
|
|
2519
|
-
};
|
|
2520
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2521
|
-
switch (errorCode) {
|
|
2522
|
-
case "InvalidParameterException":
|
|
2523
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2524
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2525
|
-
case "ServiceUnavailableException":
|
|
2526
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2527
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2528
|
-
default:
|
|
2529
|
-
const parsedBody = parsedOutput.body;
|
|
2530
|
-
return throwDefaultError({
|
|
2531
|
-
output,
|
|
2532
|
-
parsedBody,
|
|
2533
|
-
errorCode
|
|
2534
|
-
});
|
|
2535
|
-
}
|
|
2536
|
-
}, "de_DescribeResourcePoliciesCommandError");
|
|
2537
1591
|
var de_DescribeSubscriptionFiltersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2538
1592
|
if (output.statusCode >= 300) {
|
|
2539
|
-
return
|
|
1593
|
+
return de_CommandError(output, context);
|
|
2540
1594
|
}
|
|
2541
1595
|
const data = await parseBody(output.body, context);
|
|
2542
1596
|
let contents = {};
|
|
@@ -2547,34 +1601,9 @@ var de_DescribeSubscriptionFiltersCommand = /* @__PURE__ */ __name(async (output
|
|
|
2547
1601
|
};
|
|
2548
1602
|
return response;
|
|
2549
1603
|
}, "de_DescribeSubscriptionFiltersCommand");
|
|
2550
|
-
var de_DescribeSubscriptionFiltersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2551
|
-
const parsedOutput = {
|
|
2552
|
-
...output,
|
|
2553
|
-
body: await parseErrorBody(output.body, context)
|
|
2554
|
-
};
|
|
2555
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2556
|
-
switch (errorCode) {
|
|
2557
|
-
case "InvalidParameterException":
|
|
2558
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2559
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2560
|
-
case "ResourceNotFoundException":
|
|
2561
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2562
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2563
|
-
case "ServiceUnavailableException":
|
|
2564
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2565
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2566
|
-
default:
|
|
2567
|
-
const parsedBody = parsedOutput.body;
|
|
2568
|
-
return throwDefaultError({
|
|
2569
|
-
output,
|
|
2570
|
-
parsedBody,
|
|
2571
|
-
errorCode
|
|
2572
|
-
});
|
|
2573
|
-
}
|
|
2574
|
-
}, "de_DescribeSubscriptionFiltersCommandError");
|
|
2575
1604
|
var de_DisassociateKmsKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2576
1605
|
if (output.statusCode >= 300) {
|
|
2577
|
-
return
|
|
1606
|
+
return de_CommandError(output, context);
|
|
2578
1607
|
}
|
|
2579
1608
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2580
1609
|
const response = {
|
|
@@ -2582,37 +1611,9 @@ var de_DisassociateKmsKeyCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2582
1611
|
};
|
|
2583
1612
|
return response;
|
|
2584
1613
|
}, "de_DisassociateKmsKeyCommand");
|
|
2585
|
-
var de_DisassociateKmsKeyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2586
|
-
const parsedOutput = {
|
|
2587
|
-
...output,
|
|
2588
|
-
body: await parseErrorBody(output.body, context)
|
|
2589
|
-
};
|
|
2590
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2591
|
-
switch (errorCode) {
|
|
2592
|
-
case "InvalidParameterException":
|
|
2593
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2594
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2595
|
-
case "OperationAbortedException":
|
|
2596
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
2597
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
2598
|
-
case "ResourceNotFoundException":
|
|
2599
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2600
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2601
|
-
case "ServiceUnavailableException":
|
|
2602
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2603
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2604
|
-
default:
|
|
2605
|
-
const parsedBody = parsedOutput.body;
|
|
2606
|
-
return throwDefaultError({
|
|
2607
|
-
output,
|
|
2608
|
-
parsedBody,
|
|
2609
|
-
errorCode
|
|
2610
|
-
});
|
|
2611
|
-
}
|
|
2612
|
-
}, "de_DisassociateKmsKeyCommandError");
|
|
2613
1614
|
var de_FilterLogEventsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2614
1615
|
if (output.statusCode >= 300) {
|
|
2615
|
-
return
|
|
1616
|
+
return de_CommandError(output, context);
|
|
2616
1617
|
}
|
|
2617
1618
|
const data = await parseBody(output.body, context);
|
|
2618
1619
|
let contents = {};
|
|
@@ -2620,37 +1621,12 @@ var de_FilterLogEventsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2620
1621
|
const response = {
|
|
2621
1622
|
$metadata: deserializeMetadata(output),
|
|
2622
1623
|
...contents
|
|
2623
|
-
};
|
|
2624
|
-
return response;
|
|
2625
|
-
}, "de_FilterLogEventsCommand");
|
|
2626
|
-
var de_FilterLogEventsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2627
|
-
const parsedOutput = {
|
|
2628
|
-
...output,
|
|
2629
|
-
body: await parseErrorBody(output.body, context)
|
|
2630
|
-
};
|
|
2631
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2632
|
-
switch (errorCode) {
|
|
2633
|
-
case "InvalidParameterException":
|
|
2634
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2635
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2636
|
-
case "ResourceNotFoundException":
|
|
2637
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2638
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2639
|
-
case "ServiceUnavailableException":
|
|
2640
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2641
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2642
|
-
default:
|
|
2643
|
-
const parsedBody = parsedOutput.body;
|
|
2644
|
-
return throwDefaultError({
|
|
2645
|
-
output,
|
|
2646
|
-
parsedBody,
|
|
2647
|
-
errorCode
|
|
2648
|
-
});
|
|
2649
|
-
}
|
|
2650
|
-
}, "de_FilterLogEventsCommandError");
|
|
1624
|
+
};
|
|
1625
|
+
return response;
|
|
1626
|
+
}, "de_FilterLogEventsCommand");
|
|
2651
1627
|
var de_GetDataProtectionPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2652
1628
|
if (output.statusCode >= 300) {
|
|
2653
|
-
return
|
|
1629
|
+
return de_CommandError(output, context);
|
|
2654
1630
|
}
|
|
2655
1631
|
const data = await parseBody(output.body, context);
|
|
2656
1632
|
let contents = {};
|
|
@@ -2661,37 +1637,9 @@ var de_GetDataProtectionPolicyCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2661
1637
|
};
|
|
2662
1638
|
return response;
|
|
2663
1639
|
}, "de_GetDataProtectionPolicyCommand");
|
|
2664
|
-
var de_GetDataProtectionPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2665
|
-
const parsedOutput = {
|
|
2666
|
-
...output,
|
|
2667
|
-
body: await parseErrorBody(output.body, context)
|
|
2668
|
-
};
|
|
2669
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2670
|
-
switch (errorCode) {
|
|
2671
|
-
case "InvalidParameterException":
|
|
2672
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2673
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2674
|
-
case "OperationAbortedException":
|
|
2675
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
2676
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
2677
|
-
case "ResourceNotFoundException":
|
|
2678
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2679
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2680
|
-
case "ServiceUnavailableException":
|
|
2681
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2682
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2683
|
-
default:
|
|
2684
|
-
const parsedBody = parsedOutput.body;
|
|
2685
|
-
return throwDefaultError({
|
|
2686
|
-
output,
|
|
2687
|
-
parsedBody,
|
|
2688
|
-
errorCode
|
|
2689
|
-
});
|
|
2690
|
-
}
|
|
2691
|
-
}, "de_GetDataProtectionPolicyCommandError");
|
|
2692
1640
|
var de_GetDeliveryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2693
1641
|
if (output.statusCode >= 300) {
|
|
2694
|
-
return
|
|
1642
|
+
return de_CommandError(output, context);
|
|
2695
1643
|
}
|
|
2696
1644
|
const data = await parseBody(output.body, context);
|
|
2697
1645
|
let contents = {};
|
|
@@ -2702,40 +1650,9 @@ var de_GetDeliveryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2702
1650
|
};
|
|
2703
1651
|
return response;
|
|
2704
1652
|
}, "de_GetDeliveryCommand");
|
|
2705
|
-
var de_GetDeliveryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2706
|
-
const parsedOutput = {
|
|
2707
|
-
...output,
|
|
2708
|
-
body: await parseErrorBody(output.body, context)
|
|
2709
|
-
};
|
|
2710
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2711
|
-
switch (errorCode) {
|
|
2712
|
-
case "ResourceNotFoundException":
|
|
2713
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2714
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2715
|
-
case "ServiceQuotaExceededException":
|
|
2716
|
-
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
2717
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2718
|
-
case "ServiceUnavailableException":
|
|
2719
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2720
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2721
|
-
case "ThrottlingException":
|
|
2722
|
-
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
2723
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2724
|
-
case "ValidationException":
|
|
2725
|
-
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
2726
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2727
|
-
default:
|
|
2728
|
-
const parsedBody = parsedOutput.body;
|
|
2729
|
-
return throwDefaultError({
|
|
2730
|
-
output,
|
|
2731
|
-
parsedBody,
|
|
2732
|
-
errorCode
|
|
2733
|
-
});
|
|
2734
|
-
}
|
|
2735
|
-
}, "de_GetDeliveryCommandError");
|
|
2736
1653
|
var de_GetDeliveryDestinationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2737
1654
|
if (output.statusCode >= 300) {
|
|
2738
|
-
return
|
|
1655
|
+
return de_CommandError(output, context);
|
|
2739
1656
|
}
|
|
2740
1657
|
const data = await parseBody(output.body, context);
|
|
2741
1658
|
let contents = {};
|
|
@@ -2746,40 +1663,9 @@ var de_GetDeliveryDestinationCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2746
1663
|
};
|
|
2747
1664
|
return response;
|
|
2748
1665
|
}, "de_GetDeliveryDestinationCommand");
|
|
2749
|
-
var de_GetDeliveryDestinationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2750
|
-
const parsedOutput = {
|
|
2751
|
-
...output,
|
|
2752
|
-
body: await parseErrorBody(output.body, context)
|
|
2753
|
-
};
|
|
2754
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2755
|
-
switch (errorCode) {
|
|
2756
|
-
case "ResourceNotFoundException":
|
|
2757
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2758
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2759
|
-
case "ServiceQuotaExceededException":
|
|
2760
|
-
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
2761
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2762
|
-
case "ServiceUnavailableException":
|
|
2763
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2764
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2765
|
-
case "ThrottlingException":
|
|
2766
|
-
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
2767
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2768
|
-
case "ValidationException":
|
|
2769
|
-
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
2770
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2771
|
-
default:
|
|
2772
|
-
const parsedBody = parsedOutput.body;
|
|
2773
|
-
return throwDefaultError({
|
|
2774
|
-
output,
|
|
2775
|
-
parsedBody,
|
|
2776
|
-
errorCode
|
|
2777
|
-
});
|
|
2778
|
-
}
|
|
2779
|
-
}, "de_GetDeliveryDestinationCommandError");
|
|
2780
1666
|
var de_GetDeliveryDestinationPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2781
1667
|
if (output.statusCode >= 300) {
|
|
2782
|
-
return
|
|
1668
|
+
return de_CommandError(output, context);
|
|
2783
1669
|
}
|
|
2784
1670
|
const data = await parseBody(output.body, context);
|
|
2785
1671
|
let contents = {};
|
|
@@ -2790,34 +1676,9 @@ var de_GetDeliveryDestinationPolicyCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
2790
1676
|
};
|
|
2791
1677
|
return response;
|
|
2792
1678
|
}, "de_GetDeliveryDestinationPolicyCommand");
|
|
2793
|
-
var de_GetDeliveryDestinationPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2794
|
-
const parsedOutput = {
|
|
2795
|
-
...output,
|
|
2796
|
-
body: await parseErrorBody(output.body, context)
|
|
2797
|
-
};
|
|
2798
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2799
|
-
switch (errorCode) {
|
|
2800
|
-
case "ResourceNotFoundException":
|
|
2801
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2802
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2803
|
-
case "ServiceUnavailableException":
|
|
2804
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2805
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2806
|
-
case "ValidationException":
|
|
2807
|
-
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
2808
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2809
|
-
default:
|
|
2810
|
-
const parsedBody = parsedOutput.body;
|
|
2811
|
-
return throwDefaultError({
|
|
2812
|
-
output,
|
|
2813
|
-
parsedBody,
|
|
2814
|
-
errorCode
|
|
2815
|
-
});
|
|
2816
|
-
}
|
|
2817
|
-
}, "de_GetDeliveryDestinationPolicyCommandError");
|
|
2818
1679
|
var de_GetDeliverySourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2819
1680
|
if (output.statusCode >= 300) {
|
|
2820
|
-
return
|
|
1681
|
+
return de_CommandError(output, context);
|
|
2821
1682
|
}
|
|
2822
1683
|
const data = await parseBody(output.body, context);
|
|
2823
1684
|
let contents = {};
|
|
@@ -2828,40 +1689,9 @@ var de_GetDeliverySourceCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2828
1689
|
};
|
|
2829
1690
|
return response;
|
|
2830
1691
|
}, "de_GetDeliverySourceCommand");
|
|
2831
|
-
var de_GetDeliverySourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2832
|
-
const parsedOutput = {
|
|
2833
|
-
...output,
|
|
2834
|
-
body: await parseErrorBody(output.body, context)
|
|
2835
|
-
};
|
|
2836
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2837
|
-
switch (errorCode) {
|
|
2838
|
-
case "ResourceNotFoundException":
|
|
2839
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2840
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2841
|
-
case "ServiceQuotaExceededException":
|
|
2842
|
-
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
2843
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2844
|
-
case "ServiceUnavailableException":
|
|
2845
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2846
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2847
|
-
case "ThrottlingException":
|
|
2848
|
-
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
2849
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2850
|
-
case "ValidationException":
|
|
2851
|
-
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
2852
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2853
|
-
default:
|
|
2854
|
-
const parsedBody = parsedOutput.body;
|
|
2855
|
-
return throwDefaultError({
|
|
2856
|
-
output,
|
|
2857
|
-
parsedBody,
|
|
2858
|
-
errorCode
|
|
2859
|
-
});
|
|
2860
|
-
}
|
|
2861
|
-
}, "de_GetDeliverySourceCommandError");
|
|
2862
1692
|
var de_GetLogAnomalyDetectorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2863
1693
|
if (output.statusCode >= 300) {
|
|
2864
|
-
return
|
|
1694
|
+
return de_CommandError(output, context);
|
|
2865
1695
|
}
|
|
2866
1696
|
const data = await parseBody(output.body, context);
|
|
2867
1697
|
let contents = {};
|
|
@@ -2872,37 +1702,9 @@ var de_GetLogAnomalyDetectorCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2872
1702
|
};
|
|
2873
1703
|
return response;
|
|
2874
1704
|
}, "de_GetLogAnomalyDetectorCommand");
|
|
2875
|
-
var de_GetLogAnomalyDetectorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2876
|
-
const parsedOutput = {
|
|
2877
|
-
...output,
|
|
2878
|
-
body: await parseErrorBody(output.body, context)
|
|
2879
|
-
};
|
|
2880
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2881
|
-
switch (errorCode) {
|
|
2882
|
-
case "InvalidParameterException":
|
|
2883
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2884
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2885
|
-
case "OperationAbortedException":
|
|
2886
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
2887
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
2888
|
-
case "ResourceNotFoundException":
|
|
2889
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2890
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2891
|
-
case "ServiceUnavailableException":
|
|
2892
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2893
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2894
|
-
default:
|
|
2895
|
-
const parsedBody = parsedOutput.body;
|
|
2896
|
-
return throwDefaultError({
|
|
2897
|
-
output,
|
|
2898
|
-
parsedBody,
|
|
2899
|
-
errorCode
|
|
2900
|
-
});
|
|
2901
|
-
}
|
|
2902
|
-
}, "de_GetLogAnomalyDetectorCommandError");
|
|
2903
1705
|
var de_GetLogEventsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2904
1706
|
if (output.statusCode >= 300) {
|
|
2905
|
-
return
|
|
1707
|
+
return de_CommandError(output, context);
|
|
2906
1708
|
}
|
|
2907
1709
|
const data = await parseBody(output.body, context);
|
|
2908
1710
|
let contents = {};
|
|
@@ -2913,116 +1715,35 @@ var de_GetLogEventsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2913
1715
|
};
|
|
2914
1716
|
return response;
|
|
2915
1717
|
}, "de_GetLogEventsCommand");
|
|
2916
|
-
var de_GetLogEventsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2917
|
-
const parsedOutput = {
|
|
2918
|
-
...output,
|
|
2919
|
-
body: await parseErrorBody(output.body, context)
|
|
2920
|
-
};
|
|
2921
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2922
|
-
switch (errorCode) {
|
|
2923
|
-
case "InvalidParameterException":
|
|
2924
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2925
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2926
|
-
case "ResourceNotFoundException":
|
|
2927
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2928
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2929
|
-
case "ServiceUnavailableException":
|
|
2930
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2931
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2932
|
-
default:
|
|
2933
|
-
const parsedBody = parsedOutput.body;
|
|
2934
|
-
return throwDefaultError({
|
|
2935
|
-
output,
|
|
2936
|
-
parsedBody,
|
|
2937
|
-
errorCode
|
|
2938
|
-
});
|
|
2939
|
-
}
|
|
2940
|
-
}, "de_GetLogEventsCommandError");
|
|
2941
1718
|
var de_GetLogGroupFieldsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2942
1719
|
if (output.statusCode >= 300) {
|
|
2943
|
-
return
|
|
2944
|
-
}
|
|
2945
|
-
const data = await parseBody(output.body, context);
|
|
2946
|
-
let contents = {};
|
|
2947
|
-
contents = (0, import_smithy_client._json)(data);
|
|
2948
|
-
const response = {
|
|
2949
|
-
$metadata: deserializeMetadata(output),
|
|
2950
|
-
...contents
|
|
2951
|
-
};
|
|
2952
|
-
return response;
|
|
2953
|
-
}, "de_GetLogGroupFieldsCommand");
|
|
2954
|
-
var de_GetLogGroupFieldsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2955
|
-
const parsedOutput = {
|
|
2956
|
-
...output,
|
|
2957
|
-
body: await parseErrorBody(output.body, context)
|
|
2958
|
-
};
|
|
2959
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2960
|
-
switch (errorCode) {
|
|
2961
|
-
case "InvalidParameterException":
|
|
2962
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2963
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2964
|
-
case "LimitExceededException":
|
|
2965
|
-
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
2966
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2967
|
-
case "ResourceNotFoundException":
|
|
2968
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2969
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2970
|
-
case "ServiceUnavailableException":
|
|
2971
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2972
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2973
|
-
default:
|
|
2974
|
-
const parsedBody = parsedOutput.body;
|
|
2975
|
-
return throwDefaultError({
|
|
2976
|
-
output,
|
|
2977
|
-
parsedBody,
|
|
2978
|
-
errorCode
|
|
2979
|
-
});
|
|
2980
|
-
}
|
|
2981
|
-
}, "de_GetLogGroupFieldsCommandError");
|
|
2982
|
-
var de_GetLogRecordCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2983
|
-
if (output.statusCode >= 300) {
|
|
2984
|
-
return de_GetLogRecordCommandError(output, context);
|
|
1720
|
+
return de_CommandError(output, context);
|
|
2985
1721
|
}
|
|
2986
1722
|
const data = await parseBody(output.body, context);
|
|
2987
1723
|
let contents = {};
|
|
2988
1724
|
contents = (0, import_smithy_client._json)(data);
|
|
2989
1725
|
const response = {
|
|
2990
|
-
$metadata: deserializeMetadata(output),
|
|
2991
|
-
...contents
|
|
2992
|
-
};
|
|
2993
|
-
return response;
|
|
2994
|
-
}, "
|
|
2995
|
-
var
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
body: await parseErrorBody(output.body, context)
|
|
2999
|
-
};
|
|
3000
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3001
|
-
switch (errorCode) {
|
|
3002
|
-
case "InvalidParameterException":
|
|
3003
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
3004
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3005
|
-
case "LimitExceededException":
|
|
3006
|
-
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
3007
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3008
|
-
case "ResourceNotFoundException":
|
|
3009
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
3010
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3011
|
-
case "ServiceUnavailableException":
|
|
3012
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
3013
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3014
|
-
default:
|
|
3015
|
-
const parsedBody = parsedOutput.body;
|
|
3016
|
-
return throwDefaultError({
|
|
3017
|
-
output,
|
|
3018
|
-
parsedBody,
|
|
3019
|
-
errorCode
|
|
3020
|
-
});
|
|
1726
|
+
$metadata: deserializeMetadata(output),
|
|
1727
|
+
...contents
|
|
1728
|
+
};
|
|
1729
|
+
return response;
|
|
1730
|
+
}, "de_GetLogGroupFieldsCommand");
|
|
1731
|
+
var de_GetLogRecordCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1732
|
+
if (output.statusCode >= 300) {
|
|
1733
|
+
return de_CommandError(output, context);
|
|
3021
1734
|
}
|
|
3022
|
-
|
|
1735
|
+
const data = await parseBody(output.body, context);
|
|
1736
|
+
let contents = {};
|
|
1737
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1738
|
+
const response = {
|
|
1739
|
+
$metadata: deserializeMetadata(output),
|
|
1740
|
+
...contents
|
|
1741
|
+
};
|
|
1742
|
+
return response;
|
|
1743
|
+
}, "de_GetLogRecordCommand");
|
|
3023
1744
|
var de_GetQueryResultsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3024
1745
|
if (output.statusCode >= 300) {
|
|
3025
|
-
return
|
|
1746
|
+
return de_CommandError(output, context);
|
|
3026
1747
|
}
|
|
3027
1748
|
const data = await parseBody(output.body, context);
|
|
3028
1749
|
let contents = {};
|
|
@@ -3033,34 +1754,9 @@ var de_GetQueryResultsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
3033
1754
|
};
|
|
3034
1755
|
return response;
|
|
3035
1756
|
}, "de_GetQueryResultsCommand");
|
|
3036
|
-
var de_GetQueryResultsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3037
|
-
const parsedOutput = {
|
|
3038
|
-
...output,
|
|
3039
|
-
body: await parseErrorBody(output.body, context)
|
|
3040
|
-
};
|
|
3041
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3042
|
-
switch (errorCode) {
|
|
3043
|
-
case "InvalidParameterException":
|
|
3044
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
3045
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3046
|
-
case "ResourceNotFoundException":
|
|
3047
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
3048
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3049
|
-
case "ServiceUnavailableException":
|
|
3050
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
3051
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3052
|
-
default:
|
|
3053
|
-
const parsedBody = parsedOutput.body;
|
|
3054
|
-
return throwDefaultError({
|
|
3055
|
-
output,
|
|
3056
|
-
parsedBody,
|
|
3057
|
-
errorCode
|
|
3058
|
-
});
|
|
3059
|
-
}
|
|
3060
|
-
}, "de_GetQueryResultsCommandError");
|
|
3061
1757
|
var de_ListAnomaliesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3062
1758
|
if (output.statusCode >= 300) {
|
|
3063
|
-
return
|
|
1759
|
+
return de_CommandError(output, context);
|
|
3064
1760
|
}
|
|
3065
1761
|
const data = await parseBody(output.body, context);
|
|
3066
1762
|
let contents = {};
|
|
@@ -3071,37 +1767,9 @@ var de_ListAnomaliesCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3071
1767
|
};
|
|
3072
1768
|
return response;
|
|
3073
1769
|
}, "de_ListAnomaliesCommand");
|
|
3074
|
-
var de_ListAnomaliesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3075
|
-
const parsedOutput = {
|
|
3076
|
-
...output,
|
|
3077
|
-
body: await parseErrorBody(output.body, context)
|
|
3078
|
-
};
|
|
3079
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3080
|
-
switch (errorCode) {
|
|
3081
|
-
case "InvalidParameterException":
|
|
3082
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
3083
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3084
|
-
case "OperationAbortedException":
|
|
3085
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
3086
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
3087
|
-
case "ResourceNotFoundException":
|
|
3088
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
3089
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3090
|
-
case "ServiceUnavailableException":
|
|
3091
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
3092
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3093
|
-
default:
|
|
3094
|
-
const parsedBody = parsedOutput.body;
|
|
3095
|
-
return throwDefaultError({
|
|
3096
|
-
output,
|
|
3097
|
-
parsedBody,
|
|
3098
|
-
errorCode
|
|
3099
|
-
});
|
|
3100
|
-
}
|
|
3101
|
-
}, "de_ListAnomaliesCommandError");
|
|
3102
1770
|
var de_ListLogAnomalyDetectorsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3103
1771
|
if (output.statusCode >= 300) {
|
|
3104
|
-
return
|
|
1772
|
+
return de_CommandError(output, context);
|
|
3105
1773
|
}
|
|
3106
1774
|
const data = await parseBody(output.body, context);
|
|
3107
1775
|
let contents = {};
|
|
@@ -3112,37 +1780,9 @@ var de_ListLogAnomalyDetectorsCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
3112
1780
|
};
|
|
3113
1781
|
return response;
|
|
3114
1782
|
}, "de_ListLogAnomalyDetectorsCommand");
|
|
3115
|
-
var de_ListLogAnomalyDetectorsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3116
|
-
const parsedOutput = {
|
|
3117
|
-
...output,
|
|
3118
|
-
body: await parseErrorBody(output.body, context)
|
|
3119
|
-
};
|
|
3120
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3121
|
-
switch (errorCode) {
|
|
3122
|
-
case "InvalidParameterException":
|
|
3123
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
3124
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3125
|
-
case "OperationAbortedException":
|
|
3126
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
3127
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
3128
|
-
case "ResourceNotFoundException":
|
|
3129
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
3130
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3131
|
-
case "ServiceUnavailableException":
|
|
3132
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
3133
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3134
|
-
default:
|
|
3135
|
-
const parsedBody = parsedOutput.body;
|
|
3136
|
-
return throwDefaultError({
|
|
3137
|
-
output,
|
|
3138
|
-
parsedBody,
|
|
3139
|
-
errorCode
|
|
3140
|
-
});
|
|
3141
|
-
}
|
|
3142
|
-
}, "de_ListLogAnomalyDetectorsCommandError");
|
|
3143
1783
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3144
1784
|
if (output.statusCode >= 300) {
|
|
3145
|
-
return
|
|
1785
|
+
return de_CommandError(output, context);
|
|
3146
1786
|
}
|
|
3147
1787
|
const data = await parseBody(output.body, context);
|
|
3148
1788
|
let contents = {};
|
|
@@ -3153,34 +1793,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
3153
1793
|
};
|
|
3154
1794
|
return response;
|
|
3155
1795
|
}, "de_ListTagsForResourceCommand");
|
|
3156
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3157
|
-
const parsedOutput = {
|
|
3158
|
-
...output,
|
|
3159
|
-
body: await parseErrorBody(output.body, context)
|
|
3160
|
-
};
|
|
3161
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3162
|
-
switch (errorCode) {
|
|
3163
|
-
case "InvalidParameterException":
|
|
3164
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
3165
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3166
|
-
case "ResourceNotFoundException":
|
|
3167
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
3168
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3169
|
-
case "ServiceUnavailableException":
|
|
3170
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
3171
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3172
|
-
default:
|
|
3173
|
-
const parsedBody = parsedOutput.body;
|
|
3174
|
-
return throwDefaultError({
|
|
3175
|
-
output,
|
|
3176
|
-
parsedBody,
|
|
3177
|
-
errorCode
|
|
3178
|
-
});
|
|
3179
|
-
}
|
|
3180
|
-
}, "de_ListTagsForResourceCommandError");
|
|
3181
1796
|
var de_ListTagsLogGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3182
1797
|
if (output.statusCode >= 300) {
|
|
3183
|
-
return
|
|
1798
|
+
return de_CommandError(output, context);
|
|
3184
1799
|
}
|
|
3185
1800
|
const data = await parseBody(output.body, context);
|
|
3186
1801
|
let contents = {};
|
|
@@ -3191,31 +1806,9 @@ var de_ListTagsLogGroupCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3191
1806
|
};
|
|
3192
1807
|
return response;
|
|
3193
1808
|
}, "de_ListTagsLogGroupCommand");
|
|
3194
|
-
var de_ListTagsLogGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3195
|
-
const parsedOutput = {
|
|
3196
|
-
...output,
|
|
3197
|
-
body: await parseErrorBody(output.body, context)
|
|
3198
|
-
};
|
|
3199
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3200
|
-
switch (errorCode) {
|
|
3201
|
-
case "ResourceNotFoundException":
|
|
3202
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
3203
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3204
|
-
case "ServiceUnavailableException":
|
|
3205
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
3206
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3207
|
-
default:
|
|
3208
|
-
const parsedBody = parsedOutput.body;
|
|
3209
|
-
return throwDefaultError({
|
|
3210
|
-
output,
|
|
3211
|
-
parsedBody,
|
|
3212
|
-
errorCode
|
|
3213
|
-
});
|
|
3214
|
-
}
|
|
3215
|
-
}, "de_ListTagsLogGroupCommandError");
|
|
3216
1809
|
var de_PutAccountPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3217
1810
|
if (output.statusCode >= 300) {
|
|
3218
|
-
return
|
|
1811
|
+
return de_CommandError(output, context);
|
|
3219
1812
|
}
|
|
3220
1813
|
const data = await parseBody(output.body, context);
|
|
3221
1814
|
let contents = {};
|
|
@@ -3226,37 +1819,9 @@ var de_PutAccountPolicyCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3226
1819
|
};
|
|
3227
1820
|
return response;
|
|
3228
1821
|
}, "de_PutAccountPolicyCommand");
|
|
3229
|
-
var de_PutAccountPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3230
|
-
const parsedOutput = {
|
|
3231
|
-
...output,
|
|
3232
|
-
body: await parseErrorBody(output.body, context)
|
|
3233
|
-
};
|
|
3234
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3235
|
-
switch (errorCode) {
|
|
3236
|
-
case "InvalidParameterException":
|
|
3237
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
3238
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3239
|
-
case "LimitExceededException":
|
|
3240
|
-
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
3241
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3242
|
-
case "OperationAbortedException":
|
|
3243
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
3244
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
3245
|
-
case "ServiceUnavailableException":
|
|
3246
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
3247
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3248
|
-
default:
|
|
3249
|
-
const parsedBody = parsedOutput.body;
|
|
3250
|
-
return throwDefaultError({
|
|
3251
|
-
output,
|
|
3252
|
-
parsedBody,
|
|
3253
|
-
errorCode
|
|
3254
|
-
});
|
|
3255
|
-
}
|
|
3256
|
-
}, "de_PutAccountPolicyCommandError");
|
|
3257
1822
|
var de_PutDataProtectionPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3258
1823
|
if (output.statusCode >= 300) {
|
|
3259
|
-
return
|
|
1824
|
+
return de_CommandError(output, context);
|
|
3260
1825
|
}
|
|
3261
1826
|
const data = await parseBody(output.body, context);
|
|
3262
1827
|
let contents = {};
|
|
@@ -3267,40 +1832,9 @@ var de_PutDataProtectionPolicyCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
3267
1832
|
};
|
|
3268
1833
|
return response;
|
|
3269
1834
|
}, "de_PutDataProtectionPolicyCommand");
|
|
3270
|
-
var de_PutDataProtectionPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3271
|
-
const parsedOutput = {
|
|
3272
|
-
...output,
|
|
3273
|
-
body: await parseErrorBody(output.body, context)
|
|
3274
|
-
};
|
|
3275
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3276
|
-
switch (errorCode) {
|
|
3277
|
-
case "InvalidParameterException":
|
|
3278
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
3279
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3280
|
-
case "LimitExceededException":
|
|
3281
|
-
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
3282
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3283
|
-
case "OperationAbortedException":
|
|
3284
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
3285
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
3286
|
-
case "ResourceNotFoundException":
|
|
3287
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
3288
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3289
|
-
case "ServiceUnavailableException":
|
|
3290
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
3291
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3292
|
-
default:
|
|
3293
|
-
const parsedBody = parsedOutput.body;
|
|
3294
|
-
return throwDefaultError({
|
|
3295
|
-
output,
|
|
3296
|
-
parsedBody,
|
|
3297
|
-
errorCode
|
|
3298
|
-
});
|
|
3299
|
-
}
|
|
3300
|
-
}, "de_PutDataProtectionPolicyCommandError");
|
|
3301
1835
|
var de_PutDeliveryDestinationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3302
1836
|
if (output.statusCode >= 300) {
|
|
3303
|
-
return
|
|
1837
|
+
return de_CommandError(output, context);
|
|
3304
1838
|
}
|
|
3305
1839
|
const data = await parseBody(output.body, context);
|
|
3306
1840
|
let contents = {};
|
|
@@ -3311,84 +1845,22 @@ var de_PutDeliveryDestinationCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
3311
1845
|
};
|
|
3312
1846
|
return response;
|
|
3313
1847
|
}, "de_PutDeliveryDestinationCommand");
|
|
3314
|
-
var de_PutDeliveryDestinationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3315
|
-
const parsedOutput = {
|
|
3316
|
-
...output,
|
|
3317
|
-
body: await parseErrorBody(output.body, context)
|
|
3318
|
-
};
|
|
3319
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3320
|
-
switch (errorCode) {
|
|
3321
|
-
case "ConflictException":
|
|
3322
|
-
case "com.amazonaws.cloudwatchlogs#ConflictException":
|
|
3323
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3324
|
-
case "ResourceNotFoundException":
|
|
3325
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
3326
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3327
|
-
case "ServiceQuotaExceededException":
|
|
3328
|
-
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
3329
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3330
|
-
case "ServiceUnavailableException":
|
|
3331
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
3332
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3333
|
-
case "ThrottlingException":
|
|
3334
|
-
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
3335
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3336
|
-
case "ValidationException":
|
|
3337
|
-
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
3338
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3339
|
-
default:
|
|
3340
|
-
const parsedBody = parsedOutput.body;
|
|
3341
|
-
return throwDefaultError({
|
|
3342
|
-
output,
|
|
3343
|
-
parsedBody,
|
|
3344
|
-
errorCode
|
|
3345
|
-
});
|
|
3346
|
-
}
|
|
3347
|
-
}, "de_PutDeliveryDestinationCommandError");
|
|
3348
1848
|
var de_PutDeliveryDestinationPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3349
1849
|
if (output.statusCode >= 300) {
|
|
3350
|
-
return
|
|
3351
|
-
}
|
|
3352
|
-
const data = await parseBody(output.body, context);
|
|
3353
|
-
let contents = {};
|
|
3354
|
-
contents = (0, import_smithy_client._json)(data);
|
|
3355
|
-
const response = {
|
|
3356
|
-
$metadata: deserializeMetadata(output),
|
|
3357
|
-
...contents
|
|
3358
|
-
};
|
|
3359
|
-
return response;
|
|
3360
|
-
}, "de_PutDeliveryDestinationPolicyCommand");
|
|
3361
|
-
var de_PutDeliveryDestinationPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3362
|
-
const parsedOutput = {
|
|
3363
|
-
...output,
|
|
3364
|
-
body: await parseErrorBody(output.body, context)
|
|
3365
|
-
};
|
|
3366
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3367
|
-
switch (errorCode) {
|
|
3368
|
-
case "ConflictException":
|
|
3369
|
-
case "com.amazonaws.cloudwatchlogs#ConflictException":
|
|
3370
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3371
|
-
case "ResourceNotFoundException":
|
|
3372
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
3373
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3374
|
-
case "ServiceUnavailableException":
|
|
3375
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
3376
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3377
|
-
case "ValidationException":
|
|
3378
|
-
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
3379
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3380
|
-
default:
|
|
3381
|
-
const parsedBody = parsedOutput.body;
|
|
3382
|
-
return throwDefaultError({
|
|
3383
|
-
output,
|
|
3384
|
-
parsedBody,
|
|
3385
|
-
errorCode
|
|
3386
|
-
});
|
|
1850
|
+
return de_CommandError(output, context);
|
|
3387
1851
|
}
|
|
3388
|
-
|
|
1852
|
+
const data = await parseBody(output.body, context);
|
|
1853
|
+
let contents = {};
|
|
1854
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1855
|
+
const response = {
|
|
1856
|
+
$metadata: deserializeMetadata(output),
|
|
1857
|
+
...contents
|
|
1858
|
+
};
|
|
1859
|
+
return response;
|
|
1860
|
+
}, "de_PutDeliveryDestinationPolicyCommand");
|
|
3389
1861
|
var de_PutDeliverySourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3390
1862
|
if (output.statusCode >= 300) {
|
|
3391
|
-
return
|
|
1863
|
+
return de_CommandError(output, context);
|
|
3392
1864
|
}
|
|
3393
1865
|
const data = await parseBody(output.body, context);
|
|
3394
1866
|
let contents = {};
|
|
@@ -3399,43 +1871,9 @@ var de_PutDeliverySourceCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3399
1871
|
};
|
|
3400
1872
|
return response;
|
|
3401
1873
|
}, "de_PutDeliverySourceCommand");
|
|
3402
|
-
var de_PutDeliverySourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3403
|
-
const parsedOutput = {
|
|
3404
|
-
...output,
|
|
3405
|
-
body: await parseErrorBody(output.body, context)
|
|
3406
|
-
};
|
|
3407
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3408
|
-
switch (errorCode) {
|
|
3409
|
-
case "ConflictException":
|
|
3410
|
-
case "com.amazonaws.cloudwatchlogs#ConflictException":
|
|
3411
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3412
|
-
case "ResourceNotFoundException":
|
|
3413
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
3414
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3415
|
-
case "ServiceQuotaExceededException":
|
|
3416
|
-
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
3417
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3418
|
-
case "ServiceUnavailableException":
|
|
3419
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
3420
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3421
|
-
case "ThrottlingException":
|
|
3422
|
-
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
3423
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3424
|
-
case "ValidationException":
|
|
3425
|
-
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
3426
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3427
|
-
default:
|
|
3428
|
-
const parsedBody = parsedOutput.body;
|
|
3429
|
-
return throwDefaultError({
|
|
3430
|
-
output,
|
|
3431
|
-
parsedBody,
|
|
3432
|
-
errorCode
|
|
3433
|
-
});
|
|
3434
|
-
}
|
|
3435
|
-
}, "de_PutDeliverySourceCommandError");
|
|
3436
1874
|
var de_PutDestinationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3437
1875
|
if (output.statusCode >= 300) {
|
|
3438
|
-
return
|
|
1876
|
+
return de_CommandError(output, context);
|
|
3439
1877
|
}
|
|
3440
1878
|
const data = await parseBody(output.body, context);
|
|
3441
1879
|
let contents = {};
|
|
@@ -3446,34 +1884,9 @@ var de_PutDestinationCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3446
1884
|
};
|
|
3447
1885
|
return response;
|
|
3448
1886
|
}, "de_PutDestinationCommand");
|
|
3449
|
-
var de_PutDestinationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3450
|
-
const parsedOutput = {
|
|
3451
|
-
...output,
|
|
3452
|
-
body: await parseErrorBody(output.body, context)
|
|
3453
|
-
};
|
|
3454
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3455
|
-
switch (errorCode) {
|
|
3456
|
-
case "InvalidParameterException":
|
|
3457
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
3458
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3459
|
-
case "OperationAbortedException":
|
|
3460
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
3461
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
3462
|
-
case "ServiceUnavailableException":
|
|
3463
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
3464
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3465
|
-
default:
|
|
3466
|
-
const parsedBody = parsedOutput.body;
|
|
3467
|
-
return throwDefaultError({
|
|
3468
|
-
output,
|
|
3469
|
-
parsedBody,
|
|
3470
|
-
errorCode
|
|
3471
|
-
});
|
|
3472
|
-
}
|
|
3473
|
-
}, "de_PutDestinationCommandError");
|
|
3474
1887
|
var de_PutDestinationPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3475
1888
|
if (output.statusCode >= 300) {
|
|
3476
|
-
return
|
|
1889
|
+
return de_CommandError(output, context);
|
|
3477
1890
|
}
|
|
3478
1891
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3479
1892
|
const response = {
|
|
@@ -3481,34 +1894,9 @@ var de_PutDestinationPolicyCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
3481
1894
|
};
|
|
3482
1895
|
return response;
|
|
3483
1896
|
}, "de_PutDestinationPolicyCommand");
|
|
3484
|
-
var de_PutDestinationPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3485
|
-
const parsedOutput = {
|
|
3486
|
-
...output,
|
|
3487
|
-
body: await parseErrorBody(output.body, context)
|
|
3488
|
-
};
|
|
3489
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3490
|
-
switch (errorCode) {
|
|
3491
|
-
case "InvalidParameterException":
|
|
3492
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
3493
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3494
|
-
case "OperationAbortedException":
|
|
3495
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
3496
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
3497
|
-
case "ServiceUnavailableException":
|
|
3498
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
3499
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3500
|
-
default:
|
|
3501
|
-
const parsedBody = parsedOutput.body;
|
|
3502
|
-
return throwDefaultError({
|
|
3503
|
-
output,
|
|
3504
|
-
parsedBody,
|
|
3505
|
-
errorCode
|
|
3506
|
-
});
|
|
3507
|
-
}
|
|
3508
|
-
}, "de_PutDestinationPolicyCommandError");
|
|
3509
1897
|
var de_PutLogEventsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3510
1898
|
if (output.statusCode >= 300) {
|
|
3511
|
-
return
|
|
1899
|
+
return de_CommandError(output, context);
|
|
3512
1900
|
}
|
|
3513
1901
|
const data = await parseBody(output.body, context);
|
|
3514
1902
|
let contents = {};
|
|
@@ -3519,43 +1907,9 @@ var de_PutLogEventsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3519
1907
|
};
|
|
3520
1908
|
return response;
|
|
3521
1909
|
}, "de_PutLogEventsCommand");
|
|
3522
|
-
var de_PutLogEventsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3523
|
-
const parsedOutput = {
|
|
3524
|
-
...output,
|
|
3525
|
-
body: await parseErrorBody(output.body, context)
|
|
3526
|
-
};
|
|
3527
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3528
|
-
switch (errorCode) {
|
|
3529
|
-
case "DataAlreadyAcceptedException":
|
|
3530
|
-
case "com.amazonaws.cloudwatchlogs#DataAlreadyAcceptedException":
|
|
3531
|
-
throw await de_DataAlreadyAcceptedExceptionRes(parsedOutput, context);
|
|
3532
|
-
case "InvalidParameterException":
|
|
3533
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
3534
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3535
|
-
case "InvalidSequenceTokenException":
|
|
3536
|
-
case "com.amazonaws.cloudwatchlogs#InvalidSequenceTokenException":
|
|
3537
|
-
throw await de_InvalidSequenceTokenExceptionRes(parsedOutput, context);
|
|
3538
|
-
case "ResourceNotFoundException":
|
|
3539
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
3540
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3541
|
-
case "ServiceUnavailableException":
|
|
3542
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
3543
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3544
|
-
case "UnrecognizedClientException":
|
|
3545
|
-
case "com.amazonaws.cloudwatchlogs#UnrecognizedClientException":
|
|
3546
|
-
throw await de_UnrecognizedClientExceptionRes(parsedOutput, context);
|
|
3547
|
-
default:
|
|
3548
|
-
const parsedBody = parsedOutput.body;
|
|
3549
|
-
return throwDefaultError({
|
|
3550
|
-
output,
|
|
3551
|
-
parsedBody,
|
|
3552
|
-
errorCode
|
|
3553
|
-
});
|
|
3554
|
-
}
|
|
3555
|
-
}, "de_PutLogEventsCommandError");
|
|
3556
1910
|
var de_PutMetricFilterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3557
1911
|
if (output.statusCode >= 300) {
|
|
3558
|
-
return
|
|
1912
|
+
return de_CommandError(output, context);
|
|
3559
1913
|
}
|
|
3560
1914
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3561
1915
|
const response = {
|
|
@@ -3563,40 +1917,9 @@ var de_PutMetricFilterCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
3563
1917
|
};
|
|
3564
1918
|
return response;
|
|
3565
1919
|
}, "de_PutMetricFilterCommand");
|
|
3566
|
-
var de_PutMetricFilterCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3567
|
-
const parsedOutput = {
|
|
3568
|
-
...output,
|
|
3569
|
-
body: await parseErrorBody(output.body, context)
|
|
3570
|
-
};
|
|
3571
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3572
|
-
switch (errorCode) {
|
|
3573
|
-
case "InvalidParameterException":
|
|
3574
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
3575
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3576
|
-
case "LimitExceededException":
|
|
3577
|
-
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
3578
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3579
|
-
case "OperationAbortedException":
|
|
3580
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
3581
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
3582
|
-
case "ResourceNotFoundException":
|
|
3583
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
3584
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3585
|
-
case "ServiceUnavailableException":
|
|
3586
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
3587
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3588
|
-
default:
|
|
3589
|
-
const parsedBody = parsedOutput.body;
|
|
3590
|
-
return throwDefaultError({
|
|
3591
|
-
output,
|
|
3592
|
-
parsedBody,
|
|
3593
|
-
errorCode
|
|
3594
|
-
});
|
|
3595
|
-
}
|
|
3596
|
-
}, "de_PutMetricFilterCommandError");
|
|
3597
1920
|
var de_PutQueryDefinitionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3598
1921
|
if (output.statusCode >= 300) {
|
|
3599
|
-
return
|
|
1922
|
+
return de_CommandError(output, context);
|
|
3600
1923
|
}
|
|
3601
1924
|
const data = await parseBody(output.body, context);
|
|
3602
1925
|
let contents = {};
|
|
@@ -3607,37 +1930,9 @@ var de_PutQueryDefinitionCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
3607
1930
|
};
|
|
3608
1931
|
return response;
|
|
3609
1932
|
}, "de_PutQueryDefinitionCommand");
|
|
3610
|
-
var de_PutQueryDefinitionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3611
|
-
const parsedOutput = {
|
|
3612
|
-
...output,
|
|
3613
|
-
body: await parseErrorBody(output.body, context)
|
|
3614
|
-
};
|
|
3615
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3616
|
-
switch (errorCode) {
|
|
3617
|
-
case "InvalidParameterException":
|
|
3618
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
3619
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3620
|
-
case "LimitExceededException":
|
|
3621
|
-
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
3622
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3623
|
-
case "ResourceNotFoundException":
|
|
3624
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
3625
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3626
|
-
case "ServiceUnavailableException":
|
|
3627
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
3628
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3629
|
-
default:
|
|
3630
|
-
const parsedBody = parsedOutput.body;
|
|
3631
|
-
return throwDefaultError({
|
|
3632
|
-
output,
|
|
3633
|
-
parsedBody,
|
|
3634
|
-
errorCode
|
|
3635
|
-
});
|
|
3636
|
-
}
|
|
3637
|
-
}, "de_PutQueryDefinitionCommandError");
|
|
3638
1933
|
var de_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3639
1934
|
if (output.statusCode >= 300) {
|
|
3640
|
-
return
|
|
1935
|
+
return de_CommandError(output, context);
|
|
3641
1936
|
}
|
|
3642
1937
|
const data = await parseBody(output.body, context);
|
|
3643
1938
|
let contents = {};
|
|
@@ -3648,34 +1943,9 @@ var de_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3648
1943
|
};
|
|
3649
1944
|
return response;
|
|
3650
1945
|
}, "de_PutResourcePolicyCommand");
|
|
3651
|
-
var de_PutResourcePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3652
|
-
const parsedOutput = {
|
|
3653
|
-
...output,
|
|
3654
|
-
body: await parseErrorBody(output.body, context)
|
|
3655
|
-
};
|
|
3656
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3657
|
-
switch (errorCode) {
|
|
3658
|
-
case "InvalidParameterException":
|
|
3659
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
3660
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3661
|
-
case "LimitExceededException":
|
|
3662
|
-
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
3663
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3664
|
-
case "ServiceUnavailableException":
|
|
3665
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
3666
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3667
|
-
default:
|
|
3668
|
-
const parsedBody = parsedOutput.body;
|
|
3669
|
-
return throwDefaultError({
|
|
3670
|
-
output,
|
|
3671
|
-
parsedBody,
|
|
3672
|
-
errorCode
|
|
3673
|
-
});
|
|
3674
|
-
}
|
|
3675
|
-
}, "de_PutResourcePolicyCommandError");
|
|
3676
1946
|
var de_PutRetentionPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3677
1947
|
if (output.statusCode >= 300) {
|
|
3678
|
-
return
|
|
1948
|
+
return de_CommandError(output, context);
|
|
3679
1949
|
}
|
|
3680
1950
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3681
1951
|
const response = {
|
|
@@ -3683,78 +1953,19 @@ var de_PutRetentionPolicyCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
3683
1953
|
};
|
|
3684
1954
|
return response;
|
|
3685
1955
|
}, "de_PutRetentionPolicyCommand");
|
|
3686
|
-
var de_PutRetentionPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3687
|
-
const parsedOutput = {
|
|
3688
|
-
...output,
|
|
3689
|
-
body: await parseErrorBody(output.body, context)
|
|
3690
|
-
};
|
|
3691
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3692
|
-
switch (errorCode) {
|
|
3693
|
-
case "InvalidParameterException":
|
|
3694
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
3695
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3696
|
-
case "OperationAbortedException":
|
|
3697
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
3698
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
3699
|
-
case "ResourceNotFoundException":
|
|
3700
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
3701
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3702
|
-
case "ServiceUnavailableException":
|
|
3703
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
3704
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3705
|
-
default:
|
|
3706
|
-
const parsedBody = parsedOutput.body;
|
|
3707
|
-
return throwDefaultError({
|
|
3708
|
-
output,
|
|
3709
|
-
parsedBody,
|
|
3710
|
-
errorCode
|
|
3711
|
-
});
|
|
3712
|
-
}
|
|
3713
|
-
}, "de_PutRetentionPolicyCommandError");
|
|
3714
1956
|
var de_PutSubscriptionFilterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3715
1957
|
if (output.statusCode >= 300) {
|
|
3716
|
-
return
|
|
1958
|
+
return de_CommandError(output, context);
|
|
3717
1959
|
}
|
|
3718
1960
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3719
1961
|
const response = {
|
|
3720
|
-
$metadata: deserializeMetadata(output)
|
|
3721
|
-
};
|
|
3722
|
-
return response;
|
|
3723
|
-
}, "de_PutSubscriptionFilterCommand");
|
|
3724
|
-
var de_PutSubscriptionFilterCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3725
|
-
const parsedOutput = {
|
|
3726
|
-
...output,
|
|
3727
|
-
body: await parseErrorBody(output.body, context)
|
|
3728
|
-
};
|
|
3729
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3730
|
-
switch (errorCode) {
|
|
3731
|
-
case "InvalidParameterException":
|
|
3732
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
3733
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3734
|
-
case "LimitExceededException":
|
|
3735
|
-
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
3736
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3737
|
-
case "OperationAbortedException":
|
|
3738
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
3739
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
3740
|
-
case "ResourceNotFoundException":
|
|
3741
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
3742
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3743
|
-
case "ServiceUnavailableException":
|
|
3744
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
3745
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3746
|
-
default:
|
|
3747
|
-
const parsedBody = parsedOutput.body;
|
|
3748
|
-
return throwDefaultError({
|
|
3749
|
-
output,
|
|
3750
|
-
parsedBody,
|
|
3751
|
-
errorCode
|
|
3752
|
-
});
|
|
3753
|
-
}
|
|
3754
|
-
}, "de_PutSubscriptionFilterCommandError");
|
|
1962
|
+
$metadata: deserializeMetadata(output)
|
|
1963
|
+
};
|
|
1964
|
+
return response;
|
|
1965
|
+
}, "de_PutSubscriptionFilterCommand");
|
|
3755
1966
|
var de_StartLiveTailCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3756
1967
|
if (output.statusCode >= 300) {
|
|
3757
|
-
return
|
|
1968
|
+
return de_CommandError(output, context);
|
|
3758
1969
|
}
|
|
3759
1970
|
const contents = { responseStream: de_StartLiveTailResponseStream(output.body, context) };
|
|
3760
1971
|
const response = {
|
|
@@ -3763,40 +1974,9 @@ var de_StartLiveTailCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3763
1974
|
};
|
|
3764
1975
|
return response;
|
|
3765
1976
|
}, "de_StartLiveTailCommand");
|
|
3766
|
-
var de_StartLiveTailCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3767
|
-
const parsedOutput = {
|
|
3768
|
-
...output,
|
|
3769
|
-
body: await parseErrorBody(output.body, context)
|
|
3770
|
-
};
|
|
3771
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3772
|
-
switch (errorCode) {
|
|
3773
|
-
case "AccessDeniedException":
|
|
3774
|
-
case "com.amazonaws.cloudwatchlogs#AccessDeniedException":
|
|
3775
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3776
|
-
case "InvalidOperationException":
|
|
3777
|
-
case "com.amazonaws.cloudwatchlogs#InvalidOperationException":
|
|
3778
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
3779
|
-
case "InvalidParameterException":
|
|
3780
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
3781
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3782
|
-
case "LimitExceededException":
|
|
3783
|
-
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
3784
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3785
|
-
case "ResourceNotFoundException":
|
|
3786
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
3787
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3788
|
-
default:
|
|
3789
|
-
const parsedBody = parsedOutput.body;
|
|
3790
|
-
return throwDefaultError({
|
|
3791
|
-
output,
|
|
3792
|
-
parsedBody,
|
|
3793
|
-
errorCode
|
|
3794
|
-
});
|
|
3795
|
-
}
|
|
3796
|
-
}, "de_StartLiveTailCommandError");
|
|
3797
1977
|
var de_StartQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3798
1978
|
if (output.statusCode >= 300) {
|
|
3799
|
-
return
|
|
1979
|
+
return de_CommandError(output, context);
|
|
3800
1980
|
}
|
|
3801
1981
|
const data = await parseBody(output.body, context);
|
|
3802
1982
|
let contents = {};
|
|
@@ -3807,40 +1987,9 @@ var de_StartQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3807
1987
|
};
|
|
3808
1988
|
return response;
|
|
3809
1989
|
}, "de_StartQueryCommand");
|
|
3810
|
-
var de_StartQueryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3811
|
-
const parsedOutput = {
|
|
3812
|
-
...output,
|
|
3813
|
-
body: await parseErrorBody(output.body, context)
|
|
3814
|
-
};
|
|
3815
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3816
|
-
switch (errorCode) {
|
|
3817
|
-
case "InvalidParameterException":
|
|
3818
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
3819
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3820
|
-
case "LimitExceededException":
|
|
3821
|
-
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
3822
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3823
|
-
case "MalformedQueryException":
|
|
3824
|
-
case "com.amazonaws.cloudwatchlogs#MalformedQueryException":
|
|
3825
|
-
throw await de_MalformedQueryExceptionRes(parsedOutput, context);
|
|
3826
|
-
case "ResourceNotFoundException":
|
|
3827
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
3828
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3829
|
-
case "ServiceUnavailableException":
|
|
3830
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
3831
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3832
|
-
default:
|
|
3833
|
-
const parsedBody = parsedOutput.body;
|
|
3834
|
-
return throwDefaultError({
|
|
3835
|
-
output,
|
|
3836
|
-
parsedBody,
|
|
3837
|
-
errorCode
|
|
3838
|
-
});
|
|
3839
|
-
}
|
|
3840
|
-
}, "de_StartQueryCommandError");
|
|
3841
1990
|
var de_StopQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3842
1991
|
if (output.statusCode >= 300) {
|
|
3843
|
-
return
|
|
1992
|
+
return de_CommandError(output, context);
|
|
3844
1993
|
}
|
|
3845
1994
|
const data = await parseBody(output.body, context);
|
|
3846
1995
|
let contents = {};
|
|
@@ -3851,34 +2000,9 @@ var de_StopQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3851
2000
|
};
|
|
3852
2001
|
return response;
|
|
3853
2002
|
}, "de_StopQueryCommand");
|
|
3854
|
-
var de_StopQueryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3855
|
-
const parsedOutput = {
|
|
3856
|
-
...output,
|
|
3857
|
-
body: await parseErrorBody(output.body, context)
|
|
3858
|
-
};
|
|
3859
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3860
|
-
switch (errorCode) {
|
|
3861
|
-
case "InvalidParameterException":
|
|
3862
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
3863
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3864
|
-
case "ResourceNotFoundException":
|
|
3865
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
3866
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3867
|
-
case "ServiceUnavailableException":
|
|
3868
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
3869
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3870
|
-
default:
|
|
3871
|
-
const parsedBody = parsedOutput.body;
|
|
3872
|
-
return throwDefaultError({
|
|
3873
|
-
output,
|
|
3874
|
-
parsedBody,
|
|
3875
|
-
errorCode
|
|
3876
|
-
});
|
|
3877
|
-
}
|
|
3878
|
-
}, "de_StopQueryCommandError");
|
|
3879
2003
|
var de_TagLogGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3880
2004
|
if (output.statusCode >= 300) {
|
|
3881
|
-
return
|
|
2005
|
+
return de_CommandError(output, context);
|
|
3882
2006
|
}
|
|
3883
2007
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3884
2008
|
const response = {
|
|
@@ -3886,31 +2010,9 @@ var de_TagLogGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3886
2010
|
};
|
|
3887
2011
|
return response;
|
|
3888
2012
|
}, "de_TagLogGroupCommand");
|
|
3889
|
-
var de_TagLogGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3890
|
-
const parsedOutput = {
|
|
3891
|
-
...output,
|
|
3892
|
-
body: await parseErrorBody(output.body, context)
|
|
3893
|
-
};
|
|
3894
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3895
|
-
switch (errorCode) {
|
|
3896
|
-
case "InvalidParameterException":
|
|
3897
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
3898
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3899
|
-
case "ResourceNotFoundException":
|
|
3900
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
3901
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3902
|
-
default:
|
|
3903
|
-
const parsedBody = parsedOutput.body;
|
|
3904
|
-
return throwDefaultError({
|
|
3905
|
-
output,
|
|
3906
|
-
parsedBody,
|
|
3907
|
-
errorCode
|
|
3908
|
-
});
|
|
3909
|
-
}
|
|
3910
|
-
}, "de_TagLogGroupCommandError");
|
|
3911
2013
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3912
2014
|
if (output.statusCode >= 300) {
|
|
3913
|
-
return
|
|
2015
|
+
return de_CommandError(output, context);
|
|
3914
2016
|
}
|
|
3915
2017
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3916
2018
|
const response = {
|
|
@@ -3918,37 +2020,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3918
2020
|
};
|
|
3919
2021
|
return response;
|
|
3920
2022
|
}, "de_TagResourceCommand");
|
|
3921
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3922
|
-
const parsedOutput = {
|
|
3923
|
-
...output,
|
|
3924
|
-
body: await parseErrorBody(output.body, context)
|
|
3925
|
-
};
|
|
3926
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3927
|
-
switch (errorCode) {
|
|
3928
|
-
case "InvalidParameterException":
|
|
3929
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
3930
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3931
|
-
case "ResourceNotFoundException":
|
|
3932
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
3933
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3934
|
-
case "ServiceUnavailableException":
|
|
3935
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
3936
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3937
|
-
case "TooManyTagsException":
|
|
3938
|
-
case "com.amazonaws.cloudwatchlogs#TooManyTagsException":
|
|
3939
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
3940
|
-
default:
|
|
3941
|
-
const parsedBody = parsedOutput.body;
|
|
3942
|
-
return throwDefaultError({
|
|
3943
|
-
output,
|
|
3944
|
-
parsedBody,
|
|
3945
|
-
errorCode
|
|
3946
|
-
});
|
|
3947
|
-
}
|
|
3948
|
-
}, "de_TagResourceCommandError");
|
|
3949
2023
|
var de_TestMetricFilterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3950
2024
|
if (output.statusCode >= 300) {
|
|
3951
|
-
return
|
|
2025
|
+
return de_CommandError(output, context);
|
|
3952
2026
|
}
|
|
3953
2027
|
const data = await parseBody(output.body, context);
|
|
3954
2028
|
let contents = {};
|
|
@@ -3959,31 +2033,9 @@ var de_TestMetricFilterCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3959
2033
|
};
|
|
3960
2034
|
return response;
|
|
3961
2035
|
}, "de_TestMetricFilterCommand");
|
|
3962
|
-
var de_TestMetricFilterCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3963
|
-
const parsedOutput = {
|
|
3964
|
-
...output,
|
|
3965
|
-
body: await parseErrorBody(output.body, context)
|
|
3966
|
-
};
|
|
3967
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3968
|
-
switch (errorCode) {
|
|
3969
|
-
case "InvalidParameterException":
|
|
3970
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
3971
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3972
|
-
case "ServiceUnavailableException":
|
|
3973
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
3974
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3975
|
-
default:
|
|
3976
|
-
const parsedBody = parsedOutput.body;
|
|
3977
|
-
return throwDefaultError({
|
|
3978
|
-
output,
|
|
3979
|
-
parsedBody,
|
|
3980
|
-
errorCode
|
|
3981
|
-
});
|
|
3982
|
-
}
|
|
3983
|
-
}, "de_TestMetricFilterCommandError");
|
|
3984
2036
|
var de_UntagLogGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3985
2037
|
if (output.statusCode >= 300) {
|
|
3986
|
-
return
|
|
2038
|
+
return de_CommandError(output, context);
|
|
3987
2039
|
}
|
|
3988
2040
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3989
2041
|
const response = {
|
|
@@ -3991,28 +2043,9 @@ var de_UntagLogGroupCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3991
2043
|
};
|
|
3992
2044
|
return response;
|
|
3993
2045
|
}, "de_UntagLogGroupCommand");
|
|
3994
|
-
var de_UntagLogGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3995
|
-
const parsedOutput = {
|
|
3996
|
-
...output,
|
|
3997
|
-
body: await parseErrorBody(output.body, context)
|
|
3998
|
-
};
|
|
3999
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4000
|
-
switch (errorCode) {
|
|
4001
|
-
case "ResourceNotFoundException":
|
|
4002
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
4003
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4004
|
-
default:
|
|
4005
|
-
const parsedBody = parsedOutput.body;
|
|
4006
|
-
return throwDefaultError({
|
|
4007
|
-
output,
|
|
4008
|
-
parsedBody,
|
|
4009
|
-
errorCode
|
|
4010
|
-
});
|
|
4011
|
-
}
|
|
4012
|
-
}, "de_UntagLogGroupCommandError");
|
|
4013
2046
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4014
2047
|
if (output.statusCode >= 300) {
|
|
4015
|
-
return
|
|
2048
|
+
return de_CommandError(output, context);
|
|
4016
2049
|
}
|
|
4017
2050
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4018
2051
|
const response = {
|
|
@@ -4020,34 +2053,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
4020
2053
|
};
|
|
4021
2054
|
return response;
|
|
4022
2055
|
}, "de_UntagResourceCommand");
|
|
4023
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4024
|
-
const parsedOutput = {
|
|
4025
|
-
...output,
|
|
4026
|
-
body: await parseErrorBody(output.body, context)
|
|
4027
|
-
};
|
|
4028
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4029
|
-
switch (errorCode) {
|
|
4030
|
-
case "InvalidParameterException":
|
|
4031
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
4032
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
4033
|
-
case "ResourceNotFoundException":
|
|
4034
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
4035
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4036
|
-
case "ServiceUnavailableException":
|
|
4037
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
4038
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4039
|
-
default:
|
|
4040
|
-
const parsedBody = parsedOutput.body;
|
|
4041
|
-
return throwDefaultError({
|
|
4042
|
-
output,
|
|
4043
|
-
parsedBody,
|
|
4044
|
-
errorCode
|
|
4045
|
-
});
|
|
4046
|
-
}
|
|
4047
|
-
}, "de_UntagResourceCommandError");
|
|
4048
2056
|
var de_UpdateAnomalyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4049
2057
|
if (output.statusCode >= 300) {
|
|
4050
|
-
return
|
|
2058
|
+
return de_CommandError(output, context);
|
|
4051
2059
|
}
|
|
4052
2060
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4053
2061
|
const response = {
|
|
@@ -4055,37 +2063,9 @@ var de_UpdateAnomalyCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
4055
2063
|
};
|
|
4056
2064
|
return response;
|
|
4057
2065
|
}, "de_UpdateAnomalyCommand");
|
|
4058
|
-
var de_UpdateAnomalyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4059
|
-
const parsedOutput = {
|
|
4060
|
-
...output,
|
|
4061
|
-
body: await parseErrorBody(output.body, context)
|
|
4062
|
-
};
|
|
4063
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4064
|
-
switch (errorCode) {
|
|
4065
|
-
case "InvalidParameterException":
|
|
4066
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
4067
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
4068
|
-
case "OperationAbortedException":
|
|
4069
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
4070
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
4071
|
-
case "ResourceNotFoundException":
|
|
4072
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
4073
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4074
|
-
case "ServiceUnavailableException":
|
|
4075
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
4076
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4077
|
-
default:
|
|
4078
|
-
const parsedBody = parsedOutput.body;
|
|
4079
|
-
return throwDefaultError({
|
|
4080
|
-
output,
|
|
4081
|
-
parsedBody,
|
|
4082
|
-
errorCode
|
|
4083
|
-
});
|
|
4084
|
-
}
|
|
4085
|
-
}, "de_UpdateAnomalyCommandError");
|
|
4086
2066
|
var de_UpdateLogAnomalyDetectorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4087
2067
|
if (output.statusCode >= 300) {
|
|
4088
|
-
return
|
|
2068
|
+
return de_CommandError(output, context);
|
|
4089
2069
|
}
|
|
4090
2070
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4091
2071
|
const response = {
|
|
@@ -4093,7 +2073,7 @@ var de_UpdateLogAnomalyDetectorCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
4093
2073
|
};
|
|
4094
2074
|
return response;
|
|
4095
2075
|
}, "de_UpdateLogAnomalyDetectorCommand");
|
|
4096
|
-
var
|
|
2076
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4097
2077
|
const parsedOutput = {
|
|
4098
2078
|
...output,
|
|
4099
2079
|
body: await parseErrorBody(output.body, context)
|
|
@@ -4112,6 +2092,45 @@ var de_UpdateLogAnomalyDetectorCommandError = /* @__PURE__ */ __name(async (outp
|
|
|
4112
2092
|
case "ServiceUnavailableException":
|
|
4113
2093
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
4114
2094
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2095
|
+
case "InvalidOperationException":
|
|
2096
|
+
case "com.amazonaws.cloudwatchlogs#InvalidOperationException":
|
|
2097
|
+
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
2098
|
+
case "AccessDeniedException":
|
|
2099
|
+
case "com.amazonaws.cloudwatchlogs#AccessDeniedException":
|
|
2100
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2101
|
+
case "ConflictException":
|
|
2102
|
+
case "com.amazonaws.cloudwatchlogs#ConflictException":
|
|
2103
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2104
|
+
case "ServiceQuotaExceededException":
|
|
2105
|
+
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
2106
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2107
|
+
case "ThrottlingException":
|
|
2108
|
+
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
2109
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2110
|
+
case "ValidationException":
|
|
2111
|
+
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
2112
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2113
|
+
case "LimitExceededException":
|
|
2114
|
+
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
2115
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2116
|
+
case "ResourceAlreadyExistsException":
|
|
2117
|
+
case "com.amazonaws.cloudwatchlogs#ResourceAlreadyExistsException":
|
|
2118
|
+
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
2119
|
+
case "DataAlreadyAcceptedException":
|
|
2120
|
+
case "com.amazonaws.cloudwatchlogs#DataAlreadyAcceptedException":
|
|
2121
|
+
throw await de_DataAlreadyAcceptedExceptionRes(parsedOutput, context);
|
|
2122
|
+
case "InvalidSequenceTokenException":
|
|
2123
|
+
case "com.amazonaws.cloudwatchlogs#InvalidSequenceTokenException":
|
|
2124
|
+
throw await de_InvalidSequenceTokenExceptionRes(parsedOutput, context);
|
|
2125
|
+
case "UnrecognizedClientException":
|
|
2126
|
+
case "com.amazonaws.cloudwatchlogs#UnrecognizedClientException":
|
|
2127
|
+
throw await de_UnrecognizedClientExceptionRes(parsedOutput, context);
|
|
2128
|
+
case "MalformedQueryException":
|
|
2129
|
+
case "com.amazonaws.cloudwatchlogs#MalformedQueryException":
|
|
2130
|
+
throw await de_MalformedQueryExceptionRes(parsedOutput, context);
|
|
2131
|
+
case "TooManyTagsException":
|
|
2132
|
+
case "com.amazonaws.cloudwatchlogs#TooManyTagsException":
|
|
2133
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
4115
2134
|
default:
|
|
4116
2135
|
const parsedBody = parsedOutput.body;
|
|
4117
2136
|
return throwDefaultError({
|
|
@@ -4120,7 +2139,7 @@ var de_UpdateLogAnomalyDetectorCommandError = /* @__PURE__ */ __name(async (outp
|
|
|
4120
2139
|
errorCode
|
|
4121
2140
|
});
|
|
4122
2141
|
}
|
|
4123
|
-
}, "
|
|
2142
|
+
}, "de_CommandError");
|
|
4124
2143
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
4125
2144
|
const body = parsedOutput.body;
|
|
4126
2145
|
const deserialized = (0, import_smithy_client._json)(body);
|