@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
|
@@ -41,12 +41,9 @@ const serializeAws_restJson1CreateGatewayRouteCommand = async (input, context) =
|
|
|
41
41
|
let body;
|
|
42
42
|
body = JSON.stringify({
|
|
43
43
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
44
|
-
...(input.gatewayRouteName
|
|
45
|
-
|
|
46
|
-
...(input.
|
|
47
|
-
input.spec !== null && { spec: serializeAws_restJson1GatewayRouteSpec(input.spec, context) }),
|
|
48
|
-
...(input.tags !== undefined &&
|
|
49
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
|
|
44
|
+
...(input.gatewayRouteName != null && { gatewayRouteName: input.gatewayRouteName }),
|
|
45
|
+
...(input.spec != null && { spec: serializeAws_restJson1GatewayRouteSpec(input.spec, context) }),
|
|
46
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
|
|
50
47
|
});
|
|
51
48
|
return new protocol_http_1.HttpRequest({
|
|
52
49
|
protocol,
|
|
@@ -70,11 +67,9 @@ const serializeAws_restJson1CreateMeshCommand = async (input, context) => {
|
|
|
70
67
|
let body;
|
|
71
68
|
body = JSON.stringify({
|
|
72
69
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
73
|
-
...(input.meshName
|
|
74
|
-
...(input.spec
|
|
75
|
-
|
|
76
|
-
...(input.tags !== undefined &&
|
|
77
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
|
|
70
|
+
...(input.meshName != null && { meshName: input.meshName }),
|
|
71
|
+
...(input.spec != null && { spec: serializeAws_restJson1MeshSpec(input.spec, context) }),
|
|
72
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
|
|
78
73
|
});
|
|
79
74
|
return new protocol_http_1.HttpRequest({
|
|
80
75
|
protocol,
|
|
@@ -121,11 +116,9 @@ const serializeAws_restJson1CreateRouteCommand = async (input, context) => {
|
|
|
121
116
|
let body;
|
|
122
117
|
body = JSON.stringify({
|
|
123
118
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
124
|
-
...(input.routeName
|
|
125
|
-
...(input.spec
|
|
126
|
-
|
|
127
|
-
...(input.tags !== undefined &&
|
|
128
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
|
|
119
|
+
...(input.routeName != null && { routeName: input.routeName }),
|
|
120
|
+
...(input.spec != null && { spec: serializeAws_restJson1RouteSpec(input.spec, context) }),
|
|
121
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
|
|
129
122
|
});
|
|
130
123
|
return new protocol_http_1.HttpRequest({
|
|
131
124
|
protocol,
|
|
@@ -163,12 +156,9 @@ const serializeAws_restJson1CreateVirtualGatewayCommand = async (input, context)
|
|
|
163
156
|
let body;
|
|
164
157
|
body = JSON.stringify({
|
|
165
158
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
166
|
-
...(input.spec
|
|
167
|
-
|
|
168
|
-
...(input.
|
|
169
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
|
|
170
|
-
...(input.virtualGatewayName !== undefined &&
|
|
171
|
-
input.virtualGatewayName !== null && { virtualGatewayName: input.virtualGatewayName }),
|
|
159
|
+
...(input.spec != null && { spec: serializeAws_restJson1VirtualGatewaySpec(input.spec, context) }),
|
|
160
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
|
|
161
|
+
...(input.virtualGatewayName != null && { virtualGatewayName: input.virtualGatewayName }),
|
|
172
162
|
});
|
|
173
163
|
return new protocol_http_1.HttpRequest({
|
|
174
164
|
protocol,
|
|
@@ -205,12 +195,9 @@ const serializeAws_restJson1CreateVirtualNodeCommand = async (input, context) =>
|
|
|
205
195
|
let body;
|
|
206
196
|
body = JSON.stringify({
|
|
207
197
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
208
|
-
...(input.spec
|
|
209
|
-
|
|
210
|
-
...(input.
|
|
211
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
|
|
212
|
-
...(input.virtualNodeName !== undefined &&
|
|
213
|
-
input.virtualNodeName !== null && { virtualNodeName: input.virtualNodeName }),
|
|
198
|
+
...(input.spec != null && { spec: serializeAws_restJson1VirtualNodeSpec(input.spec, context) }),
|
|
199
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
|
|
200
|
+
...(input.virtualNodeName != null && { virtualNodeName: input.virtualNodeName }),
|
|
214
201
|
});
|
|
215
202
|
return new protocol_http_1.HttpRequest({
|
|
216
203
|
protocol,
|
|
@@ -248,12 +235,9 @@ const serializeAws_restJson1CreateVirtualRouterCommand = async (input, context)
|
|
|
248
235
|
let body;
|
|
249
236
|
body = JSON.stringify({
|
|
250
237
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
251
|
-
...(input.spec
|
|
252
|
-
|
|
253
|
-
...(input.
|
|
254
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
|
|
255
|
-
...(input.virtualRouterName !== undefined &&
|
|
256
|
-
input.virtualRouterName !== null && { virtualRouterName: input.virtualRouterName }),
|
|
238
|
+
...(input.spec != null && { spec: serializeAws_restJson1VirtualRouterSpec(input.spec, context) }),
|
|
239
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
|
|
240
|
+
...(input.virtualRouterName != null && { virtualRouterName: input.virtualRouterName }),
|
|
257
241
|
});
|
|
258
242
|
return new protocol_http_1.HttpRequest({
|
|
259
243
|
protocol,
|
|
@@ -291,12 +275,9 @@ const serializeAws_restJson1CreateVirtualServiceCommand = async (input, context)
|
|
|
291
275
|
let body;
|
|
292
276
|
body = JSON.stringify({
|
|
293
277
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
294
|
-
...(input.spec
|
|
295
|
-
|
|
296
|
-
...(input.
|
|
297
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
|
|
298
|
-
...(input.virtualServiceName !== undefined &&
|
|
299
|
-
input.virtualServiceName !== null && { virtualServiceName: input.virtualServiceName }),
|
|
278
|
+
...(input.spec != null && { spec: serializeAws_restJson1VirtualServiceSpec(input.spec, context) }),
|
|
279
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
|
|
280
|
+
...(input.virtualServiceName != null && { virtualServiceName: input.virtualServiceName }),
|
|
300
281
|
});
|
|
301
282
|
return new protocol_http_1.HttpRequest({
|
|
302
283
|
protocol,
|
|
@@ -1169,8 +1150,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
1169
1150
|
};
|
|
1170
1151
|
let body;
|
|
1171
1152
|
body = JSON.stringify({
|
|
1172
|
-
...(input.tags
|
|
1173
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
|
|
1153
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
|
|
1174
1154
|
});
|
|
1175
1155
|
return new protocol_http_1.HttpRequest({
|
|
1176
1156
|
protocol,
|
|
@@ -1195,8 +1175,7 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
1195
1175
|
};
|
|
1196
1176
|
let body;
|
|
1197
1177
|
body = JSON.stringify({
|
|
1198
|
-
...(input.tagKeys
|
|
1199
|
-
input.tagKeys !== null && { tagKeys: serializeAws_restJson1TagKeyList(input.tagKeys, context) }),
|
|
1178
|
+
...(input.tagKeys != null && { tagKeys: serializeAws_restJson1TagKeyList(input.tagKeys, context) }),
|
|
1200
1179
|
});
|
|
1201
1180
|
return new protocol_http_1.HttpRequest({
|
|
1202
1181
|
protocol,
|
|
@@ -1254,8 +1233,7 @@ const serializeAws_restJson1UpdateGatewayRouteCommand = async (input, context) =
|
|
|
1254
1233
|
let body;
|
|
1255
1234
|
body = JSON.stringify({
|
|
1256
1235
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
1257
|
-
...(input.spec
|
|
1258
|
-
input.spec !== null && { spec: serializeAws_restJson1GatewayRouteSpec(input.spec, context) }),
|
|
1236
|
+
...(input.spec != null && { spec: serializeAws_restJson1GatewayRouteSpec(input.spec, context) }),
|
|
1259
1237
|
});
|
|
1260
1238
|
return new protocol_http_1.HttpRequest({
|
|
1261
1239
|
protocol,
|
|
@@ -1289,8 +1267,7 @@ const serializeAws_restJson1UpdateMeshCommand = async (input, context) => {
|
|
|
1289
1267
|
let body;
|
|
1290
1268
|
body = JSON.stringify({
|
|
1291
1269
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
1292
|
-
...(input.spec
|
|
1293
|
-
input.spec !== null && { spec: serializeAws_restJson1MeshSpec(input.spec, context) }),
|
|
1270
|
+
...(input.spec != null && { spec: serializeAws_restJson1MeshSpec(input.spec, context) }),
|
|
1294
1271
|
});
|
|
1295
1272
|
return new protocol_http_1.HttpRequest({
|
|
1296
1273
|
protocol,
|
|
@@ -1347,8 +1324,7 @@ const serializeAws_restJson1UpdateRouteCommand = async (input, context) => {
|
|
|
1347
1324
|
let body;
|
|
1348
1325
|
body = JSON.stringify({
|
|
1349
1326
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
1350
|
-
...(input.spec
|
|
1351
|
-
input.spec !== null && { spec: serializeAws_restJson1RouteSpec(input.spec, context) }),
|
|
1327
|
+
...(input.spec != null && { spec: serializeAws_restJson1RouteSpec(input.spec, context) }),
|
|
1352
1328
|
});
|
|
1353
1329
|
return new protocol_http_1.HttpRequest({
|
|
1354
1330
|
protocol,
|
|
@@ -1396,8 +1372,7 @@ const serializeAws_restJson1UpdateVirtualGatewayCommand = async (input, context)
|
|
|
1396
1372
|
let body;
|
|
1397
1373
|
body = JSON.stringify({
|
|
1398
1374
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
1399
|
-
...(input.spec
|
|
1400
|
-
input.spec !== null && { spec: serializeAws_restJson1VirtualGatewaySpec(input.spec, context) }),
|
|
1375
|
+
...(input.spec != null && { spec: serializeAws_restJson1VirtualGatewaySpec(input.spec, context) }),
|
|
1401
1376
|
});
|
|
1402
1377
|
return new protocol_http_1.HttpRequest({
|
|
1403
1378
|
protocol,
|
|
@@ -1445,8 +1420,7 @@ const serializeAws_restJson1UpdateVirtualNodeCommand = async (input, context) =>
|
|
|
1445
1420
|
let body;
|
|
1446
1421
|
body = JSON.stringify({
|
|
1447
1422
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
1448
|
-
...(input.spec
|
|
1449
|
-
input.spec !== null && { spec: serializeAws_restJson1VirtualNodeSpec(input.spec, context) }),
|
|
1423
|
+
...(input.spec != null && { spec: serializeAws_restJson1VirtualNodeSpec(input.spec, context) }),
|
|
1450
1424
|
});
|
|
1451
1425
|
return new protocol_http_1.HttpRequest({
|
|
1452
1426
|
protocol,
|
|
@@ -1494,8 +1468,7 @@ const serializeAws_restJson1UpdateVirtualRouterCommand = async (input, context)
|
|
|
1494
1468
|
let body;
|
|
1495
1469
|
body = JSON.stringify({
|
|
1496
1470
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
1497
|
-
...(input.spec
|
|
1498
|
-
input.spec !== null && { spec: serializeAws_restJson1VirtualRouterSpec(input.spec, context) }),
|
|
1471
|
+
...(input.spec != null && { spec: serializeAws_restJson1VirtualRouterSpec(input.spec, context) }),
|
|
1499
1472
|
});
|
|
1500
1473
|
return new protocol_http_1.HttpRequest({
|
|
1501
1474
|
protocol,
|
|
@@ -1543,8 +1516,7 @@ const serializeAws_restJson1UpdateVirtualServiceCommand = async (input, context)
|
|
|
1543
1516
|
let body;
|
|
1544
1517
|
body = JSON.stringify({
|
|
1545
1518
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
1546
|
-
...(input.spec
|
|
1547
|
-
input.spec !== null && { spec: serializeAws_restJson1VirtualServiceSpec(input.spec, context) }),
|
|
1519
|
+
...(input.spec != null && { spec: serializeAws_restJson1VirtualServiceSpec(input.spec, context) }),
|
|
1548
1520
|
});
|
|
1549
1521
|
return new protocol_http_1.HttpRequest({
|
|
1550
1522
|
protocol,
|
|
@@ -3773,8 +3745,8 @@ const serializeAws_restJson1AccessLog = (input, context) => {
|
|
|
3773
3745
|
};
|
|
3774
3746
|
const serializeAws_restJson1AwsCloudMapInstanceAttribute = (input, context) => {
|
|
3775
3747
|
return {
|
|
3776
|
-
...(input.key
|
|
3777
|
-
...(input.value
|
|
3748
|
+
...(input.key != null && { key: input.key }),
|
|
3749
|
+
...(input.value != null && { value: input.value }),
|
|
3778
3750
|
};
|
|
3779
3751
|
};
|
|
3780
3752
|
const serializeAws_restJson1AwsCloudMapInstanceAttributes = (input, context) => {
|
|
@@ -3789,13 +3761,12 @@ const serializeAws_restJson1AwsCloudMapInstanceAttributes = (input, context) =>
|
|
|
3789
3761
|
};
|
|
3790
3762
|
const serializeAws_restJson1AwsCloudMapServiceDiscovery = (input, context) => {
|
|
3791
3763
|
return {
|
|
3792
|
-
...(input.attributes
|
|
3793
|
-
input.attributes !== null && {
|
|
3764
|
+
...(input.attributes != null && {
|
|
3794
3765
|
attributes: serializeAws_restJson1AwsCloudMapInstanceAttributes(input.attributes, context),
|
|
3795
3766
|
}),
|
|
3796
|
-
...(input.ipPreference
|
|
3797
|
-
...(input.namespaceName
|
|
3798
|
-
...(input.serviceName
|
|
3767
|
+
...(input.ipPreference != null && { ipPreference: input.ipPreference }),
|
|
3768
|
+
...(input.namespaceName != null && { namespaceName: input.namespaceName }),
|
|
3769
|
+
...(input.serviceName != null && { serviceName: input.serviceName }),
|
|
3799
3770
|
};
|
|
3800
3771
|
};
|
|
3801
3772
|
const serializeAws_restJson1Backend = (input, context) => {
|
|
@@ -3806,8 +3777,9 @@ const serializeAws_restJson1Backend = (input, context) => {
|
|
|
3806
3777
|
};
|
|
3807
3778
|
const serializeAws_restJson1BackendDefaults = (input, context) => {
|
|
3808
3779
|
return {
|
|
3809
|
-
...(input.clientPolicy
|
|
3810
|
-
|
|
3780
|
+
...(input.clientPolicy != null && {
|
|
3781
|
+
clientPolicy: serializeAws_restJson1ClientPolicy(input.clientPolicy, context),
|
|
3782
|
+
}),
|
|
3811
3783
|
};
|
|
3812
3784
|
};
|
|
3813
3785
|
const serializeAws_restJson1Backends = (input, context) => {
|
|
@@ -3832,21 +3804,17 @@ const serializeAws_restJson1CertificateAuthorityArns = (input, context) => {
|
|
|
3832
3804
|
};
|
|
3833
3805
|
const serializeAws_restJson1ClientPolicy = (input, context) => {
|
|
3834
3806
|
return {
|
|
3835
|
-
...(input.tls
|
|
3836
|
-
input.tls !== null && { tls: serializeAws_restJson1ClientPolicyTls(input.tls, context) }),
|
|
3807
|
+
...(input.tls != null && { tls: serializeAws_restJson1ClientPolicyTls(input.tls, context) }),
|
|
3837
3808
|
};
|
|
3838
3809
|
};
|
|
3839
3810
|
const serializeAws_restJson1ClientPolicyTls = (input, context) => {
|
|
3840
3811
|
return {
|
|
3841
|
-
...(input.certificate
|
|
3842
|
-
input.certificate !== null && {
|
|
3812
|
+
...(input.certificate != null && {
|
|
3843
3813
|
certificate: serializeAws_restJson1ClientTlsCertificate(input.certificate, context),
|
|
3844
3814
|
}),
|
|
3845
|
-
...(input.enforce
|
|
3846
|
-
...(input.ports
|
|
3847
|
-
|
|
3848
|
-
...(input.validation !== undefined &&
|
|
3849
|
-
input.validation !== null && {
|
|
3815
|
+
...(input.enforce != null && { enforce: input.enforce }),
|
|
3816
|
+
...(input.ports != null && { ports: serializeAws_restJson1PortSet(input.ports, context) }),
|
|
3817
|
+
...(input.validation != null && {
|
|
3850
3818
|
validation: serializeAws_restJson1TlsValidationContext(input.validation, context),
|
|
3851
3819
|
}),
|
|
3852
3820
|
};
|
|
@@ -3860,99 +3828,86 @@ const serializeAws_restJson1ClientTlsCertificate = (input, context) => {
|
|
|
3860
3828
|
};
|
|
3861
3829
|
const serializeAws_restJson1DnsServiceDiscovery = (input, context) => {
|
|
3862
3830
|
return {
|
|
3863
|
-
...(input.hostname
|
|
3864
|
-
...(input.ipPreference
|
|
3865
|
-
...(input.responseType
|
|
3831
|
+
...(input.hostname != null && { hostname: input.hostname }),
|
|
3832
|
+
...(input.ipPreference != null && { ipPreference: input.ipPreference }),
|
|
3833
|
+
...(input.responseType != null && { responseType: input.responseType }),
|
|
3866
3834
|
};
|
|
3867
3835
|
};
|
|
3868
3836
|
const serializeAws_restJson1Duration = (input, context) => {
|
|
3869
3837
|
return {
|
|
3870
|
-
...(input.unit
|
|
3871
|
-
...(input.value
|
|
3838
|
+
...(input.unit != null && { unit: input.unit }),
|
|
3839
|
+
...(input.value != null && { value: input.value }),
|
|
3872
3840
|
};
|
|
3873
3841
|
};
|
|
3874
3842
|
const serializeAws_restJson1EgressFilter = (input, context) => {
|
|
3875
3843
|
return {
|
|
3876
|
-
...(input.type
|
|
3844
|
+
...(input.type != null && { type: input.type }),
|
|
3877
3845
|
};
|
|
3878
3846
|
};
|
|
3879
3847
|
const serializeAws_restJson1FileAccessLog = (input, context) => {
|
|
3880
3848
|
return {
|
|
3881
|
-
...(input.path
|
|
3849
|
+
...(input.path != null && { path: input.path }),
|
|
3882
3850
|
};
|
|
3883
3851
|
};
|
|
3884
3852
|
const serializeAws_restJson1GatewayRouteHostnameMatch = (input, context) => {
|
|
3885
3853
|
return {
|
|
3886
|
-
...(input.exact
|
|
3887
|
-
...(input.suffix
|
|
3854
|
+
...(input.exact != null && { exact: input.exact }),
|
|
3855
|
+
...(input.suffix != null && { suffix: input.suffix }),
|
|
3888
3856
|
};
|
|
3889
3857
|
};
|
|
3890
3858
|
const serializeAws_restJson1GatewayRouteHostnameRewrite = (input, context) => {
|
|
3891
3859
|
return {
|
|
3892
|
-
...(input.defaultTargetHostname
|
|
3893
|
-
input.defaultTargetHostname !== null && { defaultTargetHostname: input.defaultTargetHostname }),
|
|
3860
|
+
...(input.defaultTargetHostname != null && { defaultTargetHostname: input.defaultTargetHostname }),
|
|
3894
3861
|
};
|
|
3895
3862
|
};
|
|
3896
3863
|
const serializeAws_restJson1GatewayRouteSpec = (input, context) => {
|
|
3897
3864
|
return {
|
|
3898
|
-
...(input.grpcRoute
|
|
3899
|
-
|
|
3900
|
-
...(input.
|
|
3901
|
-
|
|
3902
|
-
...(input.httpRoute !== undefined &&
|
|
3903
|
-
input.httpRoute !== null && { httpRoute: serializeAws_restJson1HttpGatewayRoute(input.httpRoute, context) }),
|
|
3904
|
-
...(input.priority !== undefined && input.priority !== null && { priority: input.priority }),
|
|
3865
|
+
...(input.grpcRoute != null && { grpcRoute: serializeAws_restJson1GrpcGatewayRoute(input.grpcRoute, context) }),
|
|
3866
|
+
...(input.http2Route != null && { http2Route: serializeAws_restJson1HttpGatewayRoute(input.http2Route, context) }),
|
|
3867
|
+
...(input.httpRoute != null && { httpRoute: serializeAws_restJson1HttpGatewayRoute(input.httpRoute, context) }),
|
|
3868
|
+
...(input.priority != null && { priority: input.priority }),
|
|
3905
3869
|
};
|
|
3906
3870
|
};
|
|
3907
3871
|
const serializeAws_restJson1GatewayRouteTarget = (input, context) => {
|
|
3908
3872
|
return {
|
|
3909
|
-
...(input.virtualService
|
|
3910
|
-
input.virtualService !== null && {
|
|
3873
|
+
...(input.virtualService != null && {
|
|
3911
3874
|
virtualService: serializeAws_restJson1GatewayRouteVirtualService(input.virtualService, context),
|
|
3912
3875
|
}),
|
|
3913
3876
|
};
|
|
3914
3877
|
};
|
|
3915
3878
|
const serializeAws_restJson1GatewayRouteVirtualService = (input, context) => {
|
|
3916
3879
|
return {
|
|
3917
|
-
...(input.virtualServiceName
|
|
3918
|
-
input.virtualServiceName !== null && { virtualServiceName: input.virtualServiceName }),
|
|
3880
|
+
...(input.virtualServiceName != null && { virtualServiceName: input.virtualServiceName }),
|
|
3919
3881
|
};
|
|
3920
3882
|
};
|
|
3921
3883
|
const serializeAws_restJson1GrpcGatewayRoute = (input, context) => {
|
|
3922
3884
|
return {
|
|
3923
|
-
...(input.action
|
|
3924
|
-
|
|
3925
|
-
...(input.match !== undefined &&
|
|
3926
|
-
input.match !== null && { match: serializeAws_restJson1GrpcGatewayRouteMatch(input.match, context) }),
|
|
3885
|
+
...(input.action != null && { action: serializeAws_restJson1GrpcGatewayRouteAction(input.action, context) }),
|
|
3886
|
+
...(input.match != null && { match: serializeAws_restJson1GrpcGatewayRouteMatch(input.match, context) }),
|
|
3927
3887
|
};
|
|
3928
3888
|
};
|
|
3929
3889
|
const serializeAws_restJson1GrpcGatewayRouteAction = (input, context) => {
|
|
3930
3890
|
return {
|
|
3931
|
-
...(input.rewrite
|
|
3932
|
-
|
|
3933
|
-
...(input.target !== undefined &&
|
|
3934
|
-
input.target !== null && { target: serializeAws_restJson1GatewayRouteTarget(input.target, context) }),
|
|
3891
|
+
...(input.rewrite != null && { rewrite: serializeAws_restJson1GrpcGatewayRouteRewrite(input.rewrite, context) }),
|
|
3892
|
+
...(input.target != null && { target: serializeAws_restJson1GatewayRouteTarget(input.target, context) }),
|
|
3935
3893
|
};
|
|
3936
3894
|
};
|
|
3937
3895
|
const serializeAws_restJson1GrpcGatewayRouteMatch = (input, context) => {
|
|
3938
3896
|
return {
|
|
3939
|
-
...(input.hostname
|
|
3940
|
-
input.hostname !== null && {
|
|
3897
|
+
...(input.hostname != null && {
|
|
3941
3898
|
hostname: serializeAws_restJson1GatewayRouteHostnameMatch(input.hostname, context),
|
|
3942
3899
|
}),
|
|
3943
|
-
...(input.metadata
|
|
3944
|
-
input.metadata !== null && {
|
|
3900
|
+
...(input.metadata != null && {
|
|
3945
3901
|
metadata: serializeAws_restJson1GrpcGatewayRouteMetadataList(input.metadata, context),
|
|
3946
3902
|
}),
|
|
3947
|
-
...(input.serviceName
|
|
3903
|
+
...(input.serviceName != null && { serviceName: input.serviceName }),
|
|
3948
3904
|
};
|
|
3949
3905
|
};
|
|
3950
3906
|
const serializeAws_restJson1GrpcGatewayRouteMetadata = (input, context) => {
|
|
3951
3907
|
return {
|
|
3952
|
-
...(input.invert
|
|
3953
|
-
...(input.match
|
|
3954
|
-
|
|
3955
|
-
...(input.name !== undefined && input.name !== null && { name: input.name }),
|
|
3908
|
+
...(input.invert != null && { invert: input.invert }),
|
|
3909
|
+
...(input.match != null && { match: serializeAws_restJson1GrpcMetadataMatchMethod(input.match, context) }),
|
|
3910
|
+
...(input.name != null && { name: input.name }),
|
|
3956
3911
|
};
|
|
3957
3912
|
};
|
|
3958
3913
|
const serializeAws_restJson1GrpcGatewayRouteMetadataList = (input, context) => {
|
|
@@ -3967,8 +3922,7 @@ const serializeAws_restJson1GrpcGatewayRouteMetadataList = (input, context) => {
|
|
|
3967
3922
|
};
|
|
3968
3923
|
const serializeAws_restJson1GrpcGatewayRouteRewrite = (input, context) => {
|
|
3969
3924
|
return {
|
|
3970
|
-
...(input.hostname
|
|
3971
|
-
input.hostname !== null && {
|
|
3925
|
+
...(input.hostname != null && {
|
|
3972
3926
|
hostname: serializeAws_restJson1GatewayRouteHostnameRewrite(input.hostname, context),
|
|
3973
3927
|
}),
|
|
3974
3928
|
};
|
|
@@ -3985,21 +3939,17 @@ const serializeAws_restJson1GrpcMetadataMatchMethod = (input, context) => {
|
|
|
3985
3939
|
};
|
|
3986
3940
|
const serializeAws_restJson1GrpcRetryPolicy = (input, context) => {
|
|
3987
3941
|
return {
|
|
3988
|
-
...(input.grpcRetryEvents
|
|
3989
|
-
input.grpcRetryEvents !== null && {
|
|
3942
|
+
...(input.grpcRetryEvents != null && {
|
|
3990
3943
|
grpcRetryEvents: serializeAws_restJson1GrpcRetryPolicyEvents(input.grpcRetryEvents, context),
|
|
3991
3944
|
}),
|
|
3992
|
-
...(input.httpRetryEvents
|
|
3993
|
-
input.httpRetryEvents !== null && {
|
|
3945
|
+
...(input.httpRetryEvents != null && {
|
|
3994
3946
|
httpRetryEvents: serializeAws_restJson1HttpRetryPolicyEvents(input.httpRetryEvents, context),
|
|
3995
3947
|
}),
|
|
3996
|
-
...(input.maxRetries
|
|
3997
|
-
...(input.perRetryTimeout
|
|
3998
|
-
input.perRetryTimeout !== null && {
|
|
3948
|
+
...(input.maxRetries != null && { maxRetries: input.maxRetries }),
|
|
3949
|
+
...(input.perRetryTimeout != null && {
|
|
3999
3950
|
perRetryTimeout: serializeAws_restJson1Duration(input.perRetryTimeout, context),
|
|
4000
3951
|
}),
|
|
4001
|
-
...(input.tcpRetryEvents
|
|
4002
|
-
input.tcpRetryEvents !== null && {
|
|
3952
|
+
...(input.tcpRetryEvents != null && {
|
|
4003
3953
|
tcpRetryEvents: serializeAws_restJson1TcpRetryPolicyEvents(input.tcpRetryEvents, context),
|
|
4004
3954
|
}),
|
|
4005
3955
|
};
|
|
@@ -4016,38 +3966,33 @@ const serializeAws_restJson1GrpcRetryPolicyEvents = (input, context) => {
|
|
|
4016
3966
|
};
|
|
4017
3967
|
const serializeAws_restJson1GrpcRoute = (input, context) => {
|
|
4018
3968
|
return {
|
|
4019
|
-
...(input.action
|
|
4020
|
-
|
|
4021
|
-
...(input.
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
...(input.timeout !== undefined &&
|
|
4026
|
-
input.timeout !== null && { timeout: serializeAws_restJson1GrpcTimeout(input.timeout, context) }),
|
|
3969
|
+
...(input.action != null && { action: serializeAws_restJson1GrpcRouteAction(input.action, context) }),
|
|
3970
|
+
...(input.match != null && { match: serializeAws_restJson1GrpcRouteMatch(input.match, context) }),
|
|
3971
|
+
...(input.retryPolicy != null && {
|
|
3972
|
+
retryPolicy: serializeAws_restJson1GrpcRetryPolicy(input.retryPolicy, context),
|
|
3973
|
+
}),
|
|
3974
|
+
...(input.timeout != null && { timeout: serializeAws_restJson1GrpcTimeout(input.timeout, context) }),
|
|
4027
3975
|
};
|
|
4028
3976
|
};
|
|
4029
3977
|
const serializeAws_restJson1GrpcRouteAction = (input, context) => {
|
|
4030
3978
|
return {
|
|
4031
|
-
...(input.weightedTargets
|
|
4032
|
-
input.weightedTargets !== null && {
|
|
3979
|
+
...(input.weightedTargets != null && {
|
|
4033
3980
|
weightedTargets: serializeAws_restJson1WeightedTargets(input.weightedTargets, context),
|
|
4034
3981
|
}),
|
|
4035
3982
|
};
|
|
4036
3983
|
};
|
|
4037
3984
|
const serializeAws_restJson1GrpcRouteMatch = (input, context) => {
|
|
4038
3985
|
return {
|
|
4039
|
-
...(input.metadata
|
|
4040
|
-
|
|
4041
|
-
...(input.
|
|
4042
|
-
...(input.serviceName !== undefined && input.serviceName !== null && { serviceName: input.serviceName }),
|
|
3986
|
+
...(input.metadata != null && { metadata: serializeAws_restJson1GrpcRouteMetadataList(input.metadata, context) }),
|
|
3987
|
+
...(input.methodName != null && { methodName: input.methodName }),
|
|
3988
|
+
...(input.serviceName != null && { serviceName: input.serviceName }),
|
|
4043
3989
|
};
|
|
4044
3990
|
};
|
|
4045
3991
|
const serializeAws_restJson1GrpcRouteMetadata = (input, context) => {
|
|
4046
3992
|
return {
|
|
4047
|
-
...(input.invert
|
|
4048
|
-
...(input.match
|
|
4049
|
-
|
|
4050
|
-
...(input.name !== undefined && input.name !== null && { name: input.name }),
|
|
3993
|
+
...(input.invert != null && { invert: input.invert }),
|
|
3994
|
+
...(input.match != null && { match: serializeAws_restJson1GrpcRouteMetadataMatchMethod(input.match, context) }),
|
|
3995
|
+
...(input.name != null && { name: input.name }),
|
|
4051
3996
|
};
|
|
4052
3997
|
};
|
|
4053
3998
|
const serializeAws_restJson1GrpcRouteMetadataList = (input, context) => {
|
|
@@ -4072,10 +4017,8 @@ const serializeAws_restJson1GrpcRouteMetadataMatchMethod = (input, context) => {
|
|
|
4072
4017
|
};
|
|
4073
4018
|
const serializeAws_restJson1GrpcTimeout = (input, context) => {
|
|
4074
4019
|
return {
|
|
4075
|
-
...(input.idle
|
|
4076
|
-
|
|
4077
|
-
...(input.perRequest !== undefined &&
|
|
4078
|
-
input.perRequest !== null && { perRequest: serializeAws_restJson1Duration(input.perRequest, context) }),
|
|
4020
|
+
...(input.idle != null && { idle: serializeAws_restJson1Duration(input.idle, context) }),
|
|
4021
|
+
...(input.perRequest != null && { perRequest: serializeAws_restJson1Duration(input.perRequest, context) }),
|
|
4079
4022
|
};
|
|
4080
4023
|
};
|
|
4081
4024
|
const serializeAws_restJson1HeaderMatchMethod = (input, context) => {
|
|
@@ -4090,40 +4033,32 @@ const serializeAws_restJson1HeaderMatchMethod = (input, context) => {
|
|
|
4090
4033
|
};
|
|
4091
4034
|
const serializeAws_restJson1HealthCheckPolicy = (input, context) => {
|
|
4092
4035
|
return {
|
|
4093
|
-
...(input.healthyThreshold
|
|
4094
|
-
|
|
4095
|
-
...(input.
|
|
4096
|
-
|
|
4097
|
-
...(input.
|
|
4098
|
-
...(input.
|
|
4099
|
-
...(input.
|
|
4100
|
-
...(input.timeoutMillis !== undefined && input.timeoutMillis !== null && { timeoutMillis: input.timeoutMillis }),
|
|
4101
|
-
...(input.unhealthyThreshold !== undefined &&
|
|
4102
|
-
input.unhealthyThreshold !== null && { unhealthyThreshold: input.unhealthyThreshold }),
|
|
4036
|
+
...(input.healthyThreshold != null && { healthyThreshold: input.healthyThreshold }),
|
|
4037
|
+
...(input.intervalMillis != null && { intervalMillis: input.intervalMillis }),
|
|
4038
|
+
...(input.path != null && { path: input.path }),
|
|
4039
|
+
...(input.port != null && { port: input.port }),
|
|
4040
|
+
...(input.protocol != null && { protocol: input.protocol }),
|
|
4041
|
+
...(input.timeoutMillis != null && { timeoutMillis: input.timeoutMillis }),
|
|
4042
|
+
...(input.unhealthyThreshold != null && { unhealthyThreshold: input.unhealthyThreshold }),
|
|
4103
4043
|
};
|
|
4104
4044
|
};
|
|
4105
4045
|
const serializeAws_restJson1HttpGatewayRoute = (input, context) => {
|
|
4106
4046
|
return {
|
|
4107
|
-
...(input.action
|
|
4108
|
-
|
|
4109
|
-
...(input.match !== undefined &&
|
|
4110
|
-
input.match !== null && { match: serializeAws_restJson1HttpGatewayRouteMatch(input.match, context) }),
|
|
4047
|
+
...(input.action != null && { action: serializeAws_restJson1HttpGatewayRouteAction(input.action, context) }),
|
|
4048
|
+
...(input.match != null && { match: serializeAws_restJson1HttpGatewayRouteMatch(input.match, context) }),
|
|
4111
4049
|
};
|
|
4112
4050
|
};
|
|
4113
4051
|
const serializeAws_restJson1HttpGatewayRouteAction = (input, context) => {
|
|
4114
4052
|
return {
|
|
4115
|
-
...(input.rewrite
|
|
4116
|
-
|
|
4117
|
-
...(input.target !== undefined &&
|
|
4118
|
-
input.target !== null && { target: serializeAws_restJson1GatewayRouteTarget(input.target, context) }),
|
|
4053
|
+
...(input.rewrite != null && { rewrite: serializeAws_restJson1HttpGatewayRouteRewrite(input.rewrite, context) }),
|
|
4054
|
+
...(input.target != null && { target: serializeAws_restJson1GatewayRouteTarget(input.target, context) }),
|
|
4119
4055
|
};
|
|
4120
4056
|
};
|
|
4121
4057
|
const serializeAws_restJson1HttpGatewayRouteHeader = (input, context) => {
|
|
4122
4058
|
return {
|
|
4123
|
-
...(input.invert
|
|
4124
|
-
...(input.match
|
|
4125
|
-
|
|
4126
|
-
...(input.name !== undefined && input.name !== null && { name: input.name }),
|
|
4059
|
+
...(input.invert != null && { invert: input.invert }),
|
|
4060
|
+
...(input.match != null && { match: serializeAws_restJson1HeaderMatchMethod(input.match, context) }),
|
|
4061
|
+
...(input.name != null && { name: input.name }),
|
|
4127
4062
|
};
|
|
4128
4063
|
};
|
|
4129
4064
|
const serializeAws_restJson1HttpGatewayRouteHeaders = (input, context) => {
|
|
@@ -4138,56 +4073,48 @@ const serializeAws_restJson1HttpGatewayRouteHeaders = (input, context) => {
|
|
|
4138
4073
|
};
|
|
4139
4074
|
const serializeAws_restJson1HttpGatewayRouteMatch = (input, context) => {
|
|
4140
4075
|
return {
|
|
4141
|
-
...(input.headers
|
|
4142
|
-
|
|
4143
|
-
...(input.hostname !== undefined &&
|
|
4144
|
-
input.hostname !== null && {
|
|
4076
|
+
...(input.headers != null && { headers: serializeAws_restJson1HttpGatewayRouteHeaders(input.headers, context) }),
|
|
4077
|
+
...(input.hostname != null && {
|
|
4145
4078
|
hostname: serializeAws_restJson1GatewayRouteHostnameMatch(input.hostname, context),
|
|
4146
4079
|
}),
|
|
4147
|
-
...(input.method
|
|
4148
|
-
...(input.path
|
|
4149
|
-
|
|
4150
|
-
...(input.
|
|
4151
|
-
...(input.queryParameters !== undefined &&
|
|
4152
|
-
input.queryParameters !== null && {
|
|
4080
|
+
...(input.method != null && { method: input.method }),
|
|
4081
|
+
...(input.path != null && { path: serializeAws_restJson1HttpPathMatch(input.path, context) }),
|
|
4082
|
+
...(input.prefix != null && { prefix: input.prefix }),
|
|
4083
|
+
...(input.queryParameters != null && {
|
|
4153
4084
|
queryParameters: serializeAws_restJson1HttpQueryParameters(input.queryParameters, context),
|
|
4154
4085
|
}),
|
|
4155
4086
|
};
|
|
4156
4087
|
};
|
|
4157
4088
|
const serializeAws_restJson1HttpGatewayRoutePathRewrite = (input, context) => {
|
|
4158
4089
|
return {
|
|
4159
|
-
...(input.exact
|
|
4090
|
+
...(input.exact != null && { exact: input.exact }),
|
|
4160
4091
|
};
|
|
4161
4092
|
};
|
|
4162
4093
|
const serializeAws_restJson1HttpGatewayRoutePrefixRewrite = (input, context) => {
|
|
4163
4094
|
return {
|
|
4164
|
-
...(input.defaultPrefix
|
|
4165
|
-
...(input.value
|
|
4095
|
+
...(input.defaultPrefix != null && { defaultPrefix: input.defaultPrefix }),
|
|
4096
|
+
...(input.value != null && { value: input.value }),
|
|
4166
4097
|
};
|
|
4167
4098
|
};
|
|
4168
4099
|
const serializeAws_restJson1HttpGatewayRouteRewrite = (input, context) => {
|
|
4169
4100
|
return {
|
|
4170
|
-
...(input.hostname
|
|
4171
|
-
input.hostname !== null && {
|
|
4101
|
+
...(input.hostname != null && {
|
|
4172
4102
|
hostname: serializeAws_restJson1GatewayRouteHostnameRewrite(input.hostname, context),
|
|
4173
4103
|
}),
|
|
4174
|
-
...(input.path
|
|
4175
|
-
|
|
4176
|
-
...(input.prefix !== undefined &&
|
|
4177
|
-
input.prefix !== null && { prefix: serializeAws_restJson1HttpGatewayRoutePrefixRewrite(input.prefix, context) }),
|
|
4104
|
+
...(input.path != null && { path: serializeAws_restJson1HttpGatewayRoutePathRewrite(input.path, context) }),
|
|
4105
|
+
...(input.prefix != null && { prefix: serializeAws_restJson1HttpGatewayRoutePrefixRewrite(input.prefix, context) }),
|
|
4178
4106
|
};
|
|
4179
4107
|
};
|
|
4180
4108
|
const serializeAws_restJson1HttpPathMatch = (input, context) => {
|
|
4181
4109
|
return {
|
|
4182
|
-
...(input.exact
|
|
4183
|
-
...(input.regex
|
|
4110
|
+
...(input.exact != null && { exact: input.exact }),
|
|
4111
|
+
...(input.regex != null && { regex: input.regex }),
|
|
4184
4112
|
};
|
|
4185
4113
|
};
|
|
4186
4114
|
const serializeAws_restJson1HttpQueryParameter = (input, context) => {
|
|
4187
4115
|
return {
|
|
4188
|
-
...(input.match
|
|
4189
|
-
|
|
4190
|
-
...(input.name !== undefined && input.name !== null && { name: input.name }),
|
|
4116
|
+
...(input.match != null && { match: serializeAws_restJson1QueryParameterMatch(input.match, context) }),
|
|
4117
|
+
...(input.name != null && { name: input.name }),
|
|
4191
4118
|
};
|
|
4192
4119
|
};
|
|
4193
4120
|
const serializeAws_restJson1HttpQueryParameters = (input, context) => {
|
|
@@ -4202,17 +4129,14 @@ const serializeAws_restJson1HttpQueryParameters = (input, context) => {
|
|
|
4202
4129
|
};
|
|
4203
4130
|
const serializeAws_restJson1HttpRetryPolicy = (input, context) => {
|
|
4204
4131
|
return {
|
|
4205
|
-
...(input.httpRetryEvents
|
|
4206
|
-
input.httpRetryEvents !== null && {
|
|
4132
|
+
...(input.httpRetryEvents != null && {
|
|
4207
4133
|
httpRetryEvents: serializeAws_restJson1HttpRetryPolicyEvents(input.httpRetryEvents, context),
|
|
4208
4134
|
}),
|
|
4209
|
-
...(input.maxRetries
|
|
4210
|
-
...(input.perRetryTimeout
|
|
4211
|
-
input.perRetryTimeout !== null && {
|
|
4135
|
+
...(input.maxRetries != null && { maxRetries: input.maxRetries }),
|
|
4136
|
+
...(input.perRetryTimeout != null && {
|
|
4212
4137
|
perRetryTimeout: serializeAws_restJson1Duration(input.perRetryTimeout, context),
|
|
4213
4138
|
}),
|
|
4214
|
-
...(input.tcpRetryEvents
|
|
4215
|
-
input.tcpRetryEvents !== null && {
|
|
4139
|
+
...(input.tcpRetryEvents != null && {
|
|
4216
4140
|
tcpRetryEvents: serializeAws_restJson1TcpRetryPolicyEvents(input.tcpRetryEvents, context),
|
|
4217
4141
|
}),
|
|
4218
4142
|
};
|
|
@@ -4229,30 +4153,26 @@ const serializeAws_restJson1HttpRetryPolicyEvents = (input, context) => {
|
|
|
4229
4153
|
};
|
|
4230
4154
|
const serializeAws_restJson1HttpRoute = (input, context) => {
|
|
4231
4155
|
return {
|
|
4232
|
-
...(input.action
|
|
4233
|
-
|
|
4234
|
-
...(input.
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
...(input.timeout !== undefined &&
|
|
4239
|
-
input.timeout !== null && { timeout: serializeAws_restJson1HttpTimeout(input.timeout, context) }),
|
|
4156
|
+
...(input.action != null && { action: serializeAws_restJson1HttpRouteAction(input.action, context) }),
|
|
4157
|
+
...(input.match != null && { match: serializeAws_restJson1HttpRouteMatch(input.match, context) }),
|
|
4158
|
+
...(input.retryPolicy != null && {
|
|
4159
|
+
retryPolicy: serializeAws_restJson1HttpRetryPolicy(input.retryPolicy, context),
|
|
4160
|
+
}),
|
|
4161
|
+
...(input.timeout != null && { timeout: serializeAws_restJson1HttpTimeout(input.timeout, context) }),
|
|
4240
4162
|
};
|
|
4241
4163
|
};
|
|
4242
4164
|
const serializeAws_restJson1HttpRouteAction = (input, context) => {
|
|
4243
4165
|
return {
|
|
4244
|
-
...(input.weightedTargets
|
|
4245
|
-
input.weightedTargets !== null && {
|
|
4166
|
+
...(input.weightedTargets != null && {
|
|
4246
4167
|
weightedTargets: serializeAws_restJson1WeightedTargets(input.weightedTargets, context),
|
|
4247
4168
|
}),
|
|
4248
4169
|
};
|
|
4249
4170
|
};
|
|
4250
4171
|
const serializeAws_restJson1HttpRouteHeader = (input, context) => {
|
|
4251
4172
|
return {
|
|
4252
|
-
...(input.invert
|
|
4253
|
-
...(input.match
|
|
4254
|
-
|
|
4255
|
-
...(input.name !== undefined && input.name !== null && { name: input.name }),
|
|
4173
|
+
...(input.invert != null && { invert: input.invert }),
|
|
4174
|
+
...(input.match != null && { match: serializeAws_restJson1HeaderMatchMethod(input.match, context) }),
|
|
4175
|
+
...(input.name != null && { name: input.name }),
|
|
4256
4176
|
};
|
|
4257
4177
|
};
|
|
4258
4178
|
const serializeAws_restJson1HttpRouteHeaders = (input, context) => {
|
|
@@ -4267,47 +4187,36 @@ const serializeAws_restJson1HttpRouteHeaders = (input, context) => {
|
|
|
4267
4187
|
};
|
|
4268
4188
|
const serializeAws_restJson1HttpRouteMatch = (input, context) => {
|
|
4269
4189
|
return {
|
|
4270
|
-
...(input.headers
|
|
4271
|
-
|
|
4272
|
-
...(input.
|
|
4273
|
-
...(input.
|
|
4274
|
-
|
|
4275
|
-
...(input.prefix !== undefined && input.prefix !== null && { prefix: input.prefix }),
|
|
4276
|
-
...(input.queryParameters !== undefined &&
|
|
4277
|
-
input.queryParameters !== null && {
|
|
4190
|
+
...(input.headers != null && { headers: serializeAws_restJson1HttpRouteHeaders(input.headers, context) }),
|
|
4191
|
+
...(input.method != null && { method: input.method }),
|
|
4192
|
+
...(input.path != null && { path: serializeAws_restJson1HttpPathMatch(input.path, context) }),
|
|
4193
|
+
...(input.prefix != null && { prefix: input.prefix }),
|
|
4194
|
+
...(input.queryParameters != null && {
|
|
4278
4195
|
queryParameters: serializeAws_restJson1HttpQueryParameters(input.queryParameters, context),
|
|
4279
4196
|
}),
|
|
4280
|
-
...(input.scheme
|
|
4197
|
+
...(input.scheme != null && { scheme: input.scheme }),
|
|
4281
4198
|
};
|
|
4282
4199
|
};
|
|
4283
4200
|
const serializeAws_restJson1HttpTimeout = (input, context) => {
|
|
4284
4201
|
return {
|
|
4285
|
-
...(input.idle
|
|
4286
|
-
|
|
4287
|
-
...(input.perRequest !== undefined &&
|
|
4288
|
-
input.perRequest !== null && { perRequest: serializeAws_restJson1Duration(input.perRequest, context) }),
|
|
4202
|
+
...(input.idle != null && { idle: serializeAws_restJson1Duration(input.idle, context) }),
|
|
4203
|
+
...(input.perRequest != null && { perRequest: serializeAws_restJson1Duration(input.perRequest, context) }),
|
|
4289
4204
|
};
|
|
4290
4205
|
};
|
|
4291
4206
|
const serializeAws_restJson1Listener = (input, context) => {
|
|
4292
4207
|
return {
|
|
4293
|
-
...(input.connectionPool
|
|
4294
|
-
input.connectionPool !== null && {
|
|
4208
|
+
...(input.connectionPool != null && {
|
|
4295
4209
|
connectionPool: serializeAws_restJson1VirtualNodeConnectionPool(input.connectionPool, context),
|
|
4296
4210
|
}),
|
|
4297
|
-
...(input.healthCheck
|
|
4298
|
-
input.healthCheck !== null && {
|
|
4211
|
+
...(input.healthCheck != null && {
|
|
4299
4212
|
healthCheck: serializeAws_restJson1HealthCheckPolicy(input.healthCheck, context),
|
|
4300
4213
|
}),
|
|
4301
|
-
...(input.outlierDetection
|
|
4302
|
-
input.outlierDetection !== null && {
|
|
4214
|
+
...(input.outlierDetection != null && {
|
|
4303
4215
|
outlierDetection: serializeAws_restJson1OutlierDetection(input.outlierDetection, context),
|
|
4304
4216
|
}),
|
|
4305
|
-
...(input.portMapping
|
|
4306
|
-
|
|
4307
|
-
...(input.
|
|
4308
|
-
input.timeout !== null && { timeout: serializeAws_restJson1ListenerTimeout(input.timeout, context) }),
|
|
4309
|
-
...(input.tls !== undefined &&
|
|
4310
|
-
input.tls !== null && { tls: serializeAws_restJson1ListenerTls(input.tls, context) }),
|
|
4217
|
+
...(input.portMapping != null && { portMapping: serializeAws_restJson1PortMapping(input.portMapping, context) }),
|
|
4218
|
+
...(input.timeout != null && { timeout: serializeAws_restJson1ListenerTimeout(input.timeout, context) }),
|
|
4219
|
+
...(input.tls != null && { tls: serializeAws_restJson1ListenerTls(input.tls, context) }),
|
|
4311
4220
|
};
|
|
4312
4221
|
};
|
|
4313
4222
|
const serializeAws_restJson1Listeners = (input, context) => {
|
|
@@ -4331,21 +4240,18 @@ const serializeAws_restJson1ListenerTimeout = (input, context) => {
|
|
|
4331
4240
|
};
|
|
4332
4241
|
const serializeAws_restJson1ListenerTls = (input, context) => {
|
|
4333
4242
|
return {
|
|
4334
|
-
...(input.certificate
|
|
4335
|
-
input.certificate !== null && {
|
|
4243
|
+
...(input.certificate != null && {
|
|
4336
4244
|
certificate: serializeAws_restJson1ListenerTlsCertificate(input.certificate, context),
|
|
4337
4245
|
}),
|
|
4338
|
-
...(input.mode
|
|
4339
|
-
...(input.validation
|
|
4340
|
-
input.validation !== null && {
|
|
4246
|
+
...(input.mode != null && { mode: input.mode }),
|
|
4247
|
+
...(input.validation != null && {
|
|
4341
4248
|
validation: serializeAws_restJson1ListenerTlsValidationContext(input.validation, context),
|
|
4342
4249
|
}),
|
|
4343
4250
|
};
|
|
4344
4251
|
};
|
|
4345
4252
|
const serializeAws_restJson1ListenerTlsAcmCertificate = (input, context) => {
|
|
4346
4253
|
return {
|
|
4347
|
-
...(input.certificateArn
|
|
4348
|
-
input.certificateArn !== null && { certificateArn: input.certificateArn }),
|
|
4254
|
+
...(input.certificateArn != null && { certificateArn: input.certificateArn }),
|
|
4349
4255
|
};
|
|
4350
4256
|
};
|
|
4351
4257
|
const serializeAws_restJson1ListenerTlsCertificate = (input, context) => {
|
|
@@ -4358,24 +4264,23 @@ const serializeAws_restJson1ListenerTlsCertificate = (input, context) => {
|
|
|
4358
4264
|
};
|
|
4359
4265
|
const serializeAws_restJson1ListenerTlsFileCertificate = (input, context) => {
|
|
4360
4266
|
return {
|
|
4361
|
-
...(input.certificateChain
|
|
4362
|
-
|
|
4363
|
-
...(input.privateKey !== undefined && input.privateKey !== null && { privateKey: input.privateKey }),
|
|
4267
|
+
...(input.certificateChain != null && { certificateChain: input.certificateChain }),
|
|
4268
|
+
...(input.privateKey != null && { privateKey: input.privateKey }),
|
|
4364
4269
|
};
|
|
4365
4270
|
};
|
|
4366
4271
|
const serializeAws_restJson1ListenerTlsSdsCertificate = (input, context) => {
|
|
4367
4272
|
return {
|
|
4368
|
-
...(input.secretName
|
|
4273
|
+
...(input.secretName != null && { secretName: input.secretName }),
|
|
4369
4274
|
};
|
|
4370
4275
|
};
|
|
4371
4276
|
const serializeAws_restJson1ListenerTlsValidationContext = (input, context) => {
|
|
4372
4277
|
return {
|
|
4373
|
-
...(input.subjectAlternativeNames
|
|
4374
|
-
input.subjectAlternativeNames !== null && {
|
|
4278
|
+
...(input.subjectAlternativeNames != null && {
|
|
4375
4279
|
subjectAlternativeNames: serializeAws_restJson1SubjectAlternativeNames(input.subjectAlternativeNames, context),
|
|
4376
4280
|
}),
|
|
4377
|
-
...(input.trust
|
|
4378
|
-
|
|
4281
|
+
...(input.trust != null && {
|
|
4282
|
+
trust: serializeAws_restJson1ListenerTlsValidationContextTrust(input.trust, context),
|
|
4283
|
+
}),
|
|
4379
4284
|
};
|
|
4380
4285
|
};
|
|
4381
4286
|
const serializeAws_restJson1ListenerTlsValidationContextTrust = (input, context) => {
|
|
@@ -4387,49 +4292,44 @@ const serializeAws_restJson1ListenerTlsValidationContextTrust = (input, context)
|
|
|
4387
4292
|
};
|
|
4388
4293
|
const serializeAws_restJson1Logging = (input, context) => {
|
|
4389
4294
|
return {
|
|
4390
|
-
...(input.accessLog
|
|
4391
|
-
input.accessLog !== null && { accessLog: serializeAws_restJson1AccessLog(input.accessLog, context) }),
|
|
4295
|
+
...(input.accessLog != null && { accessLog: serializeAws_restJson1AccessLog(input.accessLog, context) }),
|
|
4392
4296
|
};
|
|
4393
4297
|
};
|
|
4394
4298
|
const serializeAws_restJson1MatchRange = (input, context) => {
|
|
4395
4299
|
return {
|
|
4396
|
-
...(input.end
|
|
4397
|
-
...(input.start
|
|
4300
|
+
...(input.end != null && { end: input.end }),
|
|
4301
|
+
...(input.start != null && { start: input.start }),
|
|
4398
4302
|
};
|
|
4399
4303
|
};
|
|
4400
4304
|
const serializeAws_restJson1MeshServiceDiscovery = (input, context) => {
|
|
4401
4305
|
return {
|
|
4402
|
-
...(input.ipPreference
|
|
4306
|
+
...(input.ipPreference != null && { ipPreference: input.ipPreference }),
|
|
4403
4307
|
};
|
|
4404
4308
|
};
|
|
4405
4309
|
const serializeAws_restJson1MeshSpec = (input, context) => {
|
|
4406
4310
|
return {
|
|
4407
|
-
...(input.egressFilter
|
|
4408
|
-
|
|
4409
|
-
|
|
4410
|
-
|
|
4311
|
+
...(input.egressFilter != null && {
|
|
4312
|
+
egressFilter: serializeAws_restJson1EgressFilter(input.egressFilter, context),
|
|
4313
|
+
}),
|
|
4314
|
+
...(input.serviceDiscovery != null && {
|
|
4411
4315
|
serviceDiscovery: serializeAws_restJson1MeshServiceDiscovery(input.serviceDiscovery, context),
|
|
4412
4316
|
}),
|
|
4413
4317
|
};
|
|
4414
4318
|
};
|
|
4415
4319
|
const serializeAws_restJson1OutlierDetection = (input, context) => {
|
|
4416
4320
|
return {
|
|
4417
|
-
...(input.baseEjectionDuration
|
|
4418
|
-
input.baseEjectionDuration !== null && {
|
|
4321
|
+
...(input.baseEjectionDuration != null && {
|
|
4419
4322
|
baseEjectionDuration: serializeAws_restJson1Duration(input.baseEjectionDuration, context),
|
|
4420
4323
|
}),
|
|
4421
|
-
...(input.interval
|
|
4422
|
-
|
|
4423
|
-
...(input.
|
|
4424
|
-
input.maxEjectionPercent !== null && { maxEjectionPercent: input.maxEjectionPercent }),
|
|
4425
|
-
...(input.maxServerErrors !== undefined &&
|
|
4426
|
-
input.maxServerErrors !== null && { maxServerErrors: input.maxServerErrors }),
|
|
4324
|
+
...(input.interval != null && { interval: serializeAws_restJson1Duration(input.interval, context) }),
|
|
4325
|
+
...(input.maxEjectionPercent != null && { maxEjectionPercent: input.maxEjectionPercent }),
|
|
4326
|
+
...(input.maxServerErrors != null && { maxServerErrors: input.maxServerErrors }),
|
|
4427
4327
|
};
|
|
4428
4328
|
};
|
|
4429
4329
|
const serializeAws_restJson1PortMapping = (input, context) => {
|
|
4430
4330
|
return {
|
|
4431
|
-
...(input.port
|
|
4432
|
-
...(input.protocol
|
|
4331
|
+
...(input.port != null && { port: input.port }),
|
|
4332
|
+
...(input.protocol != null && { protocol: input.protocol }),
|
|
4433
4333
|
};
|
|
4434
4334
|
};
|
|
4435
4335
|
const serializeAws_restJson1PortSet = (input, context) => {
|
|
@@ -4444,20 +4344,16 @@ const serializeAws_restJson1PortSet = (input, context) => {
|
|
|
4444
4344
|
};
|
|
4445
4345
|
const serializeAws_restJson1QueryParameterMatch = (input, context) => {
|
|
4446
4346
|
return {
|
|
4447
|
-
...(input.exact
|
|
4347
|
+
...(input.exact != null && { exact: input.exact }),
|
|
4448
4348
|
};
|
|
4449
4349
|
};
|
|
4450
4350
|
const serializeAws_restJson1RouteSpec = (input, context) => {
|
|
4451
4351
|
return {
|
|
4452
|
-
...(input.grpcRoute
|
|
4453
|
-
|
|
4454
|
-
...(input.
|
|
4455
|
-
|
|
4456
|
-
...(input.
|
|
4457
|
-
input.httpRoute !== null && { httpRoute: serializeAws_restJson1HttpRoute(input.httpRoute, context) }),
|
|
4458
|
-
...(input.priority !== undefined && input.priority !== null && { priority: input.priority }),
|
|
4459
|
-
...(input.tcpRoute !== undefined &&
|
|
4460
|
-
input.tcpRoute !== null && { tcpRoute: serializeAws_restJson1TcpRoute(input.tcpRoute, context) }),
|
|
4352
|
+
...(input.grpcRoute != null && { grpcRoute: serializeAws_restJson1GrpcRoute(input.grpcRoute, context) }),
|
|
4353
|
+
...(input.http2Route != null && { http2Route: serializeAws_restJson1HttpRoute(input.http2Route, context) }),
|
|
4354
|
+
...(input.httpRoute != null && { httpRoute: serializeAws_restJson1HttpRoute(input.httpRoute, context) }),
|
|
4355
|
+
...(input.priority != null && { priority: input.priority }),
|
|
4356
|
+
...(input.tcpRoute != null && { tcpRoute: serializeAws_restJson1TcpRoute(input.tcpRoute, context) }),
|
|
4461
4357
|
};
|
|
4462
4358
|
};
|
|
4463
4359
|
const serializeAws_restJson1ServiceDiscovery = (input, context) => {
|
|
@@ -4479,14 +4375,12 @@ const serializeAws_restJson1SubjectAlternativeNameList = (input, context) => {
|
|
|
4479
4375
|
};
|
|
4480
4376
|
const serializeAws_restJson1SubjectAlternativeNameMatchers = (input, context) => {
|
|
4481
4377
|
return {
|
|
4482
|
-
...(input.exact
|
|
4483
|
-
input.exact !== null && { exact: serializeAws_restJson1SubjectAlternativeNameList(input.exact, context) }),
|
|
4378
|
+
...(input.exact != null && { exact: serializeAws_restJson1SubjectAlternativeNameList(input.exact, context) }),
|
|
4484
4379
|
};
|
|
4485
4380
|
};
|
|
4486
4381
|
const serializeAws_restJson1SubjectAlternativeNames = (input, context) => {
|
|
4487
4382
|
return {
|
|
4488
|
-
...(input.match
|
|
4489
|
-
input.match !== null && { match: serializeAws_restJson1SubjectAlternativeNameMatchers(input.match, context) }),
|
|
4383
|
+
...(input.match != null && { match: serializeAws_restJson1SubjectAlternativeNameMatchers(input.match, context) }),
|
|
4490
4384
|
};
|
|
4491
4385
|
};
|
|
4492
4386
|
const serializeAws_restJson1TagKeyList = (input, context) => {
|
|
@@ -4511,8 +4405,8 @@ const serializeAws_restJson1TagList = (input, context) => {
|
|
|
4511
4405
|
};
|
|
4512
4406
|
const serializeAws_restJson1TagRef = (input, context) => {
|
|
4513
4407
|
return {
|
|
4514
|
-
...(input.key
|
|
4515
|
-
...(input.value
|
|
4408
|
+
...(input.key != null && { key: input.key }),
|
|
4409
|
+
...(input.value != null && { value: input.value }),
|
|
4516
4410
|
};
|
|
4517
4411
|
};
|
|
4518
4412
|
const serializeAws_restJson1TcpRetryPolicyEvents = (input, context) => {
|
|
@@ -4527,53 +4421,45 @@ const serializeAws_restJson1TcpRetryPolicyEvents = (input, context) => {
|
|
|
4527
4421
|
};
|
|
4528
4422
|
const serializeAws_restJson1TcpRoute = (input, context) => {
|
|
4529
4423
|
return {
|
|
4530
|
-
...(input.action
|
|
4531
|
-
|
|
4532
|
-
...(input.timeout !== undefined &&
|
|
4533
|
-
input.timeout !== null && { timeout: serializeAws_restJson1TcpTimeout(input.timeout, context) }),
|
|
4424
|
+
...(input.action != null && { action: serializeAws_restJson1TcpRouteAction(input.action, context) }),
|
|
4425
|
+
...(input.timeout != null && { timeout: serializeAws_restJson1TcpTimeout(input.timeout, context) }),
|
|
4534
4426
|
};
|
|
4535
4427
|
};
|
|
4536
4428
|
const serializeAws_restJson1TcpRouteAction = (input, context) => {
|
|
4537
4429
|
return {
|
|
4538
|
-
...(input.weightedTargets
|
|
4539
|
-
input.weightedTargets !== null && {
|
|
4430
|
+
...(input.weightedTargets != null && {
|
|
4540
4431
|
weightedTargets: serializeAws_restJson1WeightedTargets(input.weightedTargets, context),
|
|
4541
4432
|
}),
|
|
4542
4433
|
};
|
|
4543
4434
|
};
|
|
4544
4435
|
const serializeAws_restJson1TcpTimeout = (input, context) => {
|
|
4545
4436
|
return {
|
|
4546
|
-
...(input.idle
|
|
4547
|
-
input.idle !== null && { idle: serializeAws_restJson1Duration(input.idle, context) }),
|
|
4437
|
+
...(input.idle != null && { idle: serializeAws_restJson1Duration(input.idle, context) }),
|
|
4548
4438
|
};
|
|
4549
4439
|
};
|
|
4550
4440
|
const serializeAws_restJson1TlsValidationContext = (input, context) => {
|
|
4551
4441
|
return {
|
|
4552
|
-
...(input.subjectAlternativeNames
|
|
4553
|
-
input.subjectAlternativeNames !== null && {
|
|
4442
|
+
...(input.subjectAlternativeNames != null && {
|
|
4554
4443
|
subjectAlternativeNames: serializeAws_restJson1SubjectAlternativeNames(input.subjectAlternativeNames, context),
|
|
4555
4444
|
}),
|
|
4556
|
-
...(input.trust
|
|
4557
|
-
input.trust !== null && { trust: serializeAws_restJson1TlsValidationContextTrust(input.trust, context) }),
|
|
4445
|
+
...(input.trust != null && { trust: serializeAws_restJson1TlsValidationContextTrust(input.trust, context) }),
|
|
4558
4446
|
};
|
|
4559
4447
|
};
|
|
4560
4448
|
const serializeAws_restJson1TlsValidationContextAcmTrust = (input, context) => {
|
|
4561
4449
|
return {
|
|
4562
|
-
...(input.certificateAuthorityArns
|
|
4563
|
-
input.certificateAuthorityArns !== null && {
|
|
4450
|
+
...(input.certificateAuthorityArns != null && {
|
|
4564
4451
|
certificateAuthorityArns: serializeAws_restJson1CertificateAuthorityArns(input.certificateAuthorityArns, context),
|
|
4565
4452
|
}),
|
|
4566
4453
|
};
|
|
4567
4454
|
};
|
|
4568
4455
|
const serializeAws_restJson1TlsValidationContextFileTrust = (input, context) => {
|
|
4569
4456
|
return {
|
|
4570
|
-
...(input.certificateChain
|
|
4571
|
-
input.certificateChain !== null && { certificateChain: input.certificateChain }),
|
|
4457
|
+
...(input.certificateChain != null && { certificateChain: input.certificateChain }),
|
|
4572
4458
|
};
|
|
4573
4459
|
};
|
|
4574
4460
|
const serializeAws_restJson1TlsValidationContextSdsTrust = (input, context) => {
|
|
4575
4461
|
return {
|
|
4576
|
-
...(input.secretName
|
|
4462
|
+
...(input.secretName != null && { secretName: input.secretName }),
|
|
4577
4463
|
};
|
|
4578
4464
|
};
|
|
4579
4465
|
const serializeAws_restJson1TlsValidationContextTrust = (input, context) => {
|
|
@@ -4592,8 +4478,7 @@ const serializeAws_restJson1VirtualGatewayAccessLog = (input, context) => {
|
|
|
4592
4478
|
};
|
|
4593
4479
|
const serializeAws_restJson1VirtualGatewayBackendDefaults = (input, context) => {
|
|
4594
4480
|
return {
|
|
4595
|
-
...(input.clientPolicy
|
|
4596
|
-
input.clientPolicy !== null && {
|
|
4481
|
+
...(input.clientPolicy != null && {
|
|
4597
4482
|
clientPolicy: serializeAws_restJson1VirtualGatewayClientPolicy(input.clientPolicy, context),
|
|
4598
4483
|
}),
|
|
4599
4484
|
};
|
|
@@ -4610,21 +4495,17 @@ const serializeAws_restJson1VirtualGatewayCertificateAuthorityArns = (input, con
|
|
|
4610
4495
|
};
|
|
4611
4496
|
const serializeAws_restJson1VirtualGatewayClientPolicy = (input, context) => {
|
|
4612
4497
|
return {
|
|
4613
|
-
...(input.tls
|
|
4614
|
-
input.tls !== null && { tls: serializeAws_restJson1VirtualGatewayClientPolicyTls(input.tls, context) }),
|
|
4498
|
+
...(input.tls != null && { tls: serializeAws_restJson1VirtualGatewayClientPolicyTls(input.tls, context) }),
|
|
4615
4499
|
};
|
|
4616
4500
|
};
|
|
4617
4501
|
const serializeAws_restJson1VirtualGatewayClientPolicyTls = (input, context) => {
|
|
4618
4502
|
return {
|
|
4619
|
-
...(input.certificate
|
|
4620
|
-
input.certificate !== null && {
|
|
4503
|
+
...(input.certificate != null && {
|
|
4621
4504
|
certificate: serializeAws_restJson1VirtualGatewayClientTlsCertificate(input.certificate, context),
|
|
4622
4505
|
}),
|
|
4623
|
-
...(input.enforce
|
|
4624
|
-
...(input.ports
|
|
4625
|
-
|
|
4626
|
-
...(input.validation !== undefined &&
|
|
4627
|
-
input.validation !== null && {
|
|
4506
|
+
...(input.enforce != null && { enforce: input.enforce }),
|
|
4507
|
+
...(input.ports != null && { ports: serializeAws_restJson1PortSet(input.ports, context) }),
|
|
4508
|
+
...(input.validation != null && {
|
|
4628
4509
|
validation: serializeAws_restJson1VirtualGatewayTlsValidationContext(input.validation, context),
|
|
4629
4510
|
}),
|
|
4630
4511
|
};
|
|
@@ -4646,57 +4527,48 @@ const serializeAws_restJson1VirtualGatewayConnectionPool = (input, context) => {
|
|
|
4646
4527
|
};
|
|
4647
4528
|
const serializeAws_restJson1VirtualGatewayFileAccessLog = (input, context) => {
|
|
4648
4529
|
return {
|
|
4649
|
-
...(input.path
|
|
4530
|
+
...(input.path != null && { path: input.path }),
|
|
4650
4531
|
};
|
|
4651
4532
|
};
|
|
4652
4533
|
const serializeAws_restJson1VirtualGatewayGrpcConnectionPool = (input, context) => {
|
|
4653
4534
|
return {
|
|
4654
|
-
...(input.maxRequests
|
|
4535
|
+
...(input.maxRequests != null && { maxRequests: input.maxRequests }),
|
|
4655
4536
|
};
|
|
4656
4537
|
};
|
|
4657
4538
|
const serializeAws_restJson1VirtualGatewayHealthCheckPolicy = (input, context) => {
|
|
4658
4539
|
return {
|
|
4659
|
-
...(input.healthyThreshold
|
|
4660
|
-
|
|
4661
|
-
...(input.
|
|
4662
|
-
|
|
4663
|
-
...(input.
|
|
4664
|
-
...(input.
|
|
4665
|
-
...(input.
|
|
4666
|
-
...(input.timeoutMillis !== undefined && input.timeoutMillis !== null && { timeoutMillis: input.timeoutMillis }),
|
|
4667
|
-
...(input.unhealthyThreshold !== undefined &&
|
|
4668
|
-
input.unhealthyThreshold !== null && { unhealthyThreshold: input.unhealthyThreshold }),
|
|
4540
|
+
...(input.healthyThreshold != null && { healthyThreshold: input.healthyThreshold }),
|
|
4541
|
+
...(input.intervalMillis != null && { intervalMillis: input.intervalMillis }),
|
|
4542
|
+
...(input.path != null && { path: input.path }),
|
|
4543
|
+
...(input.port != null && { port: input.port }),
|
|
4544
|
+
...(input.protocol != null && { protocol: input.protocol }),
|
|
4545
|
+
...(input.timeoutMillis != null && { timeoutMillis: input.timeoutMillis }),
|
|
4546
|
+
...(input.unhealthyThreshold != null && { unhealthyThreshold: input.unhealthyThreshold }),
|
|
4669
4547
|
};
|
|
4670
4548
|
};
|
|
4671
4549
|
const serializeAws_restJson1VirtualGatewayHttp2ConnectionPool = (input, context) => {
|
|
4672
4550
|
return {
|
|
4673
|
-
...(input.maxRequests
|
|
4551
|
+
...(input.maxRequests != null && { maxRequests: input.maxRequests }),
|
|
4674
4552
|
};
|
|
4675
4553
|
};
|
|
4676
4554
|
const serializeAws_restJson1VirtualGatewayHttpConnectionPool = (input, context) => {
|
|
4677
4555
|
return {
|
|
4678
|
-
...(input.maxConnections
|
|
4679
|
-
|
|
4680
|
-
...(input.maxPendingRequests !== undefined &&
|
|
4681
|
-
input.maxPendingRequests !== null && { maxPendingRequests: input.maxPendingRequests }),
|
|
4556
|
+
...(input.maxConnections != null && { maxConnections: input.maxConnections }),
|
|
4557
|
+
...(input.maxPendingRequests != null && { maxPendingRequests: input.maxPendingRequests }),
|
|
4682
4558
|
};
|
|
4683
4559
|
};
|
|
4684
4560
|
const serializeAws_restJson1VirtualGatewayListener = (input, context) => {
|
|
4685
4561
|
return {
|
|
4686
|
-
...(input.connectionPool
|
|
4687
|
-
input.connectionPool !== null && {
|
|
4562
|
+
...(input.connectionPool != null && {
|
|
4688
4563
|
connectionPool: serializeAws_restJson1VirtualGatewayConnectionPool(input.connectionPool, context),
|
|
4689
4564
|
}),
|
|
4690
|
-
...(input.healthCheck
|
|
4691
|
-
input.healthCheck !== null && {
|
|
4565
|
+
...(input.healthCheck != null && {
|
|
4692
4566
|
healthCheck: serializeAws_restJson1VirtualGatewayHealthCheckPolicy(input.healthCheck, context),
|
|
4693
4567
|
}),
|
|
4694
|
-
...(input.portMapping
|
|
4695
|
-
input.portMapping !== null && {
|
|
4568
|
+
...(input.portMapping != null && {
|
|
4696
4569
|
portMapping: serializeAws_restJson1VirtualGatewayPortMapping(input.portMapping, context),
|
|
4697
4570
|
}),
|
|
4698
|
-
...(input.tls
|
|
4699
|
-
input.tls !== null && { tls: serializeAws_restJson1VirtualGatewayListenerTls(input.tls, context) }),
|
|
4571
|
+
...(input.tls != null && { tls: serializeAws_restJson1VirtualGatewayListenerTls(input.tls, context) }),
|
|
4700
4572
|
};
|
|
4701
4573
|
};
|
|
4702
4574
|
const serializeAws_restJson1VirtualGatewayListeners = (input, context) => {
|
|
@@ -4711,21 +4583,18 @@ const serializeAws_restJson1VirtualGatewayListeners = (input, context) => {
|
|
|
4711
4583
|
};
|
|
4712
4584
|
const serializeAws_restJson1VirtualGatewayListenerTls = (input, context) => {
|
|
4713
4585
|
return {
|
|
4714
|
-
...(input.certificate
|
|
4715
|
-
input.certificate !== null && {
|
|
4586
|
+
...(input.certificate != null && {
|
|
4716
4587
|
certificate: serializeAws_restJson1VirtualGatewayListenerTlsCertificate(input.certificate, context),
|
|
4717
4588
|
}),
|
|
4718
|
-
...(input.mode
|
|
4719
|
-
...(input.validation
|
|
4720
|
-
input.validation !== null && {
|
|
4589
|
+
...(input.mode != null && { mode: input.mode }),
|
|
4590
|
+
...(input.validation != null && {
|
|
4721
4591
|
validation: serializeAws_restJson1VirtualGatewayListenerTlsValidationContext(input.validation, context),
|
|
4722
4592
|
}),
|
|
4723
4593
|
};
|
|
4724
4594
|
};
|
|
4725
4595
|
const serializeAws_restJson1VirtualGatewayListenerTlsAcmCertificate = (input, context) => {
|
|
4726
4596
|
return {
|
|
4727
|
-
...(input.certificateArn
|
|
4728
|
-
input.certificateArn !== null && { certificateArn: input.certificateArn }),
|
|
4597
|
+
...(input.certificateArn != null && { certificateArn: input.certificateArn }),
|
|
4729
4598
|
};
|
|
4730
4599
|
};
|
|
4731
4600
|
const serializeAws_restJson1VirtualGatewayListenerTlsCertificate = (input, context) => {
|
|
@@ -4738,24 +4607,21 @@ const serializeAws_restJson1VirtualGatewayListenerTlsCertificate = (input, conte
|
|
|
4738
4607
|
};
|
|
4739
4608
|
const serializeAws_restJson1VirtualGatewayListenerTlsFileCertificate = (input, context) => {
|
|
4740
4609
|
return {
|
|
4741
|
-
...(input.certificateChain
|
|
4742
|
-
|
|
4743
|
-
...(input.privateKey !== undefined && input.privateKey !== null && { privateKey: input.privateKey }),
|
|
4610
|
+
...(input.certificateChain != null && { certificateChain: input.certificateChain }),
|
|
4611
|
+
...(input.privateKey != null && { privateKey: input.privateKey }),
|
|
4744
4612
|
};
|
|
4745
4613
|
};
|
|
4746
4614
|
const serializeAws_restJson1VirtualGatewayListenerTlsSdsCertificate = (input, context) => {
|
|
4747
4615
|
return {
|
|
4748
|
-
...(input.secretName
|
|
4616
|
+
...(input.secretName != null && { secretName: input.secretName }),
|
|
4749
4617
|
};
|
|
4750
4618
|
};
|
|
4751
4619
|
const serializeAws_restJson1VirtualGatewayListenerTlsValidationContext = (input, context) => {
|
|
4752
4620
|
return {
|
|
4753
|
-
...(input.subjectAlternativeNames
|
|
4754
|
-
input.subjectAlternativeNames !== null && {
|
|
4621
|
+
...(input.subjectAlternativeNames != null && {
|
|
4755
4622
|
subjectAlternativeNames: serializeAws_restJson1SubjectAlternativeNames(input.subjectAlternativeNames, context),
|
|
4756
4623
|
}),
|
|
4757
|
-
...(input.trust
|
|
4758
|
-
input.trust !== null && {
|
|
4624
|
+
...(input.trust != null && {
|
|
4759
4625
|
trust: serializeAws_restJson1VirtualGatewayListenerTlsValidationContextTrust(input.trust, context),
|
|
4760
4626
|
}),
|
|
4761
4627
|
};
|
|
@@ -4769,61 +4635,53 @@ const serializeAws_restJson1VirtualGatewayListenerTlsValidationContextTrust = (i
|
|
|
4769
4635
|
};
|
|
4770
4636
|
const serializeAws_restJson1VirtualGatewayLogging = (input, context) => {
|
|
4771
4637
|
return {
|
|
4772
|
-
...(input.accessLog
|
|
4773
|
-
input.accessLog !== null && {
|
|
4638
|
+
...(input.accessLog != null && {
|
|
4774
4639
|
accessLog: serializeAws_restJson1VirtualGatewayAccessLog(input.accessLog, context),
|
|
4775
4640
|
}),
|
|
4776
4641
|
};
|
|
4777
4642
|
};
|
|
4778
4643
|
const serializeAws_restJson1VirtualGatewayPortMapping = (input, context) => {
|
|
4779
4644
|
return {
|
|
4780
|
-
...(input.port
|
|
4781
|
-
...(input.protocol
|
|
4645
|
+
...(input.port != null && { port: input.port }),
|
|
4646
|
+
...(input.protocol != null && { protocol: input.protocol }),
|
|
4782
4647
|
};
|
|
4783
4648
|
};
|
|
4784
4649
|
const serializeAws_restJson1VirtualGatewaySpec = (input, context) => {
|
|
4785
4650
|
return {
|
|
4786
|
-
...(input.backendDefaults
|
|
4787
|
-
input.backendDefaults !== null && {
|
|
4651
|
+
...(input.backendDefaults != null && {
|
|
4788
4652
|
backendDefaults: serializeAws_restJson1VirtualGatewayBackendDefaults(input.backendDefaults, context),
|
|
4789
4653
|
}),
|
|
4790
|
-
...(input.listeners
|
|
4791
|
-
input.listeners !== null && {
|
|
4654
|
+
...(input.listeners != null && {
|
|
4792
4655
|
listeners: serializeAws_restJson1VirtualGatewayListeners(input.listeners, context),
|
|
4793
4656
|
}),
|
|
4794
|
-
...(input.logging
|
|
4795
|
-
input.logging !== null && { logging: serializeAws_restJson1VirtualGatewayLogging(input.logging, context) }),
|
|
4657
|
+
...(input.logging != null && { logging: serializeAws_restJson1VirtualGatewayLogging(input.logging, context) }),
|
|
4796
4658
|
};
|
|
4797
4659
|
};
|
|
4798
4660
|
const serializeAws_restJson1VirtualGatewayTlsValidationContext = (input, context) => {
|
|
4799
4661
|
return {
|
|
4800
|
-
...(input.subjectAlternativeNames
|
|
4801
|
-
input.subjectAlternativeNames !== null && {
|
|
4662
|
+
...(input.subjectAlternativeNames != null && {
|
|
4802
4663
|
subjectAlternativeNames: serializeAws_restJson1SubjectAlternativeNames(input.subjectAlternativeNames, context),
|
|
4803
4664
|
}),
|
|
4804
|
-
...(input.trust
|
|
4805
|
-
input.trust !== null && {
|
|
4665
|
+
...(input.trust != null && {
|
|
4806
4666
|
trust: serializeAws_restJson1VirtualGatewayTlsValidationContextTrust(input.trust, context),
|
|
4807
4667
|
}),
|
|
4808
4668
|
};
|
|
4809
4669
|
};
|
|
4810
4670
|
const serializeAws_restJson1VirtualGatewayTlsValidationContextAcmTrust = (input, context) => {
|
|
4811
4671
|
return {
|
|
4812
|
-
...(input.certificateAuthorityArns
|
|
4813
|
-
input.certificateAuthorityArns !== null && {
|
|
4672
|
+
...(input.certificateAuthorityArns != null && {
|
|
4814
4673
|
certificateAuthorityArns: serializeAws_restJson1VirtualGatewayCertificateAuthorityArns(input.certificateAuthorityArns, context),
|
|
4815
4674
|
}),
|
|
4816
4675
|
};
|
|
4817
4676
|
};
|
|
4818
4677
|
const serializeAws_restJson1VirtualGatewayTlsValidationContextFileTrust = (input, context) => {
|
|
4819
4678
|
return {
|
|
4820
|
-
...(input.certificateChain
|
|
4821
|
-
input.certificateChain !== null && { certificateChain: input.certificateChain }),
|
|
4679
|
+
...(input.certificateChain != null && { certificateChain: input.certificateChain }),
|
|
4822
4680
|
};
|
|
4823
4681
|
};
|
|
4824
4682
|
const serializeAws_restJson1VirtualGatewayTlsValidationContextSdsTrust = (input, context) => {
|
|
4825
4683
|
return {
|
|
4826
|
-
...(input.secretName
|
|
4684
|
+
...(input.secretName != null && { secretName: input.secretName }),
|
|
4827
4685
|
};
|
|
4828
4686
|
};
|
|
4829
4687
|
const serializeAws_restJson1VirtualGatewayTlsValidationContextTrust = (input, context) => {
|
|
@@ -4845,56 +4703,46 @@ const serializeAws_restJson1VirtualNodeConnectionPool = (input, context) => {
|
|
|
4845
4703
|
};
|
|
4846
4704
|
const serializeAws_restJson1VirtualNodeGrpcConnectionPool = (input, context) => {
|
|
4847
4705
|
return {
|
|
4848
|
-
...(input.maxRequests
|
|
4706
|
+
...(input.maxRequests != null && { maxRequests: input.maxRequests }),
|
|
4849
4707
|
};
|
|
4850
4708
|
};
|
|
4851
4709
|
const serializeAws_restJson1VirtualNodeHttp2ConnectionPool = (input, context) => {
|
|
4852
4710
|
return {
|
|
4853
|
-
...(input.maxRequests
|
|
4711
|
+
...(input.maxRequests != null && { maxRequests: input.maxRequests }),
|
|
4854
4712
|
};
|
|
4855
4713
|
};
|
|
4856
4714
|
const serializeAws_restJson1VirtualNodeHttpConnectionPool = (input, context) => {
|
|
4857
4715
|
return {
|
|
4858
|
-
...(input.maxConnections
|
|
4859
|
-
|
|
4860
|
-
...(input.maxPendingRequests !== undefined &&
|
|
4861
|
-
input.maxPendingRequests !== null && { maxPendingRequests: input.maxPendingRequests }),
|
|
4716
|
+
...(input.maxConnections != null && { maxConnections: input.maxConnections }),
|
|
4717
|
+
...(input.maxPendingRequests != null && { maxPendingRequests: input.maxPendingRequests }),
|
|
4862
4718
|
};
|
|
4863
4719
|
};
|
|
4864
4720
|
const serializeAws_restJson1VirtualNodeServiceProvider = (input, context) => {
|
|
4865
4721
|
return {
|
|
4866
|
-
...(input.virtualNodeName
|
|
4867
|
-
input.virtualNodeName !== null && { virtualNodeName: input.virtualNodeName }),
|
|
4722
|
+
...(input.virtualNodeName != null && { virtualNodeName: input.virtualNodeName }),
|
|
4868
4723
|
};
|
|
4869
4724
|
};
|
|
4870
4725
|
const serializeAws_restJson1VirtualNodeSpec = (input, context) => {
|
|
4871
4726
|
return {
|
|
4872
|
-
...(input.backendDefaults
|
|
4873
|
-
input.backendDefaults !== null && {
|
|
4727
|
+
...(input.backendDefaults != null && {
|
|
4874
4728
|
backendDefaults: serializeAws_restJson1BackendDefaults(input.backendDefaults, context),
|
|
4875
4729
|
}),
|
|
4876
|
-
...(input.backends
|
|
4877
|
-
|
|
4878
|
-
...(input.
|
|
4879
|
-
|
|
4880
|
-
...(input.logging !== undefined &&
|
|
4881
|
-
input.logging !== null && { logging: serializeAws_restJson1Logging(input.logging, context) }),
|
|
4882
|
-
...(input.serviceDiscovery !== undefined &&
|
|
4883
|
-
input.serviceDiscovery !== null && {
|
|
4730
|
+
...(input.backends != null && { backends: serializeAws_restJson1Backends(input.backends, context) }),
|
|
4731
|
+
...(input.listeners != null && { listeners: serializeAws_restJson1Listeners(input.listeners, context) }),
|
|
4732
|
+
...(input.logging != null && { logging: serializeAws_restJson1Logging(input.logging, context) }),
|
|
4733
|
+
...(input.serviceDiscovery != null && {
|
|
4884
4734
|
serviceDiscovery: serializeAws_restJson1ServiceDiscovery(input.serviceDiscovery, context),
|
|
4885
4735
|
}),
|
|
4886
4736
|
};
|
|
4887
4737
|
};
|
|
4888
4738
|
const serializeAws_restJson1VirtualNodeTcpConnectionPool = (input, context) => {
|
|
4889
4739
|
return {
|
|
4890
|
-
...(input.maxConnections
|
|
4891
|
-
input.maxConnections !== null && { maxConnections: input.maxConnections }),
|
|
4740
|
+
...(input.maxConnections != null && { maxConnections: input.maxConnections }),
|
|
4892
4741
|
};
|
|
4893
4742
|
};
|
|
4894
4743
|
const serializeAws_restJson1VirtualRouterListener = (input, context) => {
|
|
4895
4744
|
return {
|
|
4896
|
-
...(input.portMapping
|
|
4897
|
-
input.portMapping !== null && { portMapping: serializeAws_restJson1PortMapping(input.portMapping, context) }),
|
|
4745
|
+
...(input.portMapping != null && { portMapping: serializeAws_restJson1PortMapping(input.portMapping, context) }),
|
|
4898
4746
|
};
|
|
4899
4747
|
};
|
|
4900
4748
|
const serializeAws_restJson1VirtualRouterListeners = (input, context) => {
|
|
@@ -4909,24 +4757,22 @@ const serializeAws_restJson1VirtualRouterListeners = (input, context) => {
|
|
|
4909
4757
|
};
|
|
4910
4758
|
const serializeAws_restJson1VirtualRouterServiceProvider = (input, context) => {
|
|
4911
4759
|
return {
|
|
4912
|
-
...(input.virtualRouterName
|
|
4913
|
-
input.virtualRouterName !== null && { virtualRouterName: input.virtualRouterName }),
|
|
4760
|
+
...(input.virtualRouterName != null && { virtualRouterName: input.virtualRouterName }),
|
|
4914
4761
|
};
|
|
4915
4762
|
};
|
|
4916
4763
|
const serializeAws_restJson1VirtualRouterSpec = (input, context) => {
|
|
4917
4764
|
return {
|
|
4918
|
-
...(input.listeners
|
|
4919
|
-
input.listeners !== null && {
|
|
4765
|
+
...(input.listeners != null && {
|
|
4920
4766
|
listeners: serializeAws_restJson1VirtualRouterListeners(input.listeners, context),
|
|
4921
4767
|
}),
|
|
4922
4768
|
};
|
|
4923
4769
|
};
|
|
4924
4770
|
const serializeAws_restJson1VirtualServiceBackend = (input, context) => {
|
|
4925
4771
|
return {
|
|
4926
|
-
...(input.clientPolicy
|
|
4927
|
-
|
|
4928
|
-
|
|
4929
|
-
|
|
4772
|
+
...(input.clientPolicy != null && {
|
|
4773
|
+
clientPolicy: serializeAws_restJson1ClientPolicy(input.clientPolicy, context),
|
|
4774
|
+
}),
|
|
4775
|
+
...(input.virtualServiceName != null && { virtualServiceName: input.virtualServiceName }),
|
|
4930
4776
|
};
|
|
4931
4777
|
};
|
|
4932
4778
|
const serializeAws_restJson1VirtualServiceProvider = (input, context) => {
|
|
@@ -4938,14 +4784,13 @@ const serializeAws_restJson1VirtualServiceProvider = (input, context) => {
|
|
|
4938
4784
|
};
|
|
4939
4785
|
const serializeAws_restJson1VirtualServiceSpec = (input, context) => {
|
|
4940
4786
|
return {
|
|
4941
|
-
...(input.provider
|
|
4942
|
-
input.provider !== null && { provider: serializeAws_restJson1VirtualServiceProvider(input.provider, context) }),
|
|
4787
|
+
...(input.provider != null && { provider: serializeAws_restJson1VirtualServiceProvider(input.provider, context) }),
|
|
4943
4788
|
};
|
|
4944
4789
|
};
|
|
4945
4790
|
const serializeAws_restJson1WeightedTarget = (input, context) => {
|
|
4946
4791
|
return {
|
|
4947
|
-
...(input.virtualNode
|
|
4948
|
-
...(input.weight
|
|
4792
|
+
...(input.virtualNode != null && { virtualNode: input.virtualNode }),
|
|
4793
|
+
...(input.weight != null && { weight: input.weight }),
|
|
4949
4794
|
};
|
|
4950
4795
|
};
|
|
4951
4796
|
const serializeAws_restJson1WeightedTargets = (input, context) => {
|
|
@@ -4985,7 +4830,7 @@ const deserializeAws_restJson1AwsCloudMapInstanceAttributes = (output, context)
|
|
|
4985
4830
|
};
|
|
4986
4831
|
const deserializeAws_restJson1AwsCloudMapServiceDiscovery = (output, context) => {
|
|
4987
4832
|
return {
|
|
4988
|
-
attributes: output.attributes
|
|
4833
|
+
attributes: output.attributes != null
|
|
4989
4834
|
? deserializeAws_restJson1AwsCloudMapInstanceAttributes(output.attributes, context)
|
|
4990
4835
|
: undefined,
|
|
4991
4836
|
ipPreference: (0, smithy_client_1.expectString)(output.ipPreference),
|
|
@@ -5003,9 +4848,7 @@ const deserializeAws_restJson1Backend = (output, context) => {
|
|
|
5003
4848
|
};
|
|
5004
4849
|
const deserializeAws_restJson1BackendDefaults = (output, context) => {
|
|
5005
4850
|
return {
|
|
5006
|
-
clientPolicy: output.clientPolicy
|
|
5007
|
-
? deserializeAws_restJson1ClientPolicy(output.clientPolicy, context)
|
|
5008
|
-
: undefined,
|
|
4851
|
+
clientPolicy: output.clientPolicy != null ? deserializeAws_restJson1ClientPolicy(output.clientPolicy, context) : undefined,
|
|
5009
4852
|
};
|
|
5010
4853
|
};
|
|
5011
4854
|
const deserializeAws_restJson1Backends = (output, context) => {
|
|
@@ -5032,23 +4875,17 @@ const deserializeAws_restJson1CertificateAuthorityArns = (output, context) => {
|
|
|
5032
4875
|
};
|
|
5033
4876
|
const deserializeAws_restJson1ClientPolicy = (output, context) => {
|
|
5034
4877
|
return {
|
|
5035
|
-
tls: output.tls
|
|
5036
|
-
? deserializeAws_restJson1ClientPolicyTls(output.tls, context)
|
|
5037
|
-
: undefined,
|
|
4878
|
+
tls: output.tls != null ? deserializeAws_restJson1ClientPolicyTls(output.tls, context) : undefined,
|
|
5038
4879
|
};
|
|
5039
4880
|
};
|
|
5040
4881
|
const deserializeAws_restJson1ClientPolicyTls = (output, context) => {
|
|
5041
4882
|
return {
|
|
5042
|
-
certificate: output.certificate
|
|
4883
|
+
certificate: output.certificate != null
|
|
5043
4884
|
? deserializeAws_restJson1ClientTlsCertificate((0, smithy_client_1.expectUnion)(output.certificate), context)
|
|
5044
4885
|
: undefined,
|
|
5045
4886
|
enforce: (0, smithy_client_1.expectBoolean)(output.enforce),
|
|
5046
|
-
ports: output.ports
|
|
5047
|
-
|
|
5048
|
-
: undefined,
|
|
5049
|
-
validation: output.validation !== undefined && output.validation !== null
|
|
5050
|
-
? deserializeAws_restJson1TlsValidationContext(output.validation, context)
|
|
5051
|
-
: undefined,
|
|
4887
|
+
ports: output.ports != null ? deserializeAws_restJson1PortSet(output.ports, context) : undefined,
|
|
4888
|
+
validation: output.validation != null ? deserializeAws_restJson1TlsValidationContext(output.validation, context) : undefined,
|
|
5052
4889
|
};
|
|
5053
4890
|
};
|
|
5054
4891
|
const deserializeAws_restJson1ClientTlsCertificate = (output, context) => {
|
|
@@ -5091,15 +4928,9 @@ const deserializeAws_restJson1GatewayRouteData = (output, context) => {
|
|
|
5091
4928
|
return {
|
|
5092
4929
|
gatewayRouteName: (0, smithy_client_1.expectString)(output.gatewayRouteName),
|
|
5093
4930
|
meshName: (0, smithy_client_1.expectString)(output.meshName),
|
|
5094
|
-
metadata: output.metadata
|
|
5095
|
-
|
|
5096
|
-
|
|
5097
|
-
spec: output.spec !== undefined && output.spec !== null
|
|
5098
|
-
? deserializeAws_restJson1GatewayRouteSpec(output.spec, context)
|
|
5099
|
-
: undefined,
|
|
5100
|
-
status: output.status !== undefined && output.status !== null
|
|
5101
|
-
? deserializeAws_restJson1GatewayRouteStatus(output.status, context)
|
|
5102
|
-
: undefined,
|
|
4931
|
+
metadata: output.metadata != null ? deserializeAws_restJson1ResourceMetadata(output.metadata, context) : undefined,
|
|
4932
|
+
spec: output.spec != null ? deserializeAws_restJson1GatewayRouteSpec(output.spec, context) : undefined,
|
|
4933
|
+
status: output.status != null ? deserializeAws_restJson1GatewayRouteStatus(output.status, context) : undefined,
|
|
5103
4934
|
virtualGatewayName: (0, smithy_client_1.expectString)(output.virtualGatewayName),
|
|
5104
4935
|
};
|
|
5105
4936
|
};
|
|
@@ -5128,11 +4959,9 @@ const deserializeAws_restJson1GatewayRouteList = (output, context) => {
|
|
|
5128
4959
|
const deserializeAws_restJson1GatewayRouteRef = (output, context) => {
|
|
5129
4960
|
return {
|
|
5130
4961
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
5131
|
-
createdAt: output.createdAt
|
|
5132
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
|
|
5133
|
-
: undefined,
|
|
4962
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
5134
4963
|
gatewayRouteName: (0, smithy_client_1.expectString)(output.gatewayRouteName),
|
|
5135
|
-
lastUpdatedAt: output.lastUpdatedAt
|
|
4964
|
+
lastUpdatedAt: output.lastUpdatedAt != null
|
|
5136
4965
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt)))
|
|
5137
4966
|
: undefined,
|
|
5138
4967
|
meshName: (0, smithy_client_1.expectString)(output.meshName),
|
|
@@ -5144,15 +4973,9 @@ const deserializeAws_restJson1GatewayRouteRef = (output, context) => {
|
|
|
5144
4973
|
};
|
|
5145
4974
|
const deserializeAws_restJson1GatewayRouteSpec = (output, context) => {
|
|
5146
4975
|
return {
|
|
5147
|
-
grpcRoute: output.grpcRoute
|
|
5148
|
-
|
|
5149
|
-
|
|
5150
|
-
http2Route: output.http2Route !== undefined && output.http2Route !== null
|
|
5151
|
-
? deserializeAws_restJson1HttpGatewayRoute(output.http2Route, context)
|
|
5152
|
-
: undefined,
|
|
5153
|
-
httpRoute: output.httpRoute !== undefined && output.httpRoute !== null
|
|
5154
|
-
? deserializeAws_restJson1HttpGatewayRoute(output.httpRoute, context)
|
|
5155
|
-
: undefined,
|
|
4976
|
+
grpcRoute: output.grpcRoute != null ? deserializeAws_restJson1GrpcGatewayRoute(output.grpcRoute, context) : undefined,
|
|
4977
|
+
http2Route: output.http2Route != null ? deserializeAws_restJson1HttpGatewayRoute(output.http2Route, context) : undefined,
|
|
4978
|
+
httpRoute: output.httpRoute != null ? deserializeAws_restJson1HttpGatewayRoute(output.httpRoute, context) : undefined,
|
|
5156
4979
|
priority: (0, smithy_client_1.expectInt32)(output.priority),
|
|
5157
4980
|
};
|
|
5158
4981
|
};
|
|
@@ -5163,7 +4986,7 @@ const deserializeAws_restJson1GatewayRouteStatus = (output, context) => {
|
|
|
5163
4986
|
};
|
|
5164
4987
|
const deserializeAws_restJson1GatewayRouteTarget = (output, context) => {
|
|
5165
4988
|
return {
|
|
5166
|
-
virtualService: output.virtualService
|
|
4989
|
+
virtualService: output.virtualService != null
|
|
5167
4990
|
? deserializeAws_restJson1GatewayRouteVirtualService(output.virtualService, context)
|
|
5168
4991
|
: undefined,
|
|
5169
4992
|
};
|
|
@@ -5175,30 +4998,20 @@ const deserializeAws_restJson1GatewayRouteVirtualService = (output, context) =>
|
|
|
5175
4998
|
};
|
|
5176
4999
|
const deserializeAws_restJson1GrpcGatewayRoute = (output, context) => {
|
|
5177
5000
|
return {
|
|
5178
|
-
action: output.action
|
|
5179
|
-
|
|
5180
|
-
: undefined,
|
|
5181
|
-
match: output.match !== undefined && output.match !== null
|
|
5182
|
-
? deserializeAws_restJson1GrpcGatewayRouteMatch(output.match, context)
|
|
5183
|
-
: undefined,
|
|
5001
|
+
action: output.action != null ? deserializeAws_restJson1GrpcGatewayRouteAction(output.action, context) : undefined,
|
|
5002
|
+
match: output.match != null ? deserializeAws_restJson1GrpcGatewayRouteMatch(output.match, context) : undefined,
|
|
5184
5003
|
};
|
|
5185
5004
|
};
|
|
5186
5005
|
const deserializeAws_restJson1GrpcGatewayRouteAction = (output, context) => {
|
|
5187
5006
|
return {
|
|
5188
|
-
rewrite: output.rewrite
|
|
5189
|
-
|
|
5190
|
-
: undefined,
|
|
5191
|
-
target: output.target !== undefined && output.target !== null
|
|
5192
|
-
? deserializeAws_restJson1GatewayRouteTarget(output.target, context)
|
|
5193
|
-
: undefined,
|
|
5007
|
+
rewrite: output.rewrite != null ? deserializeAws_restJson1GrpcGatewayRouteRewrite(output.rewrite, context) : undefined,
|
|
5008
|
+
target: output.target != null ? deserializeAws_restJson1GatewayRouteTarget(output.target, context) : undefined,
|
|
5194
5009
|
};
|
|
5195
5010
|
};
|
|
5196
5011
|
const deserializeAws_restJson1GrpcGatewayRouteMatch = (output, context) => {
|
|
5197
5012
|
return {
|
|
5198
|
-
hostname: output.hostname
|
|
5199
|
-
|
|
5200
|
-
: undefined,
|
|
5201
|
-
metadata: output.metadata !== undefined && output.metadata !== null
|
|
5013
|
+
hostname: output.hostname != null ? deserializeAws_restJson1GatewayRouteHostnameMatch(output.hostname, context) : undefined,
|
|
5014
|
+
metadata: output.metadata != null
|
|
5202
5015
|
? deserializeAws_restJson1GrpcGatewayRouteMetadataList(output.metadata, context)
|
|
5203
5016
|
: undefined,
|
|
5204
5017
|
serviceName: (0, smithy_client_1.expectString)(output.serviceName),
|
|
@@ -5207,7 +5020,7 @@ const deserializeAws_restJson1GrpcGatewayRouteMatch = (output, context) => {
|
|
|
5207
5020
|
const deserializeAws_restJson1GrpcGatewayRouteMetadata = (output, context) => {
|
|
5208
5021
|
return {
|
|
5209
5022
|
invert: (0, smithy_client_1.expectBoolean)(output.invert),
|
|
5210
|
-
match: output.match
|
|
5023
|
+
match: output.match != null
|
|
5211
5024
|
? deserializeAws_restJson1GrpcMetadataMatchMethod((0, smithy_client_1.expectUnion)(output.match), context)
|
|
5212
5025
|
: undefined,
|
|
5213
5026
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
@@ -5226,7 +5039,7 @@ const deserializeAws_restJson1GrpcGatewayRouteMetadataList = (output, context) =
|
|
|
5226
5039
|
};
|
|
5227
5040
|
const deserializeAws_restJson1GrpcGatewayRouteRewrite = (output, context) => {
|
|
5228
5041
|
return {
|
|
5229
|
-
hostname: output.hostname
|
|
5042
|
+
hostname: output.hostname != null
|
|
5230
5043
|
? deserializeAws_restJson1GatewayRouteHostnameRewrite(output.hostname, context)
|
|
5231
5044
|
: undefined,
|
|
5232
5045
|
};
|
|
@@ -5253,17 +5066,15 @@ const deserializeAws_restJson1GrpcMetadataMatchMethod = (output, context) => {
|
|
|
5253
5066
|
};
|
|
5254
5067
|
const deserializeAws_restJson1GrpcRetryPolicy = (output, context) => {
|
|
5255
5068
|
return {
|
|
5256
|
-
grpcRetryEvents: output.grpcRetryEvents
|
|
5069
|
+
grpcRetryEvents: output.grpcRetryEvents != null
|
|
5257
5070
|
? deserializeAws_restJson1GrpcRetryPolicyEvents(output.grpcRetryEvents, context)
|
|
5258
5071
|
: undefined,
|
|
5259
|
-
httpRetryEvents: output.httpRetryEvents
|
|
5072
|
+
httpRetryEvents: output.httpRetryEvents != null
|
|
5260
5073
|
? deserializeAws_restJson1HttpRetryPolicyEvents(output.httpRetryEvents, context)
|
|
5261
5074
|
: undefined,
|
|
5262
5075
|
maxRetries: (0, smithy_client_1.expectLong)(output.maxRetries),
|
|
5263
|
-
perRetryTimeout: output.perRetryTimeout
|
|
5264
|
-
|
|
5265
|
-
: undefined,
|
|
5266
|
-
tcpRetryEvents: output.tcpRetryEvents !== undefined && output.tcpRetryEvents !== null
|
|
5076
|
+
perRetryTimeout: output.perRetryTimeout != null ? deserializeAws_restJson1Duration(output.perRetryTimeout, context) : undefined,
|
|
5077
|
+
tcpRetryEvents: output.tcpRetryEvents != null
|
|
5267
5078
|
? deserializeAws_restJson1TcpRetryPolicyEvents(output.tcpRetryEvents, context)
|
|
5268
5079
|
: undefined,
|
|
5269
5080
|
};
|
|
@@ -5281,32 +5092,22 @@ const deserializeAws_restJson1GrpcRetryPolicyEvents = (output, context) => {
|
|
|
5281
5092
|
};
|
|
5282
5093
|
const deserializeAws_restJson1GrpcRoute = (output, context) => {
|
|
5283
5094
|
return {
|
|
5284
|
-
action: output.action
|
|
5285
|
-
|
|
5286
|
-
|
|
5287
|
-
|
|
5288
|
-
? deserializeAws_restJson1GrpcRouteMatch(output.match, context)
|
|
5289
|
-
: undefined,
|
|
5290
|
-
retryPolicy: output.retryPolicy !== undefined && output.retryPolicy !== null
|
|
5291
|
-
? deserializeAws_restJson1GrpcRetryPolicy(output.retryPolicy, context)
|
|
5292
|
-
: undefined,
|
|
5293
|
-
timeout: output.timeout !== undefined && output.timeout !== null
|
|
5294
|
-
? deserializeAws_restJson1GrpcTimeout(output.timeout, context)
|
|
5295
|
-
: undefined,
|
|
5095
|
+
action: output.action != null ? deserializeAws_restJson1GrpcRouteAction(output.action, context) : undefined,
|
|
5096
|
+
match: output.match != null ? deserializeAws_restJson1GrpcRouteMatch(output.match, context) : undefined,
|
|
5097
|
+
retryPolicy: output.retryPolicy != null ? deserializeAws_restJson1GrpcRetryPolicy(output.retryPolicy, context) : undefined,
|
|
5098
|
+
timeout: output.timeout != null ? deserializeAws_restJson1GrpcTimeout(output.timeout, context) : undefined,
|
|
5296
5099
|
};
|
|
5297
5100
|
};
|
|
5298
5101
|
const deserializeAws_restJson1GrpcRouteAction = (output, context) => {
|
|
5299
5102
|
return {
|
|
5300
|
-
weightedTargets: output.weightedTargets
|
|
5103
|
+
weightedTargets: output.weightedTargets != null
|
|
5301
5104
|
? deserializeAws_restJson1WeightedTargets(output.weightedTargets, context)
|
|
5302
5105
|
: undefined,
|
|
5303
5106
|
};
|
|
5304
5107
|
};
|
|
5305
5108
|
const deserializeAws_restJson1GrpcRouteMatch = (output, context) => {
|
|
5306
5109
|
return {
|
|
5307
|
-
metadata: output.metadata
|
|
5308
|
-
? deserializeAws_restJson1GrpcRouteMetadataList(output.metadata, context)
|
|
5309
|
-
: undefined,
|
|
5110
|
+
metadata: output.metadata != null ? deserializeAws_restJson1GrpcRouteMetadataList(output.metadata, context) : undefined,
|
|
5310
5111
|
methodName: (0, smithy_client_1.expectString)(output.methodName),
|
|
5311
5112
|
serviceName: (0, smithy_client_1.expectString)(output.serviceName),
|
|
5312
5113
|
};
|
|
@@ -5314,7 +5115,7 @@ const deserializeAws_restJson1GrpcRouteMatch = (output, context) => {
|
|
|
5314
5115
|
const deserializeAws_restJson1GrpcRouteMetadata = (output, context) => {
|
|
5315
5116
|
return {
|
|
5316
5117
|
invert: (0, smithy_client_1.expectBoolean)(output.invert),
|
|
5317
|
-
match: output.match
|
|
5118
|
+
match: output.match != null
|
|
5318
5119
|
? deserializeAws_restJson1GrpcRouteMetadataMatchMethod((0, smithy_client_1.expectUnion)(output.match), context)
|
|
5319
5120
|
: undefined,
|
|
5320
5121
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
@@ -5353,12 +5154,8 @@ const deserializeAws_restJson1GrpcRouteMetadataMatchMethod = (output, context) =
|
|
|
5353
5154
|
};
|
|
5354
5155
|
const deserializeAws_restJson1GrpcTimeout = (output, context) => {
|
|
5355
5156
|
return {
|
|
5356
|
-
idle: output.idle
|
|
5357
|
-
|
|
5358
|
-
: undefined,
|
|
5359
|
-
perRequest: output.perRequest !== undefined && output.perRequest !== null
|
|
5360
|
-
? deserializeAws_restJson1Duration(output.perRequest, context)
|
|
5361
|
-
: undefined,
|
|
5157
|
+
idle: output.idle != null ? deserializeAws_restJson1Duration(output.idle, context) : undefined,
|
|
5158
|
+
perRequest: output.perRequest != null ? deserializeAws_restJson1Duration(output.perRequest, context) : undefined,
|
|
5362
5159
|
};
|
|
5363
5160
|
};
|
|
5364
5161
|
const deserializeAws_restJson1HeaderMatchMethod = (output, context) => {
|
|
@@ -5394,28 +5191,20 @@ const deserializeAws_restJson1HealthCheckPolicy = (output, context) => {
|
|
|
5394
5191
|
};
|
|
5395
5192
|
const deserializeAws_restJson1HttpGatewayRoute = (output, context) => {
|
|
5396
5193
|
return {
|
|
5397
|
-
action: output.action
|
|
5398
|
-
|
|
5399
|
-
: undefined,
|
|
5400
|
-
match: output.match !== undefined && output.match !== null
|
|
5401
|
-
? deserializeAws_restJson1HttpGatewayRouteMatch(output.match, context)
|
|
5402
|
-
: undefined,
|
|
5194
|
+
action: output.action != null ? deserializeAws_restJson1HttpGatewayRouteAction(output.action, context) : undefined,
|
|
5195
|
+
match: output.match != null ? deserializeAws_restJson1HttpGatewayRouteMatch(output.match, context) : undefined,
|
|
5403
5196
|
};
|
|
5404
5197
|
};
|
|
5405
5198
|
const deserializeAws_restJson1HttpGatewayRouteAction = (output, context) => {
|
|
5406
5199
|
return {
|
|
5407
|
-
rewrite: output.rewrite
|
|
5408
|
-
|
|
5409
|
-
: undefined,
|
|
5410
|
-
target: output.target !== undefined && output.target !== null
|
|
5411
|
-
? deserializeAws_restJson1GatewayRouteTarget(output.target, context)
|
|
5412
|
-
: undefined,
|
|
5200
|
+
rewrite: output.rewrite != null ? deserializeAws_restJson1HttpGatewayRouteRewrite(output.rewrite, context) : undefined,
|
|
5201
|
+
target: output.target != null ? deserializeAws_restJson1GatewayRouteTarget(output.target, context) : undefined,
|
|
5413
5202
|
};
|
|
5414
5203
|
};
|
|
5415
5204
|
const deserializeAws_restJson1HttpGatewayRouteHeader = (output, context) => {
|
|
5416
5205
|
return {
|
|
5417
5206
|
invert: (0, smithy_client_1.expectBoolean)(output.invert),
|
|
5418
|
-
match: output.match
|
|
5207
|
+
match: output.match != null
|
|
5419
5208
|
? deserializeAws_restJson1HeaderMatchMethod((0, smithy_client_1.expectUnion)(output.match), context)
|
|
5420
5209
|
: undefined,
|
|
5421
5210
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
@@ -5434,18 +5223,12 @@ const deserializeAws_restJson1HttpGatewayRouteHeaders = (output, context) => {
|
|
|
5434
5223
|
};
|
|
5435
5224
|
const deserializeAws_restJson1HttpGatewayRouteMatch = (output, context) => {
|
|
5436
5225
|
return {
|
|
5437
|
-
headers: output.headers
|
|
5438
|
-
|
|
5439
|
-
: undefined,
|
|
5440
|
-
hostname: output.hostname !== undefined && output.hostname !== null
|
|
5441
|
-
? deserializeAws_restJson1GatewayRouteHostnameMatch(output.hostname, context)
|
|
5442
|
-
: undefined,
|
|
5226
|
+
headers: output.headers != null ? deserializeAws_restJson1HttpGatewayRouteHeaders(output.headers, context) : undefined,
|
|
5227
|
+
hostname: output.hostname != null ? deserializeAws_restJson1GatewayRouteHostnameMatch(output.hostname, context) : undefined,
|
|
5443
5228
|
method: (0, smithy_client_1.expectString)(output.method),
|
|
5444
|
-
path: output.path
|
|
5445
|
-
? deserializeAws_restJson1HttpPathMatch(output.path, context)
|
|
5446
|
-
: undefined,
|
|
5229
|
+
path: output.path != null ? deserializeAws_restJson1HttpPathMatch(output.path, context) : undefined,
|
|
5447
5230
|
prefix: (0, smithy_client_1.expectString)(output.prefix),
|
|
5448
|
-
queryParameters: output.queryParameters
|
|
5231
|
+
queryParameters: output.queryParameters != null
|
|
5449
5232
|
? deserializeAws_restJson1HttpQueryParameters(output.queryParameters, context)
|
|
5450
5233
|
: undefined,
|
|
5451
5234
|
};
|
|
@@ -5463,15 +5246,11 @@ const deserializeAws_restJson1HttpGatewayRoutePrefixRewrite = (output, context)
|
|
|
5463
5246
|
};
|
|
5464
5247
|
const deserializeAws_restJson1HttpGatewayRouteRewrite = (output, context) => {
|
|
5465
5248
|
return {
|
|
5466
|
-
hostname: output.hostname
|
|
5249
|
+
hostname: output.hostname != null
|
|
5467
5250
|
? deserializeAws_restJson1GatewayRouteHostnameRewrite(output.hostname, context)
|
|
5468
5251
|
: undefined,
|
|
5469
|
-
path: output.path
|
|
5470
|
-
|
|
5471
|
-
: undefined,
|
|
5472
|
-
prefix: output.prefix !== undefined && output.prefix !== null
|
|
5473
|
-
? deserializeAws_restJson1HttpGatewayRoutePrefixRewrite(output.prefix, context)
|
|
5474
|
-
: undefined,
|
|
5252
|
+
path: output.path != null ? deserializeAws_restJson1HttpGatewayRoutePathRewrite(output.path, context) : undefined,
|
|
5253
|
+
prefix: output.prefix != null ? deserializeAws_restJson1HttpGatewayRoutePrefixRewrite(output.prefix, context) : undefined,
|
|
5475
5254
|
};
|
|
5476
5255
|
};
|
|
5477
5256
|
const deserializeAws_restJson1HttpPathMatch = (output, context) => {
|
|
@@ -5482,9 +5261,7 @@ const deserializeAws_restJson1HttpPathMatch = (output, context) => {
|
|
|
5482
5261
|
};
|
|
5483
5262
|
const deserializeAws_restJson1HttpQueryParameter = (output, context) => {
|
|
5484
5263
|
return {
|
|
5485
|
-
match: output.match
|
|
5486
|
-
? deserializeAws_restJson1QueryParameterMatch(output.match, context)
|
|
5487
|
-
: undefined,
|
|
5264
|
+
match: output.match != null ? deserializeAws_restJson1QueryParameterMatch(output.match, context) : undefined,
|
|
5488
5265
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
5489
5266
|
};
|
|
5490
5267
|
};
|
|
@@ -5501,14 +5278,12 @@ const deserializeAws_restJson1HttpQueryParameters = (output, context) => {
|
|
|
5501
5278
|
};
|
|
5502
5279
|
const deserializeAws_restJson1HttpRetryPolicy = (output, context) => {
|
|
5503
5280
|
return {
|
|
5504
|
-
httpRetryEvents: output.httpRetryEvents
|
|
5281
|
+
httpRetryEvents: output.httpRetryEvents != null
|
|
5505
5282
|
? deserializeAws_restJson1HttpRetryPolicyEvents(output.httpRetryEvents, context)
|
|
5506
5283
|
: undefined,
|
|
5507
5284
|
maxRetries: (0, smithy_client_1.expectLong)(output.maxRetries),
|
|
5508
|
-
perRetryTimeout: output.perRetryTimeout
|
|
5509
|
-
|
|
5510
|
-
: undefined,
|
|
5511
|
-
tcpRetryEvents: output.tcpRetryEvents !== undefined && output.tcpRetryEvents !== null
|
|
5285
|
+
perRetryTimeout: output.perRetryTimeout != null ? deserializeAws_restJson1Duration(output.perRetryTimeout, context) : undefined,
|
|
5286
|
+
tcpRetryEvents: output.tcpRetryEvents != null
|
|
5512
5287
|
? deserializeAws_restJson1TcpRetryPolicyEvents(output.tcpRetryEvents, context)
|
|
5513
5288
|
: undefined,
|
|
5514
5289
|
};
|
|
@@ -5526,23 +5301,15 @@ const deserializeAws_restJson1HttpRetryPolicyEvents = (output, context) => {
|
|
|
5526
5301
|
};
|
|
5527
5302
|
const deserializeAws_restJson1HttpRoute = (output, context) => {
|
|
5528
5303
|
return {
|
|
5529
|
-
action: output.action
|
|
5530
|
-
|
|
5531
|
-
|
|
5532
|
-
|
|
5533
|
-
? deserializeAws_restJson1HttpRouteMatch(output.match, context)
|
|
5534
|
-
: undefined,
|
|
5535
|
-
retryPolicy: output.retryPolicy !== undefined && output.retryPolicy !== null
|
|
5536
|
-
? deserializeAws_restJson1HttpRetryPolicy(output.retryPolicy, context)
|
|
5537
|
-
: undefined,
|
|
5538
|
-
timeout: output.timeout !== undefined && output.timeout !== null
|
|
5539
|
-
? deserializeAws_restJson1HttpTimeout(output.timeout, context)
|
|
5540
|
-
: undefined,
|
|
5304
|
+
action: output.action != null ? deserializeAws_restJson1HttpRouteAction(output.action, context) : undefined,
|
|
5305
|
+
match: output.match != null ? deserializeAws_restJson1HttpRouteMatch(output.match, context) : undefined,
|
|
5306
|
+
retryPolicy: output.retryPolicy != null ? deserializeAws_restJson1HttpRetryPolicy(output.retryPolicy, context) : undefined,
|
|
5307
|
+
timeout: output.timeout != null ? deserializeAws_restJson1HttpTimeout(output.timeout, context) : undefined,
|
|
5541
5308
|
};
|
|
5542
5309
|
};
|
|
5543
5310
|
const deserializeAws_restJson1HttpRouteAction = (output, context) => {
|
|
5544
5311
|
return {
|
|
5545
|
-
weightedTargets: output.weightedTargets
|
|
5312
|
+
weightedTargets: output.weightedTargets != null
|
|
5546
5313
|
? deserializeAws_restJson1WeightedTargets(output.weightedTargets, context)
|
|
5547
5314
|
: undefined,
|
|
5548
5315
|
};
|
|
@@ -5550,7 +5317,7 @@ const deserializeAws_restJson1HttpRouteAction = (output, context) => {
|
|
|
5550
5317
|
const deserializeAws_restJson1HttpRouteHeader = (output, context) => {
|
|
5551
5318
|
return {
|
|
5552
5319
|
invert: (0, smithy_client_1.expectBoolean)(output.invert),
|
|
5553
|
-
match: output.match
|
|
5320
|
+
match: output.match != null
|
|
5554
5321
|
? deserializeAws_restJson1HeaderMatchMethod((0, smithy_client_1.expectUnion)(output.match), context)
|
|
5555
5322
|
: undefined,
|
|
5556
5323
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
@@ -5569,15 +5336,11 @@ const deserializeAws_restJson1HttpRouteHeaders = (output, context) => {
|
|
|
5569
5336
|
};
|
|
5570
5337
|
const deserializeAws_restJson1HttpRouteMatch = (output, context) => {
|
|
5571
5338
|
return {
|
|
5572
|
-
headers: output.headers
|
|
5573
|
-
? deserializeAws_restJson1HttpRouteHeaders(output.headers, context)
|
|
5574
|
-
: undefined,
|
|
5339
|
+
headers: output.headers != null ? deserializeAws_restJson1HttpRouteHeaders(output.headers, context) : undefined,
|
|
5575
5340
|
method: (0, smithy_client_1.expectString)(output.method),
|
|
5576
|
-
path: output.path
|
|
5577
|
-
? deserializeAws_restJson1HttpPathMatch(output.path, context)
|
|
5578
|
-
: undefined,
|
|
5341
|
+
path: output.path != null ? deserializeAws_restJson1HttpPathMatch(output.path, context) : undefined,
|
|
5579
5342
|
prefix: (0, smithy_client_1.expectString)(output.prefix),
|
|
5580
|
-
queryParameters: output.queryParameters
|
|
5343
|
+
queryParameters: output.queryParameters != null
|
|
5581
5344
|
? deserializeAws_restJson1HttpQueryParameters(output.queryParameters, context)
|
|
5582
5345
|
: undefined,
|
|
5583
5346
|
scheme: (0, smithy_client_1.expectString)(output.scheme),
|
|
@@ -5585,34 +5348,24 @@ const deserializeAws_restJson1HttpRouteMatch = (output, context) => {
|
|
|
5585
5348
|
};
|
|
5586
5349
|
const deserializeAws_restJson1HttpTimeout = (output, context) => {
|
|
5587
5350
|
return {
|
|
5588
|
-
idle: output.idle
|
|
5589
|
-
|
|
5590
|
-
: undefined,
|
|
5591
|
-
perRequest: output.perRequest !== undefined && output.perRequest !== null
|
|
5592
|
-
? deserializeAws_restJson1Duration(output.perRequest, context)
|
|
5593
|
-
: undefined,
|
|
5351
|
+
idle: output.idle != null ? deserializeAws_restJson1Duration(output.idle, context) : undefined,
|
|
5352
|
+
perRequest: output.perRequest != null ? deserializeAws_restJson1Duration(output.perRequest, context) : undefined,
|
|
5594
5353
|
};
|
|
5595
5354
|
};
|
|
5596
5355
|
const deserializeAws_restJson1Listener = (output, context) => {
|
|
5597
5356
|
return {
|
|
5598
|
-
connectionPool: output.connectionPool
|
|
5357
|
+
connectionPool: output.connectionPool != null
|
|
5599
5358
|
? deserializeAws_restJson1VirtualNodeConnectionPool((0, smithy_client_1.expectUnion)(output.connectionPool), context)
|
|
5600
5359
|
: undefined,
|
|
5601
|
-
healthCheck: output.healthCheck
|
|
5602
|
-
|
|
5603
|
-
: undefined,
|
|
5604
|
-
outlierDetection: output.outlierDetection !== undefined && output.outlierDetection !== null
|
|
5360
|
+
healthCheck: output.healthCheck != null ? deserializeAws_restJson1HealthCheckPolicy(output.healthCheck, context) : undefined,
|
|
5361
|
+
outlierDetection: output.outlierDetection != null
|
|
5605
5362
|
? deserializeAws_restJson1OutlierDetection(output.outlierDetection, context)
|
|
5606
5363
|
: undefined,
|
|
5607
|
-
portMapping: output.portMapping
|
|
5608
|
-
|
|
5609
|
-
: undefined,
|
|
5610
|
-
timeout: output.timeout !== undefined && output.timeout !== null
|
|
5364
|
+
portMapping: output.portMapping != null ? deserializeAws_restJson1PortMapping(output.portMapping, context) : undefined,
|
|
5365
|
+
timeout: output.timeout != null
|
|
5611
5366
|
? deserializeAws_restJson1ListenerTimeout((0, smithy_client_1.expectUnion)(output.timeout), context)
|
|
5612
5367
|
: undefined,
|
|
5613
|
-
tls: output.tls
|
|
5614
|
-
? deserializeAws_restJson1ListenerTls(output.tls, context)
|
|
5615
|
-
: undefined,
|
|
5368
|
+
tls: output.tls != null ? deserializeAws_restJson1ListenerTls(output.tls, context) : undefined,
|
|
5616
5369
|
};
|
|
5617
5370
|
};
|
|
5618
5371
|
const deserializeAws_restJson1Listeners = (output, context) => {
|
|
@@ -5651,11 +5404,11 @@ const deserializeAws_restJson1ListenerTimeout = (output, context) => {
|
|
|
5651
5404
|
};
|
|
5652
5405
|
const deserializeAws_restJson1ListenerTls = (output, context) => {
|
|
5653
5406
|
return {
|
|
5654
|
-
certificate: output.certificate
|
|
5407
|
+
certificate: output.certificate != null
|
|
5655
5408
|
? deserializeAws_restJson1ListenerTlsCertificate((0, smithy_client_1.expectUnion)(output.certificate), context)
|
|
5656
5409
|
: undefined,
|
|
5657
5410
|
mode: (0, smithy_client_1.expectString)(output.mode),
|
|
5658
|
-
validation: output.validation
|
|
5411
|
+
validation: output.validation != null
|
|
5659
5412
|
? deserializeAws_restJson1ListenerTlsValidationContext(output.validation, context)
|
|
5660
5413
|
: undefined,
|
|
5661
5414
|
};
|
|
@@ -5696,10 +5449,10 @@ const deserializeAws_restJson1ListenerTlsSdsCertificate = (output, context) => {
|
|
|
5696
5449
|
};
|
|
5697
5450
|
const deserializeAws_restJson1ListenerTlsValidationContext = (output, context) => {
|
|
5698
5451
|
return {
|
|
5699
|
-
subjectAlternativeNames: output.subjectAlternativeNames
|
|
5452
|
+
subjectAlternativeNames: output.subjectAlternativeNames != null
|
|
5700
5453
|
? deserializeAws_restJson1SubjectAlternativeNames(output.subjectAlternativeNames, context)
|
|
5701
5454
|
: undefined,
|
|
5702
|
-
trust: output.trust
|
|
5455
|
+
trust: output.trust != null
|
|
5703
5456
|
? deserializeAws_restJson1ListenerTlsValidationContextTrust((0, smithy_client_1.expectUnion)(output.trust), context)
|
|
5704
5457
|
: undefined,
|
|
5705
5458
|
};
|
|
@@ -5719,7 +5472,7 @@ const deserializeAws_restJson1ListenerTlsValidationContextTrust = (output, conte
|
|
|
5719
5472
|
};
|
|
5720
5473
|
const deserializeAws_restJson1Logging = (output, context) => {
|
|
5721
5474
|
return {
|
|
5722
|
-
accessLog: output.accessLog
|
|
5475
|
+
accessLog: output.accessLog != null
|
|
5723
5476
|
? deserializeAws_restJson1AccessLog((0, smithy_client_1.expectUnion)(output.accessLog), context)
|
|
5724
5477
|
: undefined,
|
|
5725
5478
|
};
|
|
@@ -5733,15 +5486,9 @@ const deserializeAws_restJson1MatchRange = (output, context) => {
|
|
|
5733
5486
|
const deserializeAws_restJson1MeshData = (output, context) => {
|
|
5734
5487
|
return {
|
|
5735
5488
|
meshName: (0, smithy_client_1.expectString)(output.meshName),
|
|
5736
|
-
metadata: output.metadata
|
|
5737
|
-
|
|
5738
|
-
|
|
5739
|
-
spec: output.spec !== undefined && output.spec !== null
|
|
5740
|
-
? deserializeAws_restJson1MeshSpec(output.spec, context)
|
|
5741
|
-
: undefined,
|
|
5742
|
-
status: output.status !== undefined && output.status !== null
|
|
5743
|
-
? deserializeAws_restJson1MeshStatus(output.status, context)
|
|
5744
|
-
: undefined,
|
|
5489
|
+
metadata: output.metadata != null ? deserializeAws_restJson1ResourceMetadata(output.metadata, context) : undefined,
|
|
5490
|
+
spec: output.spec != null ? deserializeAws_restJson1MeshSpec(output.spec, context) : undefined,
|
|
5491
|
+
status: output.status != null ? deserializeAws_restJson1MeshStatus(output.status, context) : undefined,
|
|
5745
5492
|
};
|
|
5746
5493
|
};
|
|
5747
5494
|
const deserializeAws_restJson1MeshList = (output, context) => {
|
|
@@ -5758,10 +5505,8 @@ const deserializeAws_restJson1MeshList = (output, context) => {
|
|
|
5758
5505
|
const deserializeAws_restJson1MeshRef = (output, context) => {
|
|
5759
5506
|
return {
|
|
5760
5507
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
5761
|
-
createdAt: output.createdAt
|
|
5762
|
-
|
|
5763
|
-
: undefined,
|
|
5764
|
-
lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
|
|
5508
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
5509
|
+
lastUpdatedAt: output.lastUpdatedAt != null
|
|
5765
5510
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt)))
|
|
5766
5511
|
: undefined,
|
|
5767
5512
|
meshName: (0, smithy_client_1.expectString)(output.meshName),
|
|
@@ -5777,10 +5522,8 @@ const deserializeAws_restJson1MeshServiceDiscovery = (output, context) => {
|
|
|
5777
5522
|
};
|
|
5778
5523
|
const deserializeAws_restJson1MeshSpec = (output, context) => {
|
|
5779
5524
|
return {
|
|
5780
|
-
egressFilter: output.egressFilter
|
|
5781
|
-
|
|
5782
|
-
: undefined,
|
|
5783
|
-
serviceDiscovery: output.serviceDiscovery !== undefined && output.serviceDiscovery !== null
|
|
5525
|
+
egressFilter: output.egressFilter != null ? deserializeAws_restJson1EgressFilter(output.egressFilter, context) : undefined,
|
|
5526
|
+
serviceDiscovery: output.serviceDiscovery != null
|
|
5784
5527
|
? deserializeAws_restJson1MeshServiceDiscovery(output.serviceDiscovery, context)
|
|
5785
5528
|
: undefined,
|
|
5786
5529
|
};
|
|
@@ -5792,12 +5535,10 @@ const deserializeAws_restJson1MeshStatus = (output, context) => {
|
|
|
5792
5535
|
};
|
|
5793
5536
|
const deserializeAws_restJson1OutlierDetection = (output, context) => {
|
|
5794
5537
|
return {
|
|
5795
|
-
baseEjectionDuration: output.baseEjectionDuration
|
|
5538
|
+
baseEjectionDuration: output.baseEjectionDuration != null
|
|
5796
5539
|
? deserializeAws_restJson1Duration(output.baseEjectionDuration, context)
|
|
5797
5540
|
: undefined,
|
|
5798
|
-
interval: output.interval
|
|
5799
|
-
? deserializeAws_restJson1Duration(output.interval, context)
|
|
5800
|
-
: undefined,
|
|
5541
|
+
interval: output.interval != null ? deserializeAws_restJson1Duration(output.interval, context) : undefined,
|
|
5801
5542
|
maxEjectionPercent: (0, smithy_client_1.expectInt32)(output.maxEjectionPercent),
|
|
5802
5543
|
maxServerErrors: (0, smithy_client_1.expectLong)(output.maxServerErrors),
|
|
5803
5544
|
};
|
|
@@ -5827,10 +5568,8 @@ const deserializeAws_restJson1QueryParameterMatch = (output, context) => {
|
|
|
5827
5568
|
const deserializeAws_restJson1ResourceMetadata = (output, context) => {
|
|
5828
5569
|
return {
|
|
5829
5570
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
5830
|
-
createdAt: output.createdAt
|
|
5831
|
-
|
|
5832
|
-
: undefined,
|
|
5833
|
-
lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
|
|
5571
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
5572
|
+
lastUpdatedAt: output.lastUpdatedAt != null
|
|
5834
5573
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt)))
|
|
5835
5574
|
: undefined,
|
|
5836
5575
|
meshOwner: (0, smithy_client_1.expectString)(output.meshOwner),
|
|
@@ -5842,16 +5581,10 @@ const deserializeAws_restJson1ResourceMetadata = (output, context) => {
|
|
|
5842
5581
|
const deserializeAws_restJson1RouteData = (output, context) => {
|
|
5843
5582
|
return {
|
|
5844
5583
|
meshName: (0, smithy_client_1.expectString)(output.meshName),
|
|
5845
|
-
metadata: output.metadata
|
|
5846
|
-
? deserializeAws_restJson1ResourceMetadata(output.metadata, context)
|
|
5847
|
-
: undefined,
|
|
5584
|
+
metadata: output.metadata != null ? deserializeAws_restJson1ResourceMetadata(output.metadata, context) : undefined,
|
|
5848
5585
|
routeName: (0, smithy_client_1.expectString)(output.routeName),
|
|
5849
|
-
spec: output.spec
|
|
5850
|
-
|
|
5851
|
-
: undefined,
|
|
5852
|
-
status: output.status !== undefined && output.status !== null
|
|
5853
|
-
? deserializeAws_restJson1RouteStatus(output.status, context)
|
|
5854
|
-
: undefined,
|
|
5586
|
+
spec: output.spec != null ? deserializeAws_restJson1RouteSpec(output.spec, context) : undefined,
|
|
5587
|
+
status: output.status != null ? deserializeAws_restJson1RouteStatus(output.status, context) : undefined,
|
|
5855
5588
|
virtualRouterName: (0, smithy_client_1.expectString)(output.virtualRouterName),
|
|
5856
5589
|
};
|
|
5857
5590
|
};
|
|
@@ -5869,10 +5602,8 @@ const deserializeAws_restJson1RouteList = (output, context) => {
|
|
|
5869
5602
|
const deserializeAws_restJson1RouteRef = (output, context) => {
|
|
5870
5603
|
return {
|
|
5871
5604
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
5872
|
-
createdAt: output.createdAt
|
|
5873
|
-
|
|
5874
|
-
: undefined,
|
|
5875
|
-
lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
|
|
5605
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
5606
|
+
lastUpdatedAt: output.lastUpdatedAt != null
|
|
5876
5607
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt)))
|
|
5877
5608
|
: undefined,
|
|
5878
5609
|
meshName: (0, smithy_client_1.expectString)(output.meshName),
|
|
@@ -5885,19 +5616,11 @@ const deserializeAws_restJson1RouteRef = (output, context) => {
|
|
|
5885
5616
|
};
|
|
5886
5617
|
const deserializeAws_restJson1RouteSpec = (output, context) => {
|
|
5887
5618
|
return {
|
|
5888
|
-
grpcRoute: output.grpcRoute
|
|
5889
|
-
|
|
5890
|
-
|
|
5891
|
-
http2Route: output.http2Route !== undefined && output.http2Route !== null
|
|
5892
|
-
? deserializeAws_restJson1HttpRoute(output.http2Route, context)
|
|
5893
|
-
: undefined,
|
|
5894
|
-
httpRoute: output.httpRoute !== undefined && output.httpRoute !== null
|
|
5895
|
-
? deserializeAws_restJson1HttpRoute(output.httpRoute, context)
|
|
5896
|
-
: undefined,
|
|
5619
|
+
grpcRoute: output.grpcRoute != null ? deserializeAws_restJson1GrpcRoute(output.grpcRoute, context) : undefined,
|
|
5620
|
+
http2Route: output.http2Route != null ? deserializeAws_restJson1HttpRoute(output.http2Route, context) : undefined,
|
|
5621
|
+
httpRoute: output.httpRoute != null ? deserializeAws_restJson1HttpRoute(output.httpRoute, context) : undefined,
|
|
5897
5622
|
priority: (0, smithy_client_1.expectInt32)(output.priority),
|
|
5898
|
-
tcpRoute: output.tcpRoute
|
|
5899
|
-
? deserializeAws_restJson1TcpRoute(output.tcpRoute, context)
|
|
5900
|
-
: undefined,
|
|
5623
|
+
tcpRoute: output.tcpRoute != null ? deserializeAws_restJson1TcpRoute(output.tcpRoute, context) : undefined,
|
|
5901
5624
|
};
|
|
5902
5625
|
};
|
|
5903
5626
|
const deserializeAws_restJson1RouteStatus = (output, context) => {
|
|
@@ -5931,16 +5654,12 @@ const deserializeAws_restJson1SubjectAlternativeNameList = (output, context) =>
|
|
|
5931
5654
|
};
|
|
5932
5655
|
const deserializeAws_restJson1SubjectAlternativeNameMatchers = (output, context) => {
|
|
5933
5656
|
return {
|
|
5934
|
-
exact: output.exact
|
|
5935
|
-
? deserializeAws_restJson1SubjectAlternativeNameList(output.exact, context)
|
|
5936
|
-
: undefined,
|
|
5657
|
+
exact: output.exact != null ? deserializeAws_restJson1SubjectAlternativeNameList(output.exact, context) : undefined,
|
|
5937
5658
|
};
|
|
5938
5659
|
};
|
|
5939
5660
|
const deserializeAws_restJson1SubjectAlternativeNames = (output, context) => {
|
|
5940
5661
|
return {
|
|
5941
|
-
match: output.match
|
|
5942
|
-
? deserializeAws_restJson1SubjectAlternativeNameMatchers(output.match, context)
|
|
5943
|
-
: undefined,
|
|
5662
|
+
match: output.match != null ? deserializeAws_restJson1SubjectAlternativeNameMatchers(output.match, context) : undefined,
|
|
5944
5663
|
};
|
|
5945
5664
|
};
|
|
5946
5665
|
const deserializeAws_restJson1TagList = (output, context) => {
|
|
@@ -5973,41 +5692,35 @@ const deserializeAws_restJson1TcpRetryPolicyEvents = (output, context) => {
|
|
|
5973
5692
|
};
|
|
5974
5693
|
const deserializeAws_restJson1TcpRoute = (output, context) => {
|
|
5975
5694
|
return {
|
|
5976
|
-
action: output.action
|
|
5977
|
-
|
|
5978
|
-
: undefined,
|
|
5979
|
-
timeout: output.timeout !== undefined && output.timeout !== null
|
|
5980
|
-
? deserializeAws_restJson1TcpTimeout(output.timeout, context)
|
|
5981
|
-
: undefined,
|
|
5695
|
+
action: output.action != null ? deserializeAws_restJson1TcpRouteAction(output.action, context) : undefined,
|
|
5696
|
+
timeout: output.timeout != null ? deserializeAws_restJson1TcpTimeout(output.timeout, context) : undefined,
|
|
5982
5697
|
};
|
|
5983
5698
|
};
|
|
5984
5699
|
const deserializeAws_restJson1TcpRouteAction = (output, context) => {
|
|
5985
5700
|
return {
|
|
5986
|
-
weightedTargets: output.weightedTargets
|
|
5701
|
+
weightedTargets: output.weightedTargets != null
|
|
5987
5702
|
? deserializeAws_restJson1WeightedTargets(output.weightedTargets, context)
|
|
5988
5703
|
: undefined,
|
|
5989
5704
|
};
|
|
5990
5705
|
};
|
|
5991
5706
|
const deserializeAws_restJson1TcpTimeout = (output, context) => {
|
|
5992
5707
|
return {
|
|
5993
|
-
idle: output.idle
|
|
5994
|
-
? deserializeAws_restJson1Duration(output.idle, context)
|
|
5995
|
-
: undefined,
|
|
5708
|
+
idle: output.idle != null ? deserializeAws_restJson1Duration(output.idle, context) : undefined,
|
|
5996
5709
|
};
|
|
5997
5710
|
};
|
|
5998
5711
|
const deserializeAws_restJson1TlsValidationContext = (output, context) => {
|
|
5999
5712
|
return {
|
|
6000
|
-
subjectAlternativeNames: output.subjectAlternativeNames
|
|
5713
|
+
subjectAlternativeNames: output.subjectAlternativeNames != null
|
|
6001
5714
|
? deserializeAws_restJson1SubjectAlternativeNames(output.subjectAlternativeNames, context)
|
|
6002
5715
|
: undefined,
|
|
6003
|
-
trust: output.trust
|
|
5716
|
+
trust: output.trust != null
|
|
6004
5717
|
? deserializeAws_restJson1TlsValidationContextTrust((0, smithy_client_1.expectUnion)(output.trust), context)
|
|
6005
5718
|
: undefined,
|
|
6006
5719
|
};
|
|
6007
5720
|
};
|
|
6008
5721
|
const deserializeAws_restJson1TlsValidationContextAcmTrust = (output, context) => {
|
|
6009
5722
|
return {
|
|
6010
|
-
certificateAuthorityArns: output.certificateAuthorityArns
|
|
5723
|
+
certificateAuthorityArns: output.certificateAuthorityArns != null
|
|
6011
5724
|
? deserializeAws_restJson1CertificateAuthorityArns(output.certificateAuthorityArns, context)
|
|
6012
5725
|
: undefined,
|
|
6013
5726
|
};
|
|
@@ -6050,7 +5763,7 @@ const deserializeAws_restJson1VirtualGatewayAccessLog = (output, context) => {
|
|
|
6050
5763
|
};
|
|
6051
5764
|
const deserializeAws_restJson1VirtualGatewayBackendDefaults = (output, context) => {
|
|
6052
5765
|
return {
|
|
6053
|
-
clientPolicy: output.clientPolicy
|
|
5766
|
+
clientPolicy: output.clientPolicy != null
|
|
6054
5767
|
? deserializeAws_restJson1VirtualGatewayClientPolicy(output.clientPolicy, context)
|
|
6055
5768
|
: undefined,
|
|
6056
5769
|
};
|
|
@@ -6068,21 +5781,17 @@ const deserializeAws_restJson1VirtualGatewayCertificateAuthorityArns = (output,
|
|
|
6068
5781
|
};
|
|
6069
5782
|
const deserializeAws_restJson1VirtualGatewayClientPolicy = (output, context) => {
|
|
6070
5783
|
return {
|
|
6071
|
-
tls: output.tls
|
|
6072
|
-
? deserializeAws_restJson1VirtualGatewayClientPolicyTls(output.tls, context)
|
|
6073
|
-
: undefined,
|
|
5784
|
+
tls: output.tls != null ? deserializeAws_restJson1VirtualGatewayClientPolicyTls(output.tls, context) : undefined,
|
|
6074
5785
|
};
|
|
6075
5786
|
};
|
|
6076
5787
|
const deserializeAws_restJson1VirtualGatewayClientPolicyTls = (output, context) => {
|
|
6077
5788
|
return {
|
|
6078
|
-
certificate: output.certificate
|
|
5789
|
+
certificate: output.certificate != null
|
|
6079
5790
|
? deserializeAws_restJson1VirtualGatewayClientTlsCertificate((0, smithy_client_1.expectUnion)(output.certificate), context)
|
|
6080
5791
|
: undefined,
|
|
6081
5792
|
enforce: (0, smithy_client_1.expectBoolean)(output.enforce),
|
|
6082
|
-
ports: output.ports
|
|
6083
|
-
|
|
6084
|
-
: undefined,
|
|
6085
|
-
validation: output.validation !== undefined && output.validation !== null
|
|
5793
|
+
ports: output.ports != null ? deserializeAws_restJson1PortSet(output.ports, context) : undefined,
|
|
5794
|
+
validation: output.validation != null
|
|
6086
5795
|
? deserializeAws_restJson1VirtualGatewayTlsValidationContext(output.validation, context)
|
|
6087
5796
|
: undefined,
|
|
6088
5797
|
};
|
|
@@ -6121,15 +5830,9 @@ const deserializeAws_restJson1VirtualGatewayConnectionPool = (output, context) =
|
|
|
6121
5830
|
const deserializeAws_restJson1VirtualGatewayData = (output, context) => {
|
|
6122
5831
|
return {
|
|
6123
5832
|
meshName: (0, smithy_client_1.expectString)(output.meshName),
|
|
6124
|
-
metadata: output.metadata
|
|
6125
|
-
|
|
6126
|
-
|
|
6127
|
-
spec: output.spec !== undefined && output.spec !== null
|
|
6128
|
-
? deserializeAws_restJson1VirtualGatewaySpec(output.spec, context)
|
|
6129
|
-
: undefined,
|
|
6130
|
-
status: output.status !== undefined && output.status !== null
|
|
6131
|
-
? deserializeAws_restJson1VirtualGatewayStatus(output.status, context)
|
|
6132
|
-
: undefined,
|
|
5833
|
+
metadata: output.metadata != null ? deserializeAws_restJson1ResourceMetadata(output.metadata, context) : undefined,
|
|
5834
|
+
spec: output.spec != null ? deserializeAws_restJson1VirtualGatewaySpec(output.spec, context) : undefined,
|
|
5835
|
+
status: output.status != null ? deserializeAws_restJson1VirtualGatewayStatus(output.status, context) : undefined,
|
|
6133
5836
|
virtualGatewayName: (0, smithy_client_1.expectString)(output.virtualGatewayName),
|
|
6134
5837
|
};
|
|
6135
5838
|
};
|
|
@@ -6178,18 +5881,16 @@ const deserializeAws_restJson1VirtualGatewayList = (output, context) => {
|
|
|
6178
5881
|
};
|
|
6179
5882
|
const deserializeAws_restJson1VirtualGatewayListener = (output, context) => {
|
|
6180
5883
|
return {
|
|
6181
|
-
connectionPool: output.connectionPool
|
|
5884
|
+
connectionPool: output.connectionPool != null
|
|
6182
5885
|
? deserializeAws_restJson1VirtualGatewayConnectionPool((0, smithy_client_1.expectUnion)(output.connectionPool), context)
|
|
6183
5886
|
: undefined,
|
|
6184
|
-
healthCheck: output.healthCheck
|
|
5887
|
+
healthCheck: output.healthCheck != null
|
|
6185
5888
|
? deserializeAws_restJson1VirtualGatewayHealthCheckPolicy(output.healthCheck, context)
|
|
6186
5889
|
: undefined,
|
|
6187
|
-
portMapping: output.portMapping
|
|
5890
|
+
portMapping: output.portMapping != null
|
|
6188
5891
|
? deserializeAws_restJson1VirtualGatewayPortMapping(output.portMapping, context)
|
|
6189
5892
|
: undefined,
|
|
6190
|
-
tls: output.tls
|
|
6191
|
-
? deserializeAws_restJson1VirtualGatewayListenerTls(output.tls, context)
|
|
6192
|
-
: undefined,
|
|
5893
|
+
tls: output.tls != null ? deserializeAws_restJson1VirtualGatewayListenerTls(output.tls, context) : undefined,
|
|
6193
5894
|
};
|
|
6194
5895
|
};
|
|
6195
5896
|
const deserializeAws_restJson1VirtualGatewayListeners = (output, context) => {
|
|
@@ -6205,11 +5906,11 @@ const deserializeAws_restJson1VirtualGatewayListeners = (output, context) => {
|
|
|
6205
5906
|
};
|
|
6206
5907
|
const deserializeAws_restJson1VirtualGatewayListenerTls = (output, context) => {
|
|
6207
5908
|
return {
|
|
6208
|
-
certificate: output.certificate
|
|
5909
|
+
certificate: output.certificate != null
|
|
6209
5910
|
? deserializeAws_restJson1VirtualGatewayListenerTlsCertificate((0, smithy_client_1.expectUnion)(output.certificate), context)
|
|
6210
5911
|
: undefined,
|
|
6211
5912
|
mode: (0, smithy_client_1.expectString)(output.mode),
|
|
6212
|
-
validation: output.validation
|
|
5913
|
+
validation: output.validation != null
|
|
6213
5914
|
? deserializeAws_restJson1VirtualGatewayListenerTlsValidationContext(output.validation, context)
|
|
6214
5915
|
: undefined,
|
|
6215
5916
|
};
|
|
@@ -6250,10 +5951,10 @@ const deserializeAws_restJson1VirtualGatewayListenerTlsSdsCertificate = (output,
|
|
|
6250
5951
|
};
|
|
6251
5952
|
const deserializeAws_restJson1VirtualGatewayListenerTlsValidationContext = (output, context) => {
|
|
6252
5953
|
return {
|
|
6253
|
-
subjectAlternativeNames: output.subjectAlternativeNames
|
|
5954
|
+
subjectAlternativeNames: output.subjectAlternativeNames != null
|
|
6254
5955
|
? deserializeAws_restJson1SubjectAlternativeNames(output.subjectAlternativeNames, context)
|
|
6255
5956
|
: undefined,
|
|
6256
|
-
trust: output.trust
|
|
5957
|
+
trust: output.trust != null
|
|
6257
5958
|
? deserializeAws_restJson1VirtualGatewayListenerTlsValidationContextTrust((0, smithy_client_1.expectUnion)(output.trust), context)
|
|
6258
5959
|
: undefined,
|
|
6259
5960
|
};
|
|
@@ -6273,7 +5974,7 @@ const deserializeAws_restJson1VirtualGatewayListenerTlsValidationContextTrust =
|
|
|
6273
5974
|
};
|
|
6274
5975
|
const deserializeAws_restJson1VirtualGatewayLogging = (output, context) => {
|
|
6275
5976
|
return {
|
|
6276
|
-
accessLog: output.accessLog
|
|
5977
|
+
accessLog: output.accessLog != null
|
|
6277
5978
|
? deserializeAws_restJson1VirtualGatewayAccessLog((0, smithy_client_1.expectUnion)(output.accessLog), context)
|
|
6278
5979
|
: undefined,
|
|
6279
5980
|
};
|
|
@@ -6287,10 +5988,8 @@ const deserializeAws_restJson1VirtualGatewayPortMapping = (output, context) => {
|
|
|
6287
5988
|
const deserializeAws_restJson1VirtualGatewayRef = (output, context) => {
|
|
6288
5989
|
return {
|
|
6289
5990
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
6290
|
-
createdAt: output.createdAt
|
|
6291
|
-
|
|
6292
|
-
: undefined,
|
|
6293
|
-
lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
|
|
5991
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
5992
|
+
lastUpdatedAt: output.lastUpdatedAt != null
|
|
6294
5993
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt)))
|
|
6295
5994
|
: undefined,
|
|
6296
5995
|
meshName: (0, smithy_client_1.expectString)(output.meshName),
|
|
@@ -6302,15 +6001,11 @@ const deserializeAws_restJson1VirtualGatewayRef = (output, context) => {
|
|
|
6302
6001
|
};
|
|
6303
6002
|
const deserializeAws_restJson1VirtualGatewaySpec = (output, context) => {
|
|
6304
6003
|
return {
|
|
6305
|
-
backendDefaults: output.backendDefaults
|
|
6004
|
+
backendDefaults: output.backendDefaults != null
|
|
6306
6005
|
? deserializeAws_restJson1VirtualGatewayBackendDefaults(output.backendDefaults, context)
|
|
6307
6006
|
: undefined,
|
|
6308
|
-
listeners: output.listeners
|
|
6309
|
-
|
|
6310
|
-
: undefined,
|
|
6311
|
-
logging: output.logging !== undefined && output.logging !== null
|
|
6312
|
-
? deserializeAws_restJson1VirtualGatewayLogging(output.logging, context)
|
|
6313
|
-
: undefined,
|
|
6007
|
+
listeners: output.listeners != null ? deserializeAws_restJson1VirtualGatewayListeners(output.listeners, context) : undefined,
|
|
6008
|
+
logging: output.logging != null ? deserializeAws_restJson1VirtualGatewayLogging(output.logging, context) : undefined,
|
|
6314
6009
|
};
|
|
6315
6010
|
};
|
|
6316
6011
|
const deserializeAws_restJson1VirtualGatewayStatus = (output, context) => {
|
|
@@ -6320,17 +6015,17 @@ const deserializeAws_restJson1VirtualGatewayStatus = (output, context) => {
|
|
|
6320
6015
|
};
|
|
6321
6016
|
const deserializeAws_restJson1VirtualGatewayTlsValidationContext = (output, context) => {
|
|
6322
6017
|
return {
|
|
6323
|
-
subjectAlternativeNames: output.subjectAlternativeNames
|
|
6018
|
+
subjectAlternativeNames: output.subjectAlternativeNames != null
|
|
6324
6019
|
? deserializeAws_restJson1SubjectAlternativeNames(output.subjectAlternativeNames, context)
|
|
6325
6020
|
: undefined,
|
|
6326
|
-
trust: output.trust
|
|
6021
|
+
trust: output.trust != null
|
|
6327
6022
|
? deserializeAws_restJson1VirtualGatewayTlsValidationContextTrust((0, smithy_client_1.expectUnion)(output.trust), context)
|
|
6328
6023
|
: undefined,
|
|
6329
6024
|
};
|
|
6330
6025
|
};
|
|
6331
6026
|
const deserializeAws_restJson1VirtualGatewayTlsValidationContextAcmTrust = (output, context) => {
|
|
6332
6027
|
return {
|
|
6333
|
-
certificateAuthorityArns: output.certificateAuthorityArns
|
|
6028
|
+
certificateAuthorityArns: output.certificateAuthorityArns != null
|
|
6334
6029
|
? deserializeAws_restJson1VirtualGatewayCertificateAuthorityArns(output.certificateAuthorityArns, context)
|
|
6335
6030
|
: undefined,
|
|
6336
6031
|
};
|
|
@@ -6389,15 +6084,9 @@ const deserializeAws_restJson1VirtualNodeConnectionPool = (output, context) => {
|
|
|
6389
6084
|
const deserializeAws_restJson1VirtualNodeData = (output, context) => {
|
|
6390
6085
|
return {
|
|
6391
6086
|
meshName: (0, smithy_client_1.expectString)(output.meshName),
|
|
6392
|
-
metadata: output.metadata
|
|
6393
|
-
|
|
6394
|
-
|
|
6395
|
-
spec: output.spec !== undefined && output.spec !== null
|
|
6396
|
-
? deserializeAws_restJson1VirtualNodeSpec(output.spec, context)
|
|
6397
|
-
: undefined,
|
|
6398
|
-
status: output.status !== undefined && output.status !== null
|
|
6399
|
-
? deserializeAws_restJson1VirtualNodeStatus(output.status, context)
|
|
6400
|
-
: undefined,
|
|
6087
|
+
metadata: output.metadata != null ? deserializeAws_restJson1ResourceMetadata(output.metadata, context) : undefined,
|
|
6088
|
+
spec: output.spec != null ? deserializeAws_restJson1VirtualNodeSpec(output.spec, context) : undefined,
|
|
6089
|
+
status: output.status != null ? deserializeAws_restJson1VirtualNodeStatus(output.status, context) : undefined,
|
|
6401
6090
|
virtualNodeName: (0, smithy_client_1.expectString)(output.virtualNodeName),
|
|
6402
6091
|
};
|
|
6403
6092
|
};
|
|
@@ -6431,10 +6120,8 @@ const deserializeAws_restJson1VirtualNodeList = (output, context) => {
|
|
|
6431
6120
|
const deserializeAws_restJson1VirtualNodeRef = (output, context) => {
|
|
6432
6121
|
return {
|
|
6433
6122
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
6434
|
-
createdAt: output.createdAt
|
|
6435
|
-
|
|
6436
|
-
: undefined,
|
|
6437
|
-
lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
|
|
6123
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
6124
|
+
lastUpdatedAt: output.lastUpdatedAt != null
|
|
6438
6125
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt)))
|
|
6439
6126
|
: undefined,
|
|
6440
6127
|
meshName: (0, smithy_client_1.expectString)(output.meshName),
|
|
@@ -6451,19 +6138,13 @@ const deserializeAws_restJson1VirtualNodeServiceProvider = (output, context) =>
|
|
|
6451
6138
|
};
|
|
6452
6139
|
const deserializeAws_restJson1VirtualNodeSpec = (output, context) => {
|
|
6453
6140
|
return {
|
|
6454
|
-
backendDefaults: output.backendDefaults
|
|
6141
|
+
backendDefaults: output.backendDefaults != null
|
|
6455
6142
|
? deserializeAws_restJson1BackendDefaults(output.backendDefaults, context)
|
|
6456
6143
|
: undefined,
|
|
6457
|
-
backends: output.backends
|
|
6458
|
-
|
|
6459
|
-
|
|
6460
|
-
|
|
6461
|
-
? deserializeAws_restJson1Listeners(output.listeners, context)
|
|
6462
|
-
: undefined,
|
|
6463
|
-
logging: output.logging !== undefined && output.logging !== null
|
|
6464
|
-
? deserializeAws_restJson1Logging(output.logging, context)
|
|
6465
|
-
: undefined,
|
|
6466
|
-
serviceDiscovery: output.serviceDiscovery !== undefined && output.serviceDiscovery !== null
|
|
6144
|
+
backends: output.backends != null ? deserializeAws_restJson1Backends(output.backends, context) : undefined,
|
|
6145
|
+
listeners: output.listeners != null ? deserializeAws_restJson1Listeners(output.listeners, context) : undefined,
|
|
6146
|
+
logging: output.logging != null ? deserializeAws_restJson1Logging(output.logging, context) : undefined,
|
|
6147
|
+
serviceDiscovery: output.serviceDiscovery != null
|
|
6467
6148
|
? deserializeAws_restJson1ServiceDiscovery((0, smithy_client_1.expectUnion)(output.serviceDiscovery), context)
|
|
6468
6149
|
: undefined,
|
|
6469
6150
|
};
|
|
@@ -6481,15 +6162,9 @@ const deserializeAws_restJson1VirtualNodeTcpConnectionPool = (output, context) =
|
|
|
6481
6162
|
const deserializeAws_restJson1VirtualRouterData = (output, context) => {
|
|
6482
6163
|
return {
|
|
6483
6164
|
meshName: (0, smithy_client_1.expectString)(output.meshName),
|
|
6484
|
-
metadata: output.metadata
|
|
6485
|
-
|
|
6486
|
-
|
|
6487
|
-
spec: output.spec !== undefined && output.spec !== null
|
|
6488
|
-
? deserializeAws_restJson1VirtualRouterSpec(output.spec, context)
|
|
6489
|
-
: undefined,
|
|
6490
|
-
status: output.status !== undefined && output.status !== null
|
|
6491
|
-
? deserializeAws_restJson1VirtualRouterStatus(output.status, context)
|
|
6492
|
-
: undefined,
|
|
6165
|
+
metadata: output.metadata != null ? deserializeAws_restJson1ResourceMetadata(output.metadata, context) : undefined,
|
|
6166
|
+
spec: output.spec != null ? deserializeAws_restJson1VirtualRouterSpec(output.spec, context) : undefined,
|
|
6167
|
+
status: output.status != null ? deserializeAws_restJson1VirtualRouterStatus(output.status, context) : undefined,
|
|
6493
6168
|
virtualRouterName: (0, smithy_client_1.expectString)(output.virtualRouterName),
|
|
6494
6169
|
};
|
|
6495
6170
|
};
|
|
@@ -6506,9 +6181,7 @@ const deserializeAws_restJson1VirtualRouterList = (output, context) => {
|
|
|
6506
6181
|
};
|
|
6507
6182
|
const deserializeAws_restJson1VirtualRouterListener = (output, context) => {
|
|
6508
6183
|
return {
|
|
6509
|
-
portMapping: output.portMapping
|
|
6510
|
-
? deserializeAws_restJson1PortMapping(output.portMapping, context)
|
|
6511
|
-
: undefined,
|
|
6184
|
+
portMapping: output.portMapping != null ? deserializeAws_restJson1PortMapping(output.portMapping, context) : undefined,
|
|
6512
6185
|
};
|
|
6513
6186
|
};
|
|
6514
6187
|
const deserializeAws_restJson1VirtualRouterListeners = (output, context) => {
|
|
@@ -6525,10 +6198,8 @@ const deserializeAws_restJson1VirtualRouterListeners = (output, context) => {
|
|
|
6525
6198
|
const deserializeAws_restJson1VirtualRouterRef = (output, context) => {
|
|
6526
6199
|
return {
|
|
6527
6200
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
6528
|
-
createdAt: output.createdAt
|
|
6529
|
-
|
|
6530
|
-
: undefined,
|
|
6531
|
-
lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
|
|
6201
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
6202
|
+
lastUpdatedAt: output.lastUpdatedAt != null
|
|
6532
6203
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt)))
|
|
6533
6204
|
: undefined,
|
|
6534
6205
|
meshName: (0, smithy_client_1.expectString)(output.meshName),
|
|
@@ -6545,9 +6216,7 @@ const deserializeAws_restJson1VirtualRouterServiceProvider = (output, context) =
|
|
|
6545
6216
|
};
|
|
6546
6217
|
const deserializeAws_restJson1VirtualRouterSpec = (output, context) => {
|
|
6547
6218
|
return {
|
|
6548
|
-
listeners: output.listeners
|
|
6549
|
-
? deserializeAws_restJson1VirtualRouterListeners(output.listeners, context)
|
|
6550
|
-
: undefined,
|
|
6219
|
+
listeners: output.listeners != null ? deserializeAws_restJson1VirtualRouterListeners(output.listeners, context) : undefined,
|
|
6551
6220
|
};
|
|
6552
6221
|
};
|
|
6553
6222
|
const deserializeAws_restJson1VirtualRouterStatus = (output, context) => {
|
|
@@ -6557,24 +6226,16 @@ const deserializeAws_restJson1VirtualRouterStatus = (output, context) => {
|
|
|
6557
6226
|
};
|
|
6558
6227
|
const deserializeAws_restJson1VirtualServiceBackend = (output, context) => {
|
|
6559
6228
|
return {
|
|
6560
|
-
clientPolicy: output.clientPolicy
|
|
6561
|
-
? deserializeAws_restJson1ClientPolicy(output.clientPolicy, context)
|
|
6562
|
-
: undefined,
|
|
6229
|
+
clientPolicy: output.clientPolicy != null ? deserializeAws_restJson1ClientPolicy(output.clientPolicy, context) : undefined,
|
|
6563
6230
|
virtualServiceName: (0, smithy_client_1.expectString)(output.virtualServiceName),
|
|
6564
6231
|
};
|
|
6565
6232
|
};
|
|
6566
6233
|
const deserializeAws_restJson1VirtualServiceData = (output, context) => {
|
|
6567
6234
|
return {
|
|
6568
6235
|
meshName: (0, smithy_client_1.expectString)(output.meshName),
|
|
6569
|
-
metadata: output.metadata
|
|
6570
|
-
|
|
6571
|
-
|
|
6572
|
-
spec: output.spec !== undefined && output.spec !== null
|
|
6573
|
-
? deserializeAws_restJson1VirtualServiceSpec(output.spec, context)
|
|
6574
|
-
: undefined,
|
|
6575
|
-
status: output.status !== undefined && output.status !== null
|
|
6576
|
-
? deserializeAws_restJson1VirtualServiceStatus(output.status, context)
|
|
6577
|
-
: undefined,
|
|
6236
|
+
metadata: output.metadata != null ? deserializeAws_restJson1ResourceMetadata(output.metadata, context) : undefined,
|
|
6237
|
+
spec: output.spec != null ? deserializeAws_restJson1VirtualServiceSpec(output.spec, context) : undefined,
|
|
6238
|
+
status: output.status != null ? deserializeAws_restJson1VirtualServiceStatus(output.status, context) : undefined,
|
|
6578
6239
|
virtualServiceName: (0, smithy_client_1.expectString)(output.virtualServiceName),
|
|
6579
6240
|
};
|
|
6580
6241
|
};
|
|
@@ -6605,10 +6266,8 @@ const deserializeAws_restJson1VirtualServiceProvider = (output, context) => {
|
|
|
6605
6266
|
const deserializeAws_restJson1VirtualServiceRef = (output, context) => {
|
|
6606
6267
|
return {
|
|
6607
6268
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
6608
|
-
createdAt: output.createdAt
|
|
6609
|
-
|
|
6610
|
-
: undefined,
|
|
6611
|
-
lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
|
|
6269
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
6270
|
+
lastUpdatedAt: output.lastUpdatedAt != null
|
|
6612
6271
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt)))
|
|
6613
6272
|
: undefined,
|
|
6614
6273
|
meshName: (0, smithy_client_1.expectString)(output.meshName),
|
|
@@ -6620,7 +6279,7 @@ const deserializeAws_restJson1VirtualServiceRef = (output, context) => {
|
|
|
6620
6279
|
};
|
|
6621
6280
|
const deserializeAws_restJson1VirtualServiceSpec = (output, context) => {
|
|
6622
6281
|
return {
|
|
6623
|
-
provider: output.provider
|
|
6282
|
+
provider: output.provider != null
|
|
6624
6283
|
? deserializeAws_restJson1VirtualServiceProvider((0, smithy_client_1.expectUnion)(output.provider), context)
|
|
6625
6284
|
: undefined,
|
|
6626
6285
|
};
|