@aws-sdk/client-wafv2 3.504.0 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +154 -1781
- package/dist-es/protocols/Aws_json1_1.js +238 -1865
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -1374,7 +1374,7 @@ var se_UpdateWebACLCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
1374
1374
|
}, "se_UpdateWebACLCommand");
|
|
1375
1375
|
var de_AssociateWebACLCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1376
1376
|
if (output.statusCode >= 300) {
|
|
1377
|
-
return
|
|
1377
|
+
return de_CommandError(output, context);
|
|
1378
1378
|
}
|
|
1379
1379
|
const data = await parseBody(output.body, context);
|
|
1380
1380
|
let contents = {};
|
|
@@ -1385,40 +1385,9 @@ var de_AssociateWebACLCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1385
1385
|
};
|
|
1386
1386
|
return response;
|
|
1387
1387
|
}, "de_AssociateWebACLCommand");
|
|
1388
|
-
var de_AssociateWebACLCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1389
|
-
const parsedOutput = {
|
|
1390
|
-
...output,
|
|
1391
|
-
body: await parseErrorBody(output.body, context)
|
|
1392
|
-
};
|
|
1393
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1394
|
-
switch (errorCode) {
|
|
1395
|
-
case "WAFInternalErrorException":
|
|
1396
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1397
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1398
|
-
case "WAFInvalidOperationException":
|
|
1399
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1400
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1401
|
-
case "WAFInvalidParameterException":
|
|
1402
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1403
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1404
|
-
case "WAFNonexistentItemException":
|
|
1405
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
1406
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1407
|
-
case "WAFUnavailableEntityException":
|
|
1408
|
-
case "com.amazonaws.wafv2#WAFUnavailableEntityException":
|
|
1409
|
-
throw await de_WAFUnavailableEntityExceptionRes(parsedOutput, context);
|
|
1410
|
-
default:
|
|
1411
|
-
const parsedBody = parsedOutput.body;
|
|
1412
|
-
return throwDefaultError({
|
|
1413
|
-
output,
|
|
1414
|
-
parsedBody,
|
|
1415
|
-
errorCode
|
|
1416
|
-
});
|
|
1417
|
-
}
|
|
1418
|
-
}, "de_AssociateWebACLCommandError");
|
|
1419
1388
|
var de_CheckCapacityCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1420
1389
|
if (output.statusCode >= 300) {
|
|
1421
|
-
return
|
|
1390
|
+
return de_CommandError(output, context);
|
|
1422
1391
|
}
|
|
1423
1392
|
const data = await parseBody(output.body, context);
|
|
1424
1393
|
let contents = {};
|
|
@@ -1429,52 +1398,9 @@ var de_CheckCapacityCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1429
1398
|
};
|
|
1430
1399
|
return response;
|
|
1431
1400
|
}, "de_CheckCapacityCommand");
|
|
1432
|
-
var de_CheckCapacityCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1433
|
-
const parsedOutput = {
|
|
1434
|
-
...output,
|
|
1435
|
-
body: await parseErrorBody(output.body, context)
|
|
1436
|
-
};
|
|
1437
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1438
|
-
switch (errorCode) {
|
|
1439
|
-
case "WAFExpiredManagedRuleGroupVersionException":
|
|
1440
|
-
case "com.amazonaws.wafv2#WAFExpiredManagedRuleGroupVersionException":
|
|
1441
|
-
throw await de_WAFExpiredManagedRuleGroupVersionExceptionRes(parsedOutput, context);
|
|
1442
|
-
case "WAFInternalErrorException":
|
|
1443
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1444
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1445
|
-
case "WAFInvalidOperationException":
|
|
1446
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1447
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1448
|
-
case "WAFInvalidParameterException":
|
|
1449
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1450
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1451
|
-
case "WAFInvalidResourceException":
|
|
1452
|
-
case "com.amazonaws.wafv2#WAFInvalidResourceException":
|
|
1453
|
-
throw await de_WAFInvalidResourceExceptionRes(parsedOutput, context);
|
|
1454
|
-
case "WAFLimitsExceededException":
|
|
1455
|
-
case "com.amazonaws.wafv2#WAFLimitsExceededException":
|
|
1456
|
-
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
1457
|
-
case "WAFNonexistentItemException":
|
|
1458
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
1459
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1460
|
-
case "WAFSubscriptionNotFoundException":
|
|
1461
|
-
case "com.amazonaws.wafv2#WAFSubscriptionNotFoundException":
|
|
1462
|
-
throw await de_WAFSubscriptionNotFoundExceptionRes(parsedOutput, context);
|
|
1463
|
-
case "WAFUnavailableEntityException":
|
|
1464
|
-
case "com.amazonaws.wafv2#WAFUnavailableEntityException":
|
|
1465
|
-
throw await de_WAFUnavailableEntityExceptionRes(parsedOutput, context);
|
|
1466
|
-
default:
|
|
1467
|
-
const parsedBody = parsedOutput.body;
|
|
1468
|
-
return throwDefaultError({
|
|
1469
|
-
output,
|
|
1470
|
-
parsedBody,
|
|
1471
|
-
errorCode
|
|
1472
|
-
});
|
|
1473
|
-
}
|
|
1474
|
-
}, "de_CheckCapacityCommandError");
|
|
1475
1401
|
var de_CreateAPIKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1476
1402
|
if (output.statusCode >= 300) {
|
|
1477
|
-
return
|
|
1403
|
+
return de_CommandError(output, context);
|
|
1478
1404
|
}
|
|
1479
1405
|
const data = await parseBody(output.body, context);
|
|
1480
1406
|
let contents = {};
|
|
@@ -1485,37 +1411,9 @@ var de_CreateAPIKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1485
1411
|
};
|
|
1486
1412
|
return response;
|
|
1487
1413
|
}, "de_CreateAPIKeyCommand");
|
|
1488
|
-
var de_CreateAPIKeyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1489
|
-
const parsedOutput = {
|
|
1490
|
-
...output,
|
|
1491
|
-
body: await parseErrorBody(output.body, context)
|
|
1492
|
-
};
|
|
1493
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1494
|
-
switch (errorCode) {
|
|
1495
|
-
case "WAFInternalErrorException":
|
|
1496
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1497
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1498
|
-
case "WAFInvalidOperationException":
|
|
1499
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1500
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1501
|
-
case "WAFInvalidParameterException":
|
|
1502
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1503
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1504
|
-
case "WAFLimitsExceededException":
|
|
1505
|
-
case "com.amazonaws.wafv2#WAFLimitsExceededException":
|
|
1506
|
-
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
1507
|
-
default:
|
|
1508
|
-
const parsedBody = parsedOutput.body;
|
|
1509
|
-
return throwDefaultError({
|
|
1510
|
-
output,
|
|
1511
|
-
parsedBody,
|
|
1512
|
-
errorCode
|
|
1513
|
-
});
|
|
1514
|
-
}
|
|
1515
|
-
}, "de_CreateAPIKeyCommandError");
|
|
1516
1414
|
var de_CreateIPSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1517
1415
|
if (output.statusCode >= 300) {
|
|
1518
|
-
return
|
|
1416
|
+
return de_CommandError(output, context);
|
|
1519
1417
|
}
|
|
1520
1418
|
const data = await parseBody(output.body, context);
|
|
1521
1419
|
let contents = {};
|
|
@@ -1526,49 +1424,9 @@ var de_CreateIPSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1526
1424
|
};
|
|
1527
1425
|
return response;
|
|
1528
1426
|
}, "de_CreateIPSetCommand");
|
|
1529
|
-
var de_CreateIPSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1530
|
-
const parsedOutput = {
|
|
1531
|
-
...output,
|
|
1532
|
-
body: await parseErrorBody(output.body, context)
|
|
1533
|
-
};
|
|
1534
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1535
|
-
switch (errorCode) {
|
|
1536
|
-
case "WAFDuplicateItemException":
|
|
1537
|
-
case "com.amazonaws.wafv2#WAFDuplicateItemException":
|
|
1538
|
-
throw await de_WAFDuplicateItemExceptionRes(parsedOutput, context);
|
|
1539
|
-
case "WAFInternalErrorException":
|
|
1540
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1541
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1542
|
-
case "WAFInvalidOperationException":
|
|
1543
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1544
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1545
|
-
case "WAFInvalidParameterException":
|
|
1546
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1547
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1548
|
-
case "WAFLimitsExceededException":
|
|
1549
|
-
case "com.amazonaws.wafv2#WAFLimitsExceededException":
|
|
1550
|
-
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
1551
|
-
case "WAFOptimisticLockException":
|
|
1552
|
-
case "com.amazonaws.wafv2#WAFOptimisticLockException":
|
|
1553
|
-
throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
|
|
1554
|
-
case "WAFTagOperationException":
|
|
1555
|
-
case "com.amazonaws.wafv2#WAFTagOperationException":
|
|
1556
|
-
throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
|
|
1557
|
-
case "WAFTagOperationInternalErrorException":
|
|
1558
|
-
case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException":
|
|
1559
|
-
throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
|
|
1560
|
-
default:
|
|
1561
|
-
const parsedBody = parsedOutput.body;
|
|
1562
|
-
return throwDefaultError({
|
|
1563
|
-
output,
|
|
1564
|
-
parsedBody,
|
|
1565
|
-
errorCode
|
|
1566
|
-
});
|
|
1567
|
-
}
|
|
1568
|
-
}, "de_CreateIPSetCommandError");
|
|
1569
1427
|
var de_CreateRegexPatternSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1570
1428
|
if (output.statusCode >= 300) {
|
|
1571
|
-
return
|
|
1429
|
+
return de_CommandError(output, context);
|
|
1572
1430
|
}
|
|
1573
1431
|
const data = await parseBody(output.body, context);
|
|
1574
1432
|
let contents = {};
|
|
@@ -1579,49 +1437,9 @@ var de_CreateRegexPatternSetCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1579
1437
|
};
|
|
1580
1438
|
return response;
|
|
1581
1439
|
}, "de_CreateRegexPatternSetCommand");
|
|
1582
|
-
var de_CreateRegexPatternSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1583
|
-
const parsedOutput = {
|
|
1584
|
-
...output,
|
|
1585
|
-
body: await parseErrorBody(output.body, context)
|
|
1586
|
-
};
|
|
1587
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1588
|
-
switch (errorCode) {
|
|
1589
|
-
case "WAFDuplicateItemException":
|
|
1590
|
-
case "com.amazonaws.wafv2#WAFDuplicateItemException":
|
|
1591
|
-
throw await de_WAFDuplicateItemExceptionRes(parsedOutput, context);
|
|
1592
|
-
case "WAFInternalErrorException":
|
|
1593
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1594
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1595
|
-
case "WAFInvalidOperationException":
|
|
1596
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1597
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1598
|
-
case "WAFInvalidParameterException":
|
|
1599
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1600
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1601
|
-
case "WAFLimitsExceededException":
|
|
1602
|
-
case "com.amazonaws.wafv2#WAFLimitsExceededException":
|
|
1603
|
-
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
1604
|
-
case "WAFOptimisticLockException":
|
|
1605
|
-
case "com.amazonaws.wafv2#WAFOptimisticLockException":
|
|
1606
|
-
throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
|
|
1607
|
-
case "WAFTagOperationException":
|
|
1608
|
-
case "com.amazonaws.wafv2#WAFTagOperationException":
|
|
1609
|
-
throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
|
|
1610
|
-
case "WAFTagOperationInternalErrorException":
|
|
1611
|
-
case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException":
|
|
1612
|
-
throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
|
|
1613
|
-
default:
|
|
1614
|
-
const parsedBody = parsedOutput.body;
|
|
1615
|
-
return throwDefaultError({
|
|
1616
|
-
output,
|
|
1617
|
-
parsedBody,
|
|
1618
|
-
errorCode
|
|
1619
|
-
});
|
|
1620
|
-
}
|
|
1621
|
-
}, "de_CreateRegexPatternSetCommandError");
|
|
1622
1440
|
var de_CreateRuleGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1623
1441
|
if (output.statusCode >= 300) {
|
|
1624
|
-
return
|
|
1442
|
+
return de_CommandError(output, context);
|
|
1625
1443
|
}
|
|
1626
1444
|
const data = await parseBody(output.body, context);
|
|
1627
1445
|
let contents = {};
|
|
@@ -1632,58 +1450,9 @@ var de_CreateRuleGroupCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1632
1450
|
};
|
|
1633
1451
|
return response;
|
|
1634
1452
|
}, "de_CreateRuleGroupCommand");
|
|
1635
|
-
var de_CreateRuleGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1636
|
-
const parsedOutput = {
|
|
1637
|
-
...output,
|
|
1638
|
-
body: await parseErrorBody(output.body, context)
|
|
1639
|
-
};
|
|
1640
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1641
|
-
switch (errorCode) {
|
|
1642
|
-
case "WAFDuplicateItemException":
|
|
1643
|
-
case "com.amazonaws.wafv2#WAFDuplicateItemException":
|
|
1644
|
-
throw await de_WAFDuplicateItemExceptionRes(parsedOutput, context);
|
|
1645
|
-
case "WAFInternalErrorException":
|
|
1646
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1647
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1648
|
-
case "WAFInvalidOperationException":
|
|
1649
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1650
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1651
|
-
case "WAFInvalidParameterException":
|
|
1652
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1653
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1654
|
-
case "WAFLimitsExceededException":
|
|
1655
|
-
case "com.amazonaws.wafv2#WAFLimitsExceededException":
|
|
1656
|
-
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
1657
|
-
case "WAFNonexistentItemException":
|
|
1658
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
1659
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1660
|
-
case "WAFOptimisticLockException":
|
|
1661
|
-
case "com.amazonaws.wafv2#WAFOptimisticLockException":
|
|
1662
|
-
throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
|
|
1663
|
-
case "WAFSubscriptionNotFoundException":
|
|
1664
|
-
case "com.amazonaws.wafv2#WAFSubscriptionNotFoundException":
|
|
1665
|
-
throw await de_WAFSubscriptionNotFoundExceptionRes(parsedOutput, context);
|
|
1666
|
-
case "WAFTagOperationException":
|
|
1667
|
-
case "com.amazonaws.wafv2#WAFTagOperationException":
|
|
1668
|
-
throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
|
|
1669
|
-
case "WAFTagOperationInternalErrorException":
|
|
1670
|
-
case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException":
|
|
1671
|
-
throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
|
|
1672
|
-
case "WAFUnavailableEntityException":
|
|
1673
|
-
case "com.amazonaws.wafv2#WAFUnavailableEntityException":
|
|
1674
|
-
throw await de_WAFUnavailableEntityExceptionRes(parsedOutput, context);
|
|
1675
|
-
default:
|
|
1676
|
-
const parsedBody = parsedOutput.body;
|
|
1677
|
-
return throwDefaultError({
|
|
1678
|
-
output,
|
|
1679
|
-
parsedBody,
|
|
1680
|
-
errorCode
|
|
1681
|
-
});
|
|
1682
|
-
}
|
|
1683
|
-
}, "de_CreateRuleGroupCommandError");
|
|
1684
1453
|
var de_CreateWebACLCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1685
1454
|
if (output.statusCode >= 300) {
|
|
1686
|
-
return
|
|
1455
|
+
return de_CommandError(output, context);
|
|
1687
1456
|
}
|
|
1688
1457
|
const data = await parseBody(output.body, context);
|
|
1689
1458
|
let contents = {};
|
|
@@ -1694,111 +1463,22 @@ var de_CreateWebACLCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1694
1463
|
};
|
|
1695
1464
|
return response;
|
|
1696
1465
|
}, "de_CreateWebACLCommand");
|
|
1697
|
-
var
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
case "WAFDuplicateItemException":
|
|
1708
|
-
case "com.amazonaws.wafv2#WAFDuplicateItemException":
|
|
1709
|
-
throw await de_WAFDuplicateItemExceptionRes(parsedOutput, context);
|
|
1710
|
-
case "WAFExpiredManagedRuleGroupVersionException":
|
|
1711
|
-
case "com.amazonaws.wafv2#WAFExpiredManagedRuleGroupVersionException":
|
|
1712
|
-
throw await de_WAFExpiredManagedRuleGroupVersionExceptionRes(parsedOutput, context);
|
|
1713
|
-
case "WAFInternalErrorException":
|
|
1714
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1715
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1716
|
-
case "WAFInvalidOperationException":
|
|
1717
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1718
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1719
|
-
case "WAFInvalidParameterException":
|
|
1720
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1721
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1722
|
-
case "WAFInvalidResourceException":
|
|
1723
|
-
case "com.amazonaws.wafv2#WAFInvalidResourceException":
|
|
1724
|
-
throw await de_WAFInvalidResourceExceptionRes(parsedOutput, context);
|
|
1725
|
-
case "WAFLimitsExceededException":
|
|
1726
|
-
case "com.amazonaws.wafv2#WAFLimitsExceededException":
|
|
1727
|
-
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
1728
|
-
case "WAFNonexistentItemException":
|
|
1729
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
1730
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1731
|
-
case "WAFOptimisticLockException":
|
|
1732
|
-
case "com.amazonaws.wafv2#WAFOptimisticLockException":
|
|
1733
|
-
throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
|
|
1734
|
-
case "WAFSubscriptionNotFoundException":
|
|
1735
|
-
case "com.amazonaws.wafv2#WAFSubscriptionNotFoundException":
|
|
1736
|
-
throw await de_WAFSubscriptionNotFoundExceptionRes(parsedOutput, context);
|
|
1737
|
-
case "WAFTagOperationException":
|
|
1738
|
-
case "com.amazonaws.wafv2#WAFTagOperationException":
|
|
1739
|
-
throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
|
|
1740
|
-
case "WAFTagOperationInternalErrorException":
|
|
1741
|
-
case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException":
|
|
1742
|
-
throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
|
|
1743
|
-
case "WAFUnavailableEntityException":
|
|
1744
|
-
case "com.amazonaws.wafv2#WAFUnavailableEntityException":
|
|
1745
|
-
throw await de_WAFUnavailableEntityExceptionRes(parsedOutput, context);
|
|
1746
|
-
default:
|
|
1747
|
-
const parsedBody = parsedOutput.body;
|
|
1748
|
-
return throwDefaultError({
|
|
1749
|
-
output,
|
|
1750
|
-
parsedBody,
|
|
1751
|
-
errorCode
|
|
1752
|
-
});
|
|
1753
|
-
}
|
|
1754
|
-
}, "de_CreateWebACLCommandError");
|
|
1755
|
-
var de_DeleteFirewallManagerRuleGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1756
|
-
if (output.statusCode >= 300) {
|
|
1757
|
-
return de_DeleteFirewallManagerRuleGroupsCommandError(output, context);
|
|
1758
|
-
}
|
|
1759
|
-
const data = await parseBody(output.body, context);
|
|
1760
|
-
let contents = {};
|
|
1761
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1762
|
-
const response = {
|
|
1763
|
-
$metadata: deserializeMetadata(output),
|
|
1764
|
-
...contents
|
|
1466
|
+
var de_DeleteFirewallManagerRuleGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1467
|
+
if (output.statusCode >= 300) {
|
|
1468
|
+
return de_CommandError(output, context);
|
|
1469
|
+
}
|
|
1470
|
+
const data = await parseBody(output.body, context);
|
|
1471
|
+
let contents = {};
|
|
1472
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1473
|
+
const response = {
|
|
1474
|
+
$metadata: deserializeMetadata(output),
|
|
1475
|
+
...contents
|
|
1765
1476
|
};
|
|
1766
1477
|
return response;
|
|
1767
1478
|
}, "de_DeleteFirewallManagerRuleGroupsCommand");
|
|
1768
|
-
var de_DeleteFirewallManagerRuleGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1769
|
-
const parsedOutput = {
|
|
1770
|
-
...output,
|
|
1771
|
-
body: await parseErrorBody(output.body, context)
|
|
1772
|
-
};
|
|
1773
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1774
|
-
switch (errorCode) {
|
|
1775
|
-
case "WAFInternalErrorException":
|
|
1776
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1777
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1778
|
-
case "WAFInvalidOperationException":
|
|
1779
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1780
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1781
|
-
case "WAFInvalidParameterException":
|
|
1782
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1783
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1784
|
-
case "WAFNonexistentItemException":
|
|
1785
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
1786
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1787
|
-
case "WAFOptimisticLockException":
|
|
1788
|
-
case "com.amazonaws.wafv2#WAFOptimisticLockException":
|
|
1789
|
-
throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
|
|
1790
|
-
default:
|
|
1791
|
-
const parsedBody = parsedOutput.body;
|
|
1792
|
-
return throwDefaultError({
|
|
1793
|
-
output,
|
|
1794
|
-
parsedBody,
|
|
1795
|
-
errorCode
|
|
1796
|
-
});
|
|
1797
|
-
}
|
|
1798
|
-
}, "de_DeleteFirewallManagerRuleGroupsCommandError");
|
|
1799
1479
|
var de_DeleteIPSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1800
1480
|
if (output.statusCode >= 300) {
|
|
1801
|
-
return
|
|
1481
|
+
return de_CommandError(output, context);
|
|
1802
1482
|
}
|
|
1803
1483
|
const data = await parseBody(output.body, context);
|
|
1804
1484
|
let contents = {};
|
|
@@ -1809,49 +1489,9 @@ var de_DeleteIPSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1809
1489
|
};
|
|
1810
1490
|
return response;
|
|
1811
1491
|
}, "de_DeleteIPSetCommand");
|
|
1812
|
-
var de_DeleteIPSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1813
|
-
const parsedOutput = {
|
|
1814
|
-
...output,
|
|
1815
|
-
body: await parseErrorBody(output.body, context)
|
|
1816
|
-
};
|
|
1817
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1818
|
-
switch (errorCode) {
|
|
1819
|
-
case "WAFAssociatedItemException":
|
|
1820
|
-
case "com.amazonaws.wafv2#WAFAssociatedItemException":
|
|
1821
|
-
throw await de_WAFAssociatedItemExceptionRes(parsedOutput, context);
|
|
1822
|
-
case "WAFInternalErrorException":
|
|
1823
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1824
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1825
|
-
case "WAFInvalidOperationException":
|
|
1826
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1827
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1828
|
-
case "WAFInvalidParameterException":
|
|
1829
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1830
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1831
|
-
case "WAFNonexistentItemException":
|
|
1832
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
1833
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1834
|
-
case "WAFOptimisticLockException":
|
|
1835
|
-
case "com.amazonaws.wafv2#WAFOptimisticLockException":
|
|
1836
|
-
throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
|
|
1837
|
-
case "WAFTagOperationException":
|
|
1838
|
-
case "com.amazonaws.wafv2#WAFTagOperationException":
|
|
1839
|
-
throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
|
|
1840
|
-
case "WAFTagOperationInternalErrorException":
|
|
1841
|
-
case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException":
|
|
1842
|
-
throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
|
|
1843
|
-
default:
|
|
1844
|
-
const parsedBody = parsedOutput.body;
|
|
1845
|
-
return throwDefaultError({
|
|
1846
|
-
output,
|
|
1847
|
-
parsedBody,
|
|
1848
|
-
errorCode
|
|
1849
|
-
});
|
|
1850
|
-
}
|
|
1851
|
-
}, "de_DeleteIPSetCommandError");
|
|
1852
1492
|
var de_DeleteLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1853
1493
|
if (output.statusCode >= 300) {
|
|
1854
|
-
return
|
|
1494
|
+
return de_CommandError(output, context);
|
|
1855
1495
|
}
|
|
1856
1496
|
const data = await parseBody(output.body, context);
|
|
1857
1497
|
let contents = {};
|
|
@@ -1862,40 +1502,9 @@ var de_DeleteLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1862
1502
|
};
|
|
1863
1503
|
return response;
|
|
1864
1504
|
}, "de_DeleteLoggingConfigurationCommand");
|
|
1865
|
-
var de_DeleteLoggingConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1866
|
-
const parsedOutput = {
|
|
1867
|
-
...output,
|
|
1868
|
-
body: await parseErrorBody(output.body, context)
|
|
1869
|
-
};
|
|
1870
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1871
|
-
switch (errorCode) {
|
|
1872
|
-
case "WAFInternalErrorException":
|
|
1873
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1874
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1875
|
-
case "WAFInvalidOperationException":
|
|
1876
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1877
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1878
|
-
case "WAFInvalidParameterException":
|
|
1879
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1880
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1881
|
-
case "WAFNonexistentItemException":
|
|
1882
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
1883
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1884
|
-
case "WAFOptimisticLockException":
|
|
1885
|
-
case "com.amazonaws.wafv2#WAFOptimisticLockException":
|
|
1886
|
-
throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
|
|
1887
|
-
default:
|
|
1888
|
-
const parsedBody = parsedOutput.body;
|
|
1889
|
-
return throwDefaultError({
|
|
1890
|
-
output,
|
|
1891
|
-
parsedBody,
|
|
1892
|
-
errorCode
|
|
1893
|
-
});
|
|
1894
|
-
}
|
|
1895
|
-
}, "de_DeleteLoggingConfigurationCommandError");
|
|
1896
1505
|
var de_DeletePermissionPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1897
1506
|
if (output.statusCode >= 300) {
|
|
1898
|
-
return
|
|
1507
|
+
return de_CommandError(output, context);
|
|
1899
1508
|
}
|
|
1900
1509
|
const data = await parseBody(output.body, context);
|
|
1901
1510
|
let contents = {};
|
|
@@ -1906,34 +1515,9 @@ var de_DeletePermissionPolicyCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1906
1515
|
};
|
|
1907
1516
|
return response;
|
|
1908
1517
|
}, "de_DeletePermissionPolicyCommand");
|
|
1909
|
-
var de_DeletePermissionPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1910
|
-
const parsedOutput = {
|
|
1911
|
-
...output,
|
|
1912
|
-
body: await parseErrorBody(output.body, context)
|
|
1913
|
-
};
|
|
1914
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1915
|
-
switch (errorCode) {
|
|
1916
|
-
case "WAFInternalErrorException":
|
|
1917
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1918
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1919
|
-
case "WAFInvalidParameterException":
|
|
1920
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1921
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1922
|
-
case "WAFNonexistentItemException":
|
|
1923
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
1924
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1925
|
-
default:
|
|
1926
|
-
const parsedBody = parsedOutput.body;
|
|
1927
|
-
return throwDefaultError({
|
|
1928
|
-
output,
|
|
1929
|
-
parsedBody,
|
|
1930
|
-
errorCode
|
|
1931
|
-
});
|
|
1932
|
-
}
|
|
1933
|
-
}, "de_DeletePermissionPolicyCommandError");
|
|
1934
1518
|
var de_DeleteRegexPatternSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1935
1519
|
if (output.statusCode >= 300) {
|
|
1936
|
-
return
|
|
1520
|
+
return de_CommandError(output, context);
|
|
1937
1521
|
}
|
|
1938
1522
|
const data = await parseBody(output.body, context);
|
|
1939
1523
|
let contents = {};
|
|
@@ -1944,49 +1528,9 @@ var de_DeleteRegexPatternSetCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1944
1528
|
};
|
|
1945
1529
|
return response;
|
|
1946
1530
|
}, "de_DeleteRegexPatternSetCommand");
|
|
1947
|
-
var de_DeleteRegexPatternSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1948
|
-
const parsedOutput = {
|
|
1949
|
-
...output,
|
|
1950
|
-
body: await parseErrorBody(output.body, context)
|
|
1951
|
-
};
|
|
1952
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1953
|
-
switch (errorCode) {
|
|
1954
|
-
case "WAFAssociatedItemException":
|
|
1955
|
-
case "com.amazonaws.wafv2#WAFAssociatedItemException":
|
|
1956
|
-
throw await de_WAFAssociatedItemExceptionRes(parsedOutput, context);
|
|
1957
|
-
case "WAFInternalErrorException":
|
|
1958
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
1959
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
1960
|
-
case "WAFInvalidOperationException":
|
|
1961
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
1962
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
1963
|
-
case "WAFInvalidParameterException":
|
|
1964
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
1965
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
1966
|
-
case "WAFNonexistentItemException":
|
|
1967
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
1968
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
1969
|
-
case "WAFOptimisticLockException":
|
|
1970
|
-
case "com.amazonaws.wafv2#WAFOptimisticLockException":
|
|
1971
|
-
throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
|
|
1972
|
-
case "WAFTagOperationException":
|
|
1973
|
-
case "com.amazonaws.wafv2#WAFTagOperationException":
|
|
1974
|
-
throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
|
|
1975
|
-
case "WAFTagOperationInternalErrorException":
|
|
1976
|
-
case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException":
|
|
1977
|
-
throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
|
|
1978
|
-
default:
|
|
1979
|
-
const parsedBody = parsedOutput.body;
|
|
1980
|
-
return throwDefaultError({
|
|
1981
|
-
output,
|
|
1982
|
-
parsedBody,
|
|
1983
|
-
errorCode
|
|
1984
|
-
});
|
|
1985
|
-
}
|
|
1986
|
-
}, "de_DeleteRegexPatternSetCommandError");
|
|
1987
1531
|
var de_DeleteRuleGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1988
1532
|
if (output.statusCode >= 300) {
|
|
1989
|
-
return
|
|
1533
|
+
return de_CommandError(output, context);
|
|
1990
1534
|
}
|
|
1991
1535
|
const data = await parseBody(output.body, context);
|
|
1992
1536
|
let contents = {};
|
|
@@ -1997,49 +1541,9 @@ var de_DeleteRuleGroupCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1997
1541
|
};
|
|
1998
1542
|
return response;
|
|
1999
1543
|
}, "de_DeleteRuleGroupCommand");
|
|
2000
|
-
var de_DeleteRuleGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2001
|
-
const parsedOutput = {
|
|
2002
|
-
...output,
|
|
2003
|
-
body: await parseErrorBody(output.body, context)
|
|
2004
|
-
};
|
|
2005
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2006
|
-
switch (errorCode) {
|
|
2007
|
-
case "WAFAssociatedItemException":
|
|
2008
|
-
case "com.amazonaws.wafv2#WAFAssociatedItemException":
|
|
2009
|
-
throw await de_WAFAssociatedItemExceptionRes(parsedOutput, context);
|
|
2010
|
-
case "WAFInternalErrorException":
|
|
2011
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
2012
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2013
|
-
case "WAFInvalidOperationException":
|
|
2014
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
2015
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
2016
|
-
case "WAFInvalidParameterException":
|
|
2017
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
2018
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
2019
|
-
case "WAFNonexistentItemException":
|
|
2020
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
2021
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
2022
|
-
case "WAFOptimisticLockException":
|
|
2023
|
-
case "com.amazonaws.wafv2#WAFOptimisticLockException":
|
|
2024
|
-
throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
|
|
2025
|
-
case "WAFTagOperationException":
|
|
2026
|
-
case "com.amazonaws.wafv2#WAFTagOperationException":
|
|
2027
|
-
throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
|
|
2028
|
-
case "WAFTagOperationInternalErrorException":
|
|
2029
|
-
case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException":
|
|
2030
|
-
throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
|
|
2031
|
-
default:
|
|
2032
|
-
const parsedBody = parsedOutput.body;
|
|
2033
|
-
return throwDefaultError({
|
|
2034
|
-
output,
|
|
2035
|
-
parsedBody,
|
|
2036
|
-
errorCode
|
|
2037
|
-
});
|
|
2038
|
-
}
|
|
2039
|
-
}, "de_DeleteRuleGroupCommandError");
|
|
2040
1544
|
var de_DeleteWebACLCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2041
1545
|
if (output.statusCode >= 300) {
|
|
2042
|
-
return
|
|
1546
|
+
return de_CommandError(output, context);
|
|
2043
1547
|
}
|
|
2044
1548
|
const data = await parseBody(output.body, context);
|
|
2045
1549
|
let contents = {};
|
|
@@ -2050,84 +1554,22 @@ var de_DeleteWebACLCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2050
1554
|
};
|
|
2051
1555
|
return response;
|
|
2052
1556
|
}, "de_DeleteWebACLCommand");
|
|
2053
|
-
var
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
case "WAFInternalErrorException":
|
|
2064
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
2065
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2066
|
-
case "WAFInvalidOperationException":
|
|
2067
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
2068
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
2069
|
-
case "WAFInvalidParameterException":
|
|
2070
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
2071
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
2072
|
-
case "WAFNonexistentItemException":
|
|
2073
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
2074
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
2075
|
-
case "WAFOptimisticLockException":
|
|
2076
|
-
case "com.amazonaws.wafv2#WAFOptimisticLockException":
|
|
2077
|
-
throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
|
|
2078
|
-
case "WAFTagOperationException":
|
|
2079
|
-
case "com.amazonaws.wafv2#WAFTagOperationException":
|
|
2080
|
-
throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
|
|
2081
|
-
case "WAFTagOperationInternalErrorException":
|
|
2082
|
-
case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException":
|
|
2083
|
-
throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
|
|
2084
|
-
default:
|
|
2085
|
-
const parsedBody = parsedOutput.body;
|
|
2086
|
-
return throwDefaultError({
|
|
2087
|
-
output,
|
|
2088
|
-
parsedBody,
|
|
2089
|
-
errorCode
|
|
2090
|
-
});
|
|
2091
|
-
}
|
|
2092
|
-
}, "de_DeleteWebACLCommandError");
|
|
2093
|
-
var de_DescribeAllManagedProductsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2094
|
-
if (output.statusCode >= 300) {
|
|
2095
|
-
return de_DescribeAllManagedProductsCommandError(output, context);
|
|
2096
|
-
}
|
|
2097
|
-
const data = await parseBody(output.body, context);
|
|
2098
|
-
let contents = {};
|
|
2099
|
-
contents = (0, import_smithy_client._json)(data);
|
|
2100
|
-
const response = {
|
|
2101
|
-
$metadata: deserializeMetadata(output),
|
|
2102
|
-
...contents
|
|
1557
|
+
var de_DescribeAllManagedProductsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1558
|
+
if (output.statusCode >= 300) {
|
|
1559
|
+
return de_CommandError(output, context);
|
|
1560
|
+
}
|
|
1561
|
+
const data = await parseBody(output.body, context);
|
|
1562
|
+
let contents = {};
|
|
1563
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1564
|
+
const response = {
|
|
1565
|
+
$metadata: deserializeMetadata(output),
|
|
1566
|
+
...contents
|
|
2103
1567
|
};
|
|
2104
1568
|
return response;
|
|
2105
1569
|
}, "de_DescribeAllManagedProductsCommand");
|
|
2106
|
-
var de_DescribeAllManagedProductsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2107
|
-
const parsedOutput = {
|
|
2108
|
-
...output,
|
|
2109
|
-
body: await parseErrorBody(output.body, context)
|
|
2110
|
-
};
|
|
2111
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2112
|
-
switch (errorCode) {
|
|
2113
|
-
case "WAFInternalErrorException":
|
|
2114
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
2115
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2116
|
-
case "WAFInvalidOperationException":
|
|
2117
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
2118
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
2119
|
-
default:
|
|
2120
|
-
const parsedBody = parsedOutput.body;
|
|
2121
|
-
return throwDefaultError({
|
|
2122
|
-
output,
|
|
2123
|
-
parsedBody,
|
|
2124
|
-
errorCode
|
|
2125
|
-
});
|
|
2126
|
-
}
|
|
2127
|
-
}, "de_DescribeAllManagedProductsCommandError");
|
|
2128
1570
|
var de_DescribeManagedProductsByVendorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2129
1571
|
if (output.statusCode >= 300) {
|
|
2130
|
-
return
|
|
1572
|
+
return de_CommandError(output, context);
|
|
2131
1573
|
}
|
|
2132
1574
|
const data = await parseBody(output.body, context);
|
|
2133
1575
|
let contents = {};
|
|
@@ -2138,34 +1580,9 @@ var de_DescribeManagedProductsByVendorCommand = /* @__PURE__ */ __name(async (ou
|
|
|
2138
1580
|
};
|
|
2139
1581
|
return response;
|
|
2140
1582
|
}, "de_DescribeManagedProductsByVendorCommand");
|
|
2141
|
-
var de_DescribeManagedProductsByVendorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2142
|
-
const parsedOutput = {
|
|
2143
|
-
...output,
|
|
2144
|
-
body: await parseErrorBody(output.body, context)
|
|
2145
|
-
};
|
|
2146
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2147
|
-
switch (errorCode) {
|
|
2148
|
-
case "WAFInternalErrorException":
|
|
2149
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
2150
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2151
|
-
case "WAFInvalidOperationException":
|
|
2152
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
2153
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
2154
|
-
case "WAFInvalidParameterException":
|
|
2155
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
2156
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
2157
|
-
default:
|
|
2158
|
-
const parsedBody = parsedOutput.body;
|
|
2159
|
-
return throwDefaultError({
|
|
2160
|
-
output,
|
|
2161
|
-
parsedBody,
|
|
2162
|
-
errorCode
|
|
2163
|
-
});
|
|
2164
|
-
}
|
|
2165
|
-
}, "de_DescribeManagedProductsByVendorCommandError");
|
|
2166
1583
|
var de_DescribeManagedRuleGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2167
1584
|
if (output.statusCode >= 300) {
|
|
2168
|
-
return
|
|
1585
|
+
return de_CommandError(output, context);
|
|
2169
1586
|
}
|
|
2170
1587
|
const data = await parseBody(output.body, context);
|
|
2171
1588
|
let contents = {};
|
|
@@ -2176,43 +1593,9 @@ var de_DescribeManagedRuleGroupCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2176
1593
|
};
|
|
2177
1594
|
return response;
|
|
2178
1595
|
}, "de_DescribeManagedRuleGroupCommand");
|
|
2179
|
-
var de_DescribeManagedRuleGroupCommandError = /* @__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 "WAFExpiredManagedRuleGroupVersionException":
|
|
2187
|
-
case "com.amazonaws.wafv2#WAFExpiredManagedRuleGroupVersionException":
|
|
2188
|
-
throw await de_WAFExpiredManagedRuleGroupVersionExceptionRes(parsedOutput, context);
|
|
2189
|
-
case "WAFInternalErrorException":
|
|
2190
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
2191
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2192
|
-
case "WAFInvalidOperationException":
|
|
2193
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
2194
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
2195
|
-
case "WAFInvalidParameterException":
|
|
2196
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
2197
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
2198
|
-
case "WAFInvalidResourceException":
|
|
2199
|
-
case "com.amazonaws.wafv2#WAFInvalidResourceException":
|
|
2200
|
-
throw await de_WAFInvalidResourceExceptionRes(parsedOutput, context);
|
|
2201
|
-
case "WAFNonexistentItemException":
|
|
2202
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
2203
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
2204
|
-
default:
|
|
2205
|
-
const parsedBody = parsedOutput.body;
|
|
2206
|
-
return throwDefaultError({
|
|
2207
|
-
output,
|
|
2208
|
-
parsedBody,
|
|
2209
|
-
errorCode
|
|
2210
|
-
});
|
|
2211
|
-
}
|
|
2212
|
-
}, "de_DescribeManagedRuleGroupCommandError");
|
|
2213
1596
|
var de_DisassociateWebACLCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2214
1597
|
if (output.statusCode >= 300) {
|
|
2215
|
-
return
|
|
1598
|
+
return de_CommandError(output, context);
|
|
2216
1599
|
}
|
|
2217
1600
|
const data = await parseBody(output.body, context);
|
|
2218
1601
|
let contents = {};
|
|
@@ -2223,37 +1606,9 @@ var de_DisassociateWebACLCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2223
1606
|
};
|
|
2224
1607
|
return response;
|
|
2225
1608
|
}, "de_DisassociateWebACLCommand");
|
|
2226
|
-
var de_DisassociateWebACLCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2227
|
-
const parsedOutput = {
|
|
2228
|
-
...output,
|
|
2229
|
-
body: await parseErrorBody(output.body, context)
|
|
2230
|
-
};
|
|
2231
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2232
|
-
switch (errorCode) {
|
|
2233
|
-
case "WAFInternalErrorException":
|
|
2234
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
2235
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2236
|
-
case "WAFInvalidOperationException":
|
|
2237
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
2238
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
2239
|
-
case "WAFInvalidParameterException":
|
|
2240
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
2241
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
2242
|
-
case "WAFNonexistentItemException":
|
|
2243
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
2244
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
2245
|
-
default:
|
|
2246
|
-
const parsedBody = parsedOutput.body;
|
|
2247
|
-
return throwDefaultError({
|
|
2248
|
-
output,
|
|
2249
|
-
parsedBody,
|
|
2250
|
-
errorCode
|
|
2251
|
-
});
|
|
2252
|
-
}
|
|
2253
|
-
}, "de_DisassociateWebACLCommandError");
|
|
2254
1609
|
var de_GenerateMobileSdkReleaseUrlCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2255
1610
|
if (output.statusCode >= 300) {
|
|
2256
|
-
return
|
|
1611
|
+
return de_CommandError(output, context);
|
|
2257
1612
|
}
|
|
2258
1613
|
const data = await parseBody(output.body, context);
|
|
2259
1614
|
let contents = {};
|
|
@@ -2264,37 +1619,9 @@ var de_GenerateMobileSdkReleaseUrlCommand = /* @__PURE__ */ __name(async (output
|
|
|
2264
1619
|
};
|
|
2265
1620
|
return response;
|
|
2266
1621
|
}, "de_GenerateMobileSdkReleaseUrlCommand");
|
|
2267
|
-
var de_GenerateMobileSdkReleaseUrlCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2268
|
-
const parsedOutput = {
|
|
2269
|
-
...output,
|
|
2270
|
-
body: await parseErrorBody(output.body, context)
|
|
2271
|
-
};
|
|
2272
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2273
|
-
switch (errorCode) {
|
|
2274
|
-
case "WAFInternalErrorException":
|
|
2275
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
2276
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2277
|
-
case "WAFInvalidOperationException":
|
|
2278
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
2279
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
2280
|
-
case "WAFInvalidParameterException":
|
|
2281
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
2282
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
2283
|
-
case "WAFNonexistentItemException":
|
|
2284
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
2285
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
2286
|
-
default:
|
|
2287
|
-
const parsedBody = parsedOutput.body;
|
|
2288
|
-
return throwDefaultError({
|
|
2289
|
-
output,
|
|
2290
|
-
parsedBody,
|
|
2291
|
-
errorCode
|
|
2292
|
-
});
|
|
2293
|
-
}
|
|
2294
|
-
}, "de_GenerateMobileSdkReleaseUrlCommandError");
|
|
2295
1622
|
var de_GetDecryptedAPIKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2296
1623
|
if (output.statusCode >= 300) {
|
|
2297
|
-
return
|
|
1624
|
+
return de_CommandError(output, context);
|
|
2298
1625
|
}
|
|
2299
1626
|
const data = await parseBody(output.body, context);
|
|
2300
1627
|
let contents = {};
|
|
@@ -2305,37 +1632,9 @@ var de_GetDecryptedAPIKeyCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2305
1632
|
};
|
|
2306
1633
|
return response;
|
|
2307
1634
|
}, "de_GetDecryptedAPIKeyCommand");
|
|
2308
|
-
var de_GetDecryptedAPIKeyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2309
|
-
const parsedOutput = {
|
|
2310
|
-
...output,
|
|
2311
|
-
body: await parseErrorBody(output.body, context)
|
|
2312
|
-
};
|
|
2313
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2314
|
-
switch (errorCode) {
|
|
2315
|
-
case "WAFInternalErrorException":
|
|
2316
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
2317
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2318
|
-
case "WAFInvalidOperationException":
|
|
2319
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
2320
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
2321
|
-
case "WAFInvalidParameterException":
|
|
2322
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
2323
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
2324
|
-
case "WAFInvalidResourceException":
|
|
2325
|
-
case "com.amazonaws.wafv2#WAFInvalidResourceException":
|
|
2326
|
-
throw await de_WAFInvalidResourceExceptionRes(parsedOutput, context);
|
|
2327
|
-
default:
|
|
2328
|
-
const parsedBody = parsedOutput.body;
|
|
2329
|
-
return throwDefaultError({
|
|
2330
|
-
output,
|
|
2331
|
-
parsedBody,
|
|
2332
|
-
errorCode
|
|
2333
|
-
});
|
|
2334
|
-
}
|
|
2335
|
-
}, "de_GetDecryptedAPIKeyCommandError");
|
|
2336
1635
|
var de_GetIPSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2337
1636
|
if (output.statusCode >= 300) {
|
|
2338
|
-
return
|
|
1637
|
+
return de_CommandError(output, context);
|
|
2339
1638
|
}
|
|
2340
1639
|
const data = await parseBody(output.body, context);
|
|
2341
1640
|
let contents = {};
|
|
@@ -2346,37 +1645,9 @@ var de_GetIPSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2346
1645
|
};
|
|
2347
1646
|
return response;
|
|
2348
1647
|
}, "de_GetIPSetCommand");
|
|
2349
|
-
var de_GetIPSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2350
|
-
const parsedOutput = {
|
|
2351
|
-
...output,
|
|
2352
|
-
body: await parseErrorBody(output.body, context)
|
|
2353
|
-
};
|
|
2354
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2355
|
-
switch (errorCode) {
|
|
2356
|
-
case "WAFInternalErrorException":
|
|
2357
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
2358
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2359
|
-
case "WAFInvalidOperationException":
|
|
2360
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
2361
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
2362
|
-
case "WAFInvalidParameterException":
|
|
2363
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
2364
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
2365
|
-
case "WAFNonexistentItemException":
|
|
2366
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
2367
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
2368
|
-
default:
|
|
2369
|
-
const parsedBody = parsedOutput.body;
|
|
2370
|
-
return throwDefaultError({
|
|
2371
|
-
output,
|
|
2372
|
-
parsedBody,
|
|
2373
|
-
errorCode
|
|
2374
|
-
});
|
|
2375
|
-
}
|
|
2376
|
-
}, "de_GetIPSetCommandError");
|
|
2377
1648
|
var de_GetLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2378
1649
|
if (output.statusCode >= 300) {
|
|
2379
|
-
return
|
|
1650
|
+
return de_CommandError(output, context);
|
|
2380
1651
|
}
|
|
2381
1652
|
const data = await parseBody(output.body, context);
|
|
2382
1653
|
let contents = {};
|
|
@@ -2387,37 +1658,9 @@ var de_GetLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2387
1658
|
};
|
|
2388
1659
|
return response;
|
|
2389
1660
|
}, "de_GetLoggingConfigurationCommand");
|
|
2390
|
-
var de_GetLoggingConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2391
|
-
const parsedOutput = {
|
|
2392
|
-
...output,
|
|
2393
|
-
body: await parseErrorBody(output.body, context)
|
|
2394
|
-
};
|
|
2395
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2396
|
-
switch (errorCode) {
|
|
2397
|
-
case "WAFInternalErrorException":
|
|
2398
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
2399
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2400
|
-
case "WAFInvalidOperationException":
|
|
2401
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
2402
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
2403
|
-
case "WAFInvalidParameterException":
|
|
2404
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
2405
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
2406
|
-
case "WAFNonexistentItemException":
|
|
2407
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
2408
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
2409
|
-
default:
|
|
2410
|
-
const parsedBody = parsedOutput.body;
|
|
2411
|
-
return throwDefaultError({
|
|
2412
|
-
output,
|
|
2413
|
-
parsedBody,
|
|
2414
|
-
errorCode
|
|
2415
|
-
});
|
|
2416
|
-
}
|
|
2417
|
-
}, "de_GetLoggingConfigurationCommandError");
|
|
2418
1661
|
var de_GetManagedRuleSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2419
1662
|
if (output.statusCode >= 300) {
|
|
2420
|
-
return
|
|
1663
|
+
return de_CommandError(output, context);
|
|
2421
1664
|
}
|
|
2422
1665
|
const data = await parseBody(output.body, context);
|
|
2423
1666
|
let contents = {};
|
|
@@ -2428,78 +1671,22 @@ var de_GetManagedRuleSetCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2428
1671
|
};
|
|
2429
1672
|
return response;
|
|
2430
1673
|
}, "de_GetManagedRuleSetCommand");
|
|
2431
|
-
var
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
case "WAFInvalidOperationException":
|
|
2442
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
2443
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
2444
|
-
case "WAFInvalidParameterException":
|
|
2445
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
2446
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
2447
|
-
case "WAFNonexistentItemException":
|
|
2448
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
2449
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
2450
|
-
default:
|
|
2451
|
-
const parsedBody = parsedOutput.body;
|
|
2452
|
-
return throwDefaultError({
|
|
2453
|
-
output,
|
|
2454
|
-
parsedBody,
|
|
2455
|
-
errorCode
|
|
2456
|
-
});
|
|
2457
|
-
}
|
|
2458
|
-
}, "de_GetManagedRuleSetCommandError");
|
|
2459
|
-
var de_GetMobileSdkReleaseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2460
|
-
if (output.statusCode >= 300) {
|
|
2461
|
-
return de_GetMobileSdkReleaseCommandError(output, context);
|
|
2462
|
-
}
|
|
2463
|
-
const data = await parseBody(output.body, context);
|
|
2464
|
-
let contents = {};
|
|
2465
|
-
contents = de_GetMobileSdkReleaseResponse(data, context);
|
|
2466
|
-
const response = {
|
|
2467
|
-
$metadata: deserializeMetadata(output),
|
|
2468
|
-
...contents
|
|
1674
|
+
var de_GetMobileSdkReleaseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1675
|
+
if (output.statusCode >= 300) {
|
|
1676
|
+
return de_CommandError(output, context);
|
|
1677
|
+
}
|
|
1678
|
+
const data = await parseBody(output.body, context);
|
|
1679
|
+
let contents = {};
|
|
1680
|
+
contents = de_GetMobileSdkReleaseResponse(data, context);
|
|
1681
|
+
const response = {
|
|
1682
|
+
$metadata: deserializeMetadata(output),
|
|
1683
|
+
...contents
|
|
2469
1684
|
};
|
|
2470
1685
|
return response;
|
|
2471
1686
|
}, "de_GetMobileSdkReleaseCommand");
|
|
2472
|
-
var de_GetMobileSdkReleaseCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2473
|
-
const parsedOutput = {
|
|
2474
|
-
...output,
|
|
2475
|
-
body: await parseErrorBody(output.body, context)
|
|
2476
|
-
};
|
|
2477
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2478
|
-
switch (errorCode) {
|
|
2479
|
-
case "WAFInternalErrorException":
|
|
2480
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
2481
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2482
|
-
case "WAFInvalidOperationException":
|
|
2483
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
2484
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
2485
|
-
case "WAFInvalidParameterException":
|
|
2486
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
2487
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
2488
|
-
case "WAFNonexistentItemException":
|
|
2489
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
2490
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
2491
|
-
default:
|
|
2492
|
-
const parsedBody = parsedOutput.body;
|
|
2493
|
-
return throwDefaultError({
|
|
2494
|
-
output,
|
|
2495
|
-
parsedBody,
|
|
2496
|
-
errorCode
|
|
2497
|
-
});
|
|
2498
|
-
}
|
|
2499
|
-
}, "de_GetMobileSdkReleaseCommandError");
|
|
2500
1687
|
var de_GetPermissionPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2501
1688
|
if (output.statusCode >= 300) {
|
|
2502
|
-
return
|
|
1689
|
+
return de_CommandError(output, context);
|
|
2503
1690
|
}
|
|
2504
1691
|
const data = await parseBody(output.body, context);
|
|
2505
1692
|
let contents = {};
|
|
@@ -2510,34 +1697,9 @@ var de_GetPermissionPolicyCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2510
1697
|
};
|
|
2511
1698
|
return response;
|
|
2512
1699
|
}, "de_GetPermissionPolicyCommand");
|
|
2513
|
-
var de_GetPermissionPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2514
|
-
const parsedOutput = {
|
|
2515
|
-
...output,
|
|
2516
|
-
body: await parseErrorBody(output.body, context)
|
|
2517
|
-
};
|
|
2518
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2519
|
-
switch (errorCode) {
|
|
2520
|
-
case "WAFInternalErrorException":
|
|
2521
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
2522
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2523
|
-
case "WAFInvalidParameterException":
|
|
2524
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
2525
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
2526
|
-
case "WAFNonexistentItemException":
|
|
2527
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
2528
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
2529
|
-
default:
|
|
2530
|
-
const parsedBody = parsedOutput.body;
|
|
2531
|
-
return throwDefaultError({
|
|
2532
|
-
output,
|
|
2533
|
-
parsedBody,
|
|
2534
|
-
errorCode
|
|
2535
|
-
});
|
|
2536
|
-
}
|
|
2537
|
-
}, "de_GetPermissionPolicyCommandError");
|
|
2538
1700
|
var de_GetRateBasedStatementManagedKeysCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2539
1701
|
if (output.statusCode >= 300) {
|
|
2540
|
-
return
|
|
1702
|
+
return de_CommandError(output, context);
|
|
2541
1703
|
}
|
|
2542
1704
|
const data = await parseBody(output.body, context);
|
|
2543
1705
|
let contents = {};
|
|
@@ -2548,40 +1710,9 @@ var de_GetRateBasedStatementManagedKeysCommand = /* @__PURE__ */ __name(async (o
|
|
|
2548
1710
|
};
|
|
2549
1711
|
return response;
|
|
2550
1712
|
}, "de_GetRateBasedStatementManagedKeysCommand");
|
|
2551
|
-
var de_GetRateBasedStatementManagedKeysCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2552
|
-
const parsedOutput = {
|
|
2553
|
-
...output,
|
|
2554
|
-
body: await parseErrorBody(output.body, context)
|
|
2555
|
-
};
|
|
2556
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2557
|
-
switch (errorCode) {
|
|
2558
|
-
case "WAFInternalErrorException":
|
|
2559
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
2560
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2561
|
-
case "WAFInvalidOperationException":
|
|
2562
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
2563
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
2564
|
-
case "WAFInvalidParameterException":
|
|
2565
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
2566
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
2567
|
-
case "WAFNonexistentItemException":
|
|
2568
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
2569
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
2570
|
-
case "WAFUnsupportedAggregateKeyTypeException":
|
|
2571
|
-
case "com.amazonaws.wafv2#WAFUnsupportedAggregateKeyTypeException":
|
|
2572
|
-
throw await de_WAFUnsupportedAggregateKeyTypeExceptionRes(parsedOutput, context);
|
|
2573
|
-
default:
|
|
2574
|
-
const parsedBody = parsedOutput.body;
|
|
2575
|
-
return throwDefaultError({
|
|
2576
|
-
output,
|
|
2577
|
-
parsedBody,
|
|
2578
|
-
errorCode
|
|
2579
|
-
});
|
|
2580
|
-
}
|
|
2581
|
-
}, "de_GetRateBasedStatementManagedKeysCommandError");
|
|
2582
1713
|
var de_GetRegexPatternSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2583
1714
|
if (output.statusCode >= 300) {
|
|
2584
|
-
return
|
|
1715
|
+
return de_CommandError(output, context);
|
|
2585
1716
|
}
|
|
2586
1717
|
const data = await parseBody(output.body, context);
|
|
2587
1718
|
let contents = {};
|
|
@@ -2592,37 +1723,9 @@ var de_GetRegexPatternSetCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2592
1723
|
};
|
|
2593
1724
|
return response;
|
|
2594
1725
|
}, "de_GetRegexPatternSetCommand");
|
|
2595
|
-
var de_GetRegexPatternSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2596
|
-
const parsedOutput = {
|
|
2597
|
-
...output,
|
|
2598
|
-
body: await parseErrorBody(output.body, context)
|
|
2599
|
-
};
|
|
2600
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2601
|
-
switch (errorCode) {
|
|
2602
|
-
case "WAFInternalErrorException":
|
|
2603
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
2604
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2605
|
-
case "WAFInvalidOperationException":
|
|
2606
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
2607
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
2608
|
-
case "WAFInvalidParameterException":
|
|
2609
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
2610
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
2611
|
-
case "WAFNonexistentItemException":
|
|
2612
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
2613
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
2614
|
-
default:
|
|
2615
|
-
const parsedBody = parsedOutput.body;
|
|
2616
|
-
return throwDefaultError({
|
|
2617
|
-
output,
|
|
2618
|
-
parsedBody,
|
|
2619
|
-
errorCode
|
|
2620
|
-
});
|
|
2621
|
-
}
|
|
2622
|
-
}, "de_GetRegexPatternSetCommandError");
|
|
2623
1726
|
var de_GetRuleGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2624
1727
|
if (output.statusCode >= 300) {
|
|
2625
|
-
return
|
|
1728
|
+
return de_CommandError(output, context);
|
|
2626
1729
|
}
|
|
2627
1730
|
const data = await parseBody(output.body, context);
|
|
2628
1731
|
let contents = {};
|
|
@@ -2633,37 +1736,9 @@ var de_GetRuleGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2633
1736
|
};
|
|
2634
1737
|
return response;
|
|
2635
1738
|
}, "de_GetRuleGroupCommand");
|
|
2636
|
-
var de_GetRuleGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2637
|
-
const parsedOutput = {
|
|
2638
|
-
...output,
|
|
2639
|
-
body: await parseErrorBody(output.body, context)
|
|
2640
|
-
};
|
|
2641
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2642
|
-
switch (errorCode) {
|
|
2643
|
-
case "WAFInternalErrorException":
|
|
2644
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
2645
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2646
|
-
case "WAFInvalidOperationException":
|
|
2647
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
2648
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
2649
|
-
case "WAFInvalidParameterException":
|
|
2650
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
2651
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
2652
|
-
case "WAFNonexistentItemException":
|
|
2653
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
2654
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
2655
|
-
default:
|
|
2656
|
-
const parsedBody = parsedOutput.body;
|
|
2657
|
-
return throwDefaultError({
|
|
2658
|
-
output,
|
|
2659
|
-
parsedBody,
|
|
2660
|
-
errorCode
|
|
2661
|
-
});
|
|
2662
|
-
}
|
|
2663
|
-
}, "de_GetRuleGroupCommandError");
|
|
2664
1739
|
var de_GetSampledRequestsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2665
1740
|
if (output.statusCode >= 300) {
|
|
2666
|
-
return
|
|
1741
|
+
return de_CommandError(output, context);
|
|
2667
1742
|
}
|
|
2668
1743
|
const data = await parseBody(output.body, context);
|
|
2669
1744
|
let contents = {};
|
|
@@ -2674,34 +1749,9 @@ var de_GetSampledRequestsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2674
1749
|
};
|
|
2675
1750
|
return response;
|
|
2676
1751
|
}, "de_GetSampledRequestsCommand");
|
|
2677
|
-
var de_GetSampledRequestsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2678
|
-
const parsedOutput = {
|
|
2679
|
-
...output,
|
|
2680
|
-
body: await parseErrorBody(output.body, context)
|
|
2681
|
-
};
|
|
2682
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2683
|
-
switch (errorCode) {
|
|
2684
|
-
case "WAFInternalErrorException":
|
|
2685
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
2686
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2687
|
-
case "WAFInvalidParameterException":
|
|
2688
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
2689
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
2690
|
-
case "WAFNonexistentItemException":
|
|
2691
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
2692
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
2693
|
-
default:
|
|
2694
|
-
const parsedBody = parsedOutput.body;
|
|
2695
|
-
return throwDefaultError({
|
|
2696
|
-
output,
|
|
2697
|
-
parsedBody,
|
|
2698
|
-
errorCode
|
|
2699
|
-
});
|
|
2700
|
-
}
|
|
2701
|
-
}, "de_GetSampledRequestsCommandError");
|
|
2702
1752
|
var de_GetWebACLCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2703
1753
|
if (output.statusCode >= 300) {
|
|
2704
|
-
return
|
|
1754
|
+
return de_CommandError(output, context);
|
|
2705
1755
|
}
|
|
2706
1756
|
const data = await parseBody(output.body, context);
|
|
2707
1757
|
let contents = {};
|
|
@@ -2712,37 +1762,9 @@ var de_GetWebACLCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2712
1762
|
};
|
|
2713
1763
|
return response;
|
|
2714
1764
|
}, "de_GetWebACLCommand");
|
|
2715
|
-
var de_GetWebACLCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2716
|
-
const parsedOutput = {
|
|
2717
|
-
...output,
|
|
2718
|
-
body: await parseErrorBody(output.body, context)
|
|
2719
|
-
};
|
|
2720
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2721
|
-
switch (errorCode) {
|
|
2722
|
-
case "WAFInternalErrorException":
|
|
2723
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
2724
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2725
|
-
case "WAFInvalidOperationException":
|
|
2726
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
2727
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
2728
|
-
case "WAFInvalidParameterException":
|
|
2729
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
2730
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
2731
|
-
case "WAFNonexistentItemException":
|
|
2732
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
2733
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
2734
|
-
default:
|
|
2735
|
-
const parsedBody = parsedOutput.body;
|
|
2736
|
-
return throwDefaultError({
|
|
2737
|
-
output,
|
|
2738
|
-
parsedBody,
|
|
2739
|
-
errorCode
|
|
2740
|
-
});
|
|
2741
|
-
}
|
|
2742
|
-
}, "de_GetWebACLCommandError");
|
|
2743
1765
|
var de_GetWebACLForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2744
1766
|
if (output.statusCode >= 300) {
|
|
2745
|
-
return
|
|
1767
|
+
return de_CommandError(output, context);
|
|
2746
1768
|
}
|
|
2747
1769
|
const data = await parseBody(output.body, context);
|
|
2748
1770
|
let contents = {};
|
|
@@ -2753,40 +1775,9 @@ var de_GetWebACLForResourceCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2753
1775
|
};
|
|
2754
1776
|
return response;
|
|
2755
1777
|
}, "de_GetWebACLForResourceCommand");
|
|
2756
|
-
var de_GetWebACLForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2757
|
-
const parsedOutput = {
|
|
2758
|
-
...output,
|
|
2759
|
-
body: await parseErrorBody(output.body, context)
|
|
2760
|
-
};
|
|
2761
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2762
|
-
switch (errorCode) {
|
|
2763
|
-
case "WAFInternalErrorException":
|
|
2764
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
2765
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2766
|
-
case "WAFInvalidOperationException":
|
|
2767
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
2768
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
2769
|
-
case "WAFInvalidParameterException":
|
|
2770
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
2771
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
2772
|
-
case "WAFNonexistentItemException":
|
|
2773
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
2774
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
2775
|
-
case "WAFUnavailableEntityException":
|
|
2776
|
-
case "com.amazonaws.wafv2#WAFUnavailableEntityException":
|
|
2777
|
-
throw await de_WAFUnavailableEntityExceptionRes(parsedOutput, context);
|
|
2778
|
-
default:
|
|
2779
|
-
const parsedBody = parsedOutput.body;
|
|
2780
|
-
return throwDefaultError({
|
|
2781
|
-
output,
|
|
2782
|
-
parsedBody,
|
|
2783
|
-
errorCode
|
|
2784
|
-
});
|
|
2785
|
-
}
|
|
2786
|
-
}, "de_GetWebACLForResourceCommandError");
|
|
2787
1778
|
var de_ListAPIKeysCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2788
1779
|
if (output.statusCode >= 300) {
|
|
2789
|
-
return
|
|
1780
|
+
return de_CommandError(output, context);
|
|
2790
1781
|
}
|
|
2791
1782
|
const data = await parseBody(output.body, context);
|
|
2792
1783
|
let contents = {};
|
|
@@ -2797,75 +1788,22 @@ var de_ListAPIKeysCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2797
1788
|
};
|
|
2798
1789
|
return response;
|
|
2799
1790
|
}, "de_ListAPIKeysCommand");
|
|
2800
|
-
var
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
case "WAFInvalidOperationException":
|
|
2811
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
2812
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
2813
|
-
case "WAFInvalidParameterException":
|
|
2814
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
2815
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
2816
|
-
case "WAFInvalidResourceException":
|
|
2817
|
-
case "com.amazonaws.wafv2#WAFInvalidResourceException":
|
|
2818
|
-
throw await de_WAFInvalidResourceExceptionRes(parsedOutput, context);
|
|
2819
|
-
default:
|
|
2820
|
-
const parsedBody = parsedOutput.body;
|
|
2821
|
-
return throwDefaultError({
|
|
2822
|
-
output,
|
|
2823
|
-
parsedBody,
|
|
2824
|
-
errorCode
|
|
2825
|
-
});
|
|
2826
|
-
}
|
|
2827
|
-
}, "de_ListAPIKeysCommandError");
|
|
2828
|
-
var de_ListAvailableManagedRuleGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2829
|
-
if (output.statusCode >= 300) {
|
|
2830
|
-
return de_ListAvailableManagedRuleGroupsCommandError(output, context);
|
|
2831
|
-
}
|
|
2832
|
-
const data = await parseBody(output.body, context);
|
|
2833
|
-
let contents = {};
|
|
2834
|
-
contents = (0, import_smithy_client._json)(data);
|
|
2835
|
-
const response = {
|
|
2836
|
-
$metadata: deserializeMetadata(output),
|
|
2837
|
-
...contents
|
|
1791
|
+
var de_ListAvailableManagedRuleGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1792
|
+
if (output.statusCode >= 300) {
|
|
1793
|
+
return de_CommandError(output, context);
|
|
1794
|
+
}
|
|
1795
|
+
const data = await parseBody(output.body, context);
|
|
1796
|
+
let contents = {};
|
|
1797
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1798
|
+
const response = {
|
|
1799
|
+
$metadata: deserializeMetadata(output),
|
|
1800
|
+
...contents
|
|
2838
1801
|
};
|
|
2839
1802
|
return response;
|
|
2840
1803
|
}, "de_ListAvailableManagedRuleGroupsCommand");
|
|
2841
|
-
var de_ListAvailableManagedRuleGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2842
|
-
const parsedOutput = {
|
|
2843
|
-
...output,
|
|
2844
|
-
body: await parseErrorBody(output.body, context)
|
|
2845
|
-
};
|
|
2846
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2847
|
-
switch (errorCode) {
|
|
2848
|
-
case "WAFInternalErrorException":
|
|
2849
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
2850
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2851
|
-
case "WAFInvalidOperationException":
|
|
2852
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
2853
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
2854
|
-
case "WAFInvalidParameterException":
|
|
2855
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
2856
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
2857
|
-
default:
|
|
2858
|
-
const parsedBody = parsedOutput.body;
|
|
2859
|
-
return throwDefaultError({
|
|
2860
|
-
output,
|
|
2861
|
-
parsedBody,
|
|
2862
|
-
errorCode
|
|
2863
|
-
});
|
|
2864
|
-
}
|
|
2865
|
-
}, "de_ListAvailableManagedRuleGroupsCommandError");
|
|
2866
1804
|
var de_ListAvailableManagedRuleGroupVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2867
1805
|
if (output.statusCode >= 300) {
|
|
2868
|
-
return
|
|
1806
|
+
return de_CommandError(output, context);
|
|
2869
1807
|
}
|
|
2870
1808
|
const data = await parseBody(output.body, context);
|
|
2871
1809
|
let contents = {};
|
|
@@ -2876,37 +1814,9 @@ var de_ListAvailableManagedRuleGroupVersionsCommand = /* @__PURE__ */ __name(asy
|
|
|
2876
1814
|
};
|
|
2877
1815
|
return response;
|
|
2878
1816
|
}, "de_ListAvailableManagedRuleGroupVersionsCommand");
|
|
2879
|
-
var de_ListAvailableManagedRuleGroupVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2880
|
-
const parsedOutput = {
|
|
2881
|
-
...output,
|
|
2882
|
-
body: await parseErrorBody(output.body, context)
|
|
2883
|
-
};
|
|
2884
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2885
|
-
switch (errorCode) {
|
|
2886
|
-
case "WAFInternalErrorException":
|
|
2887
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
2888
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2889
|
-
case "WAFInvalidOperationException":
|
|
2890
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
2891
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
2892
|
-
case "WAFInvalidParameterException":
|
|
2893
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
2894
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
2895
|
-
case "WAFNonexistentItemException":
|
|
2896
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
2897
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
2898
|
-
default:
|
|
2899
|
-
const parsedBody = parsedOutput.body;
|
|
2900
|
-
return throwDefaultError({
|
|
2901
|
-
output,
|
|
2902
|
-
parsedBody,
|
|
2903
|
-
errorCode
|
|
2904
|
-
});
|
|
2905
|
-
}
|
|
2906
|
-
}, "de_ListAvailableManagedRuleGroupVersionsCommandError");
|
|
2907
1817
|
var de_ListIPSetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2908
1818
|
if (output.statusCode >= 300) {
|
|
2909
|
-
return
|
|
1819
|
+
return de_CommandError(output, context);
|
|
2910
1820
|
}
|
|
2911
1821
|
const data = await parseBody(output.body, context);
|
|
2912
1822
|
let contents = {};
|
|
@@ -2917,34 +1827,9 @@ var de_ListIPSetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2917
1827
|
};
|
|
2918
1828
|
return response;
|
|
2919
1829
|
}, "de_ListIPSetsCommand");
|
|
2920
|
-
var de_ListIPSetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2921
|
-
const parsedOutput = {
|
|
2922
|
-
...output,
|
|
2923
|
-
body: await parseErrorBody(output.body, context)
|
|
2924
|
-
};
|
|
2925
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2926
|
-
switch (errorCode) {
|
|
2927
|
-
case "WAFInternalErrorException":
|
|
2928
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
2929
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2930
|
-
case "WAFInvalidOperationException":
|
|
2931
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
2932
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
2933
|
-
case "WAFInvalidParameterException":
|
|
2934
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
2935
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
2936
|
-
default:
|
|
2937
|
-
const parsedBody = parsedOutput.body;
|
|
2938
|
-
return throwDefaultError({
|
|
2939
|
-
output,
|
|
2940
|
-
parsedBody,
|
|
2941
|
-
errorCode
|
|
2942
|
-
});
|
|
2943
|
-
}
|
|
2944
|
-
}, "de_ListIPSetsCommandError");
|
|
2945
1830
|
var de_ListLoggingConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2946
1831
|
if (output.statusCode >= 300) {
|
|
2947
|
-
return
|
|
1832
|
+
return de_CommandError(output, context);
|
|
2948
1833
|
}
|
|
2949
1834
|
const data = await parseBody(output.body, context);
|
|
2950
1835
|
let contents = {};
|
|
@@ -2955,34 +1840,9 @@ var de_ListLoggingConfigurationsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2955
1840
|
};
|
|
2956
1841
|
return response;
|
|
2957
1842
|
}, "de_ListLoggingConfigurationsCommand");
|
|
2958
|
-
var de_ListLoggingConfigurationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2959
|
-
const parsedOutput = {
|
|
2960
|
-
...output,
|
|
2961
|
-
body: await parseErrorBody(output.body, context)
|
|
2962
|
-
};
|
|
2963
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2964
|
-
switch (errorCode) {
|
|
2965
|
-
case "WAFInternalErrorException":
|
|
2966
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
2967
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
2968
|
-
case "WAFInvalidOperationException":
|
|
2969
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
2970
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
2971
|
-
case "WAFInvalidParameterException":
|
|
2972
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
2973
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
2974
|
-
default:
|
|
2975
|
-
const parsedBody = parsedOutput.body;
|
|
2976
|
-
return throwDefaultError({
|
|
2977
|
-
output,
|
|
2978
|
-
parsedBody,
|
|
2979
|
-
errorCode
|
|
2980
|
-
});
|
|
2981
|
-
}
|
|
2982
|
-
}, "de_ListLoggingConfigurationsCommandError");
|
|
2983
1843
|
var de_ListManagedRuleSetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2984
1844
|
if (output.statusCode >= 300) {
|
|
2985
|
-
return
|
|
1845
|
+
return de_CommandError(output, context);
|
|
2986
1846
|
}
|
|
2987
1847
|
const data = await parseBody(output.body, context);
|
|
2988
1848
|
let contents = {};
|
|
@@ -2993,34 +1853,9 @@ var de_ListManagedRuleSetsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2993
1853
|
};
|
|
2994
1854
|
return response;
|
|
2995
1855
|
}, "de_ListManagedRuleSetsCommand");
|
|
2996
|
-
var de_ListManagedRuleSetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2997
|
-
const parsedOutput = {
|
|
2998
|
-
...output,
|
|
2999
|
-
body: await parseErrorBody(output.body, context)
|
|
3000
|
-
};
|
|
3001
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3002
|
-
switch (errorCode) {
|
|
3003
|
-
case "WAFInternalErrorException":
|
|
3004
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
3005
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
3006
|
-
case "WAFInvalidOperationException":
|
|
3007
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
3008
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
3009
|
-
case "WAFInvalidParameterException":
|
|
3010
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
3011
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
3012
|
-
default:
|
|
3013
|
-
const parsedBody = parsedOutput.body;
|
|
3014
|
-
return throwDefaultError({
|
|
3015
|
-
output,
|
|
3016
|
-
parsedBody,
|
|
3017
|
-
errorCode
|
|
3018
|
-
});
|
|
3019
|
-
}
|
|
3020
|
-
}, "de_ListManagedRuleSetsCommandError");
|
|
3021
1856
|
var de_ListMobileSdkReleasesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3022
1857
|
if (output.statusCode >= 300) {
|
|
3023
|
-
return
|
|
1858
|
+
return de_CommandError(output, context);
|
|
3024
1859
|
}
|
|
3025
1860
|
const data = await parseBody(output.body, context);
|
|
3026
1861
|
let contents = {};
|
|
@@ -3031,34 +1866,9 @@ var de_ListMobileSdkReleasesCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
3031
1866
|
};
|
|
3032
1867
|
return response;
|
|
3033
1868
|
}, "de_ListMobileSdkReleasesCommand");
|
|
3034
|
-
var de_ListMobileSdkReleasesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3035
|
-
const parsedOutput = {
|
|
3036
|
-
...output,
|
|
3037
|
-
body: await parseErrorBody(output.body, context)
|
|
3038
|
-
};
|
|
3039
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3040
|
-
switch (errorCode) {
|
|
3041
|
-
case "WAFInternalErrorException":
|
|
3042
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
3043
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
3044
|
-
case "WAFInvalidOperationException":
|
|
3045
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
3046
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
3047
|
-
case "WAFInvalidParameterException":
|
|
3048
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
3049
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
3050
|
-
default:
|
|
3051
|
-
const parsedBody = parsedOutput.body;
|
|
3052
|
-
return throwDefaultError({
|
|
3053
|
-
output,
|
|
3054
|
-
parsedBody,
|
|
3055
|
-
errorCode
|
|
3056
|
-
});
|
|
3057
|
-
}
|
|
3058
|
-
}, "de_ListMobileSdkReleasesCommandError");
|
|
3059
1869
|
var de_ListRegexPatternSetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3060
1870
|
if (output.statusCode >= 300) {
|
|
3061
|
-
return
|
|
1871
|
+
return de_CommandError(output, context);
|
|
3062
1872
|
}
|
|
3063
1873
|
const data = await parseBody(output.body, context);
|
|
3064
1874
|
let contents = {};
|
|
@@ -3069,34 +1879,9 @@ var de_ListRegexPatternSetsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
3069
1879
|
};
|
|
3070
1880
|
return response;
|
|
3071
1881
|
}, "de_ListRegexPatternSetsCommand");
|
|
3072
|
-
var de_ListRegexPatternSetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3073
|
-
const parsedOutput = {
|
|
3074
|
-
...output,
|
|
3075
|
-
body: await parseErrorBody(output.body, context)
|
|
3076
|
-
};
|
|
3077
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3078
|
-
switch (errorCode) {
|
|
3079
|
-
case "WAFInternalErrorException":
|
|
3080
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
3081
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
3082
|
-
case "WAFInvalidOperationException":
|
|
3083
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
3084
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
3085
|
-
case "WAFInvalidParameterException":
|
|
3086
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
3087
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
3088
|
-
default:
|
|
3089
|
-
const parsedBody = parsedOutput.body;
|
|
3090
|
-
return throwDefaultError({
|
|
3091
|
-
output,
|
|
3092
|
-
parsedBody,
|
|
3093
|
-
errorCode
|
|
3094
|
-
});
|
|
3095
|
-
}
|
|
3096
|
-
}, "de_ListRegexPatternSetsCommandError");
|
|
3097
1882
|
var de_ListResourcesForWebACLCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3098
1883
|
if (output.statusCode >= 300) {
|
|
3099
|
-
return
|
|
1884
|
+
return de_CommandError(output, context);
|
|
3100
1885
|
}
|
|
3101
1886
|
const data = await parseBody(output.body, context);
|
|
3102
1887
|
let contents = {};
|
|
@@ -3107,37 +1892,9 @@ var de_ListResourcesForWebACLCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
3107
1892
|
};
|
|
3108
1893
|
return response;
|
|
3109
1894
|
}, "de_ListResourcesForWebACLCommand");
|
|
3110
|
-
var de_ListResourcesForWebACLCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3111
|
-
const parsedOutput = {
|
|
3112
|
-
...output,
|
|
3113
|
-
body: await parseErrorBody(output.body, context)
|
|
3114
|
-
};
|
|
3115
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3116
|
-
switch (errorCode) {
|
|
3117
|
-
case "WAFInternalErrorException":
|
|
3118
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
3119
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
3120
|
-
case "WAFInvalidOperationException":
|
|
3121
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
3122
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
3123
|
-
case "WAFInvalidParameterException":
|
|
3124
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
3125
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
3126
|
-
case "WAFNonexistentItemException":
|
|
3127
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
3128
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
3129
|
-
default:
|
|
3130
|
-
const parsedBody = parsedOutput.body;
|
|
3131
|
-
return throwDefaultError({
|
|
3132
|
-
output,
|
|
3133
|
-
parsedBody,
|
|
3134
|
-
errorCode
|
|
3135
|
-
});
|
|
3136
|
-
}
|
|
3137
|
-
}, "de_ListResourcesForWebACLCommandError");
|
|
3138
1895
|
var de_ListRuleGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3139
1896
|
if (output.statusCode >= 300) {
|
|
3140
|
-
return
|
|
1897
|
+
return de_CommandError(output, context);
|
|
3141
1898
|
}
|
|
3142
1899
|
const data = await parseBody(output.body, context);
|
|
3143
1900
|
let contents = {};
|
|
@@ -3148,34 +1905,9 @@ var de_ListRuleGroupsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3148
1905
|
};
|
|
3149
1906
|
return response;
|
|
3150
1907
|
}, "de_ListRuleGroupsCommand");
|
|
3151
|
-
var de_ListRuleGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3152
|
-
const parsedOutput = {
|
|
3153
|
-
...output,
|
|
3154
|
-
body: await parseErrorBody(output.body, context)
|
|
3155
|
-
};
|
|
3156
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3157
|
-
switch (errorCode) {
|
|
3158
|
-
case "WAFInternalErrorException":
|
|
3159
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
3160
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
3161
|
-
case "WAFInvalidOperationException":
|
|
3162
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
3163
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
3164
|
-
case "WAFInvalidParameterException":
|
|
3165
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
3166
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
3167
|
-
default:
|
|
3168
|
-
const parsedBody = parsedOutput.body;
|
|
3169
|
-
return throwDefaultError({
|
|
3170
|
-
output,
|
|
3171
|
-
parsedBody,
|
|
3172
|
-
errorCode
|
|
3173
|
-
});
|
|
3174
|
-
}
|
|
3175
|
-
}, "de_ListRuleGroupsCommandError");
|
|
3176
1908
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3177
1909
|
if (output.statusCode >= 300) {
|
|
3178
|
-
return
|
|
1910
|
+
return de_CommandError(output, context);
|
|
3179
1911
|
}
|
|
3180
1912
|
const data = await parseBody(output.body, context);
|
|
3181
1913
|
let contents = {};
|
|
@@ -3186,43 +1918,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
3186
1918
|
};
|
|
3187
1919
|
return response;
|
|
3188
1920
|
}, "de_ListTagsForResourceCommand");
|
|
3189
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3190
|
-
const parsedOutput = {
|
|
3191
|
-
...output,
|
|
3192
|
-
body: await parseErrorBody(output.body, context)
|
|
3193
|
-
};
|
|
3194
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3195
|
-
switch (errorCode) {
|
|
3196
|
-
case "WAFInternalErrorException":
|
|
3197
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
3198
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
3199
|
-
case "WAFInvalidOperationException":
|
|
3200
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
3201
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
3202
|
-
case "WAFInvalidParameterException":
|
|
3203
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
3204
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
3205
|
-
case "WAFNonexistentItemException":
|
|
3206
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
3207
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
3208
|
-
case "WAFTagOperationException":
|
|
3209
|
-
case "com.amazonaws.wafv2#WAFTagOperationException":
|
|
3210
|
-
throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
|
|
3211
|
-
case "WAFTagOperationInternalErrorException":
|
|
3212
|
-
case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException":
|
|
3213
|
-
throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
|
|
3214
|
-
default:
|
|
3215
|
-
const parsedBody = parsedOutput.body;
|
|
3216
|
-
return throwDefaultError({
|
|
3217
|
-
output,
|
|
3218
|
-
parsedBody,
|
|
3219
|
-
errorCode
|
|
3220
|
-
});
|
|
3221
|
-
}
|
|
3222
|
-
}, "de_ListTagsForResourceCommandError");
|
|
3223
1921
|
var de_ListWebACLsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3224
1922
|
if (output.statusCode >= 300) {
|
|
3225
|
-
return
|
|
1923
|
+
return de_CommandError(output, context);
|
|
3226
1924
|
}
|
|
3227
1925
|
const data = await parseBody(output.body, context);
|
|
3228
1926
|
let contents = {};
|
|
@@ -3233,34 +1931,9 @@ var de_ListWebACLsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3233
1931
|
};
|
|
3234
1932
|
return response;
|
|
3235
1933
|
}, "de_ListWebACLsCommand");
|
|
3236
|
-
var de_ListWebACLsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3237
|
-
const parsedOutput = {
|
|
3238
|
-
...output,
|
|
3239
|
-
body: await parseErrorBody(output.body, context)
|
|
3240
|
-
};
|
|
3241
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3242
|
-
switch (errorCode) {
|
|
3243
|
-
case "WAFInternalErrorException":
|
|
3244
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
3245
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
3246
|
-
case "WAFInvalidOperationException":
|
|
3247
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
3248
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
3249
|
-
case "WAFInvalidParameterException":
|
|
3250
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
3251
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
3252
|
-
default:
|
|
3253
|
-
const parsedBody = parsedOutput.body;
|
|
3254
|
-
return throwDefaultError({
|
|
3255
|
-
output,
|
|
3256
|
-
parsedBody,
|
|
3257
|
-
errorCode
|
|
3258
|
-
});
|
|
3259
|
-
}
|
|
3260
|
-
}, "de_ListWebACLsCommandError");
|
|
3261
1934
|
var de_PutLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3262
1935
|
if (output.statusCode >= 300) {
|
|
3263
|
-
return
|
|
1936
|
+
return de_CommandError(output, context);
|
|
3264
1937
|
}
|
|
3265
1938
|
const data = await parseBody(output.body, context);
|
|
3266
1939
|
let contents = {};
|
|
@@ -3271,134 +1944,9 @@ var de_PutLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
3271
1944
|
};
|
|
3272
1945
|
return response;
|
|
3273
1946
|
}, "de_PutLoggingConfigurationCommand");
|
|
3274
|
-
var de_PutLoggingConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3275
|
-
const parsedOutput = {
|
|
3276
|
-
...output,
|
|
3277
|
-
body: await parseErrorBody(output.body, context)
|
|
3278
|
-
};
|
|
3279
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3280
|
-
switch (errorCode) {
|
|
3281
|
-
case "WAFInternalErrorException":
|
|
3282
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
3283
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
3284
|
-
case "WAFInvalidOperationException":
|
|
3285
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
3286
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
3287
|
-
case "WAFInvalidParameterException":
|
|
3288
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
3289
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
3290
|
-
case "WAFLimitsExceededException":
|
|
3291
|
-
case "com.amazonaws.wafv2#WAFLimitsExceededException":
|
|
3292
|
-
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
3293
|
-
case "WAFLogDestinationPermissionIssueException":
|
|
3294
|
-
case "com.amazonaws.wafv2#WAFLogDestinationPermissionIssueException":
|
|
3295
|
-
throw await de_WAFLogDestinationPermissionIssueExceptionRes(parsedOutput, context);
|
|
3296
|
-
case "WAFNonexistentItemException":
|
|
3297
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
3298
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
3299
|
-
case "WAFOptimisticLockException":
|
|
3300
|
-
case "com.amazonaws.wafv2#WAFOptimisticLockException":
|
|
3301
|
-
throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
|
|
3302
|
-
case "WAFServiceLinkedRoleErrorException":
|
|
3303
|
-
case "com.amazonaws.wafv2#WAFServiceLinkedRoleErrorException":
|
|
3304
|
-
throw await de_WAFServiceLinkedRoleErrorExceptionRes(parsedOutput, context);
|
|
3305
|
-
default:
|
|
3306
|
-
const parsedBody = parsedOutput.body;
|
|
3307
|
-
return throwDefaultError({
|
|
3308
|
-
output,
|
|
3309
|
-
parsedBody,
|
|
3310
|
-
errorCode
|
|
3311
|
-
});
|
|
3312
|
-
}
|
|
3313
|
-
}, "de_PutLoggingConfigurationCommandError");
|
|
3314
1947
|
var de_PutManagedRuleSetVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3315
1948
|
if (output.statusCode >= 300) {
|
|
3316
|
-
return
|
|
3317
|
-
}
|
|
3318
|
-
const data = await parseBody(output.body, context);
|
|
3319
|
-
let contents = {};
|
|
3320
|
-
contents = (0, import_smithy_client._json)(data);
|
|
3321
|
-
const response = {
|
|
3322
|
-
$metadata: deserializeMetadata(output),
|
|
3323
|
-
...contents
|
|
3324
|
-
};
|
|
3325
|
-
return response;
|
|
3326
|
-
}, "de_PutManagedRuleSetVersionsCommand");
|
|
3327
|
-
var de_PutManagedRuleSetVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3328
|
-
const parsedOutput = {
|
|
3329
|
-
...output,
|
|
3330
|
-
body: await parseErrorBody(output.body, context)
|
|
3331
|
-
};
|
|
3332
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3333
|
-
switch (errorCode) {
|
|
3334
|
-
case "WAFInternalErrorException":
|
|
3335
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
3336
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
3337
|
-
case "WAFInvalidOperationException":
|
|
3338
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
3339
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
3340
|
-
case "WAFInvalidParameterException":
|
|
3341
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
3342
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
3343
|
-
case "WAFNonexistentItemException":
|
|
3344
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
3345
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
3346
|
-
case "WAFOptimisticLockException":
|
|
3347
|
-
case "com.amazonaws.wafv2#WAFOptimisticLockException":
|
|
3348
|
-
throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
|
|
3349
|
-
default:
|
|
3350
|
-
const parsedBody = parsedOutput.body;
|
|
3351
|
-
return throwDefaultError({
|
|
3352
|
-
output,
|
|
3353
|
-
parsedBody,
|
|
3354
|
-
errorCode
|
|
3355
|
-
});
|
|
3356
|
-
}
|
|
3357
|
-
}, "de_PutManagedRuleSetVersionsCommandError");
|
|
3358
|
-
var de_PutPermissionPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3359
|
-
if (output.statusCode >= 300) {
|
|
3360
|
-
return de_PutPermissionPolicyCommandError(output, context);
|
|
3361
|
-
}
|
|
3362
|
-
const data = await parseBody(output.body, context);
|
|
3363
|
-
let contents = {};
|
|
3364
|
-
contents = (0, import_smithy_client._json)(data);
|
|
3365
|
-
const response = {
|
|
3366
|
-
$metadata: deserializeMetadata(output),
|
|
3367
|
-
...contents
|
|
3368
|
-
};
|
|
3369
|
-
return response;
|
|
3370
|
-
}, "de_PutPermissionPolicyCommand");
|
|
3371
|
-
var de_PutPermissionPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3372
|
-
const parsedOutput = {
|
|
3373
|
-
...output,
|
|
3374
|
-
body: await parseErrorBody(output.body, context)
|
|
3375
|
-
};
|
|
3376
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3377
|
-
switch (errorCode) {
|
|
3378
|
-
case "WAFInternalErrorException":
|
|
3379
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
3380
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
3381
|
-
case "WAFInvalidParameterException":
|
|
3382
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
3383
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
3384
|
-
case "WAFInvalidPermissionPolicyException":
|
|
3385
|
-
case "com.amazonaws.wafv2#WAFInvalidPermissionPolicyException":
|
|
3386
|
-
throw await de_WAFInvalidPermissionPolicyExceptionRes(parsedOutput, context);
|
|
3387
|
-
case "WAFNonexistentItemException":
|
|
3388
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
3389
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
3390
|
-
default:
|
|
3391
|
-
const parsedBody = parsedOutput.body;
|
|
3392
|
-
return throwDefaultError({
|
|
3393
|
-
output,
|
|
3394
|
-
parsedBody,
|
|
3395
|
-
errorCode
|
|
3396
|
-
});
|
|
3397
|
-
}
|
|
3398
|
-
}, "de_PutPermissionPolicyCommandError");
|
|
3399
|
-
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3400
|
-
if (output.statusCode >= 300) {
|
|
3401
|
-
return de_TagResourceCommandError(output, context);
|
|
1949
|
+
return de_CommandError(output, context);
|
|
3402
1950
|
}
|
|
3403
1951
|
const data = await parseBody(output.body, context);
|
|
3404
1952
|
let contents = {};
|
|
@@ -3408,47 +1956,36 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3408
1956
|
...contents
|
|
3409
1957
|
};
|
|
3410
1958
|
return response;
|
|
3411
|
-
}, "
|
|
3412
|
-
var
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
case "WAFLimitsExceededException":
|
|
3429
|
-
case "com.amazonaws.wafv2#WAFLimitsExceededException":
|
|
3430
|
-
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
3431
|
-
case "WAFNonexistentItemException":
|
|
3432
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
3433
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
3434
|
-
case "WAFTagOperationException":
|
|
3435
|
-
case "com.amazonaws.wafv2#WAFTagOperationException":
|
|
3436
|
-
throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
|
|
3437
|
-
case "WAFTagOperationInternalErrorException":
|
|
3438
|
-
case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException":
|
|
3439
|
-
throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
|
|
3440
|
-
default:
|
|
3441
|
-
const parsedBody = parsedOutput.body;
|
|
3442
|
-
return throwDefaultError({
|
|
3443
|
-
output,
|
|
3444
|
-
parsedBody,
|
|
3445
|
-
errorCode
|
|
3446
|
-
});
|
|
1959
|
+
}, "de_PutManagedRuleSetVersionsCommand");
|
|
1960
|
+
var de_PutPermissionPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1961
|
+
if (output.statusCode >= 300) {
|
|
1962
|
+
return de_CommandError(output, context);
|
|
1963
|
+
}
|
|
1964
|
+
const data = await parseBody(output.body, context);
|
|
1965
|
+
let contents = {};
|
|
1966
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1967
|
+
const response = {
|
|
1968
|
+
$metadata: deserializeMetadata(output),
|
|
1969
|
+
...contents
|
|
1970
|
+
};
|
|
1971
|
+
return response;
|
|
1972
|
+
}, "de_PutPermissionPolicyCommand");
|
|
1973
|
+
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1974
|
+
if (output.statusCode >= 300) {
|
|
1975
|
+
return de_CommandError(output, context);
|
|
3447
1976
|
}
|
|
3448
|
-
|
|
1977
|
+
const data = await parseBody(output.body, context);
|
|
1978
|
+
let contents = {};
|
|
1979
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1980
|
+
const response = {
|
|
1981
|
+
$metadata: deserializeMetadata(output),
|
|
1982
|
+
...contents
|
|
1983
|
+
};
|
|
1984
|
+
return response;
|
|
1985
|
+
}, "de_TagResourceCommand");
|
|
3449
1986
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3450
1987
|
if (output.statusCode >= 300) {
|
|
3451
|
-
return
|
|
1988
|
+
return de_CommandError(output, context);
|
|
3452
1989
|
}
|
|
3453
1990
|
const data = await parseBody(output.body, context);
|
|
3454
1991
|
let contents = {};
|
|
@@ -3459,43 +1996,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3459
1996
|
};
|
|
3460
1997
|
return response;
|
|
3461
1998
|
}, "de_UntagResourceCommand");
|
|
3462
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3463
|
-
const parsedOutput = {
|
|
3464
|
-
...output,
|
|
3465
|
-
body: await parseErrorBody(output.body, context)
|
|
3466
|
-
};
|
|
3467
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3468
|
-
switch (errorCode) {
|
|
3469
|
-
case "WAFInternalErrorException":
|
|
3470
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
3471
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
3472
|
-
case "WAFInvalidOperationException":
|
|
3473
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
3474
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
3475
|
-
case "WAFInvalidParameterException":
|
|
3476
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
3477
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
3478
|
-
case "WAFNonexistentItemException":
|
|
3479
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
3480
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
3481
|
-
case "WAFTagOperationException":
|
|
3482
|
-
case "com.amazonaws.wafv2#WAFTagOperationException":
|
|
3483
|
-
throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
|
|
3484
|
-
case "WAFTagOperationInternalErrorException":
|
|
3485
|
-
case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException":
|
|
3486
|
-
throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
|
|
3487
|
-
default:
|
|
3488
|
-
const parsedBody = parsedOutput.body;
|
|
3489
|
-
return throwDefaultError({
|
|
3490
|
-
output,
|
|
3491
|
-
parsedBody,
|
|
3492
|
-
errorCode
|
|
3493
|
-
});
|
|
3494
|
-
}
|
|
3495
|
-
}, "de_UntagResourceCommandError");
|
|
3496
1999
|
var de_UpdateIPSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3497
2000
|
if (output.statusCode >= 300) {
|
|
3498
|
-
return
|
|
2001
|
+
return de_CommandError(output, context);
|
|
3499
2002
|
}
|
|
3500
2003
|
const data = await parseBody(output.body, context);
|
|
3501
2004
|
let contents = {};
|
|
@@ -3506,46 +2009,9 @@ var de_UpdateIPSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3506
2009
|
};
|
|
3507
2010
|
return response;
|
|
3508
2011
|
}, "de_UpdateIPSetCommand");
|
|
3509
|
-
var de_UpdateIPSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3510
|
-
const parsedOutput = {
|
|
3511
|
-
...output,
|
|
3512
|
-
body: await parseErrorBody(output.body, context)
|
|
3513
|
-
};
|
|
3514
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3515
|
-
switch (errorCode) {
|
|
3516
|
-
case "WAFDuplicateItemException":
|
|
3517
|
-
case "com.amazonaws.wafv2#WAFDuplicateItemException":
|
|
3518
|
-
throw await de_WAFDuplicateItemExceptionRes(parsedOutput, context);
|
|
3519
|
-
case "WAFInternalErrorException":
|
|
3520
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
3521
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
3522
|
-
case "WAFInvalidOperationException":
|
|
3523
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
3524
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
3525
|
-
case "WAFInvalidParameterException":
|
|
3526
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
3527
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
3528
|
-
case "WAFLimitsExceededException":
|
|
3529
|
-
case "com.amazonaws.wafv2#WAFLimitsExceededException":
|
|
3530
|
-
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
3531
|
-
case "WAFNonexistentItemException":
|
|
3532
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
3533
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
3534
|
-
case "WAFOptimisticLockException":
|
|
3535
|
-
case "com.amazonaws.wafv2#WAFOptimisticLockException":
|
|
3536
|
-
throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
|
|
3537
|
-
default:
|
|
3538
|
-
const parsedBody = parsedOutput.body;
|
|
3539
|
-
return throwDefaultError({
|
|
3540
|
-
output,
|
|
3541
|
-
parsedBody,
|
|
3542
|
-
errorCode
|
|
3543
|
-
});
|
|
3544
|
-
}
|
|
3545
|
-
}, "de_UpdateIPSetCommandError");
|
|
3546
2012
|
var de_UpdateManagedRuleSetVersionExpiryDateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3547
2013
|
if (output.statusCode >= 300) {
|
|
3548
|
-
return
|
|
2014
|
+
return de_CommandError(output, context);
|
|
3549
2015
|
}
|
|
3550
2016
|
const data = await parseBody(output.body, context);
|
|
3551
2017
|
let contents = {};
|
|
@@ -3556,40 +2022,9 @@ var de_UpdateManagedRuleSetVersionExpiryDateCommand = /* @__PURE__ */ __name(asy
|
|
|
3556
2022
|
};
|
|
3557
2023
|
return response;
|
|
3558
2024
|
}, "de_UpdateManagedRuleSetVersionExpiryDateCommand");
|
|
3559
|
-
var de_UpdateManagedRuleSetVersionExpiryDateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3560
|
-
const parsedOutput = {
|
|
3561
|
-
...output,
|
|
3562
|
-
body: await parseErrorBody(output.body, context)
|
|
3563
|
-
};
|
|
3564
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3565
|
-
switch (errorCode) {
|
|
3566
|
-
case "WAFInternalErrorException":
|
|
3567
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
3568
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
3569
|
-
case "WAFInvalidOperationException":
|
|
3570
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
3571
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
3572
|
-
case "WAFInvalidParameterException":
|
|
3573
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
3574
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
3575
|
-
case "WAFNonexistentItemException":
|
|
3576
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
3577
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
3578
|
-
case "WAFOptimisticLockException":
|
|
3579
|
-
case "com.amazonaws.wafv2#WAFOptimisticLockException":
|
|
3580
|
-
throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
|
|
3581
|
-
default:
|
|
3582
|
-
const parsedBody = parsedOutput.body;
|
|
3583
|
-
return throwDefaultError({
|
|
3584
|
-
output,
|
|
3585
|
-
parsedBody,
|
|
3586
|
-
errorCode
|
|
3587
|
-
});
|
|
3588
|
-
}
|
|
3589
|
-
}, "de_UpdateManagedRuleSetVersionExpiryDateCommandError");
|
|
3590
2025
|
var de_UpdateRegexPatternSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3591
2026
|
if (output.statusCode >= 300) {
|
|
3592
|
-
return
|
|
2027
|
+
return de_CommandError(output, context);
|
|
3593
2028
|
}
|
|
3594
2029
|
const data = await parseBody(output.body, context);
|
|
3595
2030
|
let contents = {};
|
|
@@ -3600,46 +2035,9 @@ var de_UpdateRegexPatternSetCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
3600
2035
|
};
|
|
3601
2036
|
return response;
|
|
3602
2037
|
}, "de_UpdateRegexPatternSetCommand");
|
|
3603
|
-
var de_UpdateRegexPatternSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3604
|
-
const parsedOutput = {
|
|
3605
|
-
...output,
|
|
3606
|
-
body: await parseErrorBody(output.body, context)
|
|
3607
|
-
};
|
|
3608
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3609
|
-
switch (errorCode) {
|
|
3610
|
-
case "WAFDuplicateItemException":
|
|
3611
|
-
case "com.amazonaws.wafv2#WAFDuplicateItemException":
|
|
3612
|
-
throw await de_WAFDuplicateItemExceptionRes(parsedOutput, context);
|
|
3613
|
-
case "WAFInternalErrorException":
|
|
3614
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
3615
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
3616
|
-
case "WAFInvalidOperationException":
|
|
3617
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
3618
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
3619
|
-
case "WAFInvalidParameterException":
|
|
3620
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
3621
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
3622
|
-
case "WAFLimitsExceededException":
|
|
3623
|
-
case "com.amazonaws.wafv2#WAFLimitsExceededException":
|
|
3624
|
-
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
3625
|
-
case "WAFNonexistentItemException":
|
|
3626
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
3627
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
3628
|
-
case "WAFOptimisticLockException":
|
|
3629
|
-
case "com.amazonaws.wafv2#WAFOptimisticLockException":
|
|
3630
|
-
throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
|
|
3631
|
-
default:
|
|
3632
|
-
const parsedBody = parsedOutput.body;
|
|
3633
|
-
return throwDefaultError({
|
|
3634
|
-
output,
|
|
3635
|
-
parsedBody,
|
|
3636
|
-
errorCode
|
|
3637
|
-
});
|
|
3638
|
-
}
|
|
3639
|
-
}, "de_UpdateRegexPatternSetCommandError");
|
|
3640
2038
|
var de_UpdateRuleGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3641
2039
|
if (output.statusCode >= 300) {
|
|
3642
|
-
return
|
|
2040
|
+
return de_CommandError(output, context);
|
|
3643
2041
|
}
|
|
3644
2042
|
const data = await parseBody(output.body, context);
|
|
3645
2043
|
let contents = {};
|
|
@@ -3650,55 +2048,9 @@ var de_UpdateRuleGroupCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
3650
2048
|
};
|
|
3651
2049
|
return response;
|
|
3652
2050
|
}, "de_UpdateRuleGroupCommand");
|
|
3653
|
-
var de_UpdateRuleGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3654
|
-
const parsedOutput = {
|
|
3655
|
-
...output,
|
|
3656
|
-
body: await parseErrorBody(output.body, context)
|
|
3657
|
-
};
|
|
3658
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3659
|
-
switch (errorCode) {
|
|
3660
|
-
case "WAFConfigurationWarningException":
|
|
3661
|
-
case "com.amazonaws.wafv2#WAFConfigurationWarningException":
|
|
3662
|
-
throw await de_WAFConfigurationWarningExceptionRes(parsedOutput, context);
|
|
3663
|
-
case "WAFDuplicateItemException":
|
|
3664
|
-
case "com.amazonaws.wafv2#WAFDuplicateItemException":
|
|
3665
|
-
throw await de_WAFDuplicateItemExceptionRes(parsedOutput, context);
|
|
3666
|
-
case "WAFInternalErrorException":
|
|
3667
|
-
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
3668
|
-
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
3669
|
-
case "WAFInvalidOperationException":
|
|
3670
|
-
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
3671
|
-
throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
|
|
3672
|
-
case "WAFInvalidParameterException":
|
|
3673
|
-
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
3674
|
-
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
3675
|
-
case "WAFLimitsExceededException":
|
|
3676
|
-
case "com.amazonaws.wafv2#WAFLimitsExceededException":
|
|
3677
|
-
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
3678
|
-
case "WAFNonexistentItemException":
|
|
3679
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
3680
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
3681
|
-
case "WAFOptimisticLockException":
|
|
3682
|
-
case "com.amazonaws.wafv2#WAFOptimisticLockException":
|
|
3683
|
-
throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
|
|
3684
|
-
case "WAFSubscriptionNotFoundException":
|
|
3685
|
-
case "com.amazonaws.wafv2#WAFSubscriptionNotFoundException":
|
|
3686
|
-
throw await de_WAFSubscriptionNotFoundExceptionRes(parsedOutput, context);
|
|
3687
|
-
case "WAFUnavailableEntityException":
|
|
3688
|
-
case "com.amazonaws.wafv2#WAFUnavailableEntityException":
|
|
3689
|
-
throw await de_WAFUnavailableEntityExceptionRes(parsedOutput, context);
|
|
3690
|
-
default:
|
|
3691
|
-
const parsedBody = parsedOutput.body;
|
|
3692
|
-
return throwDefaultError({
|
|
3693
|
-
output,
|
|
3694
|
-
parsedBody,
|
|
3695
|
-
errorCode
|
|
3696
|
-
});
|
|
3697
|
-
}
|
|
3698
|
-
}, "de_UpdateRuleGroupCommandError");
|
|
3699
2051
|
var de_UpdateWebACLCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3700
2052
|
if (output.statusCode >= 300) {
|
|
3701
|
-
return
|
|
2053
|
+
return de_CommandError(output, context);
|
|
3702
2054
|
}
|
|
3703
2055
|
const data = await parseBody(output.body, context);
|
|
3704
2056
|
let contents = {};
|
|
@@ -3709,22 +2061,13 @@ var de_UpdateWebACLCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3709
2061
|
};
|
|
3710
2062
|
return response;
|
|
3711
2063
|
}, "de_UpdateWebACLCommand");
|
|
3712
|
-
var
|
|
2064
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3713
2065
|
const parsedOutput = {
|
|
3714
2066
|
...output,
|
|
3715
2067
|
body: await parseErrorBody(output.body, context)
|
|
3716
2068
|
};
|
|
3717
2069
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3718
2070
|
switch (errorCode) {
|
|
3719
|
-
case "WAFConfigurationWarningException":
|
|
3720
|
-
case "com.amazonaws.wafv2#WAFConfigurationWarningException":
|
|
3721
|
-
throw await de_WAFConfigurationWarningExceptionRes(parsedOutput, context);
|
|
3722
|
-
case "WAFDuplicateItemException":
|
|
3723
|
-
case "com.amazonaws.wafv2#WAFDuplicateItemException":
|
|
3724
|
-
throw await de_WAFDuplicateItemExceptionRes(parsedOutput, context);
|
|
3725
|
-
case "WAFExpiredManagedRuleGroupVersionException":
|
|
3726
|
-
case "com.amazonaws.wafv2#WAFExpiredManagedRuleGroupVersionException":
|
|
3727
|
-
throw await de_WAFExpiredManagedRuleGroupVersionExceptionRes(parsedOutput, context);
|
|
3728
2071
|
case "WAFInternalErrorException":
|
|
3729
2072
|
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
3730
2073
|
throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
|
|
@@ -3734,24 +2077,54 @@ var de_UpdateWebACLCommandError = /* @__PURE__ */ __name(async (output, context)
|
|
|
3734
2077
|
case "WAFInvalidParameterException":
|
|
3735
2078
|
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
3736
2079
|
throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
|
|
2080
|
+
case "WAFNonexistentItemException":
|
|
2081
|
+
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
2082
|
+
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
2083
|
+
case "WAFUnavailableEntityException":
|
|
2084
|
+
case "com.amazonaws.wafv2#WAFUnavailableEntityException":
|
|
2085
|
+
throw await de_WAFUnavailableEntityExceptionRes(parsedOutput, context);
|
|
2086
|
+
case "WAFExpiredManagedRuleGroupVersionException":
|
|
2087
|
+
case "com.amazonaws.wafv2#WAFExpiredManagedRuleGroupVersionException":
|
|
2088
|
+
throw await de_WAFExpiredManagedRuleGroupVersionExceptionRes(parsedOutput, context);
|
|
3737
2089
|
case "WAFInvalidResourceException":
|
|
3738
2090
|
case "com.amazonaws.wafv2#WAFInvalidResourceException":
|
|
3739
2091
|
throw await de_WAFInvalidResourceExceptionRes(parsedOutput, context);
|
|
3740
2092
|
case "WAFLimitsExceededException":
|
|
3741
2093
|
case "com.amazonaws.wafv2#WAFLimitsExceededException":
|
|
3742
2094
|
throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
|
|
3743
|
-
case "WAFNonexistentItemException":
|
|
3744
|
-
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
3745
|
-
throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
|
|
3746
|
-
case "WAFOptimisticLockException":
|
|
3747
|
-
case "com.amazonaws.wafv2#WAFOptimisticLockException":
|
|
3748
|
-
throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
|
|
3749
2095
|
case "WAFSubscriptionNotFoundException":
|
|
3750
2096
|
case "com.amazonaws.wafv2#WAFSubscriptionNotFoundException":
|
|
3751
2097
|
throw await de_WAFSubscriptionNotFoundExceptionRes(parsedOutput, context);
|
|
3752
|
-
case "
|
|
3753
|
-
case "com.amazonaws.wafv2#
|
|
3754
|
-
throw await
|
|
2098
|
+
case "WAFDuplicateItemException":
|
|
2099
|
+
case "com.amazonaws.wafv2#WAFDuplicateItemException":
|
|
2100
|
+
throw await de_WAFDuplicateItemExceptionRes(parsedOutput, context);
|
|
2101
|
+
case "WAFOptimisticLockException":
|
|
2102
|
+
case "com.amazonaws.wafv2#WAFOptimisticLockException":
|
|
2103
|
+
throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
|
|
2104
|
+
case "WAFTagOperationException":
|
|
2105
|
+
case "com.amazonaws.wafv2#WAFTagOperationException":
|
|
2106
|
+
throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
|
|
2107
|
+
case "WAFTagOperationInternalErrorException":
|
|
2108
|
+
case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException":
|
|
2109
|
+
throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
|
|
2110
|
+
case "WAFConfigurationWarningException":
|
|
2111
|
+
case "com.amazonaws.wafv2#WAFConfigurationWarningException":
|
|
2112
|
+
throw await de_WAFConfigurationWarningExceptionRes(parsedOutput, context);
|
|
2113
|
+
case "WAFAssociatedItemException":
|
|
2114
|
+
case "com.amazonaws.wafv2#WAFAssociatedItemException":
|
|
2115
|
+
throw await de_WAFAssociatedItemExceptionRes(parsedOutput, context);
|
|
2116
|
+
case "WAFUnsupportedAggregateKeyTypeException":
|
|
2117
|
+
case "com.amazonaws.wafv2#WAFUnsupportedAggregateKeyTypeException":
|
|
2118
|
+
throw await de_WAFUnsupportedAggregateKeyTypeExceptionRes(parsedOutput, context);
|
|
2119
|
+
case "WAFLogDestinationPermissionIssueException":
|
|
2120
|
+
case "com.amazonaws.wafv2#WAFLogDestinationPermissionIssueException":
|
|
2121
|
+
throw await de_WAFLogDestinationPermissionIssueExceptionRes(parsedOutput, context);
|
|
2122
|
+
case "WAFServiceLinkedRoleErrorException":
|
|
2123
|
+
case "com.amazonaws.wafv2#WAFServiceLinkedRoleErrorException":
|
|
2124
|
+
throw await de_WAFServiceLinkedRoleErrorExceptionRes(parsedOutput, context);
|
|
2125
|
+
case "WAFInvalidPermissionPolicyException":
|
|
2126
|
+
case "com.amazonaws.wafv2#WAFInvalidPermissionPolicyException":
|
|
2127
|
+
throw await de_WAFInvalidPermissionPolicyExceptionRes(parsedOutput, context);
|
|
3755
2128
|
default:
|
|
3756
2129
|
const parsedBody = parsedOutput.body;
|
|
3757
2130
|
return throwDefaultError({
|
|
@@ -3760,7 +2133,7 @@ var de_UpdateWebACLCommandError = /* @__PURE__ */ __name(async (output, context)
|
|
|
3760
2133
|
errorCode
|
|
3761
2134
|
});
|
|
3762
2135
|
}
|
|
3763
|
-
}, "
|
|
2136
|
+
}, "de_CommandError");
|
|
3764
2137
|
var de_WAFAssociatedItemExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
3765
2138
|
const body = parsedOutput.body;
|
|
3766
2139
|
const deserialized = (0, import_smithy_client._json)(body);
|