@aws-sdk/client-vpc-lattice 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 +108 -1755
- package/dist-es/protocols/Aws_restJson1.js +85 -1732
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -1384,7 +1384,7 @@ var se_UpdateTargetGroupCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
1384
1384
|
}, "se_UpdateTargetGroupCommand");
|
|
1385
1385
|
var de_BatchUpdateRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1386
1386
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1387
|
-
return
|
|
1387
|
+
return de_CommandError(output, context);
|
|
1388
1388
|
}
|
|
1389
1389
|
const contents = (0, import_smithy_client.map)({
|
|
1390
1390
|
$metadata: deserializeMetadata(output)
|
|
@@ -1397,43 +1397,9 @@ var de_BatchUpdateRuleCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1397
1397
|
Object.assign(contents, doc);
|
|
1398
1398
|
return contents;
|
|
1399
1399
|
}, "de_BatchUpdateRuleCommand");
|
|
1400
|
-
var de_BatchUpdateRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1401
|
-
const parsedOutput = {
|
|
1402
|
-
...output,
|
|
1403
|
-
body: await parseErrorBody(output.body, context)
|
|
1404
|
-
};
|
|
1405
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1406
|
-
switch (errorCode) {
|
|
1407
|
-
case "AccessDeniedException":
|
|
1408
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
1409
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1410
|
-
case "ConflictException":
|
|
1411
|
-
case "com.amazonaws.vpclattice#ConflictException":
|
|
1412
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1413
|
-
case "InternalServerException":
|
|
1414
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
1415
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1416
|
-
case "ResourceNotFoundException":
|
|
1417
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
1418
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1419
|
-
case "ThrottlingException":
|
|
1420
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
1421
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1422
|
-
case "ValidationException":
|
|
1423
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
1424
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1425
|
-
default:
|
|
1426
|
-
const parsedBody = parsedOutput.body;
|
|
1427
|
-
return throwDefaultError({
|
|
1428
|
-
output,
|
|
1429
|
-
parsedBody,
|
|
1430
|
-
errorCode
|
|
1431
|
-
});
|
|
1432
|
-
}
|
|
1433
|
-
}, "de_BatchUpdateRuleCommandError");
|
|
1434
1400
|
var de_CreateAccessLogSubscriptionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1435
1401
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1436
|
-
return
|
|
1402
|
+
return de_CommandError(output, context);
|
|
1437
1403
|
}
|
|
1438
1404
|
const contents = (0, import_smithy_client.map)({
|
|
1439
1405
|
$metadata: deserializeMetadata(output)
|
|
@@ -1449,43 +1415,9 @@ var de_CreateAccessLogSubscriptionCommand = /* @__PURE__ */ __name(async (output
|
|
|
1449
1415
|
Object.assign(contents, doc);
|
|
1450
1416
|
return contents;
|
|
1451
1417
|
}, "de_CreateAccessLogSubscriptionCommand");
|
|
1452
|
-
var de_CreateAccessLogSubscriptionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1453
|
-
const parsedOutput = {
|
|
1454
|
-
...output,
|
|
1455
|
-
body: await parseErrorBody(output.body, context)
|
|
1456
|
-
};
|
|
1457
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1458
|
-
switch (errorCode) {
|
|
1459
|
-
case "AccessDeniedException":
|
|
1460
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
1461
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1462
|
-
case "ConflictException":
|
|
1463
|
-
case "com.amazonaws.vpclattice#ConflictException":
|
|
1464
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1465
|
-
case "InternalServerException":
|
|
1466
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
1467
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1468
|
-
case "ResourceNotFoundException":
|
|
1469
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
1470
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1471
|
-
case "ThrottlingException":
|
|
1472
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
1473
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1474
|
-
case "ValidationException":
|
|
1475
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
1476
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1477
|
-
default:
|
|
1478
|
-
const parsedBody = parsedOutput.body;
|
|
1479
|
-
return throwDefaultError({
|
|
1480
|
-
output,
|
|
1481
|
-
parsedBody,
|
|
1482
|
-
errorCode
|
|
1483
|
-
});
|
|
1484
|
-
}
|
|
1485
|
-
}, "de_CreateAccessLogSubscriptionCommandError");
|
|
1486
1418
|
var de_CreateListenerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1487
1419
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1488
|
-
return
|
|
1420
|
+
return de_CommandError(output, context);
|
|
1489
1421
|
}
|
|
1490
1422
|
const contents = (0, import_smithy_client.map)({
|
|
1491
1423
|
$metadata: deserializeMetadata(output)
|
|
@@ -1504,46 +1436,9 @@ var de_CreateListenerCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1504
1436
|
Object.assign(contents, doc);
|
|
1505
1437
|
return contents;
|
|
1506
1438
|
}, "de_CreateListenerCommand");
|
|
1507
|
-
var de_CreateListenerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1508
|
-
const parsedOutput = {
|
|
1509
|
-
...output,
|
|
1510
|
-
body: await parseErrorBody(output.body, context)
|
|
1511
|
-
};
|
|
1512
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1513
|
-
switch (errorCode) {
|
|
1514
|
-
case "AccessDeniedException":
|
|
1515
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
1516
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1517
|
-
case "ConflictException":
|
|
1518
|
-
case "com.amazonaws.vpclattice#ConflictException":
|
|
1519
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1520
|
-
case "InternalServerException":
|
|
1521
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
1522
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1523
|
-
case "ResourceNotFoundException":
|
|
1524
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
1525
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1526
|
-
case "ServiceQuotaExceededException":
|
|
1527
|
-
case "com.amazonaws.vpclattice#ServiceQuotaExceededException":
|
|
1528
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1529
|
-
case "ThrottlingException":
|
|
1530
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
1531
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1532
|
-
case "ValidationException":
|
|
1533
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
1534
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1535
|
-
default:
|
|
1536
|
-
const parsedBody = parsedOutput.body;
|
|
1537
|
-
return throwDefaultError({
|
|
1538
|
-
output,
|
|
1539
|
-
parsedBody,
|
|
1540
|
-
errorCode
|
|
1541
|
-
});
|
|
1542
|
-
}
|
|
1543
|
-
}, "de_CreateListenerCommandError");
|
|
1544
1439
|
var de_CreateRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1545
1440
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1546
|
-
return
|
|
1441
|
+
return de_CommandError(output, context);
|
|
1547
1442
|
}
|
|
1548
1443
|
const contents = (0, import_smithy_client.map)({
|
|
1549
1444
|
$metadata: deserializeMetadata(output)
|
|
@@ -1560,46 +1455,9 @@ var de_CreateRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1560
1455
|
Object.assign(contents, doc);
|
|
1561
1456
|
return contents;
|
|
1562
1457
|
}, "de_CreateRuleCommand");
|
|
1563
|
-
var de_CreateRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1564
|
-
const parsedOutput = {
|
|
1565
|
-
...output,
|
|
1566
|
-
body: await parseErrorBody(output.body, context)
|
|
1567
|
-
};
|
|
1568
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1569
|
-
switch (errorCode) {
|
|
1570
|
-
case "AccessDeniedException":
|
|
1571
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
1572
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1573
|
-
case "ConflictException":
|
|
1574
|
-
case "com.amazonaws.vpclattice#ConflictException":
|
|
1575
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1576
|
-
case "InternalServerException":
|
|
1577
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
1578
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1579
|
-
case "ResourceNotFoundException":
|
|
1580
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
1581
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1582
|
-
case "ServiceQuotaExceededException":
|
|
1583
|
-
case "com.amazonaws.vpclattice#ServiceQuotaExceededException":
|
|
1584
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1585
|
-
case "ThrottlingException":
|
|
1586
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
1587
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1588
|
-
case "ValidationException":
|
|
1589
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
1590
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1591
|
-
default:
|
|
1592
|
-
const parsedBody = parsedOutput.body;
|
|
1593
|
-
return throwDefaultError({
|
|
1594
|
-
output,
|
|
1595
|
-
parsedBody,
|
|
1596
|
-
errorCode
|
|
1597
|
-
});
|
|
1598
|
-
}
|
|
1599
|
-
}, "de_CreateRuleCommandError");
|
|
1600
1458
|
var de_CreateServiceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1601
1459
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1602
|
-
return
|
|
1460
|
+
return de_CommandError(output, context);
|
|
1603
1461
|
}
|
|
1604
1462
|
const contents = (0, import_smithy_client.map)({
|
|
1605
1463
|
$metadata: deserializeMetadata(output)
|
|
@@ -1618,46 +1476,9 @@ var de_CreateServiceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1618
1476
|
Object.assign(contents, doc);
|
|
1619
1477
|
return contents;
|
|
1620
1478
|
}, "de_CreateServiceCommand");
|
|
1621
|
-
var de_CreateServiceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1622
|
-
const parsedOutput = {
|
|
1623
|
-
...output,
|
|
1624
|
-
body: await parseErrorBody(output.body, context)
|
|
1625
|
-
};
|
|
1626
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1627
|
-
switch (errorCode) {
|
|
1628
|
-
case "AccessDeniedException":
|
|
1629
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
1630
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1631
|
-
case "ConflictException":
|
|
1632
|
-
case "com.amazonaws.vpclattice#ConflictException":
|
|
1633
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1634
|
-
case "InternalServerException":
|
|
1635
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
1636
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1637
|
-
case "ResourceNotFoundException":
|
|
1638
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
1639
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1640
|
-
case "ServiceQuotaExceededException":
|
|
1641
|
-
case "com.amazonaws.vpclattice#ServiceQuotaExceededException":
|
|
1642
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1643
|
-
case "ThrottlingException":
|
|
1644
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
1645
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1646
|
-
case "ValidationException":
|
|
1647
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
1648
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1649
|
-
default:
|
|
1650
|
-
const parsedBody = parsedOutput.body;
|
|
1651
|
-
return throwDefaultError({
|
|
1652
|
-
output,
|
|
1653
|
-
parsedBody,
|
|
1654
|
-
errorCode
|
|
1655
|
-
});
|
|
1656
|
-
}
|
|
1657
|
-
}, "de_CreateServiceCommandError");
|
|
1658
1479
|
var de_CreateServiceNetworkCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1659
1480
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1660
|
-
return
|
|
1481
|
+
return de_CommandError(output, context);
|
|
1661
1482
|
}
|
|
1662
1483
|
const contents = (0, import_smithy_client.map)({
|
|
1663
1484
|
$metadata: deserializeMetadata(output)
|
|
@@ -1672,46 +1493,9 @@ var de_CreateServiceNetworkCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1672
1493
|
Object.assign(contents, doc);
|
|
1673
1494
|
return contents;
|
|
1674
1495
|
}, "de_CreateServiceNetworkCommand");
|
|
1675
|
-
var de_CreateServiceNetworkCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1676
|
-
const parsedOutput = {
|
|
1677
|
-
...output,
|
|
1678
|
-
body: await parseErrorBody(output.body, context)
|
|
1679
|
-
};
|
|
1680
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1681
|
-
switch (errorCode) {
|
|
1682
|
-
case "AccessDeniedException":
|
|
1683
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
1684
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1685
|
-
case "ConflictException":
|
|
1686
|
-
case "com.amazonaws.vpclattice#ConflictException":
|
|
1687
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1688
|
-
case "InternalServerException":
|
|
1689
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
1690
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1691
|
-
case "ResourceNotFoundException":
|
|
1692
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
1693
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1694
|
-
case "ServiceQuotaExceededException":
|
|
1695
|
-
case "com.amazonaws.vpclattice#ServiceQuotaExceededException":
|
|
1696
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1697
|
-
case "ThrottlingException":
|
|
1698
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
1699
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1700
|
-
case "ValidationException":
|
|
1701
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
1702
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1703
|
-
default:
|
|
1704
|
-
const parsedBody = parsedOutput.body;
|
|
1705
|
-
return throwDefaultError({
|
|
1706
|
-
output,
|
|
1707
|
-
parsedBody,
|
|
1708
|
-
errorCode
|
|
1709
|
-
});
|
|
1710
|
-
}
|
|
1711
|
-
}, "de_CreateServiceNetworkCommandError");
|
|
1712
1496
|
var de_CreateServiceNetworkServiceAssociationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1713
1497
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1714
|
-
return
|
|
1498
|
+
return de_CommandError(output, context);
|
|
1715
1499
|
}
|
|
1716
1500
|
const contents = (0, import_smithy_client.map)({
|
|
1717
1501
|
$metadata: deserializeMetadata(output)
|
|
@@ -1728,46 +1512,9 @@ var de_CreateServiceNetworkServiceAssociationCommand = /* @__PURE__ */ __name(as
|
|
|
1728
1512
|
Object.assign(contents, doc);
|
|
1729
1513
|
return contents;
|
|
1730
1514
|
}, "de_CreateServiceNetworkServiceAssociationCommand");
|
|
1731
|
-
var de_CreateServiceNetworkServiceAssociationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1732
|
-
const parsedOutput = {
|
|
1733
|
-
...output,
|
|
1734
|
-
body: await parseErrorBody(output.body, context)
|
|
1735
|
-
};
|
|
1736
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1737
|
-
switch (errorCode) {
|
|
1738
|
-
case "AccessDeniedException":
|
|
1739
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
1740
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1741
|
-
case "ConflictException":
|
|
1742
|
-
case "com.amazonaws.vpclattice#ConflictException":
|
|
1743
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1744
|
-
case "InternalServerException":
|
|
1745
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
1746
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1747
|
-
case "ResourceNotFoundException":
|
|
1748
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
1749
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1750
|
-
case "ServiceQuotaExceededException":
|
|
1751
|
-
case "com.amazonaws.vpclattice#ServiceQuotaExceededException":
|
|
1752
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1753
|
-
case "ThrottlingException":
|
|
1754
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
1755
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1756
|
-
case "ValidationException":
|
|
1757
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
1758
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1759
|
-
default:
|
|
1760
|
-
const parsedBody = parsedOutput.body;
|
|
1761
|
-
return throwDefaultError({
|
|
1762
|
-
output,
|
|
1763
|
-
parsedBody,
|
|
1764
|
-
errorCode
|
|
1765
|
-
});
|
|
1766
|
-
}
|
|
1767
|
-
}, "de_CreateServiceNetworkServiceAssociationCommandError");
|
|
1768
1515
|
var de_CreateServiceNetworkVpcAssociationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1769
1516
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1770
|
-
return
|
|
1517
|
+
return de_CommandError(output, context);
|
|
1771
1518
|
}
|
|
1772
1519
|
const contents = (0, import_smithy_client.map)({
|
|
1773
1520
|
$metadata: deserializeMetadata(output)
|
|
@@ -1783,46 +1530,9 @@ var de_CreateServiceNetworkVpcAssociationCommand = /* @__PURE__ */ __name(async
|
|
|
1783
1530
|
Object.assign(contents, doc);
|
|
1784
1531
|
return contents;
|
|
1785
1532
|
}, "de_CreateServiceNetworkVpcAssociationCommand");
|
|
1786
|
-
var de_CreateServiceNetworkVpcAssociationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1787
|
-
const parsedOutput = {
|
|
1788
|
-
...output,
|
|
1789
|
-
body: await parseErrorBody(output.body, context)
|
|
1790
|
-
};
|
|
1791
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1792
|
-
switch (errorCode) {
|
|
1793
|
-
case "AccessDeniedException":
|
|
1794
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
1795
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1796
|
-
case "ConflictException":
|
|
1797
|
-
case "com.amazonaws.vpclattice#ConflictException":
|
|
1798
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1799
|
-
case "InternalServerException":
|
|
1800
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
1801
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1802
|
-
case "ResourceNotFoundException":
|
|
1803
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
1804
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1805
|
-
case "ServiceQuotaExceededException":
|
|
1806
|
-
case "com.amazonaws.vpclattice#ServiceQuotaExceededException":
|
|
1807
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1808
|
-
case "ThrottlingException":
|
|
1809
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
1810
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1811
|
-
case "ValidationException":
|
|
1812
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
1813
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1814
|
-
default:
|
|
1815
|
-
const parsedBody = parsedOutput.body;
|
|
1816
|
-
return throwDefaultError({
|
|
1817
|
-
output,
|
|
1818
|
-
parsedBody,
|
|
1819
|
-
errorCode
|
|
1820
|
-
});
|
|
1821
|
-
}
|
|
1822
|
-
}, "de_CreateServiceNetworkVpcAssociationCommandError");
|
|
1823
1533
|
var de_CreateTargetGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1824
1534
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1825
|
-
return
|
|
1535
|
+
return de_CommandError(output, context);
|
|
1826
1536
|
}
|
|
1827
1537
|
const contents = (0, import_smithy_client.map)({
|
|
1828
1538
|
$metadata: deserializeMetadata(output)
|
|
@@ -1839,46 +1549,9 @@ var de_CreateTargetGroupCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1839
1549
|
Object.assign(contents, doc);
|
|
1840
1550
|
return contents;
|
|
1841
1551
|
}, "de_CreateTargetGroupCommand");
|
|
1842
|
-
var de_CreateTargetGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1843
|
-
const parsedOutput = {
|
|
1844
|
-
...output,
|
|
1845
|
-
body: await parseErrorBody(output.body, context)
|
|
1846
|
-
};
|
|
1847
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1848
|
-
switch (errorCode) {
|
|
1849
|
-
case "AccessDeniedException":
|
|
1850
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
1851
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1852
|
-
case "ConflictException":
|
|
1853
|
-
case "com.amazonaws.vpclattice#ConflictException":
|
|
1854
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1855
|
-
case "InternalServerException":
|
|
1856
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
1857
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1858
|
-
case "ResourceNotFoundException":
|
|
1859
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
1860
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1861
|
-
case "ServiceQuotaExceededException":
|
|
1862
|
-
case "com.amazonaws.vpclattice#ServiceQuotaExceededException":
|
|
1863
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1864
|
-
case "ThrottlingException":
|
|
1865
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
1866
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1867
|
-
case "ValidationException":
|
|
1868
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
1869
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1870
|
-
default:
|
|
1871
|
-
const parsedBody = parsedOutput.body;
|
|
1872
|
-
return throwDefaultError({
|
|
1873
|
-
output,
|
|
1874
|
-
parsedBody,
|
|
1875
|
-
errorCode
|
|
1876
|
-
});
|
|
1877
|
-
}
|
|
1878
|
-
}, "de_CreateTargetGroupCommandError");
|
|
1879
1552
|
var de_DeleteAccessLogSubscriptionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1880
1553
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1881
|
-
return
|
|
1554
|
+
return de_CommandError(output, context);
|
|
1882
1555
|
}
|
|
1883
1556
|
const contents = (0, import_smithy_client.map)({
|
|
1884
1557
|
$metadata: deserializeMetadata(output)
|
|
@@ -1886,40 +1559,9 @@ var de_DeleteAccessLogSubscriptionCommand = /* @__PURE__ */ __name(async (output
|
|
|
1886
1559
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1887
1560
|
return contents;
|
|
1888
1561
|
}, "de_DeleteAccessLogSubscriptionCommand");
|
|
1889
|
-
var de_DeleteAccessLogSubscriptionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1890
|
-
const parsedOutput = {
|
|
1891
|
-
...output,
|
|
1892
|
-
body: await parseErrorBody(output.body, context)
|
|
1893
|
-
};
|
|
1894
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1895
|
-
switch (errorCode) {
|
|
1896
|
-
case "AccessDeniedException":
|
|
1897
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
1898
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1899
|
-
case "InternalServerException":
|
|
1900
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
1901
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1902
|
-
case "ResourceNotFoundException":
|
|
1903
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
1904
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1905
|
-
case "ThrottlingException":
|
|
1906
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
1907
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1908
|
-
case "ValidationException":
|
|
1909
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
1910
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1911
|
-
default:
|
|
1912
|
-
const parsedBody = parsedOutput.body;
|
|
1913
|
-
return throwDefaultError({
|
|
1914
|
-
output,
|
|
1915
|
-
parsedBody,
|
|
1916
|
-
errorCode
|
|
1917
|
-
});
|
|
1918
|
-
}
|
|
1919
|
-
}, "de_DeleteAccessLogSubscriptionCommandError");
|
|
1920
1562
|
var de_DeleteAuthPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1921
1563
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1922
|
-
return
|
|
1564
|
+
return de_CommandError(output, context);
|
|
1923
1565
|
}
|
|
1924
1566
|
const contents = (0, import_smithy_client.map)({
|
|
1925
1567
|
$metadata: deserializeMetadata(output)
|
|
@@ -1927,40 +1569,9 @@ var de_DeleteAuthPolicyCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1927
1569
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1928
1570
|
return contents;
|
|
1929
1571
|
}, "de_DeleteAuthPolicyCommand");
|
|
1930
|
-
var de_DeleteAuthPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1931
|
-
const parsedOutput = {
|
|
1932
|
-
...output,
|
|
1933
|
-
body: await parseErrorBody(output.body, context)
|
|
1934
|
-
};
|
|
1935
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1936
|
-
switch (errorCode) {
|
|
1937
|
-
case "AccessDeniedException":
|
|
1938
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
1939
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1940
|
-
case "InternalServerException":
|
|
1941
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
1942
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1943
|
-
case "ResourceNotFoundException":
|
|
1944
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
1945
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1946
|
-
case "ThrottlingException":
|
|
1947
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
1948
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1949
|
-
case "ValidationException":
|
|
1950
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
1951
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1952
|
-
default:
|
|
1953
|
-
const parsedBody = parsedOutput.body;
|
|
1954
|
-
return throwDefaultError({
|
|
1955
|
-
output,
|
|
1956
|
-
parsedBody,
|
|
1957
|
-
errorCode
|
|
1958
|
-
});
|
|
1959
|
-
}
|
|
1960
|
-
}, "de_DeleteAuthPolicyCommandError");
|
|
1961
1572
|
var de_DeleteListenerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1962
1573
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1963
|
-
return
|
|
1574
|
+
return de_CommandError(output, context);
|
|
1964
1575
|
}
|
|
1965
1576
|
const contents = (0, import_smithy_client.map)({
|
|
1966
1577
|
$metadata: deserializeMetadata(output)
|
|
@@ -1968,43 +1579,9 @@ var de_DeleteListenerCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1968
1579
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1969
1580
|
return contents;
|
|
1970
1581
|
}, "de_DeleteListenerCommand");
|
|
1971
|
-
var de_DeleteListenerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1972
|
-
const parsedOutput = {
|
|
1973
|
-
...output,
|
|
1974
|
-
body: await parseErrorBody(output.body, context)
|
|
1975
|
-
};
|
|
1976
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1977
|
-
switch (errorCode) {
|
|
1978
|
-
case "AccessDeniedException":
|
|
1979
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
1980
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1981
|
-
case "ConflictException":
|
|
1982
|
-
case "com.amazonaws.vpclattice#ConflictException":
|
|
1983
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1984
|
-
case "InternalServerException":
|
|
1985
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
1986
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1987
|
-
case "ResourceNotFoundException":
|
|
1988
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
1989
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1990
|
-
case "ThrottlingException":
|
|
1991
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
1992
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1993
|
-
case "ValidationException":
|
|
1994
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
1995
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1996
|
-
default:
|
|
1997
|
-
const parsedBody = parsedOutput.body;
|
|
1998
|
-
return throwDefaultError({
|
|
1999
|
-
output,
|
|
2000
|
-
parsedBody,
|
|
2001
|
-
errorCode
|
|
2002
|
-
});
|
|
2003
|
-
}
|
|
2004
|
-
}, "de_DeleteListenerCommandError");
|
|
2005
1582
|
var de_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2006
1583
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2007
|
-
return
|
|
1584
|
+
return de_CommandError(output, context);
|
|
2008
1585
|
}
|
|
2009
1586
|
const contents = (0, import_smithy_client.map)({
|
|
2010
1587
|
$metadata: deserializeMetadata(output)
|
|
@@ -2012,40 +1589,9 @@ var de_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2012
1589
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2013
1590
|
return contents;
|
|
2014
1591
|
}, "de_DeleteResourcePolicyCommand");
|
|
2015
|
-
var de_DeleteResourcePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2016
|
-
const parsedOutput = {
|
|
2017
|
-
...output,
|
|
2018
|
-
body: await parseErrorBody(output.body, context)
|
|
2019
|
-
};
|
|
2020
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2021
|
-
switch (errorCode) {
|
|
2022
|
-
case "AccessDeniedException":
|
|
2023
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
2024
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2025
|
-
case "InternalServerException":
|
|
2026
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
2027
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2028
|
-
case "ResourceNotFoundException":
|
|
2029
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
2030
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2031
|
-
case "ThrottlingException":
|
|
2032
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
2033
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2034
|
-
case "ValidationException":
|
|
2035
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
2036
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2037
|
-
default:
|
|
2038
|
-
const parsedBody = parsedOutput.body;
|
|
2039
|
-
return throwDefaultError({
|
|
2040
|
-
output,
|
|
2041
|
-
parsedBody,
|
|
2042
|
-
errorCode
|
|
2043
|
-
});
|
|
2044
|
-
}
|
|
2045
|
-
}, "de_DeleteResourcePolicyCommandError");
|
|
2046
1592
|
var de_DeleteRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2047
1593
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2048
|
-
return
|
|
1594
|
+
return de_CommandError(output, context);
|
|
2049
1595
|
}
|
|
2050
1596
|
const contents = (0, import_smithy_client.map)({
|
|
2051
1597
|
$metadata: deserializeMetadata(output)
|
|
@@ -2053,43 +1599,9 @@ var de_DeleteRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2053
1599
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2054
1600
|
return contents;
|
|
2055
1601
|
}, "de_DeleteRuleCommand");
|
|
2056
|
-
var de_DeleteRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2057
|
-
const parsedOutput = {
|
|
2058
|
-
...output,
|
|
2059
|
-
body: await parseErrorBody(output.body, context)
|
|
2060
|
-
};
|
|
2061
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2062
|
-
switch (errorCode) {
|
|
2063
|
-
case "AccessDeniedException":
|
|
2064
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
2065
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2066
|
-
case "ConflictException":
|
|
2067
|
-
case "com.amazonaws.vpclattice#ConflictException":
|
|
2068
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2069
|
-
case "InternalServerException":
|
|
2070
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
2071
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2072
|
-
case "ResourceNotFoundException":
|
|
2073
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
2074
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2075
|
-
case "ThrottlingException":
|
|
2076
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
2077
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2078
|
-
case "ValidationException":
|
|
2079
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
2080
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2081
|
-
default:
|
|
2082
|
-
const parsedBody = parsedOutput.body;
|
|
2083
|
-
return throwDefaultError({
|
|
2084
|
-
output,
|
|
2085
|
-
parsedBody,
|
|
2086
|
-
errorCode
|
|
2087
|
-
});
|
|
2088
|
-
}
|
|
2089
|
-
}, "de_DeleteRuleCommandError");
|
|
2090
1602
|
var de_DeleteServiceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2091
1603
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2092
|
-
return
|
|
1604
|
+
return de_CommandError(output, context);
|
|
2093
1605
|
}
|
|
2094
1606
|
const contents = (0, import_smithy_client.map)({
|
|
2095
1607
|
$metadata: deserializeMetadata(output)
|
|
@@ -2104,43 +1616,9 @@ var de_DeleteServiceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2104
1616
|
Object.assign(contents, doc);
|
|
2105
1617
|
return contents;
|
|
2106
1618
|
}, "de_DeleteServiceCommand");
|
|
2107
|
-
var de_DeleteServiceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2108
|
-
const parsedOutput = {
|
|
2109
|
-
...output,
|
|
2110
|
-
body: await parseErrorBody(output.body, context)
|
|
2111
|
-
};
|
|
2112
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2113
|
-
switch (errorCode) {
|
|
2114
|
-
case "AccessDeniedException":
|
|
2115
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
2116
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2117
|
-
case "ConflictException":
|
|
2118
|
-
case "com.amazonaws.vpclattice#ConflictException":
|
|
2119
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2120
|
-
case "InternalServerException":
|
|
2121
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
2122
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2123
|
-
case "ResourceNotFoundException":
|
|
2124
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
2125
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2126
|
-
case "ThrottlingException":
|
|
2127
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
2128
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2129
|
-
case "ValidationException":
|
|
2130
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
2131
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2132
|
-
default:
|
|
2133
|
-
const parsedBody = parsedOutput.body;
|
|
2134
|
-
return throwDefaultError({
|
|
2135
|
-
output,
|
|
2136
|
-
parsedBody,
|
|
2137
|
-
errorCode
|
|
2138
|
-
});
|
|
2139
|
-
}
|
|
2140
|
-
}, "de_DeleteServiceCommandError");
|
|
2141
1619
|
var de_DeleteServiceNetworkCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2142
1620
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2143
|
-
return
|
|
1621
|
+
return de_CommandError(output, context);
|
|
2144
1622
|
}
|
|
2145
1623
|
const contents = (0, import_smithy_client.map)({
|
|
2146
1624
|
$metadata: deserializeMetadata(output)
|
|
@@ -2148,43 +1626,9 @@ var de_DeleteServiceNetworkCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2148
1626
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2149
1627
|
return contents;
|
|
2150
1628
|
}, "de_DeleteServiceNetworkCommand");
|
|
2151
|
-
var de_DeleteServiceNetworkCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2152
|
-
const parsedOutput = {
|
|
2153
|
-
...output,
|
|
2154
|
-
body: await parseErrorBody(output.body, context)
|
|
2155
|
-
};
|
|
2156
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2157
|
-
switch (errorCode) {
|
|
2158
|
-
case "AccessDeniedException":
|
|
2159
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
2160
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2161
|
-
case "ConflictException":
|
|
2162
|
-
case "com.amazonaws.vpclattice#ConflictException":
|
|
2163
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2164
|
-
case "InternalServerException":
|
|
2165
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
2166
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2167
|
-
case "ResourceNotFoundException":
|
|
2168
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
2169
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2170
|
-
case "ThrottlingException":
|
|
2171
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
2172
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2173
|
-
case "ValidationException":
|
|
2174
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
2175
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2176
|
-
default:
|
|
2177
|
-
const parsedBody = parsedOutput.body;
|
|
2178
|
-
return throwDefaultError({
|
|
2179
|
-
output,
|
|
2180
|
-
parsedBody,
|
|
2181
|
-
errorCode
|
|
2182
|
-
});
|
|
2183
|
-
}
|
|
2184
|
-
}, "de_DeleteServiceNetworkCommandError");
|
|
2185
1629
|
var de_DeleteServiceNetworkServiceAssociationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2186
1630
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2187
|
-
return
|
|
1631
|
+
return de_CommandError(output, context);
|
|
2188
1632
|
}
|
|
2189
1633
|
const contents = (0, import_smithy_client.map)({
|
|
2190
1634
|
$metadata: deserializeMetadata(output)
|
|
@@ -2198,43 +1642,9 @@ var de_DeleteServiceNetworkServiceAssociationCommand = /* @__PURE__ */ __name(as
|
|
|
2198
1642
|
Object.assign(contents, doc);
|
|
2199
1643
|
return contents;
|
|
2200
1644
|
}, "de_DeleteServiceNetworkServiceAssociationCommand");
|
|
2201
|
-
var de_DeleteServiceNetworkServiceAssociationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2202
|
-
const parsedOutput = {
|
|
2203
|
-
...output,
|
|
2204
|
-
body: await parseErrorBody(output.body, context)
|
|
2205
|
-
};
|
|
2206
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2207
|
-
switch (errorCode) {
|
|
2208
|
-
case "AccessDeniedException":
|
|
2209
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
2210
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2211
|
-
case "ConflictException":
|
|
2212
|
-
case "com.amazonaws.vpclattice#ConflictException":
|
|
2213
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2214
|
-
case "InternalServerException":
|
|
2215
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
2216
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2217
|
-
case "ResourceNotFoundException":
|
|
2218
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
2219
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2220
|
-
case "ThrottlingException":
|
|
2221
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
2222
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2223
|
-
case "ValidationException":
|
|
2224
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
2225
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2226
|
-
default:
|
|
2227
|
-
const parsedBody = parsedOutput.body;
|
|
2228
|
-
return throwDefaultError({
|
|
2229
|
-
output,
|
|
2230
|
-
parsedBody,
|
|
2231
|
-
errorCode
|
|
2232
|
-
});
|
|
2233
|
-
}
|
|
2234
|
-
}, "de_DeleteServiceNetworkServiceAssociationCommandError");
|
|
2235
1645
|
var de_DeleteServiceNetworkVpcAssociationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2236
1646
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2237
|
-
return
|
|
1647
|
+
return de_CommandError(output, context);
|
|
2238
1648
|
}
|
|
2239
1649
|
const contents = (0, import_smithy_client.map)({
|
|
2240
1650
|
$metadata: deserializeMetadata(output)
|
|
@@ -2248,90 +1658,25 @@ var de_DeleteServiceNetworkVpcAssociationCommand = /* @__PURE__ */ __name(async
|
|
|
2248
1658
|
Object.assign(contents, doc);
|
|
2249
1659
|
return contents;
|
|
2250
1660
|
}, "de_DeleteServiceNetworkVpcAssociationCommand");
|
|
2251
|
-
var de_DeleteServiceNetworkVpcAssociationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2252
|
-
const parsedOutput = {
|
|
2253
|
-
...output,
|
|
2254
|
-
body: await parseErrorBody(output.body, context)
|
|
2255
|
-
};
|
|
2256
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2257
|
-
switch (errorCode) {
|
|
2258
|
-
case "AccessDeniedException":
|
|
2259
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
2260
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2261
|
-
case "ConflictException":
|
|
2262
|
-
case "com.amazonaws.vpclattice#ConflictException":
|
|
2263
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2264
|
-
case "InternalServerException":
|
|
2265
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
2266
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2267
|
-
case "ResourceNotFoundException":
|
|
2268
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
2269
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2270
|
-
case "ThrottlingException":
|
|
2271
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
2272
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2273
|
-
case "ValidationException":
|
|
2274
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
2275
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2276
|
-
default:
|
|
2277
|
-
const parsedBody = parsedOutput.body;
|
|
2278
|
-
return throwDefaultError({
|
|
2279
|
-
output,
|
|
2280
|
-
parsedBody,
|
|
2281
|
-
errorCode
|
|
2282
|
-
});
|
|
2283
|
-
}
|
|
2284
|
-
}, "de_DeleteServiceNetworkVpcAssociationCommandError");
|
|
2285
1661
|
var de_DeleteTargetGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2286
1662
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2287
|
-
return
|
|
2288
|
-
}
|
|
2289
|
-
const contents = (0, import_smithy_client.map)({
|
|
2290
|
-
$metadata: deserializeMetadata(output)
|
|
2291
|
-
});
|
|
2292
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2293
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
2294
|
-
arn: import_smithy_client.expectString,
|
|
2295
|
-
id: import_smithy_client.expectString,
|
|
2296
|
-
status: import_smithy_client.expectString
|
|
2297
|
-
});
|
|
2298
|
-
Object.assign(contents, doc);
|
|
2299
|
-
return contents;
|
|
2300
|
-
}, "de_DeleteTargetGroupCommand");
|
|
2301
|
-
var de_DeleteTargetGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2302
|
-
const parsedOutput = {
|
|
2303
|
-
...output,
|
|
2304
|
-
body: await parseErrorBody(output.body, context)
|
|
2305
|
-
};
|
|
2306
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2307
|
-
switch (errorCode) {
|
|
2308
|
-
case "ConflictException":
|
|
2309
|
-
case "com.amazonaws.vpclattice#ConflictException":
|
|
2310
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2311
|
-
case "InternalServerException":
|
|
2312
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
2313
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2314
|
-
case "ResourceNotFoundException":
|
|
2315
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
2316
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2317
|
-
case "ThrottlingException":
|
|
2318
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
2319
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2320
|
-
case "ValidationException":
|
|
2321
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
2322
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2323
|
-
default:
|
|
2324
|
-
const parsedBody = parsedOutput.body;
|
|
2325
|
-
return throwDefaultError({
|
|
2326
|
-
output,
|
|
2327
|
-
parsedBody,
|
|
2328
|
-
errorCode
|
|
2329
|
-
});
|
|
1663
|
+
return de_CommandError(output, context);
|
|
2330
1664
|
}
|
|
2331
|
-
|
|
1665
|
+
const contents = (0, import_smithy_client.map)({
|
|
1666
|
+
$metadata: deserializeMetadata(output)
|
|
1667
|
+
});
|
|
1668
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1669
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1670
|
+
arn: import_smithy_client.expectString,
|
|
1671
|
+
id: import_smithy_client.expectString,
|
|
1672
|
+
status: import_smithy_client.expectString
|
|
1673
|
+
});
|
|
1674
|
+
Object.assign(contents, doc);
|
|
1675
|
+
return contents;
|
|
1676
|
+
}, "de_DeleteTargetGroupCommand");
|
|
2332
1677
|
var de_DeregisterTargetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2333
1678
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2334
|
-
return
|
|
1679
|
+
return de_CommandError(output, context);
|
|
2335
1680
|
}
|
|
2336
1681
|
const contents = (0, import_smithy_client.map)({
|
|
2337
1682
|
$metadata: deserializeMetadata(output)
|
|
@@ -2344,43 +1689,9 @@ var de_DeregisterTargetsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2344
1689
|
Object.assign(contents, doc);
|
|
2345
1690
|
return contents;
|
|
2346
1691
|
}, "de_DeregisterTargetsCommand");
|
|
2347
|
-
var de_DeregisterTargetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2348
|
-
const parsedOutput = {
|
|
2349
|
-
...output,
|
|
2350
|
-
body: await parseErrorBody(output.body, context)
|
|
2351
|
-
};
|
|
2352
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2353
|
-
switch (errorCode) {
|
|
2354
|
-
case "AccessDeniedException":
|
|
2355
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
2356
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2357
|
-
case "ConflictException":
|
|
2358
|
-
case "com.amazonaws.vpclattice#ConflictException":
|
|
2359
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2360
|
-
case "InternalServerException":
|
|
2361
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
2362
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2363
|
-
case "ResourceNotFoundException":
|
|
2364
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
2365
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2366
|
-
case "ThrottlingException":
|
|
2367
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
2368
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2369
|
-
case "ValidationException":
|
|
2370
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
2371
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2372
|
-
default:
|
|
2373
|
-
const parsedBody = parsedOutput.body;
|
|
2374
|
-
return throwDefaultError({
|
|
2375
|
-
output,
|
|
2376
|
-
parsedBody,
|
|
2377
|
-
errorCode
|
|
2378
|
-
});
|
|
2379
|
-
}
|
|
2380
|
-
}, "de_DeregisterTargetsCommandError");
|
|
2381
1692
|
var de_GetAccessLogSubscriptionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2382
1693
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2383
|
-
return
|
|
1694
|
+
return de_CommandError(output, context);
|
|
2384
1695
|
}
|
|
2385
1696
|
const contents = (0, import_smithy_client.map)({
|
|
2386
1697
|
$metadata: deserializeMetadata(output)
|
|
@@ -2398,40 +1709,9 @@ var de_GetAccessLogSubscriptionCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2398
1709
|
Object.assign(contents, doc);
|
|
2399
1710
|
return contents;
|
|
2400
1711
|
}, "de_GetAccessLogSubscriptionCommand");
|
|
2401
|
-
var de_GetAccessLogSubscriptionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2402
|
-
const parsedOutput = {
|
|
2403
|
-
...output,
|
|
2404
|
-
body: await parseErrorBody(output.body, context)
|
|
2405
|
-
};
|
|
2406
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2407
|
-
switch (errorCode) {
|
|
2408
|
-
case "AccessDeniedException":
|
|
2409
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
2410
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2411
|
-
case "InternalServerException":
|
|
2412
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
2413
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2414
|
-
case "ResourceNotFoundException":
|
|
2415
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
2416
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2417
|
-
case "ThrottlingException":
|
|
2418
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
2419
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2420
|
-
case "ValidationException":
|
|
2421
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
2422
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2423
|
-
default:
|
|
2424
|
-
const parsedBody = parsedOutput.body;
|
|
2425
|
-
return throwDefaultError({
|
|
2426
|
-
output,
|
|
2427
|
-
parsedBody,
|
|
2428
|
-
errorCode
|
|
2429
|
-
});
|
|
2430
|
-
}
|
|
2431
|
-
}, "de_GetAccessLogSubscriptionCommandError");
|
|
2432
1712
|
var de_GetAuthPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2433
1713
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2434
|
-
return
|
|
1714
|
+
return de_CommandError(output, context);
|
|
2435
1715
|
}
|
|
2436
1716
|
const contents = (0, import_smithy_client.map)({
|
|
2437
1717
|
$metadata: deserializeMetadata(output)
|
|
@@ -2446,40 +1726,9 @@ var de_GetAuthPolicyCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2446
1726
|
Object.assign(contents, doc);
|
|
2447
1727
|
return contents;
|
|
2448
1728
|
}, "de_GetAuthPolicyCommand");
|
|
2449
|
-
var de_GetAuthPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2450
|
-
const parsedOutput = {
|
|
2451
|
-
...output,
|
|
2452
|
-
body: await parseErrorBody(output.body, context)
|
|
2453
|
-
};
|
|
2454
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2455
|
-
switch (errorCode) {
|
|
2456
|
-
case "AccessDeniedException":
|
|
2457
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
2458
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2459
|
-
case "InternalServerException":
|
|
2460
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
2461
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2462
|
-
case "ResourceNotFoundException":
|
|
2463
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
2464
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2465
|
-
case "ThrottlingException":
|
|
2466
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
2467
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2468
|
-
case "ValidationException":
|
|
2469
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
2470
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2471
|
-
default:
|
|
2472
|
-
const parsedBody = parsedOutput.body;
|
|
2473
|
-
return throwDefaultError({
|
|
2474
|
-
output,
|
|
2475
|
-
parsedBody,
|
|
2476
|
-
errorCode
|
|
2477
|
-
});
|
|
2478
|
-
}
|
|
2479
|
-
}, "de_GetAuthPolicyCommandError");
|
|
2480
1729
|
var de_GetListenerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2481
1730
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2482
|
-
return
|
|
1731
|
+
return de_CommandError(output, context);
|
|
2483
1732
|
}
|
|
2484
1733
|
const contents = (0, import_smithy_client.map)({
|
|
2485
1734
|
$metadata: deserializeMetadata(output)
|
|
@@ -2500,40 +1749,9 @@ var de_GetListenerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2500
1749
|
Object.assign(contents, doc);
|
|
2501
1750
|
return contents;
|
|
2502
1751
|
}, "de_GetListenerCommand");
|
|
2503
|
-
var de_GetListenerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2504
|
-
const parsedOutput = {
|
|
2505
|
-
...output,
|
|
2506
|
-
body: await parseErrorBody(output.body, context)
|
|
2507
|
-
};
|
|
2508
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2509
|
-
switch (errorCode) {
|
|
2510
|
-
case "AccessDeniedException":
|
|
2511
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
2512
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2513
|
-
case "InternalServerException":
|
|
2514
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
2515
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2516
|
-
case "ResourceNotFoundException":
|
|
2517
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
2518
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2519
|
-
case "ThrottlingException":
|
|
2520
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
2521
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2522
|
-
case "ValidationException":
|
|
2523
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
2524
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2525
|
-
default:
|
|
2526
|
-
const parsedBody = parsedOutput.body;
|
|
2527
|
-
return throwDefaultError({
|
|
2528
|
-
output,
|
|
2529
|
-
parsedBody,
|
|
2530
|
-
errorCode
|
|
2531
|
-
});
|
|
2532
|
-
}
|
|
2533
|
-
}, "de_GetListenerCommandError");
|
|
2534
1752
|
var de_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2535
1753
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2536
|
-
return
|
|
1754
|
+
return de_CommandError(output, context);
|
|
2537
1755
|
}
|
|
2538
1756
|
const contents = (0, import_smithy_client.map)({
|
|
2539
1757
|
$metadata: deserializeMetadata(output)
|
|
@@ -2545,40 +1763,9 @@ var de_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2545
1763
|
Object.assign(contents, doc);
|
|
2546
1764
|
return contents;
|
|
2547
1765
|
}, "de_GetResourcePolicyCommand");
|
|
2548
|
-
var de_GetResourcePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2549
|
-
const parsedOutput = {
|
|
2550
|
-
...output,
|
|
2551
|
-
body: await parseErrorBody(output.body, context)
|
|
2552
|
-
};
|
|
2553
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2554
|
-
switch (errorCode) {
|
|
2555
|
-
case "AccessDeniedException":
|
|
2556
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
2557
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2558
|
-
case "InternalServerException":
|
|
2559
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
2560
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2561
|
-
case "ResourceNotFoundException":
|
|
2562
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
2563
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2564
|
-
case "ThrottlingException":
|
|
2565
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
2566
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2567
|
-
case "ValidationException":
|
|
2568
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
2569
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2570
|
-
default:
|
|
2571
|
-
const parsedBody = parsedOutput.body;
|
|
2572
|
-
return throwDefaultError({
|
|
2573
|
-
output,
|
|
2574
|
-
parsedBody,
|
|
2575
|
-
errorCode
|
|
2576
|
-
});
|
|
2577
|
-
}
|
|
2578
|
-
}, "de_GetResourcePolicyCommandError");
|
|
2579
1766
|
var de_GetRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2580
1767
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2581
|
-
return
|
|
1768
|
+
return de_CommandError(output, context);
|
|
2582
1769
|
}
|
|
2583
1770
|
const contents = (0, import_smithy_client.map)({
|
|
2584
1771
|
$metadata: deserializeMetadata(output)
|
|
@@ -2598,40 +1785,9 @@ var de_GetRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2598
1785
|
Object.assign(contents, doc);
|
|
2599
1786
|
return contents;
|
|
2600
1787
|
}, "de_GetRuleCommand");
|
|
2601
|
-
var de_GetRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2602
|
-
const parsedOutput = {
|
|
2603
|
-
...output,
|
|
2604
|
-
body: await parseErrorBody(output.body, context)
|
|
2605
|
-
};
|
|
2606
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2607
|
-
switch (errorCode) {
|
|
2608
|
-
case "AccessDeniedException":
|
|
2609
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
2610
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2611
|
-
case "InternalServerException":
|
|
2612
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
2613
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2614
|
-
case "ResourceNotFoundException":
|
|
2615
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
2616
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2617
|
-
case "ThrottlingException":
|
|
2618
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
2619
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2620
|
-
case "ValidationException":
|
|
2621
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
2622
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2623
|
-
default:
|
|
2624
|
-
const parsedBody = parsedOutput.body;
|
|
2625
|
-
return throwDefaultError({
|
|
2626
|
-
output,
|
|
2627
|
-
parsedBody,
|
|
2628
|
-
errorCode
|
|
2629
|
-
});
|
|
2630
|
-
}
|
|
2631
|
-
}, "de_GetRuleCommandError");
|
|
2632
1788
|
var de_GetServiceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2633
1789
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2634
|
-
return
|
|
1790
|
+
return de_CommandError(output, context);
|
|
2635
1791
|
}
|
|
2636
1792
|
const contents = (0, import_smithy_client.map)({
|
|
2637
1793
|
$metadata: deserializeMetadata(output)
|
|
@@ -2654,40 +1810,9 @@ var de_GetServiceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2654
1810
|
Object.assign(contents, doc);
|
|
2655
1811
|
return contents;
|
|
2656
1812
|
}, "de_GetServiceCommand");
|
|
2657
|
-
var de_GetServiceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2658
|
-
const parsedOutput = {
|
|
2659
|
-
...output,
|
|
2660
|
-
body: await parseErrorBody(output.body, context)
|
|
2661
|
-
};
|
|
2662
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2663
|
-
switch (errorCode) {
|
|
2664
|
-
case "AccessDeniedException":
|
|
2665
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
2666
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2667
|
-
case "InternalServerException":
|
|
2668
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
2669
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2670
|
-
case "ResourceNotFoundException":
|
|
2671
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
2672
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2673
|
-
case "ThrottlingException":
|
|
2674
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
2675
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2676
|
-
case "ValidationException":
|
|
2677
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
2678
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2679
|
-
default:
|
|
2680
|
-
const parsedBody = parsedOutput.body;
|
|
2681
|
-
return throwDefaultError({
|
|
2682
|
-
output,
|
|
2683
|
-
parsedBody,
|
|
2684
|
-
errorCode
|
|
2685
|
-
});
|
|
2686
|
-
}
|
|
2687
|
-
}, "de_GetServiceCommandError");
|
|
2688
1813
|
var de_GetServiceNetworkCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2689
1814
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2690
|
-
return
|
|
1815
|
+
return de_CommandError(output, context);
|
|
2691
1816
|
}
|
|
2692
1817
|
const contents = (0, import_smithy_client.map)({
|
|
2693
1818
|
$metadata: deserializeMetadata(output)
|
|
@@ -2697,49 +1822,18 @@ var de_GetServiceNetworkCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2697
1822
|
arn: import_smithy_client.expectString,
|
|
2698
1823
|
authType: import_smithy_client.expectString,
|
|
2699
1824
|
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2700
|
-
id: import_smithy_client.expectString,
|
|
2701
|
-
lastUpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2702
|
-
name: import_smithy_client.expectString,
|
|
2703
|
-
numberOfAssociatedServices: import_smithy_client.expectLong,
|
|
2704
|
-
numberOfAssociatedVPCs: import_smithy_client.expectLong
|
|
2705
|
-
});
|
|
2706
|
-
Object.assign(contents, doc);
|
|
2707
|
-
return contents;
|
|
2708
|
-
}, "de_GetServiceNetworkCommand");
|
|
2709
|
-
var de_GetServiceNetworkCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2710
|
-
const parsedOutput = {
|
|
2711
|
-
...output,
|
|
2712
|
-
body: await parseErrorBody(output.body, context)
|
|
2713
|
-
};
|
|
2714
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2715
|
-
switch (errorCode) {
|
|
2716
|
-
case "AccessDeniedException":
|
|
2717
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
2718
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2719
|
-
case "InternalServerException":
|
|
2720
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
2721
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2722
|
-
case "ResourceNotFoundException":
|
|
2723
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
2724
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2725
|
-
case "ThrottlingException":
|
|
2726
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
2727
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2728
|
-
case "ValidationException":
|
|
2729
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
2730
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2731
|
-
default:
|
|
2732
|
-
const parsedBody = parsedOutput.body;
|
|
2733
|
-
return throwDefaultError({
|
|
2734
|
-
output,
|
|
2735
|
-
parsedBody,
|
|
2736
|
-
errorCode
|
|
2737
|
-
});
|
|
2738
|
-
}
|
|
2739
|
-
}, "de_GetServiceNetworkCommandError");
|
|
1825
|
+
id: import_smithy_client.expectString,
|
|
1826
|
+
lastUpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1827
|
+
name: import_smithy_client.expectString,
|
|
1828
|
+
numberOfAssociatedServices: import_smithy_client.expectLong,
|
|
1829
|
+
numberOfAssociatedVPCs: import_smithy_client.expectLong
|
|
1830
|
+
});
|
|
1831
|
+
Object.assign(contents, doc);
|
|
1832
|
+
return contents;
|
|
1833
|
+
}, "de_GetServiceNetworkCommand");
|
|
2740
1834
|
var de_GetServiceNetworkServiceAssociationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2741
1835
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2742
|
-
return
|
|
1836
|
+
return de_CommandError(output, context);
|
|
2743
1837
|
}
|
|
2744
1838
|
const contents = (0, import_smithy_client.map)({
|
|
2745
1839
|
$metadata: deserializeMetadata(output)
|
|
@@ -2765,40 +1859,9 @@ var de_GetServiceNetworkServiceAssociationCommand = /* @__PURE__ */ __name(async
|
|
|
2765
1859
|
Object.assign(contents, doc);
|
|
2766
1860
|
return contents;
|
|
2767
1861
|
}, "de_GetServiceNetworkServiceAssociationCommand");
|
|
2768
|
-
var de_GetServiceNetworkServiceAssociationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2769
|
-
const parsedOutput = {
|
|
2770
|
-
...output,
|
|
2771
|
-
body: await parseErrorBody(output.body, context)
|
|
2772
|
-
};
|
|
2773
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2774
|
-
switch (errorCode) {
|
|
2775
|
-
case "AccessDeniedException":
|
|
2776
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
2777
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2778
|
-
case "InternalServerException":
|
|
2779
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
2780
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2781
|
-
case "ResourceNotFoundException":
|
|
2782
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
2783
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2784
|
-
case "ThrottlingException":
|
|
2785
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
2786
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2787
|
-
case "ValidationException":
|
|
2788
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
2789
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2790
|
-
default:
|
|
2791
|
-
const parsedBody = parsedOutput.body;
|
|
2792
|
-
return throwDefaultError({
|
|
2793
|
-
output,
|
|
2794
|
-
parsedBody,
|
|
2795
|
-
errorCode
|
|
2796
|
-
});
|
|
2797
|
-
}
|
|
2798
|
-
}, "de_GetServiceNetworkServiceAssociationCommandError");
|
|
2799
1862
|
var de_GetServiceNetworkVpcAssociationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2800
1863
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2801
|
-
return
|
|
1864
|
+
return de_CommandError(output, context);
|
|
2802
1865
|
}
|
|
2803
1866
|
const contents = (0, import_smithy_client.map)({
|
|
2804
1867
|
$metadata: deserializeMetadata(output)
|
|
@@ -2822,40 +1885,9 @@ var de_GetServiceNetworkVpcAssociationCommand = /* @__PURE__ */ __name(async (ou
|
|
|
2822
1885
|
Object.assign(contents, doc);
|
|
2823
1886
|
return contents;
|
|
2824
1887
|
}, "de_GetServiceNetworkVpcAssociationCommand");
|
|
2825
|
-
var de_GetServiceNetworkVpcAssociationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2826
|
-
const parsedOutput = {
|
|
2827
|
-
...output,
|
|
2828
|
-
body: await parseErrorBody(output.body, context)
|
|
2829
|
-
};
|
|
2830
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2831
|
-
switch (errorCode) {
|
|
2832
|
-
case "AccessDeniedException":
|
|
2833
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
2834
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2835
|
-
case "InternalServerException":
|
|
2836
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
2837
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2838
|
-
case "ResourceNotFoundException":
|
|
2839
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
2840
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2841
|
-
case "ThrottlingException":
|
|
2842
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
2843
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2844
|
-
case "ValidationException":
|
|
2845
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
2846
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2847
|
-
default:
|
|
2848
|
-
const parsedBody = parsedOutput.body;
|
|
2849
|
-
return throwDefaultError({
|
|
2850
|
-
output,
|
|
2851
|
-
parsedBody,
|
|
2852
|
-
errorCode
|
|
2853
|
-
});
|
|
2854
|
-
}
|
|
2855
|
-
}, "de_GetServiceNetworkVpcAssociationCommandError");
|
|
2856
1888
|
var de_GetTargetGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2857
1889
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2858
|
-
return
|
|
1890
|
+
return de_CommandError(output, context);
|
|
2859
1891
|
}
|
|
2860
1892
|
const contents = (0, import_smithy_client.map)({
|
|
2861
1893
|
$metadata: deserializeMetadata(output)
|
|
@@ -2877,40 +1909,9 @@ var de_GetTargetGroupCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2877
1909
|
Object.assign(contents, doc);
|
|
2878
1910
|
return contents;
|
|
2879
1911
|
}, "de_GetTargetGroupCommand");
|
|
2880
|
-
var de_GetTargetGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2881
|
-
const parsedOutput = {
|
|
2882
|
-
...output,
|
|
2883
|
-
body: await parseErrorBody(output.body, context)
|
|
2884
|
-
};
|
|
2885
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2886
|
-
switch (errorCode) {
|
|
2887
|
-
case "AccessDeniedException":
|
|
2888
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
2889
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2890
|
-
case "InternalServerException":
|
|
2891
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
2892
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2893
|
-
case "ResourceNotFoundException":
|
|
2894
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
2895
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2896
|
-
case "ThrottlingException":
|
|
2897
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
2898
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2899
|
-
case "ValidationException":
|
|
2900
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
2901
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2902
|
-
default:
|
|
2903
|
-
const parsedBody = parsedOutput.body;
|
|
2904
|
-
return throwDefaultError({
|
|
2905
|
-
output,
|
|
2906
|
-
parsedBody,
|
|
2907
|
-
errorCode
|
|
2908
|
-
});
|
|
2909
|
-
}
|
|
2910
|
-
}, "de_GetTargetGroupCommandError");
|
|
2911
1912
|
var de_ListAccessLogSubscriptionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2912
1913
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2913
|
-
return
|
|
1914
|
+
return de_CommandError(output, context);
|
|
2914
1915
|
}
|
|
2915
1916
|
const contents = (0, import_smithy_client.map)({
|
|
2916
1917
|
$metadata: deserializeMetadata(output)
|
|
@@ -2923,37 +1924,9 @@ var de_ListAccessLogSubscriptionsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2923
1924
|
Object.assign(contents, doc);
|
|
2924
1925
|
return contents;
|
|
2925
1926
|
}, "de_ListAccessLogSubscriptionsCommand");
|
|
2926
|
-
var de_ListAccessLogSubscriptionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2927
|
-
const parsedOutput = {
|
|
2928
|
-
...output,
|
|
2929
|
-
body: await parseErrorBody(output.body, context)
|
|
2930
|
-
};
|
|
2931
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2932
|
-
switch (errorCode) {
|
|
2933
|
-
case "AccessDeniedException":
|
|
2934
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
2935
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2936
|
-
case "InternalServerException":
|
|
2937
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
2938
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2939
|
-
case "ThrottlingException":
|
|
2940
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
2941
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2942
|
-
case "ValidationException":
|
|
2943
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
2944
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2945
|
-
default:
|
|
2946
|
-
const parsedBody = parsedOutput.body;
|
|
2947
|
-
return throwDefaultError({
|
|
2948
|
-
output,
|
|
2949
|
-
parsedBody,
|
|
2950
|
-
errorCode
|
|
2951
|
-
});
|
|
2952
|
-
}
|
|
2953
|
-
}, "de_ListAccessLogSubscriptionsCommandError");
|
|
2954
1927
|
var de_ListListenersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2955
1928
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2956
|
-
return
|
|
1929
|
+
return de_CommandError(output, context);
|
|
2957
1930
|
}
|
|
2958
1931
|
const contents = (0, import_smithy_client.map)({
|
|
2959
1932
|
$metadata: deserializeMetadata(output)
|
|
@@ -2966,40 +1939,9 @@ var de_ListListenersCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2966
1939
|
Object.assign(contents, doc);
|
|
2967
1940
|
return contents;
|
|
2968
1941
|
}, "de_ListListenersCommand");
|
|
2969
|
-
var de_ListListenersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2970
|
-
const parsedOutput = {
|
|
2971
|
-
...output,
|
|
2972
|
-
body: await parseErrorBody(output.body, context)
|
|
2973
|
-
};
|
|
2974
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2975
|
-
switch (errorCode) {
|
|
2976
|
-
case "AccessDeniedException":
|
|
2977
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
2978
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2979
|
-
case "InternalServerException":
|
|
2980
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
2981
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2982
|
-
case "ResourceNotFoundException":
|
|
2983
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
2984
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2985
|
-
case "ThrottlingException":
|
|
2986
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
2987
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2988
|
-
case "ValidationException":
|
|
2989
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
2990
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2991
|
-
default:
|
|
2992
|
-
const parsedBody = parsedOutput.body;
|
|
2993
|
-
return throwDefaultError({
|
|
2994
|
-
output,
|
|
2995
|
-
parsedBody,
|
|
2996
|
-
errorCode
|
|
2997
|
-
});
|
|
2998
|
-
}
|
|
2999
|
-
}, "de_ListListenersCommandError");
|
|
3000
1942
|
var de_ListRulesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3001
1943
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3002
|
-
return
|
|
1944
|
+
return de_CommandError(output, context);
|
|
3003
1945
|
}
|
|
3004
1946
|
const contents = (0, import_smithy_client.map)({
|
|
3005
1947
|
$metadata: deserializeMetadata(output)
|
|
@@ -3012,126 +1954,39 @@ var de_ListRulesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3012
1954
|
Object.assign(contents, doc);
|
|
3013
1955
|
return contents;
|
|
3014
1956
|
}, "de_ListRulesCommand");
|
|
3015
|
-
var de_ListRulesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3016
|
-
const parsedOutput = {
|
|
3017
|
-
...output,
|
|
3018
|
-
body: await parseErrorBody(output.body, context)
|
|
3019
|
-
};
|
|
3020
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3021
|
-
switch (errorCode) {
|
|
3022
|
-
case "AccessDeniedException":
|
|
3023
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
3024
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3025
|
-
case "InternalServerException":
|
|
3026
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
3027
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3028
|
-
case "ResourceNotFoundException":
|
|
3029
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
3030
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3031
|
-
case "ThrottlingException":
|
|
3032
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
3033
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3034
|
-
case "ValidationException":
|
|
3035
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
3036
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3037
|
-
default:
|
|
3038
|
-
const parsedBody = parsedOutput.body;
|
|
3039
|
-
return throwDefaultError({
|
|
3040
|
-
output,
|
|
3041
|
-
parsedBody,
|
|
3042
|
-
errorCode
|
|
3043
|
-
});
|
|
3044
|
-
}
|
|
3045
|
-
}, "de_ListRulesCommandError");
|
|
3046
1957
|
var de_ListServiceNetworksCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3047
1958
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3048
|
-
return
|
|
3049
|
-
}
|
|
3050
|
-
const contents = (0, import_smithy_client.map)({
|
|
3051
|
-
$metadata: deserializeMetadata(output)
|
|
3052
|
-
});
|
|
3053
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
3054
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
3055
|
-
items: (_) => de_ServiceNetworkList(_, context),
|
|
3056
|
-
nextToken: import_smithy_client.expectString
|
|
3057
|
-
});
|
|
3058
|
-
Object.assign(contents, doc);
|
|
3059
|
-
return contents;
|
|
3060
|
-
}, "de_ListServiceNetworksCommand");
|
|
3061
|
-
var de_ListServiceNetworksCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3062
|
-
const parsedOutput = {
|
|
3063
|
-
...output,
|
|
3064
|
-
body: await parseErrorBody(output.body, context)
|
|
3065
|
-
};
|
|
3066
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3067
|
-
switch (errorCode) {
|
|
3068
|
-
case "AccessDeniedException":
|
|
3069
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
3070
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3071
|
-
case "InternalServerException":
|
|
3072
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
3073
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3074
|
-
case "ThrottlingException":
|
|
3075
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
3076
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3077
|
-
case "ValidationException":
|
|
3078
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
3079
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3080
|
-
default:
|
|
3081
|
-
const parsedBody = parsedOutput.body;
|
|
3082
|
-
return throwDefaultError({
|
|
3083
|
-
output,
|
|
3084
|
-
parsedBody,
|
|
3085
|
-
errorCode
|
|
3086
|
-
});
|
|
3087
|
-
}
|
|
3088
|
-
}, "de_ListServiceNetworksCommandError");
|
|
3089
|
-
var de_ListServiceNetworkServiceAssociationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3090
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3091
|
-
return de_ListServiceNetworkServiceAssociationsCommandError(output, context);
|
|
1959
|
+
return de_CommandError(output, context);
|
|
3092
1960
|
}
|
|
3093
|
-
const contents = (0, import_smithy_client.map)({
|
|
3094
|
-
$metadata: deserializeMetadata(output)
|
|
3095
|
-
});
|
|
3096
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
3097
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
3098
|
-
items: (_) =>
|
|
3099
|
-
nextToken: import_smithy_client.expectString
|
|
3100
|
-
});
|
|
3101
|
-
Object.assign(contents, doc);
|
|
3102
|
-
return contents;
|
|
3103
|
-
}, "
|
|
3104
|
-
var
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
body: await parseErrorBody(output.body, context)
|
|
3108
|
-
};
|
|
3109
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3110
|
-
switch (errorCode) {
|
|
3111
|
-
case "AccessDeniedException":
|
|
3112
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
3113
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3114
|
-
case "InternalServerException":
|
|
3115
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
3116
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3117
|
-
case "ThrottlingException":
|
|
3118
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
3119
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3120
|
-
case "ValidationException":
|
|
3121
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
3122
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3123
|
-
default:
|
|
3124
|
-
const parsedBody = parsedOutput.body;
|
|
3125
|
-
return throwDefaultError({
|
|
3126
|
-
output,
|
|
3127
|
-
parsedBody,
|
|
3128
|
-
errorCode
|
|
3129
|
-
});
|
|
1961
|
+
const contents = (0, import_smithy_client.map)({
|
|
1962
|
+
$metadata: deserializeMetadata(output)
|
|
1963
|
+
});
|
|
1964
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1965
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1966
|
+
items: (_) => de_ServiceNetworkList(_, context),
|
|
1967
|
+
nextToken: import_smithy_client.expectString
|
|
1968
|
+
});
|
|
1969
|
+
Object.assign(contents, doc);
|
|
1970
|
+
return contents;
|
|
1971
|
+
}, "de_ListServiceNetworksCommand");
|
|
1972
|
+
var de_ListServiceNetworkServiceAssociationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1973
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1974
|
+
return de_CommandError(output, context);
|
|
3130
1975
|
}
|
|
3131
|
-
|
|
1976
|
+
const contents = (0, import_smithy_client.map)({
|
|
1977
|
+
$metadata: deserializeMetadata(output)
|
|
1978
|
+
});
|
|
1979
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1980
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1981
|
+
items: (_) => de_ServiceNetworkServiceAssociationList(_, context),
|
|
1982
|
+
nextToken: import_smithy_client.expectString
|
|
1983
|
+
});
|
|
1984
|
+
Object.assign(contents, doc);
|
|
1985
|
+
return contents;
|
|
1986
|
+
}, "de_ListServiceNetworkServiceAssociationsCommand");
|
|
3132
1987
|
var de_ListServiceNetworkVpcAssociationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3133
1988
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3134
|
-
return
|
|
1989
|
+
return de_CommandError(output, context);
|
|
3135
1990
|
}
|
|
3136
1991
|
const contents = (0, import_smithy_client.map)({
|
|
3137
1992
|
$metadata: deserializeMetadata(output)
|
|
@@ -3144,37 +1999,9 @@ var de_ListServiceNetworkVpcAssociationsCommand = /* @__PURE__ */ __name(async (
|
|
|
3144
1999
|
Object.assign(contents, doc);
|
|
3145
2000
|
return contents;
|
|
3146
2001
|
}, "de_ListServiceNetworkVpcAssociationsCommand");
|
|
3147
|
-
var de_ListServiceNetworkVpcAssociationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3148
|
-
const parsedOutput = {
|
|
3149
|
-
...output,
|
|
3150
|
-
body: await parseErrorBody(output.body, context)
|
|
3151
|
-
};
|
|
3152
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3153
|
-
switch (errorCode) {
|
|
3154
|
-
case "AccessDeniedException":
|
|
3155
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
3156
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3157
|
-
case "InternalServerException":
|
|
3158
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
3159
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3160
|
-
case "ThrottlingException":
|
|
3161
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
3162
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3163
|
-
case "ValidationException":
|
|
3164
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
3165
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3166
|
-
default:
|
|
3167
|
-
const parsedBody = parsedOutput.body;
|
|
3168
|
-
return throwDefaultError({
|
|
3169
|
-
output,
|
|
3170
|
-
parsedBody,
|
|
3171
|
-
errorCode
|
|
3172
|
-
});
|
|
3173
|
-
}
|
|
3174
|
-
}, "de_ListServiceNetworkVpcAssociationsCommandError");
|
|
3175
2002
|
var de_ListServicesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3176
2003
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3177
|
-
return
|
|
2004
|
+
return de_CommandError(output, context);
|
|
3178
2005
|
}
|
|
3179
2006
|
const contents = (0, import_smithy_client.map)({
|
|
3180
2007
|
$metadata: deserializeMetadata(output)
|
|
@@ -3187,37 +2014,9 @@ var de_ListServicesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3187
2014
|
Object.assign(contents, doc);
|
|
3188
2015
|
return contents;
|
|
3189
2016
|
}, "de_ListServicesCommand");
|
|
3190
|
-
var de_ListServicesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3191
|
-
const parsedOutput = {
|
|
3192
|
-
...output,
|
|
3193
|
-
body: await parseErrorBody(output.body, context)
|
|
3194
|
-
};
|
|
3195
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3196
|
-
switch (errorCode) {
|
|
3197
|
-
case "AccessDeniedException":
|
|
3198
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
3199
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3200
|
-
case "InternalServerException":
|
|
3201
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
3202
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3203
|
-
case "ThrottlingException":
|
|
3204
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
3205
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3206
|
-
case "ValidationException":
|
|
3207
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
3208
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3209
|
-
default:
|
|
3210
|
-
const parsedBody = parsedOutput.body;
|
|
3211
|
-
return throwDefaultError({
|
|
3212
|
-
output,
|
|
3213
|
-
parsedBody,
|
|
3214
|
-
errorCode
|
|
3215
|
-
});
|
|
3216
|
-
}
|
|
3217
|
-
}, "de_ListServicesCommandError");
|
|
3218
2017
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3219
2018
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3220
|
-
return
|
|
2019
|
+
return de_CommandError(output, context);
|
|
3221
2020
|
}
|
|
3222
2021
|
const contents = (0, import_smithy_client.map)({
|
|
3223
2022
|
$metadata: deserializeMetadata(output)
|
|
@@ -3229,37 +2028,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
3229
2028
|
Object.assign(contents, doc);
|
|
3230
2029
|
return contents;
|
|
3231
2030
|
}, "de_ListTagsForResourceCommand");
|
|
3232
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3233
|
-
const parsedOutput = {
|
|
3234
|
-
...output,
|
|
3235
|
-
body: await parseErrorBody(output.body, context)
|
|
3236
|
-
};
|
|
3237
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3238
|
-
switch (errorCode) {
|
|
3239
|
-
case "AccessDeniedException":
|
|
3240
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
3241
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3242
|
-
case "InternalServerException":
|
|
3243
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
3244
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3245
|
-
case "ResourceNotFoundException":
|
|
3246
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
3247
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3248
|
-
case "ValidationException":
|
|
3249
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
3250
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3251
|
-
default:
|
|
3252
|
-
const parsedBody = parsedOutput.body;
|
|
3253
|
-
return throwDefaultError({
|
|
3254
|
-
output,
|
|
3255
|
-
parsedBody,
|
|
3256
|
-
errorCode
|
|
3257
|
-
});
|
|
3258
|
-
}
|
|
3259
|
-
}, "de_ListTagsForResourceCommandError");
|
|
3260
2031
|
var de_ListTargetGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3261
2032
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3262
|
-
return
|
|
2033
|
+
return de_CommandError(output, context);
|
|
3263
2034
|
}
|
|
3264
2035
|
const contents = (0, import_smithy_client.map)({
|
|
3265
2036
|
$metadata: deserializeMetadata(output)
|
|
@@ -3272,37 +2043,9 @@ var de_ListTargetGroupsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3272
2043
|
Object.assign(contents, doc);
|
|
3273
2044
|
return contents;
|
|
3274
2045
|
}, "de_ListTargetGroupsCommand");
|
|
3275
|
-
var de_ListTargetGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3276
|
-
const parsedOutput = {
|
|
3277
|
-
...output,
|
|
3278
|
-
body: await parseErrorBody(output.body, context)
|
|
3279
|
-
};
|
|
3280
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3281
|
-
switch (errorCode) {
|
|
3282
|
-
case "AccessDeniedException":
|
|
3283
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
3284
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3285
|
-
case "InternalServerException":
|
|
3286
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
3287
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3288
|
-
case "ThrottlingException":
|
|
3289
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
3290
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3291
|
-
case "ValidationException":
|
|
3292
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
3293
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3294
|
-
default:
|
|
3295
|
-
const parsedBody = parsedOutput.body;
|
|
3296
|
-
return throwDefaultError({
|
|
3297
|
-
output,
|
|
3298
|
-
parsedBody,
|
|
3299
|
-
errorCode
|
|
3300
|
-
});
|
|
3301
|
-
}
|
|
3302
|
-
}, "de_ListTargetGroupsCommandError");
|
|
3303
2046
|
var de_ListTargetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3304
2047
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3305
|
-
return
|
|
2048
|
+
return de_CommandError(output, context);
|
|
3306
2049
|
}
|
|
3307
2050
|
const contents = (0, import_smithy_client.map)({
|
|
3308
2051
|
$metadata: deserializeMetadata(output)
|
|
@@ -3315,40 +2058,9 @@ var de_ListTargetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3315
2058
|
Object.assign(contents, doc);
|
|
3316
2059
|
return contents;
|
|
3317
2060
|
}, "de_ListTargetsCommand");
|
|
3318
|
-
var de_ListTargetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3319
|
-
const parsedOutput = {
|
|
3320
|
-
...output,
|
|
3321
|
-
body: await parseErrorBody(output.body, context)
|
|
3322
|
-
};
|
|
3323
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3324
|
-
switch (errorCode) {
|
|
3325
|
-
case "AccessDeniedException":
|
|
3326
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
3327
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3328
|
-
case "InternalServerException":
|
|
3329
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
3330
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3331
|
-
case "ResourceNotFoundException":
|
|
3332
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
3333
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3334
|
-
case "ThrottlingException":
|
|
3335
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
3336
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3337
|
-
case "ValidationException":
|
|
3338
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
3339
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3340
|
-
default:
|
|
3341
|
-
const parsedBody = parsedOutput.body;
|
|
3342
|
-
return throwDefaultError({
|
|
3343
|
-
output,
|
|
3344
|
-
parsedBody,
|
|
3345
|
-
errorCode
|
|
3346
|
-
});
|
|
3347
|
-
}
|
|
3348
|
-
}, "de_ListTargetsCommandError");
|
|
3349
2061
|
var de_PutAuthPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3350
2062
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3351
|
-
return
|
|
2063
|
+
return de_CommandError(output, context);
|
|
3352
2064
|
}
|
|
3353
2065
|
const contents = (0, import_smithy_client.map)({
|
|
3354
2066
|
$metadata: deserializeMetadata(output)
|
|
@@ -3361,40 +2073,9 @@ var de_PutAuthPolicyCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3361
2073
|
Object.assign(contents, doc);
|
|
3362
2074
|
return contents;
|
|
3363
2075
|
}, "de_PutAuthPolicyCommand");
|
|
3364
|
-
var de_PutAuthPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3365
|
-
const parsedOutput = {
|
|
3366
|
-
...output,
|
|
3367
|
-
body: await parseErrorBody(output.body, context)
|
|
3368
|
-
};
|
|
3369
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3370
|
-
switch (errorCode) {
|
|
3371
|
-
case "AccessDeniedException":
|
|
3372
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
3373
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3374
|
-
case "InternalServerException":
|
|
3375
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
3376
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3377
|
-
case "ResourceNotFoundException":
|
|
3378
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
3379
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3380
|
-
case "ThrottlingException":
|
|
3381
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
3382
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3383
|
-
case "ValidationException":
|
|
3384
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
3385
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3386
|
-
default:
|
|
3387
|
-
const parsedBody = parsedOutput.body;
|
|
3388
|
-
return throwDefaultError({
|
|
3389
|
-
output,
|
|
3390
|
-
parsedBody,
|
|
3391
|
-
errorCode
|
|
3392
|
-
});
|
|
3393
|
-
}
|
|
3394
|
-
}, "de_PutAuthPolicyCommandError");
|
|
3395
2076
|
var de_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3396
2077
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3397
|
-
return
|
|
2078
|
+
return de_CommandError(output, context);
|
|
3398
2079
|
}
|
|
3399
2080
|
const contents = (0, import_smithy_client.map)({
|
|
3400
2081
|
$metadata: deserializeMetadata(output)
|
|
@@ -3402,92 +2083,24 @@ var de_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3402
2083
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3403
2084
|
return contents;
|
|
3404
2085
|
}, "de_PutResourcePolicyCommand");
|
|
3405
|
-
var de_PutResourcePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3406
|
-
const parsedOutput = {
|
|
3407
|
-
...output,
|
|
3408
|
-
body: await parseErrorBody(output.body, context)
|
|
3409
|
-
};
|
|
3410
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3411
|
-
switch (errorCode) {
|
|
3412
|
-
case "AccessDeniedException":
|
|
3413
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
3414
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3415
|
-
case "InternalServerException":
|
|
3416
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
3417
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3418
|
-
case "ResourceNotFoundException":
|
|
3419
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
3420
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3421
|
-
case "ThrottlingException":
|
|
3422
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
3423
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3424
|
-
case "ValidationException":
|
|
3425
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
3426
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3427
|
-
default:
|
|
3428
|
-
const parsedBody = parsedOutput.body;
|
|
3429
|
-
return throwDefaultError({
|
|
3430
|
-
output,
|
|
3431
|
-
parsedBody,
|
|
3432
|
-
errorCode
|
|
3433
|
-
});
|
|
3434
|
-
}
|
|
3435
|
-
}, "de_PutResourcePolicyCommandError");
|
|
3436
2086
|
var de_RegisterTargetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3437
2087
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3438
|
-
return
|
|
2088
|
+
return de_CommandError(output, context);
|
|
3439
2089
|
}
|
|
3440
2090
|
const contents = (0, import_smithy_client.map)({
|
|
3441
2091
|
$metadata: deserializeMetadata(output)
|
|
3442
2092
|
});
|
|
3443
2093
|
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
3444
2094
|
const doc = (0, import_smithy_client.take)(data, {
|
|
3445
|
-
successful: import_smithy_client._json,
|
|
3446
|
-
unsuccessful: import_smithy_client._json
|
|
3447
|
-
});
|
|
3448
|
-
Object.assign(contents, doc);
|
|
3449
|
-
return contents;
|
|
3450
|
-
}, "de_RegisterTargetsCommand");
|
|
3451
|
-
var de_RegisterTargetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3452
|
-
const parsedOutput = {
|
|
3453
|
-
...output,
|
|
3454
|
-
body: await parseErrorBody(output.body, context)
|
|
3455
|
-
};
|
|
3456
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3457
|
-
switch (errorCode) {
|
|
3458
|
-
case "AccessDeniedException":
|
|
3459
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
3460
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3461
|
-
case "ConflictException":
|
|
3462
|
-
case "com.amazonaws.vpclattice#ConflictException":
|
|
3463
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3464
|
-
case "InternalServerException":
|
|
3465
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
3466
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3467
|
-
case "ResourceNotFoundException":
|
|
3468
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
3469
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3470
|
-
case "ServiceQuotaExceededException":
|
|
3471
|
-
case "com.amazonaws.vpclattice#ServiceQuotaExceededException":
|
|
3472
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3473
|
-
case "ThrottlingException":
|
|
3474
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
3475
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3476
|
-
case "ValidationException":
|
|
3477
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
3478
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3479
|
-
default:
|
|
3480
|
-
const parsedBody = parsedOutput.body;
|
|
3481
|
-
return throwDefaultError({
|
|
3482
|
-
output,
|
|
3483
|
-
parsedBody,
|
|
3484
|
-
errorCode
|
|
3485
|
-
});
|
|
3486
|
-
}
|
|
3487
|
-
}, "de_RegisterTargetsCommandError");
|
|
2095
|
+
successful: import_smithy_client._json,
|
|
2096
|
+
unsuccessful: import_smithy_client._json
|
|
2097
|
+
});
|
|
2098
|
+
Object.assign(contents, doc);
|
|
2099
|
+
return contents;
|
|
2100
|
+
}, "de_RegisterTargetsCommand");
|
|
3488
2101
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3489
2102
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3490
|
-
return
|
|
2103
|
+
return de_CommandError(output, context);
|
|
3491
2104
|
}
|
|
3492
2105
|
const contents = (0, import_smithy_client.map)({
|
|
3493
2106
|
$metadata: deserializeMetadata(output)
|
|
@@ -3495,40 +2108,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3495
2108
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3496
2109
|
return contents;
|
|
3497
2110
|
}, "de_TagResourceCommand");
|
|
3498
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3499
|
-
const parsedOutput = {
|
|
3500
|
-
...output,
|
|
3501
|
-
body: await parseErrorBody(output.body, context)
|
|
3502
|
-
};
|
|
3503
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3504
|
-
switch (errorCode) {
|
|
3505
|
-
case "AccessDeniedException":
|
|
3506
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
3507
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3508
|
-
case "InternalServerException":
|
|
3509
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
3510
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3511
|
-
case "ResourceNotFoundException":
|
|
3512
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
3513
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3514
|
-
case "ThrottlingException":
|
|
3515
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
3516
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3517
|
-
case "ValidationException":
|
|
3518
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
3519
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3520
|
-
default:
|
|
3521
|
-
const parsedBody = parsedOutput.body;
|
|
3522
|
-
return throwDefaultError({
|
|
3523
|
-
output,
|
|
3524
|
-
parsedBody,
|
|
3525
|
-
errorCode
|
|
3526
|
-
});
|
|
3527
|
-
}
|
|
3528
|
-
}, "de_TagResourceCommandError");
|
|
3529
2111
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3530
2112
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3531
|
-
return
|
|
2113
|
+
return de_CommandError(output, context);
|
|
3532
2114
|
}
|
|
3533
2115
|
const contents = (0, import_smithy_client.map)({
|
|
3534
2116
|
$metadata: deserializeMetadata(output)
|
|
@@ -3536,37 +2118,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3536
2118
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3537
2119
|
return contents;
|
|
3538
2120
|
}, "de_UntagResourceCommand");
|
|
3539
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3540
|
-
const parsedOutput = {
|
|
3541
|
-
...output,
|
|
3542
|
-
body: await parseErrorBody(output.body, context)
|
|
3543
|
-
};
|
|
3544
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3545
|
-
switch (errorCode) {
|
|
3546
|
-
case "AccessDeniedException":
|
|
3547
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
3548
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3549
|
-
case "InternalServerException":
|
|
3550
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
3551
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3552
|
-
case "ResourceNotFoundException":
|
|
3553
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
3554
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3555
|
-
case "ValidationException":
|
|
3556
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
3557
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3558
|
-
default:
|
|
3559
|
-
const parsedBody = parsedOutput.body;
|
|
3560
|
-
return throwDefaultError({
|
|
3561
|
-
output,
|
|
3562
|
-
parsedBody,
|
|
3563
|
-
errorCode
|
|
3564
|
-
});
|
|
3565
|
-
}
|
|
3566
|
-
}, "de_UntagResourceCommandError");
|
|
3567
2121
|
var de_UpdateAccessLogSubscriptionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3568
2122
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3569
|
-
return
|
|
2123
|
+
return de_CommandError(output, context);
|
|
3570
2124
|
}
|
|
3571
2125
|
const contents = (0, import_smithy_client.map)({
|
|
3572
2126
|
$metadata: deserializeMetadata(output)
|
|
@@ -3582,43 +2136,9 @@ var de_UpdateAccessLogSubscriptionCommand = /* @__PURE__ */ __name(async (output
|
|
|
3582
2136
|
Object.assign(contents, doc);
|
|
3583
2137
|
return contents;
|
|
3584
2138
|
}, "de_UpdateAccessLogSubscriptionCommand");
|
|
3585
|
-
var de_UpdateAccessLogSubscriptionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3586
|
-
const parsedOutput = {
|
|
3587
|
-
...output,
|
|
3588
|
-
body: await parseErrorBody(output.body, context)
|
|
3589
|
-
};
|
|
3590
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3591
|
-
switch (errorCode) {
|
|
3592
|
-
case "AccessDeniedException":
|
|
3593
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
3594
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3595
|
-
case "ConflictException":
|
|
3596
|
-
case "com.amazonaws.vpclattice#ConflictException":
|
|
3597
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3598
|
-
case "InternalServerException":
|
|
3599
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
3600
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3601
|
-
case "ResourceNotFoundException":
|
|
3602
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
3603
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3604
|
-
case "ThrottlingException":
|
|
3605
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
3606
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3607
|
-
case "ValidationException":
|
|
3608
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
3609
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3610
|
-
default:
|
|
3611
|
-
const parsedBody = parsedOutput.body;
|
|
3612
|
-
return throwDefaultError({
|
|
3613
|
-
output,
|
|
3614
|
-
parsedBody,
|
|
3615
|
-
errorCode
|
|
3616
|
-
});
|
|
3617
|
-
}
|
|
3618
|
-
}, "de_UpdateAccessLogSubscriptionCommandError");
|
|
3619
2139
|
var de_UpdateListenerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3620
2140
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3621
|
-
return
|
|
2141
|
+
return de_CommandError(output, context);
|
|
3622
2142
|
}
|
|
3623
2143
|
const contents = (0, import_smithy_client.map)({
|
|
3624
2144
|
$metadata: deserializeMetadata(output)
|
|
@@ -3637,43 +2157,9 @@ var de_UpdateListenerCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3637
2157
|
Object.assign(contents, doc);
|
|
3638
2158
|
return contents;
|
|
3639
2159
|
}, "de_UpdateListenerCommand");
|
|
3640
|
-
var de_UpdateListenerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3641
|
-
const parsedOutput = {
|
|
3642
|
-
...output,
|
|
3643
|
-
body: await parseErrorBody(output.body, context)
|
|
3644
|
-
};
|
|
3645
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3646
|
-
switch (errorCode) {
|
|
3647
|
-
case "AccessDeniedException":
|
|
3648
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
3649
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3650
|
-
case "ConflictException":
|
|
3651
|
-
case "com.amazonaws.vpclattice#ConflictException":
|
|
3652
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3653
|
-
case "InternalServerException":
|
|
3654
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
3655
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3656
|
-
case "ResourceNotFoundException":
|
|
3657
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
3658
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3659
|
-
case "ThrottlingException":
|
|
3660
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
3661
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3662
|
-
case "ValidationException":
|
|
3663
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
3664
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3665
|
-
default:
|
|
3666
|
-
const parsedBody = parsedOutput.body;
|
|
3667
|
-
return throwDefaultError({
|
|
3668
|
-
output,
|
|
3669
|
-
parsedBody,
|
|
3670
|
-
errorCode
|
|
3671
|
-
});
|
|
3672
|
-
}
|
|
3673
|
-
}, "de_UpdateListenerCommandError");
|
|
3674
2160
|
var de_UpdateRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3675
2161
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3676
|
-
return
|
|
2162
|
+
return de_CommandError(output, context);
|
|
3677
2163
|
}
|
|
3678
2164
|
const contents = (0, import_smithy_client.map)({
|
|
3679
2165
|
$metadata: deserializeMetadata(output)
|
|
@@ -3691,43 +2177,9 @@ var de_UpdateRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3691
2177
|
Object.assign(contents, doc);
|
|
3692
2178
|
return contents;
|
|
3693
2179
|
}, "de_UpdateRuleCommand");
|
|
3694
|
-
var de_UpdateRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3695
|
-
const parsedOutput = {
|
|
3696
|
-
...output,
|
|
3697
|
-
body: await parseErrorBody(output.body, context)
|
|
3698
|
-
};
|
|
3699
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3700
|
-
switch (errorCode) {
|
|
3701
|
-
case "AccessDeniedException":
|
|
3702
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
3703
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3704
|
-
case "ConflictException":
|
|
3705
|
-
case "com.amazonaws.vpclattice#ConflictException":
|
|
3706
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3707
|
-
case "InternalServerException":
|
|
3708
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
3709
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3710
|
-
case "ResourceNotFoundException":
|
|
3711
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
3712
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3713
|
-
case "ThrottlingException":
|
|
3714
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
3715
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3716
|
-
case "ValidationException":
|
|
3717
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
3718
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3719
|
-
default:
|
|
3720
|
-
const parsedBody = parsedOutput.body;
|
|
3721
|
-
return throwDefaultError({
|
|
3722
|
-
output,
|
|
3723
|
-
parsedBody,
|
|
3724
|
-
errorCode
|
|
3725
|
-
});
|
|
3726
|
-
}
|
|
3727
|
-
}, "de_UpdateRuleCommandError");
|
|
3728
2180
|
var de_UpdateServiceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3729
2181
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3730
|
-
return
|
|
2182
|
+
return de_CommandError(output, context);
|
|
3731
2183
|
}
|
|
3732
2184
|
const contents = (0, import_smithy_client.map)({
|
|
3733
2185
|
$metadata: deserializeMetadata(output)
|
|
@@ -3744,43 +2196,9 @@ var de_UpdateServiceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3744
2196
|
Object.assign(contents, doc);
|
|
3745
2197
|
return contents;
|
|
3746
2198
|
}, "de_UpdateServiceCommand");
|
|
3747
|
-
var de_UpdateServiceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3748
|
-
const parsedOutput = {
|
|
3749
|
-
...output,
|
|
3750
|
-
body: await parseErrorBody(output.body, context)
|
|
3751
|
-
};
|
|
3752
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3753
|
-
switch (errorCode) {
|
|
3754
|
-
case "AccessDeniedException":
|
|
3755
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
3756
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3757
|
-
case "ConflictException":
|
|
3758
|
-
case "com.amazonaws.vpclattice#ConflictException":
|
|
3759
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3760
|
-
case "InternalServerException":
|
|
3761
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
3762
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3763
|
-
case "ResourceNotFoundException":
|
|
3764
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
3765
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3766
|
-
case "ThrottlingException":
|
|
3767
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
3768
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3769
|
-
case "ValidationException":
|
|
3770
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
3771
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3772
|
-
default:
|
|
3773
|
-
const parsedBody = parsedOutput.body;
|
|
3774
|
-
return throwDefaultError({
|
|
3775
|
-
output,
|
|
3776
|
-
parsedBody,
|
|
3777
|
-
errorCode
|
|
3778
|
-
});
|
|
3779
|
-
}
|
|
3780
|
-
}, "de_UpdateServiceCommandError");
|
|
3781
2199
|
var de_UpdateServiceNetworkCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3782
2200
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3783
|
-
return
|
|
2201
|
+
return de_CommandError(output, context);
|
|
3784
2202
|
}
|
|
3785
2203
|
const contents = (0, import_smithy_client.map)({
|
|
3786
2204
|
$metadata: deserializeMetadata(output)
|
|
@@ -3795,43 +2213,9 @@ var de_UpdateServiceNetworkCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
3795
2213
|
Object.assign(contents, doc);
|
|
3796
2214
|
return contents;
|
|
3797
2215
|
}, "de_UpdateServiceNetworkCommand");
|
|
3798
|
-
var de_UpdateServiceNetworkCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3799
|
-
const parsedOutput = {
|
|
3800
|
-
...output,
|
|
3801
|
-
body: await parseErrorBody(output.body, context)
|
|
3802
|
-
};
|
|
3803
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3804
|
-
switch (errorCode) {
|
|
3805
|
-
case "AccessDeniedException":
|
|
3806
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
3807
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3808
|
-
case "ConflictException":
|
|
3809
|
-
case "com.amazonaws.vpclattice#ConflictException":
|
|
3810
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3811
|
-
case "InternalServerException":
|
|
3812
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
3813
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3814
|
-
case "ResourceNotFoundException":
|
|
3815
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
3816
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3817
|
-
case "ThrottlingException":
|
|
3818
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
3819
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3820
|
-
case "ValidationException":
|
|
3821
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
3822
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3823
|
-
default:
|
|
3824
|
-
const parsedBody = parsedOutput.body;
|
|
3825
|
-
return throwDefaultError({
|
|
3826
|
-
output,
|
|
3827
|
-
parsedBody,
|
|
3828
|
-
errorCode
|
|
3829
|
-
});
|
|
3830
|
-
}
|
|
3831
|
-
}, "de_UpdateServiceNetworkCommandError");
|
|
3832
2216
|
var de_UpdateServiceNetworkVpcAssociationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3833
2217
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3834
|
-
return
|
|
2218
|
+
return de_CommandError(output, context);
|
|
3835
2219
|
}
|
|
3836
2220
|
const contents = (0, import_smithy_client.map)({
|
|
3837
2221
|
$metadata: deserializeMetadata(output)
|
|
@@ -3847,43 +2231,9 @@ var de_UpdateServiceNetworkVpcAssociationCommand = /* @__PURE__ */ __name(async
|
|
|
3847
2231
|
Object.assign(contents, doc);
|
|
3848
2232
|
return contents;
|
|
3849
2233
|
}, "de_UpdateServiceNetworkVpcAssociationCommand");
|
|
3850
|
-
var de_UpdateServiceNetworkVpcAssociationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3851
|
-
const parsedOutput = {
|
|
3852
|
-
...output,
|
|
3853
|
-
body: await parseErrorBody(output.body, context)
|
|
3854
|
-
};
|
|
3855
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3856
|
-
switch (errorCode) {
|
|
3857
|
-
case "AccessDeniedException":
|
|
3858
|
-
case "com.amazonaws.vpclattice#AccessDeniedException":
|
|
3859
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3860
|
-
case "ConflictException":
|
|
3861
|
-
case "com.amazonaws.vpclattice#ConflictException":
|
|
3862
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3863
|
-
case "InternalServerException":
|
|
3864
|
-
case "com.amazonaws.vpclattice#InternalServerException":
|
|
3865
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3866
|
-
case "ResourceNotFoundException":
|
|
3867
|
-
case "com.amazonaws.vpclattice#ResourceNotFoundException":
|
|
3868
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3869
|
-
case "ThrottlingException":
|
|
3870
|
-
case "com.amazonaws.vpclattice#ThrottlingException":
|
|
3871
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3872
|
-
case "ValidationException":
|
|
3873
|
-
case "com.amazonaws.vpclattice#ValidationException":
|
|
3874
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3875
|
-
default:
|
|
3876
|
-
const parsedBody = parsedOutput.body;
|
|
3877
|
-
return throwDefaultError({
|
|
3878
|
-
output,
|
|
3879
|
-
parsedBody,
|
|
3880
|
-
errorCode
|
|
3881
|
-
});
|
|
3882
|
-
}
|
|
3883
|
-
}, "de_UpdateServiceNetworkVpcAssociationCommandError");
|
|
3884
2234
|
var de_UpdateTargetGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3885
2235
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3886
|
-
return
|
|
2236
|
+
return de_CommandError(output, context);
|
|
3887
2237
|
}
|
|
3888
2238
|
const contents = (0, import_smithy_client.map)({
|
|
3889
2239
|
$metadata: deserializeMetadata(output)
|
|
@@ -3900,7 +2250,7 @@ var de_UpdateTargetGroupCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3900
2250
|
Object.assign(contents, doc);
|
|
3901
2251
|
return contents;
|
|
3902
2252
|
}, "de_UpdateTargetGroupCommand");
|
|
3903
|
-
var
|
|
2253
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3904
2254
|
const parsedOutput = {
|
|
3905
2255
|
...output,
|
|
3906
2256
|
body: await parseErrorBody(output.body, context)
|
|
@@ -3925,6 +2275,9 @@ var de_UpdateTargetGroupCommandError = /* @__PURE__ */ __name(async (output, con
|
|
|
3925
2275
|
case "ValidationException":
|
|
3926
2276
|
case "com.amazonaws.vpclattice#ValidationException":
|
|
3927
2277
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2278
|
+
case "ServiceQuotaExceededException":
|
|
2279
|
+
case "com.amazonaws.vpclattice#ServiceQuotaExceededException":
|
|
2280
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3928
2281
|
default:
|
|
3929
2282
|
const parsedBody = parsedOutput.body;
|
|
3930
2283
|
return throwDefaultError({
|
|
@@ -3933,7 +2286,7 @@ var de_UpdateTargetGroupCommandError = /* @__PURE__ */ __name(async (output, con
|
|
|
3933
2286
|
errorCode
|
|
3934
2287
|
});
|
|
3935
2288
|
}
|
|
3936
|
-
}, "
|
|
2289
|
+
}, "de_CommandError");
|
|
3937
2290
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(VPCLatticeServiceException);
|
|
3938
2291
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
3939
2292
|
const contents = (0, import_smithy_client.map)({});
|