@aws-sdk/client-elasticsearch-service 3.28.0 → 3.32.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/CHANGELOG.md +35 -0
- package/commands/ListDomainNamesCommand.ts +3 -3
- package/dist/cjs/commands/ListDomainNamesCommand.js +1 -1
- package/dist/cjs/commands/ListDomainNamesCommand.js.map +1 -1
- package/dist/cjs/models/models_0.js +16 -2
- package/dist/cjs/models/models_0.js.map +1 -1
- package/dist/cjs/package.json +31 -31
- package/dist/cjs/protocols/Aws_restJson1.js +82 -76
- package/dist/cjs/protocols/Aws_restJson1.js.map +1 -1
- package/dist/es/commands/ListDomainNamesCommand.js +2 -2
- package/dist/es/commands/ListDomainNamesCommand.js.map +1 -1
- package/dist/es/endpoints.js +1 -2
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/models/models_0.js +12 -0
- package/dist/es/models/models_0.js.map +1 -1
- package/dist/es/package.json +31 -31
- package/dist/es/protocols/Aws_restJson1.js +267 -189
- package/dist/es/protocols/Aws_restJson1.js.map +1 -1
- package/dist/types/commands/ListDomainNamesCommand.d.ts +2 -2
- package/dist/types/models/models_0.d.ts +28 -5
- package/dist/types/ts3.4/commands/ListDomainNamesCommand.d.ts +2 -2
- package/dist/types/ts3.4/models/models_0.d.ts +28 -5
- package/models/models_0.ts +34 -5
- package/package.json +31 -31
- package/protocols/Aws_restJson1.ts +90 -78
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectBoolean as __expectBoolean,
|
|
3
|
+
import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
4
4
|
export var serializeAws_restJson1AcceptInboundCrossClusterSearchConnectionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
5
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
6
6
|
return __generator(this, function (_c) {
|
|
@@ -851,17 +851,15 @@ export var serializeAws_restJson1GetUpgradeStatusCommand = function (input, cont
|
|
|
851
851
|
});
|
|
852
852
|
}); };
|
|
853
853
|
export var serializeAws_restJson1ListDomainNamesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
854
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
854
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
855
855
|
return __generator(this, function (_c) {
|
|
856
856
|
switch (_c.label) {
|
|
857
857
|
case 0: return [4 /*yield*/, context.endpoint()];
|
|
858
858
|
case 1:
|
|
859
859
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
860
|
-
headers = {
|
|
861
|
-
"content-type": "application/json",
|
|
862
|
-
};
|
|
860
|
+
headers = {};
|
|
863
861
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2015-01-01/domain";
|
|
864
|
-
|
|
862
|
+
query = __assign({}, (input.EngineType !== undefined && { engineType: input.EngineType }));
|
|
865
863
|
return [2 /*return*/, new __HttpRequest({
|
|
866
864
|
protocol: protocol,
|
|
867
865
|
hostname: hostname,
|
|
@@ -869,6 +867,7 @@ export var serializeAws_restJson1ListDomainNamesCommand = function (input, conte
|
|
|
869
867
|
method: "GET",
|
|
870
868
|
headers: headers,
|
|
871
869
|
path: resolvedPath,
|
|
870
|
+
query: query,
|
|
872
871
|
body: body,
|
|
873
872
|
})];
|
|
874
873
|
}
|
|
@@ -1252,9 +1251,9 @@ export var serializeAws_restJson1UpgradeElasticsearchDomainCommand = function (i
|
|
|
1252
1251
|
});
|
|
1253
1252
|
}); };
|
|
1254
1253
|
export var deserializeAws_restJson1AcceptInboundCrossClusterSearchConnectionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1255
|
-
var contents, data;
|
|
1256
|
-
return __generator(this, function (
|
|
1257
|
-
switch (
|
|
1254
|
+
var contents, data, _a, _b;
|
|
1255
|
+
return __generator(this, function (_c) {
|
|
1256
|
+
switch (_c.label) {
|
|
1258
1257
|
case 0:
|
|
1259
1258
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1260
1259
|
return [2 /*return*/, deserializeAws_restJson1AcceptInboundCrossClusterSearchConnectionCommandError(output, context)];
|
|
@@ -1263,9 +1262,11 @@ export var deserializeAws_restJson1AcceptInboundCrossClusterSearchConnectionComm
|
|
|
1263
1262
|
$metadata: deserializeMetadata(output),
|
|
1264
1263
|
CrossClusterSearchConnection: undefined,
|
|
1265
1264
|
};
|
|
1265
|
+
_a = __expectNonNull;
|
|
1266
|
+
_b = __expectObject;
|
|
1266
1267
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
1267
1268
|
case 1:
|
|
1268
|
-
data = _a.sent();
|
|
1269
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1269
1270
|
if (data.CrossClusterSearchConnection !== undefined && data.CrossClusterSearchConnection !== null) {
|
|
1270
1271
|
contents.CrossClusterSearchConnection = deserializeAws_restJson1InboundCrossClusterSearchConnection(data.CrossClusterSearchConnection, context);
|
|
1271
1272
|
}
|
|
@@ -1408,9 +1409,9 @@ var deserializeAws_restJson1AddTagsCommandError = function (output, context) { r
|
|
|
1408
1409
|
});
|
|
1409
1410
|
}); };
|
|
1410
1411
|
export var deserializeAws_restJson1AssociatePackageCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1411
|
-
var contents, data;
|
|
1412
|
-
return __generator(this, function (
|
|
1413
|
-
switch (
|
|
1412
|
+
var contents, data, _a, _b;
|
|
1413
|
+
return __generator(this, function (_c) {
|
|
1414
|
+
switch (_c.label) {
|
|
1414
1415
|
case 0:
|
|
1415
1416
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1416
1417
|
return [2 /*return*/, deserializeAws_restJson1AssociatePackageCommandError(output, context)];
|
|
@@ -1419,9 +1420,11 @@ export var deserializeAws_restJson1AssociatePackageCommand = function (output, c
|
|
|
1419
1420
|
$metadata: deserializeMetadata(output),
|
|
1420
1421
|
DomainPackageDetails: undefined,
|
|
1421
1422
|
};
|
|
1423
|
+
_a = __expectNonNull;
|
|
1424
|
+
_b = __expectObject;
|
|
1422
1425
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
1423
1426
|
case 1:
|
|
1424
|
-
data = _a.sent();
|
|
1427
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1425
1428
|
if (data.DomainPackageDetails !== undefined && data.DomainPackageDetails !== null) {
|
|
1426
1429
|
contents.DomainPackageDetails = deserializeAws_restJson1DomainPackageDetails(data.DomainPackageDetails, context);
|
|
1427
1430
|
}
|
|
@@ -1508,9 +1511,9 @@ var deserializeAws_restJson1AssociatePackageCommandError = function (output, con
|
|
|
1508
1511
|
});
|
|
1509
1512
|
}); };
|
|
1510
1513
|
export var deserializeAws_restJson1CancelElasticsearchServiceSoftwareUpdateCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1511
|
-
var contents, data;
|
|
1512
|
-
return __generator(this, function (
|
|
1513
|
-
switch (
|
|
1514
|
+
var contents, data, _a, _b;
|
|
1515
|
+
return __generator(this, function (_c) {
|
|
1516
|
+
switch (_c.label) {
|
|
1514
1517
|
case 0:
|
|
1515
1518
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1516
1519
|
return [2 /*return*/, deserializeAws_restJson1CancelElasticsearchServiceSoftwareUpdateCommandError(output, context)];
|
|
@@ -1519,9 +1522,11 @@ export var deserializeAws_restJson1CancelElasticsearchServiceSoftwareUpdateComma
|
|
|
1519
1522
|
$metadata: deserializeMetadata(output),
|
|
1520
1523
|
ServiceSoftwareOptions: undefined,
|
|
1521
1524
|
};
|
|
1525
|
+
_a = __expectNonNull;
|
|
1526
|
+
_b = __expectObject;
|
|
1522
1527
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
1523
1528
|
case 1:
|
|
1524
|
-
data = _a.sent();
|
|
1529
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1525
1530
|
if (data.ServiceSoftwareOptions !== undefined && data.ServiceSoftwareOptions !== null) {
|
|
1526
1531
|
contents.ServiceSoftwareOptions = deserializeAws_restJson1ServiceSoftwareOptions(data.ServiceSoftwareOptions, context);
|
|
1527
1532
|
}
|
|
@@ -1592,9 +1597,9 @@ var deserializeAws_restJson1CancelElasticsearchServiceSoftwareUpdateCommandError
|
|
|
1592
1597
|
});
|
|
1593
1598
|
}); };
|
|
1594
1599
|
export var deserializeAws_restJson1CreateElasticsearchDomainCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1595
|
-
var contents, data;
|
|
1596
|
-
return __generator(this, function (
|
|
1597
|
-
switch (
|
|
1600
|
+
var contents, data, _a, _b;
|
|
1601
|
+
return __generator(this, function (_c) {
|
|
1602
|
+
switch (_c.label) {
|
|
1598
1603
|
case 0:
|
|
1599
1604
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1600
1605
|
return [2 /*return*/, deserializeAws_restJson1CreateElasticsearchDomainCommandError(output, context)];
|
|
@@ -1603,9 +1608,11 @@ export var deserializeAws_restJson1CreateElasticsearchDomainCommand = function (
|
|
|
1603
1608
|
$metadata: deserializeMetadata(output),
|
|
1604
1609
|
DomainStatus: undefined,
|
|
1605
1610
|
};
|
|
1611
|
+
_a = __expectNonNull;
|
|
1612
|
+
_b = __expectObject;
|
|
1606
1613
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
1607
1614
|
case 1:
|
|
1608
|
-
data = _a.sent();
|
|
1615
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1609
1616
|
if (data.DomainStatus !== undefined && data.DomainStatus !== null) {
|
|
1610
1617
|
contents.DomainStatus = deserializeAws_restJson1ElasticsearchDomainStatus(data.DomainStatus, context);
|
|
1611
1618
|
}
|
|
@@ -1700,9 +1707,9 @@ var deserializeAws_restJson1CreateElasticsearchDomainCommandError = function (ou
|
|
|
1700
1707
|
});
|
|
1701
1708
|
}); };
|
|
1702
1709
|
export var deserializeAws_restJson1CreateOutboundCrossClusterSearchConnectionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1703
|
-
var contents, data;
|
|
1704
|
-
return __generator(this, function (
|
|
1705
|
-
switch (
|
|
1710
|
+
var contents, data, _a, _b;
|
|
1711
|
+
return __generator(this, function (_c) {
|
|
1712
|
+
switch (_c.label) {
|
|
1706
1713
|
case 0:
|
|
1707
1714
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1708
1715
|
return [2 /*return*/, deserializeAws_restJson1CreateOutboundCrossClusterSearchConnectionCommandError(output, context)];
|
|
@@ -1715,9 +1722,11 @@ export var deserializeAws_restJson1CreateOutboundCrossClusterSearchConnectionCom
|
|
|
1715
1722
|
DestinationDomainInfo: undefined,
|
|
1716
1723
|
SourceDomainInfo: undefined,
|
|
1717
1724
|
};
|
|
1725
|
+
_a = __expectNonNull;
|
|
1726
|
+
_b = __expectObject;
|
|
1718
1727
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
1719
1728
|
case 1:
|
|
1720
|
-
data = _a.sent();
|
|
1729
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1721
1730
|
if (data.ConnectionAlias !== undefined && data.ConnectionAlias !== null) {
|
|
1722
1731
|
contents.ConnectionAlias = __expectString(data.ConnectionAlias);
|
|
1723
1732
|
}
|
|
@@ -1800,9 +1809,9 @@ var deserializeAws_restJson1CreateOutboundCrossClusterSearchConnectionCommandErr
|
|
|
1800
1809
|
});
|
|
1801
1810
|
}); };
|
|
1802
1811
|
export var deserializeAws_restJson1CreatePackageCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1803
|
-
var contents, data;
|
|
1804
|
-
return __generator(this, function (
|
|
1805
|
-
switch (
|
|
1812
|
+
var contents, data, _a, _b;
|
|
1813
|
+
return __generator(this, function (_c) {
|
|
1814
|
+
switch (_c.label) {
|
|
1806
1815
|
case 0:
|
|
1807
1816
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1808
1817
|
return [2 /*return*/, deserializeAws_restJson1CreatePackageCommandError(output, context)];
|
|
@@ -1811,9 +1820,11 @@ export var deserializeAws_restJson1CreatePackageCommand = function (output, cont
|
|
|
1811
1820
|
$metadata: deserializeMetadata(output),
|
|
1812
1821
|
PackageDetails: undefined,
|
|
1813
1822
|
};
|
|
1823
|
+
_a = __expectNonNull;
|
|
1824
|
+
_b = __expectObject;
|
|
1814
1825
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
1815
1826
|
case 1:
|
|
1816
|
-
data = _a.sent();
|
|
1827
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1817
1828
|
if (data.PackageDetails !== undefined && data.PackageDetails !== null) {
|
|
1818
1829
|
contents.PackageDetails = deserializeAws_restJson1PackageDetails(data.PackageDetails, context);
|
|
1819
1830
|
}
|
|
@@ -1908,9 +1919,9 @@ var deserializeAws_restJson1CreatePackageCommandError = function (output, contex
|
|
|
1908
1919
|
});
|
|
1909
1920
|
}); };
|
|
1910
1921
|
export var deserializeAws_restJson1DeleteElasticsearchDomainCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1911
|
-
var contents, data;
|
|
1912
|
-
return __generator(this, function (
|
|
1913
|
-
switch (
|
|
1922
|
+
var contents, data, _a, _b;
|
|
1923
|
+
return __generator(this, function (_c) {
|
|
1924
|
+
switch (_c.label) {
|
|
1914
1925
|
case 0:
|
|
1915
1926
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1916
1927
|
return [2 /*return*/, deserializeAws_restJson1DeleteElasticsearchDomainCommandError(output, context)];
|
|
@@ -1919,9 +1930,11 @@ export var deserializeAws_restJson1DeleteElasticsearchDomainCommand = function (
|
|
|
1919
1930
|
$metadata: deserializeMetadata(output),
|
|
1920
1931
|
DomainStatus: undefined,
|
|
1921
1932
|
};
|
|
1933
|
+
_a = __expectNonNull;
|
|
1934
|
+
_b = __expectObject;
|
|
1922
1935
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
1923
1936
|
case 1:
|
|
1924
|
-
data = _a.sent();
|
|
1937
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1925
1938
|
if (data.DomainStatus !== undefined && data.DomainStatus !== null) {
|
|
1926
1939
|
contents.DomainStatus = deserializeAws_restJson1ElasticsearchDomainStatus(data.DomainStatus, context);
|
|
1927
1940
|
}
|
|
@@ -2064,9 +2077,9 @@ var deserializeAws_restJson1DeleteElasticsearchServiceRoleCommandError = functio
|
|
|
2064
2077
|
});
|
|
2065
2078
|
}); };
|
|
2066
2079
|
export var deserializeAws_restJson1DeleteInboundCrossClusterSearchConnectionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2067
|
-
var contents, data;
|
|
2068
|
-
return __generator(this, function (
|
|
2069
|
-
switch (
|
|
2080
|
+
var contents, data, _a, _b;
|
|
2081
|
+
return __generator(this, function (_c) {
|
|
2082
|
+
switch (_c.label) {
|
|
2070
2083
|
case 0:
|
|
2071
2084
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2072
2085
|
return [2 /*return*/, deserializeAws_restJson1DeleteInboundCrossClusterSearchConnectionCommandError(output, context)];
|
|
@@ -2075,9 +2088,11 @@ export var deserializeAws_restJson1DeleteInboundCrossClusterSearchConnectionComm
|
|
|
2075
2088
|
$metadata: deserializeMetadata(output),
|
|
2076
2089
|
CrossClusterSearchConnection: undefined,
|
|
2077
2090
|
};
|
|
2091
|
+
_a = __expectNonNull;
|
|
2092
|
+
_b = __expectObject;
|
|
2078
2093
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2079
2094
|
case 1:
|
|
2080
|
-
data = _a.sent();
|
|
2095
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2081
2096
|
if (data.CrossClusterSearchConnection !== undefined && data.CrossClusterSearchConnection !== null) {
|
|
2082
2097
|
contents.CrossClusterSearchConnection = deserializeAws_restJson1InboundCrossClusterSearchConnection(data.CrossClusterSearchConnection, context);
|
|
2083
2098
|
}
|
|
@@ -2132,9 +2147,9 @@ var deserializeAws_restJson1DeleteInboundCrossClusterSearchConnectionCommandErro
|
|
|
2132
2147
|
});
|
|
2133
2148
|
}); };
|
|
2134
2149
|
export var deserializeAws_restJson1DeleteOutboundCrossClusterSearchConnectionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2135
|
-
var contents, data;
|
|
2136
|
-
return __generator(this, function (
|
|
2137
|
-
switch (
|
|
2150
|
+
var contents, data, _a, _b;
|
|
2151
|
+
return __generator(this, function (_c) {
|
|
2152
|
+
switch (_c.label) {
|
|
2138
2153
|
case 0:
|
|
2139
2154
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2140
2155
|
return [2 /*return*/, deserializeAws_restJson1DeleteOutboundCrossClusterSearchConnectionCommandError(output, context)];
|
|
@@ -2143,9 +2158,11 @@ export var deserializeAws_restJson1DeleteOutboundCrossClusterSearchConnectionCom
|
|
|
2143
2158
|
$metadata: deserializeMetadata(output),
|
|
2144
2159
|
CrossClusterSearchConnection: undefined,
|
|
2145
2160
|
};
|
|
2161
|
+
_a = __expectNonNull;
|
|
2162
|
+
_b = __expectObject;
|
|
2146
2163
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2147
2164
|
case 1:
|
|
2148
|
-
data = _a.sent();
|
|
2165
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2149
2166
|
if (data.CrossClusterSearchConnection !== undefined && data.CrossClusterSearchConnection !== null) {
|
|
2150
2167
|
contents.CrossClusterSearchConnection = deserializeAws_restJson1OutboundCrossClusterSearchConnection(data.CrossClusterSearchConnection, context);
|
|
2151
2168
|
}
|
|
@@ -2200,9 +2217,9 @@ var deserializeAws_restJson1DeleteOutboundCrossClusterSearchConnectionCommandErr
|
|
|
2200
2217
|
});
|
|
2201
2218
|
}); };
|
|
2202
2219
|
export var deserializeAws_restJson1DeletePackageCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2203
|
-
var contents, data;
|
|
2204
|
-
return __generator(this, function (
|
|
2205
|
-
switch (
|
|
2220
|
+
var contents, data, _a, _b;
|
|
2221
|
+
return __generator(this, function (_c) {
|
|
2222
|
+
switch (_c.label) {
|
|
2206
2223
|
case 0:
|
|
2207
2224
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2208
2225
|
return [2 /*return*/, deserializeAws_restJson1DeletePackageCommandError(output, context)];
|
|
@@ -2211,9 +2228,11 @@ export var deserializeAws_restJson1DeletePackageCommand = function (output, cont
|
|
|
2211
2228
|
$metadata: deserializeMetadata(output),
|
|
2212
2229
|
PackageDetails: undefined,
|
|
2213
2230
|
};
|
|
2231
|
+
_a = __expectNonNull;
|
|
2232
|
+
_b = __expectObject;
|
|
2214
2233
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2215
2234
|
case 1:
|
|
2216
|
-
data = _a.sent();
|
|
2235
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2217
2236
|
if (data.PackageDetails !== undefined && data.PackageDetails !== null) {
|
|
2218
2237
|
contents.PackageDetails = deserializeAws_restJson1PackageDetails(data.PackageDetails, context);
|
|
2219
2238
|
}
|
|
@@ -2300,9 +2319,9 @@ var deserializeAws_restJson1DeletePackageCommandError = function (output, contex
|
|
|
2300
2319
|
});
|
|
2301
2320
|
}); };
|
|
2302
2321
|
export var deserializeAws_restJson1DescribeDomainAutoTunesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2303
|
-
var contents, data;
|
|
2304
|
-
return __generator(this, function (
|
|
2305
|
-
switch (
|
|
2322
|
+
var contents, data, _a, _b;
|
|
2323
|
+
return __generator(this, function (_c) {
|
|
2324
|
+
switch (_c.label) {
|
|
2306
2325
|
case 0:
|
|
2307
2326
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2308
2327
|
return [2 /*return*/, deserializeAws_restJson1DescribeDomainAutoTunesCommandError(output, context)];
|
|
@@ -2312,9 +2331,11 @@ export var deserializeAws_restJson1DescribeDomainAutoTunesCommand = function (ou
|
|
|
2312
2331
|
AutoTunes: undefined,
|
|
2313
2332
|
NextToken: undefined,
|
|
2314
2333
|
};
|
|
2334
|
+
_a = __expectNonNull;
|
|
2335
|
+
_b = __expectObject;
|
|
2315
2336
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2316
2337
|
case 1:
|
|
2317
|
-
data = _a.sent();
|
|
2338
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2318
2339
|
if (data.AutoTunes !== undefined && data.AutoTunes !== null) {
|
|
2319
2340
|
contents.AutoTunes = deserializeAws_restJson1AutoTuneList(data.AutoTunes, context);
|
|
2320
2341
|
}
|
|
@@ -2388,9 +2409,9 @@ var deserializeAws_restJson1DescribeDomainAutoTunesCommandError = function (outp
|
|
|
2388
2409
|
});
|
|
2389
2410
|
}); };
|
|
2390
2411
|
export var deserializeAws_restJson1DescribeElasticsearchDomainCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2391
|
-
var contents, data;
|
|
2392
|
-
return __generator(this, function (
|
|
2393
|
-
switch (
|
|
2412
|
+
var contents, data, _a, _b;
|
|
2413
|
+
return __generator(this, function (_c) {
|
|
2414
|
+
switch (_c.label) {
|
|
2394
2415
|
case 0:
|
|
2395
2416
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2396
2417
|
return [2 /*return*/, deserializeAws_restJson1DescribeElasticsearchDomainCommandError(output, context)];
|
|
@@ -2399,9 +2420,11 @@ export var deserializeAws_restJson1DescribeElasticsearchDomainCommand = function
|
|
|
2399
2420
|
$metadata: deserializeMetadata(output),
|
|
2400
2421
|
DomainStatus: undefined,
|
|
2401
2422
|
};
|
|
2423
|
+
_a = __expectNonNull;
|
|
2424
|
+
_b = __expectObject;
|
|
2402
2425
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2403
2426
|
case 1:
|
|
2404
|
-
data = _a.sent();
|
|
2427
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2405
2428
|
if (data.DomainStatus !== undefined && data.DomainStatus !== null) {
|
|
2406
2429
|
contents.DomainStatus = deserializeAws_restJson1ElasticsearchDomainStatus(data.DomainStatus, context);
|
|
2407
2430
|
}
|
|
@@ -2472,9 +2495,9 @@ var deserializeAws_restJson1DescribeElasticsearchDomainCommandError = function (
|
|
|
2472
2495
|
});
|
|
2473
2496
|
}); };
|
|
2474
2497
|
export var deserializeAws_restJson1DescribeElasticsearchDomainConfigCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2475
|
-
var contents, data;
|
|
2476
|
-
return __generator(this, function (
|
|
2477
|
-
switch (
|
|
2498
|
+
var contents, data, _a, _b;
|
|
2499
|
+
return __generator(this, function (_c) {
|
|
2500
|
+
switch (_c.label) {
|
|
2478
2501
|
case 0:
|
|
2479
2502
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2480
2503
|
return [2 /*return*/, deserializeAws_restJson1DescribeElasticsearchDomainConfigCommandError(output, context)];
|
|
@@ -2483,9 +2506,11 @@ export var deserializeAws_restJson1DescribeElasticsearchDomainConfigCommand = fu
|
|
|
2483
2506
|
$metadata: deserializeMetadata(output),
|
|
2484
2507
|
DomainConfig: undefined,
|
|
2485
2508
|
};
|
|
2509
|
+
_a = __expectNonNull;
|
|
2510
|
+
_b = __expectObject;
|
|
2486
2511
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2487
2512
|
case 1:
|
|
2488
|
-
data = _a.sent();
|
|
2513
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2489
2514
|
if (data.DomainConfig !== undefined && data.DomainConfig !== null) {
|
|
2490
2515
|
contents.DomainConfig = deserializeAws_restJson1ElasticsearchDomainConfig(data.DomainConfig, context);
|
|
2491
2516
|
}
|
|
@@ -2556,9 +2581,9 @@ var deserializeAws_restJson1DescribeElasticsearchDomainConfigCommandError = func
|
|
|
2556
2581
|
});
|
|
2557
2582
|
}); };
|
|
2558
2583
|
export var deserializeAws_restJson1DescribeElasticsearchDomainsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2559
|
-
var contents, data;
|
|
2560
|
-
return __generator(this, function (
|
|
2561
|
-
switch (
|
|
2584
|
+
var contents, data, _a, _b;
|
|
2585
|
+
return __generator(this, function (_c) {
|
|
2586
|
+
switch (_c.label) {
|
|
2562
2587
|
case 0:
|
|
2563
2588
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2564
2589
|
return [2 /*return*/, deserializeAws_restJson1DescribeElasticsearchDomainsCommandError(output, context)];
|
|
@@ -2567,9 +2592,11 @@ export var deserializeAws_restJson1DescribeElasticsearchDomainsCommand = functio
|
|
|
2567
2592
|
$metadata: deserializeMetadata(output),
|
|
2568
2593
|
DomainStatusList: undefined,
|
|
2569
2594
|
};
|
|
2595
|
+
_a = __expectNonNull;
|
|
2596
|
+
_b = __expectObject;
|
|
2570
2597
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2571
2598
|
case 1:
|
|
2572
|
-
data = _a.sent();
|
|
2599
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2573
2600
|
if (data.DomainStatusList !== undefined && data.DomainStatusList !== null) {
|
|
2574
2601
|
contents.DomainStatusList = deserializeAws_restJson1ElasticsearchDomainStatusList(data.DomainStatusList, context);
|
|
2575
2602
|
}
|
|
@@ -2632,9 +2659,9 @@ var deserializeAws_restJson1DescribeElasticsearchDomainsCommandError = function
|
|
|
2632
2659
|
});
|
|
2633
2660
|
}); };
|
|
2634
2661
|
export var deserializeAws_restJson1DescribeElasticsearchInstanceTypeLimitsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2635
|
-
var contents, data;
|
|
2636
|
-
return __generator(this, function (
|
|
2637
|
-
switch (
|
|
2662
|
+
var contents, data, _a, _b;
|
|
2663
|
+
return __generator(this, function (_c) {
|
|
2664
|
+
switch (_c.label) {
|
|
2638
2665
|
case 0:
|
|
2639
2666
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2640
2667
|
return [2 /*return*/, deserializeAws_restJson1DescribeElasticsearchInstanceTypeLimitsCommandError(output, context)];
|
|
@@ -2643,9 +2670,11 @@ export var deserializeAws_restJson1DescribeElasticsearchInstanceTypeLimitsComman
|
|
|
2643
2670
|
$metadata: deserializeMetadata(output),
|
|
2644
2671
|
LimitsByRole: undefined,
|
|
2645
2672
|
};
|
|
2673
|
+
_a = __expectNonNull;
|
|
2674
|
+
_b = __expectObject;
|
|
2646
2675
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2647
2676
|
case 1:
|
|
2648
|
-
data = _a.sent();
|
|
2677
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2649
2678
|
if (data.LimitsByRole !== undefined && data.LimitsByRole !== null) {
|
|
2650
2679
|
contents.LimitsByRole = deserializeAws_restJson1LimitsByRole(data.LimitsByRole, context);
|
|
2651
2680
|
}
|
|
@@ -2732,9 +2761,9 @@ var deserializeAws_restJson1DescribeElasticsearchInstanceTypeLimitsCommandError
|
|
|
2732
2761
|
});
|
|
2733
2762
|
}); };
|
|
2734
2763
|
export var deserializeAws_restJson1DescribeInboundCrossClusterSearchConnectionsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2735
|
-
var contents, data;
|
|
2736
|
-
return __generator(this, function (
|
|
2737
|
-
switch (
|
|
2764
|
+
var contents, data, _a, _b;
|
|
2765
|
+
return __generator(this, function (_c) {
|
|
2766
|
+
switch (_c.label) {
|
|
2738
2767
|
case 0:
|
|
2739
2768
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2740
2769
|
return [2 /*return*/, deserializeAws_restJson1DescribeInboundCrossClusterSearchConnectionsCommandError(output, context)];
|
|
@@ -2744,9 +2773,11 @@ export var deserializeAws_restJson1DescribeInboundCrossClusterSearchConnectionsC
|
|
|
2744
2773
|
CrossClusterSearchConnections: undefined,
|
|
2745
2774
|
NextToken: undefined,
|
|
2746
2775
|
};
|
|
2776
|
+
_a = __expectNonNull;
|
|
2777
|
+
_b = __expectObject;
|
|
2747
2778
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2748
2779
|
case 1:
|
|
2749
|
-
data = _a.sent();
|
|
2780
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2750
2781
|
if (data.CrossClusterSearchConnections !== undefined && data.CrossClusterSearchConnections !== null) {
|
|
2751
2782
|
contents.CrossClusterSearchConnections = deserializeAws_restJson1InboundCrossClusterSearchConnections(data.CrossClusterSearchConnections, context);
|
|
2752
2783
|
}
|
|
@@ -2804,9 +2835,9 @@ var deserializeAws_restJson1DescribeInboundCrossClusterSearchConnectionsCommandE
|
|
|
2804
2835
|
});
|
|
2805
2836
|
}); };
|
|
2806
2837
|
export var deserializeAws_restJson1DescribeOutboundCrossClusterSearchConnectionsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2807
|
-
var contents, data;
|
|
2808
|
-
return __generator(this, function (
|
|
2809
|
-
switch (
|
|
2838
|
+
var contents, data, _a, _b;
|
|
2839
|
+
return __generator(this, function (_c) {
|
|
2840
|
+
switch (_c.label) {
|
|
2810
2841
|
case 0:
|
|
2811
2842
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2812
2843
|
return [2 /*return*/, deserializeAws_restJson1DescribeOutboundCrossClusterSearchConnectionsCommandError(output, context)];
|
|
@@ -2816,9 +2847,11 @@ export var deserializeAws_restJson1DescribeOutboundCrossClusterSearchConnections
|
|
|
2816
2847
|
CrossClusterSearchConnections: undefined,
|
|
2817
2848
|
NextToken: undefined,
|
|
2818
2849
|
};
|
|
2850
|
+
_a = __expectNonNull;
|
|
2851
|
+
_b = __expectObject;
|
|
2819
2852
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2820
2853
|
case 1:
|
|
2821
|
-
data = _a.sent();
|
|
2854
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2822
2855
|
if (data.CrossClusterSearchConnections !== undefined && data.CrossClusterSearchConnections !== null) {
|
|
2823
2856
|
contents.CrossClusterSearchConnections = deserializeAws_restJson1OutboundCrossClusterSearchConnections(data.CrossClusterSearchConnections, context);
|
|
2824
2857
|
}
|
|
@@ -2876,9 +2909,9 @@ var deserializeAws_restJson1DescribeOutboundCrossClusterSearchConnectionsCommand
|
|
|
2876
2909
|
});
|
|
2877
2910
|
}); };
|
|
2878
2911
|
export var deserializeAws_restJson1DescribePackagesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2879
|
-
var contents, data;
|
|
2880
|
-
return __generator(this, function (
|
|
2881
|
-
switch (
|
|
2912
|
+
var contents, data, _a, _b;
|
|
2913
|
+
return __generator(this, function (_c) {
|
|
2914
|
+
switch (_c.label) {
|
|
2882
2915
|
case 0:
|
|
2883
2916
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2884
2917
|
return [2 /*return*/, deserializeAws_restJson1DescribePackagesCommandError(output, context)];
|
|
@@ -2888,9 +2921,11 @@ export var deserializeAws_restJson1DescribePackagesCommand = function (output, c
|
|
|
2888
2921
|
NextToken: undefined,
|
|
2889
2922
|
PackageDetailsList: undefined,
|
|
2890
2923
|
};
|
|
2924
|
+
_a = __expectNonNull;
|
|
2925
|
+
_b = __expectObject;
|
|
2891
2926
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2892
2927
|
case 1:
|
|
2893
|
-
data = _a.sent();
|
|
2928
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2894
2929
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
2895
2930
|
contents.NextToken = __expectString(data.NextToken);
|
|
2896
2931
|
}
|
|
@@ -2972,9 +3007,9 @@ var deserializeAws_restJson1DescribePackagesCommandError = function (output, con
|
|
|
2972
3007
|
});
|
|
2973
3008
|
}); };
|
|
2974
3009
|
export var deserializeAws_restJson1DescribeReservedElasticsearchInstanceOfferingsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2975
|
-
var contents, data;
|
|
2976
|
-
return __generator(this, function (
|
|
2977
|
-
switch (
|
|
3010
|
+
var contents, data, _a, _b;
|
|
3011
|
+
return __generator(this, function (_c) {
|
|
3012
|
+
switch (_c.label) {
|
|
2978
3013
|
case 0:
|
|
2979
3014
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2980
3015
|
return [2 /*return*/, deserializeAws_restJson1DescribeReservedElasticsearchInstanceOfferingsCommandError(output, context)];
|
|
@@ -2984,9 +3019,11 @@ export var deserializeAws_restJson1DescribeReservedElasticsearchInstanceOffering
|
|
|
2984
3019
|
NextToken: undefined,
|
|
2985
3020
|
ReservedElasticsearchInstanceOfferings: undefined,
|
|
2986
3021
|
};
|
|
3022
|
+
_a = __expectNonNull;
|
|
3023
|
+
_b = __expectObject;
|
|
2987
3024
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2988
3025
|
case 1:
|
|
2989
|
-
data = _a.sent();
|
|
3026
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2990
3027
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
2991
3028
|
contents.NextToken = __expectString(data.NextToken);
|
|
2992
3029
|
}
|
|
@@ -3061,9 +3098,9 @@ var deserializeAws_restJson1DescribeReservedElasticsearchInstanceOfferingsComman
|
|
|
3061
3098
|
});
|
|
3062
3099
|
}); };
|
|
3063
3100
|
export var deserializeAws_restJson1DescribeReservedElasticsearchInstancesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3064
|
-
var contents, data;
|
|
3065
|
-
return __generator(this, function (
|
|
3066
|
-
switch (
|
|
3101
|
+
var contents, data, _a, _b;
|
|
3102
|
+
return __generator(this, function (_c) {
|
|
3103
|
+
switch (_c.label) {
|
|
3067
3104
|
case 0:
|
|
3068
3105
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3069
3106
|
return [2 /*return*/, deserializeAws_restJson1DescribeReservedElasticsearchInstancesCommandError(output, context)];
|
|
@@ -3073,9 +3110,11 @@ export var deserializeAws_restJson1DescribeReservedElasticsearchInstancesCommand
|
|
|
3073
3110
|
NextToken: undefined,
|
|
3074
3111
|
ReservedElasticsearchInstances: undefined,
|
|
3075
3112
|
};
|
|
3113
|
+
_a = __expectNonNull;
|
|
3114
|
+
_b = __expectObject;
|
|
3076
3115
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
3077
3116
|
case 1:
|
|
3078
|
-
data = _a.sent();
|
|
3117
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3079
3118
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
3080
3119
|
contents.NextToken = __expectString(data.NextToken);
|
|
3081
3120
|
}
|
|
@@ -3149,9 +3188,9 @@ var deserializeAws_restJson1DescribeReservedElasticsearchInstancesCommandError =
|
|
|
3149
3188
|
});
|
|
3150
3189
|
}); };
|
|
3151
3190
|
export var deserializeAws_restJson1DissociatePackageCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3152
|
-
var contents, data;
|
|
3153
|
-
return __generator(this, function (
|
|
3154
|
-
switch (
|
|
3191
|
+
var contents, data, _a, _b;
|
|
3192
|
+
return __generator(this, function (_c) {
|
|
3193
|
+
switch (_c.label) {
|
|
3155
3194
|
case 0:
|
|
3156
3195
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3157
3196
|
return [2 /*return*/, deserializeAws_restJson1DissociatePackageCommandError(output, context)];
|
|
@@ -3160,9 +3199,11 @@ export var deserializeAws_restJson1DissociatePackageCommand = function (output,
|
|
|
3160
3199
|
$metadata: deserializeMetadata(output),
|
|
3161
3200
|
DomainPackageDetails: undefined,
|
|
3162
3201
|
};
|
|
3202
|
+
_a = __expectNonNull;
|
|
3203
|
+
_b = __expectObject;
|
|
3163
3204
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
3164
3205
|
case 1:
|
|
3165
|
-
data = _a.sent();
|
|
3206
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3166
3207
|
if (data.DomainPackageDetails !== undefined && data.DomainPackageDetails !== null) {
|
|
3167
3208
|
contents.DomainPackageDetails = deserializeAws_restJson1DomainPackageDetails(data.DomainPackageDetails, context);
|
|
3168
3209
|
}
|
|
@@ -3249,9 +3290,9 @@ var deserializeAws_restJson1DissociatePackageCommandError = function (output, co
|
|
|
3249
3290
|
});
|
|
3250
3291
|
}); };
|
|
3251
3292
|
export var deserializeAws_restJson1GetCompatibleElasticsearchVersionsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3252
|
-
var contents, data;
|
|
3253
|
-
return __generator(this, function (
|
|
3254
|
-
switch (
|
|
3293
|
+
var contents, data, _a, _b;
|
|
3294
|
+
return __generator(this, function (_c) {
|
|
3295
|
+
switch (_c.label) {
|
|
3255
3296
|
case 0:
|
|
3256
3297
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3257
3298
|
return [2 /*return*/, deserializeAws_restJson1GetCompatibleElasticsearchVersionsCommandError(output, context)];
|
|
@@ -3260,9 +3301,11 @@ export var deserializeAws_restJson1GetCompatibleElasticsearchVersionsCommand = f
|
|
|
3260
3301
|
$metadata: deserializeMetadata(output),
|
|
3261
3302
|
CompatibleElasticsearchVersions: undefined,
|
|
3262
3303
|
};
|
|
3304
|
+
_a = __expectNonNull;
|
|
3305
|
+
_b = __expectObject;
|
|
3263
3306
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
3264
3307
|
case 1:
|
|
3265
|
-
data = _a.sent();
|
|
3308
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3266
3309
|
if (data.CompatibleElasticsearchVersions !== undefined && data.CompatibleElasticsearchVersions !== null) {
|
|
3267
3310
|
contents.CompatibleElasticsearchVersions = deserializeAws_restJson1CompatibleElasticsearchVersionsList(data.CompatibleElasticsearchVersions, context);
|
|
3268
3311
|
}
|
|
@@ -3341,9 +3384,9 @@ var deserializeAws_restJson1GetCompatibleElasticsearchVersionsCommandError = fun
|
|
|
3341
3384
|
});
|
|
3342
3385
|
}); };
|
|
3343
3386
|
export var deserializeAws_restJson1GetPackageVersionHistoryCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3344
|
-
var contents, data;
|
|
3345
|
-
return __generator(this, function (
|
|
3346
|
-
switch (
|
|
3387
|
+
var contents, data, _a, _b;
|
|
3388
|
+
return __generator(this, function (_c) {
|
|
3389
|
+
switch (_c.label) {
|
|
3347
3390
|
case 0:
|
|
3348
3391
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3349
3392
|
return [2 /*return*/, deserializeAws_restJson1GetPackageVersionHistoryCommandError(output, context)];
|
|
@@ -3354,9 +3397,11 @@ export var deserializeAws_restJson1GetPackageVersionHistoryCommand = function (o
|
|
|
3354
3397
|
PackageID: undefined,
|
|
3355
3398
|
PackageVersionHistoryList: undefined,
|
|
3356
3399
|
};
|
|
3400
|
+
_a = __expectNonNull;
|
|
3401
|
+
_b = __expectObject;
|
|
3357
3402
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
3358
3403
|
case 1:
|
|
3359
|
-
data = _a.sent();
|
|
3404
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3360
3405
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
3361
3406
|
contents.NextToken = __expectString(data.NextToken);
|
|
3362
3407
|
}
|
|
@@ -3441,9 +3486,9 @@ var deserializeAws_restJson1GetPackageVersionHistoryCommandError = function (out
|
|
|
3441
3486
|
});
|
|
3442
3487
|
}); };
|
|
3443
3488
|
export var deserializeAws_restJson1GetUpgradeHistoryCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3444
|
-
var contents, data;
|
|
3445
|
-
return __generator(this, function (
|
|
3446
|
-
switch (
|
|
3489
|
+
var contents, data, _a, _b;
|
|
3490
|
+
return __generator(this, function (_c) {
|
|
3491
|
+
switch (_c.label) {
|
|
3447
3492
|
case 0:
|
|
3448
3493
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3449
3494
|
return [2 /*return*/, deserializeAws_restJson1GetUpgradeHistoryCommandError(output, context)];
|
|
@@ -3453,9 +3498,11 @@ export var deserializeAws_restJson1GetUpgradeHistoryCommand = function (output,
|
|
|
3453
3498
|
NextToken: undefined,
|
|
3454
3499
|
UpgradeHistories: undefined,
|
|
3455
3500
|
};
|
|
3501
|
+
_a = __expectNonNull;
|
|
3502
|
+
_b = __expectObject;
|
|
3456
3503
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
3457
3504
|
case 1:
|
|
3458
|
-
data = _a.sent();
|
|
3505
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3459
3506
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
3460
3507
|
contents.NextToken = __expectString(data.NextToken);
|
|
3461
3508
|
}
|
|
@@ -3537,9 +3584,9 @@ var deserializeAws_restJson1GetUpgradeHistoryCommandError = function (output, co
|
|
|
3537
3584
|
});
|
|
3538
3585
|
}); };
|
|
3539
3586
|
export var deserializeAws_restJson1GetUpgradeStatusCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3540
|
-
var contents, data;
|
|
3541
|
-
return __generator(this, function (
|
|
3542
|
-
switch (
|
|
3587
|
+
var contents, data, _a, _b;
|
|
3588
|
+
return __generator(this, function (_c) {
|
|
3589
|
+
switch (_c.label) {
|
|
3543
3590
|
case 0:
|
|
3544
3591
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3545
3592
|
return [2 /*return*/, deserializeAws_restJson1GetUpgradeStatusCommandError(output, context)];
|
|
@@ -3550,9 +3597,11 @@ export var deserializeAws_restJson1GetUpgradeStatusCommand = function (output, c
|
|
|
3550
3597
|
UpgradeName: undefined,
|
|
3551
3598
|
UpgradeStep: undefined,
|
|
3552
3599
|
};
|
|
3600
|
+
_a = __expectNonNull;
|
|
3601
|
+
_b = __expectObject;
|
|
3553
3602
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
3554
3603
|
case 1:
|
|
3555
|
-
data = _a.sent();
|
|
3604
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3556
3605
|
if (data.StepStatus !== undefined && data.StepStatus !== null) {
|
|
3557
3606
|
contents.StepStatus = __expectString(data.StepStatus);
|
|
3558
3607
|
}
|
|
@@ -3637,9 +3686,9 @@ var deserializeAws_restJson1GetUpgradeStatusCommandError = function (output, con
|
|
|
3637
3686
|
});
|
|
3638
3687
|
}); };
|
|
3639
3688
|
export var deserializeAws_restJson1ListDomainNamesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3640
|
-
var contents, data;
|
|
3641
|
-
return __generator(this, function (
|
|
3642
|
-
switch (
|
|
3689
|
+
var contents, data, _a, _b;
|
|
3690
|
+
return __generator(this, function (_c) {
|
|
3691
|
+
switch (_c.label) {
|
|
3643
3692
|
case 0:
|
|
3644
3693
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3645
3694
|
return [2 /*return*/, deserializeAws_restJson1ListDomainNamesCommandError(output, context)];
|
|
@@ -3648,9 +3697,11 @@ export var deserializeAws_restJson1ListDomainNamesCommand = function (output, co
|
|
|
3648
3697
|
$metadata: deserializeMetadata(output),
|
|
3649
3698
|
DomainNames: undefined,
|
|
3650
3699
|
};
|
|
3700
|
+
_a = __expectNonNull;
|
|
3701
|
+
_b = __expectObject;
|
|
3651
3702
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
3652
3703
|
case 1:
|
|
3653
|
-
data = _a.sent();
|
|
3704
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3654
3705
|
if (data.DomainNames !== undefined && data.DomainNames !== null) {
|
|
3655
3706
|
contents.DomainNames = deserializeAws_restJson1DomainInfoList(data.DomainNames, context);
|
|
3656
3707
|
}
|
|
@@ -3705,9 +3756,9 @@ var deserializeAws_restJson1ListDomainNamesCommandError = function (output, cont
|
|
|
3705
3756
|
});
|
|
3706
3757
|
}); };
|
|
3707
3758
|
export var deserializeAws_restJson1ListDomainsForPackageCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3708
|
-
var contents, data;
|
|
3709
|
-
return __generator(this, function (
|
|
3710
|
-
switch (
|
|
3759
|
+
var contents, data, _a, _b;
|
|
3760
|
+
return __generator(this, function (_c) {
|
|
3761
|
+
switch (_c.label) {
|
|
3711
3762
|
case 0:
|
|
3712
3763
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3713
3764
|
return [2 /*return*/, deserializeAws_restJson1ListDomainsForPackageCommandError(output, context)];
|
|
@@ -3717,9 +3768,11 @@ export var deserializeAws_restJson1ListDomainsForPackageCommand = function (outp
|
|
|
3717
3768
|
DomainPackageDetailsList: undefined,
|
|
3718
3769
|
NextToken: undefined,
|
|
3719
3770
|
};
|
|
3771
|
+
_a = __expectNonNull;
|
|
3772
|
+
_b = __expectObject;
|
|
3720
3773
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
3721
3774
|
case 1:
|
|
3722
|
-
data = _a.sent();
|
|
3775
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3723
3776
|
if (data.DomainPackageDetailsList !== undefined && data.DomainPackageDetailsList !== null) {
|
|
3724
3777
|
contents.DomainPackageDetailsList = deserializeAws_restJson1DomainPackageDetailsList(data.DomainPackageDetailsList, context);
|
|
3725
3778
|
}
|
|
@@ -3801,9 +3854,9 @@ var deserializeAws_restJson1ListDomainsForPackageCommandError = function (output
|
|
|
3801
3854
|
});
|
|
3802
3855
|
}); };
|
|
3803
3856
|
export var deserializeAws_restJson1ListElasticsearchInstanceTypesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3804
|
-
var contents, data;
|
|
3805
|
-
return __generator(this, function (
|
|
3806
|
-
switch (
|
|
3857
|
+
var contents, data, _a, _b;
|
|
3858
|
+
return __generator(this, function (_c) {
|
|
3859
|
+
switch (_c.label) {
|
|
3807
3860
|
case 0:
|
|
3808
3861
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3809
3862
|
return [2 /*return*/, deserializeAws_restJson1ListElasticsearchInstanceTypesCommandError(output, context)];
|
|
@@ -3813,9 +3866,11 @@ export var deserializeAws_restJson1ListElasticsearchInstanceTypesCommand = funct
|
|
|
3813
3866
|
ElasticsearchInstanceTypes: undefined,
|
|
3814
3867
|
NextToken: undefined,
|
|
3815
3868
|
};
|
|
3869
|
+
_a = __expectNonNull;
|
|
3870
|
+
_b = __expectObject;
|
|
3816
3871
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
3817
3872
|
case 1:
|
|
3818
|
-
data = _a.sent();
|
|
3873
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3819
3874
|
if (data.ElasticsearchInstanceTypes !== undefined && data.ElasticsearchInstanceTypes !== null) {
|
|
3820
3875
|
contents.ElasticsearchInstanceTypes = deserializeAws_restJson1ElasticsearchInstanceTypeList(data.ElasticsearchInstanceTypes, context);
|
|
3821
3876
|
}
|
|
@@ -3889,9 +3944,9 @@ var deserializeAws_restJson1ListElasticsearchInstanceTypesCommandError = functio
|
|
|
3889
3944
|
});
|
|
3890
3945
|
}); };
|
|
3891
3946
|
export var deserializeAws_restJson1ListElasticsearchVersionsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3892
|
-
var contents, data;
|
|
3893
|
-
return __generator(this, function (
|
|
3894
|
-
switch (
|
|
3947
|
+
var contents, data, _a, _b;
|
|
3948
|
+
return __generator(this, function (_c) {
|
|
3949
|
+
switch (_c.label) {
|
|
3895
3950
|
case 0:
|
|
3896
3951
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3897
3952
|
return [2 /*return*/, deserializeAws_restJson1ListElasticsearchVersionsCommandError(output, context)];
|
|
@@ -3901,9 +3956,11 @@ export var deserializeAws_restJson1ListElasticsearchVersionsCommand = function (
|
|
|
3901
3956
|
ElasticsearchVersions: undefined,
|
|
3902
3957
|
NextToken: undefined,
|
|
3903
3958
|
};
|
|
3959
|
+
_a = __expectNonNull;
|
|
3960
|
+
_b = __expectObject;
|
|
3904
3961
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
3905
3962
|
case 1:
|
|
3906
|
-
data = _a.sent();
|
|
3963
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3907
3964
|
if (data.ElasticsearchVersions !== undefined && data.ElasticsearchVersions !== null) {
|
|
3908
3965
|
contents.ElasticsearchVersions = deserializeAws_restJson1ElasticsearchVersionList(data.ElasticsearchVersions, context);
|
|
3909
3966
|
}
|
|
@@ -3977,9 +4034,9 @@ var deserializeAws_restJson1ListElasticsearchVersionsCommandError = function (ou
|
|
|
3977
4034
|
});
|
|
3978
4035
|
}); };
|
|
3979
4036
|
export var deserializeAws_restJson1ListPackagesForDomainCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3980
|
-
var contents, data;
|
|
3981
|
-
return __generator(this, function (
|
|
3982
|
-
switch (
|
|
4037
|
+
var contents, data, _a, _b;
|
|
4038
|
+
return __generator(this, function (_c) {
|
|
4039
|
+
switch (_c.label) {
|
|
3983
4040
|
case 0:
|
|
3984
4041
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3985
4042
|
return [2 /*return*/, deserializeAws_restJson1ListPackagesForDomainCommandError(output, context)];
|
|
@@ -3989,9 +4046,11 @@ export var deserializeAws_restJson1ListPackagesForDomainCommand = function (outp
|
|
|
3989
4046
|
DomainPackageDetailsList: undefined,
|
|
3990
4047
|
NextToken: undefined,
|
|
3991
4048
|
};
|
|
4049
|
+
_a = __expectNonNull;
|
|
4050
|
+
_b = __expectObject;
|
|
3992
4051
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
3993
4052
|
case 1:
|
|
3994
|
-
data = _a.sent();
|
|
4053
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3995
4054
|
if (data.DomainPackageDetailsList !== undefined && data.DomainPackageDetailsList !== null) {
|
|
3996
4055
|
contents.DomainPackageDetailsList = deserializeAws_restJson1DomainPackageDetailsList(data.DomainPackageDetailsList, context);
|
|
3997
4056
|
}
|
|
@@ -4073,9 +4132,9 @@ var deserializeAws_restJson1ListPackagesForDomainCommandError = function (output
|
|
|
4073
4132
|
});
|
|
4074
4133
|
}); };
|
|
4075
4134
|
export var deserializeAws_restJson1ListTagsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4076
|
-
var contents, data;
|
|
4077
|
-
return __generator(this, function (
|
|
4078
|
-
switch (
|
|
4135
|
+
var contents, data, _a, _b;
|
|
4136
|
+
return __generator(this, function (_c) {
|
|
4137
|
+
switch (_c.label) {
|
|
4079
4138
|
case 0:
|
|
4080
4139
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4081
4140
|
return [2 /*return*/, deserializeAws_restJson1ListTagsCommandError(output, context)];
|
|
@@ -4084,9 +4143,11 @@ export var deserializeAws_restJson1ListTagsCommand = function (output, context)
|
|
|
4084
4143
|
$metadata: deserializeMetadata(output),
|
|
4085
4144
|
TagList: undefined,
|
|
4086
4145
|
};
|
|
4146
|
+
_a = __expectNonNull;
|
|
4147
|
+
_b = __expectObject;
|
|
4087
4148
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
4088
4149
|
case 1:
|
|
4089
|
-
data = _a.sent();
|
|
4150
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4090
4151
|
if (data.TagList !== undefined && data.TagList !== null) {
|
|
4091
4152
|
contents.TagList = deserializeAws_restJson1TagList(data.TagList, context);
|
|
4092
4153
|
}
|
|
@@ -4157,9 +4218,9 @@ var deserializeAws_restJson1ListTagsCommandError = function (output, context) {
|
|
|
4157
4218
|
});
|
|
4158
4219
|
}); };
|
|
4159
4220
|
export var deserializeAws_restJson1PurchaseReservedElasticsearchInstanceOfferingCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4160
|
-
var contents, data;
|
|
4161
|
-
return __generator(this, function (
|
|
4162
|
-
switch (
|
|
4221
|
+
var contents, data, _a, _b;
|
|
4222
|
+
return __generator(this, function (_c) {
|
|
4223
|
+
switch (_c.label) {
|
|
4163
4224
|
case 0:
|
|
4164
4225
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4165
4226
|
return [2 /*return*/, deserializeAws_restJson1PurchaseReservedElasticsearchInstanceOfferingCommandError(output, context)];
|
|
@@ -4169,9 +4230,11 @@ export var deserializeAws_restJson1PurchaseReservedElasticsearchInstanceOffering
|
|
|
4169
4230
|
ReservationName: undefined,
|
|
4170
4231
|
ReservedElasticsearchInstanceId: undefined,
|
|
4171
4232
|
};
|
|
4233
|
+
_a = __expectNonNull;
|
|
4234
|
+
_b = __expectObject;
|
|
4172
4235
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
4173
4236
|
case 1:
|
|
4174
|
-
data = _a.sent();
|
|
4237
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4175
4238
|
if (data.ReservationName !== undefined && data.ReservationName !== null) {
|
|
4176
4239
|
contents.ReservationName = __expectString(data.ReservationName);
|
|
4177
4240
|
}
|
|
@@ -4261,9 +4324,9 @@ var deserializeAws_restJson1PurchaseReservedElasticsearchInstanceOfferingCommand
|
|
|
4261
4324
|
});
|
|
4262
4325
|
}); };
|
|
4263
4326
|
export var deserializeAws_restJson1RejectInboundCrossClusterSearchConnectionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4264
|
-
var contents, data;
|
|
4265
|
-
return __generator(this, function (
|
|
4266
|
-
switch (
|
|
4327
|
+
var contents, data, _a, _b;
|
|
4328
|
+
return __generator(this, function (_c) {
|
|
4329
|
+
switch (_c.label) {
|
|
4267
4330
|
case 0:
|
|
4268
4331
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4269
4332
|
return [2 /*return*/, deserializeAws_restJson1RejectInboundCrossClusterSearchConnectionCommandError(output, context)];
|
|
@@ -4272,9 +4335,11 @@ export var deserializeAws_restJson1RejectInboundCrossClusterSearchConnectionComm
|
|
|
4272
4335
|
$metadata: deserializeMetadata(output),
|
|
4273
4336
|
CrossClusterSearchConnection: undefined,
|
|
4274
4337
|
};
|
|
4338
|
+
_a = __expectNonNull;
|
|
4339
|
+
_b = __expectObject;
|
|
4275
4340
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
4276
4341
|
case 1:
|
|
4277
|
-
data = _a.sent();
|
|
4342
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4278
4343
|
if (data.CrossClusterSearchConnection !== undefined && data.CrossClusterSearchConnection !== null) {
|
|
4279
4344
|
contents.CrossClusterSearchConnection = deserializeAws_restJson1InboundCrossClusterSearchConnection(data.CrossClusterSearchConnection, context);
|
|
4280
4345
|
}
|
|
@@ -4401,9 +4466,9 @@ var deserializeAws_restJson1RemoveTagsCommandError = function (output, context)
|
|
|
4401
4466
|
});
|
|
4402
4467
|
}); };
|
|
4403
4468
|
export var deserializeAws_restJson1StartElasticsearchServiceSoftwareUpdateCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4404
|
-
var contents, data;
|
|
4405
|
-
return __generator(this, function (
|
|
4406
|
-
switch (
|
|
4469
|
+
var contents, data, _a, _b;
|
|
4470
|
+
return __generator(this, function (_c) {
|
|
4471
|
+
switch (_c.label) {
|
|
4407
4472
|
case 0:
|
|
4408
4473
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4409
4474
|
return [2 /*return*/, deserializeAws_restJson1StartElasticsearchServiceSoftwareUpdateCommandError(output, context)];
|
|
@@ -4412,9 +4477,11 @@ export var deserializeAws_restJson1StartElasticsearchServiceSoftwareUpdateComman
|
|
|
4412
4477
|
$metadata: deserializeMetadata(output),
|
|
4413
4478
|
ServiceSoftwareOptions: undefined,
|
|
4414
4479
|
};
|
|
4480
|
+
_a = __expectNonNull;
|
|
4481
|
+
_b = __expectObject;
|
|
4415
4482
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
4416
4483
|
case 1:
|
|
4417
|
-
data = _a.sent();
|
|
4484
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4418
4485
|
if (data.ServiceSoftwareOptions !== undefined && data.ServiceSoftwareOptions !== null) {
|
|
4419
4486
|
contents.ServiceSoftwareOptions = deserializeAws_restJson1ServiceSoftwareOptions(data.ServiceSoftwareOptions, context);
|
|
4420
4487
|
}
|
|
@@ -4485,9 +4552,9 @@ var deserializeAws_restJson1StartElasticsearchServiceSoftwareUpdateCommandError
|
|
|
4485
4552
|
});
|
|
4486
4553
|
}); };
|
|
4487
4554
|
export var deserializeAws_restJson1UpdateElasticsearchDomainConfigCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4488
|
-
var contents, data;
|
|
4489
|
-
return __generator(this, function (
|
|
4490
|
-
switch (
|
|
4555
|
+
var contents, data, _a, _b;
|
|
4556
|
+
return __generator(this, function (_c) {
|
|
4557
|
+
switch (_c.label) {
|
|
4491
4558
|
case 0:
|
|
4492
4559
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4493
4560
|
return [2 /*return*/, deserializeAws_restJson1UpdateElasticsearchDomainConfigCommandError(output, context)];
|
|
@@ -4496,9 +4563,11 @@ export var deserializeAws_restJson1UpdateElasticsearchDomainConfigCommand = func
|
|
|
4496
4563
|
$metadata: deserializeMetadata(output),
|
|
4497
4564
|
DomainConfig: undefined,
|
|
4498
4565
|
};
|
|
4566
|
+
_a = __expectNonNull;
|
|
4567
|
+
_b = __expectObject;
|
|
4499
4568
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
4500
4569
|
case 1:
|
|
4501
|
-
data = _a.sent();
|
|
4570
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4502
4571
|
if (data.DomainConfig !== undefined && data.DomainConfig !== null) {
|
|
4503
4572
|
contents.DomainConfig = deserializeAws_restJson1ElasticsearchDomainConfig(data.DomainConfig, context);
|
|
4504
4573
|
}
|
|
@@ -4585,9 +4654,9 @@ var deserializeAws_restJson1UpdateElasticsearchDomainConfigCommandError = functi
|
|
|
4585
4654
|
});
|
|
4586
4655
|
}); };
|
|
4587
4656
|
export var deserializeAws_restJson1UpdatePackageCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4588
|
-
var contents, data;
|
|
4589
|
-
return __generator(this, function (
|
|
4590
|
-
switch (
|
|
4657
|
+
var contents, data, _a, _b;
|
|
4658
|
+
return __generator(this, function (_c) {
|
|
4659
|
+
switch (_c.label) {
|
|
4591
4660
|
case 0:
|
|
4592
4661
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4593
4662
|
return [2 /*return*/, deserializeAws_restJson1UpdatePackageCommandError(output, context)];
|
|
@@ -4596,9 +4665,11 @@ export var deserializeAws_restJson1UpdatePackageCommand = function (output, cont
|
|
|
4596
4665
|
$metadata: deserializeMetadata(output),
|
|
4597
4666
|
PackageDetails: undefined,
|
|
4598
4667
|
};
|
|
4668
|
+
_a = __expectNonNull;
|
|
4669
|
+
_b = __expectObject;
|
|
4599
4670
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
4600
4671
|
case 1:
|
|
4601
|
-
data = _a.sent();
|
|
4672
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4602
4673
|
if (data.PackageDetails !== undefined && data.PackageDetails !== null) {
|
|
4603
4674
|
contents.PackageDetails = deserializeAws_restJson1PackageDetails(data.PackageDetails, context);
|
|
4604
4675
|
}
|
|
@@ -4685,9 +4756,9 @@ var deserializeAws_restJson1UpdatePackageCommandError = function (output, contex
|
|
|
4685
4756
|
});
|
|
4686
4757
|
}); };
|
|
4687
4758
|
export var deserializeAws_restJson1UpgradeElasticsearchDomainCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4688
|
-
var contents, data;
|
|
4689
|
-
return __generator(this, function (
|
|
4690
|
-
switch (
|
|
4759
|
+
var contents, data, _a, _b;
|
|
4760
|
+
return __generator(this, function (_c) {
|
|
4761
|
+
switch (_c.label) {
|
|
4691
4762
|
case 0:
|
|
4692
4763
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4693
4764
|
return [2 /*return*/, deserializeAws_restJson1UpgradeElasticsearchDomainCommandError(output, context)];
|
|
@@ -4698,9 +4769,11 @@ export var deserializeAws_restJson1UpgradeElasticsearchDomainCommand = function
|
|
|
4698
4769
|
PerformCheckOnly: undefined,
|
|
4699
4770
|
TargetVersion: undefined,
|
|
4700
4771
|
};
|
|
4772
|
+
_a = __expectNonNull;
|
|
4773
|
+
_b = __expectObject;
|
|
4701
4774
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
4702
4775
|
case 1:
|
|
4703
|
-
data = _a.sent();
|
|
4776
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4704
4777
|
if (data.DomainName !== undefined && data.DomainName !== null) {
|
|
4705
4778
|
contents.DomainName = __expectString(data.DomainName);
|
|
4706
4779
|
}
|
|
@@ -5285,7 +5358,9 @@ var deserializeAws_restJson1AutoTuneMaintenanceSchedule = function (output, cont
|
|
|
5285
5358
|
Duration: output.Duration !== undefined && output.Duration !== null
|
|
5286
5359
|
? deserializeAws_restJson1Duration(output.Duration, context)
|
|
5287
5360
|
: undefined,
|
|
5288
|
-
StartAt: output.StartAt !== undefined && output.StartAt !== null
|
|
5361
|
+
StartAt: output.StartAt !== undefined && output.StartAt !== null
|
|
5362
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartAt)))
|
|
5363
|
+
: undefined,
|
|
5289
5364
|
};
|
|
5290
5365
|
};
|
|
5291
5366
|
var deserializeAws_restJson1AutoTuneMaintenanceScheduleList = function (output, context) {
|
|
@@ -5326,15 +5401,15 @@ var deserializeAws_restJson1AutoTuneOptionsStatus = function (output, context) {
|
|
|
5326
5401
|
var deserializeAws_restJson1AutoTuneStatus = function (output, context) {
|
|
5327
5402
|
return {
|
|
5328
5403
|
CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
|
|
5329
|
-
?
|
|
5404
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationDate)))
|
|
5330
5405
|
: undefined,
|
|
5331
5406
|
ErrorMessage: __expectString(output.ErrorMessage),
|
|
5332
5407
|
PendingDeletion: __expectBoolean(output.PendingDeletion),
|
|
5333
5408
|
State: __expectString(output.State),
|
|
5334
5409
|
UpdateDate: output.UpdateDate !== undefined && output.UpdateDate !== null
|
|
5335
|
-
?
|
|
5410
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdateDate)))
|
|
5336
5411
|
: undefined,
|
|
5337
|
-
UpdateVersion:
|
|
5412
|
+
UpdateVersion: __expectInt32(output.UpdateVersion),
|
|
5338
5413
|
};
|
|
5339
5414
|
};
|
|
5340
5415
|
var deserializeAws_restJson1CognitoOptions = function (output, context) {
|
|
@@ -5400,6 +5475,7 @@ var deserializeAws_restJson1DomainEndpointOptionsStatus = function (output, cont
|
|
|
5400
5475
|
var deserializeAws_restJson1DomainInfo = function (output, context) {
|
|
5401
5476
|
return {
|
|
5402
5477
|
DomainName: __expectString(output.DomainName),
|
|
5478
|
+
EngineType: __expectString(output.EngineType),
|
|
5403
5479
|
};
|
|
5404
5480
|
};
|
|
5405
5481
|
var deserializeAws_restJson1DomainInfoList = function (output, context) {
|
|
@@ -5427,7 +5503,7 @@ var deserializeAws_restJson1DomainPackageDetails = function (output, context) {
|
|
|
5427
5503
|
? deserializeAws_restJson1ErrorDetails(output.ErrorDetails, context)
|
|
5428
5504
|
: undefined,
|
|
5429
5505
|
LastUpdated: output.LastUpdated !== undefined && output.LastUpdated !== null
|
|
5430
|
-
?
|
|
5506
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdated)))
|
|
5431
5507
|
: undefined,
|
|
5432
5508
|
PackageID: __expectString(output.PackageID),
|
|
5433
5509
|
PackageName: __expectString(output.PackageName),
|
|
@@ -5449,14 +5525,14 @@ var deserializeAws_restJson1DomainPackageDetailsList = function (output, context
|
|
|
5449
5525
|
var deserializeAws_restJson1Duration = function (output, context) {
|
|
5450
5526
|
return {
|
|
5451
5527
|
Unit: __expectString(output.Unit),
|
|
5452
|
-
Value:
|
|
5528
|
+
Value: __expectLong(output.Value),
|
|
5453
5529
|
};
|
|
5454
5530
|
};
|
|
5455
5531
|
var deserializeAws_restJson1EBSOptions = function (output, context) {
|
|
5456
5532
|
return {
|
|
5457
5533
|
EBSEnabled: __expectBoolean(output.EBSEnabled),
|
|
5458
|
-
Iops:
|
|
5459
|
-
VolumeSize:
|
|
5534
|
+
Iops: __expectInt32(output.Iops),
|
|
5535
|
+
VolumeSize: __expectInt32(output.VolumeSize),
|
|
5460
5536
|
VolumeType: __expectString(output.VolumeType),
|
|
5461
5537
|
};
|
|
5462
5538
|
};
|
|
@@ -5475,12 +5551,12 @@ var deserializeAws_restJson1ElasticsearchClusterConfig = function (output, conte
|
|
|
5475
5551
|
ColdStorageOptions: output.ColdStorageOptions !== undefined && output.ColdStorageOptions !== null
|
|
5476
5552
|
? deserializeAws_restJson1ColdStorageOptions(output.ColdStorageOptions, context)
|
|
5477
5553
|
: undefined,
|
|
5478
|
-
DedicatedMasterCount:
|
|
5554
|
+
DedicatedMasterCount: __expectInt32(output.DedicatedMasterCount),
|
|
5479
5555
|
DedicatedMasterEnabled: __expectBoolean(output.DedicatedMasterEnabled),
|
|
5480
5556
|
DedicatedMasterType: __expectString(output.DedicatedMasterType),
|
|
5481
|
-
InstanceCount:
|
|
5557
|
+
InstanceCount: __expectInt32(output.InstanceCount),
|
|
5482
5558
|
InstanceType: __expectString(output.InstanceType),
|
|
5483
|
-
WarmCount:
|
|
5559
|
+
WarmCount: __expectInt32(output.WarmCount),
|
|
5484
5560
|
WarmEnabled: __expectBoolean(output.WarmEnabled),
|
|
5485
5561
|
WarmType: __expectString(output.WarmType),
|
|
5486
5562
|
ZoneAwarenessConfig: output.ZoneAwarenessConfig !== undefined && output.ZoneAwarenessConfig !== null
|
|
@@ -5703,8 +5779,8 @@ var deserializeAws_restJson1InboundCrossClusterSearchConnectionStatus = function
|
|
|
5703
5779
|
};
|
|
5704
5780
|
var deserializeAws_restJson1InstanceCountLimits = function (output, context) {
|
|
5705
5781
|
return {
|
|
5706
|
-
MaximumInstanceCount:
|
|
5707
|
-
MinimumInstanceCount:
|
|
5782
|
+
MaximumInstanceCount: __expectInt32(output.MaximumInstanceCount),
|
|
5783
|
+
MinimumInstanceCount: __expectInt32(output.MinimumInstanceCount),
|
|
5708
5784
|
};
|
|
5709
5785
|
};
|
|
5710
5786
|
var deserializeAws_restJson1InstanceLimits = function (output, context) {
|
|
@@ -5801,14 +5877,14 @@ var deserializeAws_restJson1NodeToNodeEncryptionOptionsStatus = function (output
|
|
|
5801
5877
|
var deserializeAws_restJson1OptionStatus = function (output, context) {
|
|
5802
5878
|
return {
|
|
5803
5879
|
CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
|
|
5804
|
-
?
|
|
5880
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationDate)))
|
|
5805
5881
|
: undefined,
|
|
5806
5882
|
PendingDeletion: __expectBoolean(output.PendingDeletion),
|
|
5807
5883
|
State: __expectString(output.State),
|
|
5808
5884
|
UpdateDate: output.UpdateDate !== undefined && output.UpdateDate !== null
|
|
5809
|
-
?
|
|
5885
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdateDate)))
|
|
5810
5886
|
: undefined,
|
|
5811
|
-
UpdateVersion:
|
|
5887
|
+
UpdateVersion: __expectInt32(output.UpdateVersion),
|
|
5812
5888
|
};
|
|
5813
5889
|
};
|
|
5814
5890
|
var deserializeAws_restJson1OutboundCrossClusterSearchConnection = function (output, context) {
|
|
@@ -5846,13 +5922,13 @@ var deserializeAws_restJson1PackageDetails = function (output, context) {
|
|
|
5846
5922
|
return {
|
|
5847
5923
|
AvailablePackageVersion: __expectString(output.AvailablePackageVersion),
|
|
5848
5924
|
CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
5849
|
-
?
|
|
5925
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
|
|
5850
5926
|
: undefined,
|
|
5851
5927
|
ErrorDetails: output.ErrorDetails !== undefined && output.ErrorDetails !== null
|
|
5852
5928
|
? deserializeAws_restJson1ErrorDetails(output.ErrorDetails, context)
|
|
5853
5929
|
: undefined,
|
|
5854
5930
|
LastUpdatedAt: output.LastUpdatedAt !== undefined && output.LastUpdatedAt !== null
|
|
5855
|
-
?
|
|
5931
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedAt)))
|
|
5856
5932
|
: undefined,
|
|
5857
5933
|
PackageDescription: __expectString(output.PackageDescription),
|
|
5858
5934
|
PackageID: __expectString(output.PackageID),
|
|
@@ -5875,7 +5951,7 @@ var deserializeAws_restJson1PackageVersionHistory = function (output, context) {
|
|
|
5875
5951
|
return {
|
|
5876
5952
|
CommitMessage: __expectString(output.CommitMessage),
|
|
5877
5953
|
CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
5878
|
-
?
|
|
5954
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
|
|
5879
5955
|
: undefined,
|
|
5880
5956
|
PackageVersion: __expectString(output.PackageVersion),
|
|
5881
5957
|
};
|
|
@@ -5892,7 +5968,7 @@ var deserializeAws_restJson1PackageVersionHistoryList = function (output, contex
|
|
|
5892
5968
|
};
|
|
5893
5969
|
var deserializeAws_restJson1RecurringCharge = function (output, context) {
|
|
5894
5970
|
return {
|
|
5895
|
-
RecurringChargeAmount:
|
|
5971
|
+
RecurringChargeAmount: __limitedParseDouble(output.RecurringChargeAmount),
|
|
5896
5972
|
RecurringChargeFrequency: __expectString(output.RecurringChargeFrequency),
|
|
5897
5973
|
};
|
|
5898
5974
|
};
|
|
@@ -5909,10 +5985,10 @@ var deserializeAws_restJson1RecurringChargeList = function (output, context) {
|
|
|
5909
5985
|
var deserializeAws_restJson1ReservedElasticsearchInstance = function (output, context) {
|
|
5910
5986
|
return {
|
|
5911
5987
|
CurrencyCode: __expectString(output.CurrencyCode),
|
|
5912
|
-
Duration:
|
|
5913
|
-
ElasticsearchInstanceCount:
|
|
5988
|
+
Duration: __expectInt32(output.Duration),
|
|
5989
|
+
ElasticsearchInstanceCount: __expectInt32(output.ElasticsearchInstanceCount),
|
|
5914
5990
|
ElasticsearchInstanceType: __expectString(output.ElasticsearchInstanceType),
|
|
5915
|
-
FixedPrice:
|
|
5991
|
+
FixedPrice: __limitedParseDouble(output.FixedPrice),
|
|
5916
5992
|
PaymentOption: __expectString(output.PaymentOption),
|
|
5917
5993
|
RecurringCharges: output.RecurringCharges !== undefined && output.RecurringCharges !== null
|
|
5918
5994
|
? deserializeAws_restJson1RecurringChargeList(output.RecurringCharges, context)
|
|
@@ -5921,10 +5997,10 @@ var deserializeAws_restJson1ReservedElasticsearchInstance = function (output, co
|
|
|
5921
5997
|
ReservedElasticsearchInstanceId: __expectString(output.ReservedElasticsearchInstanceId),
|
|
5922
5998
|
ReservedElasticsearchInstanceOfferingId: __expectString(output.ReservedElasticsearchInstanceOfferingId),
|
|
5923
5999
|
StartTime: output.StartTime !== undefined && output.StartTime !== null
|
|
5924
|
-
?
|
|
6000
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime)))
|
|
5925
6001
|
: undefined,
|
|
5926
6002
|
State: __expectString(output.State),
|
|
5927
|
-
UsagePrice:
|
|
6003
|
+
UsagePrice: __limitedParseDouble(output.UsagePrice),
|
|
5928
6004
|
};
|
|
5929
6005
|
};
|
|
5930
6006
|
var deserializeAws_restJson1ReservedElasticsearchInstanceList = function (output, context) {
|
|
@@ -5940,15 +6016,15 @@ var deserializeAws_restJson1ReservedElasticsearchInstanceList = function (output
|
|
|
5940
6016
|
var deserializeAws_restJson1ReservedElasticsearchInstanceOffering = function (output, context) {
|
|
5941
6017
|
return {
|
|
5942
6018
|
CurrencyCode: __expectString(output.CurrencyCode),
|
|
5943
|
-
Duration:
|
|
6019
|
+
Duration: __expectInt32(output.Duration),
|
|
5944
6020
|
ElasticsearchInstanceType: __expectString(output.ElasticsearchInstanceType),
|
|
5945
|
-
FixedPrice:
|
|
6021
|
+
FixedPrice: __limitedParseDouble(output.FixedPrice),
|
|
5946
6022
|
PaymentOption: __expectString(output.PaymentOption),
|
|
5947
6023
|
RecurringCharges: output.RecurringCharges !== undefined && output.RecurringCharges !== null
|
|
5948
6024
|
? deserializeAws_restJson1RecurringChargeList(output.RecurringCharges, context)
|
|
5949
6025
|
: undefined,
|
|
5950
6026
|
ReservedElasticsearchInstanceOfferingId: __expectString(output.ReservedElasticsearchInstanceOfferingId),
|
|
5951
|
-
UsagePrice:
|
|
6027
|
+
UsagePrice: __limitedParseDouble(output.UsagePrice),
|
|
5952
6028
|
};
|
|
5953
6029
|
};
|
|
5954
6030
|
var deserializeAws_restJson1ReservedElasticsearchInstanceOfferingList = function (output, context) {
|
|
@@ -5974,7 +6050,7 @@ var deserializeAws_restJson1SAMLOptionsOutput = function (output, context) {
|
|
|
5974
6050
|
? deserializeAws_restJson1SAMLIdp(output.Idp, context)
|
|
5975
6051
|
: undefined,
|
|
5976
6052
|
RolesKey: __expectString(output.RolesKey),
|
|
5977
|
-
SessionTimeoutMinutes:
|
|
6053
|
+
SessionTimeoutMinutes: __expectInt32(output.SessionTimeoutMinutes),
|
|
5978
6054
|
SubjectKey: __expectString(output.SubjectKey),
|
|
5979
6055
|
};
|
|
5980
6056
|
};
|
|
@@ -5982,14 +6058,16 @@ var deserializeAws_restJson1ScheduledAutoTuneDetails = function (output, context
|
|
|
5982
6058
|
return {
|
|
5983
6059
|
Action: __expectString(output.Action),
|
|
5984
6060
|
ActionType: __expectString(output.ActionType),
|
|
5985
|
-
Date: output.Date !== undefined && output.Date !== null
|
|
6061
|
+
Date: output.Date !== undefined && output.Date !== null
|
|
6062
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Date)))
|
|
6063
|
+
: undefined,
|
|
5986
6064
|
Severity: __expectString(output.Severity),
|
|
5987
6065
|
};
|
|
5988
6066
|
};
|
|
5989
6067
|
var deserializeAws_restJson1ServiceSoftwareOptions = function (output, context) {
|
|
5990
6068
|
return {
|
|
5991
6069
|
AutomatedUpdateDate: output.AutomatedUpdateDate !== undefined && output.AutomatedUpdateDate !== null
|
|
5992
|
-
?
|
|
6070
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.AutomatedUpdateDate)))
|
|
5993
6071
|
: undefined,
|
|
5994
6072
|
Cancellable: __expectBoolean(output.Cancellable),
|
|
5995
6073
|
CurrentVersion: __expectString(output.CurrentVersion),
|
|
@@ -6002,7 +6080,7 @@ var deserializeAws_restJson1ServiceSoftwareOptions = function (output, context)
|
|
|
6002
6080
|
};
|
|
6003
6081
|
var deserializeAws_restJson1SnapshotOptions = function (output, context) {
|
|
6004
6082
|
return {
|
|
6005
|
-
AutomatedSnapshotStartHour:
|
|
6083
|
+
AutomatedSnapshotStartHour: __expectInt32(output.AutomatedSnapshotStartHour),
|
|
6006
6084
|
};
|
|
6007
6085
|
};
|
|
6008
6086
|
var deserializeAws_restJson1SnapshotOptionsStatus = function (output, context) {
|
|
@@ -6081,7 +6159,7 @@ var deserializeAws_restJson1TagList = function (output, context) {
|
|
|
6081
6159
|
var deserializeAws_restJson1UpgradeHistory = function (output, context) {
|
|
6082
6160
|
return {
|
|
6083
6161
|
StartTimestamp: output.StartTimestamp !== undefined && output.StartTimestamp !== null
|
|
6084
|
-
?
|
|
6162
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTimestamp)))
|
|
6085
6163
|
: undefined,
|
|
6086
6164
|
StepsList: output.StepsList !== undefined && output.StepsList !== null
|
|
6087
6165
|
? deserializeAws_restJson1UpgradeStepsList(output.StepsList, context)
|
|
@@ -6105,7 +6183,7 @@ var deserializeAws_restJson1UpgradeStepItem = function (output, context) {
|
|
|
6105
6183
|
Issues: output.Issues !== undefined && output.Issues !== null
|
|
6106
6184
|
? deserializeAws_restJson1Issues(output.Issues, context)
|
|
6107
6185
|
: undefined,
|
|
6108
|
-
ProgressPercent:
|
|
6186
|
+
ProgressPercent: __limitedParseDouble(output.ProgressPercent),
|
|
6109
6187
|
UpgradeStep: __expectString(output.UpgradeStep),
|
|
6110
6188
|
UpgradeStepStatus: __expectString(output.UpgradeStepStatus),
|
|
6111
6189
|
};
|
|
@@ -6146,7 +6224,7 @@ var deserializeAws_restJson1VPCDerivedInfoStatus = function (output, context) {
|
|
|
6146
6224
|
};
|
|
6147
6225
|
var deserializeAws_restJson1ZoneAwarenessConfig = function (output, context) {
|
|
6148
6226
|
return {
|
|
6149
|
-
AvailabilityZoneCount:
|
|
6227
|
+
AvailabilityZoneCount: __expectInt32(output.AvailabilityZoneCount),
|
|
6150
6228
|
};
|
|
6151
6229
|
};
|
|
6152
6230
|
var deserializeMetadata = function (output) {
|