@aws-sdk/client-app-mesh 3.312.0 → 3.315.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/protocols/Aws_restJson1.js +437 -2684
- package/dist-es/protocols/Aws_restJson1.js +356 -2603
- package/package.json +6 -6
|
@@ -16,16 +16,16 @@ const se_CreateGatewayRouteCommand = async (input, context) => {
|
|
|
16
16
|
"/v20190125/meshes/{meshName}/virtualGateway/{virtualGatewayName}/gatewayRoutes";
|
|
17
17
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "meshName", () => input.meshName, "{meshName}", false);
|
|
18
18
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "virtualGatewayName", () => input.virtualGatewayName, "{virtualGatewayName}", false);
|
|
19
|
-
const query = map({
|
|
19
|
+
const query = (0, smithy_client_1.map)({
|
|
20
20
|
meshOwner: [, input.meshOwner],
|
|
21
21
|
});
|
|
22
22
|
let body;
|
|
23
|
-
body = JSON.stringify({
|
|
24
|
-
clientToken:
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
});
|
|
23
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
24
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
25
|
+
gatewayRouteName: [],
|
|
26
|
+
spec: (_) => (0, smithy_client_1._json)(_),
|
|
27
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
28
|
+
}));
|
|
29
29
|
return new protocol_http_1.HttpRequest({
|
|
30
30
|
protocol,
|
|
31
31
|
hostname,
|
|
@@ -45,12 +45,12 @@ const se_CreateMeshCommand = async (input, context) => {
|
|
|
45
45
|
};
|
|
46
46
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20190125/meshes";
|
|
47
47
|
let body;
|
|
48
|
-
body = JSON.stringify({
|
|
49
|
-
clientToken:
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
});
|
|
48
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
49
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
50
|
+
meshName: [],
|
|
51
|
+
spec: (_) => (0, smithy_client_1._json)(_),
|
|
52
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
53
|
+
}));
|
|
54
54
|
return new protocol_http_1.HttpRequest({
|
|
55
55
|
protocol,
|
|
56
56
|
hostname,
|
|
@@ -71,16 +71,16 @@ const se_CreateRouteCommand = async (input, context) => {
|
|
|
71
71
|
"/v20190125/meshes/{meshName}/virtualRouter/{virtualRouterName}/routes";
|
|
72
72
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "meshName", () => input.meshName, "{meshName}", false);
|
|
73
73
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "virtualRouterName", () => input.virtualRouterName, "{virtualRouterName}", false);
|
|
74
|
-
const query = map({
|
|
74
|
+
const query = (0, smithy_client_1.map)({
|
|
75
75
|
meshOwner: [, input.meshOwner],
|
|
76
76
|
});
|
|
77
77
|
let body;
|
|
78
|
-
body = JSON.stringify({
|
|
79
|
-
clientToken:
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
});
|
|
78
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
79
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
80
|
+
routeName: [],
|
|
81
|
+
spec: (_) => (0, smithy_client_1._json)(_),
|
|
82
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
83
|
+
}));
|
|
84
84
|
return new protocol_http_1.HttpRequest({
|
|
85
85
|
protocol,
|
|
86
86
|
hostname,
|
|
@@ -101,16 +101,16 @@ const se_CreateVirtualGatewayCommand = async (input, context) => {
|
|
|
101
101
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
102
102
|
"/v20190125/meshes/{meshName}/virtualGateways";
|
|
103
103
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "meshName", () => input.meshName, "{meshName}", false);
|
|
104
|
-
const query = map({
|
|
104
|
+
const query = (0, smithy_client_1.map)({
|
|
105
105
|
meshOwner: [, input.meshOwner],
|
|
106
106
|
});
|
|
107
107
|
let body;
|
|
108
|
-
body = JSON.stringify({
|
|
109
|
-
clientToken:
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
});
|
|
108
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
109
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
110
|
+
spec: (_) => (0, smithy_client_1._json)(_),
|
|
111
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
112
|
+
virtualGatewayName: [],
|
|
113
|
+
}));
|
|
114
114
|
return new protocol_http_1.HttpRequest({
|
|
115
115
|
protocol,
|
|
116
116
|
hostname,
|
|
@@ -130,16 +130,16 @@ const se_CreateVirtualNodeCommand = async (input, context) => {
|
|
|
130
130
|
};
|
|
131
131
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20190125/meshes/{meshName}/virtualNodes";
|
|
132
132
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "meshName", () => input.meshName, "{meshName}", false);
|
|
133
|
-
const query = map({
|
|
133
|
+
const query = (0, smithy_client_1.map)({
|
|
134
134
|
meshOwner: [, input.meshOwner],
|
|
135
135
|
});
|
|
136
136
|
let body;
|
|
137
|
-
body = JSON.stringify({
|
|
138
|
-
clientToken:
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
});
|
|
137
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
138
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
139
|
+
spec: (_) => (0, smithy_client_1._json)(_),
|
|
140
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
141
|
+
virtualNodeName: [],
|
|
142
|
+
}));
|
|
143
143
|
return new protocol_http_1.HttpRequest({
|
|
144
144
|
protocol,
|
|
145
145
|
hostname,
|
|
@@ -160,16 +160,16 @@ const se_CreateVirtualRouterCommand = async (input, context) => {
|
|
|
160
160
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
161
161
|
"/v20190125/meshes/{meshName}/virtualRouters";
|
|
162
162
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "meshName", () => input.meshName, "{meshName}", false);
|
|
163
|
-
const query = map({
|
|
163
|
+
const query = (0, smithy_client_1.map)({
|
|
164
164
|
meshOwner: [, input.meshOwner],
|
|
165
165
|
});
|
|
166
166
|
let body;
|
|
167
|
-
body = JSON.stringify({
|
|
168
|
-
clientToken:
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
});
|
|
167
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
168
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
169
|
+
spec: (_) => (0, smithy_client_1._json)(_),
|
|
170
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
171
|
+
virtualRouterName: [],
|
|
172
|
+
}));
|
|
173
173
|
return new protocol_http_1.HttpRequest({
|
|
174
174
|
protocol,
|
|
175
175
|
hostname,
|
|
@@ -190,16 +190,16 @@ const se_CreateVirtualServiceCommand = async (input, context) => {
|
|
|
190
190
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
191
191
|
"/v20190125/meshes/{meshName}/virtualServices";
|
|
192
192
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "meshName", () => input.meshName, "{meshName}", false);
|
|
193
|
-
const query = map({
|
|
193
|
+
const query = (0, smithy_client_1.map)({
|
|
194
194
|
meshOwner: [, input.meshOwner],
|
|
195
195
|
});
|
|
196
196
|
let body;
|
|
197
|
-
body = JSON.stringify({
|
|
198
|
-
clientToken:
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
});
|
|
197
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
198
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
199
|
+
spec: (_) => (0, smithy_client_1._json)(_),
|
|
200
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
201
|
+
virtualServiceName: [],
|
|
202
|
+
}));
|
|
203
203
|
return new protocol_http_1.HttpRequest({
|
|
204
204
|
protocol,
|
|
205
205
|
hostname,
|
|
@@ -220,7 +220,7 @@ const se_DeleteGatewayRouteCommand = async (input, context) => {
|
|
|
220
220
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "gatewayRouteName", () => input.gatewayRouteName, "{gatewayRouteName}", false);
|
|
221
221
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "meshName", () => input.meshName, "{meshName}", false);
|
|
222
222
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "virtualGatewayName", () => input.virtualGatewayName, "{virtualGatewayName}", false);
|
|
223
|
-
const query = map({
|
|
223
|
+
const query = (0, smithy_client_1.map)({
|
|
224
224
|
meshOwner: [, input.meshOwner],
|
|
225
225
|
});
|
|
226
226
|
let body;
|
|
@@ -261,7 +261,7 @@ const se_DeleteRouteCommand = async (input, context) => {
|
|
|
261
261
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "routeName", () => input.routeName, "{routeName}", false);
|
|
262
262
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "meshName", () => input.meshName, "{meshName}", false);
|
|
263
263
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "virtualRouterName", () => input.virtualRouterName, "{virtualRouterName}", false);
|
|
264
|
-
const query = map({
|
|
264
|
+
const query = (0, smithy_client_1.map)({
|
|
265
265
|
meshOwner: [, input.meshOwner],
|
|
266
266
|
});
|
|
267
267
|
let body;
|
|
@@ -284,7 +284,7 @@ const se_DeleteVirtualGatewayCommand = async (input, context) => {
|
|
|
284
284
|
"/v20190125/meshes/{meshName}/virtualGateways/{virtualGatewayName}";
|
|
285
285
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "virtualGatewayName", () => input.virtualGatewayName, "{virtualGatewayName}", false);
|
|
286
286
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "meshName", () => input.meshName, "{meshName}", false);
|
|
287
|
-
const query = map({
|
|
287
|
+
const query = (0, smithy_client_1.map)({
|
|
288
288
|
meshOwner: [, input.meshOwner],
|
|
289
289
|
});
|
|
290
290
|
let body;
|
|
@@ -307,7 +307,7 @@ const se_DeleteVirtualNodeCommand = async (input, context) => {
|
|
|
307
307
|
"/v20190125/meshes/{meshName}/virtualNodes/{virtualNodeName}";
|
|
308
308
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "virtualNodeName", () => input.virtualNodeName, "{virtualNodeName}", false);
|
|
309
309
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "meshName", () => input.meshName, "{meshName}", false);
|
|
310
|
-
const query = map({
|
|
310
|
+
const query = (0, smithy_client_1.map)({
|
|
311
311
|
meshOwner: [, input.meshOwner],
|
|
312
312
|
});
|
|
313
313
|
let body;
|
|
@@ -330,7 +330,7 @@ const se_DeleteVirtualRouterCommand = async (input, context) => {
|
|
|
330
330
|
"/v20190125/meshes/{meshName}/virtualRouters/{virtualRouterName}";
|
|
331
331
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "virtualRouterName", () => input.virtualRouterName, "{virtualRouterName}", false);
|
|
332
332
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "meshName", () => input.meshName, "{meshName}", false);
|
|
333
|
-
const query = map({
|
|
333
|
+
const query = (0, smithy_client_1.map)({
|
|
334
334
|
meshOwner: [, input.meshOwner],
|
|
335
335
|
});
|
|
336
336
|
let body;
|
|
@@ -353,7 +353,7 @@ const se_DeleteVirtualServiceCommand = async (input, context) => {
|
|
|
353
353
|
"/v20190125/meshes/{meshName}/virtualServices/{virtualServiceName}";
|
|
354
354
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "virtualServiceName", () => input.virtualServiceName, "{virtualServiceName}", false);
|
|
355
355
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "meshName", () => input.meshName, "{meshName}", false);
|
|
356
|
-
const query = map({
|
|
356
|
+
const query = (0, smithy_client_1.map)({
|
|
357
357
|
meshOwner: [, input.meshOwner],
|
|
358
358
|
});
|
|
359
359
|
let body;
|
|
@@ -377,7 +377,7 @@ const se_DescribeGatewayRouteCommand = async (input, context) => {
|
|
|
377
377
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "gatewayRouteName", () => input.gatewayRouteName, "{gatewayRouteName}", false);
|
|
378
378
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "meshName", () => input.meshName, "{meshName}", false);
|
|
379
379
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "virtualGatewayName", () => input.virtualGatewayName, "{virtualGatewayName}", false);
|
|
380
|
-
const query = map({
|
|
380
|
+
const query = (0, smithy_client_1.map)({
|
|
381
381
|
meshOwner: [, input.meshOwner],
|
|
382
382
|
});
|
|
383
383
|
let body;
|
|
@@ -398,7 +398,7 @@ const se_DescribeMeshCommand = async (input, context) => {
|
|
|
398
398
|
const headers = {};
|
|
399
399
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20190125/meshes/{meshName}";
|
|
400
400
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "meshName", () => input.meshName, "{meshName}", false);
|
|
401
|
-
const query = map({
|
|
401
|
+
const query = (0, smithy_client_1.map)({
|
|
402
402
|
meshOwner: [, input.meshOwner],
|
|
403
403
|
});
|
|
404
404
|
let body;
|
|
@@ -422,7 +422,7 @@ const se_DescribeRouteCommand = async (input, context) => {
|
|
|
422
422
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "routeName", () => input.routeName, "{routeName}", false);
|
|
423
423
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "meshName", () => input.meshName, "{meshName}", false);
|
|
424
424
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "virtualRouterName", () => input.virtualRouterName, "{virtualRouterName}", false);
|
|
425
|
-
const query = map({
|
|
425
|
+
const query = (0, smithy_client_1.map)({
|
|
426
426
|
meshOwner: [, input.meshOwner],
|
|
427
427
|
});
|
|
428
428
|
let body;
|
|
@@ -445,7 +445,7 @@ const se_DescribeVirtualGatewayCommand = async (input, context) => {
|
|
|
445
445
|
"/v20190125/meshes/{meshName}/virtualGateways/{virtualGatewayName}";
|
|
446
446
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "virtualGatewayName", () => input.virtualGatewayName, "{virtualGatewayName}", false);
|
|
447
447
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "meshName", () => input.meshName, "{meshName}", false);
|
|
448
|
-
const query = map({
|
|
448
|
+
const query = (0, smithy_client_1.map)({
|
|
449
449
|
meshOwner: [, input.meshOwner],
|
|
450
450
|
});
|
|
451
451
|
let body;
|
|
@@ -468,7 +468,7 @@ const se_DescribeVirtualNodeCommand = async (input, context) => {
|
|
|
468
468
|
"/v20190125/meshes/{meshName}/virtualNodes/{virtualNodeName}";
|
|
469
469
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "virtualNodeName", () => input.virtualNodeName, "{virtualNodeName}", false);
|
|
470
470
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "meshName", () => input.meshName, "{meshName}", false);
|
|
471
|
-
const query = map({
|
|
471
|
+
const query = (0, smithy_client_1.map)({
|
|
472
472
|
meshOwner: [, input.meshOwner],
|
|
473
473
|
});
|
|
474
474
|
let body;
|
|
@@ -491,7 +491,7 @@ const se_DescribeVirtualRouterCommand = async (input, context) => {
|
|
|
491
491
|
"/v20190125/meshes/{meshName}/virtualRouters/{virtualRouterName}";
|
|
492
492
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "virtualRouterName", () => input.virtualRouterName, "{virtualRouterName}", false);
|
|
493
493
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "meshName", () => input.meshName, "{meshName}", false);
|
|
494
|
-
const query = map({
|
|
494
|
+
const query = (0, smithy_client_1.map)({
|
|
495
495
|
meshOwner: [, input.meshOwner],
|
|
496
496
|
});
|
|
497
497
|
let body;
|
|
@@ -514,7 +514,7 @@ const se_DescribeVirtualServiceCommand = async (input, context) => {
|
|
|
514
514
|
"/v20190125/meshes/{meshName}/virtualServices/{virtualServiceName}";
|
|
515
515
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "virtualServiceName", () => input.virtualServiceName, "{virtualServiceName}", false);
|
|
516
516
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "meshName", () => input.meshName, "{meshName}", false);
|
|
517
|
-
const query = map({
|
|
517
|
+
const query = (0, smithy_client_1.map)({
|
|
518
518
|
meshOwner: [, input.meshOwner],
|
|
519
519
|
});
|
|
520
520
|
let body;
|
|
@@ -537,7 +537,7 @@ const se_ListGatewayRoutesCommand = async (input, context) => {
|
|
|
537
537
|
"/v20190125/meshes/{meshName}/virtualGateway/{virtualGatewayName}/gatewayRoutes";
|
|
538
538
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "meshName", () => input.meshName, "{meshName}", false);
|
|
539
539
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "virtualGatewayName", () => input.virtualGatewayName, "{virtualGatewayName}", false);
|
|
540
|
-
const query = map({
|
|
540
|
+
const query = (0, smithy_client_1.map)({
|
|
541
541
|
nextToken: [, input.nextToken],
|
|
542
542
|
limit: [() => input.limit !== void 0, () => input.limit.toString()],
|
|
543
543
|
meshOwner: [, input.meshOwner],
|
|
@@ -559,7 +559,7 @@ const se_ListMeshesCommand = async (input, context) => {
|
|
|
559
559
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
560
560
|
const headers = {};
|
|
561
561
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20190125/meshes";
|
|
562
|
-
const query = map({
|
|
562
|
+
const query = (0, smithy_client_1.map)({
|
|
563
563
|
nextToken: [, input.nextToken],
|
|
564
564
|
limit: [() => input.limit !== void 0, () => input.limit.toString()],
|
|
565
565
|
});
|
|
@@ -583,7 +583,7 @@ const se_ListRoutesCommand = async (input, context) => {
|
|
|
583
583
|
"/v20190125/meshes/{meshName}/virtualRouter/{virtualRouterName}/routes";
|
|
584
584
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "meshName", () => input.meshName, "{meshName}", false);
|
|
585
585
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "virtualRouterName", () => input.virtualRouterName, "{virtualRouterName}", false);
|
|
586
|
-
const query = map({
|
|
586
|
+
const query = (0, smithy_client_1.map)({
|
|
587
587
|
nextToken: [, input.nextToken],
|
|
588
588
|
limit: [() => input.limit !== void 0, () => input.limit.toString()],
|
|
589
589
|
meshOwner: [, input.meshOwner],
|
|
@@ -605,7 +605,7 @@ const se_ListTagsForResourceCommand = async (input, context) => {
|
|
|
605
605
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
606
606
|
const headers = {};
|
|
607
607
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20190125/tags";
|
|
608
|
-
const query = map({
|
|
608
|
+
const query = (0, smithy_client_1.map)({
|
|
609
609
|
resourceArn: [, (0, smithy_client_1.expectNonNull)(input.resourceArn, `resourceArn`)],
|
|
610
610
|
nextToken: [, input.nextToken],
|
|
611
611
|
limit: [() => input.limit !== void 0, () => input.limit.toString()],
|
|
@@ -629,7 +629,7 @@ const se_ListVirtualGatewaysCommand = async (input, context) => {
|
|
|
629
629
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
630
630
|
"/v20190125/meshes/{meshName}/virtualGateways";
|
|
631
631
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "meshName", () => input.meshName, "{meshName}", false);
|
|
632
|
-
const query = map({
|
|
632
|
+
const query = (0, smithy_client_1.map)({
|
|
633
633
|
nextToken: [, input.nextToken],
|
|
634
634
|
limit: [() => input.limit !== void 0, () => input.limit.toString()],
|
|
635
635
|
meshOwner: [, input.meshOwner],
|
|
@@ -652,7 +652,7 @@ const se_ListVirtualNodesCommand = async (input, context) => {
|
|
|
652
652
|
const headers = {};
|
|
653
653
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20190125/meshes/{meshName}/virtualNodes";
|
|
654
654
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "meshName", () => input.meshName, "{meshName}", false);
|
|
655
|
-
const query = map({
|
|
655
|
+
const query = (0, smithy_client_1.map)({
|
|
656
656
|
nextToken: [, input.nextToken],
|
|
657
657
|
limit: [() => input.limit !== void 0, () => input.limit.toString()],
|
|
658
658
|
meshOwner: [, input.meshOwner],
|
|
@@ -676,7 +676,7 @@ const se_ListVirtualRoutersCommand = async (input, context) => {
|
|
|
676
676
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
677
677
|
"/v20190125/meshes/{meshName}/virtualRouters";
|
|
678
678
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "meshName", () => input.meshName, "{meshName}", false);
|
|
679
|
-
const query = map({
|
|
679
|
+
const query = (0, smithy_client_1.map)({
|
|
680
680
|
nextToken: [, input.nextToken],
|
|
681
681
|
limit: [() => input.limit !== void 0, () => input.limit.toString()],
|
|
682
682
|
meshOwner: [, input.meshOwner],
|
|
@@ -700,7 +700,7 @@ const se_ListVirtualServicesCommand = async (input, context) => {
|
|
|
700
700
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
701
701
|
"/v20190125/meshes/{meshName}/virtualServices";
|
|
702
702
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "meshName", () => input.meshName, "{meshName}", false);
|
|
703
|
-
const query = map({
|
|
703
|
+
const query = (0, smithy_client_1.map)({
|
|
704
704
|
nextToken: [, input.nextToken],
|
|
705
705
|
limit: [() => input.limit !== void 0, () => input.limit.toString()],
|
|
706
706
|
meshOwner: [, input.meshOwner],
|
|
@@ -724,13 +724,13 @@ const se_TagResourceCommand = async (input, context) => {
|
|
|
724
724
|
"content-type": "application/json",
|
|
725
725
|
};
|
|
726
726
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20190125/tag";
|
|
727
|
-
const query = map({
|
|
727
|
+
const query = (0, smithy_client_1.map)({
|
|
728
728
|
resourceArn: [, (0, smithy_client_1.expectNonNull)(input.resourceArn, `resourceArn`)],
|
|
729
729
|
});
|
|
730
730
|
let body;
|
|
731
|
-
body = JSON.stringify({
|
|
732
|
-
|
|
733
|
-
});
|
|
731
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
732
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
733
|
+
}));
|
|
734
734
|
return new protocol_http_1.HttpRequest({
|
|
735
735
|
protocol,
|
|
736
736
|
hostname,
|
|
@@ -749,13 +749,13 @@ const se_UntagResourceCommand = async (input, context) => {
|
|
|
749
749
|
"content-type": "application/json",
|
|
750
750
|
};
|
|
751
751
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20190125/untag";
|
|
752
|
-
const query = map({
|
|
752
|
+
const query = (0, smithy_client_1.map)({
|
|
753
753
|
resourceArn: [, (0, smithy_client_1.expectNonNull)(input.resourceArn, `resourceArn`)],
|
|
754
754
|
});
|
|
755
755
|
let body;
|
|
756
|
-
body = JSON.stringify({
|
|
757
|
-
|
|
758
|
-
});
|
|
756
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
757
|
+
tagKeys: (_) => (0, smithy_client_1._json)(_),
|
|
758
|
+
}));
|
|
759
759
|
return new protocol_http_1.HttpRequest({
|
|
760
760
|
protocol,
|
|
761
761
|
hostname,
|
|
@@ -778,14 +778,14 @@ const se_UpdateGatewayRouteCommand = async (input, context) => {
|
|
|
778
778
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "gatewayRouteName", () => input.gatewayRouteName, "{gatewayRouteName}", false);
|
|
779
779
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "meshName", () => input.meshName, "{meshName}", false);
|
|
780
780
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "virtualGatewayName", () => input.virtualGatewayName, "{virtualGatewayName}", false);
|
|
781
|
-
const query = map({
|
|
781
|
+
const query = (0, smithy_client_1.map)({
|
|
782
782
|
meshOwner: [, input.meshOwner],
|
|
783
783
|
});
|
|
784
784
|
let body;
|
|
785
|
-
body = JSON.stringify({
|
|
786
|
-
clientToken:
|
|
787
|
-
|
|
788
|
-
});
|
|
785
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
786
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
787
|
+
spec: (_) => (0, smithy_client_1._json)(_),
|
|
788
|
+
}));
|
|
789
789
|
return new protocol_http_1.HttpRequest({
|
|
790
790
|
protocol,
|
|
791
791
|
hostname,
|
|
@@ -806,10 +806,10 @@ const se_UpdateMeshCommand = async (input, context) => {
|
|
|
806
806
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20190125/meshes/{meshName}";
|
|
807
807
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "meshName", () => input.meshName, "{meshName}", false);
|
|
808
808
|
let body;
|
|
809
|
-
body = JSON.stringify({
|
|
810
|
-
clientToken:
|
|
811
|
-
|
|
812
|
-
});
|
|
809
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
810
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
811
|
+
spec: (_) => (0, smithy_client_1._json)(_),
|
|
812
|
+
}));
|
|
813
813
|
return new protocol_http_1.HttpRequest({
|
|
814
814
|
protocol,
|
|
815
815
|
hostname,
|
|
@@ -831,14 +831,14 @@ const se_UpdateRouteCommand = async (input, context) => {
|
|
|
831
831
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "routeName", () => input.routeName, "{routeName}", false);
|
|
832
832
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "meshName", () => input.meshName, "{meshName}", false);
|
|
833
833
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "virtualRouterName", () => input.virtualRouterName, "{virtualRouterName}", false);
|
|
834
|
-
const query = map({
|
|
834
|
+
const query = (0, smithy_client_1.map)({
|
|
835
835
|
meshOwner: [, input.meshOwner],
|
|
836
836
|
});
|
|
837
837
|
let body;
|
|
838
|
-
body = JSON.stringify({
|
|
839
|
-
clientToken:
|
|
840
|
-
|
|
841
|
-
});
|
|
838
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
839
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
840
|
+
spec: (_) => (0, smithy_client_1._json)(_),
|
|
841
|
+
}));
|
|
842
842
|
return new protocol_http_1.HttpRequest({
|
|
843
843
|
protocol,
|
|
844
844
|
hostname,
|
|
@@ -860,14 +860,14 @@ const se_UpdateVirtualGatewayCommand = async (input, context) => {
|
|
|
860
860
|
"/v20190125/meshes/{meshName}/virtualGateways/{virtualGatewayName}";
|
|
861
861
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "virtualGatewayName", () => input.virtualGatewayName, "{virtualGatewayName}", false);
|
|
862
862
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "meshName", () => input.meshName, "{meshName}", false);
|
|
863
|
-
const query = map({
|
|
863
|
+
const query = (0, smithy_client_1.map)({
|
|
864
864
|
meshOwner: [, input.meshOwner],
|
|
865
865
|
});
|
|
866
866
|
let body;
|
|
867
|
-
body = JSON.stringify({
|
|
868
|
-
clientToken:
|
|
869
|
-
|
|
870
|
-
});
|
|
867
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
868
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
869
|
+
spec: (_) => (0, smithy_client_1._json)(_),
|
|
870
|
+
}));
|
|
871
871
|
return new protocol_http_1.HttpRequest({
|
|
872
872
|
protocol,
|
|
873
873
|
hostname,
|
|
@@ -889,14 +889,14 @@ const se_UpdateVirtualNodeCommand = async (input, context) => {
|
|
|
889
889
|
"/v20190125/meshes/{meshName}/virtualNodes/{virtualNodeName}";
|
|
890
890
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "virtualNodeName", () => input.virtualNodeName, "{virtualNodeName}", false);
|
|
891
891
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "meshName", () => input.meshName, "{meshName}", false);
|
|
892
|
-
const query = map({
|
|
892
|
+
const query = (0, smithy_client_1.map)({
|
|
893
893
|
meshOwner: [, input.meshOwner],
|
|
894
894
|
});
|
|
895
895
|
let body;
|
|
896
|
-
body = JSON.stringify({
|
|
897
|
-
clientToken:
|
|
898
|
-
|
|
899
|
-
});
|
|
896
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
897
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
898
|
+
spec: (_) => (0, smithy_client_1._json)(_),
|
|
899
|
+
}));
|
|
900
900
|
return new protocol_http_1.HttpRequest({
|
|
901
901
|
protocol,
|
|
902
902
|
hostname,
|
|
@@ -918,14 +918,14 @@ const se_UpdateVirtualRouterCommand = async (input, context) => {
|
|
|
918
918
|
"/v20190125/meshes/{meshName}/virtualRouters/{virtualRouterName}";
|
|
919
919
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "virtualRouterName", () => input.virtualRouterName, "{virtualRouterName}", false);
|
|
920
920
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "meshName", () => input.meshName, "{meshName}", false);
|
|
921
|
-
const query = map({
|
|
921
|
+
const query = (0, smithy_client_1.map)({
|
|
922
922
|
meshOwner: [, input.meshOwner],
|
|
923
923
|
});
|
|
924
924
|
let body;
|
|
925
|
-
body = JSON.stringify({
|
|
926
|
-
clientToken:
|
|
927
|
-
|
|
928
|
-
});
|
|
925
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
926
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
927
|
+
spec: (_) => (0, smithy_client_1._json)(_),
|
|
928
|
+
}));
|
|
929
929
|
return new protocol_http_1.HttpRequest({
|
|
930
930
|
protocol,
|
|
931
931
|
hostname,
|
|
@@ -947,14 +947,14 @@ const se_UpdateVirtualServiceCommand = async (input, context) => {
|
|
|
947
947
|
"/v20190125/meshes/{meshName}/virtualServices/{virtualServiceName}";
|
|
948
948
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "virtualServiceName", () => input.virtualServiceName, "{virtualServiceName}", false);
|
|
949
949
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "meshName", () => input.meshName, "{meshName}", false);
|
|
950
|
-
const query = map({
|
|
950
|
+
const query = (0, smithy_client_1.map)({
|
|
951
951
|
meshOwner: [, input.meshOwner],
|
|
952
952
|
});
|
|
953
953
|
let body;
|
|
954
|
-
body = JSON.stringify({
|
|
955
|
-
clientToken:
|
|
956
|
-
|
|
957
|
-
});
|
|
954
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
955
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
956
|
+
spec: (_) => (0, smithy_client_1._json)(_),
|
|
957
|
+
}));
|
|
958
958
|
return new protocol_http_1.HttpRequest({
|
|
959
959
|
protocol,
|
|
960
960
|
hostname,
|
|
@@ -971,7 +971,7 @@ const de_CreateGatewayRouteCommand = async (output, context) => {
|
|
|
971
971
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
972
972
|
return de_CreateGatewayRouteCommandError(output, context);
|
|
973
973
|
}
|
|
974
|
-
const contents = map({
|
|
974
|
+
const contents = (0, smithy_client_1.map)({
|
|
975
975
|
$metadata: deserializeMetadata(output),
|
|
976
976
|
});
|
|
977
977
|
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
@@ -1012,10 +1012,9 @@ const de_CreateGatewayRouteCommandError = async (output, context) => {
|
|
|
1012
1012
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1013
1013
|
default:
|
|
1014
1014
|
const parsedBody = parsedOutput.body;
|
|
1015
|
-
|
|
1015
|
+
return throwDefaultError({
|
|
1016
1016
|
output,
|
|
1017
1017
|
parsedBody,
|
|
1018
|
-
exceptionCtor: AppMeshServiceException_1.AppMeshServiceException,
|
|
1019
1018
|
errorCode,
|
|
1020
1019
|
});
|
|
1021
1020
|
}
|
|
@@ -1024,7 +1023,7 @@ const de_CreateMeshCommand = async (output, context) => {
|
|
|
1024
1023
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1025
1024
|
return de_CreateMeshCommandError(output, context);
|
|
1026
1025
|
}
|
|
1027
|
-
const contents = map({
|
|
1026
|
+
const contents = (0, smithy_client_1.map)({
|
|
1028
1027
|
$metadata: deserializeMetadata(output),
|
|
1029
1028
|
});
|
|
1030
1029
|
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
@@ -1065,10 +1064,9 @@ const de_CreateMeshCommandError = async (output, context) => {
|
|
|
1065
1064
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1066
1065
|
default:
|
|
1067
1066
|
const parsedBody = parsedOutput.body;
|
|
1068
|
-
|
|
1067
|
+
return throwDefaultError({
|
|
1069
1068
|
output,
|
|
1070
1069
|
parsedBody,
|
|
1071
|
-
exceptionCtor: AppMeshServiceException_1.AppMeshServiceException,
|
|
1072
1070
|
errorCode,
|
|
1073
1071
|
});
|
|
1074
1072
|
}
|
|
@@ -1077,7 +1075,7 @@ const de_CreateRouteCommand = async (output, context) => {
|
|
|
1077
1075
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1078
1076
|
return de_CreateRouteCommandError(output, context);
|
|
1079
1077
|
}
|
|
1080
|
-
const contents = map({
|
|
1078
|
+
const contents = (0, smithy_client_1.map)({
|
|
1081
1079
|
$metadata: deserializeMetadata(output),
|
|
1082
1080
|
});
|
|
1083
1081
|
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
@@ -1118,10 +1116,9 @@ const de_CreateRouteCommandError = async (output, context) => {
|
|
|
1118
1116
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1119
1117
|
default:
|
|
1120
1118
|
const parsedBody = parsedOutput.body;
|
|
1121
|
-
|
|
1119
|
+
return throwDefaultError({
|
|
1122
1120
|
output,
|
|
1123
1121
|
parsedBody,
|
|
1124
|
-
exceptionCtor: AppMeshServiceException_1.AppMeshServiceException,
|
|
1125
1122
|
errorCode,
|
|
1126
1123
|
});
|
|
1127
1124
|
}
|
|
@@ -1130,7 +1127,7 @@ const de_CreateVirtualGatewayCommand = async (output, context) => {
|
|
|
1130
1127
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1131
1128
|
return de_CreateVirtualGatewayCommandError(output, context);
|
|
1132
1129
|
}
|
|
1133
|
-
const contents = map({
|
|
1130
|
+
const contents = (0, smithy_client_1.map)({
|
|
1134
1131
|
$metadata: deserializeMetadata(output),
|
|
1135
1132
|
});
|
|
1136
1133
|
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
@@ -1171,10 +1168,9 @@ const de_CreateVirtualGatewayCommandError = async (output, context) => {
|
|
|
1171
1168
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1172
1169
|
default:
|
|
1173
1170
|
const parsedBody = parsedOutput.body;
|
|
1174
|
-
|
|
1171
|
+
return throwDefaultError({
|
|
1175
1172
|
output,
|
|
1176
1173
|
parsedBody,
|
|
1177
|
-
exceptionCtor: AppMeshServiceException_1.AppMeshServiceException,
|
|
1178
1174
|
errorCode,
|
|
1179
1175
|
});
|
|
1180
1176
|
}
|
|
@@ -1183,7 +1179,7 @@ const de_CreateVirtualNodeCommand = async (output, context) => {
|
|
|
1183
1179
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1184
1180
|
return de_CreateVirtualNodeCommandError(output, context);
|
|
1185
1181
|
}
|
|
1186
|
-
const contents = map({
|
|
1182
|
+
const contents = (0, smithy_client_1.map)({
|
|
1187
1183
|
$metadata: deserializeMetadata(output),
|
|
1188
1184
|
});
|
|
1189
1185
|
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
@@ -1224,10 +1220,9 @@ const de_CreateVirtualNodeCommandError = async (output, context) => {
|
|
|
1224
1220
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1225
1221
|
default:
|
|
1226
1222
|
const parsedBody = parsedOutput.body;
|
|
1227
|
-
|
|
1223
|
+
return throwDefaultError({
|
|
1228
1224
|
output,
|
|
1229
1225
|
parsedBody,
|
|
1230
|
-
exceptionCtor: AppMeshServiceException_1.AppMeshServiceException,
|
|
1231
1226
|
errorCode,
|
|
1232
1227
|
});
|
|
1233
1228
|
}
|
|
@@ -1236,7 +1231,7 @@ const de_CreateVirtualRouterCommand = async (output, context) => {
|
|
|
1236
1231
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1237
1232
|
return de_CreateVirtualRouterCommandError(output, context);
|
|
1238
1233
|
}
|
|
1239
|
-
const contents = map({
|
|
1234
|
+
const contents = (0, smithy_client_1.map)({
|
|
1240
1235
|
$metadata: deserializeMetadata(output),
|
|
1241
1236
|
});
|
|
1242
1237
|
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
@@ -1277,10 +1272,9 @@ const de_CreateVirtualRouterCommandError = async (output, context) => {
|
|
|
1277
1272
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1278
1273
|
default:
|
|
1279
1274
|
const parsedBody = parsedOutput.body;
|
|
1280
|
-
|
|
1275
|
+
return throwDefaultError({
|
|
1281
1276
|
output,
|
|
1282
1277
|
parsedBody,
|
|
1283
|
-
exceptionCtor: AppMeshServiceException_1.AppMeshServiceException,
|
|
1284
1278
|
errorCode,
|
|
1285
1279
|
});
|
|
1286
1280
|
}
|
|
@@ -1289,7 +1283,7 @@ const de_CreateVirtualServiceCommand = async (output, context) => {
|
|
|
1289
1283
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1290
1284
|
return de_CreateVirtualServiceCommandError(output, context);
|
|
1291
1285
|
}
|
|
1292
|
-
const contents = map({
|
|
1286
|
+
const contents = (0, smithy_client_1.map)({
|
|
1293
1287
|
$metadata: deserializeMetadata(output),
|
|
1294
1288
|
});
|
|
1295
1289
|
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
@@ -1330,10 +1324,9 @@ const de_CreateVirtualServiceCommandError = async (output, context) => {
|
|
|
1330
1324
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1331
1325
|
default:
|
|
1332
1326
|
const parsedBody = parsedOutput.body;
|
|
1333
|
-
|
|
1327
|
+
return throwDefaultError({
|
|
1334
1328
|
output,
|
|
1335
1329
|
parsedBody,
|
|
1336
|
-
exceptionCtor: AppMeshServiceException_1.AppMeshServiceException,
|
|
1337
1330
|
errorCode,
|
|
1338
1331
|
});
|
|
1339
1332
|
}
|
|
@@ -1342,7 +1335,7 @@ const de_DeleteGatewayRouteCommand = async (output, context) => {
|
|
|
1342
1335
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1343
1336
|
return de_DeleteGatewayRouteCommandError(output, context);
|
|
1344
1337
|
}
|
|
1345
|
-
const contents = map({
|
|
1338
|
+
const contents = (0, smithy_client_1.map)({
|
|
1346
1339
|
$metadata: deserializeMetadata(output),
|
|
1347
1340
|
});
|
|
1348
1341
|
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
@@ -1380,10 +1373,9 @@ const de_DeleteGatewayRouteCommandError = async (output, context) => {
|
|
|
1380
1373
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1381
1374
|
default:
|
|
1382
1375
|
const parsedBody = parsedOutput.body;
|
|
1383
|
-
|
|
1376
|
+
return throwDefaultError({
|
|
1384
1377
|
output,
|
|
1385
1378
|
parsedBody,
|
|
1386
|
-
exceptionCtor: AppMeshServiceException_1.AppMeshServiceException,
|
|
1387
1379
|
errorCode,
|
|
1388
1380
|
});
|
|
1389
1381
|
}
|
|
@@ -1392,7 +1384,7 @@ const de_DeleteMeshCommand = async (output, context) => {
|
|
|
1392
1384
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1393
1385
|
return de_DeleteMeshCommandError(output, context);
|
|
1394
1386
|
}
|
|
1395
|
-
const contents = map({
|
|
1387
|
+
const contents = (0, smithy_client_1.map)({
|
|
1396
1388
|
$metadata: deserializeMetadata(output),
|
|
1397
1389
|
});
|
|
1398
1390
|
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
@@ -1430,10 +1422,9 @@ const de_DeleteMeshCommandError = async (output, context) => {
|
|
|
1430
1422
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1431
1423
|
default:
|
|
1432
1424
|
const parsedBody = parsedOutput.body;
|
|
1433
|
-
|
|
1425
|
+
return throwDefaultError({
|
|
1434
1426
|
output,
|
|
1435
1427
|
parsedBody,
|
|
1436
|
-
exceptionCtor: AppMeshServiceException_1.AppMeshServiceException,
|
|
1437
1428
|
errorCode,
|
|
1438
1429
|
});
|
|
1439
1430
|
}
|
|
@@ -1442,7 +1433,7 @@ const de_DeleteRouteCommand = async (output, context) => {
|
|
|
1442
1433
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1443
1434
|
return de_DeleteRouteCommandError(output, context);
|
|
1444
1435
|
}
|
|
1445
|
-
const contents = map({
|
|
1436
|
+
const contents = (0, smithy_client_1.map)({
|
|
1446
1437
|
$metadata: deserializeMetadata(output),
|
|
1447
1438
|
});
|
|
1448
1439
|
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
@@ -1480,10 +1471,9 @@ const de_DeleteRouteCommandError = async (output, context) => {
|
|
|
1480
1471
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1481
1472
|
default:
|
|
1482
1473
|
const parsedBody = parsedOutput.body;
|
|
1483
|
-
|
|
1474
|
+
return throwDefaultError({
|
|
1484
1475
|
output,
|
|
1485
1476
|
parsedBody,
|
|
1486
|
-
exceptionCtor: AppMeshServiceException_1.AppMeshServiceException,
|
|
1487
1477
|
errorCode,
|
|
1488
1478
|
});
|
|
1489
1479
|
}
|
|
@@ -1492,7 +1482,7 @@ const de_DeleteVirtualGatewayCommand = async (output, context) => {
|
|
|
1492
1482
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1493
1483
|
return de_DeleteVirtualGatewayCommandError(output, context);
|
|
1494
1484
|
}
|
|
1495
|
-
const contents = map({
|
|
1485
|
+
const contents = (0, smithy_client_1.map)({
|
|
1496
1486
|
$metadata: deserializeMetadata(output),
|
|
1497
1487
|
});
|
|
1498
1488
|
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
@@ -1530,10 +1520,9 @@ const de_DeleteVirtualGatewayCommandError = async (output, context) => {
|
|
|
1530
1520
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1531
1521
|
default:
|
|
1532
1522
|
const parsedBody = parsedOutput.body;
|
|
1533
|
-
|
|
1523
|
+
return throwDefaultError({
|
|
1534
1524
|
output,
|
|
1535
1525
|
parsedBody,
|
|
1536
|
-
exceptionCtor: AppMeshServiceException_1.AppMeshServiceException,
|
|
1537
1526
|
errorCode,
|
|
1538
1527
|
});
|
|
1539
1528
|
}
|
|
@@ -1542,7 +1531,7 @@ const de_DeleteVirtualNodeCommand = async (output, context) => {
|
|
|
1542
1531
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1543
1532
|
return de_DeleteVirtualNodeCommandError(output, context);
|
|
1544
1533
|
}
|
|
1545
|
-
const contents = map({
|
|
1534
|
+
const contents = (0, smithy_client_1.map)({
|
|
1546
1535
|
$metadata: deserializeMetadata(output),
|
|
1547
1536
|
});
|
|
1548
1537
|
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
@@ -1580,10 +1569,9 @@ const de_DeleteVirtualNodeCommandError = async (output, context) => {
|
|
|
1580
1569
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1581
1570
|
default:
|
|
1582
1571
|
const parsedBody = parsedOutput.body;
|
|
1583
|
-
|
|
1572
|
+
return throwDefaultError({
|
|
1584
1573
|
output,
|
|
1585
1574
|
parsedBody,
|
|
1586
|
-
exceptionCtor: AppMeshServiceException_1.AppMeshServiceException,
|
|
1587
1575
|
errorCode,
|
|
1588
1576
|
});
|
|
1589
1577
|
}
|
|
@@ -1592,7 +1580,7 @@ const de_DeleteVirtualRouterCommand = async (output, context) => {
|
|
|
1592
1580
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1593
1581
|
return de_DeleteVirtualRouterCommandError(output, context);
|
|
1594
1582
|
}
|
|
1595
|
-
const contents = map({
|
|
1583
|
+
const contents = (0, smithy_client_1.map)({
|
|
1596
1584
|
$metadata: deserializeMetadata(output),
|
|
1597
1585
|
});
|
|
1598
1586
|
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
@@ -1630,10 +1618,9 @@ const de_DeleteVirtualRouterCommandError = async (output, context) => {
|
|
|
1630
1618
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1631
1619
|
default:
|
|
1632
1620
|
const parsedBody = parsedOutput.body;
|
|
1633
|
-
|
|
1621
|
+
return throwDefaultError({
|
|
1634
1622
|
output,
|
|
1635
1623
|
parsedBody,
|
|
1636
|
-
exceptionCtor: AppMeshServiceException_1.AppMeshServiceException,
|
|
1637
1624
|
errorCode,
|
|
1638
1625
|
});
|
|
1639
1626
|
}
|
|
@@ -1642,7 +1629,7 @@ const de_DeleteVirtualServiceCommand = async (output, context) => {
|
|
|
1642
1629
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1643
1630
|
return de_DeleteVirtualServiceCommandError(output, context);
|
|
1644
1631
|
}
|
|
1645
|
-
const contents = map({
|
|
1632
|
+
const contents = (0, smithy_client_1.map)({
|
|
1646
1633
|
$metadata: deserializeMetadata(output),
|
|
1647
1634
|
});
|
|
1648
1635
|
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
@@ -1680,10 +1667,9 @@ const de_DeleteVirtualServiceCommandError = async (output, context) => {
|
|
|
1680
1667
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1681
1668
|
default:
|
|
1682
1669
|
const parsedBody = parsedOutput.body;
|
|
1683
|
-
|
|
1670
|
+
return throwDefaultError({
|
|
1684
1671
|
output,
|
|
1685
1672
|
parsedBody,
|
|
1686
|
-
exceptionCtor: AppMeshServiceException_1.AppMeshServiceException,
|
|
1687
1673
|
errorCode,
|
|
1688
1674
|
});
|
|
1689
1675
|
}
|
|
@@ -1692,7 +1678,7 @@ const de_DescribeGatewayRouteCommand = async (output, context) => {
|
|
|
1692
1678
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1693
1679
|
return de_DescribeGatewayRouteCommandError(output, context);
|
|
1694
1680
|
}
|
|
1695
|
-
const contents = map({
|
|
1681
|
+
const contents = (0, smithy_client_1.map)({
|
|
1696
1682
|
$metadata: deserializeMetadata(output),
|
|
1697
1683
|
});
|
|
1698
1684
|
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
@@ -1727,10 +1713,9 @@ const de_DescribeGatewayRouteCommandError = async (output, context) => {
|
|
|
1727
1713
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1728
1714
|
default:
|
|
1729
1715
|
const parsedBody = parsedOutput.body;
|
|
1730
|
-
|
|
1716
|
+
return throwDefaultError({
|
|
1731
1717
|
output,
|
|
1732
1718
|
parsedBody,
|
|
1733
|
-
exceptionCtor: AppMeshServiceException_1.AppMeshServiceException,
|
|
1734
1719
|
errorCode,
|
|
1735
1720
|
});
|
|
1736
1721
|
}
|
|
@@ -1739,7 +1724,7 @@ const de_DescribeMeshCommand = async (output, context) => {
|
|
|
1739
1724
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1740
1725
|
return de_DescribeMeshCommandError(output, context);
|
|
1741
1726
|
}
|
|
1742
|
-
const contents = map({
|
|
1727
|
+
const contents = (0, smithy_client_1.map)({
|
|
1743
1728
|
$metadata: deserializeMetadata(output),
|
|
1744
1729
|
});
|
|
1745
1730
|
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
@@ -1774,10 +1759,9 @@ const de_DescribeMeshCommandError = async (output, context) => {
|
|
|
1774
1759
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1775
1760
|
default:
|
|
1776
1761
|
const parsedBody = parsedOutput.body;
|
|
1777
|
-
|
|
1762
|
+
return throwDefaultError({
|
|
1778
1763
|
output,
|
|
1779
1764
|
parsedBody,
|
|
1780
|
-
exceptionCtor: AppMeshServiceException_1.AppMeshServiceException,
|
|
1781
1765
|
errorCode,
|
|
1782
1766
|
});
|
|
1783
1767
|
}
|
|
@@ -1786,7 +1770,7 @@ const de_DescribeRouteCommand = async (output, context) => {
|
|
|
1786
1770
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1787
1771
|
return de_DescribeRouteCommandError(output, context);
|
|
1788
1772
|
}
|
|
1789
|
-
const contents = map({
|
|
1773
|
+
const contents = (0, smithy_client_1.map)({
|
|
1790
1774
|
$metadata: deserializeMetadata(output),
|
|
1791
1775
|
});
|
|
1792
1776
|
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
@@ -1821,10 +1805,9 @@ const de_DescribeRouteCommandError = async (output, context) => {
|
|
|
1821
1805
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1822
1806
|
default:
|
|
1823
1807
|
const parsedBody = parsedOutput.body;
|
|
1824
|
-
|
|
1808
|
+
return throwDefaultError({
|
|
1825
1809
|
output,
|
|
1826
1810
|
parsedBody,
|
|
1827
|
-
exceptionCtor: AppMeshServiceException_1.AppMeshServiceException,
|
|
1828
1811
|
errorCode,
|
|
1829
1812
|
});
|
|
1830
1813
|
}
|
|
@@ -1833,7 +1816,7 @@ const de_DescribeVirtualGatewayCommand = async (output, context) => {
|
|
|
1833
1816
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1834
1817
|
return de_DescribeVirtualGatewayCommandError(output, context);
|
|
1835
1818
|
}
|
|
1836
|
-
const contents = map({
|
|
1819
|
+
const contents = (0, smithy_client_1.map)({
|
|
1837
1820
|
$metadata: deserializeMetadata(output),
|
|
1838
1821
|
});
|
|
1839
1822
|
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
@@ -1868,10 +1851,9 @@ const de_DescribeVirtualGatewayCommandError = async (output, context) => {
|
|
|
1868
1851
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1869
1852
|
default:
|
|
1870
1853
|
const parsedBody = parsedOutput.body;
|
|
1871
|
-
|
|
1854
|
+
return throwDefaultError({
|
|
1872
1855
|
output,
|
|
1873
1856
|
parsedBody,
|
|
1874
|
-
exceptionCtor: AppMeshServiceException_1.AppMeshServiceException,
|
|
1875
1857
|
errorCode,
|
|
1876
1858
|
});
|
|
1877
1859
|
}
|
|
@@ -1880,7 +1862,7 @@ const de_DescribeVirtualNodeCommand = async (output, context) => {
|
|
|
1880
1862
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1881
1863
|
return de_DescribeVirtualNodeCommandError(output, context);
|
|
1882
1864
|
}
|
|
1883
|
-
const contents = map({
|
|
1865
|
+
const contents = (0, smithy_client_1.map)({
|
|
1884
1866
|
$metadata: deserializeMetadata(output),
|
|
1885
1867
|
});
|
|
1886
1868
|
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
@@ -1915,10 +1897,9 @@ const de_DescribeVirtualNodeCommandError = async (output, context) => {
|
|
|
1915
1897
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1916
1898
|
default:
|
|
1917
1899
|
const parsedBody = parsedOutput.body;
|
|
1918
|
-
|
|
1900
|
+
return throwDefaultError({
|
|
1919
1901
|
output,
|
|
1920
1902
|
parsedBody,
|
|
1921
|
-
exceptionCtor: AppMeshServiceException_1.AppMeshServiceException,
|
|
1922
1903
|
errorCode,
|
|
1923
1904
|
});
|
|
1924
1905
|
}
|
|
@@ -1927,7 +1908,7 @@ const de_DescribeVirtualRouterCommand = async (output, context) => {
|
|
|
1927
1908
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1928
1909
|
return de_DescribeVirtualRouterCommandError(output, context);
|
|
1929
1910
|
}
|
|
1930
|
-
const contents = map({
|
|
1911
|
+
const contents = (0, smithy_client_1.map)({
|
|
1931
1912
|
$metadata: deserializeMetadata(output),
|
|
1932
1913
|
});
|
|
1933
1914
|
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
@@ -1962,10 +1943,9 @@ const de_DescribeVirtualRouterCommandError = async (output, context) => {
|
|
|
1962
1943
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1963
1944
|
default:
|
|
1964
1945
|
const parsedBody = parsedOutput.body;
|
|
1965
|
-
|
|
1946
|
+
return throwDefaultError({
|
|
1966
1947
|
output,
|
|
1967
1948
|
parsedBody,
|
|
1968
|
-
exceptionCtor: AppMeshServiceException_1.AppMeshServiceException,
|
|
1969
1949
|
errorCode,
|
|
1970
1950
|
});
|
|
1971
1951
|
}
|
|
@@ -1974,7 +1954,7 @@ const de_DescribeVirtualServiceCommand = async (output, context) => {
|
|
|
1974
1954
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1975
1955
|
return de_DescribeVirtualServiceCommandError(output, context);
|
|
1976
1956
|
}
|
|
1977
|
-
const contents = map({
|
|
1957
|
+
const contents = (0, smithy_client_1.map)({
|
|
1978
1958
|
$metadata: deserializeMetadata(output),
|
|
1979
1959
|
});
|
|
1980
1960
|
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
@@ -2009,10 +1989,9 @@ const de_DescribeVirtualServiceCommandError = async (output, context) => {
|
|
|
2009
1989
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2010
1990
|
default:
|
|
2011
1991
|
const parsedBody = parsedOutput.body;
|
|
2012
|
-
|
|
1992
|
+
return throwDefaultError({
|
|
2013
1993
|
output,
|
|
2014
1994
|
parsedBody,
|
|
2015
|
-
exceptionCtor: AppMeshServiceException_1.AppMeshServiceException,
|
|
2016
1995
|
errorCode,
|
|
2017
1996
|
});
|
|
2018
1997
|
}
|
|
@@ -2021,16 +2000,15 @@ const de_ListGatewayRoutesCommand = async (output, context) => {
|
|
|
2021
2000
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2022
2001
|
return de_ListGatewayRoutesCommandError(output, context);
|
|
2023
2002
|
}
|
|
2024
|
-
const contents = map({
|
|
2003
|
+
const contents = (0, smithy_client_1.map)({
|
|
2025
2004
|
$metadata: deserializeMetadata(output),
|
|
2026
2005
|
});
|
|
2027
2006
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
}
|
|
2007
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2008
|
+
gatewayRoutes: (_) => de_GatewayRouteList(_, context),
|
|
2009
|
+
nextToken: smithy_client_1.expectString,
|
|
2010
|
+
});
|
|
2011
|
+
Object.assign(contents, doc);
|
|
2034
2012
|
return contents;
|
|
2035
2013
|
};
|
|
2036
2014
|
exports.de_ListGatewayRoutesCommand = de_ListGatewayRoutesCommand;
|
|
@@ -2061,10 +2039,9 @@ const de_ListGatewayRoutesCommandError = async (output, context) => {
|
|
|
2061
2039
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2062
2040
|
default:
|
|
2063
2041
|
const parsedBody = parsedOutput.body;
|
|
2064
|
-
|
|
2042
|
+
return throwDefaultError({
|
|
2065
2043
|
output,
|
|
2066
2044
|
parsedBody,
|
|
2067
|
-
exceptionCtor: AppMeshServiceException_1.AppMeshServiceException,
|
|
2068
2045
|
errorCode,
|
|
2069
2046
|
});
|
|
2070
2047
|
}
|
|
@@ -2073,16 +2050,15 @@ const de_ListMeshesCommand = async (output, context) => {
|
|
|
2073
2050
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2074
2051
|
return de_ListMeshesCommandError(output, context);
|
|
2075
2052
|
}
|
|
2076
|
-
const contents = map({
|
|
2053
|
+
const contents = (0, smithy_client_1.map)({
|
|
2077
2054
|
$metadata: deserializeMetadata(output),
|
|
2078
2055
|
});
|
|
2079
2056
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
}
|
|
2057
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2058
|
+
meshes: (_) => de_MeshList(_, context),
|
|
2059
|
+
nextToken: smithy_client_1.expectString,
|
|
2060
|
+
});
|
|
2061
|
+
Object.assign(contents, doc);
|
|
2086
2062
|
return contents;
|
|
2087
2063
|
};
|
|
2088
2064
|
exports.de_ListMeshesCommand = de_ListMeshesCommand;
|
|
@@ -2113,10 +2089,9 @@ const de_ListMeshesCommandError = async (output, context) => {
|
|
|
2113
2089
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2114
2090
|
default:
|
|
2115
2091
|
const parsedBody = parsedOutput.body;
|
|
2116
|
-
|
|
2092
|
+
return throwDefaultError({
|
|
2117
2093
|
output,
|
|
2118
2094
|
parsedBody,
|
|
2119
|
-
exceptionCtor: AppMeshServiceException_1.AppMeshServiceException,
|
|
2120
2095
|
errorCode,
|
|
2121
2096
|
});
|
|
2122
2097
|
}
|
|
@@ -2125,16 +2100,15 @@ const de_ListRoutesCommand = async (output, context) => {
|
|
|
2125
2100
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2126
2101
|
return de_ListRoutesCommandError(output, context);
|
|
2127
2102
|
}
|
|
2128
|
-
const contents = map({
|
|
2103
|
+
const contents = (0, smithy_client_1.map)({
|
|
2129
2104
|
$metadata: deserializeMetadata(output),
|
|
2130
2105
|
});
|
|
2131
2106
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
}
|
|
2107
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2108
|
+
nextToken: smithy_client_1.expectString,
|
|
2109
|
+
routes: (_) => de_RouteList(_, context),
|
|
2110
|
+
});
|
|
2111
|
+
Object.assign(contents, doc);
|
|
2138
2112
|
return contents;
|
|
2139
2113
|
};
|
|
2140
2114
|
exports.de_ListRoutesCommand = de_ListRoutesCommand;
|
|
@@ -2165,10 +2139,9 @@ const de_ListRoutesCommandError = async (output, context) => {
|
|
|
2165
2139
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2166
2140
|
default:
|
|
2167
2141
|
const parsedBody = parsedOutput.body;
|
|
2168
|
-
|
|
2142
|
+
return throwDefaultError({
|
|
2169
2143
|
output,
|
|
2170
2144
|
parsedBody,
|
|
2171
|
-
exceptionCtor: AppMeshServiceException_1.AppMeshServiceException,
|
|
2172
2145
|
errorCode,
|
|
2173
2146
|
});
|
|
2174
2147
|
}
|
|
@@ -2177,16 +2150,15 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
2177
2150
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2178
2151
|
return de_ListTagsForResourceCommandError(output, context);
|
|
2179
2152
|
}
|
|
2180
|
-
const contents = map({
|
|
2153
|
+
const contents = (0, smithy_client_1.map)({
|
|
2181
2154
|
$metadata: deserializeMetadata(output),
|
|
2182
2155
|
});
|
|
2183
2156
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
}
|
|
2157
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2158
|
+
nextToken: smithy_client_1.expectString,
|
|
2159
|
+
tags: smithy_client_1._json,
|
|
2160
|
+
});
|
|
2161
|
+
Object.assign(contents, doc);
|
|
2190
2162
|
return contents;
|
|
2191
2163
|
};
|
|
2192
2164
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
@@ -2217,10 +2189,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
2217
2189
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2218
2190
|
default:
|
|
2219
2191
|
const parsedBody = parsedOutput.body;
|
|
2220
|
-
|
|
2192
|
+
return throwDefaultError({
|
|
2221
2193
|
output,
|
|
2222
2194
|
parsedBody,
|
|
2223
|
-
exceptionCtor: AppMeshServiceException_1.AppMeshServiceException,
|
|
2224
2195
|
errorCode,
|
|
2225
2196
|
});
|
|
2226
2197
|
}
|
|
@@ -2229,16 +2200,15 @@ const de_ListVirtualGatewaysCommand = async (output, context) => {
|
|
|
2229
2200
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2230
2201
|
return de_ListVirtualGatewaysCommandError(output, context);
|
|
2231
2202
|
}
|
|
2232
|
-
const contents = map({
|
|
2203
|
+
const contents = (0, smithy_client_1.map)({
|
|
2233
2204
|
$metadata: deserializeMetadata(output),
|
|
2234
2205
|
});
|
|
2235
2206
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
}
|
|
2207
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2208
|
+
nextToken: smithy_client_1.expectString,
|
|
2209
|
+
virtualGateways: (_) => de_VirtualGatewayList(_, context),
|
|
2210
|
+
});
|
|
2211
|
+
Object.assign(contents, doc);
|
|
2242
2212
|
return contents;
|
|
2243
2213
|
};
|
|
2244
2214
|
exports.de_ListVirtualGatewaysCommand = de_ListVirtualGatewaysCommand;
|
|
@@ -2269,10 +2239,9 @@ const de_ListVirtualGatewaysCommandError = async (output, context) => {
|
|
|
2269
2239
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2270
2240
|
default:
|
|
2271
2241
|
const parsedBody = parsedOutput.body;
|
|
2272
|
-
|
|
2242
|
+
return throwDefaultError({
|
|
2273
2243
|
output,
|
|
2274
2244
|
parsedBody,
|
|
2275
|
-
exceptionCtor: AppMeshServiceException_1.AppMeshServiceException,
|
|
2276
2245
|
errorCode,
|
|
2277
2246
|
});
|
|
2278
2247
|
}
|
|
@@ -2281,16 +2250,15 @@ const de_ListVirtualNodesCommand = async (output, context) => {
|
|
|
2281
2250
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2282
2251
|
return de_ListVirtualNodesCommandError(output, context);
|
|
2283
2252
|
}
|
|
2284
|
-
const contents = map({
|
|
2253
|
+
const contents = (0, smithy_client_1.map)({
|
|
2285
2254
|
$metadata: deserializeMetadata(output),
|
|
2286
2255
|
});
|
|
2287
2256
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
}
|
|
2257
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2258
|
+
nextToken: smithy_client_1.expectString,
|
|
2259
|
+
virtualNodes: (_) => de_VirtualNodeList(_, context),
|
|
2260
|
+
});
|
|
2261
|
+
Object.assign(contents, doc);
|
|
2294
2262
|
return contents;
|
|
2295
2263
|
};
|
|
2296
2264
|
exports.de_ListVirtualNodesCommand = de_ListVirtualNodesCommand;
|
|
@@ -2321,10 +2289,9 @@ const de_ListVirtualNodesCommandError = async (output, context) => {
|
|
|
2321
2289
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2322
2290
|
default:
|
|
2323
2291
|
const parsedBody = parsedOutput.body;
|
|
2324
|
-
|
|
2292
|
+
return throwDefaultError({
|
|
2325
2293
|
output,
|
|
2326
2294
|
parsedBody,
|
|
2327
|
-
exceptionCtor: AppMeshServiceException_1.AppMeshServiceException,
|
|
2328
2295
|
errorCode,
|
|
2329
2296
|
});
|
|
2330
2297
|
}
|
|
@@ -2333,16 +2300,15 @@ const de_ListVirtualRoutersCommand = async (output, context) => {
|
|
|
2333
2300
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2334
2301
|
return de_ListVirtualRoutersCommandError(output, context);
|
|
2335
2302
|
}
|
|
2336
|
-
const contents = map({
|
|
2303
|
+
const contents = (0, smithy_client_1.map)({
|
|
2337
2304
|
$metadata: deserializeMetadata(output),
|
|
2338
2305
|
});
|
|
2339
2306
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
}
|
|
2307
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2308
|
+
nextToken: smithy_client_1.expectString,
|
|
2309
|
+
virtualRouters: (_) => de_VirtualRouterList(_, context),
|
|
2310
|
+
});
|
|
2311
|
+
Object.assign(contents, doc);
|
|
2346
2312
|
return contents;
|
|
2347
2313
|
};
|
|
2348
2314
|
exports.de_ListVirtualRoutersCommand = de_ListVirtualRoutersCommand;
|
|
@@ -2373,10 +2339,9 @@ const de_ListVirtualRoutersCommandError = async (output, context) => {
|
|
|
2373
2339
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2374
2340
|
default:
|
|
2375
2341
|
const parsedBody = parsedOutput.body;
|
|
2376
|
-
|
|
2342
|
+
return throwDefaultError({
|
|
2377
2343
|
output,
|
|
2378
2344
|
parsedBody,
|
|
2379
|
-
exceptionCtor: AppMeshServiceException_1.AppMeshServiceException,
|
|
2380
2345
|
errorCode,
|
|
2381
2346
|
});
|
|
2382
2347
|
}
|
|
@@ -2385,16 +2350,15 @@ const de_ListVirtualServicesCommand = async (output, context) => {
|
|
|
2385
2350
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2386
2351
|
return de_ListVirtualServicesCommandError(output, context);
|
|
2387
2352
|
}
|
|
2388
|
-
const contents = map({
|
|
2353
|
+
const contents = (0, smithy_client_1.map)({
|
|
2389
2354
|
$metadata: deserializeMetadata(output),
|
|
2390
2355
|
});
|
|
2391
2356
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
}
|
|
2357
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2358
|
+
nextToken: smithy_client_1.expectString,
|
|
2359
|
+
virtualServices: (_) => de_VirtualServiceList(_, context),
|
|
2360
|
+
});
|
|
2361
|
+
Object.assign(contents, doc);
|
|
2398
2362
|
return contents;
|
|
2399
2363
|
};
|
|
2400
2364
|
exports.de_ListVirtualServicesCommand = de_ListVirtualServicesCommand;
|
|
@@ -2425,10 +2389,9 @@ const de_ListVirtualServicesCommandError = async (output, context) => {
|
|
|
2425
2389
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2426
2390
|
default:
|
|
2427
2391
|
const parsedBody = parsedOutput.body;
|
|
2428
|
-
|
|
2392
|
+
return throwDefaultError({
|
|
2429
2393
|
output,
|
|
2430
2394
|
parsedBody,
|
|
2431
|
-
exceptionCtor: AppMeshServiceException_1.AppMeshServiceException,
|
|
2432
2395
|
errorCode,
|
|
2433
2396
|
});
|
|
2434
2397
|
}
|
|
@@ -2437,7 +2400,7 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
2437
2400
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2438
2401
|
return de_TagResourceCommandError(output, context);
|
|
2439
2402
|
}
|
|
2440
|
-
const contents = map({
|
|
2403
|
+
const contents = (0, smithy_client_1.map)({
|
|
2441
2404
|
$metadata: deserializeMetadata(output),
|
|
2442
2405
|
});
|
|
2443
2406
|
await collectBody(output.body, context);
|
|
@@ -2474,10 +2437,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
2474
2437
|
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
2475
2438
|
default:
|
|
2476
2439
|
const parsedBody = parsedOutput.body;
|
|
2477
|
-
|
|
2440
|
+
return throwDefaultError({
|
|
2478
2441
|
output,
|
|
2479
2442
|
parsedBody,
|
|
2480
|
-
exceptionCtor: AppMeshServiceException_1.AppMeshServiceException,
|
|
2481
2443
|
errorCode,
|
|
2482
2444
|
});
|
|
2483
2445
|
}
|
|
@@ -2486,7 +2448,7 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
2486
2448
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2487
2449
|
return de_UntagResourceCommandError(output, context);
|
|
2488
2450
|
}
|
|
2489
|
-
const contents = map({
|
|
2451
|
+
const contents = (0, smithy_client_1.map)({
|
|
2490
2452
|
$metadata: deserializeMetadata(output),
|
|
2491
2453
|
});
|
|
2492
2454
|
await collectBody(output.body, context);
|
|
@@ -2520,10 +2482,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
2520
2482
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2521
2483
|
default:
|
|
2522
2484
|
const parsedBody = parsedOutput.body;
|
|
2523
|
-
|
|
2485
|
+
return throwDefaultError({
|
|
2524
2486
|
output,
|
|
2525
2487
|
parsedBody,
|
|
2526
|
-
exceptionCtor: AppMeshServiceException_1.AppMeshServiceException,
|
|
2527
2488
|
errorCode,
|
|
2528
2489
|
});
|
|
2529
2490
|
}
|
|
@@ -2532,7 +2493,7 @@ const de_UpdateGatewayRouteCommand = async (output, context) => {
|
|
|
2532
2493
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2533
2494
|
return de_UpdateGatewayRouteCommandError(output, context);
|
|
2534
2495
|
}
|
|
2535
|
-
const contents = map({
|
|
2496
|
+
const contents = (0, smithy_client_1.map)({
|
|
2536
2497
|
$metadata: deserializeMetadata(output),
|
|
2537
2498
|
});
|
|
2538
2499
|
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
@@ -2573,10 +2534,9 @@ const de_UpdateGatewayRouteCommandError = async (output, context) => {
|
|
|
2573
2534
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2574
2535
|
default:
|
|
2575
2536
|
const parsedBody = parsedOutput.body;
|
|
2576
|
-
|
|
2537
|
+
return throwDefaultError({
|
|
2577
2538
|
output,
|
|
2578
2539
|
parsedBody,
|
|
2579
|
-
exceptionCtor: AppMeshServiceException_1.AppMeshServiceException,
|
|
2580
2540
|
errorCode,
|
|
2581
2541
|
});
|
|
2582
2542
|
}
|
|
@@ -2585,7 +2545,7 @@ const de_UpdateMeshCommand = async (output, context) => {
|
|
|
2585
2545
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2586
2546
|
return de_UpdateMeshCommandError(output, context);
|
|
2587
2547
|
}
|
|
2588
|
-
const contents = map({
|
|
2548
|
+
const contents = (0, smithy_client_1.map)({
|
|
2589
2549
|
$metadata: deserializeMetadata(output),
|
|
2590
2550
|
});
|
|
2591
2551
|
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
@@ -2623,10 +2583,9 @@ const de_UpdateMeshCommandError = async (output, context) => {
|
|
|
2623
2583
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2624
2584
|
default:
|
|
2625
2585
|
const parsedBody = parsedOutput.body;
|
|
2626
|
-
|
|
2586
|
+
return throwDefaultError({
|
|
2627
2587
|
output,
|
|
2628
2588
|
parsedBody,
|
|
2629
|
-
exceptionCtor: AppMeshServiceException_1.AppMeshServiceException,
|
|
2630
2589
|
errorCode,
|
|
2631
2590
|
});
|
|
2632
2591
|
}
|
|
@@ -2635,7 +2594,7 @@ const de_UpdateRouteCommand = async (output, context) => {
|
|
|
2635
2594
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2636
2595
|
return de_UpdateRouteCommandError(output, context);
|
|
2637
2596
|
}
|
|
2638
|
-
const contents = map({
|
|
2597
|
+
const contents = (0, smithy_client_1.map)({
|
|
2639
2598
|
$metadata: deserializeMetadata(output),
|
|
2640
2599
|
});
|
|
2641
2600
|
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
@@ -2676,10 +2635,9 @@ const de_UpdateRouteCommandError = async (output, context) => {
|
|
|
2676
2635
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2677
2636
|
default:
|
|
2678
2637
|
const parsedBody = parsedOutput.body;
|
|
2679
|
-
|
|
2638
|
+
return throwDefaultError({
|
|
2680
2639
|
output,
|
|
2681
2640
|
parsedBody,
|
|
2682
|
-
exceptionCtor: AppMeshServiceException_1.AppMeshServiceException,
|
|
2683
2641
|
errorCode,
|
|
2684
2642
|
});
|
|
2685
2643
|
}
|
|
@@ -2688,7 +2646,7 @@ const de_UpdateVirtualGatewayCommand = async (output, context) => {
|
|
|
2688
2646
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2689
2647
|
return de_UpdateVirtualGatewayCommandError(output, context);
|
|
2690
2648
|
}
|
|
2691
|
-
const contents = map({
|
|
2649
|
+
const contents = (0, smithy_client_1.map)({
|
|
2692
2650
|
$metadata: deserializeMetadata(output),
|
|
2693
2651
|
});
|
|
2694
2652
|
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
@@ -2729,10 +2687,9 @@ const de_UpdateVirtualGatewayCommandError = async (output, context) => {
|
|
|
2729
2687
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2730
2688
|
default:
|
|
2731
2689
|
const parsedBody = parsedOutput.body;
|
|
2732
|
-
|
|
2690
|
+
return throwDefaultError({
|
|
2733
2691
|
output,
|
|
2734
2692
|
parsedBody,
|
|
2735
|
-
exceptionCtor: AppMeshServiceException_1.AppMeshServiceException,
|
|
2736
2693
|
errorCode,
|
|
2737
2694
|
});
|
|
2738
2695
|
}
|
|
@@ -2741,7 +2698,7 @@ const de_UpdateVirtualNodeCommand = async (output, context) => {
|
|
|
2741
2698
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2742
2699
|
return de_UpdateVirtualNodeCommandError(output, context);
|
|
2743
2700
|
}
|
|
2744
|
-
const contents = map({
|
|
2701
|
+
const contents = (0, smithy_client_1.map)({
|
|
2745
2702
|
$metadata: deserializeMetadata(output),
|
|
2746
2703
|
});
|
|
2747
2704
|
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
@@ -2782,10 +2739,9 @@ const de_UpdateVirtualNodeCommandError = async (output, context) => {
|
|
|
2782
2739
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2783
2740
|
default:
|
|
2784
2741
|
const parsedBody = parsedOutput.body;
|
|
2785
|
-
|
|
2742
|
+
return throwDefaultError({
|
|
2786
2743
|
output,
|
|
2787
2744
|
parsedBody,
|
|
2788
|
-
exceptionCtor: AppMeshServiceException_1.AppMeshServiceException,
|
|
2789
2745
|
errorCode,
|
|
2790
2746
|
});
|
|
2791
2747
|
}
|
|
@@ -2794,7 +2750,7 @@ const de_UpdateVirtualRouterCommand = async (output, context) => {
|
|
|
2794
2750
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2795
2751
|
return de_UpdateVirtualRouterCommandError(output, context);
|
|
2796
2752
|
}
|
|
2797
|
-
const contents = map({
|
|
2753
|
+
const contents = (0, smithy_client_1.map)({
|
|
2798
2754
|
$metadata: deserializeMetadata(output),
|
|
2799
2755
|
});
|
|
2800
2756
|
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
@@ -2835,10 +2791,9 @@ const de_UpdateVirtualRouterCommandError = async (output, context) => {
|
|
|
2835
2791
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2836
2792
|
default:
|
|
2837
2793
|
const parsedBody = parsedOutput.body;
|
|
2838
|
-
|
|
2794
|
+
return throwDefaultError({
|
|
2839
2795
|
output,
|
|
2840
2796
|
parsedBody,
|
|
2841
|
-
exceptionCtor: AppMeshServiceException_1.AppMeshServiceException,
|
|
2842
2797
|
errorCode,
|
|
2843
2798
|
});
|
|
2844
2799
|
}
|
|
@@ -2847,7 +2802,7 @@ const de_UpdateVirtualServiceCommand = async (output, context) => {
|
|
|
2847
2802
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2848
2803
|
return de_UpdateVirtualServiceCommandError(output, context);
|
|
2849
2804
|
}
|
|
2850
|
-
const contents = map({
|
|
2805
|
+
const contents = (0, smithy_client_1.map)({
|
|
2851
2806
|
$metadata: deserializeMetadata(output),
|
|
2852
2807
|
});
|
|
2853
2808
|
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
@@ -2888,21 +2843,21 @@ const de_UpdateVirtualServiceCommandError = async (output, context) => {
|
|
|
2888
2843
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2889
2844
|
default:
|
|
2890
2845
|
const parsedBody = parsedOutput.body;
|
|
2891
|
-
|
|
2846
|
+
return throwDefaultError({
|
|
2892
2847
|
output,
|
|
2893
2848
|
parsedBody,
|
|
2894
|
-
exceptionCtor: AppMeshServiceException_1.AppMeshServiceException,
|
|
2895
2849
|
errorCode,
|
|
2896
2850
|
});
|
|
2897
2851
|
}
|
|
2898
2852
|
};
|
|
2899
|
-
const
|
|
2853
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(AppMeshServiceException_1.AppMeshServiceException);
|
|
2900
2854
|
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
2901
|
-
const contents = map({});
|
|
2855
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2902
2856
|
const data = parsedOutput.body;
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
}
|
|
2857
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2858
|
+
message: smithy_client_1.expectString,
|
|
2859
|
+
});
|
|
2860
|
+
Object.assign(contents, doc);
|
|
2906
2861
|
const exception = new models_0_1.BadRequestException({
|
|
2907
2862
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2908
2863
|
...contents,
|
|
@@ -2910,11 +2865,12 @@ const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
|
2910
2865
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2911
2866
|
};
|
|
2912
2867
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
2913
|
-
const contents = map({});
|
|
2868
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2914
2869
|
const data = parsedOutput.body;
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
}
|
|
2870
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2871
|
+
message: smithy_client_1.expectString,
|
|
2872
|
+
});
|
|
2873
|
+
Object.assign(contents, doc);
|
|
2918
2874
|
const exception = new models_0_1.ConflictException({
|
|
2919
2875
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2920
2876
|
...contents,
|
|
@@ -2922,11 +2878,12 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
2922
2878
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2923
2879
|
};
|
|
2924
2880
|
const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
2925
|
-
const contents = map({});
|
|
2881
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2926
2882
|
const data = parsedOutput.body;
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
}
|
|
2883
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2884
|
+
message: smithy_client_1.expectString,
|
|
2885
|
+
});
|
|
2886
|
+
Object.assign(contents, doc);
|
|
2930
2887
|
const exception = new models_0_1.ForbiddenException({
|
|
2931
2888
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2932
2889
|
...contents,
|
|
@@ -2934,11 +2891,12 @@ const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
|
2934
2891
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2935
2892
|
};
|
|
2936
2893
|
const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
|
|
2937
|
-
const contents = map({});
|
|
2894
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2938
2895
|
const data = parsedOutput.body;
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
}
|
|
2896
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2897
|
+
message: smithy_client_1.expectString,
|
|
2898
|
+
});
|
|
2899
|
+
Object.assign(contents, doc);
|
|
2942
2900
|
const exception = new models_0_1.InternalServerErrorException({
|
|
2943
2901
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2944
2902
|
...contents,
|
|
@@ -2946,11 +2904,12 @@ const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
|
|
|
2946
2904
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2947
2905
|
};
|
|
2948
2906
|
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
2949
|
-
const contents = map({});
|
|
2907
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2950
2908
|
const data = parsedOutput.body;
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
}
|
|
2909
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2910
|
+
message: smithy_client_1.expectString,
|
|
2911
|
+
});
|
|
2912
|
+
Object.assign(contents, doc);
|
|
2954
2913
|
const exception = new models_0_1.LimitExceededException({
|
|
2955
2914
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2956
2915
|
...contents,
|
|
@@ -2958,11 +2917,12 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
2958
2917
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2959
2918
|
};
|
|
2960
2919
|
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2961
|
-
const contents = map({});
|
|
2920
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2962
2921
|
const data = parsedOutput.body;
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
}
|
|
2922
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2923
|
+
message: smithy_client_1.expectString,
|
|
2924
|
+
});
|
|
2925
|
+
Object.assign(contents, doc);
|
|
2966
2926
|
const exception = new models_0_1.NotFoundException({
|
|
2967
2927
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2968
2928
|
...contents,
|
|
@@ -2970,11 +2930,12 @@ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
2970
2930
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2971
2931
|
};
|
|
2972
2932
|
const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
|
|
2973
|
-
const contents = map({});
|
|
2933
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2974
2934
|
const data = parsedOutput.body;
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
}
|
|
2935
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2936
|
+
message: smithy_client_1.expectString,
|
|
2937
|
+
});
|
|
2938
|
+
Object.assign(contents, doc);
|
|
2978
2939
|
const exception = new models_0_1.ResourceInUseException({
|
|
2979
2940
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2980
2941
|
...contents,
|
|
@@ -2982,11 +2943,12 @@ const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
|
|
|
2982
2943
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2983
2944
|
};
|
|
2984
2945
|
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
2985
|
-
const contents = map({});
|
|
2946
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2986
2947
|
const data = parsedOutput.body;
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
}
|
|
2948
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2949
|
+
message: smithy_client_1.expectString,
|
|
2950
|
+
});
|
|
2951
|
+
Object.assign(contents, doc);
|
|
2990
2952
|
const exception = new models_0_1.ServiceUnavailableException({
|
|
2991
2953
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2992
2954
|
...contents,
|
|
@@ -2994,11 +2956,12 @@ const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
|
2994
2956
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2995
2957
|
};
|
|
2996
2958
|
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
2997
|
-
const contents = map({});
|
|
2959
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2998
2960
|
const data = parsedOutput.body;
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
}
|
|
2961
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2962
|
+
message: smithy_client_1.expectString,
|
|
2963
|
+
});
|
|
2964
|
+
Object.assign(contents, doc);
|
|
3002
2965
|
const exception = new models_0_1.TooManyRequestsException({
|
|
3003
2966
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3004
2967
|
...contents,
|
|
@@ -3006,2444 +2969,234 @@ const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
|
3006
2969
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3007
2970
|
};
|
|
3008
2971
|
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
3009
|
-
const contents = map({});
|
|
2972
|
+
const contents = (0, smithy_client_1.map)({});
|
|
3010
2973
|
const data = parsedOutput.body;
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
}
|
|
2974
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2975
|
+
message: smithy_client_1.expectString,
|
|
2976
|
+
});
|
|
2977
|
+
Object.assign(contents, doc);
|
|
3014
2978
|
const exception = new models_0_1.TooManyTagsException({
|
|
3015
2979
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3016
2980
|
...contents,
|
|
3017
2981
|
});
|
|
3018
2982
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3019
2983
|
};
|
|
3020
|
-
const
|
|
3021
|
-
return
|
|
3022
|
-
|
|
3023
|
-
|
|
2984
|
+
const de_GatewayRouteData = (output, context) => {
|
|
2985
|
+
return (0, smithy_client_1.take)(output, {
|
|
2986
|
+
gatewayRouteName: smithy_client_1.expectString,
|
|
2987
|
+
meshName: smithy_client_1.expectString,
|
|
2988
|
+
metadata: (_) => de_ResourceMetadata(_, context),
|
|
2989
|
+
spec: smithy_client_1._json,
|
|
2990
|
+
status: smithy_client_1._json,
|
|
2991
|
+
virtualGatewayName: smithy_client_1.expectString,
|
|
3024
2992
|
});
|
|
3025
2993
|
};
|
|
3026
|
-
const
|
|
3027
|
-
|
|
3028
|
-
...(input.key != null && { key: input.key }),
|
|
3029
|
-
...(input.value != null && { value: input.value }),
|
|
3030
|
-
};
|
|
3031
|
-
};
|
|
3032
|
-
const se_AwsCloudMapInstanceAttributes = (input, context) => {
|
|
3033
|
-
return input
|
|
2994
|
+
const de_GatewayRouteList = (output, context) => {
|
|
2995
|
+
const retVal = (output || [])
|
|
3034
2996
|
.filter((e) => e != null)
|
|
3035
2997
|
.map((entry) => {
|
|
3036
|
-
return
|
|
2998
|
+
return de_GatewayRouteRef(entry, context);
|
|
3037
2999
|
});
|
|
3000
|
+
return retVal;
|
|
3038
3001
|
};
|
|
3039
|
-
const
|
|
3040
|
-
return {
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
_: (name, value) => ({ name: value }),
|
|
3002
|
+
const de_GatewayRouteRef = (output, context) => {
|
|
3003
|
+
return (0, smithy_client_1.take)(output, {
|
|
3004
|
+
arn: smithy_client_1.expectString,
|
|
3005
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3006
|
+
gatewayRouteName: smithy_client_1.expectString,
|
|
3007
|
+
lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3008
|
+
meshName: smithy_client_1.expectString,
|
|
3009
|
+
meshOwner: smithy_client_1.expectString,
|
|
3010
|
+
resourceOwner: smithy_client_1.expectString,
|
|
3011
|
+
version: smithy_client_1.expectLong,
|
|
3012
|
+
virtualGatewayName: smithy_client_1.expectString,
|
|
3051
3013
|
});
|
|
3052
3014
|
};
|
|
3053
|
-
const
|
|
3054
|
-
return {
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
return input
|
|
3060
|
-
.filter((e) => e != null)
|
|
3061
|
-
.map((entry) => {
|
|
3062
|
-
return se_Backend(entry, context);
|
|
3015
|
+
const de_MeshData = (output, context) => {
|
|
3016
|
+
return (0, smithy_client_1.take)(output, {
|
|
3017
|
+
meshName: smithy_client_1.expectString,
|
|
3018
|
+
metadata: (_) => de_ResourceMetadata(_, context),
|
|
3019
|
+
spec: smithy_client_1._json,
|
|
3020
|
+
status: smithy_client_1._json,
|
|
3063
3021
|
});
|
|
3064
3022
|
};
|
|
3065
|
-
const
|
|
3066
|
-
|
|
3023
|
+
const de_MeshList = (output, context) => {
|
|
3024
|
+
const retVal = (output || [])
|
|
3067
3025
|
.filter((e) => e != null)
|
|
3068
3026
|
.map((entry) => {
|
|
3069
|
-
return entry;
|
|
3027
|
+
return de_MeshRef(entry, context);
|
|
3070
3028
|
});
|
|
3029
|
+
return retVal;
|
|
3071
3030
|
};
|
|
3072
|
-
const
|
|
3073
|
-
return {
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
...(input.ports != null && { ports: se_PortSet(input.ports, context) }),
|
|
3082
|
-
...(input.validation != null && { validation: se_TlsValidationContext(input.validation, context) }),
|
|
3083
|
-
};
|
|
3084
|
-
};
|
|
3085
|
-
const se_ClientTlsCertificate = (input, context) => {
|
|
3086
|
-
return models_0_1.ClientTlsCertificate.visit(input, {
|
|
3087
|
-
file: (value) => ({ file: se_ListenerTlsFileCertificate(value, context) }),
|
|
3088
|
-
sds: (value) => ({ sds: se_ListenerTlsSdsCertificate(value, context) }),
|
|
3089
|
-
_: (name, value) => ({ name: value }),
|
|
3031
|
+
const de_MeshRef = (output, context) => {
|
|
3032
|
+
return (0, smithy_client_1.take)(output, {
|
|
3033
|
+
arn: smithy_client_1.expectString,
|
|
3034
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3035
|
+
lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3036
|
+
meshName: smithy_client_1.expectString,
|
|
3037
|
+
meshOwner: smithy_client_1.expectString,
|
|
3038
|
+
resourceOwner: smithy_client_1.expectString,
|
|
3039
|
+
version: smithy_client_1.expectLong,
|
|
3090
3040
|
});
|
|
3091
3041
|
};
|
|
3092
|
-
const
|
|
3093
|
-
return {
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
...(input.unit != null && { unit: input.unit }),
|
|
3102
|
-
...(input.value != null && { value: input.value }),
|
|
3103
|
-
};
|
|
3104
|
-
};
|
|
3105
|
-
const se_EgressFilter = (input, context) => {
|
|
3106
|
-
return {
|
|
3107
|
-
...(input.type != null && { type: input.type }),
|
|
3108
|
-
};
|
|
3109
|
-
};
|
|
3110
|
-
const se_FileAccessLog = (input, context) => {
|
|
3111
|
-
return {
|
|
3112
|
-
...(input.format != null && { format: se_LoggingFormat(input.format, context) }),
|
|
3113
|
-
...(input.path != null && { path: input.path }),
|
|
3114
|
-
};
|
|
3115
|
-
};
|
|
3116
|
-
const se_GatewayRouteHostnameMatch = (input, context) => {
|
|
3117
|
-
return {
|
|
3118
|
-
...(input.exact != null && { exact: input.exact }),
|
|
3119
|
-
...(input.suffix != null && { suffix: input.suffix }),
|
|
3120
|
-
};
|
|
3121
|
-
};
|
|
3122
|
-
const se_GatewayRouteHostnameRewrite = (input, context) => {
|
|
3123
|
-
return {
|
|
3124
|
-
...(input.defaultTargetHostname != null && { defaultTargetHostname: input.defaultTargetHostname }),
|
|
3125
|
-
};
|
|
3126
|
-
};
|
|
3127
|
-
const se_GatewayRouteSpec = (input, context) => {
|
|
3128
|
-
return {
|
|
3129
|
-
...(input.grpcRoute != null && { grpcRoute: se_GrpcGatewayRoute(input.grpcRoute, context) }),
|
|
3130
|
-
...(input.http2Route != null && { http2Route: se_HttpGatewayRoute(input.http2Route, context) }),
|
|
3131
|
-
...(input.httpRoute != null && { httpRoute: se_HttpGatewayRoute(input.httpRoute, context) }),
|
|
3132
|
-
...(input.priority != null && { priority: input.priority }),
|
|
3133
|
-
};
|
|
3134
|
-
};
|
|
3135
|
-
const se_GatewayRouteTarget = (input, context) => {
|
|
3136
|
-
return {
|
|
3137
|
-
...(input.port != null && { port: input.port }),
|
|
3138
|
-
...(input.virtualService != null && {
|
|
3139
|
-
virtualService: se_GatewayRouteVirtualService(input.virtualService, context),
|
|
3140
|
-
}),
|
|
3141
|
-
};
|
|
3142
|
-
};
|
|
3143
|
-
const se_GatewayRouteVirtualService = (input, context) => {
|
|
3144
|
-
return {
|
|
3145
|
-
...(input.virtualServiceName != null && { virtualServiceName: input.virtualServiceName }),
|
|
3146
|
-
};
|
|
3147
|
-
};
|
|
3148
|
-
const se_GrpcGatewayRoute = (input, context) => {
|
|
3149
|
-
return {
|
|
3150
|
-
...(input.action != null && { action: se_GrpcGatewayRouteAction(input.action, context) }),
|
|
3151
|
-
...(input.match != null && { match: se_GrpcGatewayRouteMatch(input.match, context) }),
|
|
3152
|
-
};
|
|
3153
|
-
};
|
|
3154
|
-
const se_GrpcGatewayRouteAction = (input, context) => {
|
|
3155
|
-
return {
|
|
3156
|
-
...(input.rewrite != null && { rewrite: se_GrpcGatewayRouteRewrite(input.rewrite, context) }),
|
|
3157
|
-
...(input.target != null && { target: se_GatewayRouteTarget(input.target, context) }),
|
|
3158
|
-
};
|
|
3159
|
-
};
|
|
3160
|
-
const se_GrpcGatewayRouteMatch = (input, context) => {
|
|
3161
|
-
return {
|
|
3162
|
-
...(input.hostname != null && { hostname: se_GatewayRouteHostnameMatch(input.hostname, context) }),
|
|
3163
|
-
...(input.metadata != null && { metadata: se_GrpcGatewayRouteMetadataList(input.metadata, context) }),
|
|
3164
|
-
...(input.port != null && { port: input.port }),
|
|
3165
|
-
...(input.serviceName != null && { serviceName: input.serviceName }),
|
|
3166
|
-
};
|
|
3167
|
-
};
|
|
3168
|
-
const se_GrpcGatewayRouteMetadata = (input, context) => {
|
|
3169
|
-
return {
|
|
3170
|
-
...(input.invert != null && { invert: input.invert }),
|
|
3171
|
-
...(input.match != null && { match: se_GrpcMetadataMatchMethod(input.match, context) }),
|
|
3172
|
-
...(input.name != null && { name: input.name }),
|
|
3173
|
-
};
|
|
3174
|
-
};
|
|
3175
|
-
const se_GrpcGatewayRouteMetadataList = (input, context) => {
|
|
3176
|
-
return input
|
|
3177
|
-
.filter((e) => e != null)
|
|
3178
|
-
.map((entry) => {
|
|
3179
|
-
return se_GrpcGatewayRouteMetadata(entry, context);
|
|
3042
|
+
const de_ResourceMetadata = (output, context) => {
|
|
3043
|
+
return (0, smithy_client_1.take)(output, {
|
|
3044
|
+
arn: smithy_client_1.expectString,
|
|
3045
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3046
|
+
lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3047
|
+
meshOwner: smithy_client_1.expectString,
|
|
3048
|
+
resourceOwner: smithy_client_1.expectString,
|
|
3049
|
+
uid: smithy_client_1.expectString,
|
|
3050
|
+
version: smithy_client_1.expectLong,
|
|
3180
3051
|
});
|
|
3181
3052
|
};
|
|
3182
|
-
const
|
|
3183
|
-
return {
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
prefix: (value) => ({ prefix: value }),
|
|
3191
|
-
range: (value) => ({ range: se_MatchRange(value, context) }),
|
|
3192
|
-
regex: (value) => ({ regex: value }),
|
|
3193
|
-
suffix: (value) => ({ suffix: value }),
|
|
3194
|
-
_: (name, value) => ({ name: value }),
|
|
3195
|
-
});
|
|
3196
|
-
};
|
|
3197
|
-
const se_GrpcRetryPolicy = (input, context) => {
|
|
3198
|
-
return {
|
|
3199
|
-
...(input.grpcRetryEvents != null && { grpcRetryEvents: se_GrpcRetryPolicyEvents(input.grpcRetryEvents, context) }),
|
|
3200
|
-
...(input.httpRetryEvents != null && { httpRetryEvents: se_HttpRetryPolicyEvents(input.httpRetryEvents, context) }),
|
|
3201
|
-
...(input.maxRetries != null && { maxRetries: input.maxRetries }),
|
|
3202
|
-
...(input.perRetryTimeout != null && { perRetryTimeout: se_Duration(input.perRetryTimeout, context) }),
|
|
3203
|
-
...(input.tcpRetryEvents != null && { tcpRetryEvents: se_TcpRetryPolicyEvents(input.tcpRetryEvents, context) }),
|
|
3204
|
-
};
|
|
3205
|
-
};
|
|
3206
|
-
const se_GrpcRetryPolicyEvents = (input, context) => {
|
|
3207
|
-
return input
|
|
3208
|
-
.filter((e) => e != null)
|
|
3209
|
-
.map((entry) => {
|
|
3210
|
-
return entry;
|
|
3053
|
+
const de_RouteData = (output, context) => {
|
|
3054
|
+
return (0, smithy_client_1.take)(output, {
|
|
3055
|
+
meshName: smithy_client_1.expectString,
|
|
3056
|
+
metadata: (_) => de_ResourceMetadata(_, context),
|
|
3057
|
+
routeName: smithy_client_1.expectString,
|
|
3058
|
+
spec: smithy_client_1._json,
|
|
3059
|
+
status: smithy_client_1._json,
|
|
3060
|
+
virtualRouterName: smithy_client_1.expectString,
|
|
3211
3061
|
});
|
|
3212
3062
|
};
|
|
3213
|
-
const
|
|
3214
|
-
|
|
3215
|
-
...(input.action != null && { action: se_GrpcRouteAction(input.action, context) }),
|
|
3216
|
-
...(input.match != null && { match: se_GrpcRouteMatch(input.match, context) }),
|
|
3217
|
-
...(input.retryPolicy != null && { retryPolicy: se_GrpcRetryPolicy(input.retryPolicy, context) }),
|
|
3218
|
-
...(input.timeout != null && { timeout: se_GrpcTimeout(input.timeout, context) }),
|
|
3219
|
-
};
|
|
3220
|
-
};
|
|
3221
|
-
const se_GrpcRouteAction = (input, context) => {
|
|
3222
|
-
return {
|
|
3223
|
-
...(input.weightedTargets != null && { weightedTargets: se_WeightedTargets(input.weightedTargets, context) }),
|
|
3224
|
-
};
|
|
3225
|
-
};
|
|
3226
|
-
const se_GrpcRouteMatch = (input, context) => {
|
|
3227
|
-
return {
|
|
3228
|
-
...(input.metadata != null && { metadata: se_GrpcRouteMetadataList(input.metadata, context) }),
|
|
3229
|
-
...(input.methodName != null && { methodName: input.methodName }),
|
|
3230
|
-
...(input.port != null && { port: input.port }),
|
|
3231
|
-
...(input.serviceName != null && { serviceName: input.serviceName }),
|
|
3232
|
-
};
|
|
3233
|
-
};
|
|
3234
|
-
const se_GrpcRouteMetadata = (input, context) => {
|
|
3235
|
-
return {
|
|
3236
|
-
...(input.invert != null && { invert: input.invert }),
|
|
3237
|
-
...(input.match != null && { match: se_GrpcRouteMetadataMatchMethod(input.match, context) }),
|
|
3238
|
-
...(input.name != null && { name: input.name }),
|
|
3239
|
-
};
|
|
3240
|
-
};
|
|
3241
|
-
const se_GrpcRouteMetadataList = (input, context) => {
|
|
3242
|
-
return input
|
|
3063
|
+
const de_RouteList = (output, context) => {
|
|
3064
|
+
const retVal = (output || [])
|
|
3243
3065
|
.filter((e) => e != null)
|
|
3244
3066
|
.map((entry) => {
|
|
3245
|
-
return
|
|
3067
|
+
return de_RouteRef(entry, context);
|
|
3246
3068
|
});
|
|
3069
|
+
return retVal;
|
|
3247
3070
|
};
|
|
3248
|
-
const
|
|
3249
|
-
return
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3071
|
+
const de_RouteRef = (output, context) => {
|
|
3072
|
+
return (0, smithy_client_1.take)(output, {
|
|
3073
|
+
arn: smithy_client_1.expectString,
|
|
3074
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3075
|
+
lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3076
|
+
meshName: smithy_client_1.expectString,
|
|
3077
|
+
meshOwner: smithy_client_1.expectString,
|
|
3078
|
+
resourceOwner: smithy_client_1.expectString,
|
|
3079
|
+
routeName: smithy_client_1.expectString,
|
|
3080
|
+
version: smithy_client_1.expectLong,
|
|
3081
|
+
virtualRouterName: smithy_client_1.expectString,
|
|
3256
3082
|
});
|
|
3257
3083
|
};
|
|
3258
|
-
const
|
|
3259
|
-
return {
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
return models_0_1.HeaderMatchMethod.visit(input, {
|
|
3266
|
-
exact: (value) => ({ exact: value }),
|
|
3267
|
-
prefix: (value) => ({ prefix: value }),
|
|
3268
|
-
range: (value) => ({ range: se_MatchRange(value, context) }),
|
|
3269
|
-
regex: (value) => ({ regex: value }),
|
|
3270
|
-
suffix: (value) => ({ suffix: value }),
|
|
3271
|
-
_: (name, value) => ({ name: value }),
|
|
3272
|
-
});
|
|
3273
|
-
};
|
|
3274
|
-
const se_HealthCheckPolicy = (input, context) => {
|
|
3275
|
-
return {
|
|
3276
|
-
...(input.healthyThreshold != null && { healthyThreshold: input.healthyThreshold }),
|
|
3277
|
-
...(input.intervalMillis != null && { intervalMillis: input.intervalMillis }),
|
|
3278
|
-
...(input.path != null && { path: input.path }),
|
|
3279
|
-
...(input.port != null && { port: input.port }),
|
|
3280
|
-
...(input.protocol != null && { protocol: input.protocol }),
|
|
3281
|
-
...(input.timeoutMillis != null && { timeoutMillis: input.timeoutMillis }),
|
|
3282
|
-
...(input.unhealthyThreshold != null && { unhealthyThreshold: input.unhealthyThreshold }),
|
|
3283
|
-
};
|
|
3284
|
-
};
|
|
3285
|
-
const se_HttpGatewayRoute = (input, context) => {
|
|
3286
|
-
return {
|
|
3287
|
-
...(input.action != null && { action: se_HttpGatewayRouteAction(input.action, context) }),
|
|
3288
|
-
...(input.match != null && { match: se_HttpGatewayRouteMatch(input.match, context) }),
|
|
3289
|
-
};
|
|
3290
|
-
};
|
|
3291
|
-
const se_HttpGatewayRouteAction = (input, context) => {
|
|
3292
|
-
return {
|
|
3293
|
-
...(input.rewrite != null && { rewrite: se_HttpGatewayRouteRewrite(input.rewrite, context) }),
|
|
3294
|
-
...(input.target != null && { target: se_GatewayRouteTarget(input.target, context) }),
|
|
3295
|
-
};
|
|
3296
|
-
};
|
|
3297
|
-
const se_HttpGatewayRouteHeader = (input, context) => {
|
|
3298
|
-
return {
|
|
3299
|
-
...(input.invert != null && { invert: input.invert }),
|
|
3300
|
-
...(input.match != null && { match: se_HeaderMatchMethod(input.match, context) }),
|
|
3301
|
-
...(input.name != null && { name: input.name }),
|
|
3302
|
-
};
|
|
3303
|
-
};
|
|
3304
|
-
const se_HttpGatewayRouteHeaders = (input, context) => {
|
|
3305
|
-
return input
|
|
3306
|
-
.filter((e) => e != null)
|
|
3307
|
-
.map((entry) => {
|
|
3308
|
-
return se_HttpGatewayRouteHeader(entry, context);
|
|
3309
|
-
});
|
|
3310
|
-
};
|
|
3311
|
-
const se_HttpGatewayRouteMatch = (input, context) => {
|
|
3312
|
-
return {
|
|
3313
|
-
...(input.headers != null && { headers: se_HttpGatewayRouteHeaders(input.headers, context) }),
|
|
3314
|
-
...(input.hostname != null && { hostname: se_GatewayRouteHostnameMatch(input.hostname, context) }),
|
|
3315
|
-
...(input.method != null && { method: input.method }),
|
|
3316
|
-
...(input.path != null && { path: se_HttpPathMatch(input.path, context) }),
|
|
3317
|
-
...(input.port != null && { port: input.port }),
|
|
3318
|
-
...(input.prefix != null && { prefix: input.prefix }),
|
|
3319
|
-
...(input.queryParameters != null && { queryParameters: se_HttpQueryParameters(input.queryParameters, context) }),
|
|
3320
|
-
};
|
|
3321
|
-
};
|
|
3322
|
-
const se_HttpGatewayRoutePathRewrite = (input, context) => {
|
|
3323
|
-
return {
|
|
3324
|
-
...(input.exact != null && { exact: input.exact }),
|
|
3325
|
-
};
|
|
3326
|
-
};
|
|
3327
|
-
const se_HttpGatewayRoutePrefixRewrite = (input, context) => {
|
|
3328
|
-
return {
|
|
3329
|
-
...(input.defaultPrefix != null && { defaultPrefix: input.defaultPrefix }),
|
|
3330
|
-
...(input.value != null && { value: input.value }),
|
|
3331
|
-
};
|
|
3332
|
-
};
|
|
3333
|
-
const se_HttpGatewayRouteRewrite = (input, context) => {
|
|
3334
|
-
return {
|
|
3335
|
-
...(input.hostname != null && { hostname: se_GatewayRouteHostnameRewrite(input.hostname, context) }),
|
|
3336
|
-
...(input.path != null && { path: se_HttpGatewayRoutePathRewrite(input.path, context) }),
|
|
3337
|
-
...(input.prefix != null && { prefix: se_HttpGatewayRoutePrefixRewrite(input.prefix, context) }),
|
|
3338
|
-
};
|
|
3339
|
-
};
|
|
3340
|
-
const se_HttpPathMatch = (input, context) => {
|
|
3341
|
-
return {
|
|
3342
|
-
...(input.exact != null && { exact: input.exact }),
|
|
3343
|
-
...(input.regex != null && { regex: input.regex }),
|
|
3344
|
-
};
|
|
3345
|
-
};
|
|
3346
|
-
const se_HttpQueryParameter = (input, context) => {
|
|
3347
|
-
return {
|
|
3348
|
-
...(input.match != null && { match: se_QueryParameterMatch(input.match, context) }),
|
|
3349
|
-
...(input.name != null && { name: input.name }),
|
|
3350
|
-
};
|
|
3351
|
-
};
|
|
3352
|
-
const se_HttpQueryParameters = (input, context) => {
|
|
3353
|
-
return input
|
|
3354
|
-
.filter((e) => e != null)
|
|
3355
|
-
.map((entry) => {
|
|
3356
|
-
return se_HttpQueryParameter(entry, context);
|
|
3084
|
+
const de_VirtualGatewayData = (output, context) => {
|
|
3085
|
+
return (0, smithy_client_1.take)(output, {
|
|
3086
|
+
meshName: smithy_client_1.expectString,
|
|
3087
|
+
metadata: (_) => de_ResourceMetadata(_, context),
|
|
3088
|
+
spec: smithy_client_1._json,
|
|
3089
|
+
status: smithy_client_1._json,
|
|
3090
|
+
virtualGatewayName: smithy_client_1.expectString,
|
|
3357
3091
|
});
|
|
3358
3092
|
};
|
|
3359
|
-
const
|
|
3360
|
-
|
|
3361
|
-
...(input.httpRetryEvents != null && { httpRetryEvents: se_HttpRetryPolicyEvents(input.httpRetryEvents, context) }),
|
|
3362
|
-
...(input.maxRetries != null && { maxRetries: input.maxRetries }),
|
|
3363
|
-
...(input.perRetryTimeout != null && { perRetryTimeout: se_Duration(input.perRetryTimeout, context) }),
|
|
3364
|
-
...(input.tcpRetryEvents != null && { tcpRetryEvents: se_TcpRetryPolicyEvents(input.tcpRetryEvents, context) }),
|
|
3365
|
-
};
|
|
3366
|
-
};
|
|
3367
|
-
const se_HttpRetryPolicyEvents = (input, context) => {
|
|
3368
|
-
return input
|
|
3093
|
+
const de_VirtualGatewayList = (output, context) => {
|
|
3094
|
+
const retVal = (output || [])
|
|
3369
3095
|
.filter((e) => e != null)
|
|
3370
3096
|
.map((entry) => {
|
|
3371
|
-
return entry;
|
|
3097
|
+
return de_VirtualGatewayRef(entry, context);
|
|
3372
3098
|
});
|
|
3099
|
+
return retVal;
|
|
3373
3100
|
};
|
|
3374
|
-
const
|
|
3375
|
-
return {
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
...(input.weightedTargets != null && { weightedTargets: se_WeightedTargets(input.weightedTargets, context) }),
|
|
3385
|
-
};
|
|
3386
|
-
};
|
|
3387
|
-
const se_HttpRouteHeader = (input, context) => {
|
|
3388
|
-
return {
|
|
3389
|
-
...(input.invert != null && { invert: input.invert }),
|
|
3390
|
-
...(input.match != null && { match: se_HeaderMatchMethod(input.match, context) }),
|
|
3391
|
-
...(input.name != null && { name: input.name }),
|
|
3392
|
-
};
|
|
3393
|
-
};
|
|
3394
|
-
const se_HttpRouteHeaders = (input, context) => {
|
|
3395
|
-
return input
|
|
3396
|
-
.filter((e) => e != null)
|
|
3397
|
-
.map((entry) => {
|
|
3398
|
-
return se_HttpRouteHeader(entry, context);
|
|
3399
|
-
});
|
|
3400
|
-
};
|
|
3401
|
-
const se_HttpRouteMatch = (input, context) => {
|
|
3402
|
-
return {
|
|
3403
|
-
...(input.headers != null && { headers: se_HttpRouteHeaders(input.headers, context) }),
|
|
3404
|
-
...(input.method != null && { method: input.method }),
|
|
3405
|
-
...(input.path != null && { path: se_HttpPathMatch(input.path, context) }),
|
|
3406
|
-
...(input.port != null && { port: input.port }),
|
|
3407
|
-
...(input.prefix != null && { prefix: input.prefix }),
|
|
3408
|
-
...(input.queryParameters != null && { queryParameters: se_HttpQueryParameters(input.queryParameters, context) }),
|
|
3409
|
-
...(input.scheme != null && { scheme: input.scheme }),
|
|
3410
|
-
};
|
|
3411
|
-
};
|
|
3412
|
-
const se_HttpTimeout = (input, context) => {
|
|
3413
|
-
return {
|
|
3414
|
-
...(input.idle != null && { idle: se_Duration(input.idle, context) }),
|
|
3415
|
-
...(input.perRequest != null && { perRequest: se_Duration(input.perRequest, context) }),
|
|
3416
|
-
};
|
|
3417
|
-
};
|
|
3418
|
-
const se_JsonFormat = (input, context) => {
|
|
3419
|
-
return input
|
|
3420
|
-
.filter((e) => e != null)
|
|
3421
|
-
.map((entry) => {
|
|
3422
|
-
return se_JsonFormatRef(entry, context);
|
|
3101
|
+
const de_VirtualGatewayRef = (output, context) => {
|
|
3102
|
+
return (0, smithy_client_1.take)(output, {
|
|
3103
|
+
arn: smithy_client_1.expectString,
|
|
3104
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3105
|
+
lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3106
|
+
meshName: smithy_client_1.expectString,
|
|
3107
|
+
meshOwner: smithy_client_1.expectString,
|
|
3108
|
+
resourceOwner: smithy_client_1.expectString,
|
|
3109
|
+
version: smithy_client_1.expectLong,
|
|
3110
|
+
virtualGatewayName: smithy_client_1.expectString,
|
|
3423
3111
|
});
|
|
3424
3112
|
};
|
|
3425
|
-
const
|
|
3426
|
-
return {
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
...(input.connectionPool != null && {
|
|
3434
|
-
connectionPool: se_VirtualNodeConnectionPool(input.connectionPool, context),
|
|
3435
|
-
}),
|
|
3436
|
-
...(input.healthCheck != null && { healthCheck: se_HealthCheckPolicy(input.healthCheck, context) }),
|
|
3437
|
-
...(input.outlierDetection != null && { outlierDetection: se_OutlierDetection(input.outlierDetection, context) }),
|
|
3438
|
-
...(input.portMapping != null && { portMapping: se_PortMapping(input.portMapping, context) }),
|
|
3439
|
-
...(input.timeout != null && { timeout: se_ListenerTimeout(input.timeout, context) }),
|
|
3440
|
-
...(input.tls != null && { tls: se_ListenerTls(input.tls, context) }),
|
|
3441
|
-
};
|
|
3113
|
+
const de_VirtualNodeData = (output, context) => {
|
|
3114
|
+
return (0, smithy_client_1.take)(output, {
|
|
3115
|
+
meshName: smithy_client_1.expectString,
|
|
3116
|
+
metadata: (_) => de_ResourceMetadata(_, context),
|
|
3117
|
+
spec: smithy_client_1._json,
|
|
3118
|
+
status: smithy_client_1._json,
|
|
3119
|
+
virtualNodeName: smithy_client_1.expectString,
|
|
3120
|
+
});
|
|
3442
3121
|
};
|
|
3443
|
-
const
|
|
3444
|
-
|
|
3122
|
+
const de_VirtualNodeList = (output, context) => {
|
|
3123
|
+
const retVal = (output || [])
|
|
3445
3124
|
.filter((e) => e != null)
|
|
3446
3125
|
.map((entry) => {
|
|
3447
|
-
return
|
|
3448
|
-
});
|
|
3449
|
-
};
|
|
3450
|
-
const se_ListenerTimeout = (input, context) => {
|
|
3451
|
-
return models_0_1.ListenerTimeout.visit(input, {
|
|
3452
|
-
grpc: (value) => ({ grpc: se_GrpcTimeout(value, context) }),
|
|
3453
|
-
http: (value) => ({ http: se_HttpTimeout(value, context) }),
|
|
3454
|
-
http2: (value) => ({ http2: se_HttpTimeout(value, context) }),
|
|
3455
|
-
tcp: (value) => ({ tcp: se_TcpTimeout(value, context) }),
|
|
3456
|
-
_: (name, value) => ({ name: value }),
|
|
3457
|
-
});
|
|
3458
|
-
};
|
|
3459
|
-
const se_ListenerTls = (input, context) => {
|
|
3460
|
-
return {
|
|
3461
|
-
...(input.certificate != null && { certificate: se_ListenerTlsCertificate(input.certificate, context) }),
|
|
3462
|
-
...(input.mode != null && { mode: input.mode }),
|
|
3463
|
-
...(input.validation != null && { validation: se_ListenerTlsValidationContext(input.validation, context) }),
|
|
3464
|
-
};
|
|
3465
|
-
};
|
|
3466
|
-
const se_ListenerTlsAcmCertificate = (input, context) => {
|
|
3467
|
-
return {
|
|
3468
|
-
...(input.certificateArn != null && { certificateArn: input.certificateArn }),
|
|
3469
|
-
};
|
|
3470
|
-
};
|
|
3471
|
-
const se_ListenerTlsCertificate = (input, context) => {
|
|
3472
|
-
return models_0_1.ListenerTlsCertificate.visit(input, {
|
|
3473
|
-
acm: (value) => ({ acm: se_ListenerTlsAcmCertificate(value, context) }),
|
|
3474
|
-
file: (value) => ({ file: se_ListenerTlsFileCertificate(value, context) }),
|
|
3475
|
-
sds: (value) => ({ sds: se_ListenerTlsSdsCertificate(value, context) }),
|
|
3476
|
-
_: (name, value) => ({ name: value }),
|
|
3126
|
+
return de_VirtualNodeRef(entry, context);
|
|
3477
3127
|
});
|
|
3128
|
+
return retVal;
|
|
3478
3129
|
};
|
|
3479
|
-
const
|
|
3480
|
-
return {
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
};
|
|
3490
|
-
const se_ListenerTlsValidationContext = (input, context) => {
|
|
3491
|
-
return {
|
|
3492
|
-
...(input.subjectAlternativeNames != null && {
|
|
3493
|
-
subjectAlternativeNames: se_SubjectAlternativeNames(input.subjectAlternativeNames, context),
|
|
3494
|
-
}),
|
|
3495
|
-
...(input.trust != null && { trust: se_ListenerTlsValidationContextTrust(input.trust, context) }),
|
|
3496
|
-
};
|
|
3497
|
-
};
|
|
3498
|
-
const se_ListenerTlsValidationContextTrust = (input, context) => {
|
|
3499
|
-
return models_0_1.ListenerTlsValidationContextTrust.visit(input, {
|
|
3500
|
-
file: (value) => ({ file: se_TlsValidationContextFileTrust(value, context) }),
|
|
3501
|
-
sds: (value) => ({ sds: se_TlsValidationContextSdsTrust(value, context) }),
|
|
3502
|
-
_: (name, value) => ({ name: value }),
|
|
3130
|
+
const de_VirtualNodeRef = (output, context) => {
|
|
3131
|
+
return (0, smithy_client_1.take)(output, {
|
|
3132
|
+
arn: smithy_client_1.expectString,
|
|
3133
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3134
|
+
lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3135
|
+
meshName: smithy_client_1.expectString,
|
|
3136
|
+
meshOwner: smithy_client_1.expectString,
|
|
3137
|
+
resourceOwner: smithy_client_1.expectString,
|
|
3138
|
+
version: smithy_client_1.expectLong,
|
|
3139
|
+
virtualNodeName: smithy_client_1.expectString,
|
|
3503
3140
|
});
|
|
3504
3141
|
};
|
|
3505
|
-
const
|
|
3506
|
-
return {
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
json: (value) => ({ json: se_JsonFormat(value, context) }),
|
|
3513
|
-
text: (value) => ({ text: value }),
|
|
3514
|
-
_: (name, value) => ({ name: value }),
|
|
3142
|
+
const de_VirtualRouterData = (output, context) => {
|
|
3143
|
+
return (0, smithy_client_1.take)(output, {
|
|
3144
|
+
meshName: smithy_client_1.expectString,
|
|
3145
|
+
metadata: (_) => de_ResourceMetadata(_, context),
|
|
3146
|
+
spec: smithy_client_1._json,
|
|
3147
|
+
status: smithy_client_1._json,
|
|
3148
|
+
virtualRouterName: smithy_client_1.expectString,
|
|
3515
3149
|
});
|
|
3516
3150
|
};
|
|
3517
|
-
const
|
|
3518
|
-
|
|
3519
|
-
...(input.end != null && { end: input.end }),
|
|
3520
|
-
...(input.start != null && { start: input.start }),
|
|
3521
|
-
};
|
|
3522
|
-
};
|
|
3523
|
-
const se_MeshServiceDiscovery = (input, context) => {
|
|
3524
|
-
return {
|
|
3525
|
-
...(input.ipPreference != null && { ipPreference: input.ipPreference }),
|
|
3526
|
-
};
|
|
3527
|
-
};
|
|
3528
|
-
const se_MeshSpec = (input, context) => {
|
|
3529
|
-
return {
|
|
3530
|
-
...(input.egressFilter != null && { egressFilter: se_EgressFilter(input.egressFilter, context) }),
|
|
3531
|
-
...(input.serviceDiscovery != null && {
|
|
3532
|
-
serviceDiscovery: se_MeshServiceDiscovery(input.serviceDiscovery, context),
|
|
3533
|
-
}),
|
|
3534
|
-
};
|
|
3535
|
-
};
|
|
3536
|
-
const se_OutlierDetection = (input, context) => {
|
|
3537
|
-
return {
|
|
3538
|
-
...(input.baseEjectionDuration != null && {
|
|
3539
|
-
baseEjectionDuration: se_Duration(input.baseEjectionDuration, context),
|
|
3540
|
-
}),
|
|
3541
|
-
...(input.interval != null && { interval: se_Duration(input.interval, context) }),
|
|
3542
|
-
...(input.maxEjectionPercent != null && { maxEjectionPercent: input.maxEjectionPercent }),
|
|
3543
|
-
...(input.maxServerErrors != null && { maxServerErrors: input.maxServerErrors }),
|
|
3544
|
-
};
|
|
3545
|
-
};
|
|
3546
|
-
const se_PortMapping = (input, context) => {
|
|
3547
|
-
return {
|
|
3548
|
-
...(input.port != null && { port: input.port }),
|
|
3549
|
-
...(input.protocol != null && { protocol: input.protocol }),
|
|
3550
|
-
};
|
|
3551
|
-
};
|
|
3552
|
-
const se_PortSet = (input, context) => {
|
|
3553
|
-
return input
|
|
3151
|
+
const de_VirtualRouterList = (output, context) => {
|
|
3152
|
+
const retVal = (output || [])
|
|
3554
3153
|
.filter((e) => e != null)
|
|
3555
3154
|
.map((entry) => {
|
|
3556
|
-
return entry;
|
|
3557
|
-
});
|
|
3558
|
-
};
|
|
3559
|
-
const se_QueryParameterMatch = (input, context) => {
|
|
3560
|
-
return {
|
|
3561
|
-
...(input.exact != null && { exact: input.exact }),
|
|
3562
|
-
};
|
|
3563
|
-
};
|
|
3564
|
-
const se_RouteSpec = (input, context) => {
|
|
3565
|
-
return {
|
|
3566
|
-
...(input.grpcRoute != null && { grpcRoute: se_GrpcRoute(input.grpcRoute, context) }),
|
|
3567
|
-
...(input.http2Route != null && { http2Route: se_HttpRoute(input.http2Route, context) }),
|
|
3568
|
-
...(input.httpRoute != null && { httpRoute: se_HttpRoute(input.httpRoute, context) }),
|
|
3569
|
-
...(input.priority != null && { priority: input.priority }),
|
|
3570
|
-
...(input.tcpRoute != null && { tcpRoute: se_TcpRoute(input.tcpRoute, context) }),
|
|
3571
|
-
};
|
|
3572
|
-
};
|
|
3573
|
-
const se_ServiceDiscovery = (input, context) => {
|
|
3574
|
-
return models_0_1.ServiceDiscovery.visit(input, {
|
|
3575
|
-
awsCloudMap: (value) => ({ awsCloudMap: se_AwsCloudMapServiceDiscovery(value, context) }),
|
|
3576
|
-
dns: (value) => ({ dns: se_DnsServiceDiscovery(value, context) }),
|
|
3577
|
-
_: (name, value) => ({ name: value }),
|
|
3155
|
+
return de_VirtualRouterRef(entry, context);
|
|
3578
3156
|
});
|
|
3157
|
+
return retVal;
|
|
3579
3158
|
};
|
|
3580
|
-
const
|
|
3581
|
-
return
|
|
3582
|
-
.
|
|
3583
|
-
.
|
|
3584
|
-
|
|
3159
|
+
const de_VirtualRouterRef = (output, context) => {
|
|
3160
|
+
return (0, smithy_client_1.take)(output, {
|
|
3161
|
+
arn: smithy_client_1.expectString,
|
|
3162
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3163
|
+
lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3164
|
+
meshName: smithy_client_1.expectString,
|
|
3165
|
+
meshOwner: smithy_client_1.expectString,
|
|
3166
|
+
resourceOwner: smithy_client_1.expectString,
|
|
3167
|
+
version: smithy_client_1.expectLong,
|
|
3168
|
+
virtualRouterName: smithy_client_1.expectString,
|
|
3585
3169
|
});
|
|
3586
3170
|
};
|
|
3587
|
-
const
|
|
3588
|
-
return {
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
...(input.match != null && { match: se_SubjectAlternativeNameMatchers(input.match, context) }),
|
|
3595
|
-
};
|
|
3596
|
-
};
|
|
3597
|
-
const se_TagKeyList = (input, context) => {
|
|
3598
|
-
return input
|
|
3599
|
-
.filter((e) => e != null)
|
|
3600
|
-
.map((entry) => {
|
|
3601
|
-
return entry;
|
|
3171
|
+
const de_VirtualServiceData = (output, context) => {
|
|
3172
|
+
return (0, smithy_client_1.take)(output, {
|
|
3173
|
+
meshName: smithy_client_1.expectString,
|
|
3174
|
+
metadata: (_) => de_ResourceMetadata(_, context),
|
|
3175
|
+
spec: smithy_client_1._json,
|
|
3176
|
+
status: smithy_client_1._json,
|
|
3177
|
+
virtualServiceName: smithy_client_1.expectString,
|
|
3602
3178
|
});
|
|
3603
3179
|
};
|
|
3604
|
-
const
|
|
3605
|
-
|
|
3180
|
+
const de_VirtualServiceList = (output, context) => {
|
|
3181
|
+
const retVal = (output || [])
|
|
3606
3182
|
.filter((e) => e != null)
|
|
3607
3183
|
.map((entry) => {
|
|
3608
|
-
return
|
|
3184
|
+
return de_VirtualServiceRef(entry, context);
|
|
3609
3185
|
});
|
|
3186
|
+
return retVal;
|
|
3610
3187
|
};
|
|
3611
|
-
const
|
|
3612
|
-
return {
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
.
|
|
3620
|
-
.
|
|
3621
|
-
return entry;
|
|
3188
|
+
const de_VirtualServiceRef = (output, context) => {
|
|
3189
|
+
return (0, smithy_client_1.take)(output, {
|
|
3190
|
+
arn: smithy_client_1.expectString,
|
|
3191
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3192
|
+
lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3193
|
+
meshName: smithy_client_1.expectString,
|
|
3194
|
+
meshOwner: smithy_client_1.expectString,
|
|
3195
|
+
resourceOwner: smithy_client_1.expectString,
|
|
3196
|
+
version: smithy_client_1.expectLong,
|
|
3197
|
+
virtualServiceName: smithy_client_1.expectString,
|
|
3622
3198
|
});
|
|
3623
3199
|
};
|
|
3624
|
-
const se_TcpRoute = (input, context) => {
|
|
3625
|
-
return {
|
|
3626
|
-
...(input.action != null && { action: se_TcpRouteAction(input.action, context) }),
|
|
3627
|
-
...(input.match != null && { match: se_TcpRouteMatch(input.match, context) }),
|
|
3628
|
-
...(input.timeout != null && { timeout: se_TcpTimeout(input.timeout, context) }),
|
|
3629
|
-
};
|
|
3630
|
-
};
|
|
3631
|
-
const se_TcpRouteAction = (input, context) => {
|
|
3632
|
-
return {
|
|
3633
|
-
...(input.weightedTargets != null && { weightedTargets: se_WeightedTargets(input.weightedTargets, context) }),
|
|
3634
|
-
};
|
|
3635
|
-
};
|
|
3636
|
-
const se_TcpRouteMatch = (input, context) => {
|
|
3637
|
-
return {
|
|
3638
|
-
...(input.port != null && { port: input.port }),
|
|
3639
|
-
};
|
|
3640
|
-
};
|
|
3641
|
-
const se_TcpTimeout = (input, context) => {
|
|
3642
|
-
return {
|
|
3643
|
-
...(input.idle != null && { idle: se_Duration(input.idle, context) }),
|
|
3644
|
-
};
|
|
3645
|
-
};
|
|
3646
|
-
const se_TlsValidationContext = (input, context) => {
|
|
3647
|
-
return {
|
|
3648
|
-
...(input.subjectAlternativeNames != null && {
|
|
3649
|
-
subjectAlternativeNames: se_SubjectAlternativeNames(input.subjectAlternativeNames, context),
|
|
3650
|
-
}),
|
|
3651
|
-
...(input.trust != null && { trust: se_TlsValidationContextTrust(input.trust, context) }),
|
|
3652
|
-
};
|
|
3653
|
-
};
|
|
3654
|
-
const se_TlsValidationContextAcmTrust = (input, context) => {
|
|
3655
|
-
return {
|
|
3656
|
-
...(input.certificateAuthorityArns != null && {
|
|
3657
|
-
certificateAuthorityArns: se_CertificateAuthorityArns(input.certificateAuthorityArns, context),
|
|
3658
|
-
}),
|
|
3659
|
-
};
|
|
3660
|
-
};
|
|
3661
|
-
const se_TlsValidationContextFileTrust = (input, context) => {
|
|
3662
|
-
return {
|
|
3663
|
-
...(input.certificateChain != null && { certificateChain: input.certificateChain }),
|
|
3664
|
-
};
|
|
3665
|
-
};
|
|
3666
|
-
const se_TlsValidationContextSdsTrust = (input, context) => {
|
|
3667
|
-
return {
|
|
3668
|
-
...(input.secretName != null && { secretName: input.secretName }),
|
|
3669
|
-
};
|
|
3670
|
-
};
|
|
3671
|
-
const se_TlsValidationContextTrust = (input, context) => {
|
|
3672
|
-
return models_0_1.TlsValidationContextTrust.visit(input, {
|
|
3673
|
-
acm: (value) => ({ acm: se_TlsValidationContextAcmTrust(value, context) }),
|
|
3674
|
-
file: (value) => ({ file: se_TlsValidationContextFileTrust(value, context) }),
|
|
3675
|
-
sds: (value) => ({ sds: se_TlsValidationContextSdsTrust(value, context) }),
|
|
3676
|
-
_: (name, value) => ({ name: value }),
|
|
3677
|
-
});
|
|
3678
|
-
};
|
|
3679
|
-
const se_VirtualGatewayAccessLog = (input, context) => {
|
|
3680
|
-
return models_0_1.VirtualGatewayAccessLog.visit(input, {
|
|
3681
|
-
file: (value) => ({ file: se_VirtualGatewayFileAccessLog(value, context) }),
|
|
3682
|
-
_: (name, value) => ({ name: value }),
|
|
3683
|
-
});
|
|
3684
|
-
};
|
|
3685
|
-
const se_VirtualGatewayBackendDefaults = (input, context) => {
|
|
3686
|
-
return {
|
|
3687
|
-
...(input.clientPolicy != null && { clientPolicy: se_VirtualGatewayClientPolicy(input.clientPolicy, context) }),
|
|
3688
|
-
};
|
|
3689
|
-
};
|
|
3690
|
-
const se_VirtualGatewayCertificateAuthorityArns = (input, context) => {
|
|
3691
|
-
return input
|
|
3692
|
-
.filter((e) => e != null)
|
|
3693
|
-
.map((entry) => {
|
|
3694
|
-
return entry;
|
|
3695
|
-
});
|
|
3696
|
-
};
|
|
3697
|
-
const se_VirtualGatewayClientPolicy = (input, context) => {
|
|
3698
|
-
return {
|
|
3699
|
-
...(input.tls != null && { tls: se_VirtualGatewayClientPolicyTls(input.tls, context) }),
|
|
3700
|
-
};
|
|
3701
|
-
};
|
|
3702
|
-
const se_VirtualGatewayClientPolicyTls = (input, context) => {
|
|
3703
|
-
return {
|
|
3704
|
-
...(input.certificate != null && {
|
|
3705
|
-
certificate: se_VirtualGatewayClientTlsCertificate(input.certificate, context),
|
|
3706
|
-
}),
|
|
3707
|
-
...(input.enforce != null && { enforce: input.enforce }),
|
|
3708
|
-
...(input.ports != null && { ports: se_PortSet(input.ports, context) }),
|
|
3709
|
-
...(input.validation != null && { validation: se_VirtualGatewayTlsValidationContext(input.validation, context) }),
|
|
3710
|
-
};
|
|
3711
|
-
};
|
|
3712
|
-
const se_VirtualGatewayClientTlsCertificate = (input, context) => {
|
|
3713
|
-
return models_0_1.VirtualGatewayClientTlsCertificate.visit(input, {
|
|
3714
|
-
file: (value) => ({ file: se_VirtualGatewayListenerTlsFileCertificate(value, context) }),
|
|
3715
|
-
sds: (value) => ({ sds: se_VirtualGatewayListenerTlsSdsCertificate(value, context) }),
|
|
3716
|
-
_: (name, value) => ({ name: value }),
|
|
3717
|
-
});
|
|
3718
|
-
};
|
|
3719
|
-
const se_VirtualGatewayConnectionPool = (input, context) => {
|
|
3720
|
-
return models_0_1.VirtualGatewayConnectionPool.visit(input, {
|
|
3721
|
-
grpc: (value) => ({ grpc: se_VirtualGatewayGrpcConnectionPool(value, context) }),
|
|
3722
|
-
http: (value) => ({ http: se_VirtualGatewayHttpConnectionPool(value, context) }),
|
|
3723
|
-
http2: (value) => ({ http2: se_VirtualGatewayHttp2ConnectionPool(value, context) }),
|
|
3724
|
-
_: (name, value) => ({ name: value }),
|
|
3725
|
-
});
|
|
3726
|
-
};
|
|
3727
|
-
const se_VirtualGatewayFileAccessLog = (input, context) => {
|
|
3728
|
-
return {
|
|
3729
|
-
...(input.format != null && { format: se_LoggingFormat(input.format, context) }),
|
|
3730
|
-
...(input.path != null && { path: input.path }),
|
|
3731
|
-
};
|
|
3732
|
-
};
|
|
3733
|
-
const se_VirtualGatewayGrpcConnectionPool = (input, context) => {
|
|
3734
|
-
return {
|
|
3735
|
-
...(input.maxRequests != null && { maxRequests: input.maxRequests }),
|
|
3736
|
-
};
|
|
3737
|
-
};
|
|
3738
|
-
const se_VirtualGatewayHealthCheckPolicy = (input, context) => {
|
|
3739
|
-
return {
|
|
3740
|
-
...(input.healthyThreshold != null && { healthyThreshold: input.healthyThreshold }),
|
|
3741
|
-
...(input.intervalMillis != null && { intervalMillis: input.intervalMillis }),
|
|
3742
|
-
...(input.path != null && { path: input.path }),
|
|
3743
|
-
...(input.port != null && { port: input.port }),
|
|
3744
|
-
...(input.protocol != null && { protocol: input.protocol }),
|
|
3745
|
-
...(input.timeoutMillis != null && { timeoutMillis: input.timeoutMillis }),
|
|
3746
|
-
...(input.unhealthyThreshold != null && { unhealthyThreshold: input.unhealthyThreshold }),
|
|
3747
|
-
};
|
|
3748
|
-
};
|
|
3749
|
-
const se_VirtualGatewayHttp2ConnectionPool = (input, context) => {
|
|
3750
|
-
return {
|
|
3751
|
-
...(input.maxRequests != null && { maxRequests: input.maxRequests }),
|
|
3752
|
-
};
|
|
3753
|
-
};
|
|
3754
|
-
const se_VirtualGatewayHttpConnectionPool = (input, context) => {
|
|
3755
|
-
return {
|
|
3756
|
-
...(input.maxConnections != null && { maxConnections: input.maxConnections }),
|
|
3757
|
-
...(input.maxPendingRequests != null && { maxPendingRequests: input.maxPendingRequests }),
|
|
3758
|
-
};
|
|
3759
|
-
};
|
|
3760
|
-
const se_VirtualGatewayListener = (input, context) => {
|
|
3761
|
-
return {
|
|
3762
|
-
...(input.connectionPool != null && {
|
|
3763
|
-
connectionPool: se_VirtualGatewayConnectionPool(input.connectionPool, context),
|
|
3764
|
-
}),
|
|
3765
|
-
...(input.healthCheck != null && { healthCheck: se_VirtualGatewayHealthCheckPolicy(input.healthCheck, context) }),
|
|
3766
|
-
...(input.portMapping != null && { portMapping: se_VirtualGatewayPortMapping(input.portMapping, context) }),
|
|
3767
|
-
...(input.tls != null && { tls: se_VirtualGatewayListenerTls(input.tls, context) }),
|
|
3768
|
-
};
|
|
3769
|
-
};
|
|
3770
|
-
const se_VirtualGatewayListeners = (input, context) => {
|
|
3771
|
-
return input
|
|
3772
|
-
.filter((e) => e != null)
|
|
3773
|
-
.map((entry) => {
|
|
3774
|
-
return se_VirtualGatewayListener(entry, context);
|
|
3775
|
-
});
|
|
3776
|
-
};
|
|
3777
|
-
const se_VirtualGatewayListenerTls = (input, context) => {
|
|
3778
|
-
return {
|
|
3779
|
-
...(input.certificate != null && {
|
|
3780
|
-
certificate: se_VirtualGatewayListenerTlsCertificate(input.certificate, context),
|
|
3781
|
-
}),
|
|
3782
|
-
...(input.mode != null && { mode: input.mode }),
|
|
3783
|
-
...(input.validation != null && {
|
|
3784
|
-
validation: se_VirtualGatewayListenerTlsValidationContext(input.validation, context),
|
|
3785
|
-
}),
|
|
3786
|
-
};
|
|
3787
|
-
};
|
|
3788
|
-
const se_VirtualGatewayListenerTlsAcmCertificate = (input, context) => {
|
|
3789
|
-
return {
|
|
3790
|
-
...(input.certificateArn != null && { certificateArn: input.certificateArn }),
|
|
3791
|
-
};
|
|
3792
|
-
};
|
|
3793
|
-
const se_VirtualGatewayListenerTlsCertificate = (input, context) => {
|
|
3794
|
-
return models_0_1.VirtualGatewayListenerTlsCertificate.visit(input, {
|
|
3795
|
-
acm: (value) => ({ acm: se_VirtualGatewayListenerTlsAcmCertificate(value, context) }),
|
|
3796
|
-
file: (value) => ({ file: se_VirtualGatewayListenerTlsFileCertificate(value, context) }),
|
|
3797
|
-
sds: (value) => ({ sds: se_VirtualGatewayListenerTlsSdsCertificate(value, context) }),
|
|
3798
|
-
_: (name, value) => ({ name: value }),
|
|
3799
|
-
});
|
|
3800
|
-
};
|
|
3801
|
-
const se_VirtualGatewayListenerTlsFileCertificate = (input, context) => {
|
|
3802
|
-
return {
|
|
3803
|
-
...(input.certificateChain != null && { certificateChain: input.certificateChain }),
|
|
3804
|
-
...(input.privateKey != null && { privateKey: input.privateKey }),
|
|
3805
|
-
};
|
|
3806
|
-
};
|
|
3807
|
-
const se_VirtualGatewayListenerTlsSdsCertificate = (input, context) => {
|
|
3808
|
-
return {
|
|
3809
|
-
...(input.secretName != null && { secretName: input.secretName }),
|
|
3810
|
-
};
|
|
3811
|
-
};
|
|
3812
|
-
const se_VirtualGatewayListenerTlsValidationContext = (input, context) => {
|
|
3813
|
-
return {
|
|
3814
|
-
...(input.subjectAlternativeNames != null && {
|
|
3815
|
-
subjectAlternativeNames: se_SubjectAlternativeNames(input.subjectAlternativeNames, context),
|
|
3816
|
-
}),
|
|
3817
|
-
...(input.trust != null && { trust: se_VirtualGatewayListenerTlsValidationContextTrust(input.trust, context) }),
|
|
3818
|
-
};
|
|
3819
|
-
};
|
|
3820
|
-
const se_VirtualGatewayListenerTlsValidationContextTrust = (input, context) => {
|
|
3821
|
-
return models_0_1.VirtualGatewayListenerTlsValidationContextTrust.visit(input, {
|
|
3822
|
-
file: (value) => ({ file: se_VirtualGatewayTlsValidationContextFileTrust(value, context) }),
|
|
3823
|
-
sds: (value) => ({ sds: se_VirtualGatewayTlsValidationContextSdsTrust(value, context) }),
|
|
3824
|
-
_: (name, value) => ({ name: value }),
|
|
3825
|
-
});
|
|
3826
|
-
};
|
|
3827
|
-
const se_VirtualGatewayLogging = (input, context) => {
|
|
3828
|
-
return {
|
|
3829
|
-
...(input.accessLog != null && { accessLog: se_VirtualGatewayAccessLog(input.accessLog, context) }),
|
|
3830
|
-
};
|
|
3831
|
-
};
|
|
3832
|
-
const se_VirtualGatewayPortMapping = (input, context) => {
|
|
3833
|
-
return {
|
|
3834
|
-
...(input.port != null && { port: input.port }),
|
|
3835
|
-
...(input.protocol != null && { protocol: input.protocol }),
|
|
3836
|
-
};
|
|
3837
|
-
};
|
|
3838
|
-
const se_VirtualGatewaySpec = (input, context) => {
|
|
3839
|
-
return {
|
|
3840
|
-
...(input.backendDefaults != null && {
|
|
3841
|
-
backendDefaults: se_VirtualGatewayBackendDefaults(input.backendDefaults, context),
|
|
3842
|
-
}),
|
|
3843
|
-
...(input.listeners != null && { listeners: se_VirtualGatewayListeners(input.listeners, context) }),
|
|
3844
|
-
...(input.logging != null && { logging: se_VirtualGatewayLogging(input.logging, context) }),
|
|
3845
|
-
};
|
|
3846
|
-
};
|
|
3847
|
-
const se_VirtualGatewayTlsValidationContext = (input, context) => {
|
|
3848
|
-
return {
|
|
3849
|
-
...(input.subjectAlternativeNames != null && {
|
|
3850
|
-
subjectAlternativeNames: se_SubjectAlternativeNames(input.subjectAlternativeNames, context),
|
|
3851
|
-
}),
|
|
3852
|
-
...(input.trust != null && { trust: se_VirtualGatewayTlsValidationContextTrust(input.trust, context) }),
|
|
3853
|
-
};
|
|
3854
|
-
};
|
|
3855
|
-
const se_VirtualGatewayTlsValidationContextAcmTrust = (input, context) => {
|
|
3856
|
-
return {
|
|
3857
|
-
...(input.certificateAuthorityArns != null && {
|
|
3858
|
-
certificateAuthorityArns: se_VirtualGatewayCertificateAuthorityArns(input.certificateAuthorityArns, context),
|
|
3859
|
-
}),
|
|
3860
|
-
};
|
|
3861
|
-
};
|
|
3862
|
-
const se_VirtualGatewayTlsValidationContextFileTrust = (input, context) => {
|
|
3863
|
-
return {
|
|
3864
|
-
...(input.certificateChain != null && { certificateChain: input.certificateChain }),
|
|
3865
|
-
};
|
|
3866
|
-
};
|
|
3867
|
-
const se_VirtualGatewayTlsValidationContextSdsTrust = (input, context) => {
|
|
3868
|
-
return {
|
|
3869
|
-
...(input.secretName != null && { secretName: input.secretName }),
|
|
3870
|
-
};
|
|
3871
|
-
};
|
|
3872
|
-
const se_VirtualGatewayTlsValidationContextTrust = (input, context) => {
|
|
3873
|
-
return models_0_1.VirtualGatewayTlsValidationContextTrust.visit(input, {
|
|
3874
|
-
acm: (value) => ({ acm: se_VirtualGatewayTlsValidationContextAcmTrust(value, context) }),
|
|
3875
|
-
file: (value) => ({ file: se_VirtualGatewayTlsValidationContextFileTrust(value, context) }),
|
|
3876
|
-
sds: (value) => ({ sds: se_VirtualGatewayTlsValidationContextSdsTrust(value, context) }),
|
|
3877
|
-
_: (name, value) => ({ name: value }),
|
|
3878
|
-
});
|
|
3879
|
-
};
|
|
3880
|
-
const se_VirtualNodeConnectionPool = (input, context) => {
|
|
3881
|
-
return models_0_1.VirtualNodeConnectionPool.visit(input, {
|
|
3882
|
-
grpc: (value) => ({ grpc: se_VirtualNodeGrpcConnectionPool(value, context) }),
|
|
3883
|
-
http: (value) => ({ http: se_VirtualNodeHttpConnectionPool(value, context) }),
|
|
3884
|
-
http2: (value) => ({ http2: se_VirtualNodeHttp2ConnectionPool(value, context) }),
|
|
3885
|
-
tcp: (value) => ({ tcp: se_VirtualNodeTcpConnectionPool(value, context) }),
|
|
3886
|
-
_: (name, value) => ({ name: value }),
|
|
3887
|
-
});
|
|
3888
|
-
};
|
|
3889
|
-
const se_VirtualNodeGrpcConnectionPool = (input, context) => {
|
|
3890
|
-
return {
|
|
3891
|
-
...(input.maxRequests != null && { maxRequests: input.maxRequests }),
|
|
3892
|
-
};
|
|
3893
|
-
};
|
|
3894
|
-
const se_VirtualNodeHttp2ConnectionPool = (input, context) => {
|
|
3895
|
-
return {
|
|
3896
|
-
...(input.maxRequests != null && { maxRequests: input.maxRequests }),
|
|
3897
|
-
};
|
|
3898
|
-
};
|
|
3899
|
-
const se_VirtualNodeHttpConnectionPool = (input, context) => {
|
|
3900
|
-
return {
|
|
3901
|
-
...(input.maxConnections != null && { maxConnections: input.maxConnections }),
|
|
3902
|
-
...(input.maxPendingRequests != null && { maxPendingRequests: input.maxPendingRequests }),
|
|
3903
|
-
};
|
|
3904
|
-
};
|
|
3905
|
-
const se_VirtualNodeServiceProvider = (input, context) => {
|
|
3906
|
-
return {
|
|
3907
|
-
...(input.virtualNodeName != null && { virtualNodeName: input.virtualNodeName }),
|
|
3908
|
-
};
|
|
3909
|
-
};
|
|
3910
|
-
const se_VirtualNodeSpec = (input, context) => {
|
|
3911
|
-
return {
|
|
3912
|
-
...(input.backendDefaults != null && { backendDefaults: se_BackendDefaults(input.backendDefaults, context) }),
|
|
3913
|
-
...(input.backends != null && { backends: se_Backends(input.backends, context) }),
|
|
3914
|
-
...(input.listeners != null && { listeners: se_Listeners(input.listeners, context) }),
|
|
3915
|
-
...(input.logging != null && { logging: se_Logging(input.logging, context) }),
|
|
3916
|
-
...(input.serviceDiscovery != null && { serviceDiscovery: se_ServiceDiscovery(input.serviceDiscovery, context) }),
|
|
3917
|
-
};
|
|
3918
|
-
};
|
|
3919
|
-
const se_VirtualNodeTcpConnectionPool = (input, context) => {
|
|
3920
|
-
return {
|
|
3921
|
-
...(input.maxConnections != null && { maxConnections: input.maxConnections }),
|
|
3922
|
-
};
|
|
3923
|
-
};
|
|
3924
|
-
const se_VirtualRouterListener = (input, context) => {
|
|
3925
|
-
return {
|
|
3926
|
-
...(input.portMapping != null && { portMapping: se_PortMapping(input.portMapping, context) }),
|
|
3927
|
-
};
|
|
3928
|
-
};
|
|
3929
|
-
const se_VirtualRouterListeners = (input, context) => {
|
|
3930
|
-
return input
|
|
3931
|
-
.filter((e) => e != null)
|
|
3932
|
-
.map((entry) => {
|
|
3933
|
-
return se_VirtualRouterListener(entry, context);
|
|
3934
|
-
});
|
|
3935
|
-
};
|
|
3936
|
-
const se_VirtualRouterServiceProvider = (input, context) => {
|
|
3937
|
-
return {
|
|
3938
|
-
...(input.virtualRouterName != null && { virtualRouterName: input.virtualRouterName }),
|
|
3939
|
-
};
|
|
3940
|
-
};
|
|
3941
|
-
const se_VirtualRouterSpec = (input, context) => {
|
|
3942
|
-
return {
|
|
3943
|
-
...(input.listeners != null && { listeners: se_VirtualRouterListeners(input.listeners, context) }),
|
|
3944
|
-
};
|
|
3945
|
-
};
|
|
3946
|
-
const se_VirtualServiceBackend = (input, context) => {
|
|
3947
|
-
return {
|
|
3948
|
-
...(input.clientPolicy != null && { clientPolicy: se_ClientPolicy(input.clientPolicy, context) }),
|
|
3949
|
-
...(input.virtualServiceName != null && { virtualServiceName: input.virtualServiceName }),
|
|
3950
|
-
};
|
|
3951
|
-
};
|
|
3952
|
-
const se_VirtualServiceProvider = (input, context) => {
|
|
3953
|
-
return models_0_1.VirtualServiceProvider.visit(input, {
|
|
3954
|
-
virtualNode: (value) => ({ virtualNode: se_VirtualNodeServiceProvider(value, context) }),
|
|
3955
|
-
virtualRouter: (value) => ({ virtualRouter: se_VirtualRouterServiceProvider(value, context) }),
|
|
3956
|
-
_: (name, value) => ({ name: value }),
|
|
3957
|
-
});
|
|
3958
|
-
};
|
|
3959
|
-
const se_VirtualServiceSpec = (input, context) => {
|
|
3960
|
-
return {
|
|
3961
|
-
...(input.provider != null && { provider: se_VirtualServiceProvider(input.provider, context) }),
|
|
3962
|
-
};
|
|
3963
|
-
};
|
|
3964
|
-
const se_WeightedTarget = (input, context) => {
|
|
3965
|
-
return {
|
|
3966
|
-
...(input.port != null && { port: input.port }),
|
|
3967
|
-
...(input.virtualNode != null && { virtualNode: input.virtualNode }),
|
|
3968
|
-
...(input.weight != null && { weight: input.weight }),
|
|
3969
|
-
};
|
|
3970
|
-
};
|
|
3971
|
-
const se_WeightedTargets = (input, context) => {
|
|
3972
|
-
return input
|
|
3973
|
-
.filter((e) => e != null)
|
|
3974
|
-
.map((entry) => {
|
|
3975
|
-
return se_WeightedTarget(entry, context);
|
|
3976
|
-
});
|
|
3977
|
-
};
|
|
3978
|
-
const de_AccessLog = (output, context) => {
|
|
3979
|
-
if (output.file != null) {
|
|
3980
|
-
return {
|
|
3981
|
-
file: de_FileAccessLog(output.file, context),
|
|
3982
|
-
};
|
|
3983
|
-
}
|
|
3984
|
-
return { $unknown: Object.entries(output)[0] };
|
|
3985
|
-
};
|
|
3986
|
-
const de_AwsCloudMapInstanceAttribute = (output, context) => {
|
|
3987
|
-
return {
|
|
3988
|
-
key: (0, smithy_client_1.expectString)(output.key),
|
|
3989
|
-
value: (0, smithy_client_1.expectString)(output.value),
|
|
3990
|
-
};
|
|
3991
|
-
};
|
|
3992
|
-
const de_AwsCloudMapInstanceAttributes = (output, context) => {
|
|
3993
|
-
const retVal = (output || [])
|
|
3994
|
-
.filter((e) => e != null)
|
|
3995
|
-
.map((entry) => {
|
|
3996
|
-
if (entry === null) {
|
|
3997
|
-
return null;
|
|
3998
|
-
}
|
|
3999
|
-
return de_AwsCloudMapInstanceAttribute(entry, context);
|
|
4000
|
-
});
|
|
4001
|
-
return retVal;
|
|
4002
|
-
};
|
|
4003
|
-
const de_AwsCloudMapServiceDiscovery = (output, context) => {
|
|
4004
|
-
return {
|
|
4005
|
-
attributes: output.attributes != null ? de_AwsCloudMapInstanceAttributes(output.attributes, context) : undefined,
|
|
4006
|
-
ipPreference: (0, smithy_client_1.expectString)(output.ipPreference),
|
|
4007
|
-
namespaceName: (0, smithy_client_1.expectString)(output.namespaceName),
|
|
4008
|
-
serviceName: (0, smithy_client_1.expectString)(output.serviceName),
|
|
4009
|
-
};
|
|
4010
|
-
};
|
|
4011
|
-
const de_Backend = (output, context) => {
|
|
4012
|
-
if (output.virtualService != null) {
|
|
4013
|
-
return {
|
|
4014
|
-
virtualService: de_VirtualServiceBackend(output.virtualService, context),
|
|
4015
|
-
};
|
|
4016
|
-
}
|
|
4017
|
-
return { $unknown: Object.entries(output)[0] };
|
|
4018
|
-
};
|
|
4019
|
-
const de_BackendDefaults = (output, context) => {
|
|
4020
|
-
return {
|
|
4021
|
-
clientPolicy: output.clientPolicy != null ? de_ClientPolicy(output.clientPolicy, context) : undefined,
|
|
4022
|
-
};
|
|
4023
|
-
};
|
|
4024
|
-
const de_Backends = (output, context) => {
|
|
4025
|
-
const retVal = (output || [])
|
|
4026
|
-
.filter((e) => e != null)
|
|
4027
|
-
.map((entry) => {
|
|
4028
|
-
if (entry === null) {
|
|
4029
|
-
return null;
|
|
4030
|
-
}
|
|
4031
|
-
return de_Backend((0, smithy_client_1.expectUnion)(entry), context);
|
|
4032
|
-
});
|
|
4033
|
-
return retVal;
|
|
4034
|
-
};
|
|
4035
|
-
const de_CertificateAuthorityArns = (output, context) => {
|
|
4036
|
-
const retVal = (output || [])
|
|
4037
|
-
.filter((e) => e != null)
|
|
4038
|
-
.map((entry) => {
|
|
4039
|
-
if (entry === null) {
|
|
4040
|
-
return null;
|
|
4041
|
-
}
|
|
4042
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
4043
|
-
});
|
|
4044
|
-
return retVal;
|
|
4045
|
-
};
|
|
4046
|
-
const de_ClientPolicy = (output, context) => {
|
|
4047
|
-
return {
|
|
4048
|
-
tls: output.tls != null ? de_ClientPolicyTls(output.tls, context) : undefined,
|
|
4049
|
-
};
|
|
4050
|
-
};
|
|
4051
|
-
const de_ClientPolicyTls = (output, context) => {
|
|
4052
|
-
return {
|
|
4053
|
-
certificate: output.certificate != null ? de_ClientTlsCertificate((0, smithy_client_1.expectUnion)(output.certificate), context) : undefined,
|
|
4054
|
-
enforce: (0, smithy_client_1.expectBoolean)(output.enforce),
|
|
4055
|
-
ports: output.ports != null ? de_PortSet(output.ports, context) : undefined,
|
|
4056
|
-
validation: output.validation != null ? de_TlsValidationContext(output.validation, context) : undefined,
|
|
4057
|
-
};
|
|
4058
|
-
};
|
|
4059
|
-
const de_ClientTlsCertificate = (output, context) => {
|
|
4060
|
-
if (output.file != null) {
|
|
4061
|
-
return {
|
|
4062
|
-
file: de_ListenerTlsFileCertificate(output.file, context),
|
|
4063
|
-
};
|
|
4064
|
-
}
|
|
4065
|
-
if (output.sds != null) {
|
|
4066
|
-
return {
|
|
4067
|
-
sds: de_ListenerTlsSdsCertificate(output.sds, context),
|
|
4068
|
-
};
|
|
4069
|
-
}
|
|
4070
|
-
return { $unknown: Object.entries(output)[0] };
|
|
4071
|
-
};
|
|
4072
|
-
const de_DnsServiceDiscovery = (output, context) => {
|
|
4073
|
-
return {
|
|
4074
|
-
hostname: (0, smithy_client_1.expectString)(output.hostname),
|
|
4075
|
-
ipPreference: (0, smithy_client_1.expectString)(output.ipPreference),
|
|
4076
|
-
responseType: (0, smithy_client_1.expectString)(output.responseType),
|
|
4077
|
-
};
|
|
4078
|
-
};
|
|
4079
|
-
const de_Duration = (output, context) => {
|
|
4080
|
-
return {
|
|
4081
|
-
unit: (0, smithy_client_1.expectString)(output.unit),
|
|
4082
|
-
value: (0, smithy_client_1.expectLong)(output.value),
|
|
4083
|
-
};
|
|
4084
|
-
};
|
|
4085
|
-
const de_EgressFilter = (output, context) => {
|
|
4086
|
-
return {
|
|
4087
|
-
type: (0, smithy_client_1.expectString)(output.type),
|
|
4088
|
-
};
|
|
4089
|
-
};
|
|
4090
|
-
const de_FileAccessLog = (output, context) => {
|
|
4091
|
-
return {
|
|
4092
|
-
format: output.format != null ? de_LoggingFormat((0, smithy_client_1.expectUnion)(output.format), context) : undefined,
|
|
4093
|
-
path: (0, smithy_client_1.expectString)(output.path),
|
|
4094
|
-
};
|
|
4095
|
-
};
|
|
4096
|
-
const de_GatewayRouteData = (output, context) => {
|
|
4097
|
-
return {
|
|
4098
|
-
gatewayRouteName: (0, smithy_client_1.expectString)(output.gatewayRouteName),
|
|
4099
|
-
meshName: (0, smithy_client_1.expectString)(output.meshName),
|
|
4100
|
-
metadata: output.metadata != null ? de_ResourceMetadata(output.metadata, context) : undefined,
|
|
4101
|
-
spec: output.spec != null ? de_GatewayRouteSpec(output.spec, context) : undefined,
|
|
4102
|
-
status: output.status != null ? de_GatewayRouteStatus(output.status, context) : undefined,
|
|
4103
|
-
virtualGatewayName: (0, smithy_client_1.expectString)(output.virtualGatewayName),
|
|
4104
|
-
};
|
|
4105
|
-
};
|
|
4106
|
-
const de_GatewayRouteHostnameMatch = (output, context) => {
|
|
4107
|
-
return {
|
|
4108
|
-
exact: (0, smithy_client_1.expectString)(output.exact),
|
|
4109
|
-
suffix: (0, smithy_client_1.expectString)(output.suffix),
|
|
4110
|
-
};
|
|
4111
|
-
};
|
|
4112
|
-
const de_GatewayRouteHostnameRewrite = (output, context) => {
|
|
4113
|
-
return {
|
|
4114
|
-
defaultTargetHostname: (0, smithy_client_1.expectString)(output.defaultTargetHostname),
|
|
4115
|
-
};
|
|
4116
|
-
};
|
|
4117
|
-
const de_GatewayRouteList = (output, context) => {
|
|
4118
|
-
const retVal = (output || [])
|
|
4119
|
-
.filter((e) => e != null)
|
|
4120
|
-
.map((entry) => {
|
|
4121
|
-
if (entry === null) {
|
|
4122
|
-
return null;
|
|
4123
|
-
}
|
|
4124
|
-
return de_GatewayRouteRef(entry, context);
|
|
4125
|
-
});
|
|
4126
|
-
return retVal;
|
|
4127
|
-
};
|
|
4128
|
-
const de_GatewayRouteRef = (output, context) => {
|
|
4129
|
-
return {
|
|
4130
|
-
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
4131
|
-
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
4132
|
-
gatewayRouteName: (0, smithy_client_1.expectString)(output.gatewayRouteName),
|
|
4133
|
-
lastUpdatedAt: output.lastUpdatedAt != null
|
|
4134
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt)))
|
|
4135
|
-
: undefined,
|
|
4136
|
-
meshName: (0, smithy_client_1.expectString)(output.meshName),
|
|
4137
|
-
meshOwner: (0, smithy_client_1.expectString)(output.meshOwner),
|
|
4138
|
-
resourceOwner: (0, smithy_client_1.expectString)(output.resourceOwner),
|
|
4139
|
-
version: (0, smithy_client_1.expectLong)(output.version),
|
|
4140
|
-
virtualGatewayName: (0, smithy_client_1.expectString)(output.virtualGatewayName),
|
|
4141
|
-
};
|
|
4142
|
-
};
|
|
4143
|
-
const de_GatewayRouteSpec = (output, context) => {
|
|
4144
|
-
return {
|
|
4145
|
-
grpcRoute: output.grpcRoute != null ? de_GrpcGatewayRoute(output.grpcRoute, context) : undefined,
|
|
4146
|
-
http2Route: output.http2Route != null ? de_HttpGatewayRoute(output.http2Route, context) : undefined,
|
|
4147
|
-
httpRoute: output.httpRoute != null ? de_HttpGatewayRoute(output.httpRoute, context) : undefined,
|
|
4148
|
-
priority: (0, smithy_client_1.expectInt32)(output.priority),
|
|
4149
|
-
};
|
|
4150
|
-
};
|
|
4151
|
-
const de_GatewayRouteStatus = (output, context) => {
|
|
4152
|
-
return {
|
|
4153
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
4154
|
-
};
|
|
4155
|
-
};
|
|
4156
|
-
const de_GatewayRouteTarget = (output, context) => {
|
|
4157
|
-
return {
|
|
4158
|
-
port: (0, smithy_client_1.expectInt32)(output.port),
|
|
4159
|
-
virtualService: output.virtualService != null ? de_GatewayRouteVirtualService(output.virtualService, context) : undefined,
|
|
4160
|
-
};
|
|
4161
|
-
};
|
|
4162
|
-
const de_GatewayRouteVirtualService = (output, context) => {
|
|
4163
|
-
return {
|
|
4164
|
-
virtualServiceName: (0, smithy_client_1.expectString)(output.virtualServiceName),
|
|
4165
|
-
};
|
|
4166
|
-
};
|
|
4167
|
-
const de_GrpcGatewayRoute = (output, context) => {
|
|
4168
|
-
return {
|
|
4169
|
-
action: output.action != null ? de_GrpcGatewayRouteAction(output.action, context) : undefined,
|
|
4170
|
-
match: output.match != null ? de_GrpcGatewayRouteMatch(output.match, context) : undefined,
|
|
4171
|
-
};
|
|
4172
|
-
};
|
|
4173
|
-
const de_GrpcGatewayRouteAction = (output, context) => {
|
|
4174
|
-
return {
|
|
4175
|
-
rewrite: output.rewrite != null ? de_GrpcGatewayRouteRewrite(output.rewrite, context) : undefined,
|
|
4176
|
-
target: output.target != null ? de_GatewayRouteTarget(output.target, context) : undefined,
|
|
4177
|
-
};
|
|
4178
|
-
};
|
|
4179
|
-
const de_GrpcGatewayRouteMatch = (output, context) => {
|
|
4180
|
-
return {
|
|
4181
|
-
hostname: output.hostname != null ? de_GatewayRouteHostnameMatch(output.hostname, context) : undefined,
|
|
4182
|
-
metadata: output.metadata != null ? de_GrpcGatewayRouteMetadataList(output.metadata, context) : undefined,
|
|
4183
|
-
port: (0, smithy_client_1.expectInt32)(output.port),
|
|
4184
|
-
serviceName: (0, smithy_client_1.expectString)(output.serviceName),
|
|
4185
|
-
};
|
|
4186
|
-
};
|
|
4187
|
-
const de_GrpcGatewayRouteMetadata = (output, context) => {
|
|
4188
|
-
return {
|
|
4189
|
-
invert: (0, smithy_client_1.expectBoolean)(output.invert),
|
|
4190
|
-
match: output.match != null ? de_GrpcMetadataMatchMethod((0, smithy_client_1.expectUnion)(output.match), context) : undefined,
|
|
4191
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
4192
|
-
};
|
|
4193
|
-
};
|
|
4194
|
-
const de_GrpcGatewayRouteMetadataList = (output, context) => {
|
|
4195
|
-
const retVal = (output || [])
|
|
4196
|
-
.filter((e) => e != null)
|
|
4197
|
-
.map((entry) => {
|
|
4198
|
-
if (entry === null) {
|
|
4199
|
-
return null;
|
|
4200
|
-
}
|
|
4201
|
-
return de_GrpcGatewayRouteMetadata(entry, context);
|
|
4202
|
-
});
|
|
4203
|
-
return retVal;
|
|
4204
|
-
};
|
|
4205
|
-
const de_GrpcGatewayRouteRewrite = (output, context) => {
|
|
4206
|
-
return {
|
|
4207
|
-
hostname: output.hostname != null ? de_GatewayRouteHostnameRewrite(output.hostname, context) : undefined,
|
|
4208
|
-
};
|
|
4209
|
-
};
|
|
4210
|
-
const de_GrpcMetadataMatchMethod = (output, context) => {
|
|
4211
|
-
if ((0, smithy_client_1.expectString)(output.exact) !== undefined) {
|
|
4212
|
-
return { exact: (0, smithy_client_1.expectString)(output.exact) };
|
|
4213
|
-
}
|
|
4214
|
-
if ((0, smithy_client_1.expectString)(output.prefix) !== undefined) {
|
|
4215
|
-
return { prefix: (0, smithy_client_1.expectString)(output.prefix) };
|
|
4216
|
-
}
|
|
4217
|
-
if (output.range != null) {
|
|
4218
|
-
return {
|
|
4219
|
-
range: de_MatchRange(output.range, context),
|
|
4220
|
-
};
|
|
4221
|
-
}
|
|
4222
|
-
if ((0, smithy_client_1.expectString)(output.regex) !== undefined) {
|
|
4223
|
-
return { regex: (0, smithy_client_1.expectString)(output.regex) };
|
|
4224
|
-
}
|
|
4225
|
-
if ((0, smithy_client_1.expectString)(output.suffix) !== undefined) {
|
|
4226
|
-
return { suffix: (0, smithy_client_1.expectString)(output.suffix) };
|
|
4227
|
-
}
|
|
4228
|
-
return { $unknown: Object.entries(output)[0] };
|
|
4229
|
-
};
|
|
4230
|
-
const de_GrpcRetryPolicy = (output, context) => {
|
|
4231
|
-
return {
|
|
4232
|
-
grpcRetryEvents: output.grpcRetryEvents != null ? de_GrpcRetryPolicyEvents(output.grpcRetryEvents, context) : undefined,
|
|
4233
|
-
httpRetryEvents: output.httpRetryEvents != null ? de_HttpRetryPolicyEvents(output.httpRetryEvents, context) : undefined,
|
|
4234
|
-
maxRetries: (0, smithy_client_1.expectLong)(output.maxRetries),
|
|
4235
|
-
perRetryTimeout: output.perRetryTimeout != null ? de_Duration(output.perRetryTimeout, context) : undefined,
|
|
4236
|
-
tcpRetryEvents: output.tcpRetryEvents != null ? de_TcpRetryPolicyEvents(output.tcpRetryEvents, context) : undefined,
|
|
4237
|
-
};
|
|
4238
|
-
};
|
|
4239
|
-
const de_GrpcRetryPolicyEvents = (output, context) => {
|
|
4240
|
-
const retVal = (output || [])
|
|
4241
|
-
.filter((e) => e != null)
|
|
4242
|
-
.map((entry) => {
|
|
4243
|
-
if (entry === null) {
|
|
4244
|
-
return null;
|
|
4245
|
-
}
|
|
4246
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
4247
|
-
});
|
|
4248
|
-
return retVal;
|
|
4249
|
-
};
|
|
4250
|
-
const de_GrpcRoute = (output, context) => {
|
|
4251
|
-
return {
|
|
4252
|
-
action: output.action != null ? de_GrpcRouteAction(output.action, context) : undefined,
|
|
4253
|
-
match: output.match != null ? de_GrpcRouteMatch(output.match, context) : undefined,
|
|
4254
|
-
retryPolicy: output.retryPolicy != null ? de_GrpcRetryPolicy(output.retryPolicy, context) : undefined,
|
|
4255
|
-
timeout: output.timeout != null ? de_GrpcTimeout(output.timeout, context) : undefined,
|
|
4256
|
-
};
|
|
4257
|
-
};
|
|
4258
|
-
const de_GrpcRouteAction = (output, context) => {
|
|
4259
|
-
return {
|
|
4260
|
-
weightedTargets: output.weightedTargets != null ? de_WeightedTargets(output.weightedTargets, context) : undefined,
|
|
4261
|
-
};
|
|
4262
|
-
};
|
|
4263
|
-
const de_GrpcRouteMatch = (output, context) => {
|
|
4264
|
-
return {
|
|
4265
|
-
metadata: output.metadata != null ? de_GrpcRouteMetadataList(output.metadata, context) : undefined,
|
|
4266
|
-
methodName: (0, smithy_client_1.expectString)(output.methodName),
|
|
4267
|
-
port: (0, smithy_client_1.expectInt32)(output.port),
|
|
4268
|
-
serviceName: (0, smithy_client_1.expectString)(output.serviceName),
|
|
4269
|
-
};
|
|
4270
|
-
};
|
|
4271
|
-
const de_GrpcRouteMetadata = (output, context) => {
|
|
4272
|
-
return {
|
|
4273
|
-
invert: (0, smithy_client_1.expectBoolean)(output.invert),
|
|
4274
|
-
match: output.match != null ? de_GrpcRouteMetadataMatchMethod((0, smithy_client_1.expectUnion)(output.match), context) : undefined,
|
|
4275
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
4276
|
-
};
|
|
4277
|
-
};
|
|
4278
|
-
const de_GrpcRouteMetadataList = (output, context) => {
|
|
4279
|
-
const retVal = (output || [])
|
|
4280
|
-
.filter((e) => e != null)
|
|
4281
|
-
.map((entry) => {
|
|
4282
|
-
if (entry === null) {
|
|
4283
|
-
return null;
|
|
4284
|
-
}
|
|
4285
|
-
return de_GrpcRouteMetadata(entry, context);
|
|
4286
|
-
});
|
|
4287
|
-
return retVal;
|
|
4288
|
-
};
|
|
4289
|
-
const de_GrpcRouteMetadataMatchMethod = (output, context) => {
|
|
4290
|
-
if ((0, smithy_client_1.expectString)(output.exact) !== undefined) {
|
|
4291
|
-
return { exact: (0, smithy_client_1.expectString)(output.exact) };
|
|
4292
|
-
}
|
|
4293
|
-
if ((0, smithy_client_1.expectString)(output.prefix) !== undefined) {
|
|
4294
|
-
return { prefix: (0, smithy_client_1.expectString)(output.prefix) };
|
|
4295
|
-
}
|
|
4296
|
-
if (output.range != null) {
|
|
4297
|
-
return {
|
|
4298
|
-
range: de_MatchRange(output.range, context),
|
|
4299
|
-
};
|
|
4300
|
-
}
|
|
4301
|
-
if ((0, smithy_client_1.expectString)(output.regex) !== undefined) {
|
|
4302
|
-
return { regex: (0, smithy_client_1.expectString)(output.regex) };
|
|
4303
|
-
}
|
|
4304
|
-
if ((0, smithy_client_1.expectString)(output.suffix) !== undefined) {
|
|
4305
|
-
return { suffix: (0, smithy_client_1.expectString)(output.suffix) };
|
|
4306
|
-
}
|
|
4307
|
-
return { $unknown: Object.entries(output)[0] };
|
|
4308
|
-
};
|
|
4309
|
-
const de_GrpcTimeout = (output, context) => {
|
|
4310
|
-
return {
|
|
4311
|
-
idle: output.idle != null ? de_Duration(output.idle, context) : undefined,
|
|
4312
|
-
perRequest: output.perRequest != null ? de_Duration(output.perRequest, context) : undefined,
|
|
4313
|
-
};
|
|
4314
|
-
};
|
|
4315
|
-
const de_HeaderMatchMethod = (output, context) => {
|
|
4316
|
-
if ((0, smithy_client_1.expectString)(output.exact) !== undefined) {
|
|
4317
|
-
return { exact: (0, smithy_client_1.expectString)(output.exact) };
|
|
4318
|
-
}
|
|
4319
|
-
if ((0, smithy_client_1.expectString)(output.prefix) !== undefined) {
|
|
4320
|
-
return { prefix: (0, smithy_client_1.expectString)(output.prefix) };
|
|
4321
|
-
}
|
|
4322
|
-
if (output.range != null) {
|
|
4323
|
-
return {
|
|
4324
|
-
range: de_MatchRange(output.range, context),
|
|
4325
|
-
};
|
|
4326
|
-
}
|
|
4327
|
-
if ((0, smithy_client_1.expectString)(output.regex) !== undefined) {
|
|
4328
|
-
return { regex: (0, smithy_client_1.expectString)(output.regex) };
|
|
4329
|
-
}
|
|
4330
|
-
if ((0, smithy_client_1.expectString)(output.suffix) !== undefined) {
|
|
4331
|
-
return { suffix: (0, smithy_client_1.expectString)(output.suffix) };
|
|
4332
|
-
}
|
|
4333
|
-
return { $unknown: Object.entries(output)[0] };
|
|
4334
|
-
};
|
|
4335
|
-
const de_HealthCheckPolicy = (output, context) => {
|
|
4336
|
-
return {
|
|
4337
|
-
healthyThreshold: (0, smithy_client_1.expectInt32)(output.healthyThreshold),
|
|
4338
|
-
intervalMillis: (0, smithy_client_1.expectLong)(output.intervalMillis),
|
|
4339
|
-
path: (0, smithy_client_1.expectString)(output.path),
|
|
4340
|
-
port: (0, smithy_client_1.expectInt32)(output.port),
|
|
4341
|
-
protocol: (0, smithy_client_1.expectString)(output.protocol),
|
|
4342
|
-
timeoutMillis: (0, smithy_client_1.expectLong)(output.timeoutMillis),
|
|
4343
|
-
unhealthyThreshold: (0, smithy_client_1.expectInt32)(output.unhealthyThreshold),
|
|
4344
|
-
};
|
|
4345
|
-
};
|
|
4346
|
-
const de_HttpGatewayRoute = (output, context) => {
|
|
4347
|
-
return {
|
|
4348
|
-
action: output.action != null ? de_HttpGatewayRouteAction(output.action, context) : undefined,
|
|
4349
|
-
match: output.match != null ? de_HttpGatewayRouteMatch(output.match, context) : undefined,
|
|
4350
|
-
};
|
|
4351
|
-
};
|
|
4352
|
-
const de_HttpGatewayRouteAction = (output, context) => {
|
|
4353
|
-
return {
|
|
4354
|
-
rewrite: output.rewrite != null ? de_HttpGatewayRouteRewrite(output.rewrite, context) : undefined,
|
|
4355
|
-
target: output.target != null ? de_GatewayRouteTarget(output.target, context) : undefined,
|
|
4356
|
-
};
|
|
4357
|
-
};
|
|
4358
|
-
const de_HttpGatewayRouteHeader = (output, context) => {
|
|
4359
|
-
return {
|
|
4360
|
-
invert: (0, smithy_client_1.expectBoolean)(output.invert),
|
|
4361
|
-
match: output.match != null ? de_HeaderMatchMethod((0, smithy_client_1.expectUnion)(output.match), context) : undefined,
|
|
4362
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
4363
|
-
};
|
|
4364
|
-
};
|
|
4365
|
-
const de_HttpGatewayRouteHeaders = (output, context) => {
|
|
4366
|
-
const retVal = (output || [])
|
|
4367
|
-
.filter((e) => e != null)
|
|
4368
|
-
.map((entry) => {
|
|
4369
|
-
if (entry === null) {
|
|
4370
|
-
return null;
|
|
4371
|
-
}
|
|
4372
|
-
return de_HttpGatewayRouteHeader(entry, context);
|
|
4373
|
-
});
|
|
4374
|
-
return retVal;
|
|
4375
|
-
};
|
|
4376
|
-
const de_HttpGatewayRouteMatch = (output, context) => {
|
|
4377
|
-
return {
|
|
4378
|
-
headers: output.headers != null ? de_HttpGatewayRouteHeaders(output.headers, context) : undefined,
|
|
4379
|
-
hostname: output.hostname != null ? de_GatewayRouteHostnameMatch(output.hostname, context) : undefined,
|
|
4380
|
-
method: (0, smithy_client_1.expectString)(output.method),
|
|
4381
|
-
path: output.path != null ? de_HttpPathMatch(output.path, context) : undefined,
|
|
4382
|
-
port: (0, smithy_client_1.expectInt32)(output.port),
|
|
4383
|
-
prefix: (0, smithy_client_1.expectString)(output.prefix),
|
|
4384
|
-
queryParameters: output.queryParameters != null ? de_HttpQueryParameters(output.queryParameters, context) : undefined,
|
|
4385
|
-
};
|
|
4386
|
-
};
|
|
4387
|
-
const de_HttpGatewayRoutePathRewrite = (output, context) => {
|
|
4388
|
-
return {
|
|
4389
|
-
exact: (0, smithy_client_1.expectString)(output.exact),
|
|
4390
|
-
};
|
|
4391
|
-
};
|
|
4392
|
-
const de_HttpGatewayRoutePrefixRewrite = (output, context) => {
|
|
4393
|
-
return {
|
|
4394
|
-
defaultPrefix: (0, smithy_client_1.expectString)(output.defaultPrefix),
|
|
4395
|
-
value: (0, smithy_client_1.expectString)(output.value),
|
|
4396
|
-
};
|
|
4397
|
-
};
|
|
4398
|
-
const de_HttpGatewayRouteRewrite = (output, context) => {
|
|
4399
|
-
return {
|
|
4400
|
-
hostname: output.hostname != null ? de_GatewayRouteHostnameRewrite(output.hostname, context) : undefined,
|
|
4401
|
-
path: output.path != null ? de_HttpGatewayRoutePathRewrite(output.path, context) : undefined,
|
|
4402
|
-
prefix: output.prefix != null ? de_HttpGatewayRoutePrefixRewrite(output.prefix, context) : undefined,
|
|
4403
|
-
};
|
|
4404
|
-
};
|
|
4405
|
-
const de_HttpPathMatch = (output, context) => {
|
|
4406
|
-
return {
|
|
4407
|
-
exact: (0, smithy_client_1.expectString)(output.exact),
|
|
4408
|
-
regex: (0, smithy_client_1.expectString)(output.regex),
|
|
4409
|
-
};
|
|
4410
|
-
};
|
|
4411
|
-
const de_HttpQueryParameter = (output, context) => {
|
|
4412
|
-
return {
|
|
4413
|
-
match: output.match != null ? de_QueryParameterMatch(output.match, context) : undefined,
|
|
4414
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
4415
|
-
};
|
|
4416
|
-
};
|
|
4417
|
-
const de_HttpQueryParameters = (output, context) => {
|
|
4418
|
-
const retVal = (output || [])
|
|
4419
|
-
.filter((e) => e != null)
|
|
4420
|
-
.map((entry) => {
|
|
4421
|
-
if (entry === null) {
|
|
4422
|
-
return null;
|
|
4423
|
-
}
|
|
4424
|
-
return de_HttpQueryParameter(entry, context);
|
|
4425
|
-
});
|
|
4426
|
-
return retVal;
|
|
4427
|
-
};
|
|
4428
|
-
const de_HttpRetryPolicy = (output, context) => {
|
|
4429
|
-
return {
|
|
4430
|
-
httpRetryEvents: output.httpRetryEvents != null ? de_HttpRetryPolicyEvents(output.httpRetryEvents, context) : undefined,
|
|
4431
|
-
maxRetries: (0, smithy_client_1.expectLong)(output.maxRetries),
|
|
4432
|
-
perRetryTimeout: output.perRetryTimeout != null ? de_Duration(output.perRetryTimeout, context) : undefined,
|
|
4433
|
-
tcpRetryEvents: output.tcpRetryEvents != null ? de_TcpRetryPolicyEvents(output.tcpRetryEvents, context) : undefined,
|
|
4434
|
-
};
|
|
4435
|
-
};
|
|
4436
|
-
const de_HttpRetryPolicyEvents = (output, context) => {
|
|
4437
|
-
const retVal = (output || [])
|
|
4438
|
-
.filter((e) => e != null)
|
|
4439
|
-
.map((entry) => {
|
|
4440
|
-
if (entry === null) {
|
|
4441
|
-
return null;
|
|
4442
|
-
}
|
|
4443
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
4444
|
-
});
|
|
4445
|
-
return retVal;
|
|
4446
|
-
};
|
|
4447
|
-
const de_HttpRoute = (output, context) => {
|
|
4448
|
-
return {
|
|
4449
|
-
action: output.action != null ? de_HttpRouteAction(output.action, context) : undefined,
|
|
4450
|
-
match: output.match != null ? de_HttpRouteMatch(output.match, context) : undefined,
|
|
4451
|
-
retryPolicy: output.retryPolicy != null ? de_HttpRetryPolicy(output.retryPolicy, context) : undefined,
|
|
4452
|
-
timeout: output.timeout != null ? de_HttpTimeout(output.timeout, context) : undefined,
|
|
4453
|
-
};
|
|
4454
|
-
};
|
|
4455
|
-
const de_HttpRouteAction = (output, context) => {
|
|
4456
|
-
return {
|
|
4457
|
-
weightedTargets: output.weightedTargets != null ? de_WeightedTargets(output.weightedTargets, context) : undefined,
|
|
4458
|
-
};
|
|
4459
|
-
};
|
|
4460
|
-
const de_HttpRouteHeader = (output, context) => {
|
|
4461
|
-
return {
|
|
4462
|
-
invert: (0, smithy_client_1.expectBoolean)(output.invert),
|
|
4463
|
-
match: output.match != null ? de_HeaderMatchMethod((0, smithy_client_1.expectUnion)(output.match), context) : undefined,
|
|
4464
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
4465
|
-
};
|
|
4466
|
-
};
|
|
4467
|
-
const de_HttpRouteHeaders = (output, context) => {
|
|
4468
|
-
const retVal = (output || [])
|
|
4469
|
-
.filter((e) => e != null)
|
|
4470
|
-
.map((entry) => {
|
|
4471
|
-
if (entry === null) {
|
|
4472
|
-
return null;
|
|
4473
|
-
}
|
|
4474
|
-
return de_HttpRouteHeader(entry, context);
|
|
4475
|
-
});
|
|
4476
|
-
return retVal;
|
|
4477
|
-
};
|
|
4478
|
-
const de_HttpRouteMatch = (output, context) => {
|
|
4479
|
-
return {
|
|
4480
|
-
headers: output.headers != null ? de_HttpRouteHeaders(output.headers, context) : undefined,
|
|
4481
|
-
method: (0, smithy_client_1.expectString)(output.method),
|
|
4482
|
-
path: output.path != null ? de_HttpPathMatch(output.path, context) : undefined,
|
|
4483
|
-
port: (0, smithy_client_1.expectInt32)(output.port),
|
|
4484
|
-
prefix: (0, smithy_client_1.expectString)(output.prefix),
|
|
4485
|
-
queryParameters: output.queryParameters != null ? de_HttpQueryParameters(output.queryParameters, context) : undefined,
|
|
4486
|
-
scheme: (0, smithy_client_1.expectString)(output.scheme),
|
|
4487
|
-
};
|
|
4488
|
-
};
|
|
4489
|
-
const de_HttpTimeout = (output, context) => {
|
|
4490
|
-
return {
|
|
4491
|
-
idle: output.idle != null ? de_Duration(output.idle, context) : undefined,
|
|
4492
|
-
perRequest: output.perRequest != null ? de_Duration(output.perRequest, context) : undefined,
|
|
4493
|
-
};
|
|
4494
|
-
};
|
|
4495
|
-
const de_JsonFormat = (output, context) => {
|
|
4496
|
-
const retVal = (output || [])
|
|
4497
|
-
.filter((e) => e != null)
|
|
4498
|
-
.map((entry) => {
|
|
4499
|
-
if (entry === null) {
|
|
4500
|
-
return null;
|
|
4501
|
-
}
|
|
4502
|
-
return de_JsonFormatRef(entry, context);
|
|
4503
|
-
});
|
|
4504
|
-
return retVal;
|
|
4505
|
-
};
|
|
4506
|
-
const de_JsonFormatRef = (output, context) => {
|
|
4507
|
-
return {
|
|
4508
|
-
key: (0, smithy_client_1.expectString)(output.key),
|
|
4509
|
-
value: (0, smithy_client_1.expectString)(output.value),
|
|
4510
|
-
};
|
|
4511
|
-
};
|
|
4512
|
-
const de_Listener = (output, context) => {
|
|
4513
|
-
return {
|
|
4514
|
-
connectionPool: output.connectionPool != null
|
|
4515
|
-
? de_VirtualNodeConnectionPool((0, smithy_client_1.expectUnion)(output.connectionPool), context)
|
|
4516
|
-
: undefined,
|
|
4517
|
-
healthCheck: output.healthCheck != null ? de_HealthCheckPolicy(output.healthCheck, context) : undefined,
|
|
4518
|
-
outlierDetection: output.outlierDetection != null ? de_OutlierDetection(output.outlierDetection, context) : undefined,
|
|
4519
|
-
portMapping: output.portMapping != null ? de_PortMapping(output.portMapping, context) : undefined,
|
|
4520
|
-
timeout: output.timeout != null ? de_ListenerTimeout((0, smithy_client_1.expectUnion)(output.timeout), context) : undefined,
|
|
4521
|
-
tls: output.tls != null ? de_ListenerTls(output.tls, context) : undefined,
|
|
4522
|
-
};
|
|
4523
|
-
};
|
|
4524
|
-
const de_Listeners = (output, context) => {
|
|
4525
|
-
const retVal = (output || [])
|
|
4526
|
-
.filter((e) => e != null)
|
|
4527
|
-
.map((entry) => {
|
|
4528
|
-
if (entry === null) {
|
|
4529
|
-
return null;
|
|
4530
|
-
}
|
|
4531
|
-
return de_Listener(entry, context);
|
|
4532
|
-
});
|
|
4533
|
-
return retVal;
|
|
4534
|
-
};
|
|
4535
|
-
const de_ListenerTimeout = (output, context) => {
|
|
4536
|
-
if (output.grpc != null) {
|
|
4537
|
-
return {
|
|
4538
|
-
grpc: de_GrpcTimeout(output.grpc, context),
|
|
4539
|
-
};
|
|
4540
|
-
}
|
|
4541
|
-
if (output.http != null) {
|
|
4542
|
-
return {
|
|
4543
|
-
http: de_HttpTimeout(output.http, context),
|
|
4544
|
-
};
|
|
4545
|
-
}
|
|
4546
|
-
if (output.http2 != null) {
|
|
4547
|
-
return {
|
|
4548
|
-
http2: de_HttpTimeout(output.http2, context),
|
|
4549
|
-
};
|
|
4550
|
-
}
|
|
4551
|
-
if (output.tcp != null) {
|
|
4552
|
-
return {
|
|
4553
|
-
tcp: de_TcpTimeout(output.tcp, context),
|
|
4554
|
-
};
|
|
4555
|
-
}
|
|
4556
|
-
return { $unknown: Object.entries(output)[0] };
|
|
4557
|
-
};
|
|
4558
|
-
const de_ListenerTls = (output, context) => {
|
|
4559
|
-
return {
|
|
4560
|
-
certificate: output.certificate != null ? de_ListenerTlsCertificate((0, smithy_client_1.expectUnion)(output.certificate), context) : undefined,
|
|
4561
|
-
mode: (0, smithy_client_1.expectString)(output.mode),
|
|
4562
|
-
validation: output.validation != null ? de_ListenerTlsValidationContext(output.validation, context) : undefined,
|
|
4563
|
-
};
|
|
4564
|
-
};
|
|
4565
|
-
const de_ListenerTlsAcmCertificate = (output, context) => {
|
|
4566
|
-
return {
|
|
4567
|
-
certificateArn: (0, smithy_client_1.expectString)(output.certificateArn),
|
|
4568
|
-
};
|
|
4569
|
-
};
|
|
4570
|
-
const de_ListenerTlsCertificate = (output, context) => {
|
|
4571
|
-
if (output.acm != null) {
|
|
4572
|
-
return {
|
|
4573
|
-
acm: de_ListenerTlsAcmCertificate(output.acm, context),
|
|
4574
|
-
};
|
|
4575
|
-
}
|
|
4576
|
-
if (output.file != null) {
|
|
4577
|
-
return {
|
|
4578
|
-
file: de_ListenerTlsFileCertificate(output.file, context),
|
|
4579
|
-
};
|
|
4580
|
-
}
|
|
4581
|
-
if (output.sds != null) {
|
|
4582
|
-
return {
|
|
4583
|
-
sds: de_ListenerTlsSdsCertificate(output.sds, context),
|
|
4584
|
-
};
|
|
4585
|
-
}
|
|
4586
|
-
return { $unknown: Object.entries(output)[0] };
|
|
4587
|
-
};
|
|
4588
|
-
const de_ListenerTlsFileCertificate = (output, context) => {
|
|
4589
|
-
return {
|
|
4590
|
-
certificateChain: (0, smithy_client_1.expectString)(output.certificateChain),
|
|
4591
|
-
privateKey: (0, smithy_client_1.expectString)(output.privateKey),
|
|
4592
|
-
};
|
|
4593
|
-
};
|
|
4594
|
-
const de_ListenerTlsSdsCertificate = (output, context) => {
|
|
4595
|
-
return {
|
|
4596
|
-
secretName: (0, smithy_client_1.expectString)(output.secretName),
|
|
4597
|
-
};
|
|
4598
|
-
};
|
|
4599
|
-
const de_ListenerTlsValidationContext = (output, context) => {
|
|
4600
|
-
return {
|
|
4601
|
-
subjectAlternativeNames: output.subjectAlternativeNames != null
|
|
4602
|
-
? de_SubjectAlternativeNames(output.subjectAlternativeNames, context)
|
|
4603
|
-
: undefined,
|
|
4604
|
-
trust: output.trust != null ? de_ListenerTlsValidationContextTrust((0, smithy_client_1.expectUnion)(output.trust), context) : undefined,
|
|
4605
|
-
};
|
|
4606
|
-
};
|
|
4607
|
-
const de_ListenerTlsValidationContextTrust = (output, context) => {
|
|
4608
|
-
if (output.file != null) {
|
|
4609
|
-
return {
|
|
4610
|
-
file: de_TlsValidationContextFileTrust(output.file, context),
|
|
4611
|
-
};
|
|
4612
|
-
}
|
|
4613
|
-
if (output.sds != null) {
|
|
4614
|
-
return {
|
|
4615
|
-
sds: de_TlsValidationContextSdsTrust(output.sds, context),
|
|
4616
|
-
};
|
|
4617
|
-
}
|
|
4618
|
-
return { $unknown: Object.entries(output)[0] };
|
|
4619
|
-
};
|
|
4620
|
-
const de_Logging = (output, context) => {
|
|
4621
|
-
return {
|
|
4622
|
-
accessLog: output.accessLog != null ? de_AccessLog((0, smithy_client_1.expectUnion)(output.accessLog), context) : undefined,
|
|
4623
|
-
};
|
|
4624
|
-
};
|
|
4625
|
-
const de_LoggingFormat = (output, context) => {
|
|
4626
|
-
if (output.json != null) {
|
|
4627
|
-
return {
|
|
4628
|
-
json: de_JsonFormat(output.json, context),
|
|
4629
|
-
};
|
|
4630
|
-
}
|
|
4631
|
-
if ((0, smithy_client_1.expectString)(output.text) !== undefined) {
|
|
4632
|
-
return { text: (0, smithy_client_1.expectString)(output.text) };
|
|
4633
|
-
}
|
|
4634
|
-
return { $unknown: Object.entries(output)[0] };
|
|
4635
|
-
};
|
|
4636
|
-
const de_MatchRange = (output, context) => {
|
|
4637
|
-
return {
|
|
4638
|
-
end: (0, smithy_client_1.expectLong)(output.end),
|
|
4639
|
-
start: (0, smithy_client_1.expectLong)(output.start),
|
|
4640
|
-
};
|
|
4641
|
-
};
|
|
4642
|
-
const de_MeshData = (output, context) => {
|
|
4643
|
-
return {
|
|
4644
|
-
meshName: (0, smithy_client_1.expectString)(output.meshName),
|
|
4645
|
-
metadata: output.metadata != null ? de_ResourceMetadata(output.metadata, context) : undefined,
|
|
4646
|
-
spec: output.spec != null ? de_MeshSpec(output.spec, context) : undefined,
|
|
4647
|
-
status: output.status != null ? de_MeshStatus(output.status, context) : undefined,
|
|
4648
|
-
};
|
|
4649
|
-
};
|
|
4650
|
-
const de_MeshList = (output, context) => {
|
|
4651
|
-
const retVal = (output || [])
|
|
4652
|
-
.filter((e) => e != null)
|
|
4653
|
-
.map((entry) => {
|
|
4654
|
-
if (entry === null) {
|
|
4655
|
-
return null;
|
|
4656
|
-
}
|
|
4657
|
-
return de_MeshRef(entry, context);
|
|
4658
|
-
});
|
|
4659
|
-
return retVal;
|
|
4660
|
-
};
|
|
4661
|
-
const de_MeshRef = (output, context) => {
|
|
4662
|
-
return {
|
|
4663
|
-
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
4664
|
-
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
4665
|
-
lastUpdatedAt: output.lastUpdatedAt != null
|
|
4666
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt)))
|
|
4667
|
-
: undefined,
|
|
4668
|
-
meshName: (0, smithy_client_1.expectString)(output.meshName),
|
|
4669
|
-
meshOwner: (0, smithy_client_1.expectString)(output.meshOwner),
|
|
4670
|
-
resourceOwner: (0, smithy_client_1.expectString)(output.resourceOwner),
|
|
4671
|
-
version: (0, smithy_client_1.expectLong)(output.version),
|
|
4672
|
-
};
|
|
4673
|
-
};
|
|
4674
|
-
const de_MeshServiceDiscovery = (output, context) => {
|
|
4675
|
-
return {
|
|
4676
|
-
ipPreference: (0, smithy_client_1.expectString)(output.ipPreference),
|
|
4677
|
-
};
|
|
4678
|
-
};
|
|
4679
|
-
const de_MeshSpec = (output, context) => {
|
|
4680
|
-
return {
|
|
4681
|
-
egressFilter: output.egressFilter != null ? de_EgressFilter(output.egressFilter, context) : undefined,
|
|
4682
|
-
serviceDiscovery: output.serviceDiscovery != null ? de_MeshServiceDiscovery(output.serviceDiscovery, context) : undefined,
|
|
4683
|
-
};
|
|
4684
|
-
};
|
|
4685
|
-
const de_MeshStatus = (output, context) => {
|
|
4686
|
-
return {
|
|
4687
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
4688
|
-
};
|
|
4689
|
-
};
|
|
4690
|
-
const de_OutlierDetection = (output, context) => {
|
|
4691
|
-
return {
|
|
4692
|
-
baseEjectionDuration: output.baseEjectionDuration != null ? de_Duration(output.baseEjectionDuration, context) : undefined,
|
|
4693
|
-
interval: output.interval != null ? de_Duration(output.interval, context) : undefined,
|
|
4694
|
-
maxEjectionPercent: (0, smithy_client_1.expectInt32)(output.maxEjectionPercent),
|
|
4695
|
-
maxServerErrors: (0, smithy_client_1.expectLong)(output.maxServerErrors),
|
|
4696
|
-
};
|
|
4697
|
-
};
|
|
4698
|
-
const de_PortMapping = (output, context) => {
|
|
4699
|
-
return {
|
|
4700
|
-
port: (0, smithy_client_1.expectInt32)(output.port),
|
|
4701
|
-
protocol: (0, smithy_client_1.expectString)(output.protocol),
|
|
4702
|
-
};
|
|
4703
|
-
};
|
|
4704
|
-
const de_PortSet = (output, context) => {
|
|
4705
|
-
const retVal = (output || [])
|
|
4706
|
-
.filter((e) => e != null)
|
|
4707
|
-
.map((entry) => {
|
|
4708
|
-
if (entry === null) {
|
|
4709
|
-
return null;
|
|
4710
|
-
}
|
|
4711
|
-
return (0, smithy_client_1.expectInt32)(entry);
|
|
4712
|
-
});
|
|
4713
|
-
return retVal;
|
|
4714
|
-
};
|
|
4715
|
-
const de_QueryParameterMatch = (output, context) => {
|
|
4716
|
-
return {
|
|
4717
|
-
exact: (0, smithy_client_1.expectString)(output.exact),
|
|
4718
|
-
};
|
|
4719
|
-
};
|
|
4720
|
-
const de_ResourceMetadata = (output, context) => {
|
|
4721
|
-
return {
|
|
4722
|
-
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
4723
|
-
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
4724
|
-
lastUpdatedAt: output.lastUpdatedAt != null
|
|
4725
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt)))
|
|
4726
|
-
: undefined,
|
|
4727
|
-
meshOwner: (0, smithy_client_1.expectString)(output.meshOwner),
|
|
4728
|
-
resourceOwner: (0, smithy_client_1.expectString)(output.resourceOwner),
|
|
4729
|
-
uid: (0, smithy_client_1.expectString)(output.uid),
|
|
4730
|
-
version: (0, smithy_client_1.expectLong)(output.version),
|
|
4731
|
-
};
|
|
4732
|
-
};
|
|
4733
|
-
const de_RouteData = (output, context) => {
|
|
4734
|
-
return {
|
|
4735
|
-
meshName: (0, smithy_client_1.expectString)(output.meshName),
|
|
4736
|
-
metadata: output.metadata != null ? de_ResourceMetadata(output.metadata, context) : undefined,
|
|
4737
|
-
routeName: (0, smithy_client_1.expectString)(output.routeName),
|
|
4738
|
-
spec: output.spec != null ? de_RouteSpec(output.spec, context) : undefined,
|
|
4739
|
-
status: output.status != null ? de_RouteStatus(output.status, context) : undefined,
|
|
4740
|
-
virtualRouterName: (0, smithy_client_1.expectString)(output.virtualRouterName),
|
|
4741
|
-
};
|
|
4742
|
-
};
|
|
4743
|
-
const de_RouteList = (output, context) => {
|
|
4744
|
-
const retVal = (output || [])
|
|
4745
|
-
.filter((e) => e != null)
|
|
4746
|
-
.map((entry) => {
|
|
4747
|
-
if (entry === null) {
|
|
4748
|
-
return null;
|
|
4749
|
-
}
|
|
4750
|
-
return de_RouteRef(entry, context);
|
|
4751
|
-
});
|
|
4752
|
-
return retVal;
|
|
4753
|
-
};
|
|
4754
|
-
const de_RouteRef = (output, context) => {
|
|
4755
|
-
return {
|
|
4756
|
-
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
4757
|
-
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
4758
|
-
lastUpdatedAt: output.lastUpdatedAt != null
|
|
4759
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt)))
|
|
4760
|
-
: undefined,
|
|
4761
|
-
meshName: (0, smithy_client_1.expectString)(output.meshName),
|
|
4762
|
-
meshOwner: (0, smithy_client_1.expectString)(output.meshOwner),
|
|
4763
|
-
resourceOwner: (0, smithy_client_1.expectString)(output.resourceOwner),
|
|
4764
|
-
routeName: (0, smithy_client_1.expectString)(output.routeName),
|
|
4765
|
-
version: (0, smithy_client_1.expectLong)(output.version),
|
|
4766
|
-
virtualRouterName: (0, smithy_client_1.expectString)(output.virtualRouterName),
|
|
4767
|
-
};
|
|
4768
|
-
};
|
|
4769
|
-
const de_RouteSpec = (output, context) => {
|
|
4770
|
-
return {
|
|
4771
|
-
grpcRoute: output.grpcRoute != null ? de_GrpcRoute(output.grpcRoute, context) : undefined,
|
|
4772
|
-
http2Route: output.http2Route != null ? de_HttpRoute(output.http2Route, context) : undefined,
|
|
4773
|
-
httpRoute: output.httpRoute != null ? de_HttpRoute(output.httpRoute, context) : undefined,
|
|
4774
|
-
priority: (0, smithy_client_1.expectInt32)(output.priority),
|
|
4775
|
-
tcpRoute: output.tcpRoute != null ? de_TcpRoute(output.tcpRoute, context) : undefined,
|
|
4776
|
-
};
|
|
4777
|
-
};
|
|
4778
|
-
const de_RouteStatus = (output, context) => {
|
|
4779
|
-
return {
|
|
4780
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
4781
|
-
};
|
|
4782
|
-
};
|
|
4783
|
-
const de_ServiceDiscovery = (output, context) => {
|
|
4784
|
-
if (output.awsCloudMap != null) {
|
|
4785
|
-
return {
|
|
4786
|
-
awsCloudMap: de_AwsCloudMapServiceDiscovery(output.awsCloudMap, context),
|
|
4787
|
-
};
|
|
4788
|
-
}
|
|
4789
|
-
if (output.dns != null) {
|
|
4790
|
-
return {
|
|
4791
|
-
dns: de_DnsServiceDiscovery(output.dns, context),
|
|
4792
|
-
};
|
|
4793
|
-
}
|
|
4794
|
-
return { $unknown: Object.entries(output)[0] };
|
|
4795
|
-
};
|
|
4796
|
-
const de_SubjectAlternativeNameList = (output, context) => {
|
|
4797
|
-
const retVal = (output || [])
|
|
4798
|
-
.filter((e) => e != null)
|
|
4799
|
-
.map((entry) => {
|
|
4800
|
-
if (entry === null) {
|
|
4801
|
-
return null;
|
|
4802
|
-
}
|
|
4803
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
4804
|
-
});
|
|
4805
|
-
return retVal;
|
|
4806
|
-
};
|
|
4807
|
-
const de_SubjectAlternativeNameMatchers = (output, context) => {
|
|
4808
|
-
return {
|
|
4809
|
-
exact: output.exact != null ? de_SubjectAlternativeNameList(output.exact, context) : undefined,
|
|
4810
|
-
};
|
|
4811
|
-
};
|
|
4812
|
-
const de_SubjectAlternativeNames = (output, context) => {
|
|
4813
|
-
return {
|
|
4814
|
-
match: output.match != null ? de_SubjectAlternativeNameMatchers(output.match, context) : undefined,
|
|
4815
|
-
};
|
|
4816
|
-
};
|
|
4817
|
-
const de_TagList = (output, context) => {
|
|
4818
|
-
const retVal = (output || [])
|
|
4819
|
-
.filter((e) => e != null)
|
|
4820
|
-
.map((entry) => {
|
|
4821
|
-
if (entry === null) {
|
|
4822
|
-
return null;
|
|
4823
|
-
}
|
|
4824
|
-
return de_TagRef(entry, context);
|
|
4825
|
-
});
|
|
4826
|
-
return retVal;
|
|
4827
|
-
};
|
|
4828
|
-
const de_TagRef = (output, context) => {
|
|
4829
|
-
return {
|
|
4830
|
-
key: (0, smithy_client_1.expectString)(output.key),
|
|
4831
|
-
value: (0, smithy_client_1.expectString)(output.value),
|
|
4832
|
-
};
|
|
4833
|
-
};
|
|
4834
|
-
const de_TcpRetryPolicyEvents = (output, context) => {
|
|
4835
|
-
const retVal = (output || [])
|
|
4836
|
-
.filter((e) => e != null)
|
|
4837
|
-
.map((entry) => {
|
|
4838
|
-
if (entry === null) {
|
|
4839
|
-
return null;
|
|
4840
|
-
}
|
|
4841
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
4842
|
-
});
|
|
4843
|
-
return retVal;
|
|
4844
|
-
};
|
|
4845
|
-
const de_TcpRoute = (output, context) => {
|
|
4846
|
-
return {
|
|
4847
|
-
action: output.action != null ? de_TcpRouteAction(output.action, context) : undefined,
|
|
4848
|
-
match: output.match != null ? de_TcpRouteMatch(output.match, context) : undefined,
|
|
4849
|
-
timeout: output.timeout != null ? de_TcpTimeout(output.timeout, context) : undefined,
|
|
4850
|
-
};
|
|
4851
|
-
};
|
|
4852
|
-
const de_TcpRouteAction = (output, context) => {
|
|
4853
|
-
return {
|
|
4854
|
-
weightedTargets: output.weightedTargets != null ? de_WeightedTargets(output.weightedTargets, context) : undefined,
|
|
4855
|
-
};
|
|
4856
|
-
};
|
|
4857
|
-
const de_TcpRouteMatch = (output, context) => {
|
|
4858
|
-
return {
|
|
4859
|
-
port: (0, smithy_client_1.expectInt32)(output.port),
|
|
4860
|
-
};
|
|
4861
|
-
};
|
|
4862
|
-
const de_TcpTimeout = (output, context) => {
|
|
4863
|
-
return {
|
|
4864
|
-
idle: output.idle != null ? de_Duration(output.idle, context) : undefined,
|
|
4865
|
-
};
|
|
4866
|
-
};
|
|
4867
|
-
const de_TlsValidationContext = (output, context) => {
|
|
4868
|
-
return {
|
|
4869
|
-
subjectAlternativeNames: output.subjectAlternativeNames != null
|
|
4870
|
-
? de_SubjectAlternativeNames(output.subjectAlternativeNames, context)
|
|
4871
|
-
: undefined,
|
|
4872
|
-
trust: output.trust != null ? de_TlsValidationContextTrust((0, smithy_client_1.expectUnion)(output.trust), context) : undefined,
|
|
4873
|
-
};
|
|
4874
|
-
};
|
|
4875
|
-
const de_TlsValidationContextAcmTrust = (output, context) => {
|
|
4876
|
-
return {
|
|
4877
|
-
certificateAuthorityArns: output.certificateAuthorityArns != null
|
|
4878
|
-
? de_CertificateAuthorityArns(output.certificateAuthorityArns, context)
|
|
4879
|
-
: undefined,
|
|
4880
|
-
};
|
|
4881
|
-
};
|
|
4882
|
-
const de_TlsValidationContextFileTrust = (output, context) => {
|
|
4883
|
-
return {
|
|
4884
|
-
certificateChain: (0, smithy_client_1.expectString)(output.certificateChain),
|
|
4885
|
-
};
|
|
4886
|
-
};
|
|
4887
|
-
const de_TlsValidationContextSdsTrust = (output, context) => {
|
|
4888
|
-
return {
|
|
4889
|
-
secretName: (0, smithy_client_1.expectString)(output.secretName),
|
|
4890
|
-
};
|
|
4891
|
-
};
|
|
4892
|
-
const de_TlsValidationContextTrust = (output, context) => {
|
|
4893
|
-
if (output.acm != null) {
|
|
4894
|
-
return {
|
|
4895
|
-
acm: de_TlsValidationContextAcmTrust(output.acm, context),
|
|
4896
|
-
};
|
|
4897
|
-
}
|
|
4898
|
-
if (output.file != null) {
|
|
4899
|
-
return {
|
|
4900
|
-
file: de_TlsValidationContextFileTrust(output.file, context),
|
|
4901
|
-
};
|
|
4902
|
-
}
|
|
4903
|
-
if (output.sds != null) {
|
|
4904
|
-
return {
|
|
4905
|
-
sds: de_TlsValidationContextSdsTrust(output.sds, context),
|
|
4906
|
-
};
|
|
4907
|
-
}
|
|
4908
|
-
return { $unknown: Object.entries(output)[0] };
|
|
4909
|
-
};
|
|
4910
|
-
const de_VirtualGatewayAccessLog = (output, context) => {
|
|
4911
|
-
if (output.file != null) {
|
|
4912
|
-
return {
|
|
4913
|
-
file: de_VirtualGatewayFileAccessLog(output.file, context),
|
|
4914
|
-
};
|
|
4915
|
-
}
|
|
4916
|
-
return { $unknown: Object.entries(output)[0] };
|
|
4917
|
-
};
|
|
4918
|
-
const de_VirtualGatewayBackendDefaults = (output, context) => {
|
|
4919
|
-
return {
|
|
4920
|
-
clientPolicy: output.clientPolicy != null ? de_VirtualGatewayClientPolicy(output.clientPolicy, context) : undefined,
|
|
4921
|
-
};
|
|
4922
|
-
};
|
|
4923
|
-
const de_VirtualGatewayCertificateAuthorityArns = (output, context) => {
|
|
4924
|
-
const retVal = (output || [])
|
|
4925
|
-
.filter((e) => e != null)
|
|
4926
|
-
.map((entry) => {
|
|
4927
|
-
if (entry === null) {
|
|
4928
|
-
return null;
|
|
4929
|
-
}
|
|
4930
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
4931
|
-
});
|
|
4932
|
-
return retVal;
|
|
4933
|
-
};
|
|
4934
|
-
const de_VirtualGatewayClientPolicy = (output, context) => {
|
|
4935
|
-
return {
|
|
4936
|
-
tls: output.tls != null ? de_VirtualGatewayClientPolicyTls(output.tls, context) : undefined,
|
|
4937
|
-
};
|
|
4938
|
-
};
|
|
4939
|
-
const de_VirtualGatewayClientPolicyTls = (output, context) => {
|
|
4940
|
-
return {
|
|
4941
|
-
certificate: output.certificate != null
|
|
4942
|
-
? de_VirtualGatewayClientTlsCertificate((0, smithy_client_1.expectUnion)(output.certificate), context)
|
|
4943
|
-
: undefined,
|
|
4944
|
-
enforce: (0, smithy_client_1.expectBoolean)(output.enforce),
|
|
4945
|
-
ports: output.ports != null ? de_PortSet(output.ports, context) : undefined,
|
|
4946
|
-
validation: output.validation != null ? de_VirtualGatewayTlsValidationContext(output.validation, context) : undefined,
|
|
4947
|
-
};
|
|
4948
|
-
};
|
|
4949
|
-
const de_VirtualGatewayClientTlsCertificate = (output, context) => {
|
|
4950
|
-
if (output.file != null) {
|
|
4951
|
-
return {
|
|
4952
|
-
file: de_VirtualGatewayListenerTlsFileCertificate(output.file, context),
|
|
4953
|
-
};
|
|
4954
|
-
}
|
|
4955
|
-
if (output.sds != null) {
|
|
4956
|
-
return {
|
|
4957
|
-
sds: de_VirtualGatewayListenerTlsSdsCertificate(output.sds, context),
|
|
4958
|
-
};
|
|
4959
|
-
}
|
|
4960
|
-
return { $unknown: Object.entries(output)[0] };
|
|
4961
|
-
};
|
|
4962
|
-
const de_VirtualGatewayConnectionPool = (output, context) => {
|
|
4963
|
-
if (output.grpc != null) {
|
|
4964
|
-
return {
|
|
4965
|
-
grpc: de_VirtualGatewayGrpcConnectionPool(output.grpc, context),
|
|
4966
|
-
};
|
|
4967
|
-
}
|
|
4968
|
-
if (output.http != null) {
|
|
4969
|
-
return {
|
|
4970
|
-
http: de_VirtualGatewayHttpConnectionPool(output.http, context),
|
|
4971
|
-
};
|
|
4972
|
-
}
|
|
4973
|
-
if (output.http2 != null) {
|
|
4974
|
-
return {
|
|
4975
|
-
http2: de_VirtualGatewayHttp2ConnectionPool(output.http2, context),
|
|
4976
|
-
};
|
|
4977
|
-
}
|
|
4978
|
-
return { $unknown: Object.entries(output)[0] };
|
|
4979
|
-
};
|
|
4980
|
-
const de_VirtualGatewayData = (output, context) => {
|
|
4981
|
-
return {
|
|
4982
|
-
meshName: (0, smithy_client_1.expectString)(output.meshName),
|
|
4983
|
-
metadata: output.metadata != null ? de_ResourceMetadata(output.metadata, context) : undefined,
|
|
4984
|
-
spec: output.spec != null ? de_VirtualGatewaySpec(output.spec, context) : undefined,
|
|
4985
|
-
status: output.status != null ? de_VirtualGatewayStatus(output.status, context) : undefined,
|
|
4986
|
-
virtualGatewayName: (0, smithy_client_1.expectString)(output.virtualGatewayName),
|
|
4987
|
-
};
|
|
4988
|
-
};
|
|
4989
|
-
const de_VirtualGatewayFileAccessLog = (output, context) => {
|
|
4990
|
-
return {
|
|
4991
|
-
format: output.format != null ? de_LoggingFormat((0, smithy_client_1.expectUnion)(output.format), context) : undefined,
|
|
4992
|
-
path: (0, smithy_client_1.expectString)(output.path),
|
|
4993
|
-
};
|
|
4994
|
-
};
|
|
4995
|
-
const de_VirtualGatewayGrpcConnectionPool = (output, context) => {
|
|
4996
|
-
return {
|
|
4997
|
-
maxRequests: (0, smithy_client_1.expectInt32)(output.maxRequests),
|
|
4998
|
-
};
|
|
4999
|
-
};
|
|
5000
|
-
const de_VirtualGatewayHealthCheckPolicy = (output, context) => {
|
|
5001
|
-
return {
|
|
5002
|
-
healthyThreshold: (0, smithy_client_1.expectInt32)(output.healthyThreshold),
|
|
5003
|
-
intervalMillis: (0, smithy_client_1.expectLong)(output.intervalMillis),
|
|
5004
|
-
path: (0, smithy_client_1.expectString)(output.path),
|
|
5005
|
-
port: (0, smithy_client_1.expectInt32)(output.port),
|
|
5006
|
-
protocol: (0, smithy_client_1.expectString)(output.protocol),
|
|
5007
|
-
timeoutMillis: (0, smithy_client_1.expectLong)(output.timeoutMillis),
|
|
5008
|
-
unhealthyThreshold: (0, smithy_client_1.expectInt32)(output.unhealthyThreshold),
|
|
5009
|
-
};
|
|
5010
|
-
};
|
|
5011
|
-
const de_VirtualGatewayHttp2ConnectionPool = (output, context) => {
|
|
5012
|
-
return {
|
|
5013
|
-
maxRequests: (0, smithy_client_1.expectInt32)(output.maxRequests),
|
|
5014
|
-
};
|
|
5015
|
-
};
|
|
5016
|
-
const de_VirtualGatewayHttpConnectionPool = (output, context) => {
|
|
5017
|
-
return {
|
|
5018
|
-
maxConnections: (0, smithy_client_1.expectInt32)(output.maxConnections),
|
|
5019
|
-
maxPendingRequests: (0, smithy_client_1.expectInt32)(output.maxPendingRequests),
|
|
5020
|
-
};
|
|
5021
|
-
};
|
|
5022
|
-
const de_VirtualGatewayList = (output, context) => {
|
|
5023
|
-
const retVal = (output || [])
|
|
5024
|
-
.filter((e) => e != null)
|
|
5025
|
-
.map((entry) => {
|
|
5026
|
-
if (entry === null) {
|
|
5027
|
-
return null;
|
|
5028
|
-
}
|
|
5029
|
-
return de_VirtualGatewayRef(entry, context);
|
|
5030
|
-
});
|
|
5031
|
-
return retVal;
|
|
5032
|
-
};
|
|
5033
|
-
const de_VirtualGatewayListener = (output, context) => {
|
|
5034
|
-
return {
|
|
5035
|
-
connectionPool: output.connectionPool != null
|
|
5036
|
-
? de_VirtualGatewayConnectionPool((0, smithy_client_1.expectUnion)(output.connectionPool), context)
|
|
5037
|
-
: undefined,
|
|
5038
|
-
healthCheck: output.healthCheck != null ? de_VirtualGatewayHealthCheckPolicy(output.healthCheck, context) : undefined,
|
|
5039
|
-
portMapping: output.portMapping != null ? de_VirtualGatewayPortMapping(output.portMapping, context) : undefined,
|
|
5040
|
-
tls: output.tls != null ? de_VirtualGatewayListenerTls(output.tls, context) : undefined,
|
|
5041
|
-
};
|
|
5042
|
-
};
|
|
5043
|
-
const de_VirtualGatewayListeners = (output, context) => {
|
|
5044
|
-
const retVal = (output || [])
|
|
5045
|
-
.filter((e) => e != null)
|
|
5046
|
-
.map((entry) => {
|
|
5047
|
-
if (entry === null) {
|
|
5048
|
-
return null;
|
|
5049
|
-
}
|
|
5050
|
-
return de_VirtualGatewayListener(entry, context);
|
|
5051
|
-
});
|
|
5052
|
-
return retVal;
|
|
5053
|
-
};
|
|
5054
|
-
const de_VirtualGatewayListenerTls = (output, context) => {
|
|
5055
|
-
return {
|
|
5056
|
-
certificate: output.certificate != null
|
|
5057
|
-
? de_VirtualGatewayListenerTlsCertificate((0, smithy_client_1.expectUnion)(output.certificate), context)
|
|
5058
|
-
: undefined,
|
|
5059
|
-
mode: (0, smithy_client_1.expectString)(output.mode),
|
|
5060
|
-
validation: output.validation != null ? de_VirtualGatewayListenerTlsValidationContext(output.validation, context) : undefined,
|
|
5061
|
-
};
|
|
5062
|
-
};
|
|
5063
|
-
const de_VirtualGatewayListenerTlsAcmCertificate = (output, context) => {
|
|
5064
|
-
return {
|
|
5065
|
-
certificateArn: (0, smithy_client_1.expectString)(output.certificateArn),
|
|
5066
|
-
};
|
|
5067
|
-
};
|
|
5068
|
-
const de_VirtualGatewayListenerTlsCertificate = (output, context) => {
|
|
5069
|
-
if (output.acm != null) {
|
|
5070
|
-
return {
|
|
5071
|
-
acm: de_VirtualGatewayListenerTlsAcmCertificate(output.acm, context),
|
|
5072
|
-
};
|
|
5073
|
-
}
|
|
5074
|
-
if (output.file != null) {
|
|
5075
|
-
return {
|
|
5076
|
-
file: de_VirtualGatewayListenerTlsFileCertificate(output.file, context),
|
|
5077
|
-
};
|
|
5078
|
-
}
|
|
5079
|
-
if (output.sds != null) {
|
|
5080
|
-
return {
|
|
5081
|
-
sds: de_VirtualGatewayListenerTlsSdsCertificate(output.sds, context),
|
|
5082
|
-
};
|
|
5083
|
-
}
|
|
5084
|
-
return { $unknown: Object.entries(output)[0] };
|
|
5085
|
-
};
|
|
5086
|
-
const de_VirtualGatewayListenerTlsFileCertificate = (output, context) => {
|
|
5087
|
-
return {
|
|
5088
|
-
certificateChain: (0, smithy_client_1.expectString)(output.certificateChain),
|
|
5089
|
-
privateKey: (0, smithy_client_1.expectString)(output.privateKey),
|
|
5090
|
-
};
|
|
5091
|
-
};
|
|
5092
|
-
const de_VirtualGatewayListenerTlsSdsCertificate = (output, context) => {
|
|
5093
|
-
return {
|
|
5094
|
-
secretName: (0, smithy_client_1.expectString)(output.secretName),
|
|
5095
|
-
};
|
|
5096
|
-
};
|
|
5097
|
-
const de_VirtualGatewayListenerTlsValidationContext = (output, context) => {
|
|
5098
|
-
return {
|
|
5099
|
-
subjectAlternativeNames: output.subjectAlternativeNames != null
|
|
5100
|
-
? de_SubjectAlternativeNames(output.subjectAlternativeNames, context)
|
|
5101
|
-
: undefined,
|
|
5102
|
-
trust: output.trust != null
|
|
5103
|
-
? de_VirtualGatewayListenerTlsValidationContextTrust((0, smithy_client_1.expectUnion)(output.trust), context)
|
|
5104
|
-
: undefined,
|
|
5105
|
-
};
|
|
5106
|
-
};
|
|
5107
|
-
const de_VirtualGatewayListenerTlsValidationContextTrust = (output, context) => {
|
|
5108
|
-
if (output.file != null) {
|
|
5109
|
-
return {
|
|
5110
|
-
file: de_VirtualGatewayTlsValidationContextFileTrust(output.file, context),
|
|
5111
|
-
};
|
|
5112
|
-
}
|
|
5113
|
-
if (output.sds != null) {
|
|
5114
|
-
return {
|
|
5115
|
-
sds: de_VirtualGatewayTlsValidationContextSdsTrust(output.sds, context),
|
|
5116
|
-
};
|
|
5117
|
-
}
|
|
5118
|
-
return { $unknown: Object.entries(output)[0] };
|
|
5119
|
-
};
|
|
5120
|
-
const de_VirtualGatewayLogging = (output, context) => {
|
|
5121
|
-
return {
|
|
5122
|
-
accessLog: output.accessLog != null ? de_VirtualGatewayAccessLog((0, smithy_client_1.expectUnion)(output.accessLog), context) : undefined,
|
|
5123
|
-
};
|
|
5124
|
-
};
|
|
5125
|
-
const de_VirtualGatewayPortMapping = (output, context) => {
|
|
5126
|
-
return {
|
|
5127
|
-
port: (0, smithy_client_1.expectInt32)(output.port),
|
|
5128
|
-
protocol: (0, smithy_client_1.expectString)(output.protocol),
|
|
5129
|
-
};
|
|
5130
|
-
};
|
|
5131
|
-
const de_VirtualGatewayRef = (output, context) => {
|
|
5132
|
-
return {
|
|
5133
|
-
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
5134
|
-
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
5135
|
-
lastUpdatedAt: output.lastUpdatedAt != null
|
|
5136
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt)))
|
|
5137
|
-
: undefined,
|
|
5138
|
-
meshName: (0, smithy_client_1.expectString)(output.meshName),
|
|
5139
|
-
meshOwner: (0, smithy_client_1.expectString)(output.meshOwner),
|
|
5140
|
-
resourceOwner: (0, smithy_client_1.expectString)(output.resourceOwner),
|
|
5141
|
-
version: (0, smithy_client_1.expectLong)(output.version),
|
|
5142
|
-
virtualGatewayName: (0, smithy_client_1.expectString)(output.virtualGatewayName),
|
|
5143
|
-
};
|
|
5144
|
-
};
|
|
5145
|
-
const de_VirtualGatewaySpec = (output, context) => {
|
|
5146
|
-
return {
|
|
5147
|
-
backendDefaults: output.backendDefaults != null ? de_VirtualGatewayBackendDefaults(output.backendDefaults, context) : undefined,
|
|
5148
|
-
listeners: output.listeners != null ? de_VirtualGatewayListeners(output.listeners, context) : undefined,
|
|
5149
|
-
logging: output.logging != null ? de_VirtualGatewayLogging(output.logging, context) : undefined,
|
|
5150
|
-
};
|
|
5151
|
-
};
|
|
5152
|
-
const de_VirtualGatewayStatus = (output, context) => {
|
|
5153
|
-
return {
|
|
5154
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
5155
|
-
};
|
|
5156
|
-
};
|
|
5157
|
-
const de_VirtualGatewayTlsValidationContext = (output, context) => {
|
|
5158
|
-
return {
|
|
5159
|
-
subjectAlternativeNames: output.subjectAlternativeNames != null
|
|
5160
|
-
? de_SubjectAlternativeNames(output.subjectAlternativeNames, context)
|
|
5161
|
-
: undefined,
|
|
5162
|
-
trust: output.trust != null
|
|
5163
|
-
? de_VirtualGatewayTlsValidationContextTrust((0, smithy_client_1.expectUnion)(output.trust), context)
|
|
5164
|
-
: undefined,
|
|
5165
|
-
};
|
|
5166
|
-
};
|
|
5167
|
-
const de_VirtualGatewayTlsValidationContextAcmTrust = (output, context) => {
|
|
5168
|
-
return {
|
|
5169
|
-
certificateAuthorityArns: output.certificateAuthorityArns != null
|
|
5170
|
-
? de_VirtualGatewayCertificateAuthorityArns(output.certificateAuthorityArns, context)
|
|
5171
|
-
: undefined,
|
|
5172
|
-
};
|
|
5173
|
-
};
|
|
5174
|
-
const de_VirtualGatewayTlsValidationContextFileTrust = (output, context) => {
|
|
5175
|
-
return {
|
|
5176
|
-
certificateChain: (0, smithy_client_1.expectString)(output.certificateChain),
|
|
5177
|
-
};
|
|
5178
|
-
};
|
|
5179
|
-
const de_VirtualGatewayTlsValidationContextSdsTrust = (output, context) => {
|
|
5180
|
-
return {
|
|
5181
|
-
secretName: (0, smithy_client_1.expectString)(output.secretName),
|
|
5182
|
-
};
|
|
5183
|
-
};
|
|
5184
|
-
const de_VirtualGatewayTlsValidationContextTrust = (output, context) => {
|
|
5185
|
-
if (output.acm != null) {
|
|
5186
|
-
return {
|
|
5187
|
-
acm: de_VirtualGatewayTlsValidationContextAcmTrust(output.acm, context),
|
|
5188
|
-
};
|
|
5189
|
-
}
|
|
5190
|
-
if (output.file != null) {
|
|
5191
|
-
return {
|
|
5192
|
-
file: de_VirtualGatewayTlsValidationContextFileTrust(output.file, context),
|
|
5193
|
-
};
|
|
5194
|
-
}
|
|
5195
|
-
if (output.sds != null) {
|
|
5196
|
-
return {
|
|
5197
|
-
sds: de_VirtualGatewayTlsValidationContextSdsTrust(output.sds, context),
|
|
5198
|
-
};
|
|
5199
|
-
}
|
|
5200
|
-
return { $unknown: Object.entries(output)[0] };
|
|
5201
|
-
};
|
|
5202
|
-
const de_VirtualNodeConnectionPool = (output, context) => {
|
|
5203
|
-
if (output.grpc != null) {
|
|
5204
|
-
return {
|
|
5205
|
-
grpc: de_VirtualNodeGrpcConnectionPool(output.grpc, context),
|
|
5206
|
-
};
|
|
5207
|
-
}
|
|
5208
|
-
if (output.http != null) {
|
|
5209
|
-
return {
|
|
5210
|
-
http: de_VirtualNodeHttpConnectionPool(output.http, context),
|
|
5211
|
-
};
|
|
5212
|
-
}
|
|
5213
|
-
if (output.http2 != null) {
|
|
5214
|
-
return {
|
|
5215
|
-
http2: de_VirtualNodeHttp2ConnectionPool(output.http2, context),
|
|
5216
|
-
};
|
|
5217
|
-
}
|
|
5218
|
-
if (output.tcp != null) {
|
|
5219
|
-
return {
|
|
5220
|
-
tcp: de_VirtualNodeTcpConnectionPool(output.tcp, context),
|
|
5221
|
-
};
|
|
5222
|
-
}
|
|
5223
|
-
return { $unknown: Object.entries(output)[0] };
|
|
5224
|
-
};
|
|
5225
|
-
const de_VirtualNodeData = (output, context) => {
|
|
5226
|
-
return {
|
|
5227
|
-
meshName: (0, smithy_client_1.expectString)(output.meshName),
|
|
5228
|
-
metadata: output.metadata != null ? de_ResourceMetadata(output.metadata, context) : undefined,
|
|
5229
|
-
spec: output.spec != null ? de_VirtualNodeSpec(output.spec, context) : undefined,
|
|
5230
|
-
status: output.status != null ? de_VirtualNodeStatus(output.status, context) : undefined,
|
|
5231
|
-
virtualNodeName: (0, smithy_client_1.expectString)(output.virtualNodeName),
|
|
5232
|
-
};
|
|
5233
|
-
};
|
|
5234
|
-
const de_VirtualNodeGrpcConnectionPool = (output, context) => {
|
|
5235
|
-
return {
|
|
5236
|
-
maxRequests: (0, smithy_client_1.expectInt32)(output.maxRequests),
|
|
5237
|
-
};
|
|
5238
|
-
};
|
|
5239
|
-
const de_VirtualNodeHttp2ConnectionPool = (output, context) => {
|
|
5240
|
-
return {
|
|
5241
|
-
maxRequests: (0, smithy_client_1.expectInt32)(output.maxRequests),
|
|
5242
|
-
};
|
|
5243
|
-
};
|
|
5244
|
-
const de_VirtualNodeHttpConnectionPool = (output, context) => {
|
|
5245
|
-
return {
|
|
5246
|
-
maxConnections: (0, smithy_client_1.expectInt32)(output.maxConnections),
|
|
5247
|
-
maxPendingRequests: (0, smithy_client_1.expectInt32)(output.maxPendingRequests),
|
|
5248
|
-
};
|
|
5249
|
-
};
|
|
5250
|
-
const de_VirtualNodeList = (output, context) => {
|
|
5251
|
-
const retVal = (output || [])
|
|
5252
|
-
.filter((e) => e != null)
|
|
5253
|
-
.map((entry) => {
|
|
5254
|
-
if (entry === null) {
|
|
5255
|
-
return null;
|
|
5256
|
-
}
|
|
5257
|
-
return de_VirtualNodeRef(entry, context);
|
|
5258
|
-
});
|
|
5259
|
-
return retVal;
|
|
5260
|
-
};
|
|
5261
|
-
const de_VirtualNodeRef = (output, context) => {
|
|
5262
|
-
return {
|
|
5263
|
-
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
5264
|
-
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
5265
|
-
lastUpdatedAt: output.lastUpdatedAt != null
|
|
5266
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt)))
|
|
5267
|
-
: undefined,
|
|
5268
|
-
meshName: (0, smithy_client_1.expectString)(output.meshName),
|
|
5269
|
-
meshOwner: (0, smithy_client_1.expectString)(output.meshOwner),
|
|
5270
|
-
resourceOwner: (0, smithy_client_1.expectString)(output.resourceOwner),
|
|
5271
|
-
version: (0, smithy_client_1.expectLong)(output.version),
|
|
5272
|
-
virtualNodeName: (0, smithy_client_1.expectString)(output.virtualNodeName),
|
|
5273
|
-
};
|
|
5274
|
-
};
|
|
5275
|
-
const de_VirtualNodeServiceProvider = (output, context) => {
|
|
5276
|
-
return {
|
|
5277
|
-
virtualNodeName: (0, smithy_client_1.expectString)(output.virtualNodeName),
|
|
5278
|
-
};
|
|
5279
|
-
};
|
|
5280
|
-
const de_VirtualNodeSpec = (output, context) => {
|
|
5281
|
-
return {
|
|
5282
|
-
backendDefaults: output.backendDefaults != null ? de_BackendDefaults(output.backendDefaults, context) : undefined,
|
|
5283
|
-
backends: output.backends != null ? de_Backends(output.backends, context) : undefined,
|
|
5284
|
-
listeners: output.listeners != null ? de_Listeners(output.listeners, context) : undefined,
|
|
5285
|
-
logging: output.logging != null ? de_Logging(output.logging, context) : undefined,
|
|
5286
|
-
serviceDiscovery: output.serviceDiscovery != null
|
|
5287
|
-
? de_ServiceDiscovery((0, smithy_client_1.expectUnion)(output.serviceDiscovery), context)
|
|
5288
|
-
: undefined,
|
|
5289
|
-
};
|
|
5290
|
-
};
|
|
5291
|
-
const de_VirtualNodeStatus = (output, context) => {
|
|
5292
|
-
return {
|
|
5293
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
5294
|
-
};
|
|
5295
|
-
};
|
|
5296
|
-
const de_VirtualNodeTcpConnectionPool = (output, context) => {
|
|
5297
|
-
return {
|
|
5298
|
-
maxConnections: (0, smithy_client_1.expectInt32)(output.maxConnections),
|
|
5299
|
-
};
|
|
5300
|
-
};
|
|
5301
|
-
const de_VirtualRouterData = (output, context) => {
|
|
5302
|
-
return {
|
|
5303
|
-
meshName: (0, smithy_client_1.expectString)(output.meshName),
|
|
5304
|
-
metadata: output.metadata != null ? de_ResourceMetadata(output.metadata, context) : undefined,
|
|
5305
|
-
spec: output.spec != null ? de_VirtualRouterSpec(output.spec, context) : undefined,
|
|
5306
|
-
status: output.status != null ? de_VirtualRouterStatus(output.status, context) : undefined,
|
|
5307
|
-
virtualRouterName: (0, smithy_client_1.expectString)(output.virtualRouterName),
|
|
5308
|
-
};
|
|
5309
|
-
};
|
|
5310
|
-
const de_VirtualRouterList = (output, context) => {
|
|
5311
|
-
const retVal = (output || [])
|
|
5312
|
-
.filter((e) => e != null)
|
|
5313
|
-
.map((entry) => {
|
|
5314
|
-
if (entry === null) {
|
|
5315
|
-
return null;
|
|
5316
|
-
}
|
|
5317
|
-
return de_VirtualRouterRef(entry, context);
|
|
5318
|
-
});
|
|
5319
|
-
return retVal;
|
|
5320
|
-
};
|
|
5321
|
-
const de_VirtualRouterListener = (output, context) => {
|
|
5322
|
-
return {
|
|
5323
|
-
portMapping: output.portMapping != null ? de_PortMapping(output.portMapping, context) : undefined,
|
|
5324
|
-
};
|
|
5325
|
-
};
|
|
5326
|
-
const de_VirtualRouterListeners = (output, context) => {
|
|
5327
|
-
const retVal = (output || [])
|
|
5328
|
-
.filter((e) => e != null)
|
|
5329
|
-
.map((entry) => {
|
|
5330
|
-
if (entry === null) {
|
|
5331
|
-
return null;
|
|
5332
|
-
}
|
|
5333
|
-
return de_VirtualRouterListener(entry, context);
|
|
5334
|
-
});
|
|
5335
|
-
return retVal;
|
|
5336
|
-
};
|
|
5337
|
-
const de_VirtualRouterRef = (output, context) => {
|
|
5338
|
-
return {
|
|
5339
|
-
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
5340
|
-
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
5341
|
-
lastUpdatedAt: output.lastUpdatedAt != null
|
|
5342
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt)))
|
|
5343
|
-
: undefined,
|
|
5344
|
-
meshName: (0, smithy_client_1.expectString)(output.meshName),
|
|
5345
|
-
meshOwner: (0, smithy_client_1.expectString)(output.meshOwner),
|
|
5346
|
-
resourceOwner: (0, smithy_client_1.expectString)(output.resourceOwner),
|
|
5347
|
-
version: (0, smithy_client_1.expectLong)(output.version),
|
|
5348
|
-
virtualRouterName: (0, smithy_client_1.expectString)(output.virtualRouterName),
|
|
5349
|
-
};
|
|
5350
|
-
};
|
|
5351
|
-
const de_VirtualRouterServiceProvider = (output, context) => {
|
|
5352
|
-
return {
|
|
5353
|
-
virtualRouterName: (0, smithy_client_1.expectString)(output.virtualRouterName),
|
|
5354
|
-
};
|
|
5355
|
-
};
|
|
5356
|
-
const de_VirtualRouterSpec = (output, context) => {
|
|
5357
|
-
return {
|
|
5358
|
-
listeners: output.listeners != null ? de_VirtualRouterListeners(output.listeners, context) : undefined,
|
|
5359
|
-
};
|
|
5360
|
-
};
|
|
5361
|
-
const de_VirtualRouterStatus = (output, context) => {
|
|
5362
|
-
return {
|
|
5363
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
5364
|
-
};
|
|
5365
|
-
};
|
|
5366
|
-
const de_VirtualServiceBackend = (output, context) => {
|
|
5367
|
-
return {
|
|
5368
|
-
clientPolicy: output.clientPolicy != null ? de_ClientPolicy(output.clientPolicy, context) : undefined,
|
|
5369
|
-
virtualServiceName: (0, smithy_client_1.expectString)(output.virtualServiceName),
|
|
5370
|
-
};
|
|
5371
|
-
};
|
|
5372
|
-
const de_VirtualServiceData = (output, context) => {
|
|
5373
|
-
return {
|
|
5374
|
-
meshName: (0, smithy_client_1.expectString)(output.meshName),
|
|
5375
|
-
metadata: output.metadata != null ? de_ResourceMetadata(output.metadata, context) : undefined,
|
|
5376
|
-
spec: output.spec != null ? de_VirtualServiceSpec(output.spec, context) : undefined,
|
|
5377
|
-
status: output.status != null ? de_VirtualServiceStatus(output.status, context) : undefined,
|
|
5378
|
-
virtualServiceName: (0, smithy_client_1.expectString)(output.virtualServiceName),
|
|
5379
|
-
};
|
|
5380
|
-
};
|
|
5381
|
-
const de_VirtualServiceList = (output, context) => {
|
|
5382
|
-
const retVal = (output || [])
|
|
5383
|
-
.filter((e) => e != null)
|
|
5384
|
-
.map((entry) => {
|
|
5385
|
-
if (entry === null) {
|
|
5386
|
-
return null;
|
|
5387
|
-
}
|
|
5388
|
-
return de_VirtualServiceRef(entry, context);
|
|
5389
|
-
});
|
|
5390
|
-
return retVal;
|
|
5391
|
-
};
|
|
5392
|
-
const de_VirtualServiceProvider = (output, context) => {
|
|
5393
|
-
if (output.virtualNode != null) {
|
|
5394
|
-
return {
|
|
5395
|
-
virtualNode: de_VirtualNodeServiceProvider(output.virtualNode, context),
|
|
5396
|
-
};
|
|
5397
|
-
}
|
|
5398
|
-
if (output.virtualRouter != null) {
|
|
5399
|
-
return {
|
|
5400
|
-
virtualRouter: de_VirtualRouterServiceProvider(output.virtualRouter, context),
|
|
5401
|
-
};
|
|
5402
|
-
}
|
|
5403
|
-
return { $unknown: Object.entries(output)[0] };
|
|
5404
|
-
};
|
|
5405
|
-
const de_VirtualServiceRef = (output, context) => {
|
|
5406
|
-
return {
|
|
5407
|
-
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
5408
|
-
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
5409
|
-
lastUpdatedAt: output.lastUpdatedAt != null
|
|
5410
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt)))
|
|
5411
|
-
: undefined,
|
|
5412
|
-
meshName: (0, smithy_client_1.expectString)(output.meshName),
|
|
5413
|
-
meshOwner: (0, smithy_client_1.expectString)(output.meshOwner),
|
|
5414
|
-
resourceOwner: (0, smithy_client_1.expectString)(output.resourceOwner),
|
|
5415
|
-
version: (0, smithy_client_1.expectLong)(output.version),
|
|
5416
|
-
virtualServiceName: (0, smithy_client_1.expectString)(output.virtualServiceName),
|
|
5417
|
-
};
|
|
5418
|
-
};
|
|
5419
|
-
const de_VirtualServiceSpec = (output, context) => {
|
|
5420
|
-
return {
|
|
5421
|
-
provider: output.provider != null ? de_VirtualServiceProvider((0, smithy_client_1.expectUnion)(output.provider), context) : undefined,
|
|
5422
|
-
};
|
|
5423
|
-
};
|
|
5424
|
-
const de_VirtualServiceStatus = (output, context) => {
|
|
5425
|
-
return {
|
|
5426
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
5427
|
-
};
|
|
5428
|
-
};
|
|
5429
|
-
const de_WeightedTarget = (output, context) => {
|
|
5430
|
-
return {
|
|
5431
|
-
port: (0, smithy_client_1.expectInt32)(output.port),
|
|
5432
|
-
virtualNode: (0, smithy_client_1.expectString)(output.virtualNode),
|
|
5433
|
-
weight: (0, smithy_client_1.expectInt32)(output.weight),
|
|
5434
|
-
};
|
|
5435
|
-
};
|
|
5436
|
-
const de_WeightedTargets = (output, context) => {
|
|
5437
|
-
const retVal = (output || [])
|
|
5438
|
-
.filter((e) => e != null)
|
|
5439
|
-
.map((entry) => {
|
|
5440
|
-
if (entry === null) {
|
|
5441
|
-
return null;
|
|
5442
|
-
}
|
|
5443
|
-
return de_WeightedTarget(entry, context);
|
|
5444
|
-
});
|
|
5445
|
-
return retVal;
|
|
5446
|
-
};
|
|
5447
3200
|
const deserializeMetadata = (output) => ({
|
|
5448
3201
|
httpStatusCode: output.statusCode,
|
|
5449
3202
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|