@aws-sdk/client-app-mesh 3.121.0 → 3.127.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 +8 -0
- package/dist-cjs/protocols/Aws_restJson1.js +408 -749
- package/dist-es/protocols/Aws_restJson1.js +307 -648
- 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,
|
|
@@ -4729,7 +4701,7 @@ var serializeAws_restJson1AccessLog = function (input, context) {
|
|
|
4729
4701
|
});
|
|
4730
4702
|
};
|
|
4731
4703
|
var serializeAws_restJson1AwsCloudMapInstanceAttribute = function (input, context) {
|
|
4732
|
-
return __assign(__assign({}, (input.key
|
|
4704
|
+
return __assign(__assign({}, (input.key != null && { key: input.key })), (input.value != null && { value: input.value }));
|
|
4733
4705
|
};
|
|
4734
4706
|
var serializeAws_restJson1AwsCloudMapInstanceAttributes = function (input, context) {
|
|
4735
4707
|
return input
|
|
@@ -4742,10 +4714,9 @@ var serializeAws_restJson1AwsCloudMapInstanceAttributes = function (input, conte
|
|
|
4742
4714
|
});
|
|
4743
4715
|
};
|
|
4744
4716
|
var serializeAws_restJson1AwsCloudMapServiceDiscovery = function (input, context) {
|
|
4745
|
-
return __assign(__assign(__assign(__assign({}, (input.attributes
|
|
4746
|
-
input.attributes !== null && {
|
|
4717
|
+
return __assign(__assign(__assign(__assign({}, (input.attributes != null && {
|
|
4747
4718
|
attributes: serializeAws_restJson1AwsCloudMapInstanceAttributes(input.attributes, context),
|
|
4748
|
-
})), (input.ipPreference
|
|
4719
|
+
})), (input.ipPreference != null && { ipPreference: input.ipPreference })), (input.namespaceName != null && { namespaceName: input.namespaceName })), (input.serviceName != null && { serviceName: input.serviceName }));
|
|
4749
4720
|
};
|
|
4750
4721
|
var serializeAws_restJson1Backend = function (input, context) {
|
|
4751
4722
|
return Backend.visit(input, {
|
|
@@ -4754,8 +4725,9 @@ var serializeAws_restJson1Backend = function (input, context) {
|
|
|
4754
4725
|
});
|
|
4755
4726
|
};
|
|
4756
4727
|
var serializeAws_restJson1BackendDefaults = function (input, context) {
|
|
4757
|
-
return __assign({}, (input.clientPolicy
|
|
4758
|
-
|
|
4728
|
+
return __assign({}, (input.clientPolicy != null && {
|
|
4729
|
+
clientPolicy: serializeAws_restJson1ClientPolicy(input.clientPolicy, context),
|
|
4730
|
+
}));
|
|
4759
4731
|
};
|
|
4760
4732
|
var serializeAws_restJson1Backends = function (input, context) {
|
|
4761
4733
|
return input
|
|
@@ -4778,16 +4750,12 @@ var serializeAws_restJson1CertificateAuthorityArns = function (input, context) {
|
|
|
4778
4750
|
});
|
|
4779
4751
|
};
|
|
4780
4752
|
var serializeAws_restJson1ClientPolicy = function (input, context) {
|
|
4781
|
-
return __assign({}, (input.tls
|
|
4782
|
-
input.tls !== null && { tls: serializeAws_restJson1ClientPolicyTls(input.tls, context) }));
|
|
4753
|
+
return __assign({}, (input.tls != null && { tls: serializeAws_restJson1ClientPolicyTls(input.tls, context) }));
|
|
4783
4754
|
};
|
|
4784
4755
|
var serializeAws_restJson1ClientPolicyTls = function (input, context) {
|
|
4785
|
-
return __assign(__assign(__assign(__assign({}, (input.certificate
|
|
4786
|
-
input.certificate !== null && {
|
|
4756
|
+
return __assign(__assign(__assign(__assign({}, (input.certificate != null && {
|
|
4787
4757
|
certificate: serializeAws_restJson1ClientTlsCertificate(input.certificate, context),
|
|
4788
|
-
})), (input.enforce
|
|
4789
|
-
input.ports !== null && { ports: serializeAws_restJson1PortSet(input.ports, context) })), (input.validation !== undefined &&
|
|
4790
|
-
input.validation !== null && {
|
|
4758
|
+
})), (input.enforce != null && { enforce: input.enforce })), (input.ports != null && { ports: serializeAws_restJson1PortSet(input.ports, context) })), (input.validation != null && {
|
|
4791
4759
|
validation: serializeAws_restJson1TlsValidationContext(input.validation, context),
|
|
4792
4760
|
}));
|
|
4793
4761
|
};
|
|
@@ -4799,62 +4767,49 @@ var serializeAws_restJson1ClientTlsCertificate = function (input, context) {
|
|
|
4799
4767
|
});
|
|
4800
4768
|
};
|
|
4801
4769
|
var serializeAws_restJson1DnsServiceDiscovery = function (input, context) {
|
|
4802
|
-
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 }));
|
|
4803
4771
|
};
|
|
4804
4772
|
var serializeAws_restJson1Duration = function (input, context) {
|
|
4805
|
-
return __assign(__assign({}, (input.unit
|
|
4773
|
+
return __assign(__assign({}, (input.unit != null && { unit: input.unit })), (input.value != null && { value: input.value }));
|
|
4806
4774
|
};
|
|
4807
4775
|
var serializeAws_restJson1EgressFilter = function (input, context) {
|
|
4808
|
-
return __assign({}, (input.type
|
|
4776
|
+
return __assign({}, (input.type != null && { type: input.type }));
|
|
4809
4777
|
};
|
|
4810
4778
|
var serializeAws_restJson1FileAccessLog = function (input, context) {
|
|
4811
|
-
return __assign({}, (input.path
|
|
4779
|
+
return __assign({}, (input.path != null && { path: input.path }));
|
|
4812
4780
|
};
|
|
4813
4781
|
var serializeAws_restJson1GatewayRouteHostnameMatch = function (input, context) {
|
|
4814
|
-
return __assign(__assign({}, (input.exact
|
|
4782
|
+
return __assign(__assign({}, (input.exact != null && { exact: input.exact })), (input.suffix != null && { suffix: input.suffix }));
|
|
4815
4783
|
};
|
|
4816
4784
|
var serializeAws_restJson1GatewayRouteHostnameRewrite = function (input, context) {
|
|
4817
|
-
return __assign({}, (input.defaultTargetHostname
|
|
4818
|
-
input.defaultTargetHostname !== null && { defaultTargetHostname: input.defaultTargetHostname }));
|
|
4785
|
+
return __assign({}, (input.defaultTargetHostname != null && { defaultTargetHostname: input.defaultTargetHostname }));
|
|
4819
4786
|
};
|
|
4820
4787
|
var serializeAws_restJson1GatewayRouteSpec = function (input, context) {
|
|
4821
|
-
return __assign(__assign(__assign(__assign({}, (input.grpcRoute
|
|
4822
|
-
input.grpcRoute !== null && { grpcRoute: serializeAws_restJson1GrpcGatewayRoute(input.grpcRoute, context) })), (input.http2Route !== undefined &&
|
|
4823
|
-
input.http2Route !== null && { http2Route: serializeAws_restJson1HttpGatewayRoute(input.http2Route, context) })), (input.httpRoute !== undefined &&
|
|
4824
|
-
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 }));
|
|
4825
4789
|
};
|
|
4826
4790
|
var serializeAws_restJson1GatewayRouteTarget = function (input, context) {
|
|
4827
|
-
return __assign({}, (input.virtualService
|
|
4828
|
-
input.virtualService !== null && {
|
|
4791
|
+
return __assign({}, (input.virtualService != null && {
|
|
4829
4792
|
virtualService: serializeAws_restJson1GatewayRouteVirtualService(input.virtualService, context),
|
|
4830
4793
|
}));
|
|
4831
4794
|
};
|
|
4832
4795
|
var serializeAws_restJson1GatewayRouteVirtualService = function (input, context) {
|
|
4833
|
-
return __assign({}, (input.virtualServiceName
|
|
4834
|
-
input.virtualServiceName !== null && { virtualServiceName: input.virtualServiceName }));
|
|
4796
|
+
return __assign({}, (input.virtualServiceName != null && { virtualServiceName: input.virtualServiceName }));
|
|
4835
4797
|
};
|
|
4836
4798
|
var serializeAws_restJson1GrpcGatewayRoute = function (input, context) {
|
|
4837
|
-
return __assign(__assign({}, (input.action
|
|
4838
|
-
input.action !== null && { action: serializeAws_restJson1GrpcGatewayRouteAction(input.action, context) })), (input.match !== undefined &&
|
|
4839
|
-
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) }));
|
|
4840
4800
|
};
|
|
4841
4801
|
var serializeAws_restJson1GrpcGatewayRouteAction = function (input, context) {
|
|
4842
|
-
return __assign(__assign({}, (input.rewrite
|
|
4843
|
-
input.rewrite !== null && { rewrite: serializeAws_restJson1GrpcGatewayRouteRewrite(input.rewrite, context) })), (input.target !== undefined &&
|
|
4844
|
-
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) }));
|
|
4845
4803
|
};
|
|
4846
4804
|
var serializeAws_restJson1GrpcGatewayRouteMatch = function (input, context) {
|
|
4847
|
-
return __assign(__assign(__assign({}, (input.hostname
|
|
4848
|
-
input.hostname !== null && {
|
|
4805
|
+
return __assign(__assign(__assign({}, (input.hostname != null && {
|
|
4849
4806
|
hostname: serializeAws_restJson1GatewayRouteHostnameMatch(input.hostname, context),
|
|
4850
|
-
})), (input.metadata
|
|
4851
|
-
input.metadata !== null && {
|
|
4807
|
+
})), (input.metadata != null && {
|
|
4852
4808
|
metadata: serializeAws_restJson1GrpcGatewayRouteMetadataList(input.metadata, context),
|
|
4853
|
-
})), (input.serviceName
|
|
4809
|
+
})), (input.serviceName != null && { serviceName: input.serviceName }));
|
|
4854
4810
|
};
|
|
4855
4811
|
var serializeAws_restJson1GrpcGatewayRouteMetadata = function (input, context) {
|
|
4856
|
-
return __assign(__assign(__assign({}, (input.invert
|
|
4857
|
-
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 }));
|
|
4858
4813
|
};
|
|
4859
4814
|
var serializeAws_restJson1GrpcGatewayRouteMetadataList = function (input, context) {
|
|
4860
4815
|
return input
|
|
@@ -4867,8 +4822,7 @@ var serializeAws_restJson1GrpcGatewayRouteMetadataList = function (input, contex
|
|
|
4867
4822
|
});
|
|
4868
4823
|
};
|
|
4869
4824
|
var serializeAws_restJson1GrpcGatewayRouteRewrite = function (input, context) {
|
|
4870
|
-
return __assign({}, (input.hostname
|
|
4871
|
-
input.hostname !== null && {
|
|
4825
|
+
return __assign({}, (input.hostname != null && {
|
|
4872
4826
|
hostname: serializeAws_restJson1GatewayRouteHostnameRewrite(input.hostname, context),
|
|
4873
4827
|
}));
|
|
4874
4828
|
};
|
|
@@ -4883,17 +4837,13 @@ var serializeAws_restJson1GrpcMetadataMatchMethod = function (input, context) {
|
|
|
4883
4837
|
});
|
|
4884
4838
|
};
|
|
4885
4839
|
var serializeAws_restJson1GrpcRetryPolicy = function (input, context) {
|
|
4886
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.grpcRetryEvents
|
|
4887
|
-
input.grpcRetryEvents !== null && {
|
|
4840
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.grpcRetryEvents != null && {
|
|
4888
4841
|
grpcRetryEvents: serializeAws_restJson1GrpcRetryPolicyEvents(input.grpcRetryEvents, context),
|
|
4889
|
-
})), (input.httpRetryEvents
|
|
4890
|
-
input.httpRetryEvents !== null && {
|
|
4842
|
+
})), (input.httpRetryEvents != null && {
|
|
4891
4843
|
httpRetryEvents: serializeAws_restJson1HttpRetryPolicyEvents(input.httpRetryEvents, context),
|
|
4892
|
-
})), (input.maxRetries
|
|
4893
|
-
input.perRetryTimeout !== null && {
|
|
4844
|
+
})), (input.maxRetries != null && { maxRetries: input.maxRetries })), (input.perRetryTimeout != null && {
|
|
4894
4845
|
perRetryTimeout: serializeAws_restJson1Duration(input.perRetryTimeout, context),
|
|
4895
|
-
})), (input.tcpRetryEvents
|
|
4896
|
-
input.tcpRetryEvents !== null && {
|
|
4846
|
+
})), (input.tcpRetryEvents != null && {
|
|
4897
4847
|
tcpRetryEvents: serializeAws_restJson1TcpRetryPolicyEvents(input.tcpRetryEvents, context),
|
|
4898
4848
|
}));
|
|
4899
4849
|
};
|
|
@@ -4908,25 +4858,20 @@ var serializeAws_restJson1GrpcRetryPolicyEvents = function (input, context) {
|
|
|
4908
4858
|
});
|
|
4909
4859
|
};
|
|
4910
4860
|
var serializeAws_restJson1GrpcRoute = function (input, context) {
|
|
4911
|
-
return __assign(__assign(__assign(__assign({}, (input.action
|
|
4912
|
-
|
|
4913
|
-
|
|
4914
|
-
input.retryPolicy !== null && { retryPolicy: serializeAws_restJson1GrpcRetryPolicy(input.retryPolicy, context) })), (input.timeout !== undefined &&
|
|
4915
|
-
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) }));
|
|
4916
4864
|
};
|
|
4917
4865
|
var serializeAws_restJson1GrpcRouteAction = function (input, context) {
|
|
4918
|
-
return __assign({}, (input.weightedTargets
|
|
4919
|
-
input.weightedTargets !== null && {
|
|
4866
|
+
return __assign({}, (input.weightedTargets != null && {
|
|
4920
4867
|
weightedTargets: serializeAws_restJson1WeightedTargets(input.weightedTargets, context),
|
|
4921
4868
|
}));
|
|
4922
4869
|
};
|
|
4923
4870
|
var serializeAws_restJson1GrpcRouteMatch = function (input, context) {
|
|
4924
|
-
return __assign(__assign(__assign({}, (input.metadata
|
|
4925
|
-
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 }));
|
|
4926
4872
|
};
|
|
4927
4873
|
var serializeAws_restJson1GrpcRouteMetadata = function (input, context) {
|
|
4928
|
-
return __assign(__assign(__assign({}, (input.invert
|
|
4929
|
-
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 }));
|
|
4930
4875
|
};
|
|
4931
4876
|
var serializeAws_restJson1GrpcRouteMetadataList = function (input, context) {
|
|
4932
4877
|
return input
|
|
@@ -4949,9 +4894,7 @@ var serializeAws_restJson1GrpcRouteMetadataMatchMethod = function (input, contex
|
|
|
4949
4894
|
});
|
|
4950
4895
|
};
|
|
4951
4896
|
var serializeAws_restJson1GrpcTimeout = function (input, context) {
|
|
4952
|
-
return __assign(__assign({}, (input.idle
|
|
4953
|
-
input.idle !== null && { idle: serializeAws_restJson1Duration(input.idle, context) })), (input.perRequest !== undefined &&
|
|
4954
|
-
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) }));
|
|
4955
4898
|
};
|
|
4956
4899
|
var serializeAws_restJson1HeaderMatchMethod = function (input, context) {
|
|
4957
4900
|
return HeaderMatchMethod.visit(input, {
|
|
@@ -4964,24 +4907,16 @@ var serializeAws_restJson1HeaderMatchMethod = function (input, context) {
|
|
|
4964
4907
|
});
|
|
4965
4908
|
};
|
|
4966
4909
|
var serializeAws_restJson1HealthCheckPolicy = function (input, context) {
|
|
4967
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.healthyThreshold
|
|
4968
|
-
input.healthyThreshold !== null && { healthyThreshold: input.healthyThreshold })), (input.intervalMillis !== undefined &&
|
|
4969
|
-
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 &&
|
|
4970
|
-
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 }));
|
|
4971
4911
|
};
|
|
4972
4912
|
var serializeAws_restJson1HttpGatewayRoute = function (input, context) {
|
|
4973
|
-
return __assign(__assign({}, (input.action
|
|
4974
|
-
input.action !== null && { action: serializeAws_restJson1HttpGatewayRouteAction(input.action, context) })), (input.match !== undefined &&
|
|
4975
|
-
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) }));
|
|
4976
4914
|
};
|
|
4977
4915
|
var serializeAws_restJson1HttpGatewayRouteAction = function (input, context) {
|
|
4978
|
-
return __assign(__assign({}, (input.rewrite
|
|
4979
|
-
input.rewrite !== null && { rewrite: serializeAws_restJson1HttpGatewayRouteRewrite(input.rewrite, context) })), (input.target !== undefined &&
|
|
4980
|
-
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) }));
|
|
4981
4917
|
};
|
|
4982
4918
|
var serializeAws_restJson1HttpGatewayRouteHeader = function (input, context) {
|
|
4983
|
-
return __assign(__assign(__assign({}, (input.invert
|
|
4984
|
-
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 }));
|
|
4985
4920
|
};
|
|
4986
4921
|
var serializeAws_restJson1HttpGatewayRouteHeaders = function (input, context) {
|
|
4987
4922
|
return input
|
|
@@ -4994,36 +4929,28 @@ var serializeAws_restJson1HttpGatewayRouteHeaders = function (input, context) {
|
|
|
4994
4929
|
});
|
|
4995
4930
|
};
|
|
4996
4931
|
var serializeAws_restJson1HttpGatewayRouteMatch = function (input, context) {
|
|
4997
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.headers
|
|
4998
|
-
input.headers !== null && { headers: serializeAws_restJson1HttpGatewayRouteHeaders(input.headers, context) })), (input.hostname !== undefined &&
|
|
4999
|
-
input.hostname !== null && {
|
|
4932
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.headers != null && { headers: serializeAws_restJson1HttpGatewayRouteHeaders(input.headers, context) })), (input.hostname != null && {
|
|
5000
4933
|
hostname: serializeAws_restJson1GatewayRouteHostnameMatch(input.hostname, context),
|
|
5001
|
-
})), (input.method
|
|
5002
|
-
input.path !== null && { path: serializeAws_restJson1HttpPathMatch(input.path, context) })), (input.prefix !== undefined && input.prefix !== null && { prefix: input.prefix })), (input.queryParameters !== undefined &&
|
|
5003
|
-
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 && {
|
|
5004
4935
|
queryParameters: serializeAws_restJson1HttpQueryParameters(input.queryParameters, context),
|
|
5005
4936
|
}));
|
|
5006
4937
|
};
|
|
5007
4938
|
var serializeAws_restJson1HttpGatewayRoutePathRewrite = function (input, context) {
|
|
5008
|
-
return __assign({}, (input.exact
|
|
4939
|
+
return __assign({}, (input.exact != null && { exact: input.exact }));
|
|
5009
4940
|
};
|
|
5010
4941
|
var serializeAws_restJson1HttpGatewayRoutePrefixRewrite = function (input, context) {
|
|
5011
|
-
return __assign(__assign({}, (input.defaultPrefix
|
|
4942
|
+
return __assign(__assign({}, (input.defaultPrefix != null && { defaultPrefix: input.defaultPrefix })), (input.value != null && { value: input.value }));
|
|
5012
4943
|
};
|
|
5013
4944
|
var serializeAws_restJson1HttpGatewayRouteRewrite = function (input, context) {
|
|
5014
|
-
return __assign(__assign(__assign({}, (input.hostname
|
|
5015
|
-
input.hostname !== null && {
|
|
4945
|
+
return __assign(__assign(__assign({}, (input.hostname != null && {
|
|
5016
4946
|
hostname: serializeAws_restJson1GatewayRouteHostnameRewrite(input.hostname, context),
|
|
5017
|
-
})), (input.path
|
|
5018
|
-
input.path !== null && { path: serializeAws_restJson1HttpGatewayRoutePathRewrite(input.path, context) })), (input.prefix !== undefined &&
|
|
5019
|
-
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) }));
|
|
5020
4948
|
};
|
|
5021
4949
|
var serializeAws_restJson1HttpPathMatch = function (input, context) {
|
|
5022
|
-
return __assign(__assign({}, (input.exact
|
|
4950
|
+
return __assign(__assign({}, (input.exact != null && { exact: input.exact })), (input.regex != null && { regex: input.regex }));
|
|
5023
4951
|
};
|
|
5024
4952
|
var serializeAws_restJson1HttpQueryParameter = function (input, context) {
|
|
5025
|
-
return __assign(__assign({}, (input.match
|
|
5026
|
-
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 }));
|
|
5027
4954
|
};
|
|
5028
4955
|
var serializeAws_restJson1HttpQueryParameters = function (input, context) {
|
|
5029
4956
|
return input
|
|
@@ -5036,14 +4963,11 @@ var serializeAws_restJson1HttpQueryParameters = function (input, context) {
|
|
|
5036
4963
|
});
|
|
5037
4964
|
};
|
|
5038
4965
|
var serializeAws_restJson1HttpRetryPolicy = function (input, context) {
|
|
5039
|
-
return __assign(__assign(__assign(__assign({}, (input.httpRetryEvents
|
|
5040
|
-
input.httpRetryEvents !== null && {
|
|
4966
|
+
return __assign(__assign(__assign(__assign({}, (input.httpRetryEvents != null && {
|
|
5041
4967
|
httpRetryEvents: serializeAws_restJson1HttpRetryPolicyEvents(input.httpRetryEvents, context),
|
|
5042
|
-
})), (input.maxRetries
|
|
5043
|
-
input.perRetryTimeout !== null && {
|
|
4968
|
+
})), (input.maxRetries != null && { maxRetries: input.maxRetries })), (input.perRetryTimeout != null && {
|
|
5044
4969
|
perRetryTimeout: serializeAws_restJson1Duration(input.perRetryTimeout, context),
|
|
5045
|
-
})), (input.tcpRetryEvents
|
|
5046
|
-
input.tcpRetryEvents !== null && {
|
|
4970
|
+
})), (input.tcpRetryEvents != null && {
|
|
5047
4971
|
tcpRetryEvents: serializeAws_restJson1TcpRetryPolicyEvents(input.tcpRetryEvents, context),
|
|
5048
4972
|
}));
|
|
5049
4973
|
};
|
|
@@ -5058,21 +4982,17 @@ var serializeAws_restJson1HttpRetryPolicyEvents = function (input, context) {
|
|
|
5058
4982
|
});
|
|
5059
4983
|
};
|
|
5060
4984
|
var serializeAws_restJson1HttpRoute = function (input, context) {
|
|
5061
|
-
return __assign(__assign(__assign(__assign({}, (input.action
|
|
5062
|
-
|
|
5063
|
-
|
|
5064
|
-
input.retryPolicy !== null && { retryPolicy: serializeAws_restJson1HttpRetryPolicy(input.retryPolicy, context) })), (input.timeout !== undefined &&
|
|
5065
|
-
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) }));
|
|
5066
4988
|
};
|
|
5067
4989
|
var serializeAws_restJson1HttpRouteAction = function (input, context) {
|
|
5068
|
-
return __assign({}, (input.weightedTargets
|
|
5069
|
-
input.weightedTargets !== null && {
|
|
4990
|
+
return __assign({}, (input.weightedTargets != null && {
|
|
5070
4991
|
weightedTargets: serializeAws_restJson1WeightedTargets(input.weightedTargets, context),
|
|
5071
4992
|
}));
|
|
5072
4993
|
};
|
|
5073
4994
|
var serializeAws_restJson1HttpRouteHeader = function (input, context) {
|
|
5074
|
-
return __assign(__assign(__assign({}, (input.invert
|
|
5075
|
-
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 }));
|
|
5076
4996
|
};
|
|
5077
4997
|
var serializeAws_restJson1HttpRouteHeaders = function (input, context) {
|
|
5078
4998
|
return input
|
|
@@ -5085,32 +5005,21 @@ var serializeAws_restJson1HttpRouteHeaders = function (input, context) {
|
|
|
5085
5005
|
});
|
|
5086
5006
|
};
|
|
5087
5007
|
var serializeAws_restJson1HttpRouteMatch = function (input, context) {
|
|
5088
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.headers
|
|
5089
|
-
input.headers !== null && { headers: serializeAws_restJson1HttpRouteHeaders(input.headers, context) })), (input.method !== undefined && input.method !== null && { method: input.method })), (input.path !== undefined &&
|
|
5090
|
-
input.path !== null && { path: serializeAws_restJson1HttpPathMatch(input.path, context) })), (input.prefix !== undefined && input.prefix !== null && { prefix: input.prefix })), (input.queryParameters !== undefined &&
|
|
5091
|
-
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 && {
|
|
5092
5009
|
queryParameters: serializeAws_restJson1HttpQueryParameters(input.queryParameters, context),
|
|
5093
|
-
})), (input.scheme
|
|
5010
|
+
})), (input.scheme != null && { scheme: input.scheme }));
|
|
5094
5011
|
};
|
|
5095
5012
|
var serializeAws_restJson1HttpTimeout = function (input, context) {
|
|
5096
|
-
return __assign(__assign({}, (input.idle
|
|
5097
|
-
input.idle !== null && { idle: serializeAws_restJson1Duration(input.idle, context) })), (input.perRequest !== undefined &&
|
|
5098
|
-
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) }));
|
|
5099
5014
|
};
|
|
5100
5015
|
var serializeAws_restJson1Listener = function (input, context) {
|
|
5101
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.connectionPool
|
|
5102
|
-
input.connectionPool !== null && {
|
|
5016
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.connectionPool != null && {
|
|
5103
5017
|
connectionPool: serializeAws_restJson1VirtualNodeConnectionPool(input.connectionPool, context),
|
|
5104
|
-
})), (input.healthCheck
|
|
5105
|
-
input.healthCheck !== null && {
|
|
5018
|
+
})), (input.healthCheck != null && {
|
|
5106
5019
|
healthCheck: serializeAws_restJson1HealthCheckPolicy(input.healthCheck, context),
|
|
5107
|
-
})), (input.outlierDetection
|
|
5108
|
-
input.outlierDetection !== null && {
|
|
5020
|
+
})), (input.outlierDetection != null && {
|
|
5109
5021
|
outlierDetection: serializeAws_restJson1OutlierDetection(input.outlierDetection, context),
|
|
5110
|
-
})), (input.portMapping
|
|
5111
|
-
input.portMapping !== null && { portMapping: serializeAws_restJson1PortMapping(input.portMapping, context) })), (input.timeout !== undefined &&
|
|
5112
|
-
input.timeout !== null && { timeout: serializeAws_restJson1ListenerTimeout(input.timeout, context) })), (input.tls !== undefined &&
|
|
5113
|
-
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) }));
|
|
5114
5023
|
};
|
|
5115
5024
|
var serializeAws_restJson1Listeners = function (input, context) {
|
|
5116
5025
|
return input
|
|
@@ -5132,17 +5041,14 @@ var serializeAws_restJson1ListenerTimeout = function (input, context) {
|
|
|
5132
5041
|
});
|
|
5133
5042
|
};
|
|
5134
5043
|
var serializeAws_restJson1ListenerTls = function (input, context) {
|
|
5135
|
-
return __assign(__assign(__assign({}, (input.certificate
|
|
5136
|
-
input.certificate !== null && {
|
|
5044
|
+
return __assign(__assign(__assign({}, (input.certificate != null && {
|
|
5137
5045
|
certificate: serializeAws_restJson1ListenerTlsCertificate(input.certificate, context),
|
|
5138
|
-
})), (input.mode
|
|
5139
|
-
input.validation !== null && {
|
|
5046
|
+
})), (input.mode != null && { mode: input.mode })), (input.validation != null && {
|
|
5140
5047
|
validation: serializeAws_restJson1ListenerTlsValidationContext(input.validation, context),
|
|
5141
5048
|
}));
|
|
5142
5049
|
};
|
|
5143
5050
|
var serializeAws_restJson1ListenerTlsAcmCertificate = function (input, context) {
|
|
5144
|
-
return __assign({}, (input.certificateArn
|
|
5145
|
-
input.certificateArn !== null && { certificateArn: input.certificateArn }));
|
|
5051
|
+
return __assign({}, (input.certificateArn != null && { certificateArn: input.certificateArn }));
|
|
5146
5052
|
};
|
|
5147
5053
|
var serializeAws_restJson1ListenerTlsCertificate = function (input, context) {
|
|
5148
5054
|
return ListenerTlsCertificate.visit(input, {
|
|
@@ -5153,18 +5059,17 @@ var serializeAws_restJson1ListenerTlsCertificate = function (input, context) {
|
|
|
5153
5059
|
});
|
|
5154
5060
|
};
|
|
5155
5061
|
var serializeAws_restJson1ListenerTlsFileCertificate = function (input, context) {
|
|
5156
|
-
return __assign(__assign({}, (input.certificateChain
|
|
5157
|
-
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 }));
|
|
5158
5063
|
};
|
|
5159
5064
|
var serializeAws_restJson1ListenerTlsSdsCertificate = function (input, context) {
|
|
5160
|
-
return __assign({}, (input.secretName
|
|
5065
|
+
return __assign({}, (input.secretName != null && { secretName: input.secretName }));
|
|
5161
5066
|
};
|
|
5162
5067
|
var serializeAws_restJson1ListenerTlsValidationContext = function (input, context) {
|
|
5163
|
-
return __assign(__assign({}, (input.subjectAlternativeNames
|
|
5164
|
-
input.subjectAlternativeNames !== null && {
|
|
5068
|
+
return __assign(__assign({}, (input.subjectAlternativeNames != null && {
|
|
5165
5069
|
subjectAlternativeNames: serializeAws_restJson1SubjectAlternativeNames(input.subjectAlternativeNames, context),
|
|
5166
|
-
})), (input.trust
|
|
5167
|
-
|
|
5070
|
+
})), (input.trust != null && {
|
|
5071
|
+
trust: serializeAws_restJson1ListenerTlsValidationContextTrust(input.trust, context),
|
|
5072
|
+
}));
|
|
5168
5073
|
};
|
|
5169
5074
|
var serializeAws_restJson1ListenerTlsValidationContextTrust = function (input, context) {
|
|
5170
5075
|
return ListenerTlsValidationContextTrust.visit(input, {
|
|
@@ -5174,33 +5079,28 @@ var serializeAws_restJson1ListenerTlsValidationContextTrust = function (input, c
|
|
|
5174
5079
|
});
|
|
5175
5080
|
};
|
|
5176
5081
|
var serializeAws_restJson1Logging = function (input, context) {
|
|
5177
|
-
return __assign({}, (input.accessLog
|
|
5178
|
-
input.accessLog !== null && { accessLog: serializeAws_restJson1AccessLog(input.accessLog, context) }));
|
|
5082
|
+
return __assign({}, (input.accessLog != null && { accessLog: serializeAws_restJson1AccessLog(input.accessLog, context) }));
|
|
5179
5083
|
};
|
|
5180
5084
|
var serializeAws_restJson1MatchRange = function (input, context) {
|
|
5181
|
-
return __assign(__assign({}, (input.end
|
|
5085
|
+
return __assign(__assign({}, (input.end != null && { end: input.end })), (input.start != null && { start: input.start }));
|
|
5182
5086
|
};
|
|
5183
5087
|
var serializeAws_restJson1MeshServiceDiscovery = function (input, context) {
|
|
5184
|
-
return __assign({}, (input.ipPreference
|
|
5088
|
+
return __assign({}, (input.ipPreference != null && { ipPreference: input.ipPreference }));
|
|
5185
5089
|
};
|
|
5186
5090
|
var serializeAws_restJson1MeshSpec = function (input, context) {
|
|
5187
|
-
return __assign(__assign({}, (input.egressFilter
|
|
5188
|
-
|
|
5189
|
-
|
|
5091
|
+
return __assign(__assign({}, (input.egressFilter != null && {
|
|
5092
|
+
egressFilter: serializeAws_restJson1EgressFilter(input.egressFilter, context),
|
|
5093
|
+
})), (input.serviceDiscovery != null && {
|
|
5190
5094
|
serviceDiscovery: serializeAws_restJson1MeshServiceDiscovery(input.serviceDiscovery, context),
|
|
5191
5095
|
}));
|
|
5192
5096
|
};
|
|
5193
5097
|
var serializeAws_restJson1OutlierDetection = function (input, context) {
|
|
5194
|
-
return __assign(__assign(__assign(__assign({}, (input.baseEjectionDuration
|
|
5195
|
-
input.baseEjectionDuration !== null && {
|
|
5098
|
+
return __assign(__assign(__assign(__assign({}, (input.baseEjectionDuration != null && {
|
|
5196
5099
|
baseEjectionDuration: serializeAws_restJson1Duration(input.baseEjectionDuration, context),
|
|
5197
|
-
})), (input.interval
|
|
5198
|
-
input.interval !== null && { interval: serializeAws_restJson1Duration(input.interval, context) })), (input.maxEjectionPercent !== undefined &&
|
|
5199
|
-
input.maxEjectionPercent !== null && { maxEjectionPercent: input.maxEjectionPercent })), (input.maxServerErrors !== undefined &&
|
|
5200
|
-
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 }));
|
|
5201
5101
|
};
|
|
5202
5102
|
var serializeAws_restJson1PortMapping = function (input, context) {
|
|
5203
|
-
return __assign(__assign({}, (input.port
|
|
5103
|
+
return __assign(__assign({}, (input.port != null && { port: input.port })), (input.protocol != null && { protocol: input.protocol }));
|
|
5204
5104
|
};
|
|
5205
5105
|
var serializeAws_restJson1PortSet = function (input, context) {
|
|
5206
5106
|
return input
|
|
@@ -5213,14 +5113,10 @@ var serializeAws_restJson1PortSet = function (input, context) {
|
|
|
5213
5113
|
});
|
|
5214
5114
|
};
|
|
5215
5115
|
var serializeAws_restJson1QueryParameterMatch = function (input, context) {
|
|
5216
|
-
return __assign({}, (input.exact
|
|
5116
|
+
return __assign({}, (input.exact != null && { exact: input.exact }));
|
|
5217
5117
|
};
|
|
5218
5118
|
var serializeAws_restJson1RouteSpec = function (input, context) {
|
|
5219
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.grpcRoute
|
|
5220
|
-
input.grpcRoute !== null && { grpcRoute: serializeAws_restJson1GrpcRoute(input.grpcRoute, context) })), (input.http2Route !== undefined &&
|
|
5221
|
-
input.http2Route !== null && { http2Route: serializeAws_restJson1HttpRoute(input.http2Route, context) })), (input.httpRoute !== undefined &&
|
|
5222
|
-
input.httpRoute !== null && { httpRoute: serializeAws_restJson1HttpRoute(input.httpRoute, context) })), (input.priority !== undefined && input.priority !== null && { priority: input.priority })), (input.tcpRoute !== undefined &&
|
|
5223
|
-
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) }));
|
|
5224
5120
|
};
|
|
5225
5121
|
var serializeAws_restJson1ServiceDiscovery = function (input, context) {
|
|
5226
5122
|
return ServiceDiscovery.visit(input, {
|
|
@@ -5240,12 +5136,10 @@ var serializeAws_restJson1SubjectAlternativeNameList = function (input, context)
|
|
|
5240
5136
|
});
|
|
5241
5137
|
};
|
|
5242
5138
|
var serializeAws_restJson1SubjectAlternativeNameMatchers = function (input, context) {
|
|
5243
|
-
return __assign({}, (input.exact
|
|
5244
|
-
input.exact !== null && { exact: serializeAws_restJson1SubjectAlternativeNameList(input.exact, context) }));
|
|
5139
|
+
return __assign({}, (input.exact != null && { exact: serializeAws_restJson1SubjectAlternativeNameList(input.exact, context) }));
|
|
5245
5140
|
};
|
|
5246
5141
|
var serializeAws_restJson1SubjectAlternativeNames = function (input, context) {
|
|
5247
|
-
return __assign({}, (input.match
|
|
5248
|
-
input.match !== null && { match: serializeAws_restJson1SubjectAlternativeNameMatchers(input.match, context) }));
|
|
5142
|
+
return __assign({}, (input.match != null && { match: serializeAws_restJson1SubjectAlternativeNameMatchers(input.match, context) }));
|
|
5249
5143
|
};
|
|
5250
5144
|
var serializeAws_restJson1TagKeyList = function (input, context) {
|
|
5251
5145
|
return input
|
|
@@ -5268,7 +5162,7 @@ var serializeAws_restJson1TagList = function (input, context) {
|
|
|
5268
5162
|
});
|
|
5269
5163
|
};
|
|
5270
5164
|
var serializeAws_restJson1TagRef = function (input, context) {
|
|
5271
|
-
return __assign(__assign({}, (input.key
|
|
5165
|
+
return __assign(__assign({}, (input.key != null && { key: input.key })), (input.value != null && { value: input.value }));
|
|
5272
5166
|
};
|
|
5273
5167
|
var serializeAws_restJson1TcpRetryPolicyEvents = function (input, context) {
|
|
5274
5168
|
return input
|
|
@@ -5281,39 +5175,31 @@ var serializeAws_restJson1TcpRetryPolicyEvents = function (input, context) {
|
|
|
5281
5175
|
});
|
|
5282
5176
|
};
|
|
5283
5177
|
var serializeAws_restJson1TcpRoute = function (input, context) {
|
|
5284
|
-
return __assign(__assign({}, (input.action
|
|
5285
|
-
input.action !== null && { action: serializeAws_restJson1TcpRouteAction(input.action, context) })), (input.timeout !== undefined &&
|
|
5286
|
-
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) }));
|
|
5287
5179
|
};
|
|
5288
5180
|
var serializeAws_restJson1TcpRouteAction = function (input, context) {
|
|
5289
|
-
return __assign({}, (input.weightedTargets
|
|
5290
|
-
input.weightedTargets !== null && {
|
|
5181
|
+
return __assign({}, (input.weightedTargets != null && {
|
|
5291
5182
|
weightedTargets: serializeAws_restJson1WeightedTargets(input.weightedTargets, context),
|
|
5292
5183
|
}));
|
|
5293
5184
|
};
|
|
5294
5185
|
var serializeAws_restJson1TcpTimeout = function (input, context) {
|
|
5295
|
-
return __assign({}, (input.idle
|
|
5296
|
-
input.idle !== null && { idle: serializeAws_restJson1Duration(input.idle, context) }));
|
|
5186
|
+
return __assign({}, (input.idle != null && { idle: serializeAws_restJson1Duration(input.idle, context) }));
|
|
5297
5187
|
};
|
|
5298
5188
|
var serializeAws_restJson1TlsValidationContext = function (input, context) {
|
|
5299
|
-
return __assign(__assign({}, (input.subjectAlternativeNames
|
|
5300
|
-
input.subjectAlternativeNames !== null && {
|
|
5189
|
+
return __assign(__assign({}, (input.subjectAlternativeNames != null && {
|
|
5301
5190
|
subjectAlternativeNames: serializeAws_restJson1SubjectAlternativeNames(input.subjectAlternativeNames, context),
|
|
5302
|
-
})), (input.trust
|
|
5303
|
-
input.trust !== null && { trust: serializeAws_restJson1TlsValidationContextTrust(input.trust, context) }));
|
|
5191
|
+
})), (input.trust != null && { trust: serializeAws_restJson1TlsValidationContextTrust(input.trust, context) }));
|
|
5304
5192
|
};
|
|
5305
5193
|
var serializeAws_restJson1TlsValidationContextAcmTrust = function (input, context) {
|
|
5306
|
-
return __assign({}, (input.certificateAuthorityArns
|
|
5307
|
-
input.certificateAuthorityArns !== null && {
|
|
5194
|
+
return __assign({}, (input.certificateAuthorityArns != null && {
|
|
5308
5195
|
certificateAuthorityArns: serializeAws_restJson1CertificateAuthorityArns(input.certificateAuthorityArns, context),
|
|
5309
5196
|
}));
|
|
5310
5197
|
};
|
|
5311
5198
|
var serializeAws_restJson1TlsValidationContextFileTrust = function (input, context) {
|
|
5312
|
-
return __assign({}, (input.certificateChain
|
|
5313
|
-
input.certificateChain !== null && { certificateChain: input.certificateChain }));
|
|
5199
|
+
return __assign({}, (input.certificateChain != null && { certificateChain: input.certificateChain }));
|
|
5314
5200
|
};
|
|
5315
5201
|
var serializeAws_restJson1TlsValidationContextSdsTrust = function (input, context) {
|
|
5316
|
-
return __assign({}, (input.secretName
|
|
5202
|
+
return __assign({}, (input.secretName != null && { secretName: input.secretName }));
|
|
5317
5203
|
};
|
|
5318
5204
|
var serializeAws_restJson1TlsValidationContextTrust = function (input, context) {
|
|
5319
5205
|
return TlsValidationContextTrust.visit(input, {
|
|
@@ -5330,8 +5216,7 @@ var serializeAws_restJson1VirtualGatewayAccessLog = function (input, context) {
|
|
|
5330
5216
|
});
|
|
5331
5217
|
};
|
|
5332
5218
|
var serializeAws_restJson1VirtualGatewayBackendDefaults = function (input, context) {
|
|
5333
|
-
return __assign({}, (input.clientPolicy
|
|
5334
|
-
input.clientPolicy !== null && {
|
|
5219
|
+
return __assign({}, (input.clientPolicy != null && {
|
|
5335
5220
|
clientPolicy: serializeAws_restJson1VirtualGatewayClientPolicy(input.clientPolicy, context),
|
|
5336
5221
|
}));
|
|
5337
5222
|
};
|
|
@@ -5346,16 +5231,12 @@ var serializeAws_restJson1VirtualGatewayCertificateAuthorityArns = function (inp
|
|
|
5346
5231
|
});
|
|
5347
5232
|
};
|
|
5348
5233
|
var serializeAws_restJson1VirtualGatewayClientPolicy = function (input, context) {
|
|
5349
|
-
return __assign({}, (input.tls
|
|
5350
|
-
input.tls !== null && { tls: serializeAws_restJson1VirtualGatewayClientPolicyTls(input.tls, context) }));
|
|
5234
|
+
return __assign({}, (input.tls != null && { tls: serializeAws_restJson1VirtualGatewayClientPolicyTls(input.tls, context) }));
|
|
5351
5235
|
};
|
|
5352
5236
|
var serializeAws_restJson1VirtualGatewayClientPolicyTls = function (input, context) {
|
|
5353
|
-
return __assign(__assign(__assign(__assign({}, (input.certificate
|
|
5354
|
-
input.certificate !== null && {
|
|
5237
|
+
return __assign(__assign(__assign(__assign({}, (input.certificate != null && {
|
|
5355
5238
|
certificate: serializeAws_restJson1VirtualGatewayClientTlsCertificate(input.certificate, context),
|
|
5356
|
-
})), (input.enforce
|
|
5357
|
-
input.ports !== null && { ports: serializeAws_restJson1PortSet(input.ports, context) })), (input.validation !== undefined &&
|
|
5358
|
-
input.validation !== null && {
|
|
5239
|
+
})), (input.enforce != null && { enforce: input.enforce })), (input.ports != null && { ports: serializeAws_restJson1PortSet(input.ports, context) })), (input.validation != null && {
|
|
5359
5240
|
validation: serializeAws_restJson1VirtualGatewayTlsValidationContext(input.validation, context),
|
|
5360
5241
|
}));
|
|
5361
5242
|
};
|
|
@@ -5375,37 +5256,28 @@ var serializeAws_restJson1VirtualGatewayConnectionPool = function (input, contex
|
|
|
5375
5256
|
});
|
|
5376
5257
|
};
|
|
5377
5258
|
var serializeAws_restJson1VirtualGatewayFileAccessLog = function (input, context) {
|
|
5378
|
-
return __assign({}, (input.path
|
|
5259
|
+
return __assign({}, (input.path != null && { path: input.path }));
|
|
5379
5260
|
};
|
|
5380
5261
|
var serializeAws_restJson1VirtualGatewayGrpcConnectionPool = function (input, context) {
|
|
5381
|
-
return __assign({}, (input.maxRequests
|
|
5262
|
+
return __assign({}, (input.maxRequests != null && { maxRequests: input.maxRequests }));
|
|
5382
5263
|
};
|
|
5383
5264
|
var serializeAws_restJson1VirtualGatewayHealthCheckPolicy = function (input, context) {
|
|
5384
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.healthyThreshold
|
|
5385
|
-
input.healthyThreshold !== null && { healthyThreshold: input.healthyThreshold })), (input.intervalMillis !== undefined &&
|
|
5386
|
-
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 &&
|
|
5387
|
-
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 }));
|
|
5388
5266
|
};
|
|
5389
5267
|
var serializeAws_restJson1VirtualGatewayHttp2ConnectionPool = function (input, context) {
|
|
5390
|
-
return __assign({}, (input.maxRequests
|
|
5268
|
+
return __assign({}, (input.maxRequests != null && { maxRequests: input.maxRequests }));
|
|
5391
5269
|
};
|
|
5392
5270
|
var serializeAws_restJson1VirtualGatewayHttpConnectionPool = function (input, context) {
|
|
5393
|
-
return __assign(__assign({}, (input.maxConnections
|
|
5394
|
-
input.maxConnections !== null && { maxConnections: input.maxConnections })), (input.maxPendingRequests !== undefined &&
|
|
5395
|
-
input.maxPendingRequests !== null && { maxPendingRequests: input.maxPendingRequests }));
|
|
5271
|
+
return __assign(__assign({}, (input.maxConnections != null && { maxConnections: input.maxConnections })), (input.maxPendingRequests != null && { maxPendingRequests: input.maxPendingRequests }));
|
|
5396
5272
|
};
|
|
5397
5273
|
var serializeAws_restJson1VirtualGatewayListener = function (input, context) {
|
|
5398
|
-
return __assign(__assign(__assign(__assign({}, (input.connectionPool
|
|
5399
|
-
input.connectionPool !== null && {
|
|
5274
|
+
return __assign(__assign(__assign(__assign({}, (input.connectionPool != null && {
|
|
5400
5275
|
connectionPool: serializeAws_restJson1VirtualGatewayConnectionPool(input.connectionPool, context),
|
|
5401
|
-
})), (input.healthCheck
|
|
5402
|
-
input.healthCheck !== null && {
|
|
5276
|
+
})), (input.healthCheck != null && {
|
|
5403
5277
|
healthCheck: serializeAws_restJson1VirtualGatewayHealthCheckPolicy(input.healthCheck, context),
|
|
5404
|
-
})), (input.portMapping
|
|
5405
|
-
input.portMapping !== null && {
|
|
5278
|
+
})), (input.portMapping != null && {
|
|
5406
5279
|
portMapping: serializeAws_restJson1VirtualGatewayPortMapping(input.portMapping, context),
|
|
5407
|
-
})), (input.tls
|
|
5408
|
-
input.tls !== null && { tls: serializeAws_restJson1VirtualGatewayListenerTls(input.tls, context) }));
|
|
5280
|
+
})), (input.tls != null && { tls: serializeAws_restJson1VirtualGatewayListenerTls(input.tls, context) }));
|
|
5409
5281
|
};
|
|
5410
5282
|
var serializeAws_restJson1VirtualGatewayListeners = function (input, context) {
|
|
5411
5283
|
return input
|
|
@@ -5418,17 +5290,14 @@ var serializeAws_restJson1VirtualGatewayListeners = function (input, context) {
|
|
|
5418
5290
|
});
|
|
5419
5291
|
};
|
|
5420
5292
|
var serializeAws_restJson1VirtualGatewayListenerTls = function (input, context) {
|
|
5421
|
-
return __assign(__assign(__assign({}, (input.certificate
|
|
5422
|
-
input.certificate !== null && {
|
|
5293
|
+
return __assign(__assign(__assign({}, (input.certificate != null && {
|
|
5423
5294
|
certificate: serializeAws_restJson1VirtualGatewayListenerTlsCertificate(input.certificate, context),
|
|
5424
|
-
})), (input.mode
|
|
5425
|
-
input.validation !== null && {
|
|
5295
|
+
})), (input.mode != null && { mode: input.mode })), (input.validation != null && {
|
|
5426
5296
|
validation: serializeAws_restJson1VirtualGatewayListenerTlsValidationContext(input.validation, context),
|
|
5427
5297
|
}));
|
|
5428
5298
|
};
|
|
5429
5299
|
var serializeAws_restJson1VirtualGatewayListenerTlsAcmCertificate = function (input, context) {
|
|
5430
|
-
return __assign({}, (input.certificateArn
|
|
5431
|
-
input.certificateArn !== null && { certificateArn: input.certificateArn }));
|
|
5300
|
+
return __assign({}, (input.certificateArn != null && { certificateArn: input.certificateArn }));
|
|
5432
5301
|
};
|
|
5433
5302
|
var serializeAws_restJson1VirtualGatewayListenerTlsCertificate = function (input, context) {
|
|
5434
5303
|
return VirtualGatewayListenerTlsCertificate.visit(input, {
|
|
@@ -5439,18 +5308,15 @@ var serializeAws_restJson1VirtualGatewayListenerTlsCertificate = function (input
|
|
|
5439
5308
|
});
|
|
5440
5309
|
};
|
|
5441
5310
|
var serializeAws_restJson1VirtualGatewayListenerTlsFileCertificate = function (input, context) {
|
|
5442
|
-
return __assign(__assign({}, (input.certificateChain
|
|
5443
|
-
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 }));
|
|
5444
5312
|
};
|
|
5445
5313
|
var serializeAws_restJson1VirtualGatewayListenerTlsSdsCertificate = function (input, context) {
|
|
5446
|
-
return __assign({}, (input.secretName
|
|
5314
|
+
return __assign({}, (input.secretName != null && { secretName: input.secretName }));
|
|
5447
5315
|
};
|
|
5448
5316
|
var serializeAws_restJson1VirtualGatewayListenerTlsValidationContext = function (input, context) {
|
|
5449
|
-
return __assign(__assign({}, (input.subjectAlternativeNames
|
|
5450
|
-
input.subjectAlternativeNames !== null && {
|
|
5317
|
+
return __assign(__assign({}, (input.subjectAlternativeNames != null && {
|
|
5451
5318
|
subjectAlternativeNames: serializeAws_restJson1SubjectAlternativeNames(input.subjectAlternativeNames, context),
|
|
5452
|
-
})), (input.trust
|
|
5453
|
-
input.trust !== null && {
|
|
5319
|
+
})), (input.trust != null && {
|
|
5454
5320
|
trust: serializeAws_restJson1VirtualGatewayListenerTlsValidationContextTrust(input.trust, context),
|
|
5455
5321
|
}));
|
|
5456
5322
|
};
|
|
@@ -5462,45 +5328,37 @@ var serializeAws_restJson1VirtualGatewayListenerTlsValidationContextTrust = func
|
|
|
5462
5328
|
});
|
|
5463
5329
|
};
|
|
5464
5330
|
var serializeAws_restJson1VirtualGatewayLogging = function (input, context) {
|
|
5465
|
-
return __assign({}, (input.accessLog
|
|
5466
|
-
input.accessLog !== null && {
|
|
5331
|
+
return __assign({}, (input.accessLog != null && {
|
|
5467
5332
|
accessLog: serializeAws_restJson1VirtualGatewayAccessLog(input.accessLog, context),
|
|
5468
5333
|
}));
|
|
5469
5334
|
};
|
|
5470
5335
|
var serializeAws_restJson1VirtualGatewayPortMapping = function (input, context) {
|
|
5471
|
-
return __assign(__assign({}, (input.port
|
|
5336
|
+
return __assign(__assign({}, (input.port != null && { port: input.port })), (input.protocol != null && { protocol: input.protocol }));
|
|
5472
5337
|
};
|
|
5473
5338
|
var serializeAws_restJson1VirtualGatewaySpec = function (input, context) {
|
|
5474
|
-
return __assign(__assign(__assign({}, (input.backendDefaults
|
|
5475
|
-
input.backendDefaults !== null && {
|
|
5339
|
+
return __assign(__assign(__assign({}, (input.backendDefaults != null && {
|
|
5476
5340
|
backendDefaults: serializeAws_restJson1VirtualGatewayBackendDefaults(input.backendDefaults, context),
|
|
5477
|
-
})), (input.listeners
|
|
5478
|
-
input.listeners !== null && {
|
|
5341
|
+
})), (input.listeners != null && {
|
|
5479
5342
|
listeners: serializeAws_restJson1VirtualGatewayListeners(input.listeners, context),
|
|
5480
|
-
})), (input.logging
|
|
5481
|
-
input.logging !== null && { logging: serializeAws_restJson1VirtualGatewayLogging(input.logging, context) }));
|
|
5343
|
+
})), (input.logging != null && { logging: serializeAws_restJson1VirtualGatewayLogging(input.logging, context) }));
|
|
5482
5344
|
};
|
|
5483
5345
|
var serializeAws_restJson1VirtualGatewayTlsValidationContext = function (input, context) {
|
|
5484
|
-
return __assign(__assign({}, (input.subjectAlternativeNames
|
|
5485
|
-
input.subjectAlternativeNames !== null && {
|
|
5346
|
+
return __assign(__assign({}, (input.subjectAlternativeNames != null && {
|
|
5486
5347
|
subjectAlternativeNames: serializeAws_restJson1SubjectAlternativeNames(input.subjectAlternativeNames, context),
|
|
5487
|
-
})), (input.trust
|
|
5488
|
-
input.trust !== null && {
|
|
5348
|
+
})), (input.trust != null && {
|
|
5489
5349
|
trust: serializeAws_restJson1VirtualGatewayTlsValidationContextTrust(input.trust, context),
|
|
5490
5350
|
}));
|
|
5491
5351
|
};
|
|
5492
5352
|
var serializeAws_restJson1VirtualGatewayTlsValidationContextAcmTrust = function (input, context) {
|
|
5493
|
-
return __assign({}, (input.certificateAuthorityArns
|
|
5494
|
-
input.certificateAuthorityArns !== null && {
|
|
5353
|
+
return __assign({}, (input.certificateAuthorityArns != null && {
|
|
5495
5354
|
certificateAuthorityArns: serializeAws_restJson1VirtualGatewayCertificateAuthorityArns(input.certificateAuthorityArns, context),
|
|
5496
5355
|
}));
|
|
5497
5356
|
};
|
|
5498
5357
|
var serializeAws_restJson1VirtualGatewayTlsValidationContextFileTrust = function (input, context) {
|
|
5499
|
-
return __assign({}, (input.certificateChain
|
|
5500
|
-
input.certificateChain !== null && { certificateChain: input.certificateChain }));
|
|
5358
|
+
return __assign({}, (input.certificateChain != null && { certificateChain: input.certificateChain }));
|
|
5501
5359
|
};
|
|
5502
5360
|
var serializeAws_restJson1VirtualGatewayTlsValidationContextSdsTrust = function (input, context) {
|
|
5503
|
-
return __assign({}, (input.secretName
|
|
5361
|
+
return __assign({}, (input.secretName != null && { secretName: input.secretName }));
|
|
5504
5362
|
};
|
|
5505
5363
|
var serializeAws_restJson1VirtualGatewayTlsValidationContextTrust = function (input, context) {
|
|
5506
5364
|
return VirtualGatewayTlsValidationContextTrust.visit(input, {
|
|
@@ -5520,39 +5378,29 @@ var serializeAws_restJson1VirtualNodeConnectionPool = function (input, context)
|
|
|
5520
5378
|
});
|
|
5521
5379
|
};
|
|
5522
5380
|
var serializeAws_restJson1VirtualNodeGrpcConnectionPool = function (input, context) {
|
|
5523
|
-
return __assign({}, (input.maxRequests
|
|
5381
|
+
return __assign({}, (input.maxRequests != null && { maxRequests: input.maxRequests }));
|
|
5524
5382
|
};
|
|
5525
5383
|
var serializeAws_restJson1VirtualNodeHttp2ConnectionPool = function (input, context) {
|
|
5526
|
-
return __assign({}, (input.maxRequests
|
|
5384
|
+
return __assign({}, (input.maxRequests != null && { maxRequests: input.maxRequests }));
|
|
5527
5385
|
};
|
|
5528
5386
|
var serializeAws_restJson1VirtualNodeHttpConnectionPool = function (input, context) {
|
|
5529
|
-
return __assign(__assign({}, (input.maxConnections
|
|
5530
|
-
input.maxConnections !== null && { maxConnections: input.maxConnections })), (input.maxPendingRequests !== undefined &&
|
|
5531
|
-
input.maxPendingRequests !== null && { maxPendingRequests: input.maxPendingRequests }));
|
|
5387
|
+
return __assign(__assign({}, (input.maxConnections != null && { maxConnections: input.maxConnections })), (input.maxPendingRequests != null && { maxPendingRequests: input.maxPendingRequests }));
|
|
5532
5388
|
};
|
|
5533
5389
|
var serializeAws_restJson1VirtualNodeServiceProvider = function (input, context) {
|
|
5534
|
-
return __assign({}, (input.virtualNodeName
|
|
5535
|
-
input.virtualNodeName !== null && { virtualNodeName: input.virtualNodeName }));
|
|
5390
|
+
return __assign({}, (input.virtualNodeName != null && { virtualNodeName: input.virtualNodeName }));
|
|
5536
5391
|
};
|
|
5537
5392
|
var serializeAws_restJson1VirtualNodeSpec = function (input, context) {
|
|
5538
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.backendDefaults
|
|
5539
|
-
input.backendDefaults !== null && {
|
|
5393
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.backendDefaults != null && {
|
|
5540
5394
|
backendDefaults: serializeAws_restJson1BackendDefaults(input.backendDefaults, context),
|
|
5541
|
-
})), (input.backends
|
|
5542
|
-
input.backends !== null && { backends: serializeAws_restJson1Backends(input.backends, context) })), (input.listeners !== undefined &&
|
|
5543
|
-
input.listeners !== null && { listeners: serializeAws_restJson1Listeners(input.listeners, context) })), (input.logging !== undefined &&
|
|
5544
|
-
input.logging !== null && { logging: serializeAws_restJson1Logging(input.logging, context) })), (input.serviceDiscovery !== undefined &&
|
|
5545
|
-
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 && {
|
|
5546
5396
|
serviceDiscovery: serializeAws_restJson1ServiceDiscovery(input.serviceDiscovery, context),
|
|
5547
5397
|
}));
|
|
5548
5398
|
};
|
|
5549
5399
|
var serializeAws_restJson1VirtualNodeTcpConnectionPool = function (input, context) {
|
|
5550
|
-
return __assign({}, (input.maxConnections
|
|
5551
|
-
input.maxConnections !== null && { maxConnections: input.maxConnections }));
|
|
5400
|
+
return __assign({}, (input.maxConnections != null && { maxConnections: input.maxConnections }));
|
|
5552
5401
|
};
|
|
5553
5402
|
var serializeAws_restJson1VirtualRouterListener = function (input, context) {
|
|
5554
|
-
return __assign({}, (input.portMapping
|
|
5555
|
-
input.portMapping !== null && { portMapping: serializeAws_restJson1PortMapping(input.portMapping, context) }));
|
|
5403
|
+
return __assign({}, (input.portMapping != null && { portMapping: serializeAws_restJson1PortMapping(input.portMapping, context) }));
|
|
5556
5404
|
};
|
|
5557
5405
|
var serializeAws_restJson1VirtualRouterListeners = function (input, context) {
|
|
5558
5406
|
return input
|
|
@@ -5565,19 +5413,17 @@ var serializeAws_restJson1VirtualRouterListeners = function (input, context) {
|
|
|
5565
5413
|
});
|
|
5566
5414
|
};
|
|
5567
5415
|
var serializeAws_restJson1VirtualRouterServiceProvider = function (input, context) {
|
|
5568
|
-
return __assign({}, (input.virtualRouterName
|
|
5569
|
-
input.virtualRouterName !== null && { virtualRouterName: input.virtualRouterName }));
|
|
5416
|
+
return __assign({}, (input.virtualRouterName != null && { virtualRouterName: input.virtualRouterName }));
|
|
5570
5417
|
};
|
|
5571
5418
|
var serializeAws_restJson1VirtualRouterSpec = function (input, context) {
|
|
5572
|
-
return __assign({}, (input.listeners
|
|
5573
|
-
input.listeners !== null && {
|
|
5419
|
+
return __assign({}, (input.listeners != null && {
|
|
5574
5420
|
listeners: serializeAws_restJson1VirtualRouterListeners(input.listeners, context),
|
|
5575
5421
|
}));
|
|
5576
5422
|
};
|
|
5577
5423
|
var serializeAws_restJson1VirtualServiceBackend = function (input, context) {
|
|
5578
|
-
return __assign(__assign({}, (input.clientPolicy
|
|
5579
|
-
|
|
5580
|
-
|
|
5424
|
+
return __assign(__assign({}, (input.clientPolicy != null && {
|
|
5425
|
+
clientPolicy: serializeAws_restJson1ClientPolicy(input.clientPolicy, context),
|
|
5426
|
+
})), (input.virtualServiceName != null && { virtualServiceName: input.virtualServiceName }));
|
|
5581
5427
|
};
|
|
5582
5428
|
var serializeAws_restJson1VirtualServiceProvider = function (input, context) {
|
|
5583
5429
|
return VirtualServiceProvider.visit(input, {
|
|
@@ -5587,11 +5433,10 @@ var serializeAws_restJson1VirtualServiceProvider = function (input, context) {
|
|
|
5587
5433
|
});
|
|
5588
5434
|
};
|
|
5589
5435
|
var serializeAws_restJson1VirtualServiceSpec = function (input, context) {
|
|
5590
|
-
return __assign({}, (input.provider
|
|
5591
|
-
input.provider !== null && { provider: serializeAws_restJson1VirtualServiceProvider(input.provider, context) }));
|
|
5436
|
+
return __assign({}, (input.provider != null && { provider: serializeAws_restJson1VirtualServiceProvider(input.provider, context) }));
|
|
5592
5437
|
};
|
|
5593
5438
|
var serializeAws_restJson1WeightedTarget = function (input, context) {
|
|
5594
|
-
return __assign(__assign({}, (input.virtualNode
|
|
5439
|
+
return __assign(__assign({}, (input.virtualNode != null && { virtualNode: input.virtualNode })), (input.weight != null && { weight: input.weight }));
|
|
5595
5440
|
};
|
|
5596
5441
|
var serializeAws_restJson1WeightedTargets = function (input, context) {
|
|
5597
5442
|
return input
|
|
@@ -5630,7 +5475,7 @@ var deserializeAws_restJson1AwsCloudMapInstanceAttributes = function (output, co
|
|
|
5630
5475
|
};
|
|
5631
5476
|
var deserializeAws_restJson1AwsCloudMapServiceDiscovery = function (output, context) {
|
|
5632
5477
|
return {
|
|
5633
|
-
attributes: output.attributes
|
|
5478
|
+
attributes: output.attributes != null
|
|
5634
5479
|
? deserializeAws_restJson1AwsCloudMapInstanceAttributes(output.attributes, context)
|
|
5635
5480
|
: undefined,
|
|
5636
5481
|
ipPreference: __expectString(output.ipPreference),
|
|
@@ -5648,9 +5493,7 @@ var deserializeAws_restJson1Backend = function (output, context) {
|
|
|
5648
5493
|
};
|
|
5649
5494
|
var deserializeAws_restJson1BackendDefaults = function (output, context) {
|
|
5650
5495
|
return {
|
|
5651
|
-
clientPolicy: output.clientPolicy
|
|
5652
|
-
? deserializeAws_restJson1ClientPolicy(output.clientPolicy, context)
|
|
5653
|
-
: undefined,
|
|
5496
|
+
clientPolicy: output.clientPolicy != null ? deserializeAws_restJson1ClientPolicy(output.clientPolicy, context) : undefined,
|
|
5654
5497
|
};
|
|
5655
5498
|
};
|
|
5656
5499
|
var deserializeAws_restJson1Backends = function (output, context) {
|
|
@@ -5677,23 +5520,17 @@ var deserializeAws_restJson1CertificateAuthorityArns = function (output, context
|
|
|
5677
5520
|
};
|
|
5678
5521
|
var deserializeAws_restJson1ClientPolicy = function (output, context) {
|
|
5679
5522
|
return {
|
|
5680
|
-
tls: output.tls
|
|
5681
|
-
? deserializeAws_restJson1ClientPolicyTls(output.tls, context)
|
|
5682
|
-
: undefined,
|
|
5523
|
+
tls: output.tls != null ? deserializeAws_restJson1ClientPolicyTls(output.tls, context) : undefined,
|
|
5683
5524
|
};
|
|
5684
5525
|
};
|
|
5685
5526
|
var deserializeAws_restJson1ClientPolicyTls = function (output, context) {
|
|
5686
5527
|
return {
|
|
5687
|
-
certificate: output.certificate
|
|
5528
|
+
certificate: output.certificate != null
|
|
5688
5529
|
? deserializeAws_restJson1ClientTlsCertificate(__expectUnion(output.certificate), context)
|
|
5689
5530
|
: undefined,
|
|
5690
5531
|
enforce: __expectBoolean(output.enforce),
|
|
5691
|
-
ports: output.ports
|
|
5692
|
-
|
|
5693
|
-
: undefined,
|
|
5694
|
-
validation: output.validation !== undefined && output.validation !== null
|
|
5695
|
-
? deserializeAws_restJson1TlsValidationContext(output.validation, context)
|
|
5696
|
-
: undefined,
|
|
5532
|
+
ports: output.ports != null ? deserializeAws_restJson1PortSet(output.ports, context) : undefined,
|
|
5533
|
+
validation: output.validation != null ? deserializeAws_restJson1TlsValidationContext(output.validation, context) : undefined,
|
|
5697
5534
|
};
|
|
5698
5535
|
};
|
|
5699
5536
|
var deserializeAws_restJson1ClientTlsCertificate = function (output, context) {
|
|
@@ -5736,15 +5573,9 @@ var deserializeAws_restJson1GatewayRouteData = function (output, context) {
|
|
|
5736
5573
|
return {
|
|
5737
5574
|
gatewayRouteName: __expectString(output.gatewayRouteName),
|
|
5738
5575
|
meshName: __expectString(output.meshName),
|
|
5739
|
-
metadata: output.metadata
|
|
5740
|
-
|
|
5741
|
-
|
|
5742
|
-
spec: output.spec !== undefined && output.spec !== null
|
|
5743
|
-
? deserializeAws_restJson1GatewayRouteSpec(output.spec, context)
|
|
5744
|
-
: undefined,
|
|
5745
|
-
status: output.status !== undefined && output.status !== null
|
|
5746
|
-
? deserializeAws_restJson1GatewayRouteStatus(output.status, context)
|
|
5747
|
-
: 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,
|
|
5748
5579
|
virtualGatewayName: __expectString(output.virtualGatewayName),
|
|
5749
5580
|
};
|
|
5750
5581
|
};
|
|
@@ -5773,11 +5604,9 @@ var deserializeAws_restJson1GatewayRouteList = function (output, context) {
|
|
|
5773
5604
|
var deserializeAws_restJson1GatewayRouteRef = function (output, context) {
|
|
5774
5605
|
return {
|
|
5775
5606
|
arn: __expectString(output.arn),
|
|
5776
|
-
createdAt: output.createdAt
|
|
5777
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
|
|
5778
|
-
: undefined,
|
|
5607
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
5779
5608
|
gatewayRouteName: __expectString(output.gatewayRouteName),
|
|
5780
|
-
lastUpdatedAt: output.lastUpdatedAt
|
|
5609
|
+
lastUpdatedAt: output.lastUpdatedAt != null
|
|
5781
5610
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
|
|
5782
5611
|
: undefined,
|
|
5783
5612
|
meshName: __expectString(output.meshName),
|
|
@@ -5789,15 +5618,9 @@ var deserializeAws_restJson1GatewayRouteRef = function (output, context) {
|
|
|
5789
5618
|
};
|
|
5790
5619
|
var deserializeAws_restJson1GatewayRouteSpec = function (output, context) {
|
|
5791
5620
|
return {
|
|
5792
|
-
grpcRoute: output.grpcRoute
|
|
5793
|
-
|
|
5794
|
-
|
|
5795
|
-
http2Route: output.http2Route !== undefined && output.http2Route !== null
|
|
5796
|
-
? deserializeAws_restJson1HttpGatewayRoute(output.http2Route, context)
|
|
5797
|
-
: undefined,
|
|
5798
|
-
httpRoute: output.httpRoute !== undefined && output.httpRoute !== null
|
|
5799
|
-
? deserializeAws_restJson1HttpGatewayRoute(output.httpRoute, context)
|
|
5800
|
-
: 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,
|
|
5801
5624
|
priority: __expectInt32(output.priority),
|
|
5802
5625
|
};
|
|
5803
5626
|
};
|
|
@@ -5808,7 +5631,7 @@ var deserializeAws_restJson1GatewayRouteStatus = function (output, context) {
|
|
|
5808
5631
|
};
|
|
5809
5632
|
var deserializeAws_restJson1GatewayRouteTarget = function (output, context) {
|
|
5810
5633
|
return {
|
|
5811
|
-
virtualService: output.virtualService
|
|
5634
|
+
virtualService: output.virtualService != null
|
|
5812
5635
|
? deserializeAws_restJson1GatewayRouteVirtualService(output.virtualService, context)
|
|
5813
5636
|
: undefined,
|
|
5814
5637
|
};
|
|
@@ -5820,30 +5643,20 @@ var deserializeAws_restJson1GatewayRouteVirtualService = function (output, conte
|
|
|
5820
5643
|
};
|
|
5821
5644
|
var deserializeAws_restJson1GrpcGatewayRoute = function (output, context) {
|
|
5822
5645
|
return {
|
|
5823
|
-
action: output.action
|
|
5824
|
-
|
|
5825
|
-
: undefined,
|
|
5826
|
-
match: output.match !== undefined && output.match !== null
|
|
5827
|
-
? deserializeAws_restJson1GrpcGatewayRouteMatch(output.match, context)
|
|
5828
|
-
: undefined,
|
|
5646
|
+
action: output.action != null ? deserializeAws_restJson1GrpcGatewayRouteAction(output.action, context) : undefined,
|
|
5647
|
+
match: output.match != null ? deserializeAws_restJson1GrpcGatewayRouteMatch(output.match, context) : undefined,
|
|
5829
5648
|
};
|
|
5830
5649
|
};
|
|
5831
5650
|
var deserializeAws_restJson1GrpcGatewayRouteAction = function (output, context) {
|
|
5832
5651
|
return {
|
|
5833
|
-
rewrite: output.rewrite
|
|
5834
|
-
|
|
5835
|
-
: undefined,
|
|
5836
|
-
target: output.target !== undefined && output.target !== null
|
|
5837
|
-
? deserializeAws_restJson1GatewayRouteTarget(output.target, context)
|
|
5838
|
-
: undefined,
|
|
5652
|
+
rewrite: output.rewrite != null ? deserializeAws_restJson1GrpcGatewayRouteRewrite(output.rewrite, context) : undefined,
|
|
5653
|
+
target: output.target != null ? deserializeAws_restJson1GatewayRouteTarget(output.target, context) : undefined,
|
|
5839
5654
|
};
|
|
5840
5655
|
};
|
|
5841
5656
|
var deserializeAws_restJson1GrpcGatewayRouteMatch = function (output, context) {
|
|
5842
5657
|
return {
|
|
5843
|
-
hostname: output.hostname
|
|
5844
|
-
|
|
5845
|
-
: undefined,
|
|
5846
|
-
metadata: output.metadata !== undefined && output.metadata !== null
|
|
5658
|
+
hostname: output.hostname != null ? deserializeAws_restJson1GatewayRouteHostnameMatch(output.hostname, context) : undefined,
|
|
5659
|
+
metadata: output.metadata != null
|
|
5847
5660
|
? deserializeAws_restJson1GrpcGatewayRouteMetadataList(output.metadata, context)
|
|
5848
5661
|
: undefined,
|
|
5849
5662
|
serviceName: __expectString(output.serviceName),
|
|
@@ -5852,7 +5665,7 @@ var deserializeAws_restJson1GrpcGatewayRouteMatch = function (output, context) {
|
|
|
5852
5665
|
var deserializeAws_restJson1GrpcGatewayRouteMetadata = function (output, context) {
|
|
5853
5666
|
return {
|
|
5854
5667
|
invert: __expectBoolean(output.invert),
|
|
5855
|
-
match: output.match
|
|
5668
|
+
match: output.match != null
|
|
5856
5669
|
? deserializeAws_restJson1GrpcMetadataMatchMethod(__expectUnion(output.match), context)
|
|
5857
5670
|
: undefined,
|
|
5858
5671
|
name: __expectString(output.name),
|
|
@@ -5871,7 +5684,7 @@ var deserializeAws_restJson1GrpcGatewayRouteMetadataList = function (output, con
|
|
|
5871
5684
|
};
|
|
5872
5685
|
var deserializeAws_restJson1GrpcGatewayRouteRewrite = function (output, context) {
|
|
5873
5686
|
return {
|
|
5874
|
-
hostname: output.hostname
|
|
5687
|
+
hostname: output.hostname != null
|
|
5875
5688
|
? deserializeAws_restJson1GatewayRouteHostnameRewrite(output.hostname, context)
|
|
5876
5689
|
: undefined,
|
|
5877
5690
|
};
|
|
@@ -5898,17 +5711,15 @@ var deserializeAws_restJson1GrpcMetadataMatchMethod = function (output, context)
|
|
|
5898
5711
|
};
|
|
5899
5712
|
var deserializeAws_restJson1GrpcRetryPolicy = function (output, context) {
|
|
5900
5713
|
return {
|
|
5901
|
-
grpcRetryEvents: output.grpcRetryEvents
|
|
5714
|
+
grpcRetryEvents: output.grpcRetryEvents != null
|
|
5902
5715
|
? deserializeAws_restJson1GrpcRetryPolicyEvents(output.grpcRetryEvents, context)
|
|
5903
5716
|
: undefined,
|
|
5904
|
-
httpRetryEvents: output.httpRetryEvents
|
|
5717
|
+
httpRetryEvents: output.httpRetryEvents != null
|
|
5905
5718
|
? deserializeAws_restJson1HttpRetryPolicyEvents(output.httpRetryEvents, context)
|
|
5906
5719
|
: undefined,
|
|
5907
5720
|
maxRetries: __expectLong(output.maxRetries),
|
|
5908
|
-
perRetryTimeout: output.perRetryTimeout
|
|
5909
|
-
|
|
5910
|
-
: undefined,
|
|
5911
|
-
tcpRetryEvents: output.tcpRetryEvents !== undefined && output.tcpRetryEvents !== null
|
|
5721
|
+
perRetryTimeout: output.perRetryTimeout != null ? deserializeAws_restJson1Duration(output.perRetryTimeout, context) : undefined,
|
|
5722
|
+
tcpRetryEvents: output.tcpRetryEvents != null
|
|
5912
5723
|
? deserializeAws_restJson1TcpRetryPolicyEvents(output.tcpRetryEvents, context)
|
|
5913
5724
|
: undefined,
|
|
5914
5725
|
};
|
|
@@ -5926,32 +5737,22 @@ var deserializeAws_restJson1GrpcRetryPolicyEvents = function (output, context) {
|
|
|
5926
5737
|
};
|
|
5927
5738
|
var deserializeAws_restJson1GrpcRoute = function (output, context) {
|
|
5928
5739
|
return {
|
|
5929
|
-
action: output.action
|
|
5930
|
-
|
|
5931
|
-
|
|
5932
|
-
|
|
5933
|
-
? deserializeAws_restJson1GrpcRouteMatch(output.match, context)
|
|
5934
|
-
: undefined,
|
|
5935
|
-
retryPolicy: output.retryPolicy !== undefined && output.retryPolicy !== null
|
|
5936
|
-
? deserializeAws_restJson1GrpcRetryPolicy(output.retryPolicy, context)
|
|
5937
|
-
: undefined,
|
|
5938
|
-
timeout: output.timeout !== undefined && output.timeout !== null
|
|
5939
|
-
? deserializeAws_restJson1GrpcTimeout(output.timeout, context)
|
|
5940
|
-
: 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,
|
|
5941
5744
|
};
|
|
5942
5745
|
};
|
|
5943
5746
|
var deserializeAws_restJson1GrpcRouteAction = function (output, context) {
|
|
5944
5747
|
return {
|
|
5945
|
-
weightedTargets: output.weightedTargets
|
|
5748
|
+
weightedTargets: output.weightedTargets != null
|
|
5946
5749
|
? deserializeAws_restJson1WeightedTargets(output.weightedTargets, context)
|
|
5947
5750
|
: undefined,
|
|
5948
5751
|
};
|
|
5949
5752
|
};
|
|
5950
5753
|
var deserializeAws_restJson1GrpcRouteMatch = function (output, context) {
|
|
5951
5754
|
return {
|
|
5952
|
-
metadata: output.metadata
|
|
5953
|
-
? deserializeAws_restJson1GrpcRouteMetadataList(output.metadata, context)
|
|
5954
|
-
: undefined,
|
|
5755
|
+
metadata: output.metadata != null ? deserializeAws_restJson1GrpcRouteMetadataList(output.metadata, context) : undefined,
|
|
5955
5756
|
methodName: __expectString(output.methodName),
|
|
5956
5757
|
serviceName: __expectString(output.serviceName),
|
|
5957
5758
|
};
|
|
@@ -5959,7 +5760,7 @@ var deserializeAws_restJson1GrpcRouteMatch = function (output, context) {
|
|
|
5959
5760
|
var deserializeAws_restJson1GrpcRouteMetadata = function (output, context) {
|
|
5960
5761
|
return {
|
|
5961
5762
|
invert: __expectBoolean(output.invert),
|
|
5962
|
-
match: output.match
|
|
5763
|
+
match: output.match != null
|
|
5963
5764
|
? deserializeAws_restJson1GrpcRouteMetadataMatchMethod(__expectUnion(output.match), context)
|
|
5964
5765
|
: undefined,
|
|
5965
5766
|
name: __expectString(output.name),
|
|
@@ -5998,12 +5799,8 @@ var deserializeAws_restJson1GrpcRouteMetadataMatchMethod = function (output, con
|
|
|
5998
5799
|
};
|
|
5999
5800
|
var deserializeAws_restJson1GrpcTimeout = function (output, context) {
|
|
6000
5801
|
return {
|
|
6001
|
-
idle: output.idle
|
|
6002
|
-
|
|
6003
|
-
: undefined,
|
|
6004
|
-
perRequest: output.perRequest !== undefined && output.perRequest !== null
|
|
6005
|
-
? deserializeAws_restJson1Duration(output.perRequest, context)
|
|
6006
|
-
: undefined,
|
|
5802
|
+
idle: output.idle != null ? deserializeAws_restJson1Duration(output.idle, context) : undefined,
|
|
5803
|
+
perRequest: output.perRequest != null ? deserializeAws_restJson1Duration(output.perRequest, context) : undefined,
|
|
6007
5804
|
};
|
|
6008
5805
|
};
|
|
6009
5806
|
var deserializeAws_restJson1HeaderMatchMethod = function (output, context) {
|
|
@@ -6039,28 +5836,20 @@ var deserializeAws_restJson1HealthCheckPolicy = function (output, context) {
|
|
|
6039
5836
|
};
|
|
6040
5837
|
var deserializeAws_restJson1HttpGatewayRoute = function (output, context) {
|
|
6041
5838
|
return {
|
|
6042
|
-
action: output.action
|
|
6043
|
-
|
|
6044
|
-
: undefined,
|
|
6045
|
-
match: output.match !== undefined && output.match !== null
|
|
6046
|
-
? deserializeAws_restJson1HttpGatewayRouteMatch(output.match, context)
|
|
6047
|
-
: undefined,
|
|
5839
|
+
action: output.action != null ? deserializeAws_restJson1HttpGatewayRouteAction(output.action, context) : undefined,
|
|
5840
|
+
match: output.match != null ? deserializeAws_restJson1HttpGatewayRouteMatch(output.match, context) : undefined,
|
|
6048
5841
|
};
|
|
6049
5842
|
};
|
|
6050
5843
|
var deserializeAws_restJson1HttpGatewayRouteAction = function (output, context) {
|
|
6051
5844
|
return {
|
|
6052
|
-
rewrite: output.rewrite
|
|
6053
|
-
|
|
6054
|
-
: undefined,
|
|
6055
|
-
target: output.target !== undefined && output.target !== null
|
|
6056
|
-
? deserializeAws_restJson1GatewayRouteTarget(output.target, context)
|
|
6057
|
-
: undefined,
|
|
5845
|
+
rewrite: output.rewrite != null ? deserializeAws_restJson1HttpGatewayRouteRewrite(output.rewrite, context) : undefined,
|
|
5846
|
+
target: output.target != null ? deserializeAws_restJson1GatewayRouteTarget(output.target, context) : undefined,
|
|
6058
5847
|
};
|
|
6059
5848
|
};
|
|
6060
5849
|
var deserializeAws_restJson1HttpGatewayRouteHeader = function (output, context) {
|
|
6061
5850
|
return {
|
|
6062
5851
|
invert: __expectBoolean(output.invert),
|
|
6063
|
-
match: output.match
|
|
5852
|
+
match: output.match != null
|
|
6064
5853
|
? deserializeAws_restJson1HeaderMatchMethod(__expectUnion(output.match), context)
|
|
6065
5854
|
: undefined,
|
|
6066
5855
|
name: __expectString(output.name),
|
|
@@ -6079,18 +5868,12 @@ var deserializeAws_restJson1HttpGatewayRouteHeaders = function (output, context)
|
|
|
6079
5868
|
};
|
|
6080
5869
|
var deserializeAws_restJson1HttpGatewayRouteMatch = function (output, context) {
|
|
6081
5870
|
return {
|
|
6082
|
-
headers: output.headers
|
|
6083
|
-
|
|
6084
|
-
: undefined,
|
|
6085
|
-
hostname: output.hostname !== undefined && output.hostname !== null
|
|
6086
|
-
? deserializeAws_restJson1GatewayRouteHostnameMatch(output.hostname, context)
|
|
6087
|
-
: undefined,
|
|
5871
|
+
headers: output.headers != null ? deserializeAws_restJson1HttpGatewayRouteHeaders(output.headers, context) : undefined,
|
|
5872
|
+
hostname: output.hostname != null ? deserializeAws_restJson1GatewayRouteHostnameMatch(output.hostname, context) : undefined,
|
|
6088
5873
|
method: __expectString(output.method),
|
|
6089
|
-
path: output.path
|
|
6090
|
-
? deserializeAws_restJson1HttpPathMatch(output.path, context)
|
|
6091
|
-
: undefined,
|
|
5874
|
+
path: output.path != null ? deserializeAws_restJson1HttpPathMatch(output.path, context) : undefined,
|
|
6092
5875
|
prefix: __expectString(output.prefix),
|
|
6093
|
-
queryParameters: output.queryParameters
|
|
5876
|
+
queryParameters: output.queryParameters != null
|
|
6094
5877
|
? deserializeAws_restJson1HttpQueryParameters(output.queryParameters, context)
|
|
6095
5878
|
: undefined,
|
|
6096
5879
|
};
|
|
@@ -6108,15 +5891,11 @@ var deserializeAws_restJson1HttpGatewayRoutePrefixRewrite = function (output, co
|
|
|
6108
5891
|
};
|
|
6109
5892
|
var deserializeAws_restJson1HttpGatewayRouteRewrite = function (output, context) {
|
|
6110
5893
|
return {
|
|
6111
|
-
hostname: output.hostname
|
|
5894
|
+
hostname: output.hostname != null
|
|
6112
5895
|
? deserializeAws_restJson1GatewayRouteHostnameRewrite(output.hostname, context)
|
|
6113
5896
|
: undefined,
|
|
6114
|
-
path: output.path
|
|
6115
|
-
|
|
6116
|
-
: undefined,
|
|
6117
|
-
prefix: output.prefix !== undefined && output.prefix !== null
|
|
6118
|
-
? deserializeAws_restJson1HttpGatewayRoutePrefixRewrite(output.prefix, context)
|
|
6119
|
-
: undefined,
|
|
5897
|
+
path: output.path != null ? deserializeAws_restJson1HttpGatewayRoutePathRewrite(output.path, context) : undefined,
|
|
5898
|
+
prefix: output.prefix != null ? deserializeAws_restJson1HttpGatewayRoutePrefixRewrite(output.prefix, context) : undefined,
|
|
6120
5899
|
};
|
|
6121
5900
|
};
|
|
6122
5901
|
var deserializeAws_restJson1HttpPathMatch = function (output, context) {
|
|
@@ -6127,9 +5906,7 @@ var deserializeAws_restJson1HttpPathMatch = function (output, context) {
|
|
|
6127
5906
|
};
|
|
6128
5907
|
var deserializeAws_restJson1HttpQueryParameter = function (output, context) {
|
|
6129
5908
|
return {
|
|
6130
|
-
match: output.match
|
|
6131
|
-
? deserializeAws_restJson1QueryParameterMatch(output.match, context)
|
|
6132
|
-
: undefined,
|
|
5909
|
+
match: output.match != null ? deserializeAws_restJson1QueryParameterMatch(output.match, context) : undefined,
|
|
6133
5910
|
name: __expectString(output.name),
|
|
6134
5911
|
};
|
|
6135
5912
|
};
|
|
@@ -6146,14 +5923,12 @@ var deserializeAws_restJson1HttpQueryParameters = function (output, context) {
|
|
|
6146
5923
|
};
|
|
6147
5924
|
var deserializeAws_restJson1HttpRetryPolicy = function (output, context) {
|
|
6148
5925
|
return {
|
|
6149
|
-
httpRetryEvents: output.httpRetryEvents
|
|
5926
|
+
httpRetryEvents: output.httpRetryEvents != null
|
|
6150
5927
|
? deserializeAws_restJson1HttpRetryPolicyEvents(output.httpRetryEvents, context)
|
|
6151
5928
|
: undefined,
|
|
6152
5929
|
maxRetries: __expectLong(output.maxRetries),
|
|
6153
|
-
perRetryTimeout: output.perRetryTimeout
|
|
6154
|
-
|
|
6155
|
-
: undefined,
|
|
6156
|
-
tcpRetryEvents: output.tcpRetryEvents !== undefined && output.tcpRetryEvents !== null
|
|
5930
|
+
perRetryTimeout: output.perRetryTimeout != null ? deserializeAws_restJson1Duration(output.perRetryTimeout, context) : undefined,
|
|
5931
|
+
tcpRetryEvents: output.tcpRetryEvents != null
|
|
6157
5932
|
? deserializeAws_restJson1TcpRetryPolicyEvents(output.tcpRetryEvents, context)
|
|
6158
5933
|
: undefined,
|
|
6159
5934
|
};
|
|
@@ -6171,23 +5946,15 @@ var deserializeAws_restJson1HttpRetryPolicyEvents = function (output, context) {
|
|
|
6171
5946
|
};
|
|
6172
5947
|
var deserializeAws_restJson1HttpRoute = function (output, context) {
|
|
6173
5948
|
return {
|
|
6174
|
-
action: output.action
|
|
6175
|
-
|
|
6176
|
-
|
|
6177
|
-
|
|
6178
|
-
? deserializeAws_restJson1HttpRouteMatch(output.match, context)
|
|
6179
|
-
: undefined,
|
|
6180
|
-
retryPolicy: output.retryPolicy !== undefined && output.retryPolicy !== null
|
|
6181
|
-
? deserializeAws_restJson1HttpRetryPolicy(output.retryPolicy, context)
|
|
6182
|
-
: undefined,
|
|
6183
|
-
timeout: output.timeout !== undefined && output.timeout !== null
|
|
6184
|
-
? deserializeAws_restJson1HttpTimeout(output.timeout, context)
|
|
6185
|
-
: 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,
|
|
6186
5953
|
};
|
|
6187
5954
|
};
|
|
6188
5955
|
var deserializeAws_restJson1HttpRouteAction = function (output, context) {
|
|
6189
5956
|
return {
|
|
6190
|
-
weightedTargets: output.weightedTargets
|
|
5957
|
+
weightedTargets: output.weightedTargets != null
|
|
6191
5958
|
? deserializeAws_restJson1WeightedTargets(output.weightedTargets, context)
|
|
6192
5959
|
: undefined,
|
|
6193
5960
|
};
|
|
@@ -6195,7 +5962,7 @@ var deserializeAws_restJson1HttpRouteAction = function (output, context) {
|
|
|
6195
5962
|
var deserializeAws_restJson1HttpRouteHeader = function (output, context) {
|
|
6196
5963
|
return {
|
|
6197
5964
|
invert: __expectBoolean(output.invert),
|
|
6198
|
-
match: output.match
|
|
5965
|
+
match: output.match != null
|
|
6199
5966
|
? deserializeAws_restJson1HeaderMatchMethod(__expectUnion(output.match), context)
|
|
6200
5967
|
: undefined,
|
|
6201
5968
|
name: __expectString(output.name),
|
|
@@ -6214,15 +5981,11 @@ var deserializeAws_restJson1HttpRouteHeaders = function (output, context) {
|
|
|
6214
5981
|
};
|
|
6215
5982
|
var deserializeAws_restJson1HttpRouteMatch = function (output, context) {
|
|
6216
5983
|
return {
|
|
6217
|
-
headers: output.headers
|
|
6218
|
-
? deserializeAws_restJson1HttpRouteHeaders(output.headers, context)
|
|
6219
|
-
: undefined,
|
|
5984
|
+
headers: output.headers != null ? deserializeAws_restJson1HttpRouteHeaders(output.headers, context) : undefined,
|
|
6220
5985
|
method: __expectString(output.method),
|
|
6221
|
-
path: output.path
|
|
6222
|
-
? deserializeAws_restJson1HttpPathMatch(output.path, context)
|
|
6223
|
-
: undefined,
|
|
5986
|
+
path: output.path != null ? deserializeAws_restJson1HttpPathMatch(output.path, context) : undefined,
|
|
6224
5987
|
prefix: __expectString(output.prefix),
|
|
6225
|
-
queryParameters: output.queryParameters
|
|
5988
|
+
queryParameters: output.queryParameters != null
|
|
6226
5989
|
? deserializeAws_restJson1HttpQueryParameters(output.queryParameters, context)
|
|
6227
5990
|
: undefined,
|
|
6228
5991
|
scheme: __expectString(output.scheme),
|
|
@@ -6230,34 +5993,24 @@ var deserializeAws_restJson1HttpRouteMatch = function (output, context) {
|
|
|
6230
5993
|
};
|
|
6231
5994
|
var deserializeAws_restJson1HttpTimeout = function (output, context) {
|
|
6232
5995
|
return {
|
|
6233
|
-
idle: output.idle
|
|
6234
|
-
|
|
6235
|
-
: undefined,
|
|
6236
|
-
perRequest: output.perRequest !== undefined && output.perRequest !== null
|
|
6237
|
-
? deserializeAws_restJson1Duration(output.perRequest, context)
|
|
6238
|
-
: undefined,
|
|
5996
|
+
idle: output.idle != null ? deserializeAws_restJson1Duration(output.idle, context) : undefined,
|
|
5997
|
+
perRequest: output.perRequest != null ? deserializeAws_restJson1Duration(output.perRequest, context) : undefined,
|
|
6239
5998
|
};
|
|
6240
5999
|
};
|
|
6241
6000
|
var deserializeAws_restJson1Listener = function (output, context) {
|
|
6242
6001
|
return {
|
|
6243
|
-
connectionPool: output.connectionPool
|
|
6002
|
+
connectionPool: output.connectionPool != null
|
|
6244
6003
|
? deserializeAws_restJson1VirtualNodeConnectionPool(__expectUnion(output.connectionPool), context)
|
|
6245
6004
|
: undefined,
|
|
6246
|
-
healthCheck: output.healthCheck
|
|
6247
|
-
|
|
6248
|
-
: undefined,
|
|
6249
|
-
outlierDetection: output.outlierDetection !== undefined && output.outlierDetection !== null
|
|
6005
|
+
healthCheck: output.healthCheck != null ? deserializeAws_restJson1HealthCheckPolicy(output.healthCheck, context) : undefined,
|
|
6006
|
+
outlierDetection: output.outlierDetection != null
|
|
6250
6007
|
? deserializeAws_restJson1OutlierDetection(output.outlierDetection, context)
|
|
6251
6008
|
: undefined,
|
|
6252
|
-
portMapping: output.portMapping
|
|
6253
|
-
|
|
6254
|
-
: undefined,
|
|
6255
|
-
timeout: output.timeout !== undefined && output.timeout !== null
|
|
6009
|
+
portMapping: output.portMapping != null ? deserializeAws_restJson1PortMapping(output.portMapping, context) : undefined,
|
|
6010
|
+
timeout: output.timeout != null
|
|
6256
6011
|
? deserializeAws_restJson1ListenerTimeout(__expectUnion(output.timeout), context)
|
|
6257
6012
|
: undefined,
|
|
6258
|
-
tls: output.tls
|
|
6259
|
-
? deserializeAws_restJson1ListenerTls(output.tls, context)
|
|
6260
|
-
: undefined,
|
|
6013
|
+
tls: output.tls != null ? deserializeAws_restJson1ListenerTls(output.tls, context) : undefined,
|
|
6261
6014
|
};
|
|
6262
6015
|
};
|
|
6263
6016
|
var deserializeAws_restJson1Listeners = function (output, context) {
|
|
@@ -6296,11 +6049,11 @@ var deserializeAws_restJson1ListenerTimeout = function (output, context) {
|
|
|
6296
6049
|
};
|
|
6297
6050
|
var deserializeAws_restJson1ListenerTls = function (output, context) {
|
|
6298
6051
|
return {
|
|
6299
|
-
certificate: output.certificate
|
|
6052
|
+
certificate: output.certificate != null
|
|
6300
6053
|
? deserializeAws_restJson1ListenerTlsCertificate(__expectUnion(output.certificate), context)
|
|
6301
6054
|
: undefined,
|
|
6302
6055
|
mode: __expectString(output.mode),
|
|
6303
|
-
validation: output.validation
|
|
6056
|
+
validation: output.validation != null
|
|
6304
6057
|
? deserializeAws_restJson1ListenerTlsValidationContext(output.validation, context)
|
|
6305
6058
|
: undefined,
|
|
6306
6059
|
};
|
|
@@ -6341,10 +6094,10 @@ var deserializeAws_restJson1ListenerTlsSdsCertificate = function (output, contex
|
|
|
6341
6094
|
};
|
|
6342
6095
|
var deserializeAws_restJson1ListenerTlsValidationContext = function (output, context) {
|
|
6343
6096
|
return {
|
|
6344
|
-
subjectAlternativeNames: output.subjectAlternativeNames
|
|
6097
|
+
subjectAlternativeNames: output.subjectAlternativeNames != null
|
|
6345
6098
|
? deserializeAws_restJson1SubjectAlternativeNames(output.subjectAlternativeNames, context)
|
|
6346
6099
|
: undefined,
|
|
6347
|
-
trust: output.trust
|
|
6100
|
+
trust: output.trust != null
|
|
6348
6101
|
? deserializeAws_restJson1ListenerTlsValidationContextTrust(__expectUnion(output.trust), context)
|
|
6349
6102
|
: undefined,
|
|
6350
6103
|
};
|
|
@@ -6364,7 +6117,7 @@ var deserializeAws_restJson1ListenerTlsValidationContextTrust = function (output
|
|
|
6364
6117
|
};
|
|
6365
6118
|
var deserializeAws_restJson1Logging = function (output, context) {
|
|
6366
6119
|
return {
|
|
6367
|
-
accessLog: output.accessLog
|
|
6120
|
+
accessLog: output.accessLog != null
|
|
6368
6121
|
? deserializeAws_restJson1AccessLog(__expectUnion(output.accessLog), context)
|
|
6369
6122
|
: undefined,
|
|
6370
6123
|
};
|
|
@@ -6378,15 +6131,9 @@ var deserializeAws_restJson1MatchRange = function (output, context) {
|
|
|
6378
6131
|
var deserializeAws_restJson1MeshData = function (output, context) {
|
|
6379
6132
|
return {
|
|
6380
6133
|
meshName: __expectString(output.meshName),
|
|
6381
|
-
metadata: output.metadata
|
|
6382
|
-
|
|
6383
|
-
|
|
6384
|
-
spec: output.spec !== undefined && output.spec !== null
|
|
6385
|
-
? deserializeAws_restJson1MeshSpec(output.spec, context)
|
|
6386
|
-
: undefined,
|
|
6387
|
-
status: output.status !== undefined && output.status !== null
|
|
6388
|
-
? deserializeAws_restJson1MeshStatus(output.status, context)
|
|
6389
|
-
: 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,
|
|
6390
6137
|
};
|
|
6391
6138
|
};
|
|
6392
6139
|
var deserializeAws_restJson1MeshList = function (output, context) {
|
|
@@ -6403,10 +6150,8 @@ var deserializeAws_restJson1MeshList = function (output, context) {
|
|
|
6403
6150
|
var deserializeAws_restJson1MeshRef = function (output, context) {
|
|
6404
6151
|
return {
|
|
6405
6152
|
arn: __expectString(output.arn),
|
|
6406
|
-
createdAt: output.createdAt
|
|
6407
|
-
|
|
6408
|
-
: undefined,
|
|
6409
|
-
lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
|
|
6153
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
6154
|
+
lastUpdatedAt: output.lastUpdatedAt != null
|
|
6410
6155
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
|
|
6411
6156
|
: undefined,
|
|
6412
6157
|
meshName: __expectString(output.meshName),
|
|
@@ -6422,10 +6167,8 @@ var deserializeAws_restJson1MeshServiceDiscovery = function (output, context) {
|
|
|
6422
6167
|
};
|
|
6423
6168
|
var deserializeAws_restJson1MeshSpec = function (output, context) {
|
|
6424
6169
|
return {
|
|
6425
|
-
egressFilter: output.egressFilter
|
|
6426
|
-
|
|
6427
|
-
: undefined,
|
|
6428
|
-
serviceDiscovery: output.serviceDiscovery !== undefined && output.serviceDiscovery !== null
|
|
6170
|
+
egressFilter: output.egressFilter != null ? deserializeAws_restJson1EgressFilter(output.egressFilter, context) : undefined,
|
|
6171
|
+
serviceDiscovery: output.serviceDiscovery != null
|
|
6429
6172
|
? deserializeAws_restJson1MeshServiceDiscovery(output.serviceDiscovery, context)
|
|
6430
6173
|
: undefined,
|
|
6431
6174
|
};
|
|
@@ -6437,12 +6180,10 @@ var deserializeAws_restJson1MeshStatus = function (output, context) {
|
|
|
6437
6180
|
};
|
|
6438
6181
|
var deserializeAws_restJson1OutlierDetection = function (output, context) {
|
|
6439
6182
|
return {
|
|
6440
|
-
baseEjectionDuration: output.baseEjectionDuration
|
|
6183
|
+
baseEjectionDuration: output.baseEjectionDuration != null
|
|
6441
6184
|
? deserializeAws_restJson1Duration(output.baseEjectionDuration, context)
|
|
6442
6185
|
: undefined,
|
|
6443
|
-
interval: output.interval
|
|
6444
|
-
? deserializeAws_restJson1Duration(output.interval, context)
|
|
6445
|
-
: undefined,
|
|
6186
|
+
interval: output.interval != null ? deserializeAws_restJson1Duration(output.interval, context) : undefined,
|
|
6446
6187
|
maxEjectionPercent: __expectInt32(output.maxEjectionPercent),
|
|
6447
6188
|
maxServerErrors: __expectLong(output.maxServerErrors),
|
|
6448
6189
|
};
|
|
@@ -6472,10 +6213,8 @@ var deserializeAws_restJson1QueryParameterMatch = function (output, context) {
|
|
|
6472
6213
|
var deserializeAws_restJson1ResourceMetadata = function (output, context) {
|
|
6473
6214
|
return {
|
|
6474
6215
|
arn: __expectString(output.arn),
|
|
6475
|
-
createdAt: output.createdAt
|
|
6476
|
-
|
|
6477
|
-
: undefined,
|
|
6478
|
-
lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
|
|
6216
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
6217
|
+
lastUpdatedAt: output.lastUpdatedAt != null
|
|
6479
6218
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
|
|
6480
6219
|
: undefined,
|
|
6481
6220
|
meshOwner: __expectString(output.meshOwner),
|
|
@@ -6487,16 +6226,10 @@ var deserializeAws_restJson1ResourceMetadata = function (output, context) {
|
|
|
6487
6226
|
var deserializeAws_restJson1RouteData = function (output, context) {
|
|
6488
6227
|
return {
|
|
6489
6228
|
meshName: __expectString(output.meshName),
|
|
6490
|
-
metadata: output.metadata
|
|
6491
|
-
? deserializeAws_restJson1ResourceMetadata(output.metadata, context)
|
|
6492
|
-
: undefined,
|
|
6229
|
+
metadata: output.metadata != null ? deserializeAws_restJson1ResourceMetadata(output.metadata, context) : undefined,
|
|
6493
6230
|
routeName: __expectString(output.routeName),
|
|
6494
|
-
spec: output.spec
|
|
6495
|
-
|
|
6496
|
-
: undefined,
|
|
6497
|
-
status: output.status !== undefined && output.status !== null
|
|
6498
|
-
? deserializeAws_restJson1RouteStatus(output.status, context)
|
|
6499
|
-
: undefined,
|
|
6231
|
+
spec: output.spec != null ? deserializeAws_restJson1RouteSpec(output.spec, context) : undefined,
|
|
6232
|
+
status: output.status != null ? deserializeAws_restJson1RouteStatus(output.status, context) : undefined,
|
|
6500
6233
|
virtualRouterName: __expectString(output.virtualRouterName),
|
|
6501
6234
|
};
|
|
6502
6235
|
};
|
|
@@ -6514,10 +6247,8 @@ var deserializeAws_restJson1RouteList = function (output, context) {
|
|
|
6514
6247
|
var deserializeAws_restJson1RouteRef = function (output, context) {
|
|
6515
6248
|
return {
|
|
6516
6249
|
arn: __expectString(output.arn),
|
|
6517
|
-
createdAt: output.createdAt
|
|
6518
|
-
|
|
6519
|
-
: undefined,
|
|
6520
|
-
lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
|
|
6250
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
6251
|
+
lastUpdatedAt: output.lastUpdatedAt != null
|
|
6521
6252
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
|
|
6522
6253
|
: undefined,
|
|
6523
6254
|
meshName: __expectString(output.meshName),
|
|
@@ -6530,19 +6261,11 @@ var deserializeAws_restJson1RouteRef = function (output, context) {
|
|
|
6530
6261
|
};
|
|
6531
6262
|
var deserializeAws_restJson1RouteSpec = function (output, context) {
|
|
6532
6263
|
return {
|
|
6533
|
-
grpcRoute: output.grpcRoute
|
|
6534
|
-
|
|
6535
|
-
|
|
6536
|
-
http2Route: output.http2Route !== undefined && output.http2Route !== null
|
|
6537
|
-
? deserializeAws_restJson1HttpRoute(output.http2Route, context)
|
|
6538
|
-
: undefined,
|
|
6539
|
-
httpRoute: output.httpRoute !== undefined && output.httpRoute !== null
|
|
6540
|
-
? deserializeAws_restJson1HttpRoute(output.httpRoute, context)
|
|
6541
|
-
: 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,
|
|
6542
6267
|
priority: __expectInt32(output.priority),
|
|
6543
|
-
tcpRoute: output.tcpRoute
|
|
6544
|
-
? deserializeAws_restJson1TcpRoute(output.tcpRoute, context)
|
|
6545
|
-
: undefined,
|
|
6268
|
+
tcpRoute: output.tcpRoute != null ? deserializeAws_restJson1TcpRoute(output.tcpRoute, context) : undefined,
|
|
6546
6269
|
};
|
|
6547
6270
|
};
|
|
6548
6271
|
var deserializeAws_restJson1RouteStatus = function (output, context) {
|
|
@@ -6576,16 +6299,12 @@ var deserializeAws_restJson1SubjectAlternativeNameList = function (output, conte
|
|
|
6576
6299
|
};
|
|
6577
6300
|
var deserializeAws_restJson1SubjectAlternativeNameMatchers = function (output, context) {
|
|
6578
6301
|
return {
|
|
6579
|
-
exact: output.exact
|
|
6580
|
-
? deserializeAws_restJson1SubjectAlternativeNameList(output.exact, context)
|
|
6581
|
-
: undefined,
|
|
6302
|
+
exact: output.exact != null ? deserializeAws_restJson1SubjectAlternativeNameList(output.exact, context) : undefined,
|
|
6582
6303
|
};
|
|
6583
6304
|
};
|
|
6584
6305
|
var deserializeAws_restJson1SubjectAlternativeNames = function (output, context) {
|
|
6585
6306
|
return {
|
|
6586
|
-
match: output.match
|
|
6587
|
-
? deserializeAws_restJson1SubjectAlternativeNameMatchers(output.match, context)
|
|
6588
|
-
: undefined,
|
|
6307
|
+
match: output.match != null ? deserializeAws_restJson1SubjectAlternativeNameMatchers(output.match, context) : undefined,
|
|
6589
6308
|
};
|
|
6590
6309
|
};
|
|
6591
6310
|
var deserializeAws_restJson1TagList = function (output, context) {
|
|
@@ -6618,41 +6337,35 @@ var deserializeAws_restJson1TcpRetryPolicyEvents = function (output, context) {
|
|
|
6618
6337
|
};
|
|
6619
6338
|
var deserializeAws_restJson1TcpRoute = function (output, context) {
|
|
6620
6339
|
return {
|
|
6621
|
-
action: output.action
|
|
6622
|
-
|
|
6623
|
-
: undefined,
|
|
6624
|
-
timeout: output.timeout !== undefined && output.timeout !== null
|
|
6625
|
-
? deserializeAws_restJson1TcpTimeout(output.timeout, context)
|
|
6626
|
-
: undefined,
|
|
6340
|
+
action: output.action != null ? deserializeAws_restJson1TcpRouteAction(output.action, context) : undefined,
|
|
6341
|
+
timeout: output.timeout != null ? deserializeAws_restJson1TcpTimeout(output.timeout, context) : undefined,
|
|
6627
6342
|
};
|
|
6628
6343
|
};
|
|
6629
6344
|
var deserializeAws_restJson1TcpRouteAction = function (output, context) {
|
|
6630
6345
|
return {
|
|
6631
|
-
weightedTargets: output.weightedTargets
|
|
6346
|
+
weightedTargets: output.weightedTargets != null
|
|
6632
6347
|
? deserializeAws_restJson1WeightedTargets(output.weightedTargets, context)
|
|
6633
6348
|
: undefined,
|
|
6634
6349
|
};
|
|
6635
6350
|
};
|
|
6636
6351
|
var deserializeAws_restJson1TcpTimeout = function (output, context) {
|
|
6637
6352
|
return {
|
|
6638
|
-
idle: output.idle
|
|
6639
|
-
? deserializeAws_restJson1Duration(output.idle, context)
|
|
6640
|
-
: undefined,
|
|
6353
|
+
idle: output.idle != null ? deserializeAws_restJson1Duration(output.idle, context) : undefined,
|
|
6641
6354
|
};
|
|
6642
6355
|
};
|
|
6643
6356
|
var deserializeAws_restJson1TlsValidationContext = function (output, context) {
|
|
6644
6357
|
return {
|
|
6645
|
-
subjectAlternativeNames: output.subjectAlternativeNames
|
|
6358
|
+
subjectAlternativeNames: output.subjectAlternativeNames != null
|
|
6646
6359
|
? deserializeAws_restJson1SubjectAlternativeNames(output.subjectAlternativeNames, context)
|
|
6647
6360
|
: undefined,
|
|
6648
|
-
trust: output.trust
|
|
6361
|
+
trust: output.trust != null
|
|
6649
6362
|
? deserializeAws_restJson1TlsValidationContextTrust(__expectUnion(output.trust), context)
|
|
6650
6363
|
: undefined,
|
|
6651
6364
|
};
|
|
6652
6365
|
};
|
|
6653
6366
|
var deserializeAws_restJson1TlsValidationContextAcmTrust = function (output, context) {
|
|
6654
6367
|
return {
|
|
6655
|
-
certificateAuthorityArns: output.certificateAuthorityArns
|
|
6368
|
+
certificateAuthorityArns: output.certificateAuthorityArns != null
|
|
6656
6369
|
? deserializeAws_restJson1CertificateAuthorityArns(output.certificateAuthorityArns, context)
|
|
6657
6370
|
: undefined,
|
|
6658
6371
|
};
|
|
@@ -6695,7 +6408,7 @@ var deserializeAws_restJson1VirtualGatewayAccessLog = function (output, context)
|
|
|
6695
6408
|
};
|
|
6696
6409
|
var deserializeAws_restJson1VirtualGatewayBackendDefaults = function (output, context) {
|
|
6697
6410
|
return {
|
|
6698
|
-
clientPolicy: output.clientPolicy
|
|
6411
|
+
clientPolicy: output.clientPolicy != null
|
|
6699
6412
|
? deserializeAws_restJson1VirtualGatewayClientPolicy(output.clientPolicy, context)
|
|
6700
6413
|
: undefined,
|
|
6701
6414
|
};
|
|
@@ -6713,21 +6426,17 @@ var deserializeAws_restJson1VirtualGatewayCertificateAuthorityArns = function (o
|
|
|
6713
6426
|
};
|
|
6714
6427
|
var deserializeAws_restJson1VirtualGatewayClientPolicy = function (output, context) {
|
|
6715
6428
|
return {
|
|
6716
|
-
tls: output.tls
|
|
6717
|
-
? deserializeAws_restJson1VirtualGatewayClientPolicyTls(output.tls, context)
|
|
6718
|
-
: undefined,
|
|
6429
|
+
tls: output.tls != null ? deserializeAws_restJson1VirtualGatewayClientPolicyTls(output.tls, context) : undefined,
|
|
6719
6430
|
};
|
|
6720
6431
|
};
|
|
6721
6432
|
var deserializeAws_restJson1VirtualGatewayClientPolicyTls = function (output, context) {
|
|
6722
6433
|
return {
|
|
6723
|
-
certificate: output.certificate
|
|
6434
|
+
certificate: output.certificate != null
|
|
6724
6435
|
? deserializeAws_restJson1VirtualGatewayClientTlsCertificate(__expectUnion(output.certificate), context)
|
|
6725
6436
|
: undefined,
|
|
6726
6437
|
enforce: __expectBoolean(output.enforce),
|
|
6727
|
-
ports: output.ports
|
|
6728
|
-
|
|
6729
|
-
: undefined,
|
|
6730
|
-
validation: output.validation !== undefined && output.validation !== null
|
|
6438
|
+
ports: output.ports != null ? deserializeAws_restJson1PortSet(output.ports, context) : undefined,
|
|
6439
|
+
validation: output.validation != null
|
|
6731
6440
|
? deserializeAws_restJson1VirtualGatewayTlsValidationContext(output.validation, context)
|
|
6732
6441
|
: undefined,
|
|
6733
6442
|
};
|
|
@@ -6766,15 +6475,9 @@ var deserializeAws_restJson1VirtualGatewayConnectionPool = function (output, con
|
|
|
6766
6475
|
var deserializeAws_restJson1VirtualGatewayData = function (output, context) {
|
|
6767
6476
|
return {
|
|
6768
6477
|
meshName: __expectString(output.meshName),
|
|
6769
|
-
metadata: output.metadata
|
|
6770
|
-
|
|
6771
|
-
|
|
6772
|
-
spec: output.spec !== undefined && output.spec !== null
|
|
6773
|
-
? deserializeAws_restJson1VirtualGatewaySpec(output.spec, context)
|
|
6774
|
-
: undefined,
|
|
6775
|
-
status: output.status !== undefined && output.status !== null
|
|
6776
|
-
? deserializeAws_restJson1VirtualGatewayStatus(output.status, context)
|
|
6777
|
-
: 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,
|
|
6778
6481
|
virtualGatewayName: __expectString(output.virtualGatewayName),
|
|
6779
6482
|
};
|
|
6780
6483
|
};
|
|
@@ -6823,18 +6526,16 @@ var deserializeAws_restJson1VirtualGatewayList = function (output, context) {
|
|
|
6823
6526
|
};
|
|
6824
6527
|
var deserializeAws_restJson1VirtualGatewayListener = function (output, context) {
|
|
6825
6528
|
return {
|
|
6826
|
-
connectionPool: output.connectionPool
|
|
6529
|
+
connectionPool: output.connectionPool != null
|
|
6827
6530
|
? deserializeAws_restJson1VirtualGatewayConnectionPool(__expectUnion(output.connectionPool), context)
|
|
6828
6531
|
: undefined,
|
|
6829
|
-
healthCheck: output.healthCheck
|
|
6532
|
+
healthCheck: output.healthCheck != null
|
|
6830
6533
|
? deserializeAws_restJson1VirtualGatewayHealthCheckPolicy(output.healthCheck, context)
|
|
6831
6534
|
: undefined,
|
|
6832
|
-
portMapping: output.portMapping
|
|
6535
|
+
portMapping: output.portMapping != null
|
|
6833
6536
|
? deserializeAws_restJson1VirtualGatewayPortMapping(output.portMapping, context)
|
|
6834
6537
|
: undefined,
|
|
6835
|
-
tls: output.tls
|
|
6836
|
-
? deserializeAws_restJson1VirtualGatewayListenerTls(output.tls, context)
|
|
6837
|
-
: undefined,
|
|
6538
|
+
tls: output.tls != null ? deserializeAws_restJson1VirtualGatewayListenerTls(output.tls, context) : undefined,
|
|
6838
6539
|
};
|
|
6839
6540
|
};
|
|
6840
6541
|
var deserializeAws_restJson1VirtualGatewayListeners = function (output, context) {
|
|
@@ -6850,11 +6551,11 @@ var deserializeAws_restJson1VirtualGatewayListeners = function (output, context)
|
|
|
6850
6551
|
};
|
|
6851
6552
|
var deserializeAws_restJson1VirtualGatewayListenerTls = function (output, context) {
|
|
6852
6553
|
return {
|
|
6853
|
-
certificate: output.certificate
|
|
6554
|
+
certificate: output.certificate != null
|
|
6854
6555
|
? deserializeAws_restJson1VirtualGatewayListenerTlsCertificate(__expectUnion(output.certificate), context)
|
|
6855
6556
|
: undefined,
|
|
6856
6557
|
mode: __expectString(output.mode),
|
|
6857
|
-
validation: output.validation
|
|
6558
|
+
validation: output.validation != null
|
|
6858
6559
|
? deserializeAws_restJson1VirtualGatewayListenerTlsValidationContext(output.validation, context)
|
|
6859
6560
|
: undefined,
|
|
6860
6561
|
};
|
|
@@ -6895,10 +6596,10 @@ var deserializeAws_restJson1VirtualGatewayListenerTlsSdsCertificate = function (
|
|
|
6895
6596
|
};
|
|
6896
6597
|
var deserializeAws_restJson1VirtualGatewayListenerTlsValidationContext = function (output, context) {
|
|
6897
6598
|
return {
|
|
6898
|
-
subjectAlternativeNames: output.subjectAlternativeNames
|
|
6599
|
+
subjectAlternativeNames: output.subjectAlternativeNames != null
|
|
6899
6600
|
? deserializeAws_restJson1SubjectAlternativeNames(output.subjectAlternativeNames, context)
|
|
6900
6601
|
: undefined,
|
|
6901
|
-
trust: output.trust
|
|
6602
|
+
trust: output.trust != null
|
|
6902
6603
|
? deserializeAws_restJson1VirtualGatewayListenerTlsValidationContextTrust(__expectUnion(output.trust), context)
|
|
6903
6604
|
: undefined,
|
|
6904
6605
|
};
|
|
@@ -6918,7 +6619,7 @@ var deserializeAws_restJson1VirtualGatewayListenerTlsValidationContextTrust = fu
|
|
|
6918
6619
|
};
|
|
6919
6620
|
var deserializeAws_restJson1VirtualGatewayLogging = function (output, context) {
|
|
6920
6621
|
return {
|
|
6921
|
-
accessLog: output.accessLog
|
|
6622
|
+
accessLog: output.accessLog != null
|
|
6922
6623
|
? deserializeAws_restJson1VirtualGatewayAccessLog(__expectUnion(output.accessLog), context)
|
|
6923
6624
|
: undefined,
|
|
6924
6625
|
};
|
|
@@ -6932,10 +6633,8 @@ var deserializeAws_restJson1VirtualGatewayPortMapping = function (output, contex
|
|
|
6932
6633
|
var deserializeAws_restJson1VirtualGatewayRef = function (output, context) {
|
|
6933
6634
|
return {
|
|
6934
6635
|
arn: __expectString(output.arn),
|
|
6935
|
-
createdAt: output.createdAt
|
|
6936
|
-
|
|
6937
|
-
: undefined,
|
|
6938
|
-
lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
|
|
6636
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
6637
|
+
lastUpdatedAt: output.lastUpdatedAt != null
|
|
6939
6638
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
|
|
6940
6639
|
: undefined,
|
|
6941
6640
|
meshName: __expectString(output.meshName),
|
|
@@ -6947,15 +6646,11 @@ var deserializeAws_restJson1VirtualGatewayRef = function (output, context) {
|
|
|
6947
6646
|
};
|
|
6948
6647
|
var deserializeAws_restJson1VirtualGatewaySpec = function (output, context) {
|
|
6949
6648
|
return {
|
|
6950
|
-
backendDefaults: output.backendDefaults
|
|
6649
|
+
backendDefaults: output.backendDefaults != null
|
|
6951
6650
|
? deserializeAws_restJson1VirtualGatewayBackendDefaults(output.backendDefaults, context)
|
|
6952
6651
|
: undefined,
|
|
6953
|
-
listeners: output.listeners
|
|
6954
|
-
|
|
6955
|
-
: undefined,
|
|
6956
|
-
logging: output.logging !== undefined && output.logging !== null
|
|
6957
|
-
? deserializeAws_restJson1VirtualGatewayLogging(output.logging, context)
|
|
6958
|
-
: undefined,
|
|
6652
|
+
listeners: output.listeners != null ? deserializeAws_restJson1VirtualGatewayListeners(output.listeners, context) : undefined,
|
|
6653
|
+
logging: output.logging != null ? deserializeAws_restJson1VirtualGatewayLogging(output.logging, context) : undefined,
|
|
6959
6654
|
};
|
|
6960
6655
|
};
|
|
6961
6656
|
var deserializeAws_restJson1VirtualGatewayStatus = function (output, context) {
|
|
@@ -6965,17 +6660,17 @@ var deserializeAws_restJson1VirtualGatewayStatus = function (output, context) {
|
|
|
6965
6660
|
};
|
|
6966
6661
|
var deserializeAws_restJson1VirtualGatewayTlsValidationContext = function (output, context) {
|
|
6967
6662
|
return {
|
|
6968
|
-
subjectAlternativeNames: output.subjectAlternativeNames
|
|
6663
|
+
subjectAlternativeNames: output.subjectAlternativeNames != null
|
|
6969
6664
|
? deserializeAws_restJson1SubjectAlternativeNames(output.subjectAlternativeNames, context)
|
|
6970
6665
|
: undefined,
|
|
6971
|
-
trust: output.trust
|
|
6666
|
+
trust: output.trust != null
|
|
6972
6667
|
? deserializeAws_restJson1VirtualGatewayTlsValidationContextTrust(__expectUnion(output.trust), context)
|
|
6973
6668
|
: undefined,
|
|
6974
6669
|
};
|
|
6975
6670
|
};
|
|
6976
6671
|
var deserializeAws_restJson1VirtualGatewayTlsValidationContextAcmTrust = function (output, context) {
|
|
6977
6672
|
return {
|
|
6978
|
-
certificateAuthorityArns: output.certificateAuthorityArns
|
|
6673
|
+
certificateAuthorityArns: output.certificateAuthorityArns != null
|
|
6979
6674
|
? deserializeAws_restJson1VirtualGatewayCertificateAuthorityArns(output.certificateAuthorityArns, context)
|
|
6980
6675
|
: undefined,
|
|
6981
6676
|
};
|
|
@@ -7034,15 +6729,9 @@ var deserializeAws_restJson1VirtualNodeConnectionPool = function (output, contex
|
|
|
7034
6729
|
var deserializeAws_restJson1VirtualNodeData = function (output, context) {
|
|
7035
6730
|
return {
|
|
7036
6731
|
meshName: __expectString(output.meshName),
|
|
7037
|
-
metadata: output.metadata
|
|
7038
|
-
|
|
7039
|
-
|
|
7040
|
-
spec: output.spec !== undefined && output.spec !== null
|
|
7041
|
-
? deserializeAws_restJson1VirtualNodeSpec(output.spec, context)
|
|
7042
|
-
: undefined,
|
|
7043
|
-
status: output.status !== undefined && output.status !== null
|
|
7044
|
-
? deserializeAws_restJson1VirtualNodeStatus(output.status, context)
|
|
7045
|
-
: 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,
|
|
7046
6735
|
virtualNodeName: __expectString(output.virtualNodeName),
|
|
7047
6736
|
};
|
|
7048
6737
|
};
|
|
@@ -7076,10 +6765,8 @@ var deserializeAws_restJson1VirtualNodeList = function (output, context) {
|
|
|
7076
6765
|
var deserializeAws_restJson1VirtualNodeRef = function (output, context) {
|
|
7077
6766
|
return {
|
|
7078
6767
|
arn: __expectString(output.arn),
|
|
7079
|
-
createdAt: output.createdAt
|
|
7080
|
-
|
|
7081
|
-
: undefined,
|
|
7082
|
-
lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
|
|
6768
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
6769
|
+
lastUpdatedAt: output.lastUpdatedAt != null
|
|
7083
6770
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
|
|
7084
6771
|
: undefined,
|
|
7085
6772
|
meshName: __expectString(output.meshName),
|
|
@@ -7096,19 +6783,13 @@ var deserializeAws_restJson1VirtualNodeServiceProvider = function (output, conte
|
|
|
7096
6783
|
};
|
|
7097
6784
|
var deserializeAws_restJson1VirtualNodeSpec = function (output, context) {
|
|
7098
6785
|
return {
|
|
7099
|
-
backendDefaults: output.backendDefaults
|
|
6786
|
+
backendDefaults: output.backendDefaults != null
|
|
7100
6787
|
? deserializeAws_restJson1BackendDefaults(output.backendDefaults, context)
|
|
7101
6788
|
: undefined,
|
|
7102
|
-
backends: output.backends
|
|
7103
|
-
|
|
7104
|
-
|
|
7105
|
-
|
|
7106
|
-
? deserializeAws_restJson1Listeners(output.listeners, context)
|
|
7107
|
-
: undefined,
|
|
7108
|
-
logging: output.logging !== undefined && output.logging !== null
|
|
7109
|
-
? deserializeAws_restJson1Logging(output.logging, context)
|
|
7110
|
-
: undefined,
|
|
7111
|
-
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
|
|
7112
6793
|
? deserializeAws_restJson1ServiceDiscovery(__expectUnion(output.serviceDiscovery), context)
|
|
7113
6794
|
: undefined,
|
|
7114
6795
|
};
|
|
@@ -7126,15 +6807,9 @@ var deserializeAws_restJson1VirtualNodeTcpConnectionPool = function (output, con
|
|
|
7126
6807
|
var deserializeAws_restJson1VirtualRouterData = function (output, context) {
|
|
7127
6808
|
return {
|
|
7128
6809
|
meshName: __expectString(output.meshName),
|
|
7129
|
-
metadata: output.metadata
|
|
7130
|
-
|
|
7131
|
-
|
|
7132
|
-
spec: output.spec !== undefined && output.spec !== null
|
|
7133
|
-
? deserializeAws_restJson1VirtualRouterSpec(output.spec, context)
|
|
7134
|
-
: undefined,
|
|
7135
|
-
status: output.status !== undefined && output.status !== null
|
|
7136
|
-
? deserializeAws_restJson1VirtualRouterStatus(output.status, context)
|
|
7137
|
-
: 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,
|
|
7138
6813
|
virtualRouterName: __expectString(output.virtualRouterName),
|
|
7139
6814
|
};
|
|
7140
6815
|
};
|
|
@@ -7151,9 +6826,7 @@ var deserializeAws_restJson1VirtualRouterList = function (output, context) {
|
|
|
7151
6826
|
};
|
|
7152
6827
|
var deserializeAws_restJson1VirtualRouterListener = function (output, context) {
|
|
7153
6828
|
return {
|
|
7154
|
-
portMapping: output.portMapping
|
|
7155
|
-
? deserializeAws_restJson1PortMapping(output.portMapping, context)
|
|
7156
|
-
: undefined,
|
|
6829
|
+
portMapping: output.portMapping != null ? deserializeAws_restJson1PortMapping(output.portMapping, context) : undefined,
|
|
7157
6830
|
};
|
|
7158
6831
|
};
|
|
7159
6832
|
var deserializeAws_restJson1VirtualRouterListeners = function (output, context) {
|
|
@@ -7170,10 +6843,8 @@ var deserializeAws_restJson1VirtualRouterListeners = function (output, context)
|
|
|
7170
6843
|
var deserializeAws_restJson1VirtualRouterRef = function (output, context) {
|
|
7171
6844
|
return {
|
|
7172
6845
|
arn: __expectString(output.arn),
|
|
7173
|
-
createdAt: output.createdAt
|
|
7174
|
-
|
|
7175
|
-
: undefined,
|
|
7176
|
-
lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
|
|
6846
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
6847
|
+
lastUpdatedAt: output.lastUpdatedAt != null
|
|
7177
6848
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
|
|
7178
6849
|
: undefined,
|
|
7179
6850
|
meshName: __expectString(output.meshName),
|
|
@@ -7190,9 +6861,7 @@ var deserializeAws_restJson1VirtualRouterServiceProvider = function (output, con
|
|
|
7190
6861
|
};
|
|
7191
6862
|
var deserializeAws_restJson1VirtualRouterSpec = function (output, context) {
|
|
7192
6863
|
return {
|
|
7193
|
-
listeners: output.listeners
|
|
7194
|
-
? deserializeAws_restJson1VirtualRouterListeners(output.listeners, context)
|
|
7195
|
-
: undefined,
|
|
6864
|
+
listeners: output.listeners != null ? deserializeAws_restJson1VirtualRouterListeners(output.listeners, context) : undefined,
|
|
7196
6865
|
};
|
|
7197
6866
|
};
|
|
7198
6867
|
var deserializeAws_restJson1VirtualRouterStatus = function (output, context) {
|
|
@@ -7202,24 +6871,16 @@ var deserializeAws_restJson1VirtualRouterStatus = function (output, context) {
|
|
|
7202
6871
|
};
|
|
7203
6872
|
var deserializeAws_restJson1VirtualServiceBackend = function (output, context) {
|
|
7204
6873
|
return {
|
|
7205
|
-
clientPolicy: output.clientPolicy
|
|
7206
|
-
? deserializeAws_restJson1ClientPolicy(output.clientPolicy, context)
|
|
7207
|
-
: undefined,
|
|
6874
|
+
clientPolicy: output.clientPolicy != null ? deserializeAws_restJson1ClientPolicy(output.clientPolicy, context) : undefined,
|
|
7208
6875
|
virtualServiceName: __expectString(output.virtualServiceName),
|
|
7209
6876
|
};
|
|
7210
6877
|
};
|
|
7211
6878
|
var deserializeAws_restJson1VirtualServiceData = function (output, context) {
|
|
7212
6879
|
return {
|
|
7213
6880
|
meshName: __expectString(output.meshName),
|
|
7214
|
-
metadata: output.metadata
|
|
7215
|
-
|
|
7216
|
-
|
|
7217
|
-
spec: output.spec !== undefined && output.spec !== null
|
|
7218
|
-
? deserializeAws_restJson1VirtualServiceSpec(output.spec, context)
|
|
7219
|
-
: undefined,
|
|
7220
|
-
status: output.status !== undefined && output.status !== null
|
|
7221
|
-
? deserializeAws_restJson1VirtualServiceStatus(output.status, context)
|
|
7222
|
-
: 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,
|
|
7223
6884
|
virtualServiceName: __expectString(output.virtualServiceName),
|
|
7224
6885
|
};
|
|
7225
6886
|
};
|
|
@@ -7250,10 +6911,8 @@ var deserializeAws_restJson1VirtualServiceProvider = function (output, context)
|
|
|
7250
6911
|
var deserializeAws_restJson1VirtualServiceRef = function (output, context) {
|
|
7251
6912
|
return {
|
|
7252
6913
|
arn: __expectString(output.arn),
|
|
7253
|
-
createdAt: output.createdAt
|
|
7254
|
-
|
|
7255
|
-
: undefined,
|
|
7256
|
-
lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
|
|
6914
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
6915
|
+
lastUpdatedAt: output.lastUpdatedAt != null
|
|
7257
6916
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
|
|
7258
6917
|
: undefined,
|
|
7259
6918
|
meshName: __expectString(output.meshName),
|
|
@@ -7265,7 +6924,7 @@ var deserializeAws_restJson1VirtualServiceRef = function (output, context) {
|
|
|
7265
6924
|
};
|
|
7266
6925
|
var deserializeAws_restJson1VirtualServiceSpec = function (output, context) {
|
|
7267
6926
|
return {
|
|
7268
|
-
provider: output.provider
|
|
6927
|
+
provider: output.provider != null
|
|
7269
6928
|
? deserializeAws_restJson1VirtualServiceProvider(__expectUnion(output.provider), context)
|
|
7270
6929
|
: undefined,
|
|
7271
6930
|
};
|