@aws-sdk/client-elasticsearch-service 3.503.1 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +105 -1513
- package/dist-es/protocols/Aws_restJson1.js +97 -1505
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -1387,7 +1387,7 @@ var se_UpgradeElasticsearchDomainCommand = /* @__PURE__ */ __name(async (input,
|
|
|
1387
1387
|
}, "se_UpgradeElasticsearchDomainCommand");
|
|
1388
1388
|
var de_AcceptInboundCrossClusterSearchConnectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1389
1389
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1390
|
-
return
|
|
1390
|
+
return de_CommandError(output, context);
|
|
1391
1391
|
}
|
|
1392
1392
|
const contents = (0, import_smithy_client.map)({
|
|
1393
1393
|
$metadata: deserializeMetadata(output)
|
|
@@ -1399,34 +1399,9 @@ var de_AcceptInboundCrossClusterSearchConnectionCommand = /* @__PURE__ */ __name
|
|
|
1399
1399
|
Object.assign(contents, doc);
|
|
1400
1400
|
return contents;
|
|
1401
1401
|
}, "de_AcceptInboundCrossClusterSearchConnectionCommand");
|
|
1402
|
-
var de_AcceptInboundCrossClusterSearchConnectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1403
|
-
const parsedOutput = {
|
|
1404
|
-
...output,
|
|
1405
|
-
body: await parseErrorBody(output.body, context)
|
|
1406
|
-
};
|
|
1407
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1408
|
-
switch (errorCode) {
|
|
1409
|
-
case "DisabledOperationException":
|
|
1410
|
-
case "com.amazonaws.elasticsearchservice#DisabledOperationException":
|
|
1411
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
1412
|
-
case "LimitExceededException":
|
|
1413
|
-
case "com.amazonaws.elasticsearchservice#LimitExceededException":
|
|
1414
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1415
|
-
case "ResourceNotFoundException":
|
|
1416
|
-
case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
|
|
1417
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1418
|
-
default:
|
|
1419
|
-
const parsedBody = parsedOutput.body;
|
|
1420
|
-
return throwDefaultError({
|
|
1421
|
-
output,
|
|
1422
|
-
parsedBody,
|
|
1423
|
-
errorCode
|
|
1424
|
-
});
|
|
1425
|
-
}
|
|
1426
|
-
}, "de_AcceptInboundCrossClusterSearchConnectionCommandError");
|
|
1427
1402
|
var de_AddTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1428
1403
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1429
|
-
return
|
|
1404
|
+
return de_CommandError(output, context);
|
|
1430
1405
|
}
|
|
1431
1406
|
const contents = (0, import_smithy_client.map)({
|
|
1432
1407
|
$metadata: deserializeMetadata(output)
|
|
@@ -1434,37 +1409,9 @@ var de_AddTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1434
1409
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1435
1410
|
return contents;
|
|
1436
1411
|
}, "de_AddTagsCommand");
|
|
1437
|
-
var de_AddTagsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1438
|
-
const parsedOutput = {
|
|
1439
|
-
...output,
|
|
1440
|
-
body: await parseErrorBody(output.body, context)
|
|
1441
|
-
};
|
|
1442
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1443
|
-
switch (errorCode) {
|
|
1444
|
-
case "BaseException":
|
|
1445
|
-
case "com.amazonaws.elasticsearchservice#BaseException":
|
|
1446
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1447
|
-
case "InternalException":
|
|
1448
|
-
case "com.amazonaws.elasticsearchservice#InternalException":
|
|
1449
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1450
|
-
case "LimitExceededException":
|
|
1451
|
-
case "com.amazonaws.elasticsearchservice#LimitExceededException":
|
|
1452
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1453
|
-
case "ValidationException":
|
|
1454
|
-
case "com.amazonaws.elasticsearchservice#ValidationException":
|
|
1455
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1456
|
-
default:
|
|
1457
|
-
const parsedBody = parsedOutput.body;
|
|
1458
|
-
return throwDefaultError({
|
|
1459
|
-
output,
|
|
1460
|
-
parsedBody,
|
|
1461
|
-
errorCode
|
|
1462
|
-
});
|
|
1463
|
-
}
|
|
1464
|
-
}, "de_AddTagsCommandError");
|
|
1465
1412
|
var de_AssociatePackageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1466
1413
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1467
|
-
return
|
|
1414
|
+
return de_CommandError(output, context);
|
|
1468
1415
|
}
|
|
1469
1416
|
const contents = (0, import_smithy_client.map)({
|
|
1470
1417
|
$metadata: deserializeMetadata(output)
|
|
@@ -1476,43 +1423,9 @@ var de_AssociatePackageCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1476
1423
|
Object.assign(contents, doc);
|
|
1477
1424
|
return contents;
|
|
1478
1425
|
}, "de_AssociatePackageCommand");
|
|
1479
|
-
var de_AssociatePackageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1480
|
-
const parsedOutput = {
|
|
1481
|
-
...output,
|
|
1482
|
-
body: await parseErrorBody(output.body, context)
|
|
1483
|
-
};
|
|
1484
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1485
|
-
switch (errorCode) {
|
|
1486
|
-
case "AccessDeniedException":
|
|
1487
|
-
case "com.amazonaws.elasticsearchservice#AccessDeniedException":
|
|
1488
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1489
|
-
case "BaseException":
|
|
1490
|
-
case "com.amazonaws.elasticsearchservice#BaseException":
|
|
1491
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1492
|
-
case "ConflictException":
|
|
1493
|
-
case "com.amazonaws.elasticsearchservice#ConflictException":
|
|
1494
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1495
|
-
case "InternalException":
|
|
1496
|
-
case "com.amazonaws.elasticsearchservice#InternalException":
|
|
1497
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1498
|
-
case "ResourceNotFoundException":
|
|
1499
|
-
case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
|
|
1500
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1501
|
-
case "ValidationException":
|
|
1502
|
-
case "com.amazonaws.elasticsearchservice#ValidationException":
|
|
1503
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1504
|
-
default:
|
|
1505
|
-
const parsedBody = parsedOutput.body;
|
|
1506
|
-
return throwDefaultError({
|
|
1507
|
-
output,
|
|
1508
|
-
parsedBody,
|
|
1509
|
-
errorCode
|
|
1510
|
-
});
|
|
1511
|
-
}
|
|
1512
|
-
}, "de_AssociatePackageCommandError");
|
|
1513
1426
|
var de_AuthorizeVpcEndpointAccessCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1514
1427
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1515
|
-
return
|
|
1428
|
+
return de_CommandError(output, context);
|
|
1516
1429
|
}
|
|
1517
1430
|
const contents = (0, import_smithy_client.map)({
|
|
1518
1431
|
$metadata: deserializeMetadata(output)
|
|
@@ -1524,43 +1437,9 @@ var de_AuthorizeVpcEndpointAccessCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1524
1437
|
Object.assign(contents, doc);
|
|
1525
1438
|
return contents;
|
|
1526
1439
|
}, "de_AuthorizeVpcEndpointAccessCommand");
|
|
1527
|
-
var de_AuthorizeVpcEndpointAccessCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1528
|
-
const parsedOutput = {
|
|
1529
|
-
...output,
|
|
1530
|
-
body: await parseErrorBody(output.body, context)
|
|
1531
|
-
};
|
|
1532
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1533
|
-
switch (errorCode) {
|
|
1534
|
-
case "BaseException":
|
|
1535
|
-
case "com.amazonaws.elasticsearchservice#BaseException":
|
|
1536
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1537
|
-
case "DisabledOperationException":
|
|
1538
|
-
case "com.amazonaws.elasticsearchservice#DisabledOperationException":
|
|
1539
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
1540
|
-
case "InternalException":
|
|
1541
|
-
case "com.amazonaws.elasticsearchservice#InternalException":
|
|
1542
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1543
|
-
case "LimitExceededException":
|
|
1544
|
-
case "com.amazonaws.elasticsearchservice#LimitExceededException":
|
|
1545
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1546
|
-
case "ResourceNotFoundException":
|
|
1547
|
-
case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
|
|
1548
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1549
|
-
case "ValidationException":
|
|
1550
|
-
case "com.amazonaws.elasticsearchservice#ValidationException":
|
|
1551
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1552
|
-
default:
|
|
1553
|
-
const parsedBody = parsedOutput.body;
|
|
1554
|
-
return throwDefaultError({
|
|
1555
|
-
output,
|
|
1556
|
-
parsedBody,
|
|
1557
|
-
errorCode
|
|
1558
|
-
});
|
|
1559
|
-
}
|
|
1560
|
-
}, "de_AuthorizeVpcEndpointAccessCommandError");
|
|
1561
1440
|
var de_CancelElasticsearchServiceSoftwareUpdateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1562
1441
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1563
|
-
return
|
|
1442
|
+
return de_CommandError(output, context);
|
|
1564
1443
|
}
|
|
1565
1444
|
const contents = (0, import_smithy_client.map)({
|
|
1566
1445
|
$metadata: deserializeMetadata(output)
|
|
@@ -1572,37 +1451,9 @@ var de_CancelElasticsearchServiceSoftwareUpdateCommand = /* @__PURE__ */ __name(
|
|
|
1572
1451
|
Object.assign(contents, doc);
|
|
1573
1452
|
return contents;
|
|
1574
1453
|
}, "de_CancelElasticsearchServiceSoftwareUpdateCommand");
|
|
1575
|
-
var de_CancelElasticsearchServiceSoftwareUpdateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1576
|
-
const parsedOutput = {
|
|
1577
|
-
...output,
|
|
1578
|
-
body: await parseErrorBody(output.body, context)
|
|
1579
|
-
};
|
|
1580
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1581
|
-
switch (errorCode) {
|
|
1582
|
-
case "BaseException":
|
|
1583
|
-
case "com.amazonaws.elasticsearchservice#BaseException":
|
|
1584
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1585
|
-
case "InternalException":
|
|
1586
|
-
case "com.amazonaws.elasticsearchservice#InternalException":
|
|
1587
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1588
|
-
case "ResourceNotFoundException":
|
|
1589
|
-
case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
|
|
1590
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1591
|
-
case "ValidationException":
|
|
1592
|
-
case "com.amazonaws.elasticsearchservice#ValidationException":
|
|
1593
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1594
|
-
default:
|
|
1595
|
-
const parsedBody = parsedOutput.body;
|
|
1596
|
-
return throwDefaultError({
|
|
1597
|
-
output,
|
|
1598
|
-
parsedBody,
|
|
1599
|
-
errorCode
|
|
1600
|
-
});
|
|
1601
|
-
}
|
|
1602
|
-
}, "de_CancelElasticsearchServiceSoftwareUpdateCommandError");
|
|
1603
1454
|
var de_CreateElasticsearchDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1604
1455
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1605
|
-
return
|
|
1456
|
+
return de_CommandError(output, context);
|
|
1606
1457
|
}
|
|
1607
1458
|
const contents = (0, import_smithy_client.map)({
|
|
1608
1459
|
$metadata: deserializeMetadata(output)
|
|
@@ -1614,46 +1465,9 @@ var de_CreateElasticsearchDomainCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1614
1465
|
Object.assign(contents, doc);
|
|
1615
1466
|
return contents;
|
|
1616
1467
|
}, "de_CreateElasticsearchDomainCommand");
|
|
1617
|
-
var de_CreateElasticsearchDomainCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1618
|
-
const parsedOutput = {
|
|
1619
|
-
...output,
|
|
1620
|
-
body: await parseErrorBody(output.body, context)
|
|
1621
|
-
};
|
|
1622
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1623
|
-
switch (errorCode) {
|
|
1624
|
-
case "BaseException":
|
|
1625
|
-
case "com.amazonaws.elasticsearchservice#BaseException":
|
|
1626
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1627
|
-
case "DisabledOperationException":
|
|
1628
|
-
case "com.amazonaws.elasticsearchservice#DisabledOperationException":
|
|
1629
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
1630
|
-
case "InternalException":
|
|
1631
|
-
case "com.amazonaws.elasticsearchservice#InternalException":
|
|
1632
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1633
|
-
case "InvalidTypeException":
|
|
1634
|
-
case "com.amazonaws.elasticsearchservice#InvalidTypeException":
|
|
1635
|
-
throw await de_InvalidTypeExceptionRes(parsedOutput, context);
|
|
1636
|
-
case "LimitExceededException":
|
|
1637
|
-
case "com.amazonaws.elasticsearchservice#LimitExceededException":
|
|
1638
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1639
|
-
case "ResourceAlreadyExistsException":
|
|
1640
|
-
case "com.amazonaws.elasticsearchservice#ResourceAlreadyExistsException":
|
|
1641
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1642
|
-
case "ValidationException":
|
|
1643
|
-
case "com.amazonaws.elasticsearchservice#ValidationException":
|
|
1644
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1645
|
-
default:
|
|
1646
|
-
const parsedBody = parsedOutput.body;
|
|
1647
|
-
return throwDefaultError({
|
|
1648
|
-
output,
|
|
1649
|
-
parsedBody,
|
|
1650
|
-
errorCode
|
|
1651
|
-
});
|
|
1652
|
-
}
|
|
1653
|
-
}, "de_CreateElasticsearchDomainCommandError");
|
|
1654
1468
|
var de_CreateOutboundCrossClusterSearchConnectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1655
1469
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1656
|
-
return
|
|
1470
|
+
return de_CommandError(output, context);
|
|
1657
1471
|
}
|
|
1658
1472
|
const contents = (0, import_smithy_client.map)({
|
|
1659
1473
|
$metadata: deserializeMetadata(output)
|
|
@@ -1669,37 +1483,9 @@ var de_CreateOutboundCrossClusterSearchConnectionCommand = /* @__PURE__ */ __nam
|
|
|
1669
1483
|
Object.assign(contents, doc);
|
|
1670
1484
|
return contents;
|
|
1671
1485
|
}, "de_CreateOutboundCrossClusterSearchConnectionCommand");
|
|
1672
|
-
var de_CreateOutboundCrossClusterSearchConnectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1673
|
-
const parsedOutput = {
|
|
1674
|
-
...output,
|
|
1675
|
-
body: await parseErrorBody(output.body, context)
|
|
1676
|
-
};
|
|
1677
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1678
|
-
switch (errorCode) {
|
|
1679
|
-
case "DisabledOperationException":
|
|
1680
|
-
case "com.amazonaws.elasticsearchservice#DisabledOperationException":
|
|
1681
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
1682
|
-
case "InternalException":
|
|
1683
|
-
case "com.amazonaws.elasticsearchservice#InternalException":
|
|
1684
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1685
|
-
case "LimitExceededException":
|
|
1686
|
-
case "com.amazonaws.elasticsearchservice#LimitExceededException":
|
|
1687
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1688
|
-
case "ResourceAlreadyExistsException":
|
|
1689
|
-
case "com.amazonaws.elasticsearchservice#ResourceAlreadyExistsException":
|
|
1690
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1691
|
-
default:
|
|
1692
|
-
const parsedBody = parsedOutput.body;
|
|
1693
|
-
return throwDefaultError({
|
|
1694
|
-
output,
|
|
1695
|
-
parsedBody,
|
|
1696
|
-
errorCode
|
|
1697
|
-
});
|
|
1698
|
-
}
|
|
1699
|
-
}, "de_CreateOutboundCrossClusterSearchConnectionCommandError");
|
|
1700
1486
|
var de_CreatePackageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1701
1487
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1702
|
-
return
|
|
1488
|
+
return de_CommandError(output, context);
|
|
1703
1489
|
}
|
|
1704
1490
|
const contents = (0, import_smithy_client.map)({
|
|
1705
1491
|
$metadata: deserializeMetadata(output)
|
|
@@ -1711,46 +1497,9 @@ var de_CreatePackageCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1711
1497
|
Object.assign(contents, doc);
|
|
1712
1498
|
return contents;
|
|
1713
1499
|
}, "de_CreatePackageCommand");
|
|
1714
|
-
var de_CreatePackageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1715
|
-
const parsedOutput = {
|
|
1716
|
-
...output,
|
|
1717
|
-
body: await parseErrorBody(output.body, context)
|
|
1718
|
-
};
|
|
1719
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1720
|
-
switch (errorCode) {
|
|
1721
|
-
case "AccessDeniedException":
|
|
1722
|
-
case "com.amazonaws.elasticsearchservice#AccessDeniedException":
|
|
1723
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1724
|
-
case "BaseException":
|
|
1725
|
-
case "com.amazonaws.elasticsearchservice#BaseException":
|
|
1726
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1727
|
-
case "InternalException":
|
|
1728
|
-
case "com.amazonaws.elasticsearchservice#InternalException":
|
|
1729
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1730
|
-
case "InvalidTypeException":
|
|
1731
|
-
case "com.amazonaws.elasticsearchservice#InvalidTypeException":
|
|
1732
|
-
throw await de_InvalidTypeExceptionRes(parsedOutput, context);
|
|
1733
|
-
case "LimitExceededException":
|
|
1734
|
-
case "com.amazonaws.elasticsearchservice#LimitExceededException":
|
|
1735
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1736
|
-
case "ResourceAlreadyExistsException":
|
|
1737
|
-
case "com.amazonaws.elasticsearchservice#ResourceAlreadyExistsException":
|
|
1738
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1739
|
-
case "ValidationException":
|
|
1740
|
-
case "com.amazonaws.elasticsearchservice#ValidationException":
|
|
1741
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1742
|
-
default:
|
|
1743
|
-
const parsedBody = parsedOutput.body;
|
|
1744
|
-
return throwDefaultError({
|
|
1745
|
-
output,
|
|
1746
|
-
parsedBody,
|
|
1747
|
-
errorCode
|
|
1748
|
-
});
|
|
1749
|
-
}
|
|
1750
|
-
}, "de_CreatePackageCommandError");
|
|
1751
1500
|
var de_CreateVpcEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1752
1501
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1753
|
-
return
|
|
1502
|
+
return de_CommandError(output, context);
|
|
1754
1503
|
}
|
|
1755
1504
|
const contents = (0, import_smithy_client.map)({
|
|
1756
1505
|
$metadata: deserializeMetadata(output)
|
|
@@ -1762,43 +1511,9 @@ var de_CreateVpcEndpointCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1762
1511
|
Object.assign(contents, doc);
|
|
1763
1512
|
return contents;
|
|
1764
1513
|
}, "de_CreateVpcEndpointCommand");
|
|
1765
|
-
var de_CreateVpcEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1766
|
-
const parsedOutput = {
|
|
1767
|
-
...output,
|
|
1768
|
-
body: await parseErrorBody(output.body, context)
|
|
1769
|
-
};
|
|
1770
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1771
|
-
switch (errorCode) {
|
|
1772
|
-
case "BaseException":
|
|
1773
|
-
case "com.amazonaws.elasticsearchservice#BaseException":
|
|
1774
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1775
|
-
case "ConflictException":
|
|
1776
|
-
case "com.amazonaws.elasticsearchservice#ConflictException":
|
|
1777
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1778
|
-
case "DisabledOperationException":
|
|
1779
|
-
case "com.amazonaws.elasticsearchservice#DisabledOperationException":
|
|
1780
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
1781
|
-
case "InternalException":
|
|
1782
|
-
case "com.amazonaws.elasticsearchservice#InternalException":
|
|
1783
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1784
|
-
case "LimitExceededException":
|
|
1785
|
-
case "com.amazonaws.elasticsearchservice#LimitExceededException":
|
|
1786
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1787
|
-
case "ValidationException":
|
|
1788
|
-
case "com.amazonaws.elasticsearchservice#ValidationException":
|
|
1789
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1790
|
-
default:
|
|
1791
|
-
const parsedBody = parsedOutput.body;
|
|
1792
|
-
return throwDefaultError({
|
|
1793
|
-
output,
|
|
1794
|
-
parsedBody,
|
|
1795
|
-
errorCode
|
|
1796
|
-
});
|
|
1797
|
-
}
|
|
1798
|
-
}, "de_CreateVpcEndpointCommandError");
|
|
1799
1514
|
var de_DeleteElasticsearchDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1800
1515
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1801
|
-
return
|
|
1516
|
+
return de_CommandError(output, context);
|
|
1802
1517
|
}
|
|
1803
1518
|
const contents = (0, import_smithy_client.map)({
|
|
1804
1519
|
$metadata: deserializeMetadata(output)
|
|
@@ -1810,37 +1525,9 @@ var de_DeleteElasticsearchDomainCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1810
1525
|
Object.assign(contents, doc);
|
|
1811
1526
|
return contents;
|
|
1812
1527
|
}, "de_DeleteElasticsearchDomainCommand");
|
|
1813
|
-
var de_DeleteElasticsearchDomainCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1814
|
-
const parsedOutput = {
|
|
1815
|
-
...output,
|
|
1816
|
-
body: await parseErrorBody(output.body, context)
|
|
1817
|
-
};
|
|
1818
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1819
|
-
switch (errorCode) {
|
|
1820
|
-
case "BaseException":
|
|
1821
|
-
case "com.amazonaws.elasticsearchservice#BaseException":
|
|
1822
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1823
|
-
case "InternalException":
|
|
1824
|
-
case "com.amazonaws.elasticsearchservice#InternalException":
|
|
1825
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1826
|
-
case "ResourceNotFoundException":
|
|
1827
|
-
case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
|
|
1828
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1829
|
-
case "ValidationException":
|
|
1830
|
-
case "com.amazonaws.elasticsearchservice#ValidationException":
|
|
1831
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1832
|
-
default:
|
|
1833
|
-
const parsedBody = parsedOutput.body;
|
|
1834
|
-
return throwDefaultError({
|
|
1835
|
-
output,
|
|
1836
|
-
parsedBody,
|
|
1837
|
-
errorCode
|
|
1838
|
-
});
|
|
1839
|
-
}
|
|
1840
|
-
}, "de_DeleteElasticsearchDomainCommandError");
|
|
1841
1528
|
var de_DeleteElasticsearchServiceRoleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1842
1529
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1843
|
-
return
|
|
1530
|
+
return de_CommandError(output, context);
|
|
1844
1531
|
}
|
|
1845
1532
|
const contents = (0, import_smithy_client.map)({
|
|
1846
1533
|
$metadata: deserializeMetadata(output)
|
|
@@ -1848,34 +1535,9 @@ var de_DeleteElasticsearchServiceRoleCommand = /* @__PURE__ */ __name(async (out
|
|
|
1848
1535
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1849
1536
|
return contents;
|
|
1850
1537
|
}, "de_DeleteElasticsearchServiceRoleCommand");
|
|
1851
|
-
var de_DeleteElasticsearchServiceRoleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1852
|
-
const parsedOutput = {
|
|
1853
|
-
...output,
|
|
1854
|
-
body: await parseErrorBody(output.body, context)
|
|
1855
|
-
};
|
|
1856
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1857
|
-
switch (errorCode) {
|
|
1858
|
-
case "BaseException":
|
|
1859
|
-
case "com.amazonaws.elasticsearchservice#BaseException":
|
|
1860
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1861
|
-
case "InternalException":
|
|
1862
|
-
case "com.amazonaws.elasticsearchservice#InternalException":
|
|
1863
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1864
|
-
case "ValidationException":
|
|
1865
|
-
case "com.amazonaws.elasticsearchservice#ValidationException":
|
|
1866
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1867
|
-
default:
|
|
1868
|
-
const parsedBody = parsedOutput.body;
|
|
1869
|
-
return throwDefaultError({
|
|
1870
|
-
output,
|
|
1871
|
-
parsedBody,
|
|
1872
|
-
errorCode
|
|
1873
|
-
});
|
|
1874
|
-
}
|
|
1875
|
-
}, "de_DeleteElasticsearchServiceRoleCommandError");
|
|
1876
1538
|
var de_DeleteInboundCrossClusterSearchConnectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1877
1539
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1878
|
-
return
|
|
1540
|
+
return de_CommandError(output, context);
|
|
1879
1541
|
}
|
|
1880
1542
|
const contents = (0, import_smithy_client.map)({
|
|
1881
1543
|
$metadata: deserializeMetadata(output)
|
|
@@ -1887,31 +1549,9 @@ var de_DeleteInboundCrossClusterSearchConnectionCommand = /* @__PURE__ */ __name
|
|
|
1887
1549
|
Object.assign(contents, doc);
|
|
1888
1550
|
return contents;
|
|
1889
1551
|
}, "de_DeleteInboundCrossClusterSearchConnectionCommand");
|
|
1890
|
-
var de_DeleteInboundCrossClusterSearchConnectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1891
|
-
const parsedOutput = {
|
|
1892
|
-
...output,
|
|
1893
|
-
body: await parseErrorBody(output.body, context)
|
|
1894
|
-
};
|
|
1895
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1896
|
-
switch (errorCode) {
|
|
1897
|
-
case "DisabledOperationException":
|
|
1898
|
-
case "com.amazonaws.elasticsearchservice#DisabledOperationException":
|
|
1899
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
1900
|
-
case "ResourceNotFoundException":
|
|
1901
|
-
case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
|
|
1902
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1903
|
-
default:
|
|
1904
|
-
const parsedBody = parsedOutput.body;
|
|
1905
|
-
return throwDefaultError({
|
|
1906
|
-
output,
|
|
1907
|
-
parsedBody,
|
|
1908
|
-
errorCode
|
|
1909
|
-
});
|
|
1910
|
-
}
|
|
1911
|
-
}, "de_DeleteInboundCrossClusterSearchConnectionCommandError");
|
|
1912
1552
|
var de_DeleteOutboundCrossClusterSearchConnectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1913
1553
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1914
|
-
return
|
|
1554
|
+
return de_CommandError(output, context);
|
|
1915
1555
|
}
|
|
1916
1556
|
const contents = (0, import_smithy_client.map)({
|
|
1917
1557
|
$metadata: deserializeMetadata(output)
|
|
@@ -1923,31 +1563,9 @@ var de_DeleteOutboundCrossClusterSearchConnectionCommand = /* @__PURE__ */ __nam
|
|
|
1923
1563
|
Object.assign(contents, doc);
|
|
1924
1564
|
return contents;
|
|
1925
1565
|
}, "de_DeleteOutboundCrossClusterSearchConnectionCommand");
|
|
1926
|
-
var de_DeleteOutboundCrossClusterSearchConnectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1927
|
-
const parsedOutput = {
|
|
1928
|
-
...output,
|
|
1929
|
-
body: await parseErrorBody(output.body, context)
|
|
1930
|
-
};
|
|
1931
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1932
|
-
switch (errorCode) {
|
|
1933
|
-
case "DisabledOperationException":
|
|
1934
|
-
case "com.amazonaws.elasticsearchservice#DisabledOperationException":
|
|
1935
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
1936
|
-
case "ResourceNotFoundException":
|
|
1937
|
-
case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
|
|
1938
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1939
|
-
default:
|
|
1940
|
-
const parsedBody = parsedOutput.body;
|
|
1941
|
-
return throwDefaultError({
|
|
1942
|
-
output,
|
|
1943
|
-
parsedBody,
|
|
1944
|
-
errorCode
|
|
1945
|
-
});
|
|
1946
|
-
}
|
|
1947
|
-
}, "de_DeleteOutboundCrossClusterSearchConnectionCommandError");
|
|
1948
1566
|
var de_DeletePackageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1949
1567
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1950
|
-
return
|
|
1568
|
+
return de_CommandError(output, context);
|
|
1951
1569
|
}
|
|
1952
1570
|
const contents = (0, import_smithy_client.map)({
|
|
1953
1571
|
$metadata: deserializeMetadata(output)
|
|
@@ -1959,43 +1577,9 @@ var de_DeletePackageCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1959
1577
|
Object.assign(contents, doc);
|
|
1960
1578
|
return contents;
|
|
1961
1579
|
}, "de_DeletePackageCommand");
|
|
1962
|
-
var de_DeletePackageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1963
|
-
const parsedOutput = {
|
|
1964
|
-
...output,
|
|
1965
|
-
body: await parseErrorBody(output.body, context)
|
|
1966
|
-
};
|
|
1967
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1968
|
-
switch (errorCode) {
|
|
1969
|
-
case "AccessDeniedException":
|
|
1970
|
-
case "com.amazonaws.elasticsearchservice#AccessDeniedException":
|
|
1971
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1972
|
-
case "BaseException":
|
|
1973
|
-
case "com.amazonaws.elasticsearchservice#BaseException":
|
|
1974
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1975
|
-
case "ConflictException":
|
|
1976
|
-
case "com.amazonaws.elasticsearchservice#ConflictException":
|
|
1977
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1978
|
-
case "InternalException":
|
|
1979
|
-
case "com.amazonaws.elasticsearchservice#InternalException":
|
|
1980
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1981
|
-
case "ResourceNotFoundException":
|
|
1982
|
-
case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
|
|
1983
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1984
|
-
case "ValidationException":
|
|
1985
|
-
case "com.amazonaws.elasticsearchservice#ValidationException":
|
|
1986
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1987
|
-
default:
|
|
1988
|
-
const parsedBody = parsedOutput.body;
|
|
1989
|
-
return throwDefaultError({
|
|
1990
|
-
output,
|
|
1991
|
-
parsedBody,
|
|
1992
|
-
errorCode
|
|
1993
|
-
});
|
|
1994
|
-
}
|
|
1995
|
-
}, "de_DeletePackageCommandError");
|
|
1996
1580
|
var de_DeleteVpcEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1997
1581
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1998
|
-
return
|
|
1582
|
+
return de_CommandError(output, context);
|
|
1999
1583
|
}
|
|
2000
1584
|
const contents = (0, import_smithy_client.map)({
|
|
2001
1585
|
$metadata: deserializeMetadata(output)
|
|
@@ -2007,37 +1591,9 @@ var de_DeleteVpcEndpointCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2007
1591
|
Object.assign(contents, doc);
|
|
2008
1592
|
return contents;
|
|
2009
1593
|
}, "de_DeleteVpcEndpointCommand");
|
|
2010
|
-
var de_DeleteVpcEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2011
|
-
const parsedOutput = {
|
|
2012
|
-
...output,
|
|
2013
|
-
body: await parseErrorBody(output.body, context)
|
|
2014
|
-
};
|
|
2015
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2016
|
-
switch (errorCode) {
|
|
2017
|
-
case "BaseException":
|
|
2018
|
-
case "com.amazonaws.elasticsearchservice#BaseException":
|
|
2019
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2020
|
-
case "DisabledOperationException":
|
|
2021
|
-
case "com.amazonaws.elasticsearchservice#DisabledOperationException":
|
|
2022
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
2023
|
-
case "InternalException":
|
|
2024
|
-
case "com.amazonaws.elasticsearchservice#InternalException":
|
|
2025
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2026
|
-
case "ResourceNotFoundException":
|
|
2027
|
-
case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
|
|
2028
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2029
|
-
default:
|
|
2030
|
-
const parsedBody = parsedOutput.body;
|
|
2031
|
-
return throwDefaultError({
|
|
2032
|
-
output,
|
|
2033
|
-
parsedBody,
|
|
2034
|
-
errorCode
|
|
2035
|
-
});
|
|
2036
|
-
}
|
|
2037
|
-
}, "de_DeleteVpcEndpointCommandError");
|
|
2038
1594
|
var de_DescribeDomainAutoTunesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2039
1595
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2040
|
-
return
|
|
1596
|
+
return de_CommandError(output, context);
|
|
2041
1597
|
}
|
|
2042
1598
|
const contents = (0, import_smithy_client.map)({
|
|
2043
1599
|
$metadata: deserializeMetadata(output)
|
|
@@ -2050,37 +1606,9 @@ var de_DescribeDomainAutoTunesCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2050
1606
|
Object.assign(contents, doc);
|
|
2051
1607
|
return contents;
|
|
2052
1608
|
}, "de_DescribeDomainAutoTunesCommand");
|
|
2053
|
-
var de_DescribeDomainAutoTunesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2054
|
-
const parsedOutput = {
|
|
2055
|
-
...output,
|
|
2056
|
-
body: await parseErrorBody(output.body, context)
|
|
2057
|
-
};
|
|
2058
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2059
|
-
switch (errorCode) {
|
|
2060
|
-
case "BaseException":
|
|
2061
|
-
case "com.amazonaws.elasticsearchservice#BaseException":
|
|
2062
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2063
|
-
case "InternalException":
|
|
2064
|
-
case "com.amazonaws.elasticsearchservice#InternalException":
|
|
2065
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2066
|
-
case "ResourceNotFoundException":
|
|
2067
|
-
case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
|
|
2068
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2069
|
-
case "ValidationException":
|
|
2070
|
-
case "com.amazonaws.elasticsearchservice#ValidationException":
|
|
2071
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2072
|
-
default:
|
|
2073
|
-
const parsedBody = parsedOutput.body;
|
|
2074
|
-
return throwDefaultError({
|
|
2075
|
-
output,
|
|
2076
|
-
parsedBody,
|
|
2077
|
-
errorCode
|
|
2078
|
-
});
|
|
2079
|
-
}
|
|
2080
|
-
}, "de_DescribeDomainAutoTunesCommandError");
|
|
2081
1609
|
var de_DescribeDomainChangeProgressCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2082
1610
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2083
|
-
return
|
|
1611
|
+
return de_CommandError(output, context);
|
|
2084
1612
|
}
|
|
2085
1613
|
const contents = (0, import_smithy_client.map)({
|
|
2086
1614
|
$metadata: deserializeMetadata(output)
|
|
@@ -2092,37 +1620,9 @@ var de_DescribeDomainChangeProgressCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
2092
1620
|
Object.assign(contents, doc);
|
|
2093
1621
|
return contents;
|
|
2094
1622
|
}, "de_DescribeDomainChangeProgressCommand");
|
|
2095
|
-
var de_DescribeDomainChangeProgressCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2096
|
-
const parsedOutput = {
|
|
2097
|
-
...output,
|
|
2098
|
-
body: await parseErrorBody(output.body, context)
|
|
2099
|
-
};
|
|
2100
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2101
|
-
switch (errorCode) {
|
|
2102
|
-
case "BaseException":
|
|
2103
|
-
case "com.amazonaws.elasticsearchservice#BaseException":
|
|
2104
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2105
|
-
case "InternalException":
|
|
2106
|
-
case "com.amazonaws.elasticsearchservice#InternalException":
|
|
2107
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2108
|
-
case "ResourceNotFoundException":
|
|
2109
|
-
case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
|
|
2110
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2111
|
-
case "ValidationException":
|
|
2112
|
-
case "com.amazonaws.elasticsearchservice#ValidationException":
|
|
2113
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2114
|
-
default:
|
|
2115
|
-
const parsedBody = parsedOutput.body;
|
|
2116
|
-
return throwDefaultError({
|
|
2117
|
-
output,
|
|
2118
|
-
parsedBody,
|
|
2119
|
-
errorCode
|
|
2120
|
-
});
|
|
2121
|
-
}
|
|
2122
|
-
}, "de_DescribeDomainChangeProgressCommandError");
|
|
2123
1623
|
var de_DescribeElasticsearchDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2124
1624
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2125
|
-
return
|
|
1625
|
+
return de_CommandError(output, context);
|
|
2126
1626
|
}
|
|
2127
1627
|
const contents = (0, import_smithy_client.map)({
|
|
2128
1628
|
$metadata: deserializeMetadata(output)
|
|
@@ -2134,37 +1634,9 @@ var de_DescribeElasticsearchDomainCommand = /* @__PURE__ */ __name(async (output
|
|
|
2134
1634
|
Object.assign(contents, doc);
|
|
2135
1635
|
return contents;
|
|
2136
1636
|
}, "de_DescribeElasticsearchDomainCommand");
|
|
2137
|
-
var de_DescribeElasticsearchDomainCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2138
|
-
const parsedOutput = {
|
|
2139
|
-
...output,
|
|
2140
|
-
body: await parseErrorBody(output.body, context)
|
|
2141
|
-
};
|
|
2142
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2143
|
-
switch (errorCode) {
|
|
2144
|
-
case "BaseException":
|
|
2145
|
-
case "com.amazonaws.elasticsearchservice#BaseException":
|
|
2146
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2147
|
-
case "InternalException":
|
|
2148
|
-
case "com.amazonaws.elasticsearchservice#InternalException":
|
|
2149
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2150
|
-
case "ResourceNotFoundException":
|
|
2151
|
-
case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
|
|
2152
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2153
|
-
case "ValidationException":
|
|
2154
|
-
case "com.amazonaws.elasticsearchservice#ValidationException":
|
|
2155
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2156
|
-
default:
|
|
2157
|
-
const parsedBody = parsedOutput.body;
|
|
2158
|
-
return throwDefaultError({
|
|
2159
|
-
output,
|
|
2160
|
-
parsedBody,
|
|
2161
|
-
errorCode
|
|
2162
|
-
});
|
|
2163
|
-
}
|
|
2164
|
-
}, "de_DescribeElasticsearchDomainCommandError");
|
|
2165
1637
|
var de_DescribeElasticsearchDomainConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2166
1638
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2167
|
-
return
|
|
1639
|
+
return de_CommandError(output, context);
|
|
2168
1640
|
}
|
|
2169
1641
|
const contents = (0, import_smithy_client.map)({
|
|
2170
1642
|
$metadata: deserializeMetadata(output)
|
|
@@ -2176,37 +1648,9 @@ var de_DescribeElasticsearchDomainConfigCommand = /* @__PURE__ */ __name(async (
|
|
|
2176
1648
|
Object.assign(contents, doc);
|
|
2177
1649
|
return contents;
|
|
2178
1650
|
}, "de_DescribeElasticsearchDomainConfigCommand");
|
|
2179
|
-
var de_DescribeElasticsearchDomainConfigCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2180
|
-
const parsedOutput = {
|
|
2181
|
-
...output,
|
|
2182
|
-
body: await parseErrorBody(output.body, context)
|
|
2183
|
-
};
|
|
2184
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2185
|
-
switch (errorCode) {
|
|
2186
|
-
case "BaseException":
|
|
2187
|
-
case "com.amazonaws.elasticsearchservice#BaseException":
|
|
2188
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2189
|
-
case "InternalException":
|
|
2190
|
-
case "com.amazonaws.elasticsearchservice#InternalException":
|
|
2191
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2192
|
-
case "ResourceNotFoundException":
|
|
2193
|
-
case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
|
|
2194
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2195
|
-
case "ValidationException":
|
|
2196
|
-
case "com.amazonaws.elasticsearchservice#ValidationException":
|
|
2197
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2198
|
-
default:
|
|
2199
|
-
const parsedBody = parsedOutput.body;
|
|
2200
|
-
return throwDefaultError({
|
|
2201
|
-
output,
|
|
2202
|
-
parsedBody,
|
|
2203
|
-
errorCode
|
|
2204
|
-
});
|
|
2205
|
-
}
|
|
2206
|
-
}, "de_DescribeElasticsearchDomainConfigCommandError");
|
|
2207
1651
|
var de_DescribeElasticsearchDomainsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2208
1652
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2209
|
-
return
|
|
1653
|
+
return de_CommandError(output, context);
|
|
2210
1654
|
}
|
|
2211
1655
|
const contents = (0, import_smithy_client.map)({
|
|
2212
1656
|
$metadata: deserializeMetadata(output)
|
|
@@ -2218,34 +1662,9 @@ var de_DescribeElasticsearchDomainsCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
2218
1662
|
Object.assign(contents, doc);
|
|
2219
1663
|
return contents;
|
|
2220
1664
|
}, "de_DescribeElasticsearchDomainsCommand");
|
|
2221
|
-
var de_DescribeElasticsearchDomainsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2222
|
-
const parsedOutput = {
|
|
2223
|
-
...output,
|
|
2224
|
-
body: await parseErrorBody(output.body, context)
|
|
2225
|
-
};
|
|
2226
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2227
|
-
switch (errorCode) {
|
|
2228
|
-
case "BaseException":
|
|
2229
|
-
case "com.amazonaws.elasticsearchservice#BaseException":
|
|
2230
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2231
|
-
case "InternalException":
|
|
2232
|
-
case "com.amazonaws.elasticsearchservice#InternalException":
|
|
2233
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2234
|
-
case "ValidationException":
|
|
2235
|
-
case "com.amazonaws.elasticsearchservice#ValidationException":
|
|
2236
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2237
|
-
default:
|
|
2238
|
-
const parsedBody = parsedOutput.body;
|
|
2239
|
-
return throwDefaultError({
|
|
2240
|
-
output,
|
|
2241
|
-
parsedBody,
|
|
2242
|
-
errorCode
|
|
2243
|
-
});
|
|
2244
|
-
}
|
|
2245
|
-
}, "de_DescribeElasticsearchDomainsCommandError");
|
|
2246
1665
|
var de_DescribeElasticsearchInstanceTypeLimitsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2247
1666
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2248
|
-
return
|
|
1667
|
+
return de_CommandError(output, context);
|
|
2249
1668
|
}
|
|
2250
1669
|
const contents = (0, import_smithy_client.map)({
|
|
2251
1670
|
$metadata: deserializeMetadata(output)
|
|
@@ -2257,43 +1676,9 @@ var de_DescribeElasticsearchInstanceTypeLimitsCommand = /* @__PURE__ */ __name(a
|
|
|
2257
1676
|
Object.assign(contents, doc);
|
|
2258
1677
|
return contents;
|
|
2259
1678
|
}, "de_DescribeElasticsearchInstanceTypeLimitsCommand");
|
|
2260
|
-
var de_DescribeElasticsearchInstanceTypeLimitsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2261
|
-
const parsedOutput = {
|
|
2262
|
-
...output,
|
|
2263
|
-
body: await parseErrorBody(output.body, context)
|
|
2264
|
-
};
|
|
2265
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2266
|
-
switch (errorCode) {
|
|
2267
|
-
case "BaseException":
|
|
2268
|
-
case "com.amazonaws.elasticsearchservice#BaseException":
|
|
2269
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2270
|
-
case "InternalException":
|
|
2271
|
-
case "com.amazonaws.elasticsearchservice#InternalException":
|
|
2272
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2273
|
-
case "InvalidTypeException":
|
|
2274
|
-
case "com.amazonaws.elasticsearchservice#InvalidTypeException":
|
|
2275
|
-
throw await de_InvalidTypeExceptionRes(parsedOutput, context);
|
|
2276
|
-
case "LimitExceededException":
|
|
2277
|
-
case "com.amazonaws.elasticsearchservice#LimitExceededException":
|
|
2278
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2279
|
-
case "ResourceNotFoundException":
|
|
2280
|
-
case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
|
|
2281
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2282
|
-
case "ValidationException":
|
|
2283
|
-
case "com.amazonaws.elasticsearchservice#ValidationException":
|
|
2284
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2285
|
-
default:
|
|
2286
|
-
const parsedBody = parsedOutput.body;
|
|
2287
|
-
return throwDefaultError({
|
|
2288
|
-
output,
|
|
2289
|
-
parsedBody,
|
|
2290
|
-
errorCode
|
|
2291
|
-
});
|
|
2292
|
-
}
|
|
2293
|
-
}, "de_DescribeElasticsearchInstanceTypeLimitsCommandError");
|
|
2294
1679
|
var de_DescribeInboundCrossClusterSearchConnectionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2295
1680
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2296
|
-
return
|
|
1681
|
+
return de_CommandError(output, context);
|
|
2297
1682
|
}
|
|
2298
1683
|
const contents = (0, import_smithy_client.map)({
|
|
2299
1684
|
$metadata: deserializeMetadata(output)
|
|
@@ -2306,31 +1691,9 @@ var de_DescribeInboundCrossClusterSearchConnectionsCommand = /* @__PURE__ */ __n
|
|
|
2306
1691
|
Object.assign(contents, doc);
|
|
2307
1692
|
return contents;
|
|
2308
1693
|
}, "de_DescribeInboundCrossClusterSearchConnectionsCommand");
|
|
2309
|
-
var de_DescribeInboundCrossClusterSearchConnectionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2310
|
-
const parsedOutput = {
|
|
2311
|
-
...output,
|
|
2312
|
-
body: await parseErrorBody(output.body, context)
|
|
2313
|
-
};
|
|
2314
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2315
|
-
switch (errorCode) {
|
|
2316
|
-
case "DisabledOperationException":
|
|
2317
|
-
case "com.amazonaws.elasticsearchservice#DisabledOperationException":
|
|
2318
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
2319
|
-
case "InvalidPaginationTokenException":
|
|
2320
|
-
case "com.amazonaws.elasticsearchservice#InvalidPaginationTokenException":
|
|
2321
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
2322
|
-
default:
|
|
2323
|
-
const parsedBody = parsedOutput.body;
|
|
2324
|
-
return throwDefaultError({
|
|
2325
|
-
output,
|
|
2326
|
-
parsedBody,
|
|
2327
|
-
errorCode
|
|
2328
|
-
});
|
|
2329
|
-
}
|
|
2330
|
-
}, "de_DescribeInboundCrossClusterSearchConnectionsCommandError");
|
|
2331
1694
|
var de_DescribeOutboundCrossClusterSearchConnectionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2332
1695
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2333
|
-
return
|
|
1696
|
+
return de_CommandError(output, context);
|
|
2334
1697
|
}
|
|
2335
1698
|
const contents = (0, import_smithy_client.map)({
|
|
2336
1699
|
$metadata: deserializeMetadata(output)
|
|
@@ -2343,31 +1706,9 @@ var de_DescribeOutboundCrossClusterSearchConnectionsCommand = /* @__PURE__ */ __
|
|
|
2343
1706
|
Object.assign(contents, doc);
|
|
2344
1707
|
return contents;
|
|
2345
1708
|
}, "de_DescribeOutboundCrossClusterSearchConnectionsCommand");
|
|
2346
|
-
var de_DescribeOutboundCrossClusterSearchConnectionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2347
|
-
const parsedOutput = {
|
|
2348
|
-
...output,
|
|
2349
|
-
body: await parseErrorBody(output.body, context)
|
|
2350
|
-
};
|
|
2351
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2352
|
-
switch (errorCode) {
|
|
2353
|
-
case "DisabledOperationException":
|
|
2354
|
-
case "com.amazonaws.elasticsearchservice#DisabledOperationException":
|
|
2355
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
2356
|
-
case "InvalidPaginationTokenException":
|
|
2357
|
-
case "com.amazonaws.elasticsearchservice#InvalidPaginationTokenException":
|
|
2358
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
2359
|
-
default:
|
|
2360
|
-
const parsedBody = parsedOutput.body;
|
|
2361
|
-
return throwDefaultError({
|
|
2362
|
-
output,
|
|
2363
|
-
parsedBody,
|
|
2364
|
-
errorCode
|
|
2365
|
-
});
|
|
2366
|
-
}
|
|
2367
|
-
}, "de_DescribeOutboundCrossClusterSearchConnectionsCommandError");
|
|
2368
1709
|
var de_DescribePackagesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2369
1710
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2370
|
-
return
|
|
1711
|
+
return de_CommandError(output, context);
|
|
2371
1712
|
}
|
|
2372
1713
|
const contents = (0, import_smithy_client.map)({
|
|
2373
1714
|
$metadata: deserializeMetadata(output)
|
|
@@ -2380,40 +1721,9 @@ var de_DescribePackagesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2380
1721
|
Object.assign(contents, doc);
|
|
2381
1722
|
return contents;
|
|
2382
1723
|
}, "de_DescribePackagesCommand");
|
|
2383
|
-
var de_DescribePackagesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2384
|
-
const parsedOutput = {
|
|
2385
|
-
...output,
|
|
2386
|
-
body: await parseErrorBody(output.body, context)
|
|
2387
|
-
};
|
|
2388
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2389
|
-
switch (errorCode) {
|
|
2390
|
-
case "AccessDeniedException":
|
|
2391
|
-
case "com.amazonaws.elasticsearchservice#AccessDeniedException":
|
|
2392
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2393
|
-
case "BaseException":
|
|
2394
|
-
case "com.amazonaws.elasticsearchservice#BaseException":
|
|
2395
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2396
|
-
case "InternalException":
|
|
2397
|
-
case "com.amazonaws.elasticsearchservice#InternalException":
|
|
2398
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2399
|
-
case "ResourceNotFoundException":
|
|
2400
|
-
case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
|
|
2401
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2402
|
-
case "ValidationException":
|
|
2403
|
-
case "com.amazonaws.elasticsearchservice#ValidationException":
|
|
2404
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2405
|
-
default:
|
|
2406
|
-
const parsedBody = parsedOutput.body;
|
|
2407
|
-
return throwDefaultError({
|
|
2408
|
-
output,
|
|
2409
|
-
parsedBody,
|
|
2410
|
-
errorCode
|
|
2411
|
-
});
|
|
2412
|
-
}
|
|
2413
|
-
}, "de_DescribePackagesCommandError");
|
|
2414
1724
|
var de_DescribeReservedElasticsearchInstanceOfferingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2415
1725
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2416
|
-
return
|
|
1726
|
+
return de_CommandError(output, context);
|
|
2417
1727
|
}
|
|
2418
1728
|
const contents = (0, import_smithy_client.map)({
|
|
2419
1729
|
$metadata: deserializeMetadata(output)
|
|
@@ -2426,37 +1736,9 @@ var de_DescribeReservedElasticsearchInstanceOfferingsCommand = /* @__PURE__ */ _
|
|
|
2426
1736
|
Object.assign(contents, doc);
|
|
2427
1737
|
return contents;
|
|
2428
1738
|
}, "de_DescribeReservedElasticsearchInstanceOfferingsCommand");
|
|
2429
|
-
var de_DescribeReservedElasticsearchInstanceOfferingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2430
|
-
const parsedOutput = {
|
|
2431
|
-
...output,
|
|
2432
|
-
body: await parseErrorBody(output.body, context)
|
|
2433
|
-
};
|
|
2434
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2435
|
-
switch (errorCode) {
|
|
2436
|
-
case "DisabledOperationException":
|
|
2437
|
-
case "com.amazonaws.elasticsearchservice#DisabledOperationException":
|
|
2438
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
2439
|
-
case "InternalException":
|
|
2440
|
-
case "com.amazonaws.elasticsearchservice#InternalException":
|
|
2441
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2442
|
-
case "ResourceNotFoundException":
|
|
2443
|
-
case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
|
|
2444
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2445
|
-
case "ValidationException":
|
|
2446
|
-
case "com.amazonaws.elasticsearchservice#ValidationException":
|
|
2447
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2448
|
-
default:
|
|
2449
|
-
const parsedBody = parsedOutput.body;
|
|
2450
|
-
return throwDefaultError({
|
|
2451
|
-
output,
|
|
2452
|
-
parsedBody,
|
|
2453
|
-
errorCode
|
|
2454
|
-
});
|
|
2455
|
-
}
|
|
2456
|
-
}, "de_DescribeReservedElasticsearchInstanceOfferingsCommandError");
|
|
2457
1739
|
var de_DescribeReservedElasticsearchInstancesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2458
1740
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2459
|
-
return
|
|
1741
|
+
return de_CommandError(output, context);
|
|
2460
1742
|
}
|
|
2461
1743
|
const contents = (0, import_smithy_client.map)({
|
|
2462
1744
|
$metadata: deserializeMetadata(output)
|
|
@@ -2469,37 +1751,9 @@ var de_DescribeReservedElasticsearchInstancesCommand = /* @__PURE__ */ __name(as
|
|
|
2469
1751
|
Object.assign(contents, doc);
|
|
2470
1752
|
return contents;
|
|
2471
1753
|
}, "de_DescribeReservedElasticsearchInstancesCommand");
|
|
2472
|
-
var de_DescribeReservedElasticsearchInstancesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2473
|
-
const parsedOutput = {
|
|
2474
|
-
...output,
|
|
2475
|
-
body: await parseErrorBody(output.body, context)
|
|
2476
|
-
};
|
|
2477
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2478
|
-
switch (errorCode) {
|
|
2479
|
-
case "DisabledOperationException":
|
|
2480
|
-
case "com.amazonaws.elasticsearchservice#DisabledOperationException":
|
|
2481
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
2482
|
-
case "InternalException":
|
|
2483
|
-
case "com.amazonaws.elasticsearchservice#InternalException":
|
|
2484
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2485
|
-
case "ResourceNotFoundException":
|
|
2486
|
-
case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
|
|
2487
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2488
|
-
case "ValidationException":
|
|
2489
|
-
case "com.amazonaws.elasticsearchservice#ValidationException":
|
|
2490
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2491
|
-
default:
|
|
2492
|
-
const parsedBody = parsedOutput.body;
|
|
2493
|
-
return throwDefaultError({
|
|
2494
|
-
output,
|
|
2495
|
-
parsedBody,
|
|
2496
|
-
errorCode
|
|
2497
|
-
});
|
|
2498
|
-
}
|
|
2499
|
-
}, "de_DescribeReservedElasticsearchInstancesCommandError");
|
|
2500
1754
|
var de_DescribeVpcEndpointsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2501
1755
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2502
|
-
return
|
|
1756
|
+
return de_CommandError(output, context);
|
|
2503
1757
|
}
|
|
2504
1758
|
const contents = (0, import_smithy_client.map)({
|
|
2505
1759
|
$metadata: deserializeMetadata(output)
|
|
@@ -2512,37 +1766,9 @@ var de_DescribeVpcEndpointsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2512
1766
|
Object.assign(contents, doc);
|
|
2513
1767
|
return contents;
|
|
2514
1768
|
}, "de_DescribeVpcEndpointsCommand");
|
|
2515
|
-
var de_DescribeVpcEndpointsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2516
|
-
const parsedOutput = {
|
|
2517
|
-
...output,
|
|
2518
|
-
body: await parseErrorBody(output.body, context)
|
|
2519
|
-
};
|
|
2520
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2521
|
-
switch (errorCode) {
|
|
2522
|
-
case "BaseException":
|
|
2523
|
-
case "com.amazonaws.elasticsearchservice#BaseException":
|
|
2524
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2525
|
-
case "DisabledOperationException":
|
|
2526
|
-
case "com.amazonaws.elasticsearchservice#DisabledOperationException":
|
|
2527
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
2528
|
-
case "InternalException":
|
|
2529
|
-
case "com.amazonaws.elasticsearchservice#InternalException":
|
|
2530
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2531
|
-
case "ValidationException":
|
|
2532
|
-
case "com.amazonaws.elasticsearchservice#ValidationException":
|
|
2533
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2534
|
-
default:
|
|
2535
|
-
const parsedBody = parsedOutput.body;
|
|
2536
|
-
return throwDefaultError({
|
|
2537
|
-
output,
|
|
2538
|
-
parsedBody,
|
|
2539
|
-
errorCode
|
|
2540
|
-
});
|
|
2541
|
-
}
|
|
2542
|
-
}, "de_DescribeVpcEndpointsCommandError");
|
|
2543
1769
|
var de_DissociatePackageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2544
1770
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2545
|
-
return
|
|
1771
|
+
return de_CommandError(output, context);
|
|
2546
1772
|
}
|
|
2547
1773
|
const contents = (0, import_smithy_client.map)({
|
|
2548
1774
|
$metadata: deserializeMetadata(output)
|
|
@@ -2554,43 +1780,9 @@ var de_DissociatePackageCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2554
1780
|
Object.assign(contents, doc);
|
|
2555
1781
|
return contents;
|
|
2556
1782
|
}, "de_DissociatePackageCommand");
|
|
2557
|
-
var de_DissociatePackageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2558
|
-
const parsedOutput = {
|
|
2559
|
-
...output,
|
|
2560
|
-
body: await parseErrorBody(output.body, context)
|
|
2561
|
-
};
|
|
2562
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2563
|
-
switch (errorCode) {
|
|
2564
|
-
case "AccessDeniedException":
|
|
2565
|
-
case "com.amazonaws.elasticsearchservice#AccessDeniedException":
|
|
2566
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2567
|
-
case "BaseException":
|
|
2568
|
-
case "com.amazonaws.elasticsearchservice#BaseException":
|
|
2569
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2570
|
-
case "ConflictException":
|
|
2571
|
-
case "com.amazonaws.elasticsearchservice#ConflictException":
|
|
2572
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2573
|
-
case "InternalException":
|
|
2574
|
-
case "com.amazonaws.elasticsearchservice#InternalException":
|
|
2575
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2576
|
-
case "ResourceNotFoundException":
|
|
2577
|
-
case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
|
|
2578
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2579
|
-
case "ValidationException":
|
|
2580
|
-
case "com.amazonaws.elasticsearchservice#ValidationException":
|
|
2581
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2582
|
-
default:
|
|
2583
|
-
const parsedBody = parsedOutput.body;
|
|
2584
|
-
return throwDefaultError({
|
|
2585
|
-
output,
|
|
2586
|
-
parsedBody,
|
|
2587
|
-
errorCode
|
|
2588
|
-
});
|
|
2589
|
-
}
|
|
2590
|
-
}, "de_DissociatePackageCommandError");
|
|
2591
1783
|
var de_GetCompatibleElasticsearchVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2592
1784
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2593
|
-
return
|
|
1785
|
+
return de_CommandError(output, context);
|
|
2594
1786
|
}
|
|
2595
1787
|
const contents = (0, import_smithy_client.map)({
|
|
2596
1788
|
$metadata: deserializeMetadata(output)
|
|
@@ -2602,40 +1794,9 @@ var de_GetCompatibleElasticsearchVersionsCommand = /* @__PURE__ */ __name(async
|
|
|
2602
1794
|
Object.assign(contents, doc);
|
|
2603
1795
|
return contents;
|
|
2604
1796
|
}, "de_GetCompatibleElasticsearchVersionsCommand");
|
|
2605
|
-
var de_GetCompatibleElasticsearchVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2606
|
-
const parsedOutput = {
|
|
2607
|
-
...output,
|
|
2608
|
-
body: await parseErrorBody(output.body, context)
|
|
2609
|
-
};
|
|
2610
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2611
|
-
switch (errorCode) {
|
|
2612
|
-
case "BaseException":
|
|
2613
|
-
case "com.amazonaws.elasticsearchservice#BaseException":
|
|
2614
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2615
|
-
case "DisabledOperationException":
|
|
2616
|
-
case "com.amazonaws.elasticsearchservice#DisabledOperationException":
|
|
2617
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
2618
|
-
case "InternalException":
|
|
2619
|
-
case "com.amazonaws.elasticsearchservice#InternalException":
|
|
2620
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2621
|
-
case "ResourceNotFoundException":
|
|
2622
|
-
case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
|
|
2623
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2624
|
-
case "ValidationException":
|
|
2625
|
-
case "com.amazonaws.elasticsearchservice#ValidationException":
|
|
2626
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2627
|
-
default:
|
|
2628
|
-
const parsedBody = parsedOutput.body;
|
|
2629
|
-
return throwDefaultError({
|
|
2630
|
-
output,
|
|
2631
|
-
parsedBody,
|
|
2632
|
-
errorCode
|
|
2633
|
-
});
|
|
2634
|
-
}
|
|
2635
|
-
}, "de_GetCompatibleElasticsearchVersionsCommandError");
|
|
2636
1797
|
var de_GetPackageVersionHistoryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2637
1798
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2638
|
-
return
|
|
1799
|
+
return de_CommandError(output, context);
|
|
2639
1800
|
}
|
|
2640
1801
|
const contents = (0, import_smithy_client.map)({
|
|
2641
1802
|
$metadata: deserializeMetadata(output)
|
|
@@ -2649,40 +1810,9 @@ var de_GetPackageVersionHistoryCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2649
1810
|
Object.assign(contents, doc);
|
|
2650
1811
|
return contents;
|
|
2651
1812
|
}, "de_GetPackageVersionHistoryCommand");
|
|
2652
|
-
var de_GetPackageVersionHistoryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2653
|
-
const parsedOutput = {
|
|
2654
|
-
...output,
|
|
2655
|
-
body: await parseErrorBody(output.body, context)
|
|
2656
|
-
};
|
|
2657
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2658
|
-
switch (errorCode) {
|
|
2659
|
-
case "AccessDeniedException":
|
|
2660
|
-
case "com.amazonaws.elasticsearchservice#AccessDeniedException":
|
|
2661
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2662
|
-
case "BaseException":
|
|
2663
|
-
case "com.amazonaws.elasticsearchservice#BaseException":
|
|
2664
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2665
|
-
case "InternalException":
|
|
2666
|
-
case "com.amazonaws.elasticsearchservice#InternalException":
|
|
2667
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2668
|
-
case "ResourceNotFoundException":
|
|
2669
|
-
case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
|
|
2670
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2671
|
-
case "ValidationException":
|
|
2672
|
-
case "com.amazonaws.elasticsearchservice#ValidationException":
|
|
2673
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2674
|
-
default:
|
|
2675
|
-
const parsedBody = parsedOutput.body;
|
|
2676
|
-
return throwDefaultError({
|
|
2677
|
-
output,
|
|
2678
|
-
parsedBody,
|
|
2679
|
-
errorCode
|
|
2680
|
-
});
|
|
2681
|
-
}
|
|
2682
|
-
}, "de_GetPackageVersionHistoryCommandError");
|
|
2683
1813
|
var de_GetUpgradeHistoryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2684
1814
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2685
|
-
return
|
|
1815
|
+
return de_CommandError(output, context);
|
|
2686
1816
|
}
|
|
2687
1817
|
const contents = (0, import_smithy_client.map)({
|
|
2688
1818
|
$metadata: deserializeMetadata(output)
|
|
@@ -2695,40 +1825,9 @@ var de_GetUpgradeHistoryCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2695
1825
|
Object.assign(contents, doc);
|
|
2696
1826
|
return contents;
|
|
2697
1827
|
}, "de_GetUpgradeHistoryCommand");
|
|
2698
|
-
var de_GetUpgradeHistoryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2699
|
-
const parsedOutput = {
|
|
2700
|
-
...output,
|
|
2701
|
-
body: await parseErrorBody(output.body, context)
|
|
2702
|
-
};
|
|
2703
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2704
|
-
switch (errorCode) {
|
|
2705
|
-
case "BaseException":
|
|
2706
|
-
case "com.amazonaws.elasticsearchservice#BaseException":
|
|
2707
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2708
|
-
case "DisabledOperationException":
|
|
2709
|
-
case "com.amazonaws.elasticsearchservice#DisabledOperationException":
|
|
2710
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
2711
|
-
case "InternalException":
|
|
2712
|
-
case "com.amazonaws.elasticsearchservice#InternalException":
|
|
2713
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2714
|
-
case "ResourceNotFoundException":
|
|
2715
|
-
case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
|
|
2716
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2717
|
-
case "ValidationException":
|
|
2718
|
-
case "com.amazonaws.elasticsearchservice#ValidationException":
|
|
2719
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2720
|
-
default:
|
|
2721
|
-
const parsedBody = parsedOutput.body;
|
|
2722
|
-
return throwDefaultError({
|
|
2723
|
-
output,
|
|
2724
|
-
parsedBody,
|
|
2725
|
-
errorCode
|
|
2726
|
-
});
|
|
2727
|
-
}
|
|
2728
|
-
}, "de_GetUpgradeHistoryCommandError");
|
|
2729
1828
|
var de_GetUpgradeStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2730
1829
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2731
|
-
return
|
|
1830
|
+
return de_CommandError(output, context);
|
|
2732
1831
|
}
|
|
2733
1832
|
const contents = (0, import_smithy_client.map)({
|
|
2734
1833
|
$metadata: deserializeMetadata(output)
|
|
@@ -2742,40 +1841,9 @@ var de_GetUpgradeStatusCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2742
1841
|
Object.assign(contents, doc);
|
|
2743
1842
|
return contents;
|
|
2744
1843
|
}, "de_GetUpgradeStatusCommand");
|
|
2745
|
-
var de_GetUpgradeStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2746
|
-
const parsedOutput = {
|
|
2747
|
-
...output,
|
|
2748
|
-
body: await parseErrorBody(output.body, context)
|
|
2749
|
-
};
|
|
2750
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2751
|
-
switch (errorCode) {
|
|
2752
|
-
case "BaseException":
|
|
2753
|
-
case "com.amazonaws.elasticsearchservice#BaseException":
|
|
2754
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2755
|
-
case "DisabledOperationException":
|
|
2756
|
-
case "com.amazonaws.elasticsearchservice#DisabledOperationException":
|
|
2757
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
2758
|
-
case "InternalException":
|
|
2759
|
-
case "com.amazonaws.elasticsearchservice#InternalException":
|
|
2760
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2761
|
-
case "ResourceNotFoundException":
|
|
2762
|
-
case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
|
|
2763
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2764
|
-
case "ValidationException":
|
|
2765
|
-
case "com.amazonaws.elasticsearchservice#ValidationException":
|
|
2766
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2767
|
-
default:
|
|
2768
|
-
const parsedBody = parsedOutput.body;
|
|
2769
|
-
return throwDefaultError({
|
|
2770
|
-
output,
|
|
2771
|
-
parsedBody,
|
|
2772
|
-
errorCode
|
|
2773
|
-
});
|
|
2774
|
-
}
|
|
2775
|
-
}, "de_GetUpgradeStatusCommandError");
|
|
2776
1844
|
var de_ListDomainNamesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2777
1845
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2778
|
-
return
|
|
1846
|
+
return de_CommandError(output, context);
|
|
2779
1847
|
}
|
|
2780
1848
|
const contents = (0, import_smithy_client.map)({
|
|
2781
1849
|
$metadata: deserializeMetadata(output)
|
|
@@ -2787,31 +1855,9 @@ var de_ListDomainNamesCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2787
1855
|
Object.assign(contents, doc);
|
|
2788
1856
|
return contents;
|
|
2789
1857
|
}, "de_ListDomainNamesCommand");
|
|
2790
|
-
var de_ListDomainNamesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2791
|
-
const parsedOutput = {
|
|
2792
|
-
...output,
|
|
2793
|
-
body: await parseErrorBody(output.body, context)
|
|
2794
|
-
};
|
|
2795
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2796
|
-
switch (errorCode) {
|
|
2797
|
-
case "BaseException":
|
|
2798
|
-
case "com.amazonaws.elasticsearchservice#BaseException":
|
|
2799
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2800
|
-
case "ValidationException":
|
|
2801
|
-
case "com.amazonaws.elasticsearchservice#ValidationException":
|
|
2802
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2803
|
-
default:
|
|
2804
|
-
const parsedBody = parsedOutput.body;
|
|
2805
|
-
return throwDefaultError({
|
|
2806
|
-
output,
|
|
2807
|
-
parsedBody,
|
|
2808
|
-
errorCode
|
|
2809
|
-
});
|
|
2810
|
-
}
|
|
2811
|
-
}, "de_ListDomainNamesCommandError");
|
|
2812
1858
|
var de_ListDomainsForPackageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2813
1859
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2814
|
-
return
|
|
1860
|
+
return de_CommandError(output, context);
|
|
2815
1861
|
}
|
|
2816
1862
|
const contents = (0, import_smithy_client.map)({
|
|
2817
1863
|
$metadata: deserializeMetadata(output)
|
|
@@ -2824,40 +1870,9 @@ var de_ListDomainsForPackageCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2824
1870
|
Object.assign(contents, doc);
|
|
2825
1871
|
return contents;
|
|
2826
1872
|
}, "de_ListDomainsForPackageCommand");
|
|
2827
|
-
var de_ListDomainsForPackageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2828
|
-
const parsedOutput = {
|
|
2829
|
-
...output,
|
|
2830
|
-
body: await parseErrorBody(output.body, context)
|
|
2831
|
-
};
|
|
2832
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2833
|
-
switch (errorCode) {
|
|
2834
|
-
case "AccessDeniedException":
|
|
2835
|
-
case "com.amazonaws.elasticsearchservice#AccessDeniedException":
|
|
2836
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2837
|
-
case "BaseException":
|
|
2838
|
-
case "com.amazonaws.elasticsearchservice#BaseException":
|
|
2839
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2840
|
-
case "InternalException":
|
|
2841
|
-
case "com.amazonaws.elasticsearchservice#InternalException":
|
|
2842
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2843
|
-
case "ResourceNotFoundException":
|
|
2844
|
-
case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
|
|
2845
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2846
|
-
case "ValidationException":
|
|
2847
|
-
case "com.amazonaws.elasticsearchservice#ValidationException":
|
|
2848
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2849
|
-
default:
|
|
2850
|
-
const parsedBody = parsedOutput.body;
|
|
2851
|
-
return throwDefaultError({
|
|
2852
|
-
output,
|
|
2853
|
-
parsedBody,
|
|
2854
|
-
errorCode
|
|
2855
|
-
});
|
|
2856
|
-
}
|
|
2857
|
-
}, "de_ListDomainsForPackageCommandError");
|
|
2858
1873
|
var de_ListElasticsearchInstanceTypesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2859
1874
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2860
|
-
return
|
|
1875
|
+
return de_CommandError(output, context);
|
|
2861
1876
|
}
|
|
2862
1877
|
const contents = (0, import_smithy_client.map)({
|
|
2863
1878
|
$metadata: deserializeMetadata(output)
|
|
@@ -2870,37 +1885,9 @@ var de_ListElasticsearchInstanceTypesCommand = /* @__PURE__ */ __name(async (out
|
|
|
2870
1885
|
Object.assign(contents, doc);
|
|
2871
1886
|
return contents;
|
|
2872
1887
|
}, "de_ListElasticsearchInstanceTypesCommand");
|
|
2873
|
-
var de_ListElasticsearchInstanceTypesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2874
|
-
const parsedOutput = {
|
|
2875
|
-
...output,
|
|
2876
|
-
body: await parseErrorBody(output.body, context)
|
|
2877
|
-
};
|
|
2878
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2879
|
-
switch (errorCode) {
|
|
2880
|
-
case "BaseException":
|
|
2881
|
-
case "com.amazonaws.elasticsearchservice#BaseException":
|
|
2882
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2883
|
-
case "InternalException":
|
|
2884
|
-
case "com.amazonaws.elasticsearchservice#InternalException":
|
|
2885
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2886
|
-
case "ResourceNotFoundException":
|
|
2887
|
-
case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
|
|
2888
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2889
|
-
case "ValidationException":
|
|
2890
|
-
case "com.amazonaws.elasticsearchservice#ValidationException":
|
|
2891
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2892
|
-
default:
|
|
2893
|
-
const parsedBody = parsedOutput.body;
|
|
2894
|
-
return throwDefaultError({
|
|
2895
|
-
output,
|
|
2896
|
-
parsedBody,
|
|
2897
|
-
errorCode
|
|
2898
|
-
});
|
|
2899
|
-
}
|
|
2900
|
-
}, "de_ListElasticsearchInstanceTypesCommandError");
|
|
2901
1888
|
var de_ListElasticsearchVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2902
1889
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2903
|
-
return
|
|
1890
|
+
return de_CommandError(output, context);
|
|
2904
1891
|
}
|
|
2905
1892
|
const contents = (0, import_smithy_client.map)({
|
|
2906
1893
|
$metadata: deserializeMetadata(output)
|
|
@@ -2913,37 +1900,9 @@ var de_ListElasticsearchVersionsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2913
1900
|
Object.assign(contents, doc);
|
|
2914
1901
|
return contents;
|
|
2915
1902
|
}, "de_ListElasticsearchVersionsCommand");
|
|
2916
|
-
var de_ListElasticsearchVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2917
|
-
const parsedOutput = {
|
|
2918
|
-
...output,
|
|
2919
|
-
body: await parseErrorBody(output.body, context)
|
|
2920
|
-
};
|
|
2921
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2922
|
-
switch (errorCode) {
|
|
2923
|
-
case "BaseException":
|
|
2924
|
-
case "com.amazonaws.elasticsearchservice#BaseException":
|
|
2925
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2926
|
-
case "InternalException":
|
|
2927
|
-
case "com.amazonaws.elasticsearchservice#InternalException":
|
|
2928
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2929
|
-
case "ResourceNotFoundException":
|
|
2930
|
-
case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
|
|
2931
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2932
|
-
case "ValidationException":
|
|
2933
|
-
case "com.amazonaws.elasticsearchservice#ValidationException":
|
|
2934
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2935
|
-
default:
|
|
2936
|
-
const parsedBody = parsedOutput.body;
|
|
2937
|
-
return throwDefaultError({
|
|
2938
|
-
output,
|
|
2939
|
-
parsedBody,
|
|
2940
|
-
errorCode
|
|
2941
|
-
});
|
|
2942
|
-
}
|
|
2943
|
-
}, "de_ListElasticsearchVersionsCommandError");
|
|
2944
1903
|
var de_ListPackagesForDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2945
1904
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2946
|
-
return
|
|
1905
|
+
return de_CommandError(output, context);
|
|
2947
1906
|
}
|
|
2948
1907
|
const contents = (0, import_smithy_client.map)({
|
|
2949
1908
|
$metadata: deserializeMetadata(output)
|
|
@@ -2956,40 +1915,9 @@ var de_ListPackagesForDomainCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2956
1915
|
Object.assign(contents, doc);
|
|
2957
1916
|
return contents;
|
|
2958
1917
|
}, "de_ListPackagesForDomainCommand");
|
|
2959
|
-
var de_ListPackagesForDomainCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2960
|
-
const parsedOutput = {
|
|
2961
|
-
...output,
|
|
2962
|
-
body: await parseErrorBody(output.body, context)
|
|
2963
|
-
};
|
|
2964
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2965
|
-
switch (errorCode) {
|
|
2966
|
-
case "AccessDeniedException":
|
|
2967
|
-
case "com.amazonaws.elasticsearchservice#AccessDeniedException":
|
|
2968
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2969
|
-
case "BaseException":
|
|
2970
|
-
case "com.amazonaws.elasticsearchservice#BaseException":
|
|
2971
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2972
|
-
case "InternalException":
|
|
2973
|
-
case "com.amazonaws.elasticsearchservice#InternalException":
|
|
2974
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2975
|
-
case "ResourceNotFoundException":
|
|
2976
|
-
case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
|
|
2977
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2978
|
-
case "ValidationException":
|
|
2979
|
-
case "com.amazonaws.elasticsearchservice#ValidationException":
|
|
2980
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2981
|
-
default:
|
|
2982
|
-
const parsedBody = parsedOutput.body;
|
|
2983
|
-
return throwDefaultError({
|
|
2984
|
-
output,
|
|
2985
|
-
parsedBody,
|
|
2986
|
-
errorCode
|
|
2987
|
-
});
|
|
2988
|
-
}
|
|
2989
|
-
}, "de_ListPackagesForDomainCommandError");
|
|
2990
1918
|
var de_ListTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2991
1919
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2992
|
-
return
|
|
1920
|
+
return de_CommandError(output, context);
|
|
2993
1921
|
}
|
|
2994
1922
|
const contents = (0, import_smithy_client.map)({
|
|
2995
1923
|
$metadata: deserializeMetadata(output)
|
|
@@ -3001,37 +1929,9 @@ var de_ListTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3001
1929
|
Object.assign(contents, doc);
|
|
3002
1930
|
return contents;
|
|
3003
1931
|
}, "de_ListTagsCommand");
|
|
3004
|
-
var de_ListTagsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3005
|
-
const parsedOutput = {
|
|
3006
|
-
...output,
|
|
3007
|
-
body: await parseErrorBody(output.body, context)
|
|
3008
|
-
};
|
|
3009
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3010
|
-
switch (errorCode) {
|
|
3011
|
-
case "BaseException":
|
|
3012
|
-
case "com.amazonaws.elasticsearchservice#BaseException":
|
|
3013
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
3014
|
-
case "InternalException":
|
|
3015
|
-
case "com.amazonaws.elasticsearchservice#InternalException":
|
|
3016
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3017
|
-
case "ResourceNotFoundException":
|
|
3018
|
-
case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
|
|
3019
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3020
|
-
case "ValidationException":
|
|
3021
|
-
case "com.amazonaws.elasticsearchservice#ValidationException":
|
|
3022
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3023
|
-
default:
|
|
3024
|
-
const parsedBody = parsedOutput.body;
|
|
3025
|
-
return throwDefaultError({
|
|
3026
|
-
output,
|
|
3027
|
-
parsedBody,
|
|
3028
|
-
errorCode
|
|
3029
|
-
});
|
|
3030
|
-
}
|
|
3031
|
-
}, "de_ListTagsCommandError");
|
|
3032
1932
|
var de_ListVpcEndpointAccessCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3033
1933
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3034
|
-
return
|
|
1934
|
+
return de_CommandError(output, context);
|
|
3035
1935
|
}
|
|
3036
1936
|
const contents = (0, import_smithy_client.map)({
|
|
3037
1937
|
$metadata: deserializeMetadata(output)
|
|
@@ -3044,77 +1944,9 @@ var de_ListVpcEndpointAccessCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
3044
1944
|
Object.assign(contents, doc);
|
|
3045
1945
|
return contents;
|
|
3046
1946
|
}, "de_ListVpcEndpointAccessCommand");
|
|
3047
|
-
var de_ListVpcEndpointAccessCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3048
|
-
const parsedOutput = {
|
|
3049
|
-
...output,
|
|
3050
|
-
body: await parseErrorBody(output.body, context)
|
|
3051
|
-
};
|
|
3052
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3053
|
-
switch (errorCode) {
|
|
3054
|
-
case "BaseException":
|
|
3055
|
-
case "com.amazonaws.elasticsearchservice#BaseException":
|
|
3056
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
3057
|
-
case "DisabledOperationException":
|
|
3058
|
-
case "com.amazonaws.elasticsearchservice#DisabledOperationException":
|
|
3059
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
3060
|
-
case "InternalException":
|
|
3061
|
-
case "com.amazonaws.elasticsearchservice#InternalException":
|
|
3062
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3063
|
-
case "ResourceNotFoundException":
|
|
3064
|
-
case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
|
|
3065
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3066
|
-
default:
|
|
3067
|
-
const parsedBody = parsedOutput.body;
|
|
3068
|
-
return throwDefaultError({
|
|
3069
|
-
output,
|
|
3070
|
-
parsedBody,
|
|
3071
|
-
errorCode
|
|
3072
|
-
});
|
|
3073
|
-
}
|
|
3074
|
-
}, "de_ListVpcEndpointAccessCommandError");
|
|
3075
1947
|
var de_ListVpcEndpointsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3076
1948
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3077
|
-
return
|
|
3078
|
-
}
|
|
3079
|
-
const contents = (0, import_smithy_client.map)({
|
|
3080
|
-
$metadata: deserializeMetadata(output)
|
|
3081
|
-
});
|
|
3082
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
3083
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
3084
|
-
NextToken: import_smithy_client.expectString,
|
|
3085
|
-
VpcEndpointSummaryList: import_smithy_client._json
|
|
3086
|
-
});
|
|
3087
|
-
Object.assign(contents, doc);
|
|
3088
|
-
return contents;
|
|
3089
|
-
}, "de_ListVpcEndpointsCommand");
|
|
3090
|
-
var de_ListVpcEndpointsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3091
|
-
const parsedOutput = {
|
|
3092
|
-
...output,
|
|
3093
|
-
body: await parseErrorBody(output.body, context)
|
|
3094
|
-
};
|
|
3095
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3096
|
-
switch (errorCode) {
|
|
3097
|
-
case "BaseException":
|
|
3098
|
-
case "com.amazonaws.elasticsearchservice#BaseException":
|
|
3099
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
3100
|
-
case "DisabledOperationException":
|
|
3101
|
-
case "com.amazonaws.elasticsearchservice#DisabledOperationException":
|
|
3102
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
3103
|
-
case "InternalException":
|
|
3104
|
-
case "com.amazonaws.elasticsearchservice#InternalException":
|
|
3105
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3106
|
-
default:
|
|
3107
|
-
const parsedBody = parsedOutput.body;
|
|
3108
|
-
return throwDefaultError({
|
|
3109
|
-
output,
|
|
3110
|
-
parsedBody,
|
|
3111
|
-
errorCode
|
|
3112
|
-
});
|
|
3113
|
-
}
|
|
3114
|
-
}, "de_ListVpcEndpointsCommandError");
|
|
3115
|
-
var de_ListVpcEndpointsForDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3116
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3117
|
-
return de_ListVpcEndpointsForDomainCommandError(output, context);
|
|
1949
|
+
return de_CommandError(output, context);
|
|
3118
1950
|
}
|
|
3119
1951
|
const contents = (0, import_smithy_client.map)({
|
|
3120
1952
|
$metadata: deserializeMetadata(output)
|
|
@@ -3125,88 +1957,41 @@ var de_ListVpcEndpointsForDomainCommand = /* @__PURE__ */ __name(async (output,
|
|
|
3125
1957
|
VpcEndpointSummaryList: import_smithy_client._json
|
|
3126
1958
|
});
|
|
3127
1959
|
Object.assign(contents, doc);
|
|
3128
|
-
return contents;
|
|
3129
|
-
}, "
|
|
3130
|
-
var
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3149
|
-
default:
|
|
3150
|
-
const parsedBody = parsedOutput.body;
|
|
3151
|
-
return throwDefaultError({
|
|
3152
|
-
output,
|
|
3153
|
-
parsedBody,
|
|
3154
|
-
errorCode
|
|
3155
|
-
});
|
|
3156
|
-
}
|
|
3157
|
-
}, "de_ListVpcEndpointsForDomainCommandError");
|
|
3158
|
-
var de_PurchaseReservedElasticsearchInstanceOfferingCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3159
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3160
|
-
return de_PurchaseReservedElasticsearchInstanceOfferingCommandError(output, context);
|
|
3161
|
-
}
|
|
3162
|
-
const contents = (0, import_smithy_client.map)({
|
|
3163
|
-
$metadata: deserializeMetadata(output)
|
|
3164
|
-
});
|
|
3165
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
3166
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
3167
|
-
ReservationName: import_smithy_client.expectString,
|
|
3168
|
-
ReservedElasticsearchInstanceId: import_smithy_client.expectString
|
|
3169
|
-
});
|
|
3170
|
-
Object.assign(contents, doc);
|
|
3171
|
-
return contents;
|
|
3172
|
-
}, "de_PurchaseReservedElasticsearchInstanceOfferingCommand");
|
|
3173
|
-
var de_PurchaseReservedElasticsearchInstanceOfferingCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3174
|
-
const parsedOutput = {
|
|
3175
|
-
...output,
|
|
3176
|
-
body: await parseErrorBody(output.body, context)
|
|
3177
|
-
};
|
|
3178
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3179
|
-
switch (errorCode) {
|
|
3180
|
-
case "DisabledOperationException":
|
|
3181
|
-
case "com.amazonaws.elasticsearchservice#DisabledOperationException":
|
|
3182
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
3183
|
-
case "InternalException":
|
|
3184
|
-
case "com.amazonaws.elasticsearchservice#InternalException":
|
|
3185
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3186
|
-
case "LimitExceededException":
|
|
3187
|
-
case "com.amazonaws.elasticsearchservice#LimitExceededException":
|
|
3188
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3189
|
-
case "ResourceAlreadyExistsException":
|
|
3190
|
-
case "com.amazonaws.elasticsearchservice#ResourceAlreadyExistsException":
|
|
3191
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
3192
|
-
case "ResourceNotFoundException":
|
|
3193
|
-
case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
|
|
3194
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3195
|
-
case "ValidationException":
|
|
3196
|
-
case "com.amazonaws.elasticsearchservice#ValidationException":
|
|
3197
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3198
|
-
default:
|
|
3199
|
-
const parsedBody = parsedOutput.body;
|
|
3200
|
-
return throwDefaultError({
|
|
3201
|
-
output,
|
|
3202
|
-
parsedBody,
|
|
3203
|
-
errorCode
|
|
3204
|
-
});
|
|
1960
|
+
return contents;
|
|
1961
|
+
}, "de_ListVpcEndpointsCommand");
|
|
1962
|
+
var de_ListVpcEndpointsForDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1963
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1964
|
+
return de_CommandError(output, context);
|
|
1965
|
+
}
|
|
1966
|
+
const contents = (0, import_smithy_client.map)({
|
|
1967
|
+
$metadata: deserializeMetadata(output)
|
|
1968
|
+
});
|
|
1969
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1970
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1971
|
+
NextToken: import_smithy_client.expectString,
|
|
1972
|
+
VpcEndpointSummaryList: import_smithy_client._json
|
|
1973
|
+
});
|
|
1974
|
+
Object.assign(contents, doc);
|
|
1975
|
+
return contents;
|
|
1976
|
+
}, "de_ListVpcEndpointsForDomainCommand");
|
|
1977
|
+
var de_PurchaseReservedElasticsearchInstanceOfferingCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1978
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1979
|
+
return de_CommandError(output, context);
|
|
3205
1980
|
}
|
|
3206
|
-
|
|
1981
|
+
const contents = (0, import_smithy_client.map)({
|
|
1982
|
+
$metadata: deserializeMetadata(output)
|
|
1983
|
+
});
|
|
1984
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1985
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1986
|
+
ReservationName: import_smithy_client.expectString,
|
|
1987
|
+
ReservedElasticsearchInstanceId: import_smithy_client.expectString
|
|
1988
|
+
});
|
|
1989
|
+
Object.assign(contents, doc);
|
|
1990
|
+
return contents;
|
|
1991
|
+
}, "de_PurchaseReservedElasticsearchInstanceOfferingCommand");
|
|
3207
1992
|
var de_RejectInboundCrossClusterSearchConnectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3208
1993
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3209
|
-
return
|
|
1994
|
+
return de_CommandError(output, context);
|
|
3210
1995
|
}
|
|
3211
1996
|
const contents = (0, import_smithy_client.map)({
|
|
3212
1997
|
$metadata: deserializeMetadata(output)
|
|
@@ -3218,31 +2003,9 @@ var de_RejectInboundCrossClusterSearchConnectionCommand = /* @__PURE__ */ __name
|
|
|
3218
2003
|
Object.assign(contents, doc);
|
|
3219
2004
|
return contents;
|
|
3220
2005
|
}, "de_RejectInboundCrossClusterSearchConnectionCommand");
|
|
3221
|
-
var de_RejectInboundCrossClusterSearchConnectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3222
|
-
const parsedOutput = {
|
|
3223
|
-
...output,
|
|
3224
|
-
body: await parseErrorBody(output.body, context)
|
|
3225
|
-
};
|
|
3226
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3227
|
-
switch (errorCode) {
|
|
3228
|
-
case "DisabledOperationException":
|
|
3229
|
-
case "com.amazonaws.elasticsearchservice#DisabledOperationException":
|
|
3230
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
3231
|
-
case "ResourceNotFoundException":
|
|
3232
|
-
case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
|
|
3233
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3234
|
-
default:
|
|
3235
|
-
const parsedBody = parsedOutput.body;
|
|
3236
|
-
return throwDefaultError({
|
|
3237
|
-
output,
|
|
3238
|
-
parsedBody,
|
|
3239
|
-
errorCode
|
|
3240
|
-
});
|
|
3241
|
-
}
|
|
3242
|
-
}, "de_RejectInboundCrossClusterSearchConnectionCommandError");
|
|
3243
2006
|
var de_RemoveTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3244
2007
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3245
|
-
return
|
|
2008
|
+
return de_CommandError(output, context);
|
|
3246
2009
|
}
|
|
3247
2010
|
const contents = (0, import_smithy_client.map)({
|
|
3248
2011
|
$metadata: deserializeMetadata(output)
|
|
@@ -3250,34 +2013,9 @@ var de_RemoveTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3250
2013
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3251
2014
|
return contents;
|
|
3252
2015
|
}, "de_RemoveTagsCommand");
|
|
3253
|
-
var de_RemoveTagsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3254
|
-
const parsedOutput = {
|
|
3255
|
-
...output,
|
|
3256
|
-
body: await parseErrorBody(output.body, context)
|
|
3257
|
-
};
|
|
3258
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3259
|
-
switch (errorCode) {
|
|
3260
|
-
case "BaseException":
|
|
3261
|
-
case "com.amazonaws.elasticsearchservice#BaseException":
|
|
3262
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
3263
|
-
case "InternalException":
|
|
3264
|
-
case "com.amazonaws.elasticsearchservice#InternalException":
|
|
3265
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3266
|
-
case "ValidationException":
|
|
3267
|
-
case "com.amazonaws.elasticsearchservice#ValidationException":
|
|
3268
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3269
|
-
default:
|
|
3270
|
-
const parsedBody = parsedOutput.body;
|
|
3271
|
-
return throwDefaultError({
|
|
3272
|
-
output,
|
|
3273
|
-
parsedBody,
|
|
3274
|
-
errorCode
|
|
3275
|
-
});
|
|
3276
|
-
}
|
|
3277
|
-
}, "de_RemoveTagsCommandError");
|
|
3278
2016
|
var de_RevokeVpcEndpointAccessCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3279
2017
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3280
|
-
return
|
|
2018
|
+
return de_CommandError(output, context);
|
|
3281
2019
|
}
|
|
3282
2020
|
const contents = (0, import_smithy_client.map)({
|
|
3283
2021
|
$metadata: deserializeMetadata(output)
|
|
@@ -3285,40 +2023,9 @@ var de_RevokeVpcEndpointAccessCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
3285
2023
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3286
2024
|
return contents;
|
|
3287
2025
|
}, "de_RevokeVpcEndpointAccessCommand");
|
|
3288
|
-
var de_RevokeVpcEndpointAccessCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3289
|
-
const parsedOutput = {
|
|
3290
|
-
...output,
|
|
3291
|
-
body: await parseErrorBody(output.body, context)
|
|
3292
|
-
};
|
|
3293
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3294
|
-
switch (errorCode) {
|
|
3295
|
-
case "BaseException":
|
|
3296
|
-
case "com.amazonaws.elasticsearchservice#BaseException":
|
|
3297
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
3298
|
-
case "DisabledOperationException":
|
|
3299
|
-
case "com.amazonaws.elasticsearchservice#DisabledOperationException":
|
|
3300
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
3301
|
-
case "InternalException":
|
|
3302
|
-
case "com.amazonaws.elasticsearchservice#InternalException":
|
|
3303
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3304
|
-
case "ResourceNotFoundException":
|
|
3305
|
-
case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
|
|
3306
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3307
|
-
case "ValidationException":
|
|
3308
|
-
case "com.amazonaws.elasticsearchservice#ValidationException":
|
|
3309
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3310
|
-
default:
|
|
3311
|
-
const parsedBody = parsedOutput.body;
|
|
3312
|
-
return throwDefaultError({
|
|
3313
|
-
output,
|
|
3314
|
-
parsedBody,
|
|
3315
|
-
errorCode
|
|
3316
|
-
});
|
|
3317
|
-
}
|
|
3318
|
-
}, "de_RevokeVpcEndpointAccessCommandError");
|
|
3319
2026
|
var de_StartElasticsearchServiceSoftwareUpdateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3320
2027
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3321
|
-
return
|
|
2028
|
+
return de_CommandError(output, context);
|
|
3322
2029
|
}
|
|
3323
2030
|
const contents = (0, import_smithy_client.map)({
|
|
3324
2031
|
$metadata: deserializeMetadata(output)
|
|
@@ -3330,37 +2037,9 @@ var de_StartElasticsearchServiceSoftwareUpdateCommand = /* @__PURE__ */ __name(a
|
|
|
3330
2037
|
Object.assign(contents, doc);
|
|
3331
2038
|
return contents;
|
|
3332
2039
|
}, "de_StartElasticsearchServiceSoftwareUpdateCommand");
|
|
3333
|
-
var de_StartElasticsearchServiceSoftwareUpdateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3334
|
-
const parsedOutput = {
|
|
3335
|
-
...output,
|
|
3336
|
-
body: await parseErrorBody(output.body, context)
|
|
3337
|
-
};
|
|
3338
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3339
|
-
switch (errorCode) {
|
|
3340
|
-
case "BaseException":
|
|
3341
|
-
case "com.amazonaws.elasticsearchservice#BaseException":
|
|
3342
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
3343
|
-
case "InternalException":
|
|
3344
|
-
case "com.amazonaws.elasticsearchservice#InternalException":
|
|
3345
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3346
|
-
case "ResourceNotFoundException":
|
|
3347
|
-
case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
|
|
3348
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3349
|
-
case "ValidationException":
|
|
3350
|
-
case "com.amazonaws.elasticsearchservice#ValidationException":
|
|
3351
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3352
|
-
default:
|
|
3353
|
-
const parsedBody = parsedOutput.body;
|
|
3354
|
-
return throwDefaultError({
|
|
3355
|
-
output,
|
|
3356
|
-
parsedBody,
|
|
3357
|
-
errorCode
|
|
3358
|
-
});
|
|
3359
|
-
}
|
|
3360
|
-
}, "de_StartElasticsearchServiceSoftwareUpdateCommandError");
|
|
3361
2040
|
var de_UpdateElasticsearchDomainConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3362
2041
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3363
|
-
return
|
|
2042
|
+
return de_CommandError(output, context);
|
|
3364
2043
|
}
|
|
3365
2044
|
const contents = (0, import_smithy_client.map)({
|
|
3366
2045
|
$metadata: deserializeMetadata(output)
|
|
@@ -3373,43 +2052,9 @@ var de_UpdateElasticsearchDomainConfigCommand = /* @__PURE__ */ __name(async (ou
|
|
|
3373
2052
|
Object.assign(contents, doc);
|
|
3374
2053
|
return contents;
|
|
3375
2054
|
}, "de_UpdateElasticsearchDomainConfigCommand");
|
|
3376
|
-
var de_UpdateElasticsearchDomainConfigCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3377
|
-
const parsedOutput = {
|
|
3378
|
-
...output,
|
|
3379
|
-
body: await parseErrorBody(output.body, context)
|
|
3380
|
-
};
|
|
3381
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3382
|
-
switch (errorCode) {
|
|
3383
|
-
case "BaseException":
|
|
3384
|
-
case "com.amazonaws.elasticsearchservice#BaseException":
|
|
3385
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
3386
|
-
case "InternalException":
|
|
3387
|
-
case "com.amazonaws.elasticsearchservice#InternalException":
|
|
3388
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3389
|
-
case "InvalidTypeException":
|
|
3390
|
-
case "com.amazonaws.elasticsearchservice#InvalidTypeException":
|
|
3391
|
-
throw await de_InvalidTypeExceptionRes(parsedOutput, context);
|
|
3392
|
-
case "LimitExceededException":
|
|
3393
|
-
case "com.amazonaws.elasticsearchservice#LimitExceededException":
|
|
3394
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3395
|
-
case "ResourceNotFoundException":
|
|
3396
|
-
case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
|
|
3397
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3398
|
-
case "ValidationException":
|
|
3399
|
-
case "com.amazonaws.elasticsearchservice#ValidationException":
|
|
3400
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3401
|
-
default:
|
|
3402
|
-
const parsedBody = parsedOutput.body;
|
|
3403
|
-
return throwDefaultError({
|
|
3404
|
-
output,
|
|
3405
|
-
parsedBody,
|
|
3406
|
-
errorCode
|
|
3407
|
-
});
|
|
3408
|
-
}
|
|
3409
|
-
}, "de_UpdateElasticsearchDomainConfigCommandError");
|
|
3410
2055
|
var de_UpdatePackageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3411
2056
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3412
|
-
return
|
|
2057
|
+
return de_CommandError(output, context);
|
|
3413
2058
|
}
|
|
3414
2059
|
const contents = (0, import_smithy_client.map)({
|
|
3415
2060
|
$metadata: deserializeMetadata(output)
|
|
@@ -3421,43 +2066,9 @@ var de_UpdatePackageCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3421
2066
|
Object.assign(contents, doc);
|
|
3422
2067
|
return contents;
|
|
3423
2068
|
}, "de_UpdatePackageCommand");
|
|
3424
|
-
var de_UpdatePackageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3425
|
-
const parsedOutput = {
|
|
3426
|
-
...output,
|
|
3427
|
-
body: await parseErrorBody(output.body, context)
|
|
3428
|
-
};
|
|
3429
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3430
|
-
switch (errorCode) {
|
|
3431
|
-
case "AccessDeniedException":
|
|
3432
|
-
case "com.amazonaws.elasticsearchservice#AccessDeniedException":
|
|
3433
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3434
|
-
case "BaseException":
|
|
3435
|
-
case "com.amazonaws.elasticsearchservice#BaseException":
|
|
3436
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
3437
|
-
case "InternalException":
|
|
3438
|
-
case "com.amazonaws.elasticsearchservice#InternalException":
|
|
3439
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3440
|
-
case "LimitExceededException":
|
|
3441
|
-
case "com.amazonaws.elasticsearchservice#LimitExceededException":
|
|
3442
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3443
|
-
case "ResourceNotFoundException":
|
|
3444
|
-
case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
|
|
3445
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3446
|
-
case "ValidationException":
|
|
3447
|
-
case "com.amazonaws.elasticsearchservice#ValidationException":
|
|
3448
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3449
|
-
default:
|
|
3450
|
-
const parsedBody = parsedOutput.body;
|
|
3451
|
-
return throwDefaultError({
|
|
3452
|
-
output,
|
|
3453
|
-
parsedBody,
|
|
3454
|
-
errorCode
|
|
3455
|
-
});
|
|
3456
|
-
}
|
|
3457
|
-
}, "de_UpdatePackageCommandError");
|
|
3458
2069
|
var de_UpdateVpcEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3459
2070
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3460
|
-
return
|
|
2071
|
+
return de_CommandError(output, context);
|
|
3461
2072
|
}
|
|
3462
2073
|
const contents = (0, import_smithy_client.map)({
|
|
3463
2074
|
$metadata: deserializeMetadata(output)
|
|
@@ -3469,43 +2080,9 @@ var de_UpdateVpcEndpointCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3469
2080
|
Object.assign(contents, doc);
|
|
3470
2081
|
return contents;
|
|
3471
2082
|
}, "de_UpdateVpcEndpointCommand");
|
|
3472
|
-
var de_UpdateVpcEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3473
|
-
const parsedOutput = {
|
|
3474
|
-
...output,
|
|
3475
|
-
body: await parseErrorBody(output.body, context)
|
|
3476
|
-
};
|
|
3477
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3478
|
-
switch (errorCode) {
|
|
3479
|
-
case "BaseException":
|
|
3480
|
-
case "com.amazonaws.elasticsearchservice#BaseException":
|
|
3481
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
3482
|
-
case "ConflictException":
|
|
3483
|
-
case "com.amazonaws.elasticsearchservice#ConflictException":
|
|
3484
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3485
|
-
case "DisabledOperationException":
|
|
3486
|
-
case "com.amazonaws.elasticsearchservice#DisabledOperationException":
|
|
3487
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
3488
|
-
case "InternalException":
|
|
3489
|
-
case "com.amazonaws.elasticsearchservice#InternalException":
|
|
3490
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3491
|
-
case "ResourceNotFoundException":
|
|
3492
|
-
case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
|
|
3493
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3494
|
-
case "ValidationException":
|
|
3495
|
-
case "com.amazonaws.elasticsearchservice#ValidationException":
|
|
3496
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3497
|
-
default:
|
|
3498
|
-
const parsedBody = parsedOutput.body;
|
|
3499
|
-
return throwDefaultError({
|
|
3500
|
-
output,
|
|
3501
|
-
parsedBody,
|
|
3502
|
-
errorCode
|
|
3503
|
-
});
|
|
3504
|
-
}
|
|
3505
|
-
}, "de_UpdateVpcEndpointCommandError");
|
|
3506
2083
|
var de_UpgradeElasticsearchDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3507
2084
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3508
|
-
return
|
|
2085
|
+
return de_CommandError(output, context);
|
|
3509
2086
|
}
|
|
3510
2087
|
const contents = (0, import_smithy_client.map)({
|
|
3511
2088
|
$metadata: deserializeMetadata(output)
|
|
@@ -3520,31 +2097,46 @@ var de_UpgradeElasticsearchDomainCommand = /* @__PURE__ */ __name(async (output,
|
|
|
3520
2097
|
Object.assign(contents, doc);
|
|
3521
2098
|
return contents;
|
|
3522
2099
|
}, "de_UpgradeElasticsearchDomainCommand");
|
|
3523
|
-
var
|
|
2100
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3524
2101
|
const parsedOutput = {
|
|
3525
2102
|
...output,
|
|
3526
2103
|
body: await parseErrorBody(output.body, context)
|
|
3527
2104
|
};
|
|
3528
2105
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3529
2106
|
switch (errorCode) {
|
|
3530
|
-
case "BaseException":
|
|
3531
|
-
case "com.amazonaws.elasticsearchservice#BaseException":
|
|
3532
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
3533
2107
|
case "DisabledOperationException":
|
|
3534
2108
|
case "com.amazonaws.elasticsearchservice#DisabledOperationException":
|
|
3535
2109
|
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
3536
|
-
case "
|
|
3537
|
-
case "com.amazonaws.elasticsearchservice#
|
|
3538
|
-
throw await
|
|
3539
|
-
case "ResourceAlreadyExistsException":
|
|
3540
|
-
case "com.amazonaws.elasticsearchservice#ResourceAlreadyExistsException":
|
|
3541
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
2110
|
+
case "LimitExceededException":
|
|
2111
|
+
case "com.amazonaws.elasticsearchservice#LimitExceededException":
|
|
2112
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3542
2113
|
case "ResourceNotFoundException":
|
|
3543
2114
|
case "com.amazonaws.elasticsearchservice#ResourceNotFoundException":
|
|
3544
2115
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2116
|
+
case "BaseException":
|
|
2117
|
+
case "com.amazonaws.elasticsearchservice#BaseException":
|
|
2118
|
+
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2119
|
+
case "InternalException":
|
|
2120
|
+
case "com.amazonaws.elasticsearchservice#InternalException":
|
|
2121
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3545
2122
|
case "ValidationException":
|
|
3546
2123
|
case "com.amazonaws.elasticsearchservice#ValidationException":
|
|
3547
2124
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2125
|
+
case "AccessDeniedException":
|
|
2126
|
+
case "com.amazonaws.elasticsearchservice#AccessDeniedException":
|
|
2127
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2128
|
+
case "ConflictException":
|
|
2129
|
+
case "com.amazonaws.elasticsearchservice#ConflictException":
|
|
2130
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2131
|
+
case "InvalidTypeException":
|
|
2132
|
+
case "com.amazonaws.elasticsearchservice#InvalidTypeException":
|
|
2133
|
+
throw await de_InvalidTypeExceptionRes(parsedOutput, context);
|
|
2134
|
+
case "ResourceAlreadyExistsException":
|
|
2135
|
+
case "com.amazonaws.elasticsearchservice#ResourceAlreadyExistsException":
|
|
2136
|
+
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
2137
|
+
case "InvalidPaginationTokenException":
|
|
2138
|
+
case "com.amazonaws.elasticsearchservice#InvalidPaginationTokenException":
|
|
2139
|
+
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
3548
2140
|
default:
|
|
3549
2141
|
const parsedBody = parsedOutput.body;
|
|
3550
2142
|
return throwDefaultError({
|
|
@@ -3553,7 +2145,7 @@ var de_UpgradeElasticsearchDomainCommandError = /* @__PURE__ */ __name(async (ou
|
|
|
3553
2145
|
errorCode
|
|
3554
2146
|
});
|
|
3555
2147
|
}
|
|
3556
|
-
}, "
|
|
2148
|
+
}, "de_CommandError");
|
|
3557
2149
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(ElasticsearchServiceServiceException);
|
|
3558
2150
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
3559
2151
|
const contents = (0, import_smithy_client.map)({});
|