@aws-sdk/client-app-mesh 3.118.1 → 3.128.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 +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +598 -902
- package/dist-es/protocols/Aws_restJson1.js +497 -801
- package/package.json +26 -26
|
@@ -38,10 +38,7 @@ export var serializeAws_restJson1CreateGatewayRouteCommand = function (input, co
|
|
|
38
38
|
throw new Error("No value provided for input HTTP label: virtualGatewayName.");
|
|
39
39
|
}
|
|
40
40
|
query = __assign({}, (input.meshOwner !== undefined && { meshOwner: input.meshOwner }));
|
|
41
|
-
body = JSON.stringify(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.gatewayRouteName
|
|
42
|
-
input.gatewayRouteName !== null && { gatewayRouteName: input.gatewayRouteName })), (input.spec !== undefined &&
|
|
43
|
-
input.spec !== null && { spec: serializeAws_restJson1GatewayRouteSpec(input.spec, context) })), (input.tags !== undefined &&
|
|
44
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) })));
|
|
41
|
+
body = JSON.stringify(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.gatewayRouteName != null && { gatewayRouteName: input.gatewayRouteName })), (input.spec != null && { spec: serializeAws_restJson1GatewayRouteSpec(input.spec, context) })), (input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) })));
|
|
45
42
|
return [2, new __HttpRequest({
|
|
46
43
|
protocol: protocol,
|
|
47
44
|
hostname: hostname,
|
|
@@ -67,9 +64,7 @@ export var serializeAws_restJson1CreateMeshCommand = function (input, context) {
|
|
|
67
64
|
"content-type": "application/json",
|
|
68
65
|
};
|
|
69
66
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v20190125/meshes";
|
|
70
|
-
body = JSON.stringify(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.meshName
|
|
71
|
-
input.spec !== null && { spec: serializeAws_restJson1MeshSpec(input.spec, context) })), (input.tags !== undefined &&
|
|
72
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) })));
|
|
67
|
+
body = JSON.stringify(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.meshName != null && { meshName: input.meshName })), (input.spec != null && { spec: serializeAws_restJson1MeshSpec(input.spec, context) })), (input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) })));
|
|
73
68
|
return [2, new __HttpRequest({
|
|
74
69
|
protocol: protocol,
|
|
75
70
|
hostname: hostname,
|
|
@@ -116,9 +111,7 @@ export var serializeAws_restJson1CreateRouteCommand = function (input, context)
|
|
|
116
111
|
throw new Error("No value provided for input HTTP label: virtualRouterName.");
|
|
117
112
|
}
|
|
118
113
|
query = __assign({}, (input.meshOwner !== undefined && { meshOwner: input.meshOwner }));
|
|
119
|
-
body = JSON.stringify(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.routeName
|
|
120
|
-
input.spec !== null && { spec: serializeAws_restJson1RouteSpec(input.spec, context) })), (input.tags !== undefined &&
|
|
121
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) })));
|
|
114
|
+
body = JSON.stringify(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.routeName != null && { routeName: input.routeName })), (input.spec != null && { spec: serializeAws_restJson1RouteSpec(input.spec, context) })), (input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) })));
|
|
122
115
|
return [2, new __HttpRequest({
|
|
123
116
|
protocol: protocol,
|
|
124
117
|
hostname: hostname,
|
|
@@ -156,10 +149,7 @@ export var serializeAws_restJson1CreateVirtualGatewayCommand = function (input,
|
|
|
156
149
|
throw new Error("No value provided for input HTTP label: meshName.");
|
|
157
150
|
}
|
|
158
151
|
query = __assign({}, (input.meshOwner !== undefined && { meshOwner: input.meshOwner }));
|
|
159
|
-
body = JSON.stringify(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.spec
|
|
160
|
-
input.spec !== null && { spec: serializeAws_restJson1VirtualGatewaySpec(input.spec, context) })), (input.tags !== undefined &&
|
|
161
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) })), (input.virtualGatewayName !== undefined &&
|
|
162
|
-
input.virtualGatewayName !== null && { virtualGatewayName: input.virtualGatewayName })));
|
|
152
|
+
body = JSON.stringify(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.spec != null && { spec: serializeAws_restJson1VirtualGatewaySpec(input.spec, context) })), (input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) })), (input.virtualGatewayName != null && { virtualGatewayName: input.virtualGatewayName })));
|
|
163
153
|
return [2, new __HttpRequest({
|
|
164
154
|
protocol: protocol,
|
|
165
155
|
hostname: hostname,
|
|
@@ -196,10 +186,7 @@ export var serializeAws_restJson1CreateVirtualNodeCommand = function (input, con
|
|
|
196
186
|
throw new Error("No value provided for input HTTP label: meshName.");
|
|
197
187
|
}
|
|
198
188
|
query = __assign({}, (input.meshOwner !== undefined && { meshOwner: input.meshOwner }));
|
|
199
|
-
body = JSON.stringify(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.spec
|
|
200
|
-
input.spec !== null && { spec: serializeAws_restJson1VirtualNodeSpec(input.spec, context) })), (input.tags !== undefined &&
|
|
201
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) })), (input.virtualNodeName !== undefined &&
|
|
202
|
-
input.virtualNodeName !== null && { virtualNodeName: input.virtualNodeName })));
|
|
189
|
+
body = JSON.stringify(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.spec != null && { spec: serializeAws_restJson1VirtualNodeSpec(input.spec, context) })), (input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) })), (input.virtualNodeName != null && { virtualNodeName: input.virtualNodeName })));
|
|
203
190
|
return [2, new __HttpRequest({
|
|
204
191
|
protocol: protocol,
|
|
205
192
|
hostname: hostname,
|
|
@@ -237,10 +224,7 @@ export var serializeAws_restJson1CreateVirtualRouterCommand = function (input, c
|
|
|
237
224
|
throw new Error("No value provided for input HTTP label: meshName.");
|
|
238
225
|
}
|
|
239
226
|
query = __assign({}, (input.meshOwner !== undefined && { meshOwner: input.meshOwner }));
|
|
240
|
-
body = JSON.stringify(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.spec
|
|
241
|
-
input.spec !== null && { spec: serializeAws_restJson1VirtualRouterSpec(input.spec, context) })), (input.tags !== undefined &&
|
|
242
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) })), (input.virtualRouterName !== undefined &&
|
|
243
|
-
input.virtualRouterName !== null && { virtualRouterName: input.virtualRouterName })));
|
|
227
|
+
body = JSON.stringify(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.spec != null && { spec: serializeAws_restJson1VirtualRouterSpec(input.spec, context) })), (input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) })), (input.virtualRouterName != null && { virtualRouterName: input.virtualRouterName })));
|
|
244
228
|
return [2, new __HttpRequest({
|
|
245
229
|
protocol: protocol,
|
|
246
230
|
hostname: hostname,
|
|
@@ -278,10 +262,7 @@ export var serializeAws_restJson1CreateVirtualServiceCommand = function (input,
|
|
|
278
262
|
throw new Error("No value provided for input HTTP label: meshName.");
|
|
279
263
|
}
|
|
280
264
|
query = __assign({}, (input.meshOwner !== undefined && { meshOwner: input.meshOwner }));
|
|
281
|
-
body = JSON.stringify(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.spec
|
|
282
|
-
input.spec !== null && { spec: serializeAws_restJson1VirtualServiceSpec(input.spec, context) })), (input.tags !== undefined &&
|
|
283
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) })), (input.virtualServiceName !== undefined &&
|
|
284
|
-
input.virtualServiceName !== null && { virtualServiceName: input.virtualServiceName })));
|
|
265
|
+
body = JSON.stringify(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.spec != null && { spec: serializeAws_restJson1VirtualServiceSpec(input.spec, context) })), (input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) })), (input.virtualServiceName != null && { virtualServiceName: input.virtualServiceName })));
|
|
285
266
|
return [2, new __HttpRequest({
|
|
286
267
|
protocol: protocol,
|
|
287
268
|
hostname: hostname,
|
|
@@ -1208,8 +1189,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
1208
1189
|
};
|
|
1209
1190
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v20190125/tag";
|
|
1210
1191
|
query = __assign({}, (input.resourceArn !== undefined && { resourceArn: input.resourceArn }));
|
|
1211
|
-
body = JSON.stringify(__assign({}, (input.tags
|
|
1212
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) })));
|
|
1192
|
+
body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) })));
|
|
1213
1193
|
return [2, new __HttpRequest({
|
|
1214
1194
|
protocol: protocol,
|
|
1215
1195
|
hostname: hostname,
|
|
@@ -1235,8 +1215,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
1235
1215
|
};
|
|
1236
1216
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v20190125/untag";
|
|
1237
1217
|
query = __assign({}, (input.resourceArn !== undefined && { resourceArn: input.resourceArn }));
|
|
1238
|
-
body = JSON.stringify(__assign({}, (input.tagKeys
|
|
1239
|
-
input.tagKeys !== null && { tagKeys: serializeAws_restJson1TagKeyList(input.tagKeys, context) })));
|
|
1218
|
+
body = JSON.stringify(__assign({}, (input.tagKeys != null && { tagKeys: serializeAws_restJson1TagKeyList(input.tagKeys, context) })));
|
|
1240
1219
|
return [2, new __HttpRequest({
|
|
1241
1220
|
protocol: protocol,
|
|
1242
1221
|
hostname: hostname,
|
|
@@ -1294,8 +1273,7 @@ export var serializeAws_restJson1UpdateGatewayRouteCommand = function (input, co
|
|
|
1294
1273
|
throw new Error("No value provided for input HTTP label: virtualGatewayName.");
|
|
1295
1274
|
}
|
|
1296
1275
|
query = __assign({}, (input.meshOwner !== undefined && { meshOwner: input.meshOwner }));
|
|
1297
|
-
body = JSON.stringify(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.spec
|
|
1298
|
-
input.spec !== null && { spec: serializeAws_restJson1GatewayRouteSpec(input.spec, context) })));
|
|
1276
|
+
body = JSON.stringify(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.spec != null && { spec: serializeAws_restJson1GatewayRouteSpec(input.spec, context) })));
|
|
1299
1277
|
return [2, new __HttpRequest({
|
|
1300
1278
|
protocol: protocol,
|
|
1301
1279
|
hostname: hostname,
|
|
@@ -1331,8 +1309,7 @@ export var serializeAws_restJson1UpdateMeshCommand = function (input, context) {
|
|
|
1331
1309
|
else {
|
|
1332
1310
|
throw new Error("No value provided for input HTTP label: meshName.");
|
|
1333
1311
|
}
|
|
1334
|
-
body = JSON.stringify(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.spec
|
|
1335
|
-
input.spec !== null && { spec: serializeAws_restJson1MeshSpec(input.spec, context) })));
|
|
1312
|
+
body = JSON.stringify(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.spec != null && { spec: serializeAws_restJson1MeshSpec(input.spec, context) })));
|
|
1336
1313
|
return [2, new __HttpRequest({
|
|
1337
1314
|
protocol: protocol,
|
|
1338
1315
|
hostname: hostname,
|
|
@@ -1389,8 +1366,7 @@ export var serializeAws_restJson1UpdateRouteCommand = function (input, context)
|
|
|
1389
1366
|
throw new Error("No value provided for input HTTP label: virtualRouterName.");
|
|
1390
1367
|
}
|
|
1391
1368
|
query = __assign({}, (input.meshOwner !== undefined && { meshOwner: input.meshOwner }));
|
|
1392
|
-
body = JSON.stringify(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.spec
|
|
1393
|
-
input.spec !== null && { spec: serializeAws_restJson1RouteSpec(input.spec, context) })));
|
|
1369
|
+
body = JSON.stringify(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.spec != null && { spec: serializeAws_restJson1RouteSpec(input.spec, context) })));
|
|
1394
1370
|
return [2, new __HttpRequest({
|
|
1395
1371
|
protocol: protocol,
|
|
1396
1372
|
hostname: hostname,
|
|
@@ -1438,8 +1414,7 @@ export var serializeAws_restJson1UpdateVirtualGatewayCommand = function (input,
|
|
|
1438
1414
|
throw new Error("No value provided for input HTTP label: meshName.");
|
|
1439
1415
|
}
|
|
1440
1416
|
query = __assign({}, (input.meshOwner !== undefined && { meshOwner: input.meshOwner }));
|
|
1441
|
-
body = JSON.stringify(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.spec
|
|
1442
|
-
input.spec !== null && { spec: serializeAws_restJson1VirtualGatewaySpec(input.spec, context) })));
|
|
1417
|
+
body = JSON.stringify(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.spec != null && { spec: serializeAws_restJson1VirtualGatewaySpec(input.spec, context) })));
|
|
1443
1418
|
return [2, new __HttpRequest({
|
|
1444
1419
|
protocol: protocol,
|
|
1445
1420
|
hostname: hostname,
|
|
@@ -1487,8 +1462,7 @@ export var serializeAws_restJson1UpdateVirtualNodeCommand = function (input, con
|
|
|
1487
1462
|
throw new Error("No value provided for input HTTP label: meshName.");
|
|
1488
1463
|
}
|
|
1489
1464
|
query = __assign({}, (input.meshOwner !== undefined && { meshOwner: input.meshOwner }));
|
|
1490
|
-
body = JSON.stringify(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.spec
|
|
1491
|
-
input.spec !== null && { spec: serializeAws_restJson1VirtualNodeSpec(input.spec, context) })));
|
|
1465
|
+
body = JSON.stringify(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.spec != null && { spec: serializeAws_restJson1VirtualNodeSpec(input.spec, context) })));
|
|
1492
1466
|
return [2, new __HttpRequest({
|
|
1493
1467
|
protocol: protocol,
|
|
1494
1468
|
hostname: hostname,
|
|
@@ -1536,8 +1510,7 @@ export var serializeAws_restJson1UpdateVirtualRouterCommand = function (input, c
|
|
|
1536
1510
|
throw new Error("No value provided for input HTTP label: meshName.");
|
|
1537
1511
|
}
|
|
1538
1512
|
query = __assign({}, (input.meshOwner !== undefined && { meshOwner: input.meshOwner }));
|
|
1539
|
-
body = JSON.stringify(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.spec
|
|
1540
|
-
input.spec !== null && { spec: serializeAws_restJson1VirtualRouterSpec(input.spec, context) })));
|
|
1513
|
+
body = JSON.stringify(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.spec != null && { spec: serializeAws_restJson1VirtualRouterSpec(input.spec, context) })));
|
|
1541
1514
|
return [2, new __HttpRequest({
|
|
1542
1515
|
protocol: protocol,
|
|
1543
1516
|
hostname: hostname,
|
|
@@ -1585,8 +1558,7 @@ export var serializeAws_restJson1UpdateVirtualServiceCommand = function (input,
|
|
|
1585
1558
|
throw new Error("No value provided for input HTTP label: meshName.");
|
|
1586
1559
|
}
|
|
1587
1560
|
query = __assign({}, (input.meshOwner !== undefined && { meshOwner: input.meshOwner }));
|
|
1588
|
-
body = JSON.stringify(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.spec
|
|
1589
|
-
input.spec !== null && { spec: serializeAws_restJson1VirtualServiceSpec(input.spec, context) })));
|
|
1561
|
+
body = JSON.stringify(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.spec != null && { spec: serializeAws_restJson1VirtualServiceSpec(input.spec, context) })));
|
|
1590
1562
|
return [2, new __HttpRequest({
|
|
1591
1563
|
protocol: protocol,
|
|
1592
1564
|
hostname: hostname,
|
|
@@ -1622,7 +1594,7 @@ export var deserializeAws_restJson1CreateGatewayRouteCommand = function (output,
|
|
|
1622
1594
|
});
|
|
1623
1595
|
}); };
|
|
1624
1596
|
var deserializeAws_restJson1CreateGatewayRouteCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1625
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1597
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1626
1598
|
var _c;
|
|
1627
1599
|
return __generator(this, function (_d) {
|
|
1628
1600
|
switch (_d.label) {
|
|
@@ -1632,7 +1604,6 @@ var deserializeAws_restJson1CreateGatewayRouteCommandError = function (output, c
|
|
|
1632
1604
|
return [4, parseBody(output.body, context)];
|
|
1633
1605
|
case 1:
|
|
1634
1606
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1635
|
-
errorCode = "UnknownError";
|
|
1636
1607
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1637
1608
|
_b = errorCode;
|
|
1638
1609
|
switch (_b) {
|
|
@@ -1672,10 +1643,12 @@ var deserializeAws_restJson1CreateGatewayRouteCommandError = function (output, c
|
|
|
1672
1643
|
case 17: throw _d.sent();
|
|
1673
1644
|
case 18:
|
|
1674
1645
|
parsedBody = parsedOutput.body;
|
|
1646
|
+
$metadata = deserializeMetadata(output);
|
|
1647
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1675
1648
|
response = new __BaseException({
|
|
1676
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1649
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1677
1650
|
$fault: "client",
|
|
1678
|
-
$metadata:
|
|
1651
|
+
$metadata: $metadata,
|
|
1679
1652
|
});
|
|
1680
1653
|
throw __decorateServiceException(response, parsedBody);
|
|
1681
1654
|
}
|
|
@@ -1703,7 +1676,7 @@ export var deserializeAws_restJson1CreateMeshCommand = function (output, context
|
|
|
1703
1676
|
});
|
|
1704
1677
|
}); };
|
|
1705
1678
|
var deserializeAws_restJson1CreateMeshCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1706
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1679
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1707
1680
|
var _c;
|
|
1708
1681
|
return __generator(this, function (_d) {
|
|
1709
1682
|
switch (_d.label) {
|
|
@@ -1713,7 +1686,6 @@ var deserializeAws_restJson1CreateMeshCommandError = function (output, context)
|
|
|
1713
1686
|
return [4, parseBody(output.body, context)];
|
|
1714
1687
|
case 1:
|
|
1715
1688
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1716
|
-
errorCode = "UnknownError";
|
|
1717
1689
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1718
1690
|
_b = errorCode;
|
|
1719
1691
|
switch (_b) {
|
|
@@ -1753,10 +1725,12 @@ var deserializeAws_restJson1CreateMeshCommandError = function (output, context)
|
|
|
1753
1725
|
case 17: throw _d.sent();
|
|
1754
1726
|
case 18:
|
|
1755
1727
|
parsedBody = parsedOutput.body;
|
|
1728
|
+
$metadata = deserializeMetadata(output);
|
|
1729
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1756
1730
|
response = new __BaseException({
|
|
1757
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1731
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1758
1732
|
$fault: "client",
|
|
1759
|
-
$metadata:
|
|
1733
|
+
$metadata: $metadata,
|
|
1760
1734
|
});
|
|
1761
1735
|
throw __decorateServiceException(response, parsedBody);
|
|
1762
1736
|
}
|
|
@@ -1784,7 +1758,7 @@ export var deserializeAws_restJson1CreateRouteCommand = function (output, contex
|
|
|
1784
1758
|
});
|
|
1785
1759
|
}); };
|
|
1786
1760
|
var deserializeAws_restJson1CreateRouteCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1787
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1761
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1788
1762
|
var _c;
|
|
1789
1763
|
return __generator(this, function (_d) {
|
|
1790
1764
|
switch (_d.label) {
|
|
@@ -1794,7 +1768,6 @@ var deserializeAws_restJson1CreateRouteCommandError = function (output, context)
|
|
|
1794
1768
|
return [4, parseBody(output.body, context)];
|
|
1795
1769
|
case 1:
|
|
1796
1770
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1797
|
-
errorCode = "UnknownError";
|
|
1798
1771
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1799
1772
|
_b = errorCode;
|
|
1800
1773
|
switch (_b) {
|
|
@@ -1834,10 +1807,12 @@ var deserializeAws_restJson1CreateRouteCommandError = function (output, context)
|
|
|
1834
1807
|
case 17: throw _d.sent();
|
|
1835
1808
|
case 18:
|
|
1836
1809
|
parsedBody = parsedOutput.body;
|
|
1810
|
+
$metadata = deserializeMetadata(output);
|
|
1811
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1837
1812
|
response = new __BaseException({
|
|
1838
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1813
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1839
1814
|
$fault: "client",
|
|
1840
|
-
$metadata:
|
|
1815
|
+
$metadata: $metadata,
|
|
1841
1816
|
});
|
|
1842
1817
|
throw __decorateServiceException(response, parsedBody);
|
|
1843
1818
|
}
|
|
@@ -1865,7 +1840,7 @@ export var deserializeAws_restJson1CreateVirtualGatewayCommand = function (outpu
|
|
|
1865
1840
|
});
|
|
1866
1841
|
}); };
|
|
1867
1842
|
var deserializeAws_restJson1CreateVirtualGatewayCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1868
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1843
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1869
1844
|
var _c;
|
|
1870
1845
|
return __generator(this, function (_d) {
|
|
1871
1846
|
switch (_d.label) {
|
|
@@ -1875,7 +1850,6 @@ var deserializeAws_restJson1CreateVirtualGatewayCommandError = function (output,
|
|
|
1875
1850
|
return [4, parseBody(output.body, context)];
|
|
1876
1851
|
case 1:
|
|
1877
1852
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1878
|
-
errorCode = "UnknownError";
|
|
1879
1853
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1880
1854
|
_b = errorCode;
|
|
1881
1855
|
switch (_b) {
|
|
@@ -1915,10 +1889,12 @@ var deserializeAws_restJson1CreateVirtualGatewayCommandError = function (output,
|
|
|
1915
1889
|
case 17: throw _d.sent();
|
|
1916
1890
|
case 18:
|
|
1917
1891
|
parsedBody = parsedOutput.body;
|
|
1892
|
+
$metadata = deserializeMetadata(output);
|
|
1893
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1918
1894
|
response = new __BaseException({
|
|
1919
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1895
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1920
1896
|
$fault: "client",
|
|
1921
|
-
$metadata:
|
|
1897
|
+
$metadata: $metadata,
|
|
1922
1898
|
});
|
|
1923
1899
|
throw __decorateServiceException(response, parsedBody);
|
|
1924
1900
|
}
|
|
@@ -1946,7 +1922,7 @@ export var deserializeAws_restJson1CreateVirtualNodeCommand = function (output,
|
|
|
1946
1922
|
});
|
|
1947
1923
|
}); };
|
|
1948
1924
|
var deserializeAws_restJson1CreateVirtualNodeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1949
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1925
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1950
1926
|
var _c;
|
|
1951
1927
|
return __generator(this, function (_d) {
|
|
1952
1928
|
switch (_d.label) {
|
|
@@ -1956,7 +1932,6 @@ var deserializeAws_restJson1CreateVirtualNodeCommandError = function (output, co
|
|
|
1956
1932
|
return [4, parseBody(output.body, context)];
|
|
1957
1933
|
case 1:
|
|
1958
1934
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1959
|
-
errorCode = "UnknownError";
|
|
1960
1935
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1961
1936
|
_b = errorCode;
|
|
1962
1937
|
switch (_b) {
|
|
@@ -1996,10 +1971,12 @@ var deserializeAws_restJson1CreateVirtualNodeCommandError = function (output, co
|
|
|
1996
1971
|
case 17: throw _d.sent();
|
|
1997
1972
|
case 18:
|
|
1998
1973
|
parsedBody = parsedOutput.body;
|
|
1974
|
+
$metadata = deserializeMetadata(output);
|
|
1975
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1999
1976
|
response = new __BaseException({
|
|
2000
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1977
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2001
1978
|
$fault: "client",
|
|
2002
|
-
$metadata:
|
|
1979
|
+
$metadata: $metadata,
|
|
2003
1980
|
});
|
|
2004
1981
|
throw __decorateServiceException(response, parsedBody);
|
|
2005
1982
|
}
|
|
@@ -2027,7 +2004,7 @@ export var deserializeAws_restJson1CreateVirtualRouterCommand = function (output
|
|
|
2027
2004
|
});
|
|
2028
2005
|
}); };
|
|
2029
2006
|
var deserializeAws_restJson1CreateVirtualRouterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2030
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2007
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2031
2008
|
var _c;
|
|
2032
2009
|
return __generator(this, function (_d) {
|
|
2033
2010
|
switch (_d.label) {
|
|
@@ -2037,7 +2014,6 @@ var deserializeAws_restJson1CreateVirtualRouterCommandError = function (output,
|
|
|
2037
2014
|
return [4, parseBody(output.body, context)];
|
|
2038
2015
|
case 1:
|
|
2039
2016
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2040
|
-
errorCode = "UnknownError";
|
|
2041
2017
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2042
2018
|
_b = errorCode;
|
|
2043
2019
|
switch (_b) {
|
|
@@ -2077,10 +2053,12 @@ var deserializeAws_restJson1CreateVirtualRouterCommandError = function (output,
|
|
|
2077
2053
|
case 17: throw _d.sent();
|
|
2078
2054
|
case 18:
|
|
2079
2055
|
parsedBody = parsedOutput.body;
|
|
2056
|
+
$metadata = deserializeMetadata(output);
|
|
2057
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2080
2058
|
response = new __BaseException({
|
|
2081
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2059
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2082
2060
|
$fault: "client",
|
|
2083
|
-
$metadata:
|
|
2061
|
+
$metadata: $metadata,
|
|
2084
2062
|
});
|
|
2085
2063
|
throw __decorateServiceException(response, parsedBody);
|
|
2086
2064
|
}
|
|
@@ -2108,7 +2086,7 @@ export var deserializeAws_restJson1CreateVirtualServiceCommand = function (outpu
|
|
|
2108
2086
|
});
|
|
2109
2087
|
}); };
|
|
2110
2088
|
var deserializeAws_restJson1CreateVirtualServiceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2111
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2089
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2112
2090
|
var _c;
|
|
2113
2091
|
return __generator(this, function (_d) {
|
|
2114
2092
|
switch (_d.label) {
|
|
@@ -2118,7 +2096,6 @@ var deserializeAws_restJson1CreateVirtualServiceCommandError = function (output,
|
|
|
2118
2096
|
return [4, parseBody(output.body, context)];
|
|
2119
2097
|
case 1:
|
|
2120
2098
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2121
|
-
errorCode = "UnknownError";
|
|
2122
2099
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2123
2100
|
_b = errorCode;
|
|
2124
2101
|
switch (_b) {
|
|
@@ -2158,10 +2135,12 @@ var deserializeAws_restJson1CreateVirtualServiceCommandError = function (output,
|
|
|
2158
2135
|
case 17: throw _d.sent();
|
|
2159
2136
|
case 18:
|
|
2160
2137
|
parsedBody = parsedOutput.body;
|
|
2138
|
+
$metadata = deserializeMetadata(output);
|
|
2139
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2161
2140
|
response = new __BaseException({
|
|
2162
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2141
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2163
2142
|
$fault: "client",
|
|
2164
|
-
$metadata:
|
|
2143
|
+
$metadata: $metadata,
|
|
2165
2144
|
});
|
|
2166
2145
|
throw __decorateServiceException(response, parsedBody);
|
|
2167
2146
|
}
|
|
@@ -2189,7 +2168,7 @@ export var deserializeAws_restJson1DeleteGatewayRouteCommand = function (output,
|
|
|
2189
2168
|
});
|
|
2190
2169
|
}); };
|
|
2191
2170
|
var deserializeAws_restJson1DeleteGatewayRouteCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2192
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2171
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2193
2172
|
var _c;
|
|
2194
2173
|
return __generator(this, function (_d) {
|
|
2195
2174
|
switch (_d.label) {
|
|
@@ -2199,7 +2178,6 @@ var deserializeAws_restJson1DeleteGatewayRouteCommandError = function (output, c
|
|
|
2199
2178
|
return [4, parseBody(output.body, context)];
|
|
2200
2179
|
case 1:
|
|
2201
2180
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2202
|
-
errorCode = "UnknownError";
|
|
2203
2181
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2204
2182
|
_b = errorCode;
|
|
2205
2183
|
switch (_b) {
|
|
@@ -2235,10 +2213,12 @@ var deserializeAws_restJson1DeleteGatewayRouteCommandError = function (output, c
|
|
|
2235
2213
|
case 15: throw _d.sent();
|
|
2236
2214
|
case 16:
|
|
2237
2215
|
parsedBody = parsedOutput.body;
|
|
2216
|
+
$metadata = deserializeMetadata(output);
|
|
2217
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2238
2218
|
response = new __BaseException({
|
|
2239
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2219
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2240
2220
|
$fault: "client",
|
|
2241
|
-
$metadata:
|
|
2221
|
+
$metadata: $metadata,
|
|
2242
2222
|
});
|
|
2243
2223
|
throw __decorateServiceException(response, parsedBody);
|
|
2244
2224
|
}
|
|
@@ -2266,7 +2246,7 @@ export var deserializeAws_restJson1DeleteMeshCommand = function (output, context
|
|
|
2266
2246
|
});
|
|
2267
2247
|
}); };
|
|
2268
2248
|
var deserializeAws_restJson1DeleteMeshCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2269
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2249
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2270
2250
|
var _c;
|
|
2271
2251
|
return __generator(this, function (_d) {
|
|
2272
2252
|
switch (_d.label) {
|
|
@@ -2276,7 +2256,6 @@ var deserializeAws_restJson1DeleteMeshCommandError = function (output, context)
|
|
|
2276
2256
|
return [4, parseBody(output.body, context)];
|
|
2277
2257
|
case 1:
|
|
2278
2258
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2279
|
-
errorCode = "UnknownError";
|
|
2280
2259
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2281
2260
|
_b = errorCode;
|
|
2282
2261
|
switch (_b) {
|
|
@@ -2312,10 +2291,12 @@ var deserializeAws_restJson1DeleteMeshCommandError = function (output, context)
|
|
|
2312
2291
|
case 15: throw _d.sent();
|
|
2313
2292
|
case 16:
|
|
2314
2293
|
parsedBody = parsedOutput.body;
|
|
2294
|
+
$metadata = deserializeMetadata(output);
|
|
2295
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2315
2296
|
response = new __BaseException({
|
|
2316
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2297
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2317
2298
|
$fault: "client",
|
|
2318
|
-
$metadata:
|
|
2299
|
+
$metadata: $metadata,
|
|
2319
2300
|
});
|
|
2320
2301
|
throw __decorateServiceException(response, parsedBody);
|
|
2321
2302
|
}
|
|
@@ -2343,7 +2324,7 @@ export var deserializeAws_restJson1DeleteRouteCommand = function (output, contex
|
|
|
2343
2324
|
});
|
|
2344
2325
|
}); };
|
|
2345
2326
|
var deserializeAws_restJson1DeleteRouteCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2346
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2327
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2347
2328
|
var _c;
|
|
2348
2329
|
return __generator(this, function (_d) {
|
|
2349
2330
|
switch (_d.label) {
|
|
@@ -2353,7 +2334,6 @@ var deserializeAws_restJson1DeleteRouteCommandError = function (output, context)
|
|
|
2353
2334
|
return [4, parseBody(output.body, context)];
|
|
2354
2335
|
case 1:
|
|
2355
2336
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2356
|
-
errorCode = "UnknownError";
|
|
2357
2337
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2358
2338
|
_b = errorCode;
|
|
2359
2339
|
switch (_b) {
|
|
@@ -2389,10 +2369,12 @@ var deserializeAws_restJson1DeleteRouteCommandError = function (output, context)
|
|
|
2389
2369
|
case 15: throw _d.sent();
|
|
2390
2370
|
case 16:
|
|
2391
2371
|
parsedBody = parsedOutput.body;
|
|
2372
|
+
$metadata = deserializeMetadata(output);
|
|
2373
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2392
2374
|
response = new __BaseException({
|
|
2393
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2375
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2394
2376
|
$fault: "client",
|
|
2395
|
-
$metadata:
|
|
2377
|
+
$metadata: $metadata,
|
|
2396
2378
|
});
|
|
2397
2379
|
throw __decorateServiceException(response, parsedBody);
|
|
2398
2380
|
}
|
|
@@ -2420,7 +2402,7 @@ export var deserializeAws_restJson1DeleteVirtualGatewayCommand = function (outpu
|
|
|
2420
2402
|
});
|
|
2421
2403
|
}); };
|
|
2422
2404
|
var deserializeAws_restJson1DeleteVirtualGatewayCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2423
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2405
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2424
2406
|
var _c;
|
|
2425
2407
|
return __generator(this, function (_d) {
|
|
2426
2408
|
switch (_d.label) {
|
|
@@ -2430,7 +2412,6 @@ var deserializeAws_restJson1DeleteVirtualGatewayCommandError = function (output,
|
|
|
2430
2412
|
return [4, parseBody(output.body, context)];
|
|
2431
2413
|
case 1:
|
|
2432
2414
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2433
|
-
errorCode = "UnknownError";
|
|
2434
2415
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2435
2416
|
_b = errorCode;
|
|
2436
2417
|
switch (_b) {
|
|
@@ -2466,10 +2447,12 @@ var deserializeAws_restJson1DeleteVirtualGatewayCommandError = function (output,
|
|
|
2466
2447
|
case 15: throw _d.sent();
|
|
2467
2448
|
case 16:
|
|
2468
2449
|
parsedBody = parsedOutput.body;
|
|
2450
|
+
$metadata = deserializeMetadata(output);
|
|
2451
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2469
2452
|
response = new __BaseException({
|
|
2470
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2453
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2471
2454
|
$fault: "client",
|
|
2472
|
-
$metadata:
|
|
2455
|
+
$metadata: $metadata,
|
|
2473
2456
|
});
|
|
2474
2457
|
throw __decorateServiceException(response, parsedBody);
|
|
2475
2458
|
}
|
|
@@ -2497,7 +2480,7 @@ export var deserializeAws_restJson1DeleteVirtualNodeCommand = function (output,
|
|
|
2497
2480
|
});
|
|
2498
2481
|
}); };
|
|
2499
2482
|
var deserializeAws_restJson1DeleteVirtualNodeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2500
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2483
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2501
2484
|
var _c;
|
|
2502
2485
|
return __generator(this, function (_d) {
|
|
2503
2486
|
switch (_d.label) {
|
|
@@ -2507,7 +2490,6 @@ var deserializeAws_restJson1DeleteVirtualNodeCommandError = function (output, co
|
|
|
2507
2490
|
return [4, parseBody(output.body, context)];
|
|
2508
2491
|
case 1:
|
|
2509
2492
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2510
|
-
errorCode = "UnknownError";
|
|
2511
2493
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2512
2494
|
_b = errorCode;
|
|
2513
2495
|
switch (_b) {
|
|
@@ -2543,10 +2525,12 @@ var deserializeAws_restJson1DeleteVirtualNodeCommandError = function (output, co
|
|
|
2543
2525
|
case 15: throw _d.sent();
|
|
2544
2526
|
case 16:
|
|
2545
2527
|
parsedBody = parsedOutput.body;
|
|
2528
|
+
$metadata = deserializeMetadata(output);
|
|
2529
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2546
2530
|
response = new __BaseException({
|
|
2547
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2531
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2548
2532
|
$fault: "client",
|
|
2549
|
-
$metadata:
|
|
2533
|
+
$metadata: $metadata,
|
|
2550
2534
|
});
|
|
2551
2535
|
throw __decorateServiceException(response, parsedBody);
|
|
2552
2536
|
}
|
|
@@ -2574,7 +2558,7 @@ export var deserializeAws_restJson1DeleteVirtualRouterCommand = function (output
|
|
|
2574
2558
|
});
|
|
2575
2559
|
}); };
|
|
2576
2560
|
var deserializeAws_restJson1DeleteVirtualRouterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2577
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2561
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2578
2562
|
var _c;
|
|
2579
2563
|
return __generator(this, function (_d) {
|
|
2580
2564
|
switch (_d.label) {
|
|
@@ -2584,7 +2568,6 @@ var deserializeAws_restJson1DeleteVirtualRouterCommandError = function (output,
|
|
|
2584
2568
|
return [4, parseBody(output.body, context)];
|
|
2585
2569
|
case 1:
|
|
2586
2570
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2587
|
-
errorCode = "UnknownError";
|
|
2588
2571
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2589
2572
|
_b = errorCode;
|
|
2590
2573
|
switch (_b) {
|
|
@@ -2620,10 +2603,12 @@ var deserializeAws_restJson1DeleteVirtualRouterCommandError = function (output,
|
|
|
2620
2603
|
case 15: throw _d.sent();
|
|
2621
2604
|
case 16:
|
|
2622
2605
|
parsedBody = parsedOutput.body;
|
|
2606
|
+
$metadata = deserializeMetadata(output);
|
|
2607
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2623
2608
|
response = new __BaseException({
|
|
2624
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2609
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2625
2610
|
$fault: "client",
|
|
2626
|
-
$metadata:
|
|
2611
|
+
$metadata: $metadata,
|
|
2627
2612
|
});
|
|
2628
2613
|
throw __decorateServiceException(response, parsedBody);
|
|
2629
2614
|
}
|
|
@@ -2651,7 +2636,7 @@ export var deserializeAws_restJson1DeleteVirtualServiceCommand = function (outpu
|
|
|
2651
2636
|
});
|
|
2652
2637
|
}); };
|
|
2653
2638
|
var deserializeAws_restJson1DeleteVirtualServiceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2654
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2639
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2655
2640
|
var _c;
|
|
2656
2641
|
return __generator(this, function (_d) {
|
|
2657
2642
|
switch (_d.label) {
|
|
@@ -2661,7 +2646,6 @@ var deserializeAws_restJson1DeleteVirtualServiceCommandError = function (output,
|
|
|
2661
2646
|
return [4, parseBody(output.body, context)];
|
|
2662
2647
|
case 1:
|
|
2663
2648
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2664
|
-
errorCode = "UnknownError";
|
|
2665
2649
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2666
2650
|
_b = errorCode;
|
|
2667
2651
|
switch (_b) {
|
|
@@ -2697,10 +2681,12 @@ var deserializeAws_restJson1DeleteVirtualServiceCommandError = function (output,
|
|
|
2697
2681
|
case 15: throw _d.sent();
|
|
2698
2682
|
case 16:
|
|
2699
2683
|
parsedBody = parsedOutput.body;
|
|
2684
|
+
$metadata = deserializeMetadata(output);
|
|
2685
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2700
2686
|
response = new __BaseException({
|
|
2701
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2687
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2702
2688
|
$fault: "client",
|
|
2703
|
-
$metadata:
|
|
2689
|
+
$metadata: $metadata,
|
|
2704
2690
|
});
|
|
2705
2691
|
throw __decorateServiceException(response, parsedBody);
|
|
2706
2692
|
}
|
|
@@ -2728,7 +2714,7 @@ export var deserializeAws_restJson1DescribeGatewayRouteCommand = function (outpu
|
|
|
2728
2714
|
});
|
|
2729
2715
|
}); };
|
|
2730
2716
|
var deserializeAws_restJson1DescribeGatewayRouteCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2731
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2717
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2732
2718
|
var _c;
|
|
2733
2719
|
return __generator(this, function (_d) {
|
|
2734
2720
|
switch (_d.label) {
|
|
@@ -2738,7 +2724,6 @@ var deserializeAws_restJson1DescribeGatewayRouteCommandError = function (output,
|
|
|
2738
2724
|
return [4, parseBody(output.body, context)];
|
|
2739
2725
|
case 1:
|
|
2740
2726
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2741
|
-
errorCode = "UnknownError";
|
|
2742
2727
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2743
2728
|
_b = errorCode;
|
|
2744
2729
|
switch (_b) {
|
|
@@ -2770,10 +2755,12 @@ var deserializeAws_restJson1DescribeGatewayRouteCommandError = function (output,
|
|
|
2770
2755
|
case 13: throw _d.sent();
|
|
2771
2756
|
case 14:
|
|
2772
2757
|
parsedBody = parsedOutput.body;
|
|
2758
|
+
$metadata = deserializeMetadata(output);
|
|
2759
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2773
2760
|
response = new __BaseException({
|
|
2774
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2761
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2775
2762
|
$fault: "client",
|
|
2776
|
-
$metadata:
|
|
2763
|
+
$metadata: $metadata,
|
|
2777
2764
|
});
|
|
2778
2765
|
throw __decorateServiceException(response, parsedBody);
|
|
2779
2766
|
}
|
|
@@ -2801,7 +2788,7 @@ export var deserializeAws_restJson1DescribeMeshCommand = function (output, conte
|
|
|
2801
2788
|
});
|
|
2802
2789
|
}); };
|
|
2803
2790
|
var deserializeAws_restJson1DescribeMeshCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2804
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2791
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2805
2792
|
var _c;
|
|
2806
2793
|
return __generator(this, function (_d) {
|
|
2807
2794
|
switch (_d.label) {
|
|
@@ -2811,7 +2798,6 @@ var deserializeAws_restJson1DescribeMeshCommandError = function (output, context
|
|
|
2811
2798
|
return [4, parseBody(output.body, context)];
|
|
2812
2799
|
case 1:
|
|
2813
2800
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2814
|
-
errorCode = "UnknownError";
|
|
2815
2801
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2816
2802
|
_b = errorCode;
|
|
2817
2803
|
switch (_b) {
|
|
@@ -2843,10 +2829,12 @@ var deserializeAws_restJson1DescribeMeshCommandError = function (output, context
|
|
|
2843
2829
|
case 13: throw _d.sent();
|
|
2844
2830
|
case 14:
|
|
2845
2831
|
parsedBody = parsedOutput.body;
|
|
2832
|
+
$metadata = deserializeMetadata(output);
|
|
2833
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2846
2834
|
response = new __BaseException({
|
|
2847
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2835
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2848
2836
|
$fault: "client",
|
|
2849
|
-
$metadata:
|
|
2837
|
+
$metadata: $metadata,
|
|
2850
2838
|
});
|
|
2851
2839
|
throw __decorateServiceException(response, parsedBody);
|
|
2852
2840
|
}
|
|
@@ -2874,7 +2862,7 @@ export var deserializeAws_restJson1DescribeRouteCommand = function (output, cont
|
|
|
2874
2862
|
});
|
|
2875
2863
|
}); };
|
|
2876
2864
|
var deserializeAws_restJson1DescribeRouteCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2877
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2865
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2878
2866
|
var _c;
|
|
2879
2867
|
return __generator(this, function (_d) {
|
|
2880
2868
|
switch (_d.label) {
|
|
@@ -2884,7 +2872,6 @@ var deserializeAws_restJson1DescribeRouteCommandError = function (output, contex
|
|
|
2884
2872
|
return [4, parseBody(output.body, context)];
|
|
2885
2873
|
case 1:
|
|
2886
2874
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2887
|
-
errorCode = "UnknownError";
|
|
2888
2875
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2889
2876
|
_b = errorCode;
|
|
2890
2877
|
switch (_b) {
|
|
@@ -2916,10 +2903,12 @@ var deserializeAws_restJson1DescribeRouteCommandError = function (output, contex
|
|
|
2916
2903
|
case 13: throw _d.sent();
|
|
2917
2904
|
case 14:
|
|
2918
2905
|
parsedBody = parsedOutput.body;
|
|
2906
|
+
$metadata = deserializeMetadata(output);
|
|
2907
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2919
2908
|
response = new __BaseException({
|
|
2920
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2909
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2921
2910
|
$fault: "client",
|
|
2922
|
-
$metadata:
|
|
2911
|
+
$metadata: $metadata,
|
|
2923
2912
|
});
|
|
2924
2913
|
throw __decorateServiceException(response, parsedBody);
|
|
2925
2914
|
}
|
|
@@ -2947,7 +2936,7 @@ export var deserializeAws_restJson1DescribeVirtualGatewayCommand = function (out
|
|
|
2947
2936
|
});
|
|
2948
2937
|
}); };
|
|
2949
2938
|
var deserializeAws_restJson1DescribeVirtualGatewayCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2950
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2939
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2951
2940
|
var _c;
|
|
2952
2941
|
return __generator(this, function (_d) {
|
|
2953
2942
|
switch (_d.label) {
|
|
@@ -2957,7 +2946,6 @@ var deserializeAws_restJson1DescribeVirtualGatewayCommandError = function (outpu
|
|
|
2957
2946
|
return [4, parseBody(output.body, context)];
|
|
2958
2947
|
case 1:
|
|
2959
2948
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2960
|
-
errorCode = "UnknownError";
|
|
2961
2949
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2962
2950
|
_b = errorCode;
|
|
2963
2951
|
switch (_b) {
|
|
@@ -2989,10 +2977,12 @@ var deserializeAws_restJson1DescribeVirtualGatewayCommandError = function (outpu
|
|
|
2989
2977
|
case 13: throw _d.sent();
|
|
2990
2978
|
case 14:
|
|
2991
2979
|
parsedBody = parsedOutput.body;
|
|
2980
|
+
$metadata = deserializeMetadata(output);
|
|
2981
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2992
2982
|
response = new __BaseException({
|
|
2993
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2983
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2994
2984
|
$fault: "client",
|
|
2995
|
-
$metadata:
|
|
2985
|
+
$metadata: $metadata,
|
|
2996
2986
|
});
|
|
2997
2987
|
throw __decorateServiceException(response, parsedBody);
|
|
2998
2988
|
}
|
|
@@ -3020,7 +3010,7 @@ export var deserializeAws_restJson1DescribeVirtualNodeCommand = function (output
|
|
|
3020
3010
|
});
|
|
3021
3011
|
}); };
|
|
3022
3012
|
var deserializeAws_restJson1DescribeVirtualNodeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3023
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3013
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3024
3014
|
var _c;
|
|
3025
3015
|
return __generator(this, function (_d) {
|
|
3026
3016
|
switch (_d.label) {
|
|
@@ -3030,7 +3020,6 @@ var deserializeAws_restJson1DescribeVirtualNodeCommandError = function (output,
|
|
|
3030
3020
|
return [4, parseBody(output.body, context)];
|
|
3031
3021
|
case 1:
|
|
3032
3022
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3033
|
-
errorCode = "UnknownError";
|
|
3034
3023
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3035
3024
|
_b = errorCode;
|
|
3036
3025
|
switch (_b) {
|
|
@@ -3062,10 +3051,12 @@ var deserializeAws_restJson1DescribeVirtualNodeCommandError = function (output,
|
|
|
3062
3051
|
case 13: throw _d.sent();
|
|
3063
3052
|
case 14:
|
|
3064
3053
|
parsedBody = parsedOutput.body;
|
|
3054
|
+
$metadata = deserializeMetadata(output);
|
|
3055
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3065
3056
|
response = new __BaseException({
|
|
3066
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3057
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3067
3058
|
$fault: "client",
|
|
3068
|
-
$metadata:
|
|
3059
|
+
$metadata: $metadata,
|
|
3069
3060
|
});
|
|
3070
3061
|
throw __decorateServiceException(response, parsedBody);
|
|
3071
3062
|
}
|
|
@@ -3093,7 +3084,7 @@ export var deserializeAws_restJson1DescribeVirtualRouterCommand = function (outp
|
|
|
3093
3084
|
});
|
|
3094
3085
|
}); };
|
|
3095
3086
|
var deserializeAws_restJson1DescribeVirtualRouterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3096
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3087
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3097
3088
|
var _c;
|
|
3098
3089
|
return __generator(this, function (_d) {
|
|
3099
3090
|
switch (_d.label) {
|
|
@@ -3103,7 +3094,6 @@ var deserializeAws_restJson1DescribeVirtualRouterCommandError = function (output
|
|
|
3103
3094
|
return [4, parseBody(output.body, context)];
|
|
3104
3095
|
case 1:
|
|
3105
3096
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3106
|
-
errorCode = "UnknownError";
|
|
3107
3097
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3108
3098
|
_b = errorCode;
|
|
3109
3099
|
switch (_b) {
|
|
@@ -3135,10 +3125,12 @@ var deserializeAws_restJson1DescribeVirtualRouterCommandError = function (output
|
|
|
3135
3125
|
case 13: throw _d.sent();
|
|
3136
3126
|
case 14:
|
|
3137
3127
|
parsedBody = parsedOutput.body;
|
|
3128
|
+
$metadata = deserializeMetadata(output);
|
|
3129
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3138
3130
|
response = new __BaseException({
|
|
3139
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3131
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3140
3132
|
$fault: "client",
|
|
3141
|
-
$metadata:
|
|
3133
|
+
$metadata: $metadata,
|
|
3142
3134
|
});
|
|
3143
3135
|
throw __decorateServiceException(response, parsedBody);
|
|
3144
3136
|
}
|
|
@@ -3166,7 +3158,7 @@ export var deserializeAws_restJson1DescribeVirtualServiceCommand = function (out
|
|
|
3166
3158
|
});
|
|
3167
3159
|
}); };
|
|
3168
3160
|
var deserializeAws_restJson1DescribeVirtualServiceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3169
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3161
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3170
3162
|
var _c;
|
|
3171
3163
|
return __generator(this, function (_d) {
|
|
3172
3164
|
switch (_d.label) {
|
|
@@ -3176,7 +3168,6 @@ var deserializeAws_restJson1DescribeVirtualServiceCommandError = function (outpu
|
|
|
3176
3168
|
return [4, parseBody(output.body, context)];
|
|
3177
3169
|
case 1:
|
|
3178
3170
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3179
|
-
errorCode = "UnknownError";
|
|
3180
3171
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3181
3172
|
_b = errorCode;
|
|
3182
3173
|
switch (_b) {
|
|
@@ -3208,10 +3199,12 @@ var deserializeAws_restJson1DescribeVirtualServiceCommandError = function (outpu
|
|
|
3208
3199
|
case 13: throw _d.sent();
|
|
3209
3200
|
case 14:
|
|
3210
3201
|
parsedBody = parsedOutput.body;
|
|
3202
|
+
$metadata = deserializeMetadata(output);
|
|
3203
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3211
3204
|
response = new __BaseException({
|
|
3212
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3205
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3213
3206
|
$fault: "client",
|
|
3214
|
-
$metadata:
|
|
3207
|
+
$metadata: $metadata,
|
|
3215
3208
|
});
|
|
3216
3209
|
throw __decorateServiceException(response, parsedBody);
|
|
3217
3210
|
}
|
|
@@ -3246,7 +3239,7 @@ export var deserializeAws_restJson1ListGatewayRoutesCommand = function (output,
|
|
|
3246
3239
|
});
|
|
3247
3240
|
}); };
|
|
3248
3241
|
var deserializeAws_restJson1ListGatewayRoutesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3249
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3242
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3250
3243
|
var _c;
|
|
3251
3244
|
return __generator(this, function (_d) {
|
|
3252
3245
|
switch (_d.label) {
|
|
@@ -3256,7 +3249,6 @@ var deserializeAws_restJson1ListGatewayRoutesCommandError = function (output, co
|
|
|
3256
3249
|
return [4, parseBody(output.body, context)];
|
|
3257
3250
|
case 1:
|
|
3258
3251
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3259
|
-
errorCode = "UnknownError";
|
|
3260
3252
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3261
3253
|
_b = errorCode;
|
|
3262
3254
|
switch (_b) {
|
|
@@ -3288,10 +3280,12 @@ var deserializeAws_restJson1ListGatewayRoutesCommandError = function (output, co
|
|
|
3288
3280
|
case 13: throw _d.sent();
|
|
3289
3281
|
case 14:
|
|
3290
3282
|
parsedBody = parsedOutput.body;
|
|
3283
|
+
$metadata = deserializeMetadata(output);
|
|
3284
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3291
3285
|
response = new __BaseException({
|
|
3292
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3286
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3293
3287
|
$fault: "client",
|
|
3294
|
-
$metadata:
|
|
3288
|
+
$metadata: $metadata,
|
|
3295
3289
|
});
|
|
3296
3290
|
throw __decorateServiceException(response, parsedBody);
|
|
3297
3291
|
}
|
|
@@ -3326,7 +3320,7 @@ export var deserializeAws_restJson1ListMeshesCommand = function (output, context
|
|
|
3326
3320
|
});
|
|
3327
3321
|
}); };
|
|
3328
3322
|
var deserializeAws_restJson1ListMeshesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3329
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3323
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3330
3324
|
var _c;
|
|
3331
3325
|
return __generator(this, function (_d) {
|
|
3332
3326
|
switch (_d.label) {
|
|
@@ -3336,7 +3330,6 @@ var deserializeAws_restJson1ListMeshesCommandError = function (output, context)
|
|
|
3336
3330
|
return [4, parseBody(output.body, context)];
|
|
3337
3331
|
case 1:
|
|
3338
3332
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3339
|
-
errorCode = "UnknownError";
|
|
3340
3333
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3341
3334
|
_b = errorCode;
|
|
3342
3335
|
switch (_b) {
|
|
@@ -3368,10 +3361,12 @@ var deserializeAws_restJson1ListMeshesCommandError = function (output, context)
|
|
|
3368
3361
|
case 13: throw _d.sent();
|
|
3369
3362
|
case 14:
|
|
3370
3363
|
parsedBody = parsedOutput.body;
|
|
3364
|
+
$metadata = deserializeMetadata(output);
|
|
3365
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3371
3366
|
response = new __BaseException({
|
|
3372
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3367
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3373
3368
|
$fault: "client",
|
|
3374
|
-
$metadata:
|
|
3369
|
+
$metadata: $metadata,
|
|
3375
3370
|
});
|
|
3376
3371
|
throw __decorateServiceException(response, parsedBody);
|
|
3377
3372
|
}
|
|
@@ -3406,7 +3401,7 @@ export var deserializeAws_restJson1ListRoutesCommand = function (output, context
|
|
|
3406
3401
|
});
|
|
3407
3402
|
}); };
|
|
3408
3403
|
var deserializeAws_restJson1ListRoutesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3409
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3404
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3410
3405
|
var _c;
|
|
3411
3406
|
return __generator(this, function (_d) {
|
|
3412
3407
|
switch (_d.label) {
|
|
@@ -3416,7 +3411,6 @@ var deserializeAws_restJson1ListRoutesCommandError = function (output, context)
|
|
|
3416
3411
|
return [4, parseBody(output.body, context)];
|
|
3417
3412
|
case 1:
|
|
3418
3413
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3419
|
-
errorCode = "UnknownError";
|
|
3420
3414
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3421
3415
|
_b = errorCode;
|
|
3422
3416
|
switch (_b) {
|
|
@@ -3448,10 +3442,12 @@ var deserializeAws_restJson1ListRoutesCommandError = function (output, context)
|
|
|
3448
3442
|
case 13: throw _d.sent();
|
|
3449
3443
|
case 14:
|
|
3450
3444
|
parsedBody = parsedOutput.body;
|
|
3445
|
+
$metadata = deserializeMetadata(output);
|
|
3446
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3451
3447
|
response = new __BaseException({
|
|
3452
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3448
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3453
3449
|
$fault: "client",
|
|
3454
|
-
$metadata:
|
|
3450
|
+
$metadata: $metadata,
|
|
3455
3451
|
});
|
|
3456
3452
|
throw __decorateServiceException(response, parsedBody);
|
|
3457
3453
|
}
|
|
@@ -3486,7 +3482,7 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
3486
3482
|
});
|
|
3487
3483
|
}); };
|
|
3488
3484
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3489
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3485
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3490
3486
|
var _c;
|
|
3491
3487
|
return __generator(this, function (_d) {
|
|
3492
3488
|
switch (_d.label) {
|
|
@@ -3496,7 +3492,6 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
3496
3492
|
return [4, parseBody(output.body, context)];
|
|
3497
3493
|
case 1:
|
|
3498
3494
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3499
|
-
errorCode = "UnknownError";
|
|
3500
3495
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3501
3496
|
_b = errorCode;
|
|
3502
3497
|
switch (_b) {
|
|
@@ -3528,10 +3523,12 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
3528
3523
|
case 13: throw _d.sent();
|
|
3529
3524
|
case 14:
|
|
3530
3525
|
parsedBody = parsedOutput.body;
|
|
3526
|
+
$metadata = deserializeMetadata(output);
|
|
3527
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3531
3528
|
response = new __BaseException({
|
|
3532
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3529
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3533
3530
|
$fault: "client",
|
|
3534
|
-
$metadata:
|
|
3531
|
+
$metadata: $metadata,
|
|
3535
3532
|
});
|
|
3536
3533
|
throw __decorateServiceException(response, parsedBody);
|
|
3537
3534
|
}
|
|
@@ -3566,7 +3563,7 @@ export var deserializeAws_restJson1ListVirtualGatewaysCommand = function (output
|
|
|
3566
3563
|
});
|
|
3567
3564
|
}); };
|
|
3568
3565
|
var deserializeAws_restJson1ListVirtualGatewaysCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3569
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3566
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3570
3567
|
var _c;
|
|
3571
3568
|
return __generator(this, function (_d) {
|
|
3572
3569
|
switch (_d.label) {
|
|
@@ -3576,7 +3573,6 @@ var deserializeAws_restJson1ListVirtualGatewaysCommandError = function (output,
|
|
|
3576
3573
|
return [4, parseBody(output.body, context)];
|
|
3577
3574
|
case 1:
|
|
3578
3575
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3579
|
-
errorCode = "UnknownError";
|
|
3580
3576
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3581
3577
|
_b = errorCode;
|
|
3582
3578
|
switch (_b) {
|
|
@@ -3608,10 +3604,12 @@ var deserializeAws_restJson1ListVirtualGatewaysCommandError = function (output,
|
|
|
3608
3604
|
case 13: throw _d.sent();
|
|
3609
3605
|
case 14:
|
|
3610
3606
|
parsedBody = parsedOutput.body;
|
|
3607
|
+
$metadata = deserializeMetadata(output);
|
|
3608
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3611
3609
|
response = new __BaseException({
|
|
3612
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3610
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3613
3611
|
$fault: "client",
|
|
3614
|
-
$metadata:
|
|
3612
|
+
$metadata: $metadata,
|
|
3615
3613
|
});
|
|
3616
3614
|
throw __decorateServiceException(response, parsedBody);
|
|
3617
3615
|
}
|
|
@@ -3646,7 +3644,7 @@ export var deserializeAws_restJson1ListVirtualNodesCommand = function (output, c
|
|
|
3646
3644
|
});
|
|
3647
3645
|
}); };
|
|
3648
3646
|
var deserializeAws_restJson1ListVirtualNodesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3649
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3647
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3650
3648
|
var _c;
|
|
3651
3649
|
return __generator(this, function (_d) {
|
|
3652
3650
|
switch (_d.label) {
|
|
@@ -3656,7 +3654,6 @@ var deserializeAws_restJson1ListVirtualNodesCommandError = function (output, con
|
|
|
3656
3654
|
return [4, parseBody(output.body, context)];
|
|
3657
3655
|
case 1:
|
|
3658
3656
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3659
|
-
errorCode = "UnknownError";
|
|
3660
3657
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3661
3658
|
_b = errorCode;
|
|
3662
3659
|
switch (_b) {
|
|
@@ -3688,10 +3685,12 @@ var deserializeAws_restJson1ListVirtualNodesCommandError = function (output, con
|
|
|
3688
3685
|
case 13: throw _d.sent();
|
|
3689
3686
|
case 14:
|
|
3690
3687
|
parsedBody = parsedOutput.body;
|
|
3688
|
+
$metadata = deserializeMetadata(output);
|
|
3689
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3691
3690
|
response = new __BaseException({
|
|
3692
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3691
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3693
3692
|
$fault: "client",
|
|
3694
|
-
$metadata:
|
|
3693
|
+
$metadata: $metadata,
|
|
3695
3694
|
});
|
|
3696
3695
|
throw __decorateServiceException(response, parsedBody);
|
|
3697
3696
|
}
|
|
@@ -3726,7 +3725,7 @@ export var deserializeAws_restJson1ListVirtualRoutersCommand = function (output,
|
|
|
3726
3725
|
});
|
|
3727
3726
|
}); };
|
|
3728
3727
|
var deserializeAws_restJson1ListVirtualRoutersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3729
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3728
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3730
3729
|
var _c;
|
|
3731
3730
|
return __generator(this, function (_d) {
|
|
3732
3731
|
switch (_d.label) {
|
|
@@ -3736,7 +3735,6 @@ var deserializeAws_restJson1ListVirtualRoutersCommandError = function (output, c
|
|
|
3736
3735
|
return [4, parseBody(output.body, context)];
|
|
3737
3736
|
case 1:
|
|
3738
3737
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3739
|
-
errorCode = "UnknownError";
|
|
3740
3738
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3741
3739
|
_b = errorCode;
|
|
3742
3740
|
switch (_b) {
|
|
@@ -3768,10 +3766,12 @@ var deserializeAws_restJson1ListVirtualRoutersCommandError = function (output, c
|
|
|
3768
3766
|
case 13: throw _d.sent();
|
|
3769
3767
|
case 14:
|
|
3770
3768
|
parsedBody = parsedOutput.body;
|
|
3769
|
+
$metadata = deserializeMetadata(output);
|
|
3770
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3771
3771
|
response = new __BaseException({
|
|
3772
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3772
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3773
3773
|
$fault: "client",
|
|
3774
|
-
$metadata:
|
|
3774
|
+
$metadata: $metadata,
|
|
3775
3775
|
});
|
|
3776
3776
|
throw __decorateServiceException(response, parsedBody);
|
|
3777
3777
|
}
|
|
@@ -3806,7 +3806,7 @@ export var deserializeAws_restJson1ListVirtualServicesCommand = function (output
|
|
|
3806
3806
|
});
|
|
3807
3807
|
}); };
|
|
3808
3808
|
var deserializeAws_restJson1ListVirtualServicesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3809
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3809
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3810
3810
|
var _c;
|
|
3811
3811
|
return __generator(this, function (_d) {
|
|
3812
3812
|
switch (_d.label) {
|
|
@@ -3816,7 +3816,6 @@ var deserializeAws_restJson1ListVirtualServicesCommandError = function (output,
|
|
|
3816
3816
|
return [4, parseBody(output.body, context)];
|
|
3817
3817
|
case 1:
|
|
3818
3818
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3819
|
-
errorCode = "UnknownError";
|
|
3820
3819
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3821
3820
|
_b = errorCode;
|
|
3822
3821
|
switch (_b) {
|
|
@@ -3848,10 +3847,12 @@ var deserializeAws_restJson1ListVirtualServicesCommandError = function (output,
|
|
|
3848
3847
|
case 13: throw _d.sent();
|
|
3849
3848
|
case 14:
|
|
3850
3849
|
parsedBody = parsedOutput.body;
|
|
3850
|
+
$metadata = deserializeMetadata(output);
|
|
3851
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3851
3852
|
response = new __BaseException({
|
|
3852
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3853
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3853
3854
|
$fault: "client",
|
|
3854
|
-
$metadata:
|
|
3855
|
+
$metadata: $metadata,
|
|
3855
3856
|
});
|
|
3856
3857
|
throw __decorateServiceException(response, parsedBody);
|
|
3857
3858
|
}
|
|
@@ -3876,7 +3877,7 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
3876
3877
|
});
|
|
3877
3878
|
}); };
|
|
3878
3879
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3879
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3880
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3880
3881
|
var _c;
|
|
3881
3882
|
return __generator(this, function (_d) {
|
|
3882
3883
|
switch (_d.label) {
|
|
@@ -3886,7 +3887,6 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
3886
3887
|
return [4, parseBody(output.body, context)];
|
|
3887
3888
|
case 1:
|
|
3888
3889
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3889
|
-
errorCode = "UnknownError";
|
|
3890
3890
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3891
3891
|
_b = errorCode;
|
|
3892
3892
|
switch (_b) {
|
|
@@ -3922,10 +3922,12 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
3922
3922
|
case 15: throw _d.sent();
|
|
3923
3923
|
case 16:
|
|
3924
3924
|
parsedBody = parsedOutput.body;
|
|
3925
|
+
$metadata = deserializeMetadata(output);
|
|
3926
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3925
3927
|
response = new __BaseException({
|
|
3926
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3928
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3927
3929
|
$fault: "client",
|
|
3928
|
-
$metadata:
|
|
3930
|
+
$metadata: $metadata,
|
|
3929
3931
|
});
|
|
3930
3932
|
throw __decorateServiceException(response, parsedBody);
|
|
3931
3933
|
}
|
|
@@ -3950,7 +3952,7 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
3950
3952
|
});
|
|
3951
3953
|
}); };
|
|
3952
3954
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3953
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3955
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3954
3956
|
var _c;
|
|
3955
3957
|
return __generator(this, function (_d) {
|
|
3956
3958
|
switch (_d.label) {
|
|
@@ -3960,7 +3962,6 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
3960
3962
|
return [4, parseBody(output.body, context)];
|
|
3961
3963
|
case 1:
|
|
3962
3964
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3963
|
-
errorCode = "UnknownError";
|
|
3964
3965
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3965
3966
|
_b = errorCode;
|
|
3966
3967
|
switch (_b) {
|
|
@@ -3992,10 +3993,12 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
3992
3993
|
case 13: throw _d.sent();
|
|
3993
3994
|
case 14:
|
|
3994
3995
|
parsedBody = parsedOutput.body;
|
|
3996
|
+
$metadata = deserializeMetadata(output);
|
|
3997
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3995
3998
|
response = new __BaseException({
|
|
3996
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3999
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3997
4000
|
$fault: "client",
|
|
3998
|
-
$metadata:
|
|
4001
|
+
$metadata: $metadata,
|
|
3999
4002
|
});
|
|
4000
4003
|
throw __decorateServiceException(response, parsedBody);
|
|
4001
4004
|
}
|
|
@@ -4023,7 +4026,7 @@ export var deserializeAws_restJson1UpdateGatewayRouteCommand = function (output,
|
|
|
4023
4026
|
});
|
|
4024
4027
|
}); };
|
|
4025
4028
|
var deserializeAws_restJson1UpdateGatewayRouteCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4026
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4029
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4027
4030
|
var _c;
|
|
4028
4031
|
return __generator(this, function (_d) {
|
|
4029
4032
|
switch (_d.label) {
|
|
@@ -4033,7 +4036,6 @@ var deserializeAws_restJson1UpdateGatewayRouteCommandError = function (output, c
|
|
|
4033
4036
|
return [4, parseBody(output.body, context)];
|
|
4034
4037
|
case 1:
|
|
4035
4038
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4036
|
-
errorCode = "UnknownError";
|
|
4037
4039
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4038
4040
|
_b = errorCode;
|
|
4039
4041
|
switch (_b) {
|
|
@@ -4073,10 +4075,12 @@ var deserializeAws_restJson1UpdateGatewayRouteCommandError = function (output, c
|
|
|
4073
4075
|
case 17: throw _d.sent();
|
|
4074
4076
|
case 18:
|
|
4075
4077
|
parsedBody = parsedOutput.body;
|
|
4078
|
+
$metadata = deserializeMetadata(output);
|
|
4079
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4076
4080
|
response = new __BaseException({
|
|
4077
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4081
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4078
4082
|
$fault: "client",
|
|
4079
|
-
$metadata:
|
|
4083
|
+
$metadata: $metadata,
|
|
4080
4084
|
});
|
|
4081
4085
|
throw __decorateServiceException(response, parsedBody);
|
|
4082
4086
|
}
|
|
@@ -4104,7 +4108,7 @@ export var deserializeAws_restJson1UpdateMeshCommand = function (output, context
|
|
|
4104
4108
|
});
|
|
4105
4109
|
}); };
|
|
4106
4110
|
var deserializeAws_restJson1UpdateMeshCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4107
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4111
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4108
4112
|
var _c;
|
|
4109
4113
|
return __generator(this, function (_d) {
|
|
4110
4114
|
switch (_d.label) {
|
|
@@ -4114,7 +4118,6 @@ var deserializeAws_restJson1UpdateMeshCommandError = function (output, context)
|
|
|
4114
4118
|
return [4, parseBody(output.body, context)];
|
|
4115
4119
|
case 1:
|
|
4116
4120
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4117
|
-
errorCode = "UnknownError";
|
|
4118
4121
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4119
4122
|
_b = errorCode;
|
|
4120
4123
|
switch (_b) {
|
|
@@ -4150,10 +4153,12 @@ var deserializeAws_restJson1UpdateMeshCommandError = function (output, context)
|
|
|
4150
4153
|
case 15: throw _d.sent();
|
|
4151
4154
|
case 16:
|
|
4152
4155
|
parsedBody = parsedOutput.body;
|
|
4156
|
+
$metadata = deserializeMetadata(output);
|
|
4157
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4153
4158
|
response = new __BaseException({
|
|
4154
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4159
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4155
4160
|
$fault: "client",
|
|
4156
|
-
$metadata:
|
|
4161
|
+
$metadata: $metadata,
|
|
4157
4162
|
});
|
|
4158
4163
|
throw __decorateServiceException(response, parsedBody);
|
|
4159
4164
|
}
|
|
@@ -4181,7 +4186,7 @@ export var deserializeAws_restJson1UpdateRouteCommand = function (output, contex
|
|
|
4181
4186
|
});
|
|
4182
4187
|
}); };
|
|
4183
4188
|
var deserializeAws_restJson1UpdateRouteCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4184
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4189
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4185
4190
|
var _c;
|
|
4186
4191
|
return __generator(this, function (_d) {
|
|
4187
4192
|
switch (_d.label) {
|
|
@@ -4191,7 +4196,6 @@ var deserializeAws_restJson1UpdateRouteCommandError = function (output, context)
|
|
|
4191
4196
|
return [4, parseBody(output.body, context)];
|
|
4192
4197
|
case 1:
|
|
4193
4198
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4194
|
-
errorCode = "UnknownError";
|
|
4195
4199
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4196
4200
|
_b = errorCode;
|
|
4197
4201
|
switch (_b) {
|
|
@@ -4231,10 +4235,12 @@ var deserializeAws_restJson1UpdateRouteCommandError = function (output, context)
|
|
|
4231
4235
|
case 17: throw _d.sent();
|
|
4232
4236
|
case 18:
|
|
4233
4237
|
parsedBody = parsedOutput.body;
|
|
4238
|
+
$metadata = deserializeMetadata(output);
|
|
4239
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4234
4240
|
response = new __BaseException({
|
|
4235
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4241
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4236
4242
|
$fault: "client",
|
|
4237
|
-
$metadata:
|
|
4243
|
+
$metadata: $metadata,
|
|
4238
4244
|
});
|
|
4239
4245
|
throw __decorateServiceException(response, parsedBody);
|
|
4240
4246
|
}
|
|
@@ -4262,7 +4268,7 @@ export var deserializeAws_restJson1UpdateVirtualGatewayCommand = function (outpu
|
|
|
4262
4268
|
});
|
|
4263
4269
|
}); };
|
|
4264
4270
|
var deserializeAws_restJson1UpdateVirtualGatewayCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4265
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4271
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4266
4272
|
var _c;
|
|
4267
4273
|
return __generator(this, function (_d) {
|
|
4268
4274
|
switch (_d.label) {
|
|
@@ -4272,7 +4278,6 @@ var deserializeAws_restJson1UpdateVirtualGatewayCommandError = function (output,
|
|
|
4272
4278
|
return [4, parseBody(output.body, context)];
|
|
4273
4279
|
case 1:
|
|
4274
4280
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4275
|
-
errorCode = "UnknownError";
|
|
4276
4281
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4277
4282
|
_b = errorCode;
|
|
4278
4283
|
switch (_b) {
|
|
@@ -4312,10 +4317,12 @@ var deserializeAws_restJson1UpdateVirtualGatewayCommandError = function (output,
|
|
|
4312
4317
|
case 17: throw _d.sent();
|
|
4313
4318
|
case 18:
|
|
4314
4319
|
parsedBody = parsedOutput.body;
|
|
4320
|
+
$metadata = deserializeMetadata(output);
|
|
4321
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4315
4322
|
response = new __BaseException({
|
|
4316
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4323
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4317
4324
|
$fault: "client",
|
|
4318
|
-
$metadata:
|
|
4325
|
+
$metadata: $metadata,
|
|
4319
4326
|
});
|
|
4320
4327
|
throw __decorateServiceException(response, parsedBody);
|
|
4321
4328
|
}
|
|
@@ -4343,7 +4350,7 @@ export var deserializeAws_restJson1UpdateVirtualNodeCommand = function (output,
|
|
|
4343
4350
|
});
|
|
4344
4351
|
}); };
|
|
4345
4352
|
var deserializeAws_restJson1UpdateVirtualNodeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4346
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4353
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4347
4354
|
var _c;
|
|
4348
4355
|
return __generator(this, function (_d) {
|
|
4349
4356
|
switch (_d.label) {
|
|
@@ -4353,7 +4360,6 @@ var deserializeAws_restJson1UpdateVirtualNodeCommandError = function (output, co
|
|
|
4353
4360
|
return [4, parseBody(output.body, context)];
|
|
4354
4361
|
case 1:
|
|
4355
4362
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4356
|
-
errorCode = "UnknownError";
|
|
4357
4363
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4358
4364
|
_b = errorCode;
|
|
4359
4365
|
switch (_b) {
|
|
@@ -4393,10 +4399,12 @@ var deserializeAws_restJson1UpdateVirtualNodeCommandError = function (output, co
|
|
|
4393
4399
|
case 17: throw _d.sent();
|
|
4394
4400
|
case 18:
|
|
4395
4401
|
parsedBody = parsedOutput.body;
|
|
4402
|
+
$metadata = deserializeMetadata(output);
|
|
4403
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4396
4404
|
response = new __BaseException({
|
|
4397
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4405
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4398
4406
|
$fault: "client",
|
|
4399
|
-
$metadata:
|
|
4407
|
+
$metadata: $metadata,
|
|
4400
4408
|
});
|
|
4401
4409
|
throw __decorateServiceException(response, parsedBody);
|
|
4402
4410
|
}
|
|
@@ -4424,7 +4432,7 @@ export var deserializeAws_restJson1UpdateVirtualRouterCommand = function (output
|
|
|
4424
4432
|
});
|
|
4425
4433
|
}); };
|
|
4426
4434
|
var deserializeAws_restJson1UpdateVirtualRouterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4427
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4435
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4428
4436
|
var _c;
|
|
4429
4437
|
return __generator(this, function (_d) {
|
|
4430
4438
|
switch (_d.label) {
|
|
@@ -4434,7 +4442,6 @@ var deserializeAws_restJson1UpdateVirtualRouterCommandError = function (output,
|
|
|
4434
4442
|
return [4, parseBody(output.body, context)];
|
|
4435
4443
|
case 1:
|
|
4436
4444
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4437
|
-
errorCode = "UnknownError";
|
|
4438
4445
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4439
4446
|
_b = errorCode;
|
|
4440
4447
|
switch (_b) {
|
|
@@ -4474,10 +4481,12 @@ var deserializeAws_restJson1UpdateVirtualRouterCommandError = function (output,
|
|
|
4474
4481
|
case 17: throw _d.sent();
|
|
4475
4482
|
case 18:
|
|
4476
4483
|
parsedBody = parsedOutput.body;
|
|
4484
|
+
$metadata = deserializeMetadata(output);
|
|
4485
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4477
4486
|
response = new __BaseException({
|
|
4478
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4487
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4479
4488
|
$fault: "client",
|
|
4480
|
-
$metadata:
|
|
4489
|
+
$metadata: $metadata,
|
|
4481
4490
|
});
|
|
4482
4491
|
throw __decorateServiceException(response, parsedBody);
|
|
4483
4492
|
}
|
|
@@ -4505,7 +4514,7 @@ export var deserializeAws_restJson1UpdateVirtualServiceCommand = function (outpu
|
|
|
4505
4514
|
});
|
|
4506
4515
|
}); };
|
|
4507
4516
|
var deserializeAws_restJson1UpdateVirtualServiceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4508
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4517
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4509
4518
|
var _c;
|
|
4510
4519
|
return __generator(this, function (_d) {
|
|
4511
4520
|
switch (_d.label) {
|
|
@@ -4515,7 +4524,6 @@ var deserializeAws_restJson1UpdateVirtualServiceCommandError = function (output,
|
|
|
4515
4524
|
return [4, parseBody(output.body, context)];
|
|
4516
4525
|
case 1:
|
|
4517
4526
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4518
|
-
errorCode = "UnknownError";
|
|
4519
4527
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4520
4528
|
_b = errorCode;
|
|
4521
4529
|
switch (_b) {
|
|
@@ -4555,10 +4563,12 @@ var deserializeAws_restJson1UpdateVirtualServiceCommandError = function (output,
|
|
|
4555
4563
|
case 17: throw _d.sent();
|
|
4556
4564
|
case 18:
|
|
4557
4565
|
parsedBody = parsedOutput.body;
|
|
4566
|
+
$metadata = deserializeMetadata(output);
|
|
4567
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4558
4568
|
response = new __BaseException({
|
|
4559
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4569
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4560
4570
|
$fault: "client",
|
|
4561
|
-
$metadata:
|
|
4571
|
+
$metadata: $metadata,
|
|
4562
4572
|
});
|
|
4563
4573
|
throw __decorateServiceException(response, parsedBody);
|
|
4564
4574
|
}
|
|
@@ -4691,7 +4701,7 @@ var serializeAws_restJson1AccessLog = function (input, context) {
|
|
|
4691
4701
|
});
|
|
4692
4702
|
};
|
|
4693
4703
|
var serializeAws_restJson1AwsCloudMapInstanceAttribute = function (input, context) {
|
|
4694
|
-
return __assign(__assign({}, (input.key
|
|
4704
|
+
return __assign(__assign({}, (input.key != null && { key: input.key })), (input.value != null && { value: input.value }));
|
|
4695
4705
|
};
|
|
4696
4706
|
var serializeAws_restJson1AwsCloudMapInstanceAttributes = function (input, context) {
|
|
4697
4707
|
return input
|
|
@@ -4704,10 +4714,9 @@ var serializeAws_restJson1AwsCloudMapInstanceAttributes = function (input, conte
|
|
|
4704
4714
|
});
|
|
4705
4715
|
};
|
|
4706
4716
|
var serializeAws_restJson1AwsCloudMapServiceDiscovery = function (input, context) {
|
|
4707
|
-
return __assign(__assign(__assign(__assign({}, (input.attributes
|
|
4708
|
-
input.attributes !== null && {
|
|
4717
|
+
return __assign(__assign(__assign(__assign({}, (input.attributes != null && {
|
|
4709
4718
|
attributes: serializeAws_restJson1AwsCloudMapInstanceAttributes(input.attributes, context),
|
|
4710
|
-
})), (input.ipPreference
|
|
4719
|
+
})), (input.ipPreference != null && { ipPreference: input.ipPreference })), (input.namespaceName != null && { namespaceName: input.namespaceName })), (input.serviceName != null && { serviceName: input.serviceName }));
|
|
4711
4720
|
};
|
|
4712
4721
|
var serializeAws_restJson1Backend = function (input, context) {
|
|
4713
4722
|
return Backend.visit(input, {
|
|
@@ -4716,8 +4725,9 @@ var serializeAws_restJson1Backend = function (input, context) {
|
|
|
4716
4725
|
});
|
|
4717
4726
|
};
|
|
4718
4727
|
var serializeAws_restJson1BackendDefaults = function (input, context) {
|
|
4719
|
-
return __assign({}, (input.clientPolicy
|
|
4720
|
-
|
|
4728
|
+
return __assign({}, (input.clientPolicy != null && {
|
|
4729
|
+
clientPolicy: serializeAws_restJson1ClientPolicy(input.clientPolicy, context),
|
|
4730
|
+
}));
|
|
4721
4731
|
};
|
|
4722
4732
|
var serializeAws_restJson1Backends = function (input, context) {
|
|
4723
4733
|
return input
|
|
@@ -4740,16 +4750,12 @@ var serializeAws_restJson1CertificateAuthorityArns = function (input, context) {
|
|
|
4740
4750
|
});
|
|
4741
4751
|
};
|
|
4742
4752
|
var serializeAws_restJson1ClientPolicy = function (input, context) {
|
|
4743
|
-
return __assign({}, (input.tls
|
|
4744
|
-
input.tls !== null && { tls: serializeAws_restJson1ClientPolicyTls(input.tls, context) }));
|
|
4753
|
+
return __assign({}, (input.tls != null && { tls: serializeAws_restJson1ClientPolicyTls(input.tls, context) }));
|
|
4745
4754
|
};
|
|
4746
4755
|
var serializeAws_restJson1ClientPolicyTls = function (input, context) {
|
|
4747
|
-
return __assign(__assign(__assign(__assign({}, (input.certificate
|
|
4748
|
-
input.certificate !== null && {
|
|
4756
|
+
return __assign(__assign(__assign(__assign({}, (input.certificate != null && {
|
|
4749
4757
|
certificate: serializeAws_restJson1ClientTlsCertificate(input.certificate, context),
|
|
4750
|
-
})), (input.enforce
|
|
4751
|
-
input.ports !== null && { ports: serializeAws_restJson1PortSet(input.ports, context) })), (input.validation !== undefined &&
|
|
4752
|
-
input.validation !== null && {
|
|
4758
|
+
})), (input.enforce != null && { enforce: input.enforce })), (input.ports != null && { ports: serializeAws_restJson1PortSet(input.ports, context) })), (input.validation != null && {
|
|
4753
4759
|
validation: serializeAws_restJson1TlsValidationContext(input.validation, context),
|
|
4754
4760
|
}));
|
|
4755
4761
|
};
|
|
@@ -4761,62 +4767,49 @@ var serializeAws_restJson1ClientTlsCertificate = function (input, context) {
|
|
|
4761
4767
|
});
|
|
4762
4768
|
};
|
|
4763
4769
|
var serializeAws_restJson1DnsServiceDiscovery = function (input, context) {
|
|
4764
|
-
return __assign(__assign(__assign({}, (input.hostname
|
|
4770
|
+
return __assign(__assign(__assign({}, (input.hostname != null && { hostname: input.hostname })), (input.ipPreference != null && { ipPreference: input.ipPreference })), (input.responseType != null && { responseType: input.responseType }));
|
|
4765
4771
|
};
|
|
4766
4772
|
var serializeAws_restJson1Duration = function (input, context) {
|
|
4767
|
-
return __assign(__assign({}, (input.unit
|
|
4773
|
+
return __assign(__assign({}, (input.unit != null && { unit: input.unit })), (input.value != null && { value: input.value }));
|
|
4768
4774
|
};
|
|
4769
4775
|
var serializeAws_restJson1EgressFilter = function (input, context) {
|
|
4770
|
-
return __assign({}, (input.type
|
|
4776
|
+
return __assign({}, (input.type != null && { type: input.type }));
|
|
4771
4777
|
};
|
|
4772
4778
|
var serializeAws_restJson1FileAccessLog = function (input, context) {
|
|
4773
|
-
return __assign({}, (input.path
|
|
4779
|
+
return __assign({}, (input.path != null && { path: input.path }));
|
|
4774
4780
|
};
|
|
4775
4781
|
var serializeAws_restJson1GatewayRouteHostnameMatch = function (input, context) {
|
|
4776
|
-
return __assign(__assign({}, (input.exact
|
|
4782
|
+
return __assign(__assign({}, (input.exact != null && { exact: input.exact })), (input.suffix != null && { suffix: input.suffix }));
|
|
4777
4783
|
};
|
|
4778
4784
|
var serializeAws_restJson1GatewayRouteHostnameRewrite = function (input, context) {
|
|
4779
|
-
return __assign({}, (input.defaultTargetHostname
|
|
4780
|
-
input.defaultTargetHostname !== null && { defaultTargetHostname: input.defaultTargetHostname }));
|
|
4785
|
+
return __assign({}, (input.defaultTargetHostname != null && { defaultTargetHostname: input.defaultTargetHostname }));
|
|
4781
4786
|
};
|
|
4782
4787
|
var serializeAws_restJson1GatewayRouteSpec = function (input, context) {
|
|
4783
|
-
return __assign(__assign(__assign(__assign({}, (input.grpcRoute
|
|
4784
|
-
input.grpcRoute !== null && { grpcRoute: serializeAws_restJson1GrpcGatewayRoute(input.grpcRoute, context) })), (input.http2Route !== undefined &&
|
|
4785
|
-
input.http2Route !== null && { http2Route: serializeAws_restJson1HttpGatewayRoute(input.http2Route, context) })), (input.httpRoute !== undefined &&
|
|
4786
|
-
input.httpRoute !== null && { httpRoute: serializeAws_restJson1HttpGatewayRoute(input.httpRoute, context) })), (input.priority !== undefined && input.priority !== null && { priority: input.priority }));
|
|
4788
|
+
return __assign(__assign(__assign(__assign({}, (input.grpcRoute != null && { grpcRoute: serializeAws_restJson1GrpcGatewayRoute(input.grpcRoute, context) })), (input.http2Route != null && { http2Route: serializeAws_restJson1HttpGatewayRoute(input.http2Route, context) })), (input.httpRoute != null && { httpRoute: serializeAws_restJson1HttpGatewayRoute(input.httpRoute, context) })), (input.priority != null && { priority: input.priority }));
|
|
4787
4789
|
};
|
|
4788
4790
|
var serializeAws_restJson1GatewayRouteTarget = function (input, context) {
|
|
4789
|
-
return __assign({}, (input.virtualService
|
|
4790
|
-
input.virtualService !== null && {
|
|
4791
|
+
return __assign({}, (input.virtualService != null && {
|
|
4791
4792
|
virtualService: serializeAws_restJson1GatewayRouteVirtualService(input.virtualService, context),
|
|
4792
4793
|
}));
|
|
4793
4794
|
};
|
|
4794
4795
|
var serializeAws_restJson1GatewayRouteVirtualService = function (input, context) {
|
|
4795
|
-
return __assign({}, (input.virtualServiceName
|
|
4796
|
-
input.virtualServiceName !== null && { virtualServiceName: input.virtualServiceName }));
|
|
4796
|
+
return __assign({}, (input.virtualServiceName != null && { virtualServiceName: input.virtualServiceName }));
|
|
4797
4797
|
};
|
|
4798
4798
|
var serializeAws_restJson1GrpcGatewayRoute = function (input, context) {
|
|
4799
|
-
return __assign(__assign({}, (input.action
|
|
4800
|
-
input.action !== null && { action: serializeAws_restJson1GrpcGatewayRouteAction(input.action, context) })), (input.match !== undefined &&
|
|
4801
|
-
input.match !== null && { match: serializeAws_restJson1GrpcGatewayRouteMatch(input.match, context) }));
|
|
4799
|
+
return __assign(__assign({}, (input.action != null && { action: serializeAws_restJson1GrpcGatewayRouteAction(input.action, context) })), (input.match != null && { match: serializeAws_restJson1GrpcGatewayRouteMatch(input.match, context) }));
|
|
4802
4800
|
};
|
|
4803
4801
|
var serializeAws_restJson1GrpcGatewayRouteAction = function (input, context) {
|
|
4804
|
-
return __assign(__assign({}, (input.rewrite
|
|
4805
|
-
input.rewrite !== null && { rewrite: serializeAws_restJson1GrpcGatewayRouteRewrite(input.rewrite, context) })), (input.target !== undefined &&
|
|
4806
|
-
input.target !== null && { target: serializeAws_restJson1GatewayRouteTarget(input.target, context) }));
|
|
4802
|
+
return __assign(__assign({}, (input.rewrite != null && { rewrite: serializeAws_restJson1GrpcGatewayRouteRewrite(input.rewrite, context) })), (input.target != null && { target: serializeAws_restJson1GatewayRouteTarget(input.target, context) }));
|
|
4807
4803
|
};
|
|
4808
4804
|
var serializeAws_restJson1GrpcGatewayRouteMatch = function (input, context) {
|
|
4809
|
-
return __assign(__assign(__assign({}, (input.hostname
|
|
4810
|
-
input.hostname !== null && {
|
|
4805
|
+
return __assign(__assign(__assign({}, (input.hostname != null && {
|
|
4811
4806
|
hostname: serializeAws_restJson1GatewayRouteHostnameMatch(input.hostname, context),
|
|
4812
|
-
})), (input.metadata
|
|
4813
|
-
input.metadata !== null && {
|
|
4807
|
+
})), (input.metadata != null && {
|
|
4814
4808
|
metadata: serializeAws_restJson1GrpcGatewayRouteMetadataList(input.metadata, context),
|
|
4815
|
-
})), (input.serviceName
|
|
4809
|
+
})), (input.serviceName != null && { serviceName: input.serviceName }));
|
|
4816
4810
|
};
|
|
4817
4811
|
var serializeAws_restJson1GrpcGatewayRouteMetadata = function (input, context) {
|
|
4818
|
-
return __assign(__assign(__assign({}, (input.invert
|
|
4819
|
-
input.match !== null && { match: serializeAws_restJson1GrpcMetadataMatchMethod(input.match, context) })), (input.name !== undefined && input.name !== null && { name: input.name }));
|
|
4812
|
+
return __assign(__assign(__assign({}, (input.invert != null && { invert: input.invert })), (input.match != null && { match: serializeAws_restJson1GrpcMetadataMatchMethod(input.match, context) })), (input.name != null && { name: input.name }));
|
|
4820
4813
|
};
|
|
4821
4814
|
var serializeAws_restJson1GrpcGatewayRouteMetadataList = function (input, context) {
|
|
4822
4815
|
return input
|
|
@@ -4829,8 +4822,7 @@ var serializeAws_restJson1GrpcGatewayRouteMetadataList = function (input, contex
|
|
|
4829
4822
|
});
|
|
4830
4823
|
};
|
|
4831
4824
|
var serializeAws_restJson1GrpcGatewayRouteRewrite = function (input, context) {
|
|
4832
|
-
return __assign({}, (input.hostname
|
|
4833
|
-
input.hostname !== null && {
|
|
4825
|
+
return __assign({}, (input.hostname != null && {
|
|
4834
4826
|
hostname: serializeAws_restJson1GatewayRouteHostnameRewrite(input.hostname, context),
|
|
4835
4827
|
}));
|
|
4836
4828
|
};
|
|
@@ -4845,17 +4837,13 @@ var serializeAws_restJson1GrpcMetadataMatchMethod = function (input, context) {
|
|
|
4845
4837
|
});
|
|
4846
4838
|
};
|
|
4847
4839
|
var serializeAws_restJson1GrpcRetryPolicy = function (input, context) {
|
|
4848
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.grpcRetryEvents
|
|
4849
|
-
input.grpcRetryEvents !== null && {
|
|
4840
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.grpcRetryEvents != null && {
|
|
4850
4841
|
grpcRetryEvents: serializeAws_restJson1GrpcRetryPolicyEvents(input.grpcRetryEvents, context),
|
|
4851
|
-
})), (input.httpRetryEvents
|
|
4852
|
-
input.httpRetryEvents !== null && {
|
|
4842
|
+
})), (input.httpRetryEvents != null && {
|
|
4853
4843
|
httpRetryEvents: serializeAws_restJson1HttpRetryPolicyEvents(input.httpRetryEvents, context),
|
|
4854
|
-
})), (input.maxRetries
|
|
4855
|
-
input.perRetryTimeout !== null && {
|
|
4844
|
+
})), (input.maxRetries != null && { maxRetries: input.maxRetries })), (input.perRetryTimeout != null && {
|
|
4856
4845
|
perRetryTimeout: serializeAws_restJson1Duration(input.perRetryTimeout, context),
|
|
4857
|
-
})), (input.tcpRetryEvents
|
|
4858
|
-
input.tcpRetryEvents !== null && {
|
|
4846
|
+
})), (input.tcpRetryEvents != null && {
|
|
4859
4847
|
tcpRetryEvents: serializeAws_restJson1TcpRetryPolicyEvents(input.tcpRetryEvents, context),
|
|
4860
4848
|
}));
|
|
4861
4849
|
};
|
|
@@ -4870,25 +4858,20 @@ var serializeAws_restJson1GrpcRetryPolicyEvents = function (input, context) {
|
|
|
4870
4858
|
});
|
|
4871
4859
|
};
|
|
4872
4860
|
var serializeAws_restJson1GrpcRoute = function (input, context) {
|
|
4873
|
-
return __assign(__assign(__assign(__assign({}, (input.action
|
|
4874
|
-
|
|
4875
|
-
|
|
4876
|
-
input.retryPolicy !== null && { retryPolicy: serializeAws_restJson1GrpcRetryPolicy(input.retryPolicy, context) })), (input.timeout !== undefined &&
|
|
4877
|
-
input.timeout !== null && { timeout: serializeAws_restJson1GrpcTimeout(input.timeout, context) }));
|
|
4861
|
+
return __assign(__assign(__assign(__assign({}, (input.action != null && { action: serializeAws_restJson1GrpcRouteAction(input.action, context) })), (input.match != null && { match: serializeAws_restJson1GrpcRouteMatch(input.match, context) })), (input.retryPolicy != null && {
|
|
4862
|
+
retryPolicy: serializeAws_restJson1GrpcRetryPolicy(input.retryPolicy, context),
|
|
4863
|
+
})), (input.timeout != null && { timeout: serializeAws_restJson1GrpcTimeout(input.timeout, context) }));
|
|
4878
4864
|
};
|
|
4879
4865
|
var serializeAws_restJson1GrpcRouteAction = function (input, context) {
|
|
4880
|
-
return __assign({}, (input.weightedTargets
|
|
4881
|
-
input.weightedTargets !== null && {
|
|
4866
|
+
return __assign({}, (input.weightedTargets != null && {
|
|
4882
4867
|
weightedTargets: serializeAws_restJson1WeightedTargets(input.weightedTargets, context),
|
|
4883
4868
|
}));
|
|
4884
4869
|
};
|
|
4885
4870
|
var serializeAws_restJson1GrpcRouteMatch = function (input, context) {
|
|
4886
|
-
return __assign(__assign(__assign({}, (input.metadata
|
|
4887
|
-
input.metadata !== null && { metadata: serializeAws_restJson1GrpcRouteMetadataList(input.metadata, context) })), (input.methodName !== undefined && input.methodName !== null && { methodName: input.methodName })), (input.serviceName !== undefined && input.serviceName !== null && { serviceName: input.serviceName }));
|
|
4871
|
+
return __assign(__assign(__assign({}, (input.metadata != null && { metadata: serializeAws_restJson1GrpcRouteMetadataList(input.metadata, context) })), (input.methodName != null && { methodName: input.methodName })), (input.serviceName != null && { serviceName: input.serviceName }));
|
|
4888
4872
|
};
|
|
4889
4873
|
var serializeAws_restJson1GrpcRouteMetadata = function (input, context) {
|
|
4890
|
-
return __assign(__assign(__assign({}, (input.invert
|
|
4891
|
-
input.match !== null && { match: serializeAws_restJson1GrpcRouteMetadataMatchMethod(input.match, context) })), (input.name !== undefined && input.name !== null && { name: input.name }));
|
|
4874
|
+
return __assign(__assign(__assign({}, (input.invert != null && { invert: input.invert })), (input.match != null && { match: serializeAws_restJson1GrpcRouteMetadataMatchMethod(input.match, context) })), (input.name != null && { name: input.name }));
|
|
4892
4875
|
};
|
|
4893
4876
|
var serializeAws_restJson1GrpcRouteMetadataList = function (input, context) {
|
|
4894
4877
|
return input
|
|
@@ -4911,9 +4894,7 @@ var serializeAws_restJson1GrpcRouteMetadataMatchMethod = function (input, contex
|
|
|
4911
4894
|
});
|
|
4912
4895
|
};
|
|
4913
4896
|
var serializeAws_restJson1GrpcTimeout = function (input, context) {
|
|
4914
|
-
return __assign(__assign({}, (input.idle
|
|
4915
|
-
input.idle !== null && { idle: serializeAws_restJson1Duration(input.idle, context) })), (input.perRequest !== undefined &&
|
|
4916
|
-
input.perRequest !== null && { perRequest: serializeAws_restJson1Duration(input.perRequest, context) }));
|
|
4897
|
+
return __assign(__assign({}, (input.idle != null && { idle: serializeAws_restJson1Duration(input.idle, context) })), (input.perRequest != null && { perRequest: serializeAws_restJson1Duration(input.perRequest, context) }));
|
|
4917
4898
|
};
|
|
4918
4899
|
var serializeAws_restJson1HeaderMatchMethod = function (input, context) {
|
|
4919
4900
|
return HeaderMatchMethod.visit(input, {
|
|
@@ -4926,24 +4907,16 @@ var serializeAws_restJson1HeaderMatchMethod = function (input, context) {
|
|
|
4926
4907
|
});
|
|
4927
4908
|
};
|
|
4928
4909
|
var serializeAws_restJson1HealthCheckPolicy = function (input, context) {
|
|
4929
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.healthyThreshold
|
|
4930
|
-
input.healthyThreshold !== null && { healthyThreshold: input.healthyThreshold })), (input.intervalMillis !== undefined &&
|
|
4931
|
-
input.intervalMillis !== null && { intervalMillis: input.intervalMillis })), (input.path !== undefined && input.path !== null && { path: input.path })), (input.port !== undefined && input.port !== null && { port: input.port })), (input.protocol !== undefined && input.protocol !== null && { protocol: input.protocol })), (input.timeoutMillis !== undefined && input.timeoutMillis !== null && { timeoutMillis: input.timeoutMillis })), (input.unhealthyThreshold !== undefined &&
|
|
4932
|
-
input.unhealthyThreshold !== null && { unhealthyThreshold: input.unhealthyThreshold }));
|
|
4910
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.healthyThreshold != null && { healthyThreshold: input.healthyThreshold })), (input.intervalMillis != null && { intervalMillis: input.intervalMillis })), (input.path != null && { path: input.path })), (input.port != null && { port: input.port })), (input.protocol != null && { protocol: input.protocol })), (input.timeoutMillis != null && { timeoutMillis: input.timeoutMillis })), (input.unhealthyThreshold != null && { unhealthyThreshold: input.unhealthyThreshold }));
|
|
4933
4911
|
};
|
|
4934
4912
|
var serializeAws_restJson1HttpGatewayRoute = function (input, context) {
|
|
4935
|
-
return __assign(__assign({}, (input.action
|
|
4936
|
-
input.action !== null && { action: serializeAws_restJson1HttpGatewayRouteAction(input.action, context) })), (input.match !== undefined &&
|
|
4937
|
-
input.match !== null && { match: serializeAws_restJson1HttpGatewayRouteMatch(input.match, context) }));
|
|
4913
|
+
return __assign(__assign({}, (input.action != null && { action: serializeAws_restJson1HttpGatewayRouteAction(input.action, context) })), (input.match != null && { match: serializeAws_restJson1HttpGatewayRouteMatch(input.match, context) }));
|
|
4938
4914
|
};
|
|
4939
4915
|
var serializeAws_restJson1HttpGatewayRouteAction = function (input, context) {
|
|
4940
|
-
return __assign(__assign({}, (input.rewrite
|
|
4941
|
-
input.rewrite !== null && { rewrite: serializeAws_restJson1HttpGatewayRouteRewrite(input.rewrite, context) })), (input.target !== undefined &&
|
|
4942
|
-
input.target !== null && { target: serializeAws_restJson1GatewayRouteTarget(input.target, context) }));
|
|
4916
|
+
return __assign(__assign({}, (input.rewrite != null && { rewrite: serializeAws_restJson1HttpGatewayRouteRewrite(input.rewrite, context) })), (input.target != null && { target: serializeAws_restJson1GatewayRouteTarget(input.target, context) }));
|
|
4943
4917
|
};
|
|
4944
4918
|
var serializeAws_restJson1HttpGatewayRouteHeader = function (input, context) {
|
|
4945
|
-
return __assign(__assign(__assign({}, (input.invert
|
|
4946
|
-
input.match !== null && { match: serializeAws_restJson1HeaderMatchMethod(input.match, context) })), (input.name !== undefined && input.name !== null && { name: input.name }));
|
|
4919
|
+
return __assign(__assign(__assign({}, (input.invert != null && { invert: input.invert })), (input.match != null && { match: serializeAws_restJson1HeaderMatchMethod(input.match, context) })), (input.name != null && { name: input.name }));
|
|
4947
4920
|
};
|
|
4948
4921
|
var serializeAws_restJson1HttpGatewayRouteHeaders = function (input, context) {
|
|
4949
4922
|
return input
|
|
@@ -4956,36 +4929,28 @@ var serializeAws_restJson1HttpGatewayRouteHeaders = function (input, context) {
|
|
|
4956
4929
|
});
|
|
4957
4930
|
};
|
|
4958
4931
|
var serializeAws_restJson1HttpGatewayRouteMatch = function (input, context) {
|
|
4959
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.headers
|
|
4960
|
-
input.headers !== null && { headers: serializeAws_restJson1HttpGatewayRouteHeaders(input.headers, context) })), (input.hostname !== undefined &&
|
|
4961
|
-
input.hostname !== null && {
|
|
4932
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.headers != null && { headers: serializeAws_restJson1HttpGatewayRouteHeaders(input.headers, context) })), (input.hostname != null && {
|
|
4962
4933
|
hostname: serializeAws_restJson1GatewayRouteHostnameMatch(input.hostname, context),
|
|
4963
|
-
})), (input.method
|
|
4964
|
-
input.path !== null && { path: serializeAws_restJson1HttpPathMatch(input.path, context) })), (input.prefix !== undefined && input.prefix !== null && { prefix: input.prefix })), (input.queryParameters !== undefined &&
|
|
4965
|
-
input.queryParameters !== null && {
|
|
4934
|
+
})), (input.method != null && { method: input.method })), (input.path != null && { path: serializeAws_restJson1HttpPathMatch(input.path, context) })), (input.prefix != null && { prefix: input.prefix })), (input.queryParameters != null && {
|
|
4966
4935
|
queryParameters: serializeAws_restJson1HttpQueryParameters(input.queryParameters, context),
|
|
4967
4936
|
}));
|
|
4968
4937
|
};
|
|
4969
4938
|
var serializeAws_restJson1HttpGatewayRoutePathRewrite = function (input, context) {
|
|
4970
|
-
return __assign({}, (input.exact
|
|
4939
|
+
return __assign({}, (input.exact != null && { exact: input.exact }));
|
|
4971
4940
|
};
|
|
4972
4941
|
var serializeAws_restJson1HttpGatewayRoutePrefixRewrite = function (input, context) {
|
|
4973
|
-
return __assign(__assign({}, (input.defaultPrefix
|
|
4942
|
+
return __assign(__assign({}, (input.defaultPrefix != null && { defaultPrefix: input.defaultPrefix })), (input.value != null && { value: input.value }));
|
|
4974
4943
|
};
|
|
4975
4944
|
var serializeAws_restJson1HttpGatewayRouteRewrite = function (input, context) {
|
|
4976
|
-
return __assign(__assign(__assign({}, (input.hostname
|
|
4977
|
-
input.hostname !== null && {
|
|
4945
|
+
return __assign(__assign(__assign({}, (input.hostname != null && {
|
|
4978
4946
|
hostname: serializeAws_restJson1GatewayRouteHostnameRewrite(input.hostname, context),
|
|
4979
|
-
})), (input.path
|
|
4980
|
-
input.path !== null && { path: serializeAws_restJson1HttpGatewayRoutePathRewrite(input.path, context) })), (input.prefix !== undefined &&
|
|
4981
|
-
input.prefix !== null && { prefix: serializeAws_restJson1HttpGatewayRoutePrefixRewrite(input.prefix, context) }));
|
|
4947
|
+
})), (input.path != null && { path: serializeAws_restJson1HttpGatewayRoutePathRewrite(input.path, context) })), (input.prefix != null && { prefix: serializeAws_restJson1HttpGatewayRoutePrefixRewrite(input.prefix, context) }));
|
|
4982
4948
|
};
|
|
4983
4949
|
var serializeAws_restJson1HttpPathMatch = function (input, context) {
|
|
4984
|
-
return __assign(__assign({}, (input.exact
|
|
4950
|
+
return __assign(__assign({}, (input.exact != null && { exact: input.exact })), (input.regex != null && { regex: input.regex }));
|
|
4985
4951
|
};
|
|
4986
4952
|
var serializeAws_restJson1HttpQueryParameter = function (input, context) {
|
|
4987
|
-
return __assign(__assign({}, (input.match
|
|
4988
|
-
input.match !== null && { match: serializeAws_restJson1QueryParameterMatch(input.match, context) })), (input.name !== undefined && input.name !== null && { name: input.name }));
|
|
4953
|
+
return __assign(__assign({}, (input.match != null && { match: serializeAws_restJson1QueryParameterMatch(input.match, context) })), (input.name != null && { name: input.name }));
|
|
4989
4954
|
};
|
|
4990
4955
|
var serializeAws_restJson1HttpQueryParameters = function (input, context) {
|
|
4991
4956
|
return input
|
|
@@ -4998,14 +4963,11 @@ var serializeAws_restJson1HttpQueryParameters = function (input, context) {
|
|
|
4998
4963
|
});
|
|
4999
4964
|
};
|
|
5000
4965
|
var serializeAws_restJson1HttpRetryPolicy = function (input, context) {
|
|
5001
|
-
return __assign(__assign(__assign(__assign({}, (input.httpRetryEvents
|
|
5002
|
-
input.httpRetryEvents !== null && {
|
|
4966
|
+
return __assign(__assign(__assign(__assign({}, (input.httpRetryEvents != null && {
|
|
5003
4967
|
httpRetryEvents: serializeAws_restJson1HttpRetryPolicyEvents(input.httpRetryEvents, context),
|
|
5004
|
-
})), (input.maxRetries
|
|
5005
|
-
input.perRetryTimeout !== null && {
|
|
4968
|
+
})), (input.maxRetries != null && { maxRetries: input.maxRetries })), (input.perRetryTimeout != null && {
|
|
5006
4969
|
perRetryTimeout: serializeAws_restJson1Duration(input.perRetryTimeout, context),
|
|
5007
|
-
})), (input.tcpRetryEvents
|
|
5008
|
-
input.tcpRetryEvents !== null && {
|
|
4970
|
+
})), (input.tcpRetryEvents != null && {
|
|
5009
4971
|
tcpRetryEvents: serializeAws_restJson1TcpRetryPolicyEvents(input.tcpRetryEvents, context),
|
|
5010
4972
|
}));
|
|
5011
4973
|
};
|
|
@@ -5020,21 +4982,17 @@ var serializeAws_restJson1HttpRetryPolicyEvents = function (input, context) {
|
|
|
5020
4982
|
});
|
|
5021
4983
|
};
|
|
5022
4984
|
var serializeAws_restJson1HttpRoute = function (input, context) {
|
|
5023
|
-
return __assign(__assign(__assign(__assign({}, (input.action
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
input.retryPolicy !== null && { retryPolicy: serializeAws_restJson1HttpRetryPolicy(input.retryPolicy, context) })), (input.timeout !== undefined &&
|
|
5027
|
-
input.timeout !== null && { timeout: serializeAws_restJson1HttpTimeout(input.timeout, context) }));
|
|
4985
|
+
return __assign(__assign(__assign(__assign({}, (input.action != null && { action: serializeAws_restJson1HttpRouteAction(input.action, context) })), (input.match != null && { match: serializeAws_restJson1HttpRouteMatch(input.match, context) })), (input.retryPolicy != null && {
|
|
4986
|
+
retryPolicy: serializeAws_restJson1HttpRetryPolicy(input.retryPolicy, context),
|
|
4987
|
+
})), (input.timeout != null && { timeout: serializeAws_restJson1HttpTimeout(input.timeout, context) }));
|
|
5028
4988
|
};
|
|
5029
4989
|
var serializeAws_restJson1HttpRouteAction = function (input, context) {
|
|
5030
|
-
return __assign({}, (input.weightedTargets
|
|
5031
|
-
input.weightedTargets !== null && {
|
|
4990
|
+
return __assign({}, (input.weightedTargets != null && {
|
|
5032
4991
|
weightedTargets: serializeAws_restJson1WeightedTargets(input.weightedTargets, context),
|
|
5033
4992
|
}));
|
|
5034
4993
|
};
|
|
5035
4994
|
var serializeAws_restJson1HttpRouteHeader = function (input, context) {
|
|
5036
|
-
return __assign(__assign(__assign({}, (input.invert
|
|
5037
|
-
input.match !== null && { match: serializeAws_restJson1HeaderMatchMethod(input.match, context) })), (input.name !== undefined && input.name !== null && { name: input.name }));
|
|
4995
|
+
return __assign(__assign(__assign({}, (input.invert != null && { invert: input.invert })), (input.match != null && { match: serializeAws_restJson1HeaderMatchMethod(input.match, context) })), (input.name != null && { name: input.name }));
|
|
5038
4996
|
};
|
|
5039
4997
|
var serializeAws_restJson1HttpRouteHeaders = function (input, context) {
|
|
5040
4998
|
return input
|
|
@@ -5047,32 +5005,21 @@ var serializeAws_restJson1HttpRouteHeaders = function (input, context) {
|
|
|
5047
5005
|
});
|
|
5048
5006
|
};
|
|
5049
5007
|
var serializeAws_restJson1HttpRouteMatch = function (input, context) {
|
|
5050
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.headers
|
|
5051
|
-
input.headers !== null && { headers: serializeAws_restJson1HttpRouteHeaders(input.headers, context) })), (input.method !== undefined && input.method !== null && { method: input.method })), (input.path !== undefined &&
|
|
5052
|
-
input.path !== null && { path: serializeAws_restJson1HttpPathMatch(input.path, context) })), (input.prefix !== undefined && input.prefix !== null && { prefix: input.prefix })), (input.queryParameters !== undefined &&
|
|
5053
|
-
input.queryParameters !== null && {
|
|
5008
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.headers != null && { headers: serializeAws_restJson1HttpRouteHeaders(input.headers, context) })), (input.method != null && { method: input.method })), (input.path != null && { path: serializeAws_restJson1HttpPathMatch(input.path, context) })), (input.prefix != null && { prefix: input.prefix })), (input.queryParameters != null && {
|
|
5054
5009
|
queryParameters: serializeAws_restJson1HttpQueryParameters(input.queryParameters, context),
|
|
5055
|
-
})), (input.scheme
|
|
5010
|
+
})), (input.scheme != null && { scheme: input.scheme }));
|
|
5056
5011
|
};
|
|
5057
5012
|
var serializeAws_restJson1HttpTimeout = function (input, context) {
|
|
5058
|
-
return __assign(__assign({}, (input.idle
|
|
5059
|
-
input.idle !== null && { idle: serializeAws_restJson1Duration(input.idle, context) })), (input.perRequest !== undefined &&
|
|
5060
|
-
input.perRequest !== null && { perRequest: serializeAws_restJson1Duration(input.perRequest, context) }));
|
|
5013
|
+
return __assign(__assign({}, (input.idle != null && { idle: serializeAws_restJson1Duration(input.idle, context) })), (input.perRequest != null && { perRequest: serializeAws_restJson1Duration(input.perRequest, context) }));
|
|
5061
5014
|
};
|
|
5062
5015
|
var serializeAws_restJson1Listener = function (input, context) {
|
|
5063
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.connectionPool
|
|
5064
|
-
input.connectionPool !== null && {
|
|
5016
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.connectionPool != null && {
|
|
5065
5017
|
connectionPool: serializeAws_restJson1VirtualNodeConnectionPool(input.connectionPool, context),
|
|
5066
|
-
})), (input.healthCheck
|
|
5067
|
-
input.healthCheck !== null && {
|
|
5018
|
+
})), (input.healthCheck != null && {
|
|
5068
5019
|
healthCheck: serializeAws_restJson1HealthCheckPolicy(input.healthCheck, context),
|
|
5069
|
-
})), (input.outlierDetection
|
|
5070
|
-
input.outlierDetection !== null && {
|
|
5020
|
+
})), (input.outlierDetection != null && {
|
|
5071
5021
|
outlierDetection: serializeAws_restJson1OutlierDetection(input.outlierDetection, context),
|
|
5072
|
-
})), (input.portMapping
|
|
5073
|
-
input.portMapping !== null && { portMapping: serializeAws_restJson1PortMapping(input.portMapping, context) })), (input.timeout !== undefined &&
|
|
5074
|
-
input.timeout !== null && { timeout: serializeAws_restJson1ListenerTimeout(input.timeout, context) })), (input.tls !== undefined &&
|
|
5075
|
-
input.tls !== null && { tls: serializeAws_restJson1ListenerTls(input.tls, context) }));
|
|
5022
|
+
})), (input.portMapping != null && { portMapping: serializeAws_restJson1PortMapping(input.portMapping, context) })), (input.timeout != null && { timeout: serializeAws_restJson1ListenerTimeout(input.timeout, context) })), (input.tls != null && { tls: serializeAws_restJson1ListenerTls(input.tls, context) }));
|
|
5076
5023
|
};
|
|
5077
5024
|
var serializeAws_restJson1Listeners = function (input, context) {
|
|
5078
5025
|
return input
|
|
@@ -5094,17 +5041,14 @@ var serializeAws_restJson1ListenerTimeout = function (input, context) {
|
|
|
5094
5041
|
});
|
|
5095
5042
|
};
|
|
5096
5043
|
var serializeAws_restJson1ListenerTls = function (input, context) {
|
|
5097
|
-
return __assign(__assign(__assign({}, (input.certificate
|
|
5098
|
-
input.certificate !== null && {
|
|
5044
|
+
return __assign(__assign(__assign({}, (input.certificate != null && {
|
|
5099
5045
|
certificate: serializeAws_restJson1ListenerTlsCertificate(input.certificate, context),
|
|
5100
|
-
})), (input.mode
|
|
5101
|
-
input.validation !== null && {
|
|
5046
|
+
})), (input.mode != null && { mode: input.mode })), (input.validation != null && {
|
|
5102
5047
|
validation: serializeAws_restJson1ListenerTlsValidationContext(input.validation, context),
|
|
5103
5048
|
}));
|
|
5104
5049
|
};
|
|
5105
5050
|
var serializeAws_restJson1ListenerTlsAcmCertificate = function (input, context) {
|
|
5106
|
-
return __assign({}, (input.certificateArn
|
|
5107
|
-
input.certificateArn !== null && { certificateArn: input.certificateArn }));
|
|
5051
|
+
return __assign({}, (input.certificateArn != null && { certificateArn: input.certificateArn }));
|
|
5108
5052
|
};
|
|
5109
5053
|
var serializeAws_restJson1ListenerTlsCertificate = function (input, context) {
|
|
5110
5054
|
return ListenerTlsCertificate.visit(input, {
|
|
@@ -5115,18 +5059,17 @@ var serializeAws_restJson1ListenerTlsCertificate = function (input, context) {
|
|
|
5115
5059
|
});
|
|
5116
5060
|
};
|
|
5117
5061
|
var serializeAws_restJson1ListenerTlsFileCertificate = function (input, context) {
|
|
5118
|
-
return __assign(__assign({}, (input.certificateChain
|
|
5119
|
-
input.certificateChain !== null && { certificateChain: input.certificateChain })), (input.privateKey !== undefined && input.privateKey !== null && { privateKey: input.privateKey }));
|
|
5062
|
+
return __assign(__assign({}, (input.certificateChain != null && { certificateChain: input.certificateChain })), (input.privateKey != null && { privateKey: input.privateKey }));
|
|
5120
5063
|
};
|
|
5121
5064
|
var serializeAws_restJson1ListenerTlsSdsCertificate = function (input, context) {
|
|
5122
|
-
return __assign({}, (input.secretName
|
|
5065
|
+
return __assign({}, (input.secretName != null && { secretName: input.secretName }));
|
|
5123
5066
|
};
|
|
5124
5067
|
var serializeAws_restJson1ListenerTlsValidationContext = function (input, context) {
|
|
5125
|
-
return __assign(__assign({}, (input.subjectAlternativeNames
|
|
5126
|
-
input.subjectAlternativeNames !== null && {
|
|
5068
|
+
return __assign(__assign({}, (input.subjectAlternativeNames != null && {
|
|
5127
5069
|
subjectAlternativeNames: serializeAws_restJson1SubjectAlternativeNames(input.subjectAlternativeNames, context),
|
|
5128
|
-
})), (input.trust
|
|
5129
|
-
|
|
5070
|
+
})), (input.trust != null && {
|
|
5071
|
+
trust: serializeAws_restJson1ListenerTlsValidationContextTrust(input.trust, context),
|
|
5072
|
+
}));
|
|
5130
5073
|
};
|
|
5131
5074
|
var serializeAws_restJson1ListenerTlsValidationContextTrust = function (input, context) {
|
|
5132
5075
|
return ListenerTlsValidationContextTrust.visit(input, {
|
|
@@ -5136,33 +5079,28 @@ var serializeAws_restJson1ListenerTlsValidationContextTrust = function (input, c
|
|
|
5136
5079
|
});
|
|
5137
5080
|
};
|
|
5138
5081
|
var serializeAws_restJson1Logging = function (input, context) {
|
|
5139
|
-
return __assign({}, (input.accessLog
|
|
5140
|
-
input.accessLog !== null && { accessLog: serializeAws_restJson1AccessLog(input.accessLog, context) }));
|
|
5082
|
+
return __assign({}, (input.accessLog != null && { accessLog: serializeAws_restJson1AccessLog(input.accessLog, context) }));
|
|
5141
5083
|
};
|
|
5142
5084
|
var serializeAws_restJson1MatchRange = function (input, context) {
|
|
5143
|
-
return __assign(__assign({}, (input.end
|
|
5085
|
+
return __assign(__assign({}, (input.end != null && { end: input.end })), (input.start != null && { start: input.start }));
|
|
5144
5086
|
};
|
|
5145
5087
|
var serializeAws_restJson1MeshServiceDiscovery = function (input, context) {
|
|
5146
|
-
return __assign({}, (input.ipPreference
|
|
5088
|
+
return __assign({}, (input.ipPreference != null && { ipPreference: input.ipPreference }));
|
|
5147
5089
|
};
|
|
5148
5090
|
var serializeAws_restJson1MeshSpec = function (input, context) {
|
|
5149
|
-
return __assign(__assign({}, (input.egressFilter
|
|
5150
|
-
|
|
5151
|
-
|
|
5091
|
+
return __assign(__assign({}, (input.egressFilter != null && {
|
|
5092
|
+
egressFilter: serializeAws_restJson1EgressFilter(input.egressFilter, context),
|
|
5093
|
+
})), (input.serviceDiscovery != null && {
|
|
5152
5094
|
serviceDiscovery: serializeAws_restJson1MeshServiceDiscovery(input.serviceDiscovery, context),
|
|
5153
5095
|
}));
|
|
5154
5096
|
};
|
|
5155
5097
|
var serializeAws_restJson1OutlierDetection = function (input, context) {
|
|
5156
|
-
return __assign(__assign(__assign(__assign({}, (input.baseEjectionDuration
|
|
5157
|
-
input.baseEjectionDuration !== null && {
|
|
5098
|
+
return __assign(__assign(__assign(__assign({}, (input.baseEjectionDuration != null && {
|
|
5158
5099
|
baseEjectionDuration: serializeAws_restJson1Duration(input.baseEjectionDuration, context),
|
|
5159
|
-
})), (input.interval
|
|
5160
|
-
input.interval !== null && { interval: serializeAws_restJson1Duration(input.interval, context) })), (input.maxEjectionPercent !== undefined &&
|
|
5161
|
-
input.maxEjectionPercent !== null && { maxEjectionPercent: input.maxEjectionPercent })), (input.maxServerErrors !== undefined &&
|
|
5162
|
-
input.maxServerErrors !== null && { maxServerErrors: input.maxServerErrors }));
|
|
5100
|
+
})), (input.interval != null && { interval: serializeAws_restJson1Duration(input.interval, context) })), (input.maxEjectionPercent != null && { maxEjectionPercent: input.maxEjectionPercent })), (input.maxServerErrors != null && { maxServerErrors: input.maxServerErrors }));
|
|
5163
5101
|
};
|
|
5164
5102
|
var serializeAws_restJson1PortMapping = function (input, context) {
|
|
5165
|
-
return __assign(__assign({}, (input.port
|
|
5103
|
+
return __assign(__assign({}, (input.port != null && { port: input.port })), (input.protocol != null && { protocol: input.protocol }));
|
|
5166
5104
|
};
|
|
5167
5105
|
var serializeAws_restJson1PortSet = function (input, context) {
|
|
5168
5106
|
return input
|
|
@@ -5175,14 +5113,10 @@ var serializeAws_restJson1PortSet = function (input, context) {
|
|
|
5175
5113
|
});
|
|
5176
5114
|
};
|
|
5177
5115
|
var serializeAws_restJson1QueryParameterMatch = function (input, context) {
|
|
5178
|
-
return __assign({}, (input.exact
|
|
5116
|
+
return __assign({}, (input.exact != null && { exact: input.exact }));
|
|
5179
5117
|
};
|
|
5180
5118
|
var serializeAws_restJson1RouteSpec = function (input, context) {
|
|
5181
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.grpcRoute
|
|
5182
|
-
input.grpcRoute !== null && { grpcRoute: serializeAws_restJson1GrpcRoute(input.grpcRoute, context) })), (input.http2Route !== undefined &&
|
|
5183
|
-
input.http2Route !== null && { http2Route: serializeAws_restJson1HttpRoute(input.http2Route, context) })), (input.httpRoute !== undefined &&
|
|
5184
|
-
input.httpRoute !== null && { httpRoute: serializeAws_restJson1HttpRoute(input.httpRoute, context) })), (input.priority !== undefined && input.priority !== null && { priority: input.priority })), (input.tcpRoute !== undefined &&
|
|
5185
|
-
input.tcpRoute !== null && { tcpRoute: serializeAws_restJson1TcpRoute(input.tcpRoute, context) }));
|
|
5119
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.grpcRoute != null && { grpcRoute: serializeAws_restJson1GrpcRoute(input.grpcRoute, context) })), (input.http2Route != null && { http2Route: serializeAws_restJson1HttpRoute(input.http2Route, context) })), (input.httpRoute != null && { httpRoute: serializeAws_restJson1HttpRoute(input.httpRoute, context) })), (input.priority != null && { priority: input.priority })), (input.tcpRoute != null && { tcpRoute: serializeAws_restJson1TcpRoute(input.tcpRoute, context) }));
|
|
5186
5120
|
};
|
|
5187
5121
|
var serializeAws_restJson1ServiceDiscovery = function (input, context) {
|
|
5188
5122
|
return ServiceDiscovery.visit(input, {
|
|
@@ -5202,12 +5136,10 @@ var serializeAws_restJson1SubjectAlternativeNameList = function (input, context)
|
|
|
5202
5136
|
});
|
|
5203
5137
|
};
|
|
5204
5138
|
var serializeAws_restJson1SubjectAlternativeNameMatchers = function (input, context) {
|
|
5205
|
-
return __assign({}, (input.exact
|
|
5206
|
-
input.exact !== null && { exact: serializeAws_restJson1SubjectAlternativeNameList(input.exact, context) }));
|
|
5139
|
+
return __assign({}, (input.exact != null && { exact: serializeAws_restJson1SubjectAlternativeNameList(input.exact, context) }));
|
|
5207
5140
|
};
|
|
5208
5141
|
var serializeAws_restJson1SubjectAlternativeNames = function (input, context) {
|
|
5209
|
-
return __assign({}, (input.match
|
|
5210
|
-
input.match !== null && { match: serializeAws_restJson1SubjectAlternativeNameMatchers(input.match, context) }));
|
|
5142
|
+
return __assign({}, (input.match != null && { match: serializeAws_restJson1SubjectAlternativeNameMatchers(input.match, context) }));
|
|
5211
5143
|
};
|
|
5212
5144
|
var serializeAws_restJson1TagKeyList = function (input, context) {
|
|
5213
5145
|
return input
|
|
@@ -5230,7 +5162,7 @@ var serializeAws_restJson1TagList = function (input, context) {
|
|
|
5230
5162
|
});
|
|
5231
5163
|
};
|
|
5232
5164
|
var serializeAws_restJson1TagRef = function (input, context) {
|
|
5233
|
-
return __assign(__assign({}, (input.key
|
|
5165
|
+
return __assign(__assign({}, (input.key != null && { key: input.key })), (input.value != null && { value: input.value }));
|
|
5234
5166
|
};
|
|
5235
5167
|
var serializeAws_restJson1TcpRetryPolicyEvents = function (input, context) {
|
|
5236
5168
|
return input
|
|
@@ -5243,39 +5175,31 @@ var serializeAws_restJson1TcpRetryPolicyEvents = function (input, context) {
|
|
|
5243
5175
|
});
|
|
5244
5176
|
};
|
|
5245
5177
|
var serializeAws_restJson1TcpRoute = function (input, context) {
|
|
5246
|
-
return __assign(__assign({}, (input.action
|
|
5247
|
-
input.action !== null && { action: serializeAws_restJson1TcpRouteAction(input.action, context) })), (input.timeout !== undefined &&
|
|
5248
|
-
input.timeout !== null && { timeout: serializeAws_restJson1TcpTimeout(input.timeout, context) }));
|
|
5178
|
+
return __assign(__assign({}, (input.action != null && { action: serializeAws_restJson1TcpRouteAction(input.action, context) })), (input.timeout != null && { timeout: serializeAws_restJson1TcpTimeout(input.timeout, context) }));
|
|
5249
5179
|
};
|
|
5250
5180
|
var serializeAws_restJson1TcpRouteAction = function (input, context) {
|
|
5251
|
-
return __assign({}, (input.weightedTargets
|
|
5252
|
-
input.weightedTargets !== null && {
|
|
5181
|
+
return __assign({}, (input.weightedTargets != null && {
|
|
5253
5182
|
weightedTargets: serializeAws_restJson1WeightedTargets(input.weightedTargets, context),
|
|
5254
5183
|
}));
|
|
5255
5184
|
};
|
|
5256
5185
|
var serializeAws_restJson1TcpTimeout = function (input, context) {
|
|
5257
|
-
return __assign({}, (input.idle
|
|
5258
|
-
input.idle !== null && { idle: serializeAws_restJson1Duration(input.idle, context) }));
|
|
5186
|
+
return __assign({}, (input.idle != null && { idle: serializeAws_restJson1Duration(input.idle, context) }));
|
|
5259
5187
|
};
|
|
5260
5188
|
var serializeAws_restJson1TlsValidationContext = function (input, context) {
|
|
5261
|
-
return __assign(__assign({}, (input.subjectAlternativeNames
|
|
5262
|
-
input.subjectAlternativeNames !== null && {
|
|
5189
|
+
return __assign(__assign({}, (input.subjectAlternativeNames != null && {
|
|
5263
5190
|
subjectAlternativeNames: serializeAws_restJson1SubjectAlternativeNames(input.subjectAlternativeNames, context),
|
|
5264
|
-
})), (input.trust
|
|
5265
|
-
input.trust !== null && { trust: serializeAws_restJson1TlsValidationContextTrust(input.trust, context) }));
|
|
5191
|
+
})), (input.trust != null && { trust: serializeAws_restJson1TlsValidationContextTrust(input.trust, context) }));
|
|
5266
5192
|
};
|
|
5267
5193
|
var serializeAws_restJson1TlsValidationContextAcmTrust = function (input, context) {
|
|
5268
|
-
return __assign({}, (input.certificateAuthorityArns
|
|
5269
|
-
input.certificateAuthorityArns !== null && {
|
|
5194
|
+
return __assign({}, (input.certificateAuthorityArns != null && {
|
|
5270
5195
|
certificateAuthorityArns: serializeAws_restJson1CertificateAuthorityArns(input.certificateAuthorityArns, context),
|
|
5271
5196
|
}));
|
|
5272
5197
|
};
|
|
5273
5198
|
var serializeAws_restJson1TlsValidationContextFileTrust = function (input, context) {
|
|
5274
|
-
return __assign({}, (input.certificateChain
|
|
5275
|
-
input.certificateChain !== null && { certificateChain: input.certificateChain }));
|
|
5199
|
+
return __assign({}, (input.certificateChain != null && { certificateChain: input.certificateChain }));
|
|
5276
5200
|
};
|
|
5277
5201
|
var serializeAws_restJson1TlsValidationContextSdsTrust = function (input, context) {
|
|
5278
|
-
return __assign({}, (input.secretName
|
|
5202
|
+
return __assign({}, (input.secretName != null && { secretName: input.secretName }));
|
|
5279
5203
|
};
|
|
5280
5204
|
var serializeAws_restJson1TlsValidationContextTrust = function (input, context) {
|
|
5281
5205
|
return TlsValidationContextTrust.visit(input, {
|
|
@@ -5292,8 +5216,7 @@ var serializeAws_restJson1VirtualGatewayAccessLog = function (input, context) {
|
|
|
5292
5216
|
});
|
|
5293
5217
|
};
|
|
5294
5218
|
var serializeAws_restJson1VirtualGatewayBackendDefaults = function (input, context) {
|
|
5295
|
-
return __assign({}, (input.clientPolicy
|
|
5296
|
-
input.clientPolicy !== null && {
|
|
5219
|
+
return __assign({}, (input.clientPolicy != null && {
|
|
5297
5220
|
clientPolicy: serializeAws_restJson1VirtualGatewayClientPolicy(input.clientPolicy, context),
|
|
5298
5221
|
}));
|
|
5299
5222
|
};
|
|
@@ -5308,16 +5231,12 @@ var serializeAws_restJson1VirtualGatewayCertificateAuthorityArns = function (inp
|
|
|
5308
5231
|
});
|
|
5309
5232
|
};
|
|
5310
5233
|
var serializeAws_restJson1VirtualGatewayClientPolicy = function (input, context) {
|
|
5311
|
-
return __assign({}, (input.tls
|
|
5312
|
-
input.tls !== null && { tls: serializeAws_restJson1VirtualGatewayClientPolicyTls(input.tls, context) }));
|
|
5234
|
+
return __assign({}, (input.tls != null && { tls: serializeAws_restJson1VirtualGatewayClientPolicyTls(input.tls, context) }));
|
|
5313
5235
|
};
|
|
5314
5236
|
var serializeAws_restJson1VirtualGatewayClientPolicyTls = function (input, context) {
|
|
5315
|
-
return __assign(__assign(__assign(__assign({}, (input.certificate
|
|
5316
|
-
input.certificate !== null && {
|
|
5237
|
+
return __assign(__assign(__assign(__assign({}, (input.certificate != null && {
|
|
5317
5238
|
certificate: serializeAws_restJson1VirtualGatewayClientTlsCertificate(input.certificate, context),
|
|
5318
|
-
})), (input.enforce
|
|
5319
|
-
input.ports !== null && { ports: serializeAws_restJson1PortSet(input.ports, context) })), (input.validation !== undefined &&
|
|
5320
|
-
input.validation !== null && {
|
|
5239
|
+
})), (input.enforce != null && { enforce: input.enforce })), (input.ports != null && { ports: serializeAws_restJson1PortSet(input.ports, context) })), (input.validation != null && {
|
|
5321
5240
|
validation: serializeAws_restJson1VirtualGatewayTlsValidationContext(input.validation, context),
|
|
5322
5241
|
}));
|
|
5323
5242
|
};
|
|
@@ -5337,37 +5256,28 @@ var serializeAws_restJson1VirtualGatewayConnectionPool = function (input, contex
|
|
|
5337
5256
|
});
|
|
5338
5257
|
};
|
|
5339
5258
|
var serializeAws_restJson1VirtualGatewayFileAccessLog = function (input, context) {
|
|
5340
|
-
return __assign({}, (input.path
|
|
5259
|
+
return __assign({}, (input.path != null && { path: input.path }));
|
|
5341
5260
|
};
|
|
5342
5261
|
var serializeAws_restJson1VirtualGatewayGrpcConnectionPool = function (input, context) {
|
|
5343
|
-
return __assign({}, (input.maxRequests
|
|
5262
|
+
return __assign({}, (input.maxRequests != null && { maxRequests: input.maxRequests }));
|
|
5344
5263
|
};
|
|
5345
5264
|
var serializeAws_restJson1VirtualGatewayHealthCheckPolicy = function (input, context) {
|
|
5346
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.healthyThreshold
|
|
5347
|
-
input.healthyThreshold !== null && { healthyThreshold: input.healthyThreshold })), (input.intervalMillis !== undefined &&
|
|
5348
|
-
input.intervalMillis !== null && { intervalMillis: input.intervalMillis })), (input.path !== undefined && input.path !== null && { path: input.path })), (input.port !== undefined && input.port !== null && { port: input.port })), (input.protocol !== undefined && input.protocol !== null && { protocol: input.protocol })), (input.timeoutMillis !== undefined && input.timeoutMillis !== null && { timeoutMillis: input.timeoutMillis })), (input.unhealthyThreshold !== undefined &&
|
|
5349
|
-
input.unhealthyThreshold !== null && { unhealthyThreshold: input.unhealthyThreshold }));
|
|
5265
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.healthyThreshold != null && { healthyThreshold: input.healthyThreshold })), (input.intervalMillis != null && { intervalMillis: input.intervalMillis })), (input.path != null && { path: input.path })), (input.port != null && { port: input.port })), (input.protocol != null && { protocol: input.protocol })), (input.timeoutMillis != null && { timeoutMillis: input.timeoutMillis })), (input.unhealthyThreshold != null && { unhealthyThreshold: input.unhealthyThreshold }));
|
|
5350
5266
|
};
|
|
5351
5267
|
var serializeAws_restJson1VirtualGatewayHttp2ConnectionPool = function (input, context) {
|
|
5352
|
-
return __assign({}, (input.maxRequests
|
|
5268
|
+
return __assign({}, (input.maxRequests != null && { maxRequests: input.maxRequests }));
|
|
5353
5269
|
};
|
|
5354
5270
|
var serializeAws_restJson1VirtualGatewayHttpConnectionPool = function (input, context) {
|
|
5355
|
-
return __assign(__assign({}, (input.maxConnections
|
|
5356
|
-
input.maxConnections !== null && { maxConnections: input.maxConnections })), (input.maxPendingRequests !== undefined &&
|
|
5357
|
-
input.maxPendingRequests !== null && { maxPendingRequests: input.maxPendingRequests }));
|
|
5271
|
+
return __assign(__assign({}, (input.maxConnections != null && { maxConnections: input.maxConnections })), (input.maxPendingRequests != null && { maxPendingRequests: input.maxPendingRequests }));
|
|
5358
5272
|
};
|
|
5359
5273
|
var serializeAws_restJson1VirtualGatewayListener = function (input, context) {
|
|
5360
|
-
return __assign(__assign(__assign(__assign({}, (input.connectionPool
|
|
5361
|
-
input.connectionPool !== null && {
|
|
5274
|
+
return __assign(__assign(__assign(__assign({}, (input.connectionPool != null && {
|
|
5362
5275
|
connectionPool: serializeAws_restJson1VirtualGatewayConnectionPool(input.connectionPool, context),
|
|
5363
|
-
})), (input.healthCheck
|
|
5364
|
-
input.healthCheck !== null && {
|
|
5276
|
+
})), (input.healthCheck != null && {
|
|
5365
5277
|
healthCheck: serializeAws_restJson1VirtualGatewayHealthCheckPolicy(input.healthCheck, context),
|
|
5366
|
-
})), (input.portMapping
|
|
5367
|
-
input.portMapping !== null && {
|
|
5278
|
+
})), (input.portMapping != null && {
|
|
5368
5279
|
portMapping: serializeAws_restJson1VirtualGatewayPortMapping(input.portMapping, context),
|
|
5369
|
-
})), (input.tls
|
|
5370
|
-
input.tls !== null && { tls: serializeAws_restJson1VirtualGatewayListenerTls(input.tls, context) }));
|
|
5280
|
+
})), (input.tls != null && { tls: serializeAws_restJson1VirtualGatewayListenerTls(input.tls, context) }));
|
|
5371
5281
|
};
|
|
5372
5282
|
var serializeAws_restJson1VirtualGatewayListeners = function (input, context) {
|
|
5373
5283
|
return input
|
|
@@ -5380,17 +5290,14 @@ var serializeAws_restJson1VirtualGatewayListeners = function (input, context) {
|
|
|
5380
5290
|
});
|
|
5381
5291
|
};
|
|
5382
5292
|
var serializeAws_restJson1VirtualGatewayListenerTls = function (input, context) {
|
|
5383
|
-
return __assign(__assign(__assign({}, (input.certificate
|
|
5384
|
-
input.certificate !== null && {
|
|
5293
|
+
return __assign(__assign(__assign({}, (input.certificate != null && {
|
|
5385
5294
|
certificate: serializeAws_restJson1VirtualGatewayListenerTlsCertificate(input.certificate, context),
|
|
5386
|
-
})), (input.mode
|
|
5387
|
-
input.validation !== null && {
|
|
5295
|
+
})), (input.mode != null && { mode: input.mode })), (input.validation != null && {
|
|
5388
5296
|
validation: serializeAws_restJson1VirtualGatewayListenerTlsValidationContext(input.validation, context),
|
|
5389
5297
|
}));
|
|
5390
5298
|
};
|
|
5391
5299
|
var serializeAws_restJson1VirtualGatewayListenerTlsAcmCertificate = function (input, context) {
|
|
5392
|
-
return __assign({}, (input.certificateArn
|
|
5393
|
-
input.certificateArn !== null && { certificateArn: input.certificateArn }));
|
|
5300
|
+
return __assign({}, (input.certificateArn != null && { certificateArn: input.certificateArn }));
|
|
5394
5301
|
};
|
|
5395
5302
|
var serializeAws_restJson1VirtualGatewayListenerTlsCertificate = function (input, context) {
|
|
5396
5303
|
return VirtualGatewayListenerTlsCertificate.visit(input, {
|
|
@@ -5401,18 +5308,15 @@ var serializeAws_restJson1VirtualGatewayListenerTlsCertificate = function (input
|
|
|
5401
5308
|
});
|
|
5402
5309
|
};
|
|
5403
5310
|
var serializeAws_restJson1VirtualGatewayListenerTlsFileCertificate = function (input, context) {
|
|
5404
|
-
return __assign(__assign({}, (input.certificateChain
|
|
5405
|
-
input.certificateChain !== null && { certificateChain: input.certificateChain })), (input.privateKey !== undefined && input.privateKey !== null && { privateKey: input.privateKey }));
|
|
5311
|
+
return __assign(__assign({}, (input.certificateChain != null && { certificateChain: input.certificateChain })), (input.privateKey != null && { privateKey: input.privateKey }));
|
|
5406
5312
|
};
|
|
5407
5313
|
var serializeAws_restJson1VirtualGatewayListenerTlsSdsCertificate = function (input, context) {
|
|
5408
|
-
return __assign({}, (input.secretName
|
|
5314
|
+
return __assign({}, (input.secretName != null && { secretName: input.secretName }));
|
|
5409
5315
|
};
|
|
5410
5316
|
var serializeAws_restJson1VirtualGatewayListenerTlsValidationContext = function (input, context) {
|
|
5411
|
-
return __assign(__assign({}, (input.subjectAlternativeNames
|
|
5412
|
-
input.subjectAlternativeNames !== null && {
|
|
5317
|
+
return __assign(__assign({}, (input.subjectAlternativeNames != null && {
|
|
5413
5318
|
subjectAlternativeNames: serializeAws_restJson1SubjectAlternativeNames(input.subjectAlternativeNames, context),
|
|
5414
|
-
})), (input.trust
|
|
5415
|
-
input.trust !== null && {
|
|
5319
|
+
})), (input.trust != null && {
|
|
5416
5320
|
trust: serializeAws_restJson1VirtualGatewayListenerTlsValidationContextTrust(input.trust, context),
|
|
5417
5321
|
}));
|
|
5418
5322
|
};
|
|
@@ -5424,45 +5328,37 @@ var serializeAws_restJson1VirtualGatewayListenerTlsValidationContextTrust = func
|
|
|
5424
5328
|
});
|
|
5425
5329
|
};
|
|
5426
5330
|
var serializeAws_restJson1VirtualGatewayLogging = function (input, context) {
|
|
5427
|
-
return __assign({}, (input.accessLog
|
|
5428
|
-
input.accessLog !== null && {
|
|
5331
|
+
return __assign({}, (input.accessLog != null && {
|
|
5429
5332
|
accessLog: serializeAws_restJson1VirtualGatewayAccessLog(input.accessLog, context),
|
|
5430
5333
|
}));
|
|
5431
5334
|
};
|
|
5432
5335
|
var serializeAws_restJson1VirtualGatewayPortMapping = function (input, context) {
|
|
5433
|
-
return __assign(__assign({}, (input.port
|
|
5336
|
+
return __assign(__assign({}, (input.port != null && { port: input.port })), (input.protocol != null && { protocol: input.protocol }));
|
|
5434
5337
|
};
|
|
5435
5338
|
var serializeAws_restJson1VirtualGatewaySpec = function (input, context) {
|
|
5436
|
-
return __assign(__assign(__assign({}, (input.backendDefaults
|
|
5437
|
-
input.backendDefaults !== null && {
|
|
5339
|
+
return __assign(__assign(__assign({}, (input.backendDefaults != null && {
|
|
5438
5340
|
backendDefaults: serializeAws_restJson1VirtualGatewayBackendDefaults(input.backendDefaults, context),
|
|
5439
|
-
})), (input.listeners
|
|
5440
|
-
input.listeners !== null && {
|
|
5341
|
+
})), (input.listeners != null && {
|
|
5441
5342
|
listeners: serializeAws_restJson1VirtualGatewayListeners(input.listeners, context),
|
|
5442
|
-
})), (input.logging
|
|
5443
|
-
input.logging !== null && { logging: serializeAws_restJson1VirtualGatewayLogging(input.logging, context) }));
|
|
5343
|
+
})), (input.logging != null && { logging: serializeAws_restJson1VirtualGatewayLogging(input.logging, context) }));
|
|
5444
5344
|
};
|
|
5445
5345
|
var serializeAws_restJson1VirtualGatewayTlsValidationContext = function (input, context) {
|
|
5446
|
-
return __assign(__assign({}, (input.subjectAlternativeNames
|
|
5447
|
-
input.subjectAlternativeNames !== null && {
|
|
5346
|
+
return __assign(__assign({}, (input.subjectAlternativeNames != null && {
|
|
5448
5347
|
subjectAlternativeNames: serializeAws_restJson1SubjectAlternativeNames(input.subjectAlternativeNames, context),
|
|
5449
|
-
})), (input.trust
|
|
5450
|
-
input.trust !== null && {
|
|
5348
|
+
})), (input.trust != null && {
|
|
5451
5349
|
trust: serializeAws_restJson1VirtualGatewayTlsValidationContextTrust(input.trust, context),
|
|
5452
5350
|
}));
|
|
5453
5351
|
};
|
|
5454
5352
|
var serializeAws_restJson1VirtualGatewayTlsValidationContextAcmTrust = function (input, context) {
|
|
5455
|
-
return __assign({}, (input.certificateAuthorityArns
|
|
5456
|
-
input.certificateAuthorityArns !== null && {
|
|
5353
|
+
return __assign({}, (input.certificateAuthorityArns != null && {
|
|
5457
5354
|
certificateAuthorityArns: serializeAws_restJson1VirtualGatewayCertificateAuthorityArns(input.certificateAuthorityArns, context),
|
|
5458
5355
|
}));
|
|
5459
5356
|
};
|
|
5460
5357
|
var serializeAws_restJson1VirtualGatewayTlsValidationContextFileTrust = function (input, context) {
|
|
5461
|
-
return __assign({}, (input.certificateChain
|
|
5462
|
-
input.certificateChain !== null && { certificateChain: input.certificateChain }));
|
|
5358
|
+
return __assign({}, (input.certificateChain != null && { certificateChain: input.certificateChain }));
|
|
5463
5359
|
};
|
|
5464
5360
|
var serializeAws_restJson1VirtualGatewayTlsValidationContextSdsTrust = function (input, context) {
|
|
5465
|
-
return __assign({}, (input.secretName
|
|
5361
|
+
return __assign({}, (input.secretName != null && { secretName: input.secretName }));
|
|
5466
5362
|
};
|
|
5467
5363
|
var serializeAws_restJson1VirtualGatewayTlsValidationContextTrust = function (input, context) {
|
|
5468
5364
|
return VirtualGatewayTlsValidationContextTrust.visit(input, {
|
|
@@ -5482,39 +5378,29 @@ var serializeAws_restJson1VirtualNodeConnectionPool = function (input, context)
|
|
|
5482
5378
|
});
|
|
5483
5379
|
};
|
|
5484
5380
|
var serializeAws_restJson1VirtualNodeGrpcConnectionPool = function (input, context) {
|
|
5485
|
-
return __assign({}, (input.maxRequests
|
|
5381
|
+
return __assign({}, (input.maxRequests != null && { maxRequests: input.maxRequests }));
|
|
5486
5382
|
};
|
|
5487
5383
|
var serializeAws_restJson1VirtualNodeHttp2ConnectionPool = function (input, context) {
|
|
5488
|
-
return __assign({}, (input.maxRequests
|
|
5384
|
+
return __assign({}, (input.maxRequests != null && { maxRequests: input.maxRequests }));
|
|
5489
5385
|
};
|
|
5490
5386
|
var serializeAws_restJson1VirtualNodeHttpConnectionPool = function (input, context) {
|
|
5491
|
-
return __assign(__assign({}, (input.maxConnections
|
|
5492
|
-
input.maxConnections !== null && { maxConnections: input.maxConnections })), (input.maxPendingRequests !== undefined &&
|
|
5493
|
-
input.maxPendingRequests !== null && { maxPendingRequests: input.maxPendingRequests }));
|
|
5387
|
+
return __assign(__assign({}, (input.maxConnections != null && { maxConnections: input.maxConnections })), (input.maxPendingRequests != null && { maxPendingRequests: input.maxPendingRequests }));
|
|
5494
5388
|
};
|
|
5495
5389
|
var serializeAws_restJson1VirtualNodeServiceProvider = function (input, context) {
|
|
5496
|
-
return __assign({}, (input.virtualNodeName
|
|
5497
|
-
input.virtualNodeName !== null && { virtualNodeName: input.virtualNodeName }));
|
|
5390
|
+
return __assign({}, (input.virtualNodeName != null && { virtualNodeName: input.virtualNodeName }));
|
|
5498
5391
|
};
|
|
5499
5392
|
var serializeAws_restJson1VirtualNodeSpec = function (input, context) {
|
|
5500
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.backendDefaults
|
|
5501
|
-
input.backendDefaults !== null && {
|
|
5393
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.backendDefaults != null && {
|
|
5502
5394
|
backendDefaults: serializeAws_restJson1BackendDefaults(input.backendDefaults, context),
|
|
5503
|
-
})), (input.backends
|
|
5504
|
-
input.backends !== null && { backends: serializeAws_restJson1Backends(input.backends, context) })), (input.listeners !== undefined &&
|
|
5505
|
-
input.listeners !== null && { listeners: serializeAws_restJson1Listeners(input.listeners, context) })), (input.logging !== undefined &&
|
|
5506
|
-
input.logging !== null && { logging: serializeAws_restJson1Logging(input.logging, context) })), (input.serviceDiscovery !== undefined &&
|
|
5507
|
-
input.serviceDiscovery !== null && {
|
|
5395
|
+
})), (input.backends != null && { backends: serializeAws_restJson1Backends(input.backends, context) })), (input.listeners != null && { listeners: serializeAws_restJson1Listeners(input.listeners, context) })), (input.logging != null && { logging: serializeAws_restJson1Logging(input.logging, context) })), (input.serviceDiscovery != null && {
|
|
5508
5396
|
serviceDiscovery: serializeAws_restJson1ServiceDiscovery(input.serviceDiscovery, context),
|
|
5509
5397
|
}));
|
|
5510
5398
|
};
|
|
5511
5399
|
var serializeAws_restJson1VirtualNodeTcpConnectionPool = function (input, context) {
|
|
5512
|
-
return __assign({}, (input.maxConnections
|
|
5513
|
-
input.maxConnections !== null && { maxConnections: input.maxConnections }));
|
|
5400
|
+
return __assign({}, (input.maxConnections != null && { maxConnections: input.maxConnections }));
|
|
5514
5401
|
};
|
|
5515
5402
|
var serializeAws_restJson1VirtualRouterListener = function (input, context) {
|
|
5516
|
-
return __assign({}, (input.portMapping
|
|
5517
|
-
input.portMapping !== null && { portMapping: serializeAws_restJson1PortMapping(input.portMapping, context) }));
|
|
5403
|
+
return __assign({}, (input.portMapping != null && { portMapping: serializeAws_restJson1PortMapping(input.portMapping, context) }));
|
|
5518
5404
|
};
|
|
5519
5405
|
var serializeAws_restJson1VirtualRouterListeners = function (input, context) {
|
|
5520
5406
|
return input
|
|
@@ -5527,19 +5413,17 @@ var serializeAws_restJson1VirtualRouterListeners = function (input, context) {
|
|
|
5527
5413
|
});
|
|
5528
5414
|
};
|
|
5529
5415
|
var serializeAws_restJson1VirtualRouterServiceProvider = function (input, context) {
|
|
5530
|
-
return __assign({}, (input.virtualRouterName
|
|
5531
|
-
input.virtualRouterName !== null && { virtualRouterName: input.virtualRouterName }));
|
|
5416
|
+
return __assign({}, (input.virtualRouterName != null && { virtualRouterName: input.virtualRouterName }));
|
|
5532
5417
|
};
|
|
5533
5418
|
var serializeAws_restJson1VirtualRouterSpec = function (input, context) {
|
|
5534
|
-
return __assign({}, (input.listeners
|
|
5535
|
-
input.listeners !== null && {
|
|
5419
|
+
return __assign({}, (input.listeners != null && {
|
|
5536
5420
|
listeners: serializeAws_restJson1VirtualRouterListeners(input.listeners, context),
|
|
5537
5421
|
}));
|
|
5538
5422
|
};
|
|
5539
5423
|
var serializeAws_restJson1VirtualServiceBackend = function (input, context) {
|
|
5540
|
-
return __assign(__assign({}, (input.clientPolicy
|
|
5541
|
-
|
|
5542
|
-
|
|
5424
|
+
return __assign(__assign({}, (input.clientPolicy != null && {
|
|
5425
|
+
clientPolicy: serializeAws_restJson1ClientPolicy(input.clientPolicy, context),
|
|
5426
|
+
})), (input.virtualServiceName != null && { virtualServiceName: input.virtualServiceName }));
|
|
5543
5427
|
};
|
|
5544
5428
|
var serializeAws_restJson1VirtualServiceProvider = function (input, context) {
|
|
5545
5429
|
return VirtualServiceProvider.visit(input, {
|
|
@@ -5549,11 +5433,10 @@ var serializeAws_restJson1VirtualServiceProvider = function (input, context) {
|
|
|
5549
5433
|
});
|
|
5550
5434
|
};
|
|
5551
5435
|
var serializeAws_restJson1VirtualServiceSpec = function (input, context) {
|
|
5552
|
-
return __assign({}, (input.provider
|
|
5553
|
-
input.provider !== null && { provider: serializeAws_restJson1VirtualServiceProvider(input.provider, context) }));
|
|
5436
|
+
return __assign({}, (input.provider != null && { provider: serializeAws_restJson1VirtualServiceProvider(input.provider, context) }));
|
|
5554
5437
|
};
|
|
5555
5438
|
var serializeAws_restJson1WeightedTarget = function (input, context) {
|
|
5556
|
-
return __assign(__assign({}, (input.virtualNode
|
|
5439
|
+
return __assign(__assign({}, (input.virtualNode != null && { virtualNode: input.virtualNode })), (input.weight != null && { weight: input.weight }));
|
|
5557
5440
|
};
|
|
5558
5441
|
var serializeAws_restJson1WeightedTargets = function (input, context) {
|
|
5559
5442
|
return input
|
|
@@ -5592,7 +5475,7 @@ var deserializeAws_restJson1AwsCloudMapInstanceAttributes = function (output, co
|
|
|
5592
5475
|
};
|
|
5593
5476
|
var deserializeAws_restJson1AwsCloudMapServiceDiscovery = function (output, context) {
|
|
5594
5477
|
return {
|
|
5595
|
-
attributes: output.attributes
|
|
5478
|
+
attributes: output.attributes != null
|
|
5596
5479
|
? deserializeAws_restJson1AwsCloudMapInstanceAttributes(output.attributes, context)
|
|
5597
5480
|
: undefined,
|
|
5598
5481
|
ipPreference: __expectString(output.ipPreference),
|
|
@@ -5610,9 +5493,7 @@ var deserializeAws_restJson1Backend = function (output, context) {
|
|
|
5610
5493
|
};
|
|
5611
5494
|
var deserializeAws_restJson1BackendDefaults = function (output, context) {
|
|
5612
5495
|
return {
|
|
5613
|
-
clientPolicy: output.clientPolicy
|
|
5614
|
-
? deserializeAws_restJson1ClientPolicy(output.clientPolicy, context)
|
|
5615
|
-
: undefined,
|
|
5496
|
+
clientPolicy: output.clientPolicy != null ? deserializeAws_restJson1ClientPolicy(output.clientPolicy, context) : undefined,
|
|
5616
5497
|
};
|
|
5617
5498
|
};
|
|
5618
5499
|
var deserializeAws_restJson1Backends = function (output, context) {
|
|
@@ -5639,23 +5520,17 @@ var deserializeAws_restJson1CertificateAuthorityArns = function (output, context
|
|
|
5639
5520
|
};
|
|
5640
5521
|
var deserializeAws_restJson1ClientPolicy = function (output, context) {
|
|
5641
5522
|
return {
|
|
5642
|
-
tls: output.tls
|
|
5643
|
-
? deserializeAws_restJson1ClientPolicyTls(output.tls, context)
|
|
5644
|
-
: undefined,
|
|
5523
|
+
tls: output.tls != null ? deserializeAws_restJson1ClientPolicyTls(output.tls, context) : undefined,
|
|
5645
5524
|
};
|
|
5646
5525
|
};
|
|
5647
5526
|
var deserializeAws_restJson1ClientPolicyTls = function (output, context) {
|
|
5648
5527
|
return {
|
|
5649
|
-
certificate: output.certificate
|
|
5528
|
+
certificate: output.certificate != null
|
|
5650
5529
|
? deserializeAws_restJson1ClientTlsCertificate(__expectUnion(output.certificate), context)
|
|
5651
5530
|
: undefined,
|
|
5652
5531
|
enforce: __expectBoolean(output.enforce),
|
|
5653
|
-
ports: output.ports
|
|
5654
|
-
|
|
5655
|
-
: undefined,
|
|
5656
|
-
validation: output.validation !== undefined && output.validation !== null
|
|
5657
|
-
? deserializeAws_restJson1TlsValidationContext(output.validation, context)
|
|
5658
|
-
: undefined,
|
|
5532
|
+
ports: output.ports != null ? deserializeAws_restJson1PortSet(output.ports, context) : undefined,
|
|
5533
|
+
validation: output.validation != null ? deserializeAws_restJson1TlsValidationContext(output.validation, context) : undefined,
|
|
5659
5534
|
};
|
|
5660
5535
|
};
|
|
5661
5536
|
var deserializeAws_restJson1ClientTlsCertificate = function (output, context) {
|
|
@@ -5698,15 +5573,9 @@ var deserializeAws_restJson1GatewayRouteData = function (output, context) {
|
|
|
5698
5573
|
return {
|
|
5699
5574
|
gatewayRouteName: __expectString(output.gatewayRouteName),
|
|
5700
5575
|
meshName: __expectString(output.meshName),
|
|
5701
|
-
metadata: output.metadata
|
|
5702
|
-
|
|
5703
|
-
|
|
5704
|
-
spec: output.spec !== undefined && output.spec !== null
|
|
5705
|
-
? deserializeAws_restJson1GatewayRouteSpec(output.spec, context)
|
|
5706
|
-
: undefined,
|
|
5707
|
-
status: output.status !== undefined && output.status !== null
|
|
5708
|
-
? deserializeAws_restJson1GatewayRouteStatus(output.status, context)
|
|
5709
|
-
: undefined,
|
|
5576
|
+
metadata: output.metadata != null ? deserializeAws_restJson1ResourceMetadata(output.metadata, context) : undefined,
|
|
5577
|
+
spec: output.spec != null ? deserializeAws_restJson1GatewayRouteSpec(output.spec, context) : undefined,
|
|
5578
|
+
status: output.status != null ? deserializeAws_restJson1GatewayRouteStatus(output.status, context) : undefined,
|
|
5710
5579
|
virtualGatewayName: __expectString(output.virtualGatewayName),
|
|
5711
5580
|
};
|
|
5712
5581
|
};
|
|
@@ -5735,11 +5604,9 @@ var deserializeAws_restJson1GatewayRouteList = function (output, context) {
|
|
|
5735
5604
|
var deserializeAws_restJson1GatewayRouteRef = function (output, context) {
|
|
5736
5605
|
return {
|
|
5737
5606
|
arn: __expectString(output.arn),
|
|
5738
|
-
createdAt: output.createdAt
|
|
5739
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
|
|
5740
|
-
: undefined,
|
|
5607
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
5741
5608
|
gatewayRouteName: __expectString(output.gatewayRouteName),
|
|
5742
|
-
lastUpdatedAt: output.lastUpdatedAt
|
|
5609
|
+
lastUpdatedAt: output.lastUpdatedAt != null
|
|
5743
5610
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
|
|
5744
5611
|
: undefined,
|
|
5745
5612
|
meshName: __expectString(output.meshName),
|
|
@@ -5751,15 +5618,9 @@ var deserializeAws_restJson1GatewayRouteRef = function (output, context) {
|
|
|
5751
5618
|
};
|
|
5752
5619
|
var deserializeAws_restJson1GatewayRouteSpec = function (output, context) {
|
|
5753
5620
|
return {
|
|
5754
|
-
grpcRoute: output.grpcRoute
|
|
5755
|
-
|
|
5756
|
-
|
|
5757
|
-
http2Route: output.http2Route !== undefined && output.http2Route !== null
|
|
5758
|
-
? deserializeAws_restJson1HttpGatewayRoute(output.http2Route, context)
|
|
5759
|
-
: undefined,
|
|
5760
|
-
httpRoute: output.httpRoute !== undefined && output.httpRoute !== null
|
|
5761
|
-
? deserializeAws_restJson1HttpGatewayRoute(output.httpRoute, context)
|
|
5762
|
-
: undefined,
|
|
5621
|
+
grpcRoute: output.grpcRoute != null ? deserializeAws_restJson1GrpcGatewayRoute(output.grpcRoute, context) : undefined,
|
|
5622
|
+
http2Route: output.http2Route != null ? deserializeAws_restJson1HttpGatewayRoute(output.http2Route, context) : undefined,
|
|
5623
|
+
httpRoute: output.httpRoute != null ? deserializeAws_restJson1HttpGatewayRoute(output.httpRoute, context) : undefined,
|
|
5763
5624
|
priority: __expectInt32(output.priority),
|
|
5764
5625
|
};
|
|
5765
5626
|
};
|
|
@@ -5770,7 +5631,7 @@ var deserializeAws_restJson1GatewayRouteStatus = function (output, context) {
|
|
|
5770
5631
|
};
|
|
5771
5632
|
var deserializeAws_restJson1GatewayRouteTarget = function (output, context) {
|
|
5772
5633
|
return {
|
|
5773
|
-
virtualService: output.virtualService
|
|
5634
|
+
virtualService: output.virtualService != null
|
|
5774
5635
|
? deserializeAws_restJson1GatewayRouteVirtualService(output.virtualService, context)
|
|
5775
5636
|
: undefined,
|
|
5776
5637
|
};
|
|
@@ -5782,30 +5643,20 @@ var deserializeAws_restJson1GatewayRouteVirtualService = function (output, conte
|
|
|
5782
5643
|
};
|
|
5783
5644
|
var deserializeAws_restJson1GrpcGatewayRoute = function (output, context) {
|
|
5784
5645
|
return {
|
|
5785
|
-
action: output.action
|
|
5786
|
-
|
|
5787
|
-
: undefined,
|
|
5788
|
-
match: output.match !== undefined && output.match !== null
|
|
5789
|
-
? deserializeAws_restJson1GrpcGatewayRouteMatch(output.match, context)
|
|
5790
|
-
: undefined,
|
|
5646
|
+
action: output.action != null ? deserializeAws_restJson1GrpcGatewayRouteAction(output.action, context) : undefined,
|
|
5647
|
+
match: output.match != null ? deserializeAws_restJson1GrpcGatewayRouteMatch(output.match, context) : undefined,
|
|
5791
5648
|
};
|
|
5792
5649
|
};
|
|
5793
5650
|
var deserializeAws_restJson1GrpcGatewayRouteAction = function (output, context) {
|
|
5794
5651
|
return {
|
|
5795
|
-
rewrite: output.rewrite
|
|
5796
|
-
|
|
5797
|
-
: undefined,
|
|
5798
|
-
target: output.target !== undefined && output.target !== null
|
|
5799
|
-
? deserializeAws_restJson1GatewayRouteTarget(output.target, context)
|
|
5800
|
-
: undefined,
|
|
5652
|
+
rewrite: output.rewrite != null ? deserializeAws_restJson1GrpcGatewayRouteRewrite(output.rewrite, context) : undefined,
|
|
5653
|
+
target: output.target != null ? deserializeAws_restJson1GatewayRouteTarget(output.target, context) : undefined,
|
|
5801
5654
|
};
|
|
5802
5655
|
};
|
|
5803
5656
|
var deserializeAws_restJson1GrpcGatewayRouteMatch = function (output, context) {
|
|
5804
5657
|
return {
|
|
5805
|
-
hostname: output.hostname
|
|
5806
|
-
|
|
5807
|
-
: undefined,
|
|
5808
|
-
metadata: output.metadata !== undefined && output.metadata !== null
|
|
5658
|
+
hostname: output.hostname != null ? deserializeAws_restJson1GatewayRouteHostnameMatch(output.hostname, context) : undefined,
|
|
5659
|
+
metadata: output.metadata != null
|
|
5809
5660
|
? deserializeAws_restJson1GrpcGatewayRouteMetadataList(output.metadata, context)
|
|
5810
5661
|
: undefined,
|
|
5811
5662
|
serviceName: __expectString(output.serviceName),
|
|
@@ -5814,7 +5665,7 @@ var deserializeAws_restJson1GrpcGatewayRouteMatch = function (output, context) {
|
|
|
5814
5665
|
var deserializeAws_restJson1GrpcGatewayRouteMetadata = function (output, context) {
|
|
5815
5666
|
return {
|
|
5816
5667
|
invert: __expectBoolean(output.invert),
|
|
5817
|
-
match: output.match
|
|
5668
|
+
match: output.match != null
|
|
5818
5669
|
? deserializeAws_restJson1GrpcMetadataMatchMethod(__expectUnion(output.match), context)
|
|
5819
5670
|
: undefined,
|
|
5820
5671
|
name: __expectString(output.name),
|
|
@@ -5833,7 +5684,7 @@ var deserializeAws_restJson1GrpcGatewayRouteMetadataList = function (output, con
|
|
|
5833
5684
|
};
|
|
5834
5685
|
var deserializeAws_restJson1GrpcGatewayRouteRewrite = function (output, context) {
|
|
5835
5686
|
return {
|
|
5836
|
-
hostname: output.hostname
|
|
5687
|
+
hostname: output.hostname != null
|
|
5837
5688
|
? deserializeAws_restJson1GatewayRouteHostnameRewrite(output.hostname, context)
|
|
5838
5689
|
: undefined,
|
|
5839
5690
|
};
|
|
@@ -5860,17 +5711,15 @@ var deserializeAws_restJson1GrpcMetadataMatchMethod = function (output, context)
|
|
|
5860
5711
|
};
|
|
5861
5712
|
var deserializeAws_restJson1GrpcRetryPolicy = function (output, context) {
|
|
5862
5713
|
return {
|
|
5863
|
-
grpcRetryEvents: output.grpcRetryEvents
|
|
5714
|
+
grpcRetryEvents: output.grpcRetryEvents != null
|
|
5864
5715
|
? deserializeAws_restJson1GrpcRetryPolicyEvents(output.grpcRetryEvents, context)
|
|
5865
5716
|
: undefined,
|
|
5866
|
-
httpRetryEvents: output.httpRetryEvents
|
|
5717
|
+
httpRetryEvents: output.httpRetryEvents != null
|
|
5867
5718
|
? deserializeAws_restJson1HttpRetryPolicyEvents(output.httpRetryEvents, context)
|
|
5868
5719
|
: undefined,
|
|
5869
5720
|
maxRetries: __expectLong(output.maxRetries),
|
|
5870
|
-
perRetryTimeout: output.perRetryTimeout
|
|
5871
|
-
|
|
5872
|
-
: undefined,
|
|
5873
|
-
tcpRetryEvents: output.tcpRetryEvents !== undefined && output.tcpRetryEvents !== null
|
|
5721
|
+
perRetryTimeout: output.perRetryTimeout != null ? deserializeAws_restJson1Duration(output.perRetryTimeout, context) : undefined,
|
|
5722
|
+
tcpRetryEvents: output.tcpRetryEvents != null
|
|
5874
5723
|
? deserializeAws_restJson1TcpRetryPolicyEvents(output.tcpRetryEvents, context)
|
|
5875
5724
|
: undefined,
|
|
5876
5725
|
};
|
|
@@ -5888,32 +5737,22 @@ var deserializeAws_restJson1GrpcRetryPolicyEvents = function (output, context) {
|
|
|
5888
5737
|
};
|
|
5889
5738
|
var deserializeAws_restJson1GrpcRoute = function (output, context) {
|
|
5890
5739
|
return {
|
|
5891
|
-
action: output.action
|
|
5892
|
-
|
|
5893
|
-
|
|
5894
|
-
|
|
5895
|
-
? deserializeAws_restJson1GrpcRouteMatch(output.match, context)
|
|
5896
|
-
: undefined,
|
|
5897
|
-
retryPolicy: output.retryPolicy !== undefined && output.retryPolicy !== null
|
|
5898
|
-
? deserializeAws_restJson1GrpcRetryPolicy(output.retryPolicy, context)
|
|
5899
|
-
: undefined,
|
|
5900
|
-
timeout: output.timeout !== undefined && output.timeout !== null
|
|
5901
|
-
? deserializeAws_restJson1GrpcTimeout(output.timeout, context)
|
|
5902
|
-
: undefined,
|
|
5740
|
+
action: output.action != null ? deserializeAws_restJson1GrpcRouteAction(output.action, context) : undefined,
|
|
5741
|
+
match: output.match != null ? deserializeAws_restJson1GrpcRouteMatch(output.match, context) : undefined,
|
|
5742
|
+
retryPolicy: output.retryPolicy != null ? deserializeAws_restJson1GrpcRetryPolicy(output.retryPolicy, context) : undefined,
|
|
5743
|
+
timeout: output.timeout != null ? deserializeAws_restJson1GrpcTimeout(output.timeout, context) : undefined,
|
|
5903
5744
|
};
|
|
5904
5745
|
};
|
|
5905
5746
|
var deserializeAws_restJson1GrpcRouteAction = function (output, context) {
|
|
5906
5747
|
return {
|
|
5907
|
-
weightedTargets: output.weightedTargets
|
|
5748
|
+
weightedTargets: output.weightedTargets != null
|
|
5908
5749
|
? deserializeAws_restJson1WeightedTargets(output.weightedTargets, context)
|
|
5909
5750
|
: undefined,
|
|
5910
5751
|
};
|
|
5911
5752
|
};
|
|
5912
5753
|
var deserializeAws_restJson1GrpcRouteMatch = function (output, context) {
|
|
5913
5754
|
return {
|
|
5914
|
-
metadata: output.metadata
|
|
5915
|
-
? deserializeAws_restJson1GrpcRouteMetadataList(output.metadata, context)
|
|
5916
|
-
: undefined,
|
|
5755
|
+
metadata: output.metadata != null ? deserializeAws_restJson1GrpcRouteMetadataList(output.metadata, context) : undefined,
|
|
5917
5756
|
methodName: __expectString(output.methodName),
|
|
5918
5757
|
serviceName: __expectString(output.serviceName),
|
|
5919
5758
|
};
|
|
@@ -5921,7 +5760,7 @@ var deserializeAws_restJson1GrpcRouteMatch = function (output, context) {
|
|
|
5921
5760
|
var deserializeAws_restJson1GrpcRouteMetadata = function (output, context) {
|
|
5922
5761
|
return {
|
|
5923
5762
|
invert: __expectBoolean(output.invert),
|
|
5924
|
-
match: output.match
|
|
5763
|
+
match: output.match != null
|
|
5925
5764
|
? deserializeAws_restJson1GrpcRouteMetadataMatchMethod(__expectUnion(output.match), context)
|
|
5926
5765
|
: undefined,
|
|
5927
5766
|
name: __expectString(output.name),
|
|
@@ -5960,12 +5799,8 @@ var deserializeAws_restJson1GrpcRouteMetadataMatchMethod = function (output, con
|
|
|
5960
5799
|
};
|
|
5961
5800
|
var deserializeAws_restJson1GrpcTimeout = function (output, context) {
|
|
5962
5801
|
return {
|
|
5963
|
-
idle: output.idle
|
|
5964
|
-
|
|
5965
|
-
: undefined,
|
|
5966
|
-
perRequest: output.perRequest !== undefined && output.perRequest !== null
|
|
5967
|
-
? deserializeAws_restJson1Duration(output.perRequest, context)
|
|
5968
|
-
: undefined,
|
|
5802
|
+
idle: output.idle != null ? deserializeAws_restJson1Duration(output.idle, context) : undefined,
|
|
5803
|
+
perRequest: output.perRequest != null ? deserializeAws_restJson1Duration(output.perRequest, context) : undefined,
|
|
5969
5804
|
};
|
|
5970
5805
|
};
|
|
5971
5806
|
var deserializeAws_restJson1HeaderMatchMethod = function (output, context) {
|
|
@@ -6001,28 +5836,20 @@ var deserializeAws_restJson1HealthCheckPolicy = function (output, context) {
|
|
|
6001
5836
|
};
|
|
6002
5837
|
var deserializeAws_restJson1HttpGatewayRoute = function (output, context) {
|
|
6003
5838
|
return {
|
|
6004
|
-
action: output.action
|
|
6005
|
-
|
|
6006
|
-
: undefined,
|
|
6007
|
-
match: output.match !== undefined && output.match !== null
|
|
6008
|
-
? deserializeAws_restJson1HttpGatewayRouteMatch(output.match, context)
|
|
6009
|
-
: undefined,
|
|
5839
|
+
action: output.action != null ? deserializeAws_restJson1HttpGatewayRouteAction(output.action, context) : undefined,
|
|
5840
|
+
match: output.match != null ? deserializeAws_restJson1HttpGatewayRouteMatch(output.match, context) : undefined,
|
|
6010
5841
|
};
|
|
6011
5842
|
};
|
|
6012
5843
|
var deserializeAws_restJson1HttpGatewayRouteAction = function (output, context) {
|
|
6013
5844
|
return {
|
|
6014
|
-
rewrite: output.rewrite
|
|
6015
|
-
|
|
6016
|
-
: undefined,
|
|
6017
|
-
target: output.target !== undefined && output.target !== null
|
|
6018
|
-
? deserializeAws_restJson1GatewayRouteTarget(output.target, context)
|
|
6019
|
-
: undefined,
|
|
5845
|
+
rewrite: output.rewrite != null ? deserializeAws_restJson1HttpGatewayRouteRewrite(output.rewrite, context) : undefined,
|
|
5846
|
+
target: output.target != null ? deserializeAws_restJson1GatewayRouteTarget(output.target, context) : undefined,
|
|
6020
5847
|
};
|
|
6021
5848
|
};
|
|
6022
5849
|
var deserializeAws_restJson1HttpGatewayRouteHeader = function (output, context) {
|
|
6023
5850
|
return {
|
|
6024
5851
|
invert: __expectBoolean(output.invert),
|
|
6025
|
-
match: output.match
|
|
5852
|
+
match: output.match != null
|
|
6026
5853
|
? deserializeAws_restJson1HeaderMatchMethod(__expectUnion(output.match), context)
|
|
6027
5854
|
: undefined,
|
|
6028
5855
|
name: __expectString(output.name),
|
|
@@ -6041,18 +5868,12 @@ var deserializeAws_restJson1HttpGatewayRouteHeaders = function (output, context)
|
|
|
6041
5868
|
};
|
|
6042
5869
|
var deserializeAws_restJson1HttpGatewayRouteMatch = function (output, context) {
|
|
6043
5870
|
return {
|
|
6044
|
-
headers: output.headers
|
|
6045
|
-
|
|
6046
|
-
: undefined,
|
|
6047
|
-
hostname: output.hostname !== undefined && output.hostname !== null
|
|
6048
|
-
? deserializeAws_restJson1GatewayRouteHostnameMatch(output.hostname, context)
|
|
6049
|
-
: undefined,
|
|
5871
|
+
headers: output.headers != null ? deserializeAws_restJson1HttpGatewayRouteHeaders(output.headers, context) : undefined,
|
|
5872
|
+
hostname: output.hostname != null ? deserializeAws_restJson1GatewayRouteHostnameMatch(output.hostname, context) : undefined,
|
|
6050
5873
|
method: __expectString(output.method),
|
|
6051
|
-
path: output.path
|
|
6052
|
-
? deserializeAws_restJson1HttpPathMatch(output.path, context)
|
|
6053
|
-
: undefined,
|
|
5874
|
+
path: output.path != null ? deserializeAws_restJson1HttpPathMatch(output.path, context) : undefined,
|
|
6054
5875
|
prefix: __expectString(output.prefix),
|
|
6055
|
-
queryParameters: output.queryParameters
|
|
5876
|
+
queryParameters: output.queryParameters != null
|
|
6056
5877
|
? deserializeAws_restJson1HttpQueryParameters(output.queryParameters, context)
|
|
6057
5878
|
: undefined,
|
|
6058
5879
|
};
|
|
@@ -6070,15 +5891,11 @@ var deserializeAws_restJson1HttpGatewayRoutePrefixRewrite = function (output, co
|
|
|
6070
5891
|
};
|
|
6071
5892
|
var deserializeAws_restJson1HttpGatewayRouteRewrite = function (output, context) {
|
|
6072
5893
|
return {
|
|
6073
|
-
hostname: output.hostname
|
|
5894
|
+
hostname: output.hostname != null
|
|
6074
5895
|
? deserializeAws_restJson1GatewayRouteHostnameRewrite(output.hostname, context)
|
|
6075
5896
|
: undefined,
|
|
6076
|
-
path: output.path
|
|
6077
|
-
|
|
6078
|
-
: undefined,
|
|
6079
|
-
prefix: output.prefix !== undefined && output.prefix !== null
|
|
6080
|
-
? deserializeAws_restJson1HttpGatewayRoutePrefixRewrite(output.prefix, context)
|
|
6081
|
-
: undefined,
|
|
5897
|
+
path: output.path != null ? deserializeAws_restJson1HttpGatewayRoutePathRewrite(output.path, context) : undefined,
|
|
5898
|
+
prefix: output.prefix != null ? deserializeAws_restJson1HttpGatewayRoutePrefixRewrite(output.prefix, context) : undefined,
|
|
6082
5899
|
};
|
|
6083
5900
|
};
|
|
6084
5901
|
var deserializeAws_restJson1HttpPathMatch = function (output, context) {
|
|
@@ -6089,9 +5906,7 @@ var deserializeAws_restJson1HttpPathMatch = function (output, context) {
|
|
|
6089
5906
|
};
|
|
6090
5907
|
var deserializeAws_restJson1HttpQueryParameter = function (output, context) {
|
|
6091
5908
|
return {
|
|
6092
|
-
match: output.match
|
|
6093
|
-
? deserializeAws_restJson1QueryParameterMatch(output.match, context)
|
|
6094
|
-
: undefined,
|
|
5909
|
+
match: output.match != null ? deserializeAws_restJson1QueryParameterMatch(output.match, context) : undefined,
|
|
6095
5910
|
name: __expectString(output.name),
|
|
6096
5911
|
};
|
|
6097
5912
|
};
|
|
@@ -6108,14 +5923,12 @@ var deserializeAws_restJson1HttpQueryParameters = function (output, context) {
|
|
|
6108
5923
|
};
|
|
6109
5924
|
var deserializeAws_restJson1HttpRetryPolicy = function (output, context) {
|
|
6110
5925
|
return {
|
|
6111
|
-
httpRetryEvents: output.httpRetryEvents
|
|
5926
|
+
httpRetryEvents: output.httpRetryEvents != null
|
|
6112
5927
|
? deserializeAws_restJson1HttpRetryPolicyEvents(output.httpRetryEvents, context)
|
|
6113
5928
|
: undefined,
|
|
6114
5929
|
maxRetries: __expectLong(output.maxRetries),
|
|
6115
|
-
perRetryTimeout: output.perRetryTimeout
|
|
6116
|
-
|
|
6117
|
-
: undefined,
|
|
6118
|
-
tcpRetryEvents: output.tcpRetryEvents !== undefined && output.tcpRetryEvents !== null
|
|
5930
|
+
perRetryTimeout: output.perRetryTimeout != null ? deserializeAws_restJson1Duration(output.perRetryTimeout, context) : undefined,
|
|
5931
|
+
tcpRetryEvents: output.tcpRetryEvents != null
|
|
6119
5932
|
? deserializeAws_restJson1TcpRetryPolicyEvents(output.tcpRetryEvents, context)
|
|
6120
5933
|
: undefined,
|
|
6121
5934
|
};
|
|
@@ -6133,23 +5946,15 @@ var deserializeAws_restJson1HttpRetryPolicyEvents = function (output, context) {
|
|
|
6133
5946
|
};
|
|
6134
5947
|
var deserializeAws_restJson1HttpRoute = function (output, context) {
|
|
6135
5948
|
return {
|
|
6136
|
-
action: output.action
|
|
6137
|
-
|
|
6138
|
-
|
|
6139
|
-
|
|
6140
|
-
? deserializeAws_restJson1HttpRouteMatch(output.match, context)
|
|
6141
|
-
: undefined,
|
|
6142
|
-
retryPolicy: output.retryPolicy !== undefined && output.retryPolicy !== null
|
|
6143
|
-
? deserializeAws_restJson1HttpRetryPolicy(output.retryPolicy, context)
|
|
6144
|
-
: undefined,
|
|
6145
|
-
timeout: output.timeout !== undefined && output.timeout !== null
|
|
6146
|
-
? deserializeAws_restJson1HttpTimeout(output.timeout, context)
|
|
6147
|
-
: undefined,
|
|
5949
|
+
action: output.action != null ? deserializeAws_restJson1HttpRouteAction(output.action, context) : undefined,
|
|
5950
|
+
match: output.match != null ? deserializeAws_restJson1HttpRouteMatch(output.match, context) : undefined,
|
|
5951
|
+
retryPolicy: output.retryPolicy != null ? deserializeAws_restJson1HttpRetryPolicy(output.retryPolicy, context) : undefined,
|
|
5952
|
+
timeout: output.timeout != null ? deserializeAws_restJson1HttpTimeout(output.timeout, context) : undefined,
|
|
6148
5953
|
};
|
|
6149
5954
|
};
|
|
6150
5955
|
var deserializeAws_restJson1HttpRouteAction = function (output, context) {
|
|
6151
5956
|
return {
|
|
6152
|
-
weightedTargets: output.weightedTargets
|
|
5957
|
+
weightedTargets: output.weightedTargets != null
|
|
6153
5958
|
? deserializeAws_restJson1WeightedTargets(output.weightedTargets, context)
|
|
6154
5959
|
: undefined,
|
|
6155
5960
|
};
|
|
@@ -6157,7 +5962,7 @@ var deserializeAws_restJson1HttpRouteAction = function (output, context) {
|
|
|
6157
5962
|
var deserializeAws_restJson1HttpRouteHeader = function (output, context) {
|
|
6158
5963
|
return {
|
|
6159
5964
|
invert: __expectBoolean(output.invert),
|
|
6160
|
-
match: output.match
|
|
5965
|
+
match: output.match != null
|
|
6161
5966
|
? deserializeAws_restJson1HeaderMatchMethod(__expectUnion(output.match), context)
|
|
6162
5967
|
: undefined,
|
|
6163
5968
|
name: __expectString(output.name),
|
|
@@ -6176,15 +5981,11 @@ var deserializeAws_restJson1HttpRouteHeaders = function (output, context) {
|
|
|
6176
5981
|
};
|
|
6177
5982
|
var deserializeAws_restJson1HttpRouteMatch = function (output, context) {
|
|
6178
5983
|
return {
|
|
6179
|
-
headers: output.headers
|
|
6180
|
-
? deserializeAws_restJson1HttpRouteHeaders(output.headers, context)
|
|
6181
|
-
: undefined,
|
|
5984
|
+
headers: output.headers != null ? deserializeAws_restJson1HttpRouteHeaders(output.headers, context) : undefined,
|
|
6182
5985
|
method: __expectString(output.method),
|
|
6183
|
-
path: output.path
|
|
6184
|
-
? deserializeAws_restJson1HttpPathMatch(output.path, context)
|
|
6185
|
-
: undefined,
|
|
5986
|
+
path: output.path != null ? deserializeAws_restJson1HttpPathMatch(output.path, context) : undefined,
|
|
6186
5987
|
prefix: __expectString(output.prefix),
|
|
6187
|
-
queryParameters: output.queryParameters
|
|
5988
|
+
queryParameters: output.queryParameters != null
|
|
6188
5989
|
? deserializeAws_restJson1HttpQueryParameters(output.queryParameters, context)
|
|
6189
5990
|
: undefined,
|
|
6190
5991
|
scheme: __expectString(output.scheme),
|
|
@@ -6192,34 +5993,24 @@ var deserializeAws_restJson1HttpRouteMatch = function (output, context) {
|
|
|
6192
5993
|
};
|
|
6193
5994
|
var deserializeAws_restJson1HttpTimeout = function (output, context) {
|
|
6194
5995
|
return {
|
|
6195
|
-
idle: output.idle
|
|
6196
|
-
|
|
6197
|
-
: undefined,
|
|
6198
|
-
perRequest: output.perRequest !== undefined && output.perRequest !== null
|
|
6199
|
-
? deserializeAws_restJson1Duration(output.perRequest, context)
|
|
6200
|
-
: undefined,
|
|
5996
|
+
idle: output.idle != null ? deserializeAws_restJson1Duration(output.idle, context) : undefined,
|
|
5997
|
+
perRequest: output.perRequest != null ? deserializeAws_restJson1Duration(output.perRequest, context) : undefined,
|
|
6201
5998
|
};
|
|
6202
5999
|
};
|
|
6203
6000
|
var deserializeAws_restJson1Listener = function (output, context) {
|
|
6204
6001
|
return {
|
|
6205
|
-
connectionPool: output.connectionPool
|
|
6002
|
+
connectionPool: output.connectionPool != null
|
|
6206
6003
|
? deserializeAws_restJson1VirtualNodeConnectionPool(__expectUnion(output.connectionPool), context)
|
|
6207
6004
|
: undefined,
|
|
6208
|
-
healthCheck: output.healthCheck
|
|
6209
|
-
|
|
6210
|
-
: undefined,
|
|
6211
|
-
outlierDetection: output.outlierDetection !== undefined && output.outlierDetection !== null
|
|
6005
|
+
healthCheck: output.healthCheck != null ? deserializeAws_restJson1HealthCheckPolicy(output.healthCheck, context) : undefined,
|
|
6006
|
+
outlierDetection: output.outlierDetection != null
|
|
6212
6007
|
? deserializeAws_restJson1OutlierDetection(output.outlierDetection, context)
|
|
6213
6008
|
: undefined,
|
|
6214
|
-
portMapping: output.portMapping
|
|
6215
|
-
|
|
6216
|
-
: undefined,
|
|
6217
|
-
timeout: output.timeout !== undefined && output.timeout !== null
|
|
6009
|
+
portMapping: output.portMapping != null ? deserializeAws_restJson1PortMapping(output.portMapping, context) : undefined,
|
|
6010
|
+
timeout: output.timeout != null
|
|
6218
6011
|
? deserializeAws_restJson1ListenerTimeout(__expectUnion(output.timeout), context)
|
|
6219
6012
|
: undefined,
|
|
6220
|
-
tls: output.tls
|
|
6221
|
-
? deserializeAws_restJson1ListenerTls(output.tls, context)
|
|
6222
|
-
: undefined,
|
|
6013
|
+
tls: output.tls != null ? deserializeAws_restJson1ListenerTls(output.tls, context) : undefined,
|
|
6223
6014
|
};
|
|
6224
6015
|
};
|
|
6225
6016
|
var deserializeAws_restJson1Listeners = function (output, context) {
|
|
@@ -6258,11 +6049,11 @@ var deserializeAws_restJson1ListenerTimeout = function (output, context) {
|
|
|
6258
6049
|
};
|
|
6259
6050
|
var deserializeAws_restJson1ListenerTls = function (output, context) {
|
|
6260
6051
|
return {
|
|
6261
|
-
certificate: output.certificate
|
|
6052
|
+
certificate: output.certificate != null
|
|
6262
6053
|
? deserializeAws_restJson1ListenerTlsCertificate(__expectUnion(output.certificate), context)
|
|
6263
6054
|
: undefined,
|
|
6264
6055
|
mode: __expectString(output.mode),
|
|
6265
|
-
validation: output.validation
|
|
6056
|
+
validation: output.validation != null
|
|
6266
6057
|
? deserializeAws_restJson1ListenerTlsValidationContext(output.validation, context)
|
|
6267
6058
|
: undefined,
|
|
6268
6059
|
};
|
|
@@ -6303,10 +6094,10 @@ var deserializeAws_restJson1ListenerTlsSdsCertificate = function (output, contex
|
|
|
6303
6094
|
};
|
|
6304
6095
|
var deserializeAws_restJson1ListenerTlsValidationContext = function (output, context) {
|
|
6305
6096
|
return {
|
|
6306
|
-
subjectAlternativeNames: output.subjectAlternativeNames
|
|
6097
|
+
subjectAlternativeNames: output.subjectAlternativeNames != null
|
|
6307
6098
|
? deserializeAws_restJson1SubjectAlternativeNames(output.subjectAlternativeNames, context)
|
|
6308
6099
|
: undefined,
|
|
6309
|
-
trust: output.trust
|
|
6100
|
+
trust: output.trust != null
|
|
6310
6101
|
? deserializeAws_restJson1ListenerTlsValidationContextTrust(__expectUnion(output.trust), context)
|
|
6311
6102
|
: undefined,
|
|
6312
6103
|
};
|
|
@@ -6326,7 +6117,7 @@ var deserializeAws_restJson1ListenerTlsValidationContextTrust = function (output
|
|
|
6326
6117
|
};
|
|
6327
6118
|
var deserializeAws_restJson1Logging = function (output, context) {
|
|
6328
6119
|
return {
|
|
6329
|
-
accessLog: output.accessLog
|
|
6120
|
+
accessLog: output.accessLog != null
|
|
6330
6121
|
? deserializeAws_restJson1AccessLog(__expectUnion(output.accessLog), context)
|
|
6331
6122
|
: undefined,
|
|
6332
6123
|
};
|
|
@@ -6340,15 +6131,9 @@ var deserializeAws_restJson1MatchRange = function (output, context) {
|
|
|
6340
6131
|
var deserializeAws_restJson1MeshData = function (output, context) {
|
|
6341
6132
|
return {
|
|
6342
6133
|
meshName: __expectString(output.meshName),
|
|
6343
|
-
metadata: output.metadata
|
|
6344
|
-
|
|
6345
|
-
|
|
6346
|
-
spec: output.spec !== undefined && output.spec !== null
|
|
6347
|
-
? deserializeAws_restJson1MeshSpec(output.spec, context)
|
|
6348
|
-
: undefined,
|
|
6349
|
-
status: output.status !== undefined && output.status !== null
|
|
6350
|
-
? deserializeAws_restJson1MeshStatus(output.status, context)
|
|
6351
|
-
: undefined,
|
|
6134
|
+
metadata: output.metadata != null ? deserializeAws_restJson1ResourceMetadata(output.metadata, context) : undefined,
|
|
6135
|
+
spec: output.spec != null ? deserializeAws_restJson1MeshSpec(output.spec, context) : undefined,
|
|
6136
|
+
status: output.status != null ? deserializeAws_restJson1MeshStatus(output.status, context) : undefined,
|
|
6352
6137
|
};
|
|
6353
6138
|
};
|
|
6354
6139
|
var deserializeAws_restJson1MeshList = function (output, context) {
|
|
@@ -6365,10 +6150,8 @@ var deserializeAws_restJson1MeshList = function (output, context) {
|
|
|
6365
6150
|
var deserializeAws_restJson1MeshRef = function (output, context) {
|
|
6366
6151
|
return {
|
|
6367
6152
|
arn: __expectString(output.arn),
|
|
6368
|
-
createdAt: output.createdAt
|
|
6369
|
-
|
|
6370
|
-
: undefined,
|
|
6371
|
-
lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
|
|
6153
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
6154
|
+
lastUpdatedAt: output.lastUpdatedAt != null
|
|
6372
6155
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
|
|
6373
6156
|
: undefined,
|
|
6374
6157
|
meshName: __expectString(output.meshName),
|
|
@@ -6384,10 +6167,8 @@ var deserializeAws_restJson1MeshServiceDiscovery = function (output, context) {
|
|
|
6384
6167
|
};
|
|
6385
6168
|
var deserializeAws_restJson1MeshSpec = function (output, context) {
|
|
6386
6169
|
return {
|
|
6387
|
-
egressFilter: output.egressFilter
|
|
6388
|
-
|
|
6389
|
-
: undefined,
|
|
6390
|
-
serviceDiscovery: output.serviceDiscovery !== undefined && output.serviceDiscovery !== null
|
|
6170
|
+
egressFilter: output.egressFilter != null ? deserializeAws_restJson1EgressFilter(output.egressFilter, context) : undefined,
|
|
6171
|
+
serviceDiscovery: output.serviceDiscovery != null
|
|
6391
6172
|
? deserializeAws_restJson1MeshServiceDiscovery(output.serviceDiscovery, context)
|
|
6392
6173
|
: undefined,
|
|
6393
6174
|
};
|
|
@@ -6399,12 +6180,10 @@ var deserializeAws_restJson1MeshStatus = function (output, context) {
|
|
|
6399
6180
|
};
|
|
6400
6181
|
var deserializeAws_restJson1OutlierDetection = function (output, context) {
|
|
6401
6182
|
return {
|
|
6402
|
-
baseEjectionDuration: output.baseEjectionDuration
|
|
6183
|
+
baseEjectionDuration: output.baseEjectionDuration != null
|
|
6403
6184
|
? deserializeAws_restJson1Duration(output.baseEjectionDuration, context)
|
|
6404
6185
|
: undefined,
|
|
6405
|
-
interval: output.interval
|
|
6406
|
-
? deserializeAws_restJson1Duration(output.interval, context)
|
|
6407
|
-
: undefined,
|
|
6186
|
+
interval: output.interval != null ? deserializeAws_restJson1Duration(output.interval, context) : undefined,
|
|
6408
6187
|
maxEjectionPercent: __expectInt32(output.maxEjectionPercent),
|
|
6409
6188
|
maxServerErrors: __expectLong(output.maxServerErrors),
|
|
6410
6189
|
};
|
|
@@ -6434,10 +6213,8 @@ var deserializeAws_restJson1QueryParameterMatch = function (output, context) {
|
|
|
6434
6213
|
var deserializeAws_restJson1ResourceMetadata = function (output, context) {
|
|
6435
6214
|
return {
|
|
6436
6215
|
arn: __expectString(output.arn),
|
|
6437
|
-
createdAt: output.createdAt
|
|
6438
|
-
|
|
6439
|
-
: undefined,
|
|
6440
|
-
lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
|
|
6216
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
6217
|
+
lastUpdatedAt: output.lastUpdatedAt != null
|
|
6441
6218
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
|
|
6442
6219
|
: undefined,
|
|
6443
6220
|
meshOwner: __expectString(output.meshOwner),
|
|
@@ -6449,16 +6226,10 @@ var deserializeAws_restJson1ResourceMetadata = function (output, context) {
|
|
|
6449
6226
|
var deserializeAws_restJson1RouteData = function (output, context) {
|
|
6450
6227
|
return {
|
|
6451
6228
|
meshName: __expectString(output.meshName),
|
|
6452
|
-
metadata: output.metadata
|
|
6453
|
-
? deserializeAws_restJson1ResourceMetadata(output.metadata, context)
|
|
6454
|
-
: undefined,
|
|
6229
|
+
metadata: output.metadata != null ? deserializeAws_restJson1ResourceMetadata(output.metadata, context) : undefined,
|
|
6455
6230
|
routeName: __expectString(output.routeName),
|
|
6456
|
-
spec: output.spec
|
|
6457
|
-
|
|
6458
|
-
: undefined,
|
|
6459
|
-
status: output.status !== undefined && output.status !== null
|
|
6460
|
-
? deserializeAws_restJson1RouteStatus(output.status, context)
|
|
6461
|
-
: undefined,
|
|
6231
|
+
spec: output.spec != null ? deserializeAws_restJson1RouteSpec(output.spec, context) : undefined,
|
|
6232
|
+
status: output.status != null ? deserializeAws_restJson1RouteStatus(output.status, context) : undefined,
|
|
6462
6233
|
virtualRouterName: __expectString(output.virtualRouterName),
|
|
6463
6234
|
};
|
|
6464
6235
|
};
|
|
@@ -6476,10 +6247,8 @@ var deserializeAws_restJson1RouteList = function (output, context) {
|
|
|
6476
6247
|
var deserializeAws_restJson1RouteRef = function (output, context) {
|
|
6477
6248
|
return {
|
|
6478
6249
|
arn: __expectString(output.arn),
|
|
6479
|
-
createdAt: output.createdAt
|
|
6480
|
-
|
|
6481
|
-
: undefined,
|
|
6482
|
-
lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
|
|
6250
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
6251
|
+
lastUpdatedAt: output.lastUpdatedAt != null
|
|
6483
6252
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
|
|
6484
6253
|
: undefined,
|
|
6485
6254
|
meshName: __expectString(output.meshName),
|
|
@@ -6492,19 +6261,11 @@ var deserializeAws_restJson1RouteRef = function (output, context) {
|
|
|
6492
6261
|
};
|
|
6493
6262
|
var deserializeAws_restJson1RouteSpec = function (output, context) {
|
|
6494
6263
|
return {
|
|
6495
|
-
grpcRoute: output.grpcRoute
|
|
6496
|
-
|
|
6497
|
-
|
|
6498
|
-
http2Route: output.http2Route !== undefined && output.http2Route !== null
|
|
6499
|
-
? deserializeAws_restJson1HttpRoute(output.http2Route, context)
|
|
6500
|
-
: undefined,
|
|
6501
|
-
httpRoute: output.httpRoute !== undefined && output.httpRoute !== null
|
|
6502
|
-
? deserializeAws_restJson1HttpRoute(output.httpRoute, context)
|
|
6503
|
-
: undefined,
|
|
6264
|
+
grpcRoute: output.grpcRoute != null ? deserializeAws_restJson1GrpcRoute(output.grpcRoute, context) : undefined,
|
|
6265
|
+
http2Route: output.http2Route != null ? deserializeAws_restJson1HttpRoute(output.http2Route, context) : undefined,
|
|
6266
|
+
httpRoute: output.httpRoute != null ? deserializeAws_restJson1HttpRoute(output.httpRoute, context) : undefined,
|
|
6504
6267
|
priority: __expectInt32(output.priority),
|
|
6505
|
-
tcpRoute: output.tcpRoute
|
|
6506
|
-
? deserializeAws_restJson1TcpRoute(output.tcpRoute, context)
|
|
6507
|
-
: undefined,
|
|
6268
|
+
tcpRoute: output.tcpRoute != null ? deserializeAws_restJson1TcpRoute(output.tcpRoute, context) : undefined,
|
|
6508
6269
|
};
|
|
6509
6270
|
};
|
|
6510
6271
|
var deserializeAws_restJson1RouteStatus = function (output, context) {
|
|
@@ -6538,16 +6299,12 @@ var deserializeAws_restJson1SubjectAlternativeNameList = function (output, conte
|
|
|
6538
6299
|
};
|
|
6539
6300
|
var deserializeAws_restJson1SubjectAlternativeNameMatchers = function (output, context) {
|
|
6540
6301
|
return {
|
|
6541
|
-
exact: output.exact
|
|
6542
|
-
? deserializeAws_restJson1SubjectAlternativeNameList(output.exact, context)
|
|
6543
|
-
: undefined,
|
|
6302
|
+
exact: output.exact != null ? deserializeAws_restJson1SubjectAlternativeNameList(output.exact, context) : undefined,
|
|
6544
6303
|
};
|
|
6545
6304
|
};
|
|
6546
6305
|
var deserializeAws_restJson1SubjectAlternativeNames = function (output, context) {
|
|
6547
6306
|
return {
|
|
6548
|
-
match: output.match
|
|
6549
|
-
? deserializeAws_restJson1SubjectAlternativeNameMatchers(output.match, context)
|
|
6550
|
-
: undefined,
|
|
6307
|
+
match: output.match != null ? deserializeAws_restJson1SubjectAlternativeNameMatchers(output.match, context) : undefined,
|
|
6551
6308
|
};
|
|
6552
6309
|
};
|
|
6553
6310
|
var deserializeAws_restJson1TagList = function (output, context) {
|
|
@@ -6580,41 +6337,35 @@ var deserializeAws_restJson1TcpRetryPolicyEvents = function (output, context) {
|
|
|
6580
6337
|
};
|
|
6581
6338
|
var deserializeAws_restJson1TcpRoute = function (output, context) {
|
|
6582
6339
|
return {
|
|
6583
|
-
action: output.action
|
|
6584
|
-
|
|
6585
|
-
: undefined,
|
|
6586
|
-
timeout: output.timeout !== undefined && output.timeout !== null
|
|
6587
|
-
? deserializeAws_restJson1TcpTimeout(output.timeout, context)
|
|
6588
|
-
: undefined,
|
|
6340
|
+
action: output.action != null ? deserializeAws_restJson1TcpRouteAction(output.action, context) : undefined,
|
|
6341
|
+
timeout: output.timeout != null ? deserializeAws_restJson1TcpTimeout(output.timeout, context) : undefined,
|
|
6589
6342
|
};
|
|
6590
6343
|
};
|
|
6591
6344
|
var deserializeAws_restJson1TcpRouteAction = function (output, context) {
|
|
6592
6345
|
return {
|
|
6593
|
-
weightedTargets: output.weightedTargets
|
|
6346
|
+
weightedTargets: output.weightedTargets != null
|
|
6594
6347
|
? deserializeAws_restJson1WeightedTargets(output.weightedTargets, context)
|
|
6595
6348
|
: undefined,
|
|
6596
6349
|
};
|
|
6597
6350
|
};
|
|
6598
6351
|
var deserializeAws_restJson1TcpTimeout = function (output, context) {
|
|
6599
6352
|
return {
|
|
6600
|
-
idle: output.idle
|
|
6601
|
-
? deserializeAws_restJson1Duration(output.idle, context)
|
|
6602
|
-
: undefined,
|
|
6353
|
+
idle: output.idle != null ? deserializeAws_restJson1Duration(output.idle, context) : undefined,
|
|
6603
6354
|
};
|
|
6604
6355
|
};
|
|
6605
6356
|
var deserializeAws_restJson1TlsValidationContext = function (output, context) {
|
|
6606
6357
|
return {
|
|
6607
|
-
subjectAlternativeNames: output.subjectAlternativeNames
|
|
6358
|
+
subjectAlternativeNames: output.subjectAlternativeNames != null
|
|
6608
6359
|
? deserializeAws_restJson1SubjectAlternativeNames(output.subjectAlternativeNames, context)
|
|
6609
6360
|
: undefined,
|
|
6610
|
-
trust: output.trust
|
|
6361
|
+
trust: output.trust != null
|
|
6611
6362
|
? deserializeAws_restJson1TlsValidationContextTrust(__expectUnion(output.trust), context)
|
|
6612
6363
|
: undefined,
|
|
6613
6364
|
};
|
|
6614
6365
|
};
|
|
6615
6366
|
var deserializeAws_restJson1TlsValidationContextAcmTrust = function (output, context) {
|
|
6616
6367
|
return {
|
|
6617
|
-
certificateAuthorityArns: output.certificateAuthorityArns
|
|
6368
|
+
certificateAuthorityArns: output.certificateAuthorityArns != null
|
|
6618
6369
|
? deserializeAws_restJson1CertificateAuthorityArns(output.certificateAuthorityArns, context)
|
|
6619
6370
|
: undefined,
|
|
6620
6371
|
};
|
|
@@ -6657,7 +6408,7 @@ var deserializeAws_restJson1VirtualGatewayAccessLog = function (output, context)
|
|
|
6657
6408
|
};
|
|
6658
6409
|
var deserializeAws_restJson1VirtualGatewayBackendDefaults = function (output, context) {
|
|
6659
6410
|
return {
|
|
6660
|
-
clientPolicy: output.clientPolicy
|
|
6411
|
+
clientPolicy: output.clientPolicy != null
|
|
6661
6412
|
? deserializeAws_restJson1VirtualGatewayClientPolicy(output.clientPolicy, context)
|
|
6662
6413
|
: undefined,
|
|
6663
6414
|
};
|
|
@@ -6675,21 +6426,17 @@ var deserializeAws_restJson1VirtualGatewayCertificateAuthorityArns = function (o
|
|
|
6675
6426
|
};
|
|
6676
6427
|
var deserializeAws_restJson1VirtualGatewayClientPolicy = function (output, context) {
|
|
6677
6428
|
return {
|
|
6678
|
-
tls: output.tls
|
|
6679
|
-
? deserializeAws_restJson1VirtualGatewayClientPolicyTls(output.tls, context)
|
|
6680
|
-
: undefined,
|
|
6429
|
+
tls: output.tls != null ? deserializeAws_restJson1VirtualGatewayClientPolicyTls(output.tls, context) : undefined,
|
|
6681
6430
|
};
|
|
6682
6431
|
};
|
|
6683
6432
|
var deserializeAws_restJson1VirtualGatewayClientPolicyTls = function (output, context) {
|
|
6684
6433
|
return {
|
|
6685
|
-
certificate: output.certificate
|
|
6434
|
+
certificate: output.certificate != null
|
|
6686
6435
|
? deserializeAws_restJson1VirtualGatewayClientTlsCertificate(__expectUnion(output.certificate), context)
|
|
6687
6436
|
: undefined,
|
|
6688
6437
|
enforce: __expectBoolean(output.enforce),
|
|
6689
|
-
ports: output.ports
|
|
6690
|
-
|
|
6691
|
-
: undefined,
|
|
6692
|
-
validation: output.validation !== undefined && output.validation !== null
|
|
6438
|
+
ports: output.ports != null ? deserializeAws_restJson1PortSet(output.ports, context) : undefined,
|
|
6439
|
+
validation: output.validation != null
|
|
6693
6440
|
? deserializeAws_restJson1VirtualGatewayTlsValidationContext(output.validation, context)
|
|
6694
6441
|
: undefined,
|
|
6695
6442
|
};
|
|
@@ -6728,15 +6475,9 @@ var deserializeAws_restJson1VirtualGatewayConnectionPool = function (output, con
|
|
|
6728
6475
|
var deserializeAws_restJson1VirtualGatewayData = function (output, context) {
|
|
6729
6476
|
return {
|
|
6730
6477
|
meshName: __expectString(output.meshName),
|
|
6731
|
-
metadata: output.metadata
|
|
6732
|
-
|
|
6733
|
-
|
|
6734
|
-
spec: output.spec !== undefined && output.spec !== null
|
|
6735
|
-
? deserializeAws_restJson1VirtualGatewaySpec(output.spec, context)
|
|
6736
|
-
: undefined,
|
|
6737
|
-
status: output.status !== undefined && output.status !== null
|
|
6738
|
-
? deserializeAws_restJson1VirtualGatewayStatus(output.status, context)
|
|
6739
|
-
: undefined,
|
|
6478
|
+
metadata: output.metadata != null ? deserializeAws_restJson1ResourceMetadata(output.metadata, context) : undefined,
|
|
6479
|
+
spec: output.spec != null ? deserializeAws_restJson1VirtualGatewaySpec(output.spec, context) : undefined,
|
|
6480
|
+
status: output.status != null ? deserializeAws_restJson1VirtualGatewayStatus(output.status, context) : undefined,
|
|
6740
6481
|
virtualGatewayName: __expectString(output.virtualGatewayName),
|
|
6741
6482
|
};
|
|
6742
6483
|
};
|
|
@@ -6785,18 +6526,16 @@ var deserializeAws_restJson1VirtualGatewayList = function (output, context) {
|
|
|
6785
6526
|
};
|
|
6786
6527
|
var deserializeAws_restJson1VirtualGatewayListener = function (output, context) {
|
|
6787
6528
|
return {
|
|
6788
|
-
connectionPool: output.connectionPool
|
|
6529
|
+
connectionPool: output.connectionPool != null
|
|
6789
6530
|
? deserializeAws_restJson1VirtualGatewayConnectionPool(__expectUnion(output.connectionPool), context)
|
|
6790
6531
|
: undefined,
|
|
6791
|
-
healthCheck: output.healthCheck
|
|
6532
|
+
healthCheck: output.healthCheck != null
|
|
6792
6533
|
? deserializeAws_restJson1VirtualGatewayHealthCheckPolicy(output.healthCheck, context)
|
|
6793
6534
|
: undefined,
|
|
6794
|
-
portMapping: output.portMapping
|
|
6535
|
+
portMapping: output.portMapping != null
|
|
6795
6536
|
? deserializeAws_restJson1VirtualGatewayPortMapping(output.portMapping, context)
|
|
6796
6537
|
: undefined,
|
|
6797
|
-
tls: output.tls
|
|
6798
|
-
? deserializeAws_restJson1VirtualGatewayListenerTls(output.tls, context)
|
|
6799
|
-
: undefined,
|
|
6538
|
+
tls: output.tls != null ? deserializeAws_restJson1VirtualGatewayListenerTls(output.tls, context) : undefined,
|
|
6800
6539
|
};
|
|
6801
6540
|
};
|
|
6802
6541
|
var deserializeAws_restJson1VirtualGatewayListeners = function (output, context) {
|
|
@@ -6812,11 +6551,11 @@ var deserializeAws_restJson1VirtualGatewayListeners = function (output, context)
|
|
|
6812
6551
|
};
|
|
6813
6552
|
var deserializeAws_restJson1VirtualGatewayListenerTls = function (output, context) {
|
|
6814
6553
|
return {
|
|
6815
|
-
certificate: output.certificate
|
|
6554
|
+
certificate: output.certificate != null
|
|
6816
6555
|
? deserializeAws_restJson1VirtualGatewayListenerTlsCertificate(__expectUnion(output.certificate), context)
|
|
6817
6556
|
: undefined,
|
|
6818
6557
|
mode: __expectString(output.mode),
|
|
6819
|
-
validation: output.validation
|
|
6558
|
+
validation: output.validation != null
|
|
6820
6559
|
? deserializeAws_restJson1VirtualGatewayListenerTlsValidationContext(output.validation, context)
|
|
6821
6560
|
: undefined,
|
|
6822
6561
|
};
|
|
@@ -6857,10 +6596,10 @@ var deserializeAws_restJson1VirtualGatewayListenerTlsSdsCertificate = function (
|
|
|
6857
6596
|
};
|
|
6858
6597
|
var deserializeAws_restJson1VirtualGatewayListenerTlsValidationContext = function (output, context) {
|
|
6859
6598
|
return {
|
|
6860
|
-
subjectAlternativeNames: output.subjectAlternativeNames
|
|
6599
|
+
subjectAlternativeNames: output.subjectAlternativeNames != null
|
|
6861
6600
|
? deserializeAws_restJson1SubjectAlternativeNames(output.subjectAlternativeNames, context)
|
|
6862
6601
|
: undefined,
|
|
6863
|
-
trust: output.trust
|
|
6602
|
+
trust: output.trust != null
|
|
6864
6603
|
? deserializeAws_restJson1VirtualGatewayListenerTlsValidationContextTrust(__expectUnion(output.trust), context)
|
|
6865
6604
|
: undefined,
|
|
6866
6605
|
};
|
|
@@ -6880,7 +6619,7 @@ var deserializeAws_restJson1VirtualGatewayListenerTlsValidationContextTrust = fu
|
|
|
6880
6619
|
};
|
|
6881
6620
|
var deserializeAws_restJson1VirtualGatewayLogging = function (output, context) {
|
|
6882
6621
|
return {
|
|
6883
|
-
accessLog: output.accessLog
|
|
6622
|
+
accessLog: output.accessLog != null
|
|
6884
6623
|
? deserializeAws_restJson1VirtualGatewayAccessLog(__expectUnion(output.accessLog), context)
|
|
6885
6624
|
: undefined,
|
|
6886
6625
|
};
|
|
@@ -6894,10 +6633,8 @@ var deserializeAws_restJson1VirtualGatewayPortMapping = function (output, contex
|
|
|
6894
6633
|
var deserializeAws_restJson1VirtualGatewayRef = function (output, context) {
|
|
6895
6634
|
return {
|
|
6896
6635
|
arn: __expectString(output.arn),
|
|
6897
|
-
createdAt: output.createdAt
|
|
6898
|
-
|
|
6899
|
-
: undefined,
|
|
6900
|
-
lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
|
|
6636
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
6637
|
+
lastUpdatedAt: output.lastUpdatedAt != null
|
|
6901
6638
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
|
|
6902
6639
|
: undefined,
|
|
6903
6640
|
meshName: __expectString(output.meshName),
|
|
@@ -6909,15 +6646,11 @@ var deserializeAws_restJson1VirtualGatewayRef = function (output, context) {
|
|
|
6909
6646
|
};
|
|
6910
6647
|
var deserializeAws_restJson1VirtualGatewaySpec = function (output, context) {
|
|
6911
6648
|
return {
|
|
6912
|
-
backendDefaults: output.backendDefaults
|
|
6649
|
+
backendDefaults: output.backendDefaults != null
|
|
6913
6650
|
? deserializeAws_restJson1VirtualGatewayBackendDefaults(output.backendDefaults, context)
|
|
6914
6651
|
: undefined,
|
|
6915
|
-
listeners: output.listeners
|
|
6916
|
-
|
|
6917
|
-
: undefined,
|
|
6918
|
-
logging: output.logging !== undefined && output.logging !== null
|
|
6919
|
-
? deserializeAws_restJson1VirtualGatewayLogging(output.logging, context)
|
|
6920
|
-
: undefined,
|
|
6652
|
+
listeners: output.listeners != null ? deserializeAws_restJson1VirtualGatewayListeners(output.listeners, context) : undefined,
|
|
6653
|
+
logging: output.logging != null ? deserializeAws_restJson1VirtualGatewayLogging(output.logging, context) : undefined,
|
|
6921
6654
|
};
|
|
6922
6655
|
};
|
|
6923
6656
|
var deserializeAws_restJson1VirtualGatewayStatus = function (output, context) {
|
|
@@ -6927,17 +6660,17 @@ var deserializeAws_restJson1VirtualGatewayStatus = function (output, context) {
|
|
|
6927
6660
|
};
|
|
6928
6661
|
var deserializeAws_restJson1VirtualGatewayTlsValidationContext = function (output, context) {
|
|
6929
6662
|
return {
|
|
6930
|
-
subjectAlternativeNames: output.subjectAlternativeNames
|
|
6663
|
+
subjectAlternativeNames: output.subjectAlternativeNames != null
|
|
6931
6664
|
? deserializeAws_restJson1SubjectAlternativeNames(output.subjectAlternativeNames, context)
|
|
6932
6665
|
: undefined,
|
|
6933
|
-
trust: output.trust
|
|
6666
|
+
trust: output.trust != null
|
|
6934
6667
|
? deserializeAws_restJson1VirtualGatewayTlsValidationContextTrust(__expectUnion(output.trust), context)
|
|
6935
6668
|
: undefined,
|
|
6936
6669
|
};
|
|
6937
6670
|
};
|
|
6938
6671
|
var deserializeAws_restJson1VirtualGatewayTlsValidationContextAcmTrust = function (output, context) {
|
|
6939
6672
|
return {
|
|
6940
|
-
certificateAuthorityArns: output.certificateAuthorityArns
|
|
6673
|
+
certificateAuthorityArns: output.certificateAuthorityArns != null
|
|
6941
6674
|
? deserializeAws_restJson1VirtualGatewayCertificateAuthorityArns(output.certificateAuthorityArns, context)
|
|
6942
6675
|
: undefined,
|
|
6943
6676
|
};
|
|
@@ -6996,15 +6729,9 @@ var deserializeAws_restJson1VirtualNodeConnectionPool = function (output, contex
|
|
|
6996
6729
|
var deserializeAws_restJson1VirtualNodeData = function (output, context) {
|
|
6997
6730
|
return {
|
|
6998
6731
|
meshName: __expectString(output.meshName),
|
|
6999
|
-
metadata: output.metadata
|
|
7000
|
-
|
|
7001
|
-
|
|
7002
|
-
spec: output.spec !== undefined && output.spec !== null
|
|
7003
|
-
? deserializeAws_restJson1VirtualNodeSpec(output.spec, context)
|
|
7004
|
-
: undefined,
|
|
7005
|
-
status: output.status !== undefined && output.status !== null
|
|
7006
|
-
? deserializeAws_restJson1VirtualNodeStatus(output.status, context)
|
|
7007
|
-
: undefined,
|
|
6732
|
+
metadata: output.metadata != null ? deserializeAws_restJson1ResourceMetadata(output.metadata, context) : undefined,
|
|
6733
|
+
spec: output.spec != null ? deserializeAws_restJson1VirtualNodeSpec(output.spec, context) : undefined,
|
|
6734
|
+
status: output.status != null ? deserializeAws_restJson1VirtualNodeStatus(output.status, context) : undefined,
|
|
7008
6735
|
virtualNodeName: __expectString(output.virtualNodeName),
|
|
7009
6736
|
};
|
|
7010
6737
|
};
|
|
@@ -7038,10 +6765,8 @@ var deserializeAws_restJson1VirtualNodeList = function (output, context) {
|
|
|
7038
6765
|
var deserializeAws_restJson1VirtualNodeRef = function (output, context) {
|
|
7039
6766
|
return {
|
|
7040
6767
|
arn: __expectString(output.arn),
|
|
7041
|
-
createdAt: output.createdAt
|
|
7042
|
-
|
|
7043
|
-
: undefined,
|
|
7044
|
-
lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
|
|
6768
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
6769
|
+
lastUpdatedAt: output.lastUpdatedAt != null
|
|
7045
6770
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
|
|
7046
6771
|
: undefined,
|
|
7047
6772
|
meshName: __expectString(output.meshName),
|
|
@@ -7058,19 +6783,13 @@ var deserializeAws_restJson1VirtualNodeServiceProvider = function (output, conte
|
|
|
7058
6783
|
};
|
|
7059
6784
|
var deserializeAws_restJson1VirtualNodeSpec = function (output, context) {
|
|
7060
6785
|
return {
|
|
7061
|
-
backendDefaults: output.backendDefaults
|
|
6786
|
+
backendDefaults: output.backendDefaults != null
|
|
7062
6787
|
? deserializeAws_restJson1BackendDefaults(output.backendDefaults, context)
|
|
7063
6788
|
: undefined,
|
|
7064
|
-
backends: output.backends
|
|
7065
|
-
|
|
7066
|
-
|
|
7067
|
-
|
|
7068
|
-
? deserializeAws_restJson1Listeners(output.listeners, context)
|
|
7069
|
-
: undefined,
|
|
7070
|
-
logging: output.logging !== undefined && output.logging !== null
|
|
7071
|
-
? deserializeAws_restJson1Logging(output.logging, context)
|
|
7072
|
-
: undefined,
|
|
7073
|
-
serviceDiscovery: output.serviceDiscovery !== undefined && output.serviceDiscovery !== null
|
|
6789
|
+
backends: output.backends != null ? deserializeAws_restJson1Backends(output.backends, context) : undefined,
|
|
6790
|
+
listeners: output.listeners != null ? deserializeAws_restJson1Listeners(output.listeners, context) : undefined,
|
|
6791
|
+
logging: output.logging != null ? deserializeAws_restJson1Logging(output.logging, context) : undefined,
|
|
6792
|
+
serviceDiscovery: output.serviceDiscovery != null
|
|
7074
6793
|
? deserializeAws_restJson1ServiceDiscovery(__expectUnion(output.serviceDiscovery), context)
|
|
7075
6794
|
: undefined,
|
|
7076
6795
|
};
|
|
@@ -7088,15 +6807,9 @@ var deserializeAws_restJson1VirtualNodeTcpConnectionPool = function (output, con
|
|
|
7088
6807
|
var deserializeAws_restJson1VirtualRouterData = function (output, context) {
|
|
7089
6808
|
return {
|
|
7090
6809
|
meshName: __expectString(output.meshName),
|
|
7091
|
-
metadata: output.metadata
|
|
7092
|
-
|
|
7093
|
-
|
|
7094
|
-
spec: output.spec !== undefined && output.spec !== null
|
|
7095
|
-
? deserializeAws_restJson1VirtualRouterSpec(output.spec, context)
|
|
7096
|
-
: undefined,
|
|
7097
|
-
status: output.status !== undefined && output.status !== null
|
|
7098
|
-
? deserializeAws_restJson1VirtualRouterStatus(output.status, context)
|
|
7099
|
-
: undefined,
|
|
6810
|
+
metadata: output.metadata != null ? deserializeAws_restJson1ResourceMetadata(output.metadata, context) : undefined,
|
|
6811
|
+
spec: output.spec != null ? deserializeAws_restJson1VirtualRouterSpec(output.spec, context) : undefined,
|
|
6812
|
+
status: output.status != null ? deserializeAws_restJson1VirtualRouterStatus(output.status, context) : undefined,
|
|
7100
6813
|
virtualRouterName: __expectString(output.virtualRouterName),
|
|
7101
6814
|
};
|
|
7102
6815
|
};
|
|
@@ -7113,9 +6826,7 @@ var deserializeAws_restJson1VirtualRouterList = function (output, context) {
|
|
|
7113
6826
|
};
|
|
7114
6827
|
var deserializeAws_restJson1VirtualRouterListener = function (output, context) {
|
|
7115
6828
|
return {
|
|
7116
|
-
portMapping: output.portMapping
|
|
7117
|
-
? deserializeAws_restJson1PortMapping(output.portMapping, context)
|
|
7118
|
-
: undefined,
|
|
6829
|
+
portMapping: output.portMapping != null ? deserializeAws_restJson1PortMapping(output.portMapping, context) : undefined,
|
|
7119
6830
|
};
|
|
7120
6831
|
};
|
|
7121
6832
|
var deserializeAws_restJson1VirtualRouterListeners = function (output, context) {
|
|
@@ -7132,10 +6843,8 @@ var deserializeAws_restJson1VirtualRouterListeners = function (output, context)
|
|
|
7132
6843
|
var deserializeAws_restJson1VirtualRouterRef = function (output, context) {
|
|
7133
6844
|
return {
|
|
7134
6845
|
arn: __expectString(output.arn),
|
|
7135
|
-
createdAt: output.createdAt
|
|
7136
|
-
|
|
7137
|
-
: undefined,
|
|
7138
|
-
lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
|
|
6846
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
6847
|
+
lastUpdatedAt: output.lastUpdatedAt != null
|
|
7139
6848
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
|
|
7140
6849
|
: undefined,
|
|
7141
6850
|
meshName: __expectString(output.meshName),
|
|
@@ -7152,9 +6861,7 @@ var deserializeAws_restJson1VirtualRouterServiceProvider = function (output, con
|
|
|
7152
6861
|
};
|
|
7153
6862
|
var deserializeAws_restJson1VirtualRouterSpec = function (output, context) {
|
|
7154
6863
|
return {
|
|
7155
|
-
listeners: output.listeners
|
|
7156
|
-
? deserializeAws_restJson1VirtualRouterListeners(output.listeners, context)
|
|
7157
|
-
: undefined,
|
|
6864
|
+
listeners: output.listeners != null ? deserializeAws_restJson1VirtualRouterListeners(output.listeners, context) : undefined,
|
|
7158
6865
|
};
|
|
7159
6866
|
};
|
|
7160
6867
|
var deserializeAws_restJson1VirtualRouterStatus = function (output, context) {
|
|
@@ -7164,24 +6871,16 @@ var deserializeAws_restJson1VirtualRouterStatus = function (output, context) {
|
|
|
7164
6871
|
};
|
|
7165
6872
|
var deserializeAws_restJson1VirtualServiceBackend = function (output, context) {
|
|
7166
6873
|
return {
|
|
7167
|
-
clientPolicy: output.clientPolicy
|
|
7168
|
-
? deserializeAws_restJson1ClientPolicy(output.clientPolicy, context)
|
|
7169
|
-
: undefined,
|
|
6874
|
+
clientPolicy: output.clientPolicy != null ? deserializeAws_restJson1ClientPolicy(output.clientPolicy, context) : undefined,
|
|
7170
6875
|
virtualServiceName: __expectString(output.virtualServiceName),
|
|
7171
6876
|
};
|
|
7172
6877
|
};
|
|
7173
6878
|
var deserializeAws_restJson1VirtualServiceData = function (output, context) {
|
|
7174
6879
|
return {
|
|
7175
6880
|
meshName: __expectString(output.meshName),
|
|
7176
|
-
metadata: output.metadata
|
|
7177
|
-
|
|
7178
|
-
|
|
7179
|
-
spec: output.spec !== undefined && output.spec !== null
|
|
7180
|
-
? deserializeAws_restJson1VirtualServiceSpec(output.spec, context)
|
|
7181
|
-
: undefined,
|
|
7182
|
-
status: output.status !== undefined && output.status !== null
|
|
7183
|
-
? deserializeAws_restJson1VirtualServiceStatus(output.status, context)
|
|
7184
|
-
: undefined,
|
|
6881
|
+
metadata: output.metadata != null ? deserializeAws_restJson1ResourceMetadata(output.metadata, context) : undefined,
|
|
6882
|
+
spec: output.spec != null ? deserializeAws_restJson1VirtualServiceSpec(output.spec, context) : undefined,
|
|
6883
|
+
status: output.status != null ? deserializeAws_restJson1VirtualServiceStatus(output.status, context) : undefined,
|
|
7185
6884
|
virtualServiceName: __expectString(output.virtualServiceName),
|
|
7186
6885
|
};
|
|
7187
6886
|
};
|
|
@@ -7212,10 +6911,8 @@ var deserializeAws_restJson1VirtualServiceProvider = function (output, context)
|
|
|
7212
6911
|
var deserializeAws_restJson1VirtualServiceRef = function (output, context) {
|
|
7213
6912
|
return {
|
|
7214
6913
|
arn: __expectString(output.arn),
|
|
7215
|
-
createdAt: output.createdAt
|
|
7216
|
-
|
|
7217
|
-
: undefined,
|
|
7218
|
-
lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
|
|
6914
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
6915
|
+
lastUpdatedAt: output.lastUpdatedAt != null
|
|
7219
6916
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
|
|
7220
6917
|
: undefined,
|
|
7221
6918
|
meshName: __expectString(output.meshName),
|
|
@@ -7227,7 +6924,7 @@ var deserializeAws_restJson1VirtualServiceRef = function (output, context) {
|
|
|
7227
6924
|
};
|
|
7228
6925
|
var deserializeAws_restJson1VirtualServiceSpec = function (output, context) {
|
|
7229
6926
|
return {
|
|
7230
|
-
provider: output.provider
|
|
6927
|
+
provider: output.provider != null
|
|
7231
6928
|
? deserializeAws_restJson1VirtualServiceProvider(__expectUnion(output.provider), context)
|
|
7232
6929
|
: undefined,
|
|
7233
6930
|
};
|
|
@@ -7310,5 +7007,4 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
7310
7007
|
if (data["__type"] !== undefined) {
|
|
7311
7008
|
return sanitizeErrorCode(data["__type"]);
|
|
7312
7009
|
}
|
|
7313
|
-
return "";
|
|
7314
7010
|
};
|