@aws-sdk/client-app-mesh 3.312.0 → 3.316.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/AppMesh.js +42 -532
- package/dist-cjs/protocols/Aws_restJson1.js +437 -2684
- package/dist-es/AppMesh.js +42 -532
- package/dist-es/protocols/Aws_restJson1.js +356 -2603
- package/dist-types/AppMesh.d.ts +59 -159
- package/dist-types/ts3.4/AppMesh.d.ts +2 -1
- package/package.json +6 -6
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException,
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { AppMeshServiceException as __BaseException } from "../models/AppMeshServiceException";
|
|
5
|
-
import {
|
|
5
|
+
import { BadRequestException, ConflictException, ForbiddenException, InternalServerErrorException, LimitExceededException, NotFoundException, ResourceInUseException, ServiceUnavailableException, TooManyRequestsException, TooManyTagsException, } from "../models/models_0";
|
|
6
6
|
export const se_CreateGatewayRouteCommand = async (input, context) => {
|
|
7
7
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
8
8
|
const headers = {
|
|
@@ -16,12 +16,12 @@ export const se_CreateGatewayRouteCommand = async (input, context) => {
|
|
|
16
16
|
meshOwner: [, input.meshOwner],
|
|
17
17
|
});
|
|
18
18
|
let body;
|
|
19
|
-
body = JSON.stringify({
|
|
20
|
-
clientToken:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
});
|
|
19
|
+
body = JSON.stringify(take(input, {
|
|
20
|
+
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
21
|
+
gatewayRouteName: [],
|
|
22
|
+
spec: (_) => _json(_),
|
|
23
|
+
tags: (_) => _json(_),
|
|
24
|
+
}));
|
|
25
25
|
return new __HttpRequest({
|
|
26
26
|
protocol,
|
|
27
27
|
hostname,
|
|
@@ -40,12 +40,12 @@ export const se_CreateMeshCommand = async (input, context) => {
|
|
|
40
40
|
};
|
|
41
41
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20190125/meshes";
|
|
42
42
|
let body;
|
|
43
|
-
body = JSON.stringify({
|
|
44
|
-
clientToken:
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
});
|
|
43
|
+
body = JSON.stringify(take(input, {
|
|
44
|
+
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
45
|
+
meshName: [],
|
|
46
|
+
spec: (_) => _json(_),
|
|
47
|
+
tags: (_) => _json(_),
|
|
48
|
+
}));
|
|
49
49
|
return new __HttpRequest({
|
|
50
50
|
protocol,
|
|
51
51
|
hostname,
|
|
@@ -69,12 +69,12 @@ export const se_CreateRouteCommand = async (input, context) => {
|
|
|
69
69
|
meshOwner: [, input.meshOwner],
|
|
70
70
|
});
|
|
71
71
|
let body;
|
|
72
|
-
body = JSON.stringify({
|
|
73
|
-
clientToken:
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
});
|
|
72
|
+
body = JSON.stringify(take(input, {
|
|
73
|
+
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
74
|
+
routeName: [],
|
|
75
|
+
spec: (_) => _json(_),
|
|
76
|
+
tags: (_) => _json(_),
|
|
77
|
+
}));
|
|
78
78
|
return new __HttpRequest({
|
|
79
79
|
protocol,
|
|
80
80
|
hostname,
|
|
@@ -98,12 +98,12 @@ export const se_CreateVirtualGatewayCommand = async (input, context) => {
|
|
|
98
98
|
meshOwner: [, input.meshOwner],
|
|
99
99
|
});
|
|
100
100
|
let body;
|
|
101
|
-
body = JSON.stringify({
|
|
102
|
-
clientToken:
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
});
|
|
101
|
+
body = JSON.stringify(take(input, {
|
|
102
|
+
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
103
|
+
spec: (_) => _json(_),
|
|
104
|
+
tags: (_) => _json(_),
|
|
105
|
+
virtualGatewayName: [],
|
|
106
|
+
}));
|
|
107
107
|
return new __HttpRequest({
|
|
108
108
|
protocol,
|
|
109
109
|
hostname,
|
|
@@ -126,12 +126,12 @@ export const se_CreateVirtualNodeCommand = async (input, context) => {
|
|
|
126
126
|
meshOwner: [, input.meshOwner],
|
|
127
127
|
});
|
|
128
128
|
let body;
|
|
129
|
-
body = JSON.stringify({
|
|
130
|
-
clientToken:
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
});
|
|
129
|
+
body = JSON.stringify(take(input, {
|
|
130
|
+
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
131
|
+
spec: (_) => _json(_),
|
|
132
|
+
tags: (_) => _json(_),
|
|
133
|
+
virtualNodeName: [],
|
|
134
|
+
}));
|
|
135
135
|
return new __HttpRequest({
|
|
136
136
|
protocol,
|
|
137
137
|
hostname,
|
|
@@ -155,12 +155,12 @@ export const se_CreateVirtualRouterCommand = async (input, context) => {
|
|
|
155
155
|
meshOwner: [, input.meshOwner],
|
|
156
156
|
});
|
|
157
157
|
let body;
|
|
158
|
-
body = JSON.stringify({
|
|
159
|
-
clientToken:
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
});
|
|
158
|
+
body = JSON.stringify(take(input, {
|
|
159
|
+
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
160
|
+
spec: (_) => _json(_),
|
|
161
|
+
tags: (_) => _json(_),
|
|
162
|
+
virtualRouterName: [],
|
|
163
|
+
}));
|
|
164
164
|
return new __HttpRequest({
|
|
165
165
|
protocol,
|
|
166
166
|
hostname,
|
|
@@ -184,12 +184,12 @@ export const se_CreateVirtualServiceCommand = async (input, context) => {
|
|
|
184
184
|
meshOwner: [, input.meshOwner],
|
|
185
185
|
});
|
|
186
186
|
let body;
|
|
187
|
-
body = JSON.stringify({
|
|
188
|
-
clientToken:
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
});
|
|
187
|
+
body = JSON.stringify(take(input, {
|
|
188
|
+
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
189
|
+
spec: (_) => _json(_),
|
|
190
|
+
tags: (_) => _json(_),
|
|
191
|
+
virtualServiceName: [],
|
|
192
|
+
}));
|
|
193
193
|
return new __HttpRequest({
|
|
194
194
|
protocol,
|
|
195
195
|
hostname,
|
|
@@ -695,9 +695,9 @@ export const se_TagResourceCommand = async (input, context) => {
|
|
|
695
695
|
resourceArn: [, __expectNonNull(input.resourceArn, `resourceArn`)],
|
|
696
696
|
});
|
|
697
697
|
let body;
|
|
698
|
-
body = JSON.stringify({
|
|
699
|
-
|
|
700
|
-
});
|
|
698
|
+
body = JSON.stringify(take(input, {
|
|
699
|
+
tags: (_) => _json(_),
|
|
700
|
+
}));
|
|
701
701
|
return new __HttpRequest({
|
|
702
702
|
protocol,
|
|
703
703
|
hostname,
|
|
@@ -719,9 +719,9 @@ export const se_UntagResourceCommand = async (input, context) => {
|
|
|
719
719
|
resourceArn: [, __expectNonNull(input.resourceArn, `resourceArn`)],
|
|
720
720
|
});
|
|
721
721
|
let body;
|
|
722
|
-
body = JSON.stringify({
|
|
723
|
-
|
|
724
|
-
});
|
|
722
|
+
body = JSON.stringify(take(input, {
|
|
723
|
+
tagKeys: (_) => _json(_),
|
|
724
|
+
}));
|
|
725
725
|
return new __HttpRequest({
|
|
726
726
|
protocol,
|
|
727
727
|
hostname,
|
|
@@ -747,10 +747,10 @@ export const se_UpdateGatewayRouteCommand = async (input, context) => {
|
|
|
747
747
|
meshOwner: [, input.meshOwner],
|
|
748
748
|
});
|
|
749
749
|
let body;
|
|
750
|
-
body = JSON.stringify({
|
|
751
|
-
clientToken:
|
|
752
|
-
|
|
753
|
-
});
|
|
750
|
+
body = JSON.stringify(take(input, {
|
|
751
|
+
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
752
|
+
spec: (_) => _json(_),
|
|
753
|
+
}));
|
|
754
754
|
return new __HttpRequest({
|
|
755
755
|
protocol,
|
|
756
756
|
hostname,
|
|
@@ -770,10 +770,10 @@ export const se_UpdateMeshCommand = async (input, context) => {
|
|
|
770
770
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20190125/meshes/{meshName}";
|
|
771
771
|
resolvedPath = __resolvedPath(resolvedPath, input, "meshName", () => input.meshName, "{meshName}", false);
|
|
772
772
|
let body;
|
|
773
|
-
body = JSON.stringify({
|
|
774
|
-
clientToken:
|
|
775
|
-
|
|
776
|
-
});
|
|
773
|
+
body = JSON.stringify(take(input, {
|
|
774
|
+
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
775
|
+
spec: (_) => _json(_),
|
|
776
|
+
}));
|
|
777
777
|
return new __HttpRequest({
|
|
778
778
|
protocol,
|
|
779
779
|
hostname,
|
|
@@ -798,10 +798,10 @@ export const se_UpdateRouteCommand = async (input, context) => {
|
|
|
798
798
|
meshOwner: [, input.meshOwner],
|
|
799
799
|
});
|
|
800
800
|
let body;
|
|
801
|
-
body = JSON.stringify({
|
|
802
|
-
clientToken:
|
|
803
|
-
|
|
804
|
-
});
|
|
801
|
+
body = JSON.stringify(take(input, {
|
|
802
|
+
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
803
|
+
spec: (_) => _json(_),
|
|
804
|
+
}));
|
|
805
805
|
return new __HttpRequest({
|
|
806
806
|
protocol,
|
|
807
807
|
hostname,
|
|
@@ -826,10 +826,10 @@ export const se_UpdateVirtualGatewayCommand = async (input, context) => {
|
|
|
826
826
|
meshOwner: [, input.meshOwner],
|
|
827
827
|
});
|
|
828
828
|
let body;
|
|
829
|
-
body = JSON.stringify({
|
|
830
|
-
clientToken:
|
|
831
|
-
|
|
832
|
-
});
|
|
829
|
+
body = JSON.stringify(take(input, {
|
|
830
|
+
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
831
|
+
spec: (_) => _json(_),
|
|
832
|
+
}));
|
|
833
833
|
return new __HttpRequest({
|
|
834
834
|
protocol,
|
|
835
835
|
hostname,
|
|
@@ -854,10 +854,10 @@ export const se_UpdateVirtualNodeCommand = async (input, context) => {
|
|
|
854
854
|
meshOwner: [, input.meshOwner],
|
|
855
855
|
});
|
|
856
856
|
let body;
|
|
857
|
-
body = JSON.stringify({
|
|
858
|
-
clientToken:
|
|
859
|
-
|
|
860
|
-
});
|
|
857
|
+
body = JSON.stringify(take(input, {
|
|
858
|
+
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
859
|
+
spec: (_) => _json(_),
|
|
860
|
+
}));
|
|
861
861
|
return new __HttpRequest({
|
|
862
862
|
protocol,
|
|
863
863
|
hostname,
|
|
@@ -882,10 +882,10 @@ export const se_UpdateVirtualRouterCommand = async (input, context) => {
|
|
|
882
882
|
meshOwner: [, input.meshOwner],
|
|
883
883
|
});
|
|
884
884
|
let body;
|
|
885
|
-
body = JSON.stringify({
|
|
886
|
-
clientToken:
|
|
887
|
-
|
|
888
|
-
});
|
|
885
|
+
body = JSON.stringify(take(input, {
|
|
886
|
+
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
887
|
+
spec: (_) => _json(_),
|
|
888
|
+
}));
|
|
889
889
|
return new __HttpRequest({
|
|
890
890
|
protocol,
|
|
891
891
|
hostname,
|
|
@@ -910,10 +910,10 @@ export const se_UpdateVirtualServiceCommand = async (input, context) => {
|
|
|
910
910
|
meshOwner: [, input.meshOwner],
|
|
911
911
|
});
|
|
912
912
|
let body;
|
|
913
|
-
body = JSON.stringify({
|
|
914
|
-
clientToken:
|
|
915
|
-
|
|
916
|
-
});
|
|
913
|
+
body = JSON.stringify(take(input, {
|
|
914
|
+
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
915
|
+
spec: (_) => _json(_),
|
|
916
|
+
}));
|
|
917
917
|
return new __HttpRequest({
|
|
918
918
|
protocol,
|
|
919
919
|
hostname,
|
|
@@ -969,10 +969,9 @@ const de_CreateGatewayRouteCommandError = async (output, context) => {
|
|
|
969
969
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
970
970
|
default:
|
|
971
971
|
const parsedBody = parsedOutput.body;
|
|
972
|
-
throwDefaultError({
|
|
972
|
+
return throwDefaultError({
|
|
973
973
|
output,
|
|
974
974
|
parsedBody,
|
|
975
|
-
exceptionCtor: __BaseException,
|
|
976
975
|
errorCode,
|
|
977
976
|
});
|
|
978
977
|
}
|
|
@@ -1021,10 +1020,9 @@ const de_CreateMeshCommandError = async (output, context) => {
|
|
|
1021
1020
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1022
1021
|
default:
|
|
1023
1022
|
const parsedBody = parsedOutput.body;
|
|
1024
|
-
throwDefaultError({
|
|
1023
|
+
return throwDefaultError({
|
|
1025
1024
|
output,
|
|
1026
1025
|
parsedBody,
|
|
1027
|
-
exceptionCtor: __BaseException,
|
|
1028
1026
|
errorCode,
|
|
1029
1027
|
});
|
|
1030
1028
|
}
|
|
@@ -1073,10 +1071,9 @@ const de_CreateRouteCommandError = async (output, context) => {
|
|
|
1073
1071
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1074
1072
|
default:
|
|
1075
1073
|
const parsedBody = parsedOutput.body;
|
|
1076
|
-
throwDefaultError({
|
|
1074
|
+
return throwDefaultError({
|
|
1077
1075
|
output,
|
|
1078
1076
|
parsedBody,
|
|
1079
|
-
exceptionCtor: __BaseException,
|
|
1080
1077
|
errorCode,
|
|
1081
1078
|
});
|
|
1082
1079
|
}
|
|
@@ -1125,10 +1122,9 @@ const de_CreateVirtualGatewayCommandError = async (output, context) => {
|
|
|
1125
1122
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1126
1123
|
default:
|
|
1127
1124
|
const parsedBody = parsedOutput.body;
|
|
1128
|
-
throwDefaultError({
|
|
1125
|
+
return throwDefaultError({
|
|
1129
1126
|
output,
|
|
1130
1127
|
parsedBody,
|
|
1131
|
-
exceptionCtor: __BaseException,
|
|
1132
1128
|
errorCode,
|
|
1133
1129
|
});
|
|
1134
1130
|
}
|
|
@@ -1177,10 +1173,9 @@ const de_CreateVirtualNodeCommandError = async (output, context) => {
|
|
|
1177
1173
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1178
1174
|
default:
|
|
1179
1175
|
const parsedBody = parsedOutput.body;
|
|
1180
|
-
throwDefaultError({
|
|
1176
|
+
return throwDefaultError({
|
|
1181
1177
|
output,
|
|
1182
1178
|
parsedBody,
|
|
1183
|
-
exceptionCtor: __BaseException,
|
|
1184
1179
|
errorCode,
|
|
1185
1180
|
});
|
|
1186
1181
|
}
|
|
@@ -1229,10 +1224,9 @@ const de_CreateVirtualRouterCommandError = async (output, context) => {
|
|
|
1229
1224
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1230
1225
|
default:
|
|
1231
1226
|
const parsedBody = parsedOutput.body;
|
|
1232
|
-
throwDefaultError({
|
|
1227
|
+
return throwDefaultError({
|
|
1233
1228
|
output,
|
|
1234
1229
|
parsedBody,
|
|
1235
|
-
exceptionCtor: __BaseException,
|
|
1236
1230
|
errorCode,
|
|
1237
1231
|
});
|
|
1238
1232
|
}
|
|
@@ -1281,10 +1275,9 @@ const de_CreateVirtualServiceCommandError = async (output, context) => {
|
|
|
1281
1275
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1282
1276
|
default:
|
|
1283
1277
|
const parsedBody = parsedOutput.body;
|
|
1284
|
-
throwDefaultError({
|
|
1278
|
+
return throwDefaultError({
|
|
1285
1279
|
output,
|
|
1286
1280
|
parsedBody,
|
|
1287
|
-
exceptionCtor: __BaseException,
|
|
1288
1281
|
errorCode,
|
|
1289
1282
|
});
|
|
1290
1283
|
}
|
|
@@ -1330,10 +1323,9 @@ const de_DeleteGatewayRouteCommandError = async (output, context) => {
|
|
|
1330
1323
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1331
1324
|
default:
|
|
1332
1325
|
const parsedBody = parsedOutput.body;
|
|
1333
|
-
throwDefaultError({
|
|
1326
|
+
return throwDefaultError({
|
|
1334
1327
|
output,
|
|
1335
1328
|
parsedBody,
|
|
1336
|
-
exceptionCtor: __BaseException,
|
|
1337
1329
|
errorCode,
|
|
1338
1330
|
});
|
|
1339
1331
|
}
|
|
@@ -1379,10 +1371,9 @@ const de_DeleteMeshCommandError = async (output, context) => {
|
|
|
1379
1371
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1380
1372
|
default:
|
|
1381
1373
|
const parsedBody = parsedOutput.body;
|
|
1382
|
-
throwDefaultError({
|
|
1374
|
+
return throwDefaultError({
|
|
1383
1375
|
output,
|
|
1384
1376
|
parsedBody,
|
|
1385
|
-
exceptionCtor: __BaseException,
|
|
1386
1377
|
errorCode,
|
|
1387
1378
|
});
|
|
1388
1379
|
}
|
|
@@ -1428,10 +1419,9 @@ const de_DeleteRouteCommandError = async (output, context) => {
|
|
|
1428
1419
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1429
1420
|
default:
|
|
1430
1421
|
const parsedBody = parsedOutput.body;
|
|
1431
|
-
throwDefaultError({
|
|
1422
|
+
return throwDefaultError({
|
|
1432
1423
|
output,
|
|
1433
1424
|
parsedBody,
|
|
1434
|
-
exceptionCtor: __BaseException,
|
|
1435
1425
|
errorCode,
|
|
1436
1426
|
});
|
|
1437
1427
|
}
|
|
@@ -1477,10 +1467,9 @@ const de_DeleteVirtualGatewayCommandError = async (output, context) => {
|
|
|
1477
1467
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1478
1468
|
default:
|
|
1479
1469
|
const parsedBody = parsedOutput.body;
|
|
1480
|
-
throwDefaultError({
|
|
1470
|
+
return throwDefaultError({
|
|
1481
1471
|
output,
|
|
1482
1472
|
parsedBody,
|
|
1483
|
-
exceptionCtor: __BaseException,
|
|
1484
1473
|
errorCode,
|
|
1485
1474
|
});
|
|
1486
1475
|
}
|
|
@@ -1526,10 +1515,9 @@ const de_DeleteVirtualNodeCommandError = async (output, context) => {
|
|
|
1526
1515
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1527
1516
|
default:
|
|
1528
1517
|
const parsedBody = parsedOutput.body;
|
|
1529
|
-
throwDefaultError({
|
|
1518
|
+
return throwDefaultError({
|
|
1530
1519
|
output,
|
|
1531
1520
|
parsedBody,
|
|
1532
|
-
exceptionCtor: __BaseException,
|
|
1533
1521
|
errorCode,
|
|
1534
1522
|
});
|
|
1535
1523
|
}
|
|
@@ -1575,10 +1563,9 @@ const de_DeleteVirtualRouterCommandError = async (output, context) => {
|
|
|
1575
1563
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1576
1564
|
default:
|
|
1577
1565
|
const parsedBody = parsedOutput.body;
|
|
1578
|
-
throwDefaultError({
|
|
1566
|
+
return throwDefaultError({
|
|
1579
1567
|
output,
|
|
1580
1568
|
parsedBody,
|
|
1581
|
-
exceptionCtor: __BaseException,
|
|
1582
1569
|
errorCode,
|
|
1583
1570
|
});
|
|
1584
1571
|
}
|
|
@@ -1624,10 +1611,9 @@ const de_DeleteVirtualServiceCommandError = async (output, context) => {
|
|
|
1624
1611
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1625
1612
|
default:
|
|
1626
1613
|
const parsedBody = parsedOutput.body;
|
|
1627
|
-
throwDefaultError({
|
|
1614
|
+
return throwDefaultError({
|
|
1628
1615
|
output,
|
|
1629
1616
|
parsedBody,
|
|
1630
|
-
exceptionCtor: __BaseException,
|
|
1631
1617
|
errorCode,
|
|
1632
1618
|
});
|
|
1633
1619
|
}
|
|
@@ -1670,10 +1656,9 @@ const de_DescribeGatewayRouteCommandError = async (output, context) => {
|
|
|
1670
1656
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1671
1657
|
default:
|
|
1672
1658
|
const parsedBody = parsedOutput.body;
|
|
1673
|
-
throwDefaultError({
|
|
1659
|
+
return throwDefaultError({
|
|
1674
1660
|
output,
|
|
1675
1661
|
parsedBody,
|
|
1676
|
-
exceptionCtor: __BaseException,
|
|
1677
1662
|
errorCode,
|
|
1678
1663
|
});
|
|
1679
1664
|
}
|
|
@@ -1716,10 +1701,9 @@ const de_DescribeMeshCommandError = async (output, context) => {
|
|
|
1716
1701
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1717
1702
|
default:
|
|
1718
1703
|
const parsedBody = parsedOutput.body;
|
|
1719
|
-
throwDefaultError({
|
|
1704
|
+
return throwDefaultError({
|
|
1720
1705
|
output,
|
|
1721
1706
|
parsedBody,
|
|
1722
|
-
exceptionCtor: __BaseException,
|
|
1723
1707
|
errorCode,
|
|
1724
1708
|
});
|
|
1725
1709
|
}
|
|
@@ -1762,10 +1746,9 @@ const de_DescribeRouteCommandError = async (output, context) => {
|
|
|
1762
1746
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1763
1747
|
default:
|
|
1764
1748
|
const parsedBody = parsedOutput.body;
|
|
1765
|
-
throwDefaultError({
|
|
1749
|
+
return throwDefaultError({
|
|
1766
1750
|
output,
|
|
1767
1751
|
parsedBody,
|
|
1768
|
-
exceptionCtor: __BaseException,
|
|
1769
1752
|
errorCode,
|
|
1770
1753
|
});
|
|
1771
1754
|
}
|
|
@@ -1808,10 +1791,9 @@ const de_DescribeVirtualGatewayCommandError = async (output, context) => {
|
|
|
1808
1791
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1809
1792
|
default:
|
|
1810
1793
|
const parsedBody = parsedOutput.body;
|
|
1811
|
-
throwDefaultError({
|
|
1794
|
+
return throwDefaultError({
|
|
1812
1795
|
output,
|
|
1813
1796
|
parsedBody,
|
|
1814
|
-
exceptionCtor: __BaseException,
|
|
1815
1797
|
errorCode,
|
|
1816
1798
|
});
|
|
1817
1799
|
}
|
|
@@ -1854,10 +1836,9 @@ const de_DescribeVirtualNodeCommandError = async (output, context) => {
|
|
|
1854
1836
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1855
1837
|
default:
|
|
1856
1838
|
const parsedBody = parsedOutput.body;
|
|
1857
|
-
throwDefaultError({
|
|
1839
|
+
return throwDefaultError({
|
|
1858
1840
|
output,
|
|
1859
1841
|
parsedBody,
|
|
1860
|
-
exceptionCtor: __BaseException,
|
|
1861
1842
|
errorCode,
|
|
1862
1843
|
});
|
|
1863
1844
|
}
|
|
@@ -1900,10 +1881,9 @@ const de_DescribeVirtualRouterCommandError = async (output, context) => {
|
|
|
1900
1881
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1901
1882
|
default:
|
|
1902
1883
|
const parsedBody = parsedOutput.body;
|
|
1903
|
-
throwDefaultError({
|
|
1884
|
+
return throwDefaultError({
|
|
1904
1885
|
output,
|
|
1905
1886
|
parsedBody,
|
|
1906
|
-
exceptionCtor: __BaseException,
|
|
1907
1887
|
errorCode,
|
|
1908
1888
|
});
|
|
1909
1889
|
}
|
|
@@ -1946,10 +1926,9 @@ const de_DescribeVirtualServiceCommandError = async (output, context) => {
|
|
|
1946
1926
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1947
1927
|
default:
|
|
1948
1928
|
const parsedBody = parsedOutput.body;
|
|
1949
|
-
throwDefaultError({
|
|
1929
|
+
return throwDefaultError({
|
|
1950
1930
|
output,
|
|
1951
1931
|
parsedBody,
|
|
1952
|
-
exceptionCtor: __BaseException,
|
|
1953
1932
|
errorCode,
|
|
1954
1933
|
});
|
|
1955
1934
|
}
|
|
@@ -1962,12 +1941,11 @@ export const de_ListGatewayRoutesCommand = async (output, context) => {
|
|
|
1962
1941
|
$metadata: deserializeMetadata(output),
|
|
1963
1942
|
});
|
|
1964
1943
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
}
|
|
1944
|
+
const doc = take(data, {
|
|
1945
|
+
gatewayRoutes: (_) => de_GatewayRouteList(_, context),
|
|
1946
|
+
nextToken: __expectString,
|
|
1947
|
+
});
|
|
1948
|
+
Object.assign(contents, doc);
|
|
1971
1949
|
return contents;
|
|
1972
1950
|
};
|
|
1973
1951
|
const de_ListGatewayRoutesCommandError = async (output, context) => {
|
|
@@ -1997,10 +1975,9 @@ const de_ListGatewayRoutesCommandError = async (output, context) => {
|
|
|
1997
1975
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1998
1976
|
default:
|
|
1999
1977
|
const parsedBody = parsedOutput.body;
|
|
2000
|
-
throwDefaultError({
|
|
1978
|
+
return throwDefaultError({
|
|
2001
1979
|
output,
|
|
2002
1980
|
parsedBody,
|
|
2003
|
-
exceptionCtor: __BaseException,
|
|
2004
1981
|
errorCode,
|
|
2005
1982
|
});
|
|
2006
1983
|
}
|
|
@@ -2013,12 +1990,11 @@ export const de_ListMeshesCommand = async (output, context) => {
|
|
|
2013
1990
|
$metadata: deserializeMetadata(output),
|
|
2014
1991
|
});
|
|
2015
1992
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
}
|
|
1993
|
+
const doc = take(data, {
|
|
1994
|
+
meshes: (_) => de_MeshList(_, context),
|
|
1995
|
+
nextToken: __expectString,
|
|
1996
|
+
});
|
|
1997
|
+
Object.assign(contents, doc);
|
|
2022
1998
|
return contents;
|
|
2023
1999
|
};
|
|
2024
2000
|
const de_ListMeshesCommandError = async (output, context) => {
|
|
@@ -2048,10 +2024,9 @@ const de_ListMeshesCommandError = async (output, context) => {
|
|
|
2048
2024
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2049
2025
|
default:
|
|
2050
2026
|
const parsedBody = parsedOutput.body;
|
|
2051
|
-
throwDefaultError({
|
|
2027
|
+
return throwDefaultError({
|
|
2052
2028
|
output,
|
|
2053
2029
|
parsedBody,
|
|
2054
|
-
exceptionCtor: __BaseException,
|
|
2055
2030
|
errorCode,
|
|
2056
2031
|
});
|
|
2057
2032
|
}
|
|
@@ -2064,12 +2039,11 @@ export const de_ListRoutesCommand = async (output, context) => {
|
|
|
2064
2039
|
$metadata: deserializeMetadata(output),
|
|
2065
2040
|
});
|
|
2066
2041
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
}
|
|
2042
|
+
const doc = take(data, {
|
|
2043
|
+
nextToken: __expectString,
|
|
2044
|
+
routes: (_) => de_RouteList(_, context),
|
|
2045
|
+
});
|
|
2046
|
+
Object.assign(contents, doc);
|
|
2073
2047
|
return contents;
|
|
2074
2048
|
};
|
|
2075
2049
|
const de_ListRoutesCommandError = async (output, context) => {
|
|
@@ -2099,10 +2073,9 @@ const de_ListRoutesCommandError = async (output, context) => {
|
|
|
2099
2073
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2100
2074
|
default:
|
|
2101
2075
|
const parsedBody = parsedOutput.body;
|
|
2102
|
-
throwDefaultError({
|
|
2076
|
+
return throwDefaultError({
|
|
2103
2077
|
output,
|
|
2104
2078
|
parsedBody,
|
|
2105
|
-
exceptionCtor: __BaseException,
|
|
2106
2079
|
errorCode,
|
|
2107
2080
|
});
|
|
2108
2081
|
}
|
|
@@ -2115,12 +2088,11 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
2115
2088
|
$metadata: deserializeMetadata(output),
|
|
2116
2089
|
});
|
|
2117
2090
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
}
|
|
2091
|
+
const doc = take(data, {
|
|
2092
|
+
nextToken: __expectString,
|
|
2093
|
+
tags: _json,
|
|
2094
|
+
});
|
|
2095
|
+
Object.assign(contents, doc);
|
|
2124
2096
|
return contents;
|
|
2125
2097
|
};
|
|
2126
2098
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -2150,10 +2122,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
2150
2122
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2151
2123
|
default:
|
|
2152
2124
|
const parsedBody = parsedOutput.body;
|
|
2153
|
-
throwDefaultError({
|
|
2125
|
+
return throwDefaultError({
|
|
2154
2126
|
output,
|
|
2155
2127
|
parsedBody,
|
|
2156
|
-
exceptionCtor: __BaseException,
|
|
2157
2128
|
errorCode,
|
|
2158
2129
|
});
|
|
2159
2130
|
}
|
|
@@ -2166,12 +2137,11 @@ export const de_ListVirtualGatewaysCommand = async (output, context) => {
|
|
|
2166
2137
|
$metadata: deserializeMetadata(output),
|
|
2167
2138
|
});
|
|
2168
2139
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
}
|
|
2140
|
+
const doc = take(data, {
|
|
2141
|
+
nextToken: __expectString,
|
|
2142
|
+
virtualGateways: (_) => de_VirtualGatewayList(_, context),
|
|
2143
|
+
});
|
|
2144
|
+
Object.assign(contents, doc);
|
|
2175
2145
|
return contents;
|
|
2176
2146
|
};
|
|
2177
2147
|
const de_ListVirtualGatewaysCommandError = async (output, context) => {
|
|
@@ -2201,10 +2171,9 @@ const de_ListVirtualGatewaysCommandError = async (output, context) => {
|
|
|
2201
2171
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2202
2172
|
default:
|
|
2203
2173
|
const parsedBody = parsedOutput.body;
|
|
2204
|
-
throwDefaultError({
|
|
2174
|
+
return throwDefaultError({
|
|
2205
2175
|
output,
|
|
2206
2176
|
parsedBody,
|
|
2207
|
-
exceptionCtor: __BaseException,
|
|
2208
2177
|
errorCode,
|
|
2209
2178
|
});
|
|
2210
2179
|
}
|
|
@@ -2217,12 +2186,11 @@ export const de_ListVirtualNodesCommand = async (output, context) => {
|
|
|
2217
2186
|
$metadata: deserializeMetadata(output),
|
|
2218
2187
|
});
|
|
2219
2188
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
}
|
|
2189
|
+
const doc = take(data, {
|
|
2190
|
+
nextToken: __expectString,
|
|
2191
|
+
virtualNodes: (_) => de_VirtualNodeList(_, context),
|
|
2192
|
+
});
|
|
2193
|
+
Object.assign(contents, doc);
|
|
2226
2194
|
return contents;
|
|
2227
2195
|
};
|
|
2228
2196
|
const de_ListVirtualNodesCommandError = async (output, context) => {
|
|
@@ -2252,10 +2220,9 @@ const de_ListVirtualNodesCommandError = async (output, context) => {
|
|
|
2252
2220
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2253
2221
|
default:
|
|
2254
2222
|
const parsedBody = parsedOutput.body;
|
|
2255
|
-
throwDefaultError({
|
|
2223
|
+
return throwDefaultError({
|
|
2256
2224
|
output,
|
|
2257
2225
|
parsedBody,
|
|
2258
|
-
exceptionCtor: __BaseException,
|
|
2259
2226
|
errorCode,
|
|
2260
2227
|
});
|
|
2261
2228
|
}
|
|
@@ -2268,12 +2235,11 @@ export const de_ListVirtualRoutersCommand = async (output, context) => {
|
|
|
2268
2235
|
$metadata: deserializeMetadata(output),
|
|
2269
2236
|
});
|
|
2270
2237
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
}
|
|
2238
|
+
const doc = take(data, {
|
|
2239
|
+
nextToken: __expectString,
|
|
2240
|
+
virtualRouters: (_) => de_VirtualRouterList(_, context),
|
|
2241
|
+
});
|
|
2242
|
+
Object.assign(contents, doc);
|
|
2277
2243
|
return contents;
|
|
2278
2244
|
};
|
|
2279
2245
|
const de_ListVirtualRoutersCommandError = async (output, context) => {
|
|
@@ -2303,10 +2269,9 @@ const de_ListVirtualRoutersCommandError = async (output, context) => {
|
|
|
2303
2269
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2304
2270
|
default:
|
|
2305
2271
|
const parsedBody = parsedOutput.body;
|
|
2306
|
-
throwDefaultError({
|
|
2272
|
+
return throwDefaultError({
|
|
2307
2273
|
output,
|
|
2308
2274
|
parsedBody,
|
|
2309
|
-
exceptionCtor: __BaseException,
|
|
2310
2275
|
errorCode,
|
|
2311
2276
|
});
|
|
2312
2277
|
}
|
|
@@ -2319,12 +2284,11 @@ export const de_ListVirtualServicesCommand = async (output, context) => {
|
|
|
2319
2284
|
$metadata: deserializeMetadata(output),
|
|
2320
2285
|
});
|
|
2321
2286
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
}
|
|
2287
|
+
const doc = take(data, {
|
|
2288
|
+
nextToken: __expectString,
|
|
2289
|
+
virtualServices: (_) => de_VirtualServiceList(_, context),
|
|
2290
|
+
});
|
|
2291
|
+
Object.assign(contents, doc);
|
|
2328
2292
|
return contents;
|
|
2329
2293
|
};
|
|
2330
2294
|
const de_ListVirtualServicesCommandError = async (output, context) => {
|
|
@@ -2354,10 +2318,9 @@ const de_ListVirtualServicesCommandError = async (output, context) => {
|
|
|
2354
2318
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2355
2319
|
default:
|
|
2356
2320
|
const parsedBody = parsedOutput.body;
|
|
2357
|
-
throwDefaultError({
|
|
2321
|
+
return throwDefaultError({
|
|
2358
2322
|
output,
|
|
2359
2323
|
parsedBody,
|
|
2360
|
-
exceptionCtor: __BaseException,
|
|
2361
2324
|
errorCode,
|
|
2362
2325
|
});
|
|
2363
2326
|
}
|
|
@@ -2402,10 +2365,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
2402
2365
|
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
2403
2366
|
default:
|
|
2404
2367
|
const parsedBody = parsedOutput.body;
|
|
2405
|
-
throwDefaultError({
|
|
2368
|
+
return throwDefaultError({
|
|
2406
2369
|
output,
|
|
2407
2370
|
parsedBody,
|
|
2408
|
-
exceptionCtor: __BaseException,
|
|
2409
2371
|
errorCode,
|
|
2410
2372
|
});
|
|
2411
2373
|
}
|
|
@@ -2447,10 +2409,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
2447
2409
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2448
2410
|
default:
|
|
2449
2411
|
const parsedBody = parsedOutput.body;
|
|
2450
|
-
throwDefaultError({
|
|
2412
|
+
return throwDefaultError({
|
|
2451
2413
|
output,
|
|
2452
2414
|
parsedBody,
|
|
2453
|
-
exceptionCtor: __BaseException,
|
|
2454
2415
|
errorCode,
|
|
2455
2416
|
});
|
|
2456
2417
|
}
|
|
@@ -2499,10 +2460,9 @@ const de_UpdateGatewayRouteCommandError = async (output, context) => {
|
|
|
2499
2460
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2500
2461
|
default:
|
|
2501
2462
|
const parsedBody = parsedOutput.body;
|
|
2502
|
-
throwDefaultError({
|
|
2463
|
+
return throwDefaultError({
|
|
2503
2464
|
output,
|
|
2504
2465
|
parsedBody,
|
|
2505
|
-
exceptionCtor: __BaseException,
|
|
2506
2466
|
errorCode,
|
|
2507
2467
|
});
|
|
2508
2468
|
}
|
|
@@ -2548,10 +2508,9 @@ const de_UpdateMeshCommandError = async (output, context) => {
|
|
|
2548
2508
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2549
2509
|
default:
|
|
2550
2510
|
const parsedBody = parsedOutput.body;
|
|
2551
|
-
throwDefaultError({
|
|
2511
|
+
return throwDefaultError({
|
|
2552
2512
|
output,
|
|
2553
2513
|
parsedBody,
|
|
2554
|
-
exceptionCtor: __BaseException,
|
|
2555
2514
|
errorCode,
|
|
2556
2515
|
});
|
|
2557
2516
|
}
|
|
@@ -2600,10 +2559,9 @@ const de_UpdateRouteCommandError = async (output, context) => {
|
|
|
2600
2559
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2601
2560
|
default:
|
|
2602
2561
|
const parsedBody = parsedOutput.body;
|
|
2603
|
-
throwDefaultError({
|
|
2562
|
+
return throwDefaultError({
|
|
2604
2563
|
output,
|
|
2605
2564
|
parsedBody,
|
|
2606
|
-
exceptionCtor: __BaseException,
|
|
2607
2565
|
errorCode,
|
|
2608
2566
|
});
|
|
2609
2567
|
}
|
|
@@ -2652,10 +2610,9 @@ const de_UpdateVirtualGatewayCommandError = async (output, context) => {
|
|
|
2652
2610
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2653
2611
|
default:
|
|
2654
2612
|
const parsedBody = parsedOutput.body;
|
|
2655
|
-
throwDefaultError({
|
|
2613
|
+
return throwDefaultError({
|
|
2656
2614
|
output,
|
|
2657
2615
|
parsedBody,
|
|
2658
|
-
exceptionCtor: __BaseException,
|
|
2659
2616
|
errorCode,
|
|
2660
2617
|
});
|
|
2661
2618
|
}
|
|
@@ -2704,10 +2661,9 @@ const de_UpdateVirtualNodeCommandError = async (output, context) => {
|
|
|
2704
2661
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2705
2662
|
default:
|
|
2706
2663
|
const parsedBody = parsedOutput.body;
|
|
2707
|
-
throwDefaultError({
|
|
2664
|
+
return throwDefaultError({
|
|
2708
2665
|
output,
|
|
2709
2666
|
parsedBody,
|
|
2710
|
-
exceptionCtor: __BaseException,
|
|
2711
2667
|
errorCode,
|
|
2712
2668
|
});
|
|
2713
2669
|
}
|
|
@@ -2756,10 +2712,9 @@ const de_UpdateVirtualRouterCommandError = async (output, context) => {
|
|
|
2756
2712
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2757
2713
|
default:
|
|
2758
2714
|
const parsedBody = parsedOutput.body;
|
|
2759
|
-
throwDefaultError({
|
|
2715
|
+
return throwDefaultError({
|
|
2760
2716
|
output,
|
|
2761
2717
|
parsedBody,
|
|
2762
|
-
exceptionCtor: __BaseException,
|
|
2763
2718
|
errorCode,
|
|
2764
2719
|
});
|
|
2765
2720
|
}
|
|
@@ -2808,21 +2763,21 @@ const de_UpdateVirtualServiceCommandError = async (output, context) => {
|
|
|
2808
2763
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2809
2764
|
default:
|
|
2810
2765
|
const parsedBody = parsedOutput.body;
|
|
2811
|
-
throwDefaultError({
|
|
2766
|
+
return throwDefaultError({
|
|
2812
2767
|
output,
|
|
2813
2768
|
parsedBody,
|
|
2814
|
-
exceptionCtor: __BaseException,
|
|
2815
2769
|
errorCode,
|
|
2816
2770
|
});
|
|
2817
2771
|
}
|
|
2818
2772
|
};
|
|
2819
|
-
const
|
|
2773
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
2820
2774
|
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
2821
2775
|
const contents = map({});
|
|
2822
2776
|
const data = parsedOutput.body;
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
}
|
|
2777
|
+
const doc = take(data, {
|
|
2778
|
+
message: __expectString,
|
|
2779
|
+
});
|
|
2780
|
+
Object.assign(contents, doc);
|
|
2826
2781
|
const exception = new BadRequestException({
|
|
2827
2782
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2828
2783
|
...contents,
|
|
@@ -2832,9 +2787,10 @@ const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
|
2832
2787
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
2833
2788
|
const contents = map({});
|
|
2834
2789
|
const data = parsedOutput.body;
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
}
|
|
2790
|
+
const doc = take(data, {
|
|
2791
|
+
message: __expectString,
|
|
2792
|
+
});
|
|
2793
|
+
Object.assign(contents, doc);
|
|
2838
2794
|
const exception = new ConflictException({
|
|
2839
2795
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2840
2796
|
...contents,
|
|
@@ -2844,9 +2800,10 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
2844
2800
|
const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
2845
2801
|
const contents = map({});
|
|
2846
2802
|
const data = parsedOutput.body;
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
}
|
|
2803
|
+
const doc = take(data, {
|
|
2804
|
+
message: __expectString,
|
|
2805
|
+
});
|
|
2806
|
+
Object.assign(contents, doc);
|
|
2850
2807
|
const exception = new ForbiddenException({
|
|
2851
2808
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2852
2809
|
...contents,
|
|
@@ -2856,9 +2813,10 @@ const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
|
2856
2813
|
const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
|
|
2857
2814
|
const contents = map({});
|
|
2858
2815
|
const data = parsedOutput.body;
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
}
|
|
2816
|
+
const doc = take(data, {
|
|
2817
|
+
message: __expectString,
|
|
2818
|
+
});
|
|
2819
|
+
Object.assign(contents, doc);
|
|
2862
2820
|
const exception = new InternalServerErrorException({
|
|
2863
2821
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2864
2822
|
...contents,
|
|
@@ -2868,9 +2826,10 @@ const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
|
|
|
2868
2826
|
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
2869
2827
|
const contents = map({});
|
|
2870
2828
|
const data = parsedOutput.body;
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
}
|
|
2829
|
+
const doc = take(data, {
|
|
2830
|
+
message: __expectString,
|
|
2831
|
+
});
|
|
2832
|
+
Object.assign(contents, doc);
|
|
2874
2833
|
const exception = new LimitExceededException({
|
|
2875
2834
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2876
2835
|
...contents,
|
|
@@ -2880,9 +2839,10 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
2880
2839
|
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2881
2840
|
const contents = map({});
|
|
2882
2841
|
const data = parsedOutput.body;
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
}
|
|
2842
|
+
const doc = take(data, {
|
|
2843
|
+
message: __expectString,
|
|
2844
|
+
});
|
|
2845
|
+
Object.assign(contents, doc);
|
|
2886
2846
|
const exception = new NotFoundException({
|
|
2887
2847
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2888
2848
|
...contents,
|
|
@@ -2892,9 +2852,10 @@ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
2892
2852
|
const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
|
|
2893
2853
|
const contents = map({});
|
|
2894
2854
|
const data = parsedOutput.body;
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
}
|
|
2855
|
+
const doc = take(data, {
|
|
2856
|
+
message: __expectString,
|
|
2857
|
+
});
|
|
2858
|
+
Object.assign(contents, doc);
|
|
2898
2859
|
const exception = new ResourceInUseException({
|
|
2899
2860
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2900
2861
|
...contents,
|
|
@@ -2904,9 +2865,10 @@ const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
|
|
|
2904
2865
|
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
2905
2866
|
const contents = map({});
|
|
2906
2867
|
const data = parsedOutput.body;
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
}
|
|
2868
|
+
const doc = take(data, {
|
|
2869
|
+
message: __expectString,
|
|
2870
|
+
});
|
|
2871
|
+
Object.assign(contents, doc);
|
|
2910
2872
|
const exception = new ServiceUnavailableException({
|
|
2911
2873
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2912
2874
|
...contents,
|
|
@@ -2916,9 +2878,10 @@ const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
|
2916
2878
|
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
2917
2879
|
const contents = map({});
|
|
2918
2880
|
const data = parsedOutput.body;
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
}
|
|
2881
|
+
const doc = take(data, {
|
|
2882
|
+
message: __expectString,
|
|
2883
|
+
});
|
|
2884
|
+
Object.assign(contents, doc);
|
|
2922
2885
|
const exception = new TooManyRequestsException({
|
|
2923
2886
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2924
2887
|
...contents,
|
|
@@ -2928,2442 +2891,232 @@ const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
|
2928
2891
|
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
2929
2892
|
const contents = map({});
|
|
2930
2893
|
const data = parsedOutput.body;
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
}
|
|
2894
|
+
const doc = take(data, {
|
|
2895
|
+
message: __expectString,
|
|
2896
|
+
});
|
|
2897
|
+
Object.assign(contents, doc);
|
|
2934
2898
|
const exception = new TooManyTagsException({
|
|
2935
2899
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2936
2900
|
...contents,
|
|
2937
2901
|
});
|
|
2938
2902
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2939
2903
|
};
|
|
2940
|
-
const
|
|
2941
|
-
return
|
|
2942
|
-
|
|
2943
|
-
|
|
2904
|
+
const de_GatewayRouteData = (output, context) => {
|
|
2905
|
+
return take(output, {
|
|
2906
|
+
gatewayRouteName: __expectString,
|
|
2907
|
+
meshName: __expectString,
|
|
2908
|
+
metadata: (_) => de_ResourceMetadata(_, context),
|
|
2909
|
+
spec: _json,
|
|
2910
|
+
status: _json,
|
|
2911
|
+
virtualGatewayName: __expectString,
|
|
2944
2912
|
});
|
|
2945
2913
|
};
|
|
2946
|
-
const
|
|
2947
|
-
|
|
2948
|
-
...(input.key != null && { key: input.key }),
|
|
2949
|
-
...(input.value != null && { value: input.value }),
|
|
2950
|
-
};
|
|
2951
|
-
};
|
|
2952
|
-
const se_AwsCloudMapInstanceAttributes = (input, context) => {
|
|
2953
|
-
return input
|
|
2914
|
+
const de_GatewayRouteList = (output, context) => {
|
|
2915
|
+
const retVal = (output || [])
|
|
2954
2916
|
.filter((e) => e != null)
|
|
2955
2917
|
.map((entry) => {
|
|
2956
|
-
return
|
|
2918
|
+
return de_GatewayRouteRef(entry, context);
|
|
2957
2919
|
});
|
|
2920
|
+
return retVal;
|
|
2958
2921
|
};
|
|
2959
|
-
const
|
|
2960
|
-
return {
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
_: (name, value) => ({ name: value }),
|
|
2922
|
+
const de_GatewayRouteRef = (output, context) => {
|
|
2923
|
+
return take(output, {
|
|
2924
|
+
arn: __expectString,
|
|
2925
|
+
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2926
|
+
gatewayRouteName: __expectString,
|
|
2927
|
+
lastUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2928
|
+
meshName: __expectString,
|
|
2929
|
+
meshOwner: __expectString,
|
|
2930
|
+
resourceOwner: __expectString,
|
|
2931
|
+
version: __expectLong,
|
|
2932
|
+
virtualGatewayName: __expectString,
|
|
2971
2933
|
});
|
|
2972
2934
|
};
|
|
2973
|
-
const
|
|
2974
|
-
return {
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
return input
|
|
2980
|
-
.filter((e) => e != null)
|
|
2981
|
-
.map((entry) => {
|
|
2982
|
-
return se_Backend(entry, context);
|
|
2935
|
+
const de_MeshData = (output, context) => {
|
|
2936
|
+
return take(output, {
|
|
2937
|
+
meshName: __expectString,
|
|
2938
|
+
metadata: (_) => de_ResourceMetadata(_, context),
|
|
2939
|
+
spec: _json,
|
|
2940
|
+
status: _json,
|
|
2983
2941
|
});
|
|
2984
2942
|
};
|
|
2985
|
-
const
|
|
2986
|
-
|
|
2943
|
+
const de_MeshList = (output, context) => {
|
|
2944
|
+
const retVal = (output || [])
|
|
2987
2945
|
.filter((e) => e != null)
|
|
2988
2946
|
.map((entry) => {
|
|
2989
|
-
return entry;
|
|
2947
|
+
return de_MeshRef(entry, context);
|
|
2990
2948
|
});
|
|
2949
|
+
return retVal;
|
|
2991
2950
|
};
|
|
2992
|
-
const
|
|
2993
|
-
return {
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
...(input.ports != null && { ports: se_PortSet(input.ports, context) }),
|
|
3002
|
-
...(input.validation != null && { validation: se_TlsValidationContext(input.validation, context) }),
|
|
3003
|
-
};
|
|
3004
|
-
};
|
|
3005
|
-
const se_ClientTlsCertificate = (input, context) => {
|
|
3006
|
-
return ClientTlsCertificate.visit(input, {
|
|
3007
|
-
file: (value) => ({ file: se_ListenerTlsFileCertificate(value, context) }),
|
|
3008
|
-
sds: (value) => ({ sds: se_ListenerTlsSdsCertificate(value, context) }),
|
|
3009
|
-
_: (name, value) => ({ name: value }),
|
|
2951
|
+
const de_MeshRef = (output, context) => {
|
|
2952
|
+
return take(output, {
|
|
2953
|
+
arn: __expectString,
|
|
2954
|
+
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2955
|
+
lastUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2956
|
+
meshName: __expectString,
|
|
2957
|
+
meshOwner: __expectString,
|
|
2958
|
+
resourceOwner: __expectString,
|
|
2959
|
+
version: __expectLong,
|
|
3010
2960
|
});
|
|
3011
2961
|
};
|
|
3012
|
-
const
|
|
3013
|
-
return {
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
...(input.unit != null && { unit: input.unit }),
|
|
3022
|
-
...(input.value != null && { value: input.value }),
|
|
3023
|
-
};
|
|
3024
|
-
};
|
|
3025
|
-
const se_EgressFilter = (input, context) => {
|
|
3026
|
-
return {
|
|
3027
|
-
...(input.type != null && { type: input.type }),
|
|
3028
|
-
};
|
|
3029
|
-
};
|
|
3030
|
-
const se_FileAccessLog = (input, context) => {
|
|
3031
|
-
return {
|
|
3032
|
-
...(input.format != null && { format: se_LoggingFormat(input.format, context) }),
|
|
3033
|
-
...(input.path != null && { path: input.path }),
|
|
3034
|
-
};
|
|
3035
|
-
};
|
|
3036
|
-
const se_GatewayRouteHostnameMatch = (input, context) => {
|
|
3037
|
-
return {
|
|
3038
|
-
...(input.exact != null && { exact: input.exact }),
|
|
3039
|
-
...(input.suffix != null && { suffix: input.suffix }),
|
|
3040
|
-
};
|
|
3041
|
-
};
|
|
3042
|
-
const se_GatewayRouteHostnameRewrite = (input, context) => {
|
|
3043
|
-
return {
|
|
3044
|
-
...(input.defaultTargetHostname != null && { defaultTargetHostname: input.defaultTargetHostname }),
|
|
3045
|
-
};
|
|
3046
|
-
};
|
|
3047
|
-
const se_GatewayRouteSpec = (input, context) => {
|
|
3048
|
-
return {
|
|
3049
|
-
...(input.grpcRoute != null && { grpcRoute: se_GrpcGatewayRoute(input.grpcRoute, context) }),
|
|
3050
|
-
...(input.http2Route != null && { http2Route: se_HttpGatewayRoute(input.http2Route, context) }),
|
|
3051
|
-
...(input.httpRoute != null && { httpRoute: se_HttpGatewayRoute(input.httpRoute, context) }),
|
|
3052
|
-
...(input.priority != null && { priority: input.priority }),
|
|
3053
|
-
};
|
|
3054
|
-
};
|
|
3055
|
-
const se_GatewayRouteTarget = (input, context) => {
|
|
3056
|
-
return {
|
|
3057
|
-
...(input.port != null && { port: input.port }),
|
|
3058
|
-
...(input.virtualService != null && {
|
|
3059
|
-
virtualService: se_GatewayRouteVirtualService(input.virtualService, context),
|
|
3060
|
-
}),
|
|
3061
|
-
};
|
|
3062
|
-
};
|
|
3063
|
-
const se_GatewayRouteVirtualService = (input, context) => {
|
|
3064
|
-
return {
|
|
3065
|
-
...(input.virtualServiceName != null && { virtualServiceName: input.virtualServiceName }),
|
|
3066
|
-
};
|
|
3067
|
-
};
|
|
3068
|
-
const se_GrpcGatewayRoute = (input, context) => {
|
|
3069
|
-
return {
|
|
3070
|
-
...(input.action != null && { action: se_GrpcGatewayRouteAction(input.action, context) }),
|
|
3071
|
-
...(input.match != null && { match: se_GrpcGatewayRouteMatch(input.match, context) }),
|
|
3072
|
-
};
|
|
3073
|
-
};
|
|
3074
|
-
const se_GrpcGatewayRouteAction = (input, context) => {
|
|
3075
|
-
return {
|
|
3076
|
-
...(input.rewrite != null && { rewrite: se_GrpcGatewayRouteRewrite(input.rewrite, context) }),
|
|
3077
|
-
...(input.target != null && { target: se_GatewayRouteTarget(input.target, context) }),
|
|
3078
|
-
};
|
|
3079
|
-
};
|
|
3080
|
-
const se_GrpcGatewayRouteMatch = (input, context) => {
|
|
3081
|
-
return {
|
|
3082
|
-
...(input.hostname != null && { hostname: se_GatewayRouteHostnameMatch(input.hostname, context) }),
|
|
3083
|
-
...(input.metadata != null && { metadata: se_GrpcGatewayRouteMetadataList(input.metadata, context) }),
|
|
3084
|
-
...(input.port != null && { port: input.port }),
|
|
3085
|
-
...(input.serviceName != null && { serviceName: input.serviceName }),
|
|
3086
|
-
};
|
|
3087
|
-
};
|
|
3088
|
-
const se_GrpcGatewayRouteMetadata = (input, context) => {
|
|
3089
|
-
return {
|
|
3090
|
-
...(input.invert != null && { invert: input.invert }),
|
|
3091
|
-
...(input.match != null && { match: se_GrpcMetadataMatchMethod(input.match, context) }),
|
|
3092
|
-
...(input.name != null && { name: input.name }),
|
|
3093
|
-
};
|
|
3094
|
-
};
|
|
3095
|
-
const se_GrpcGatewayRouteMetadataList = (input, context) => {
|
|
3096
|
-
return input
|
|
3097
|
-
.filter((e) => e != null)
|
|
3098
|
-
.map((entry) => {
|
|
3099
|
-
return se_GrpcGatewayRouteMetadata(entry, context);
|
|
2962
|
+
const de_ResourceMetadata = (output, context) => {
|
|
2963
|
+
return take(output, {
|
|
2964
|
+
arn: __expectString,
|
|
2965
|
+
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2966
|
+
lastUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2967
|
+
meshOwner: __expectString,
|
|
2968
|
+
resourceOwner: __expectString,
|
|
2969
|
+
uid: __expectString,
|
|
2970
|
+
version: __expectLong,
|
|
3100
2971
|
});
|
|
3101
2972
|
};
|
|
3102
|
-
const
|
|
3103
|
-
return {
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
prefix: (value) => ({ prefix: value }),
|
|
3111
|
-
range: (value) => ({ range: se_MatchRange(value, context) }),
|
|
3112
|
-
regex: (value) => ({ regex: value }),
|
|
3113
|
-
suffix: (value) => ({ suffix: value }),
|
|
3114
|
-
_: (name, value) => ({ name: value }),
|
|
3115
|
-
});
|
|
3116
|
-
};
|
|
3117
|
-
const se_GrpcRetryPolicy = (input, context) => {
|
|
3118
|
-
return {
|
|
3119
|
-
...(input.grpcRetryEvents != null && { grpcRetryEvents: se_GrpcRetryPolicyEvents(input.grpcRetryEvents, context) }),
|
|
3120
|
-
...(input.httpRetryEvents != null && { httpRetryEvents: se_HttpRetryPolicyEvents(input.httpRetryEvents, context) }),
|
|
3121
|
-
...(input.maxRetries != null && { maxRetries: input.maxRetries }),
|
|
3122
|
-
...(input.perRetryTimeout != null && { perRetryTimeout: se_Duration(input.perRetryTimeout, context) }),
|
|
3123
|
-
...(input.tcpRetryEvents != null && { tcpRetryEvents: se_TcpRetryPolicyEvents(input.tcpRetryEvents, context) }),
|
|
3124
|
-
};
|
|
3125
|
-
};
|
|
3126
|
-
const se_GrpcRetryPolicyEvents = (input, context) => {
|
|
3127
|
-
return input
|
|
3128
|
-
.filter((e) => e != null)
|
|
3129
|
-
.map((entry) => {
|
|
3130
|
-
return entry;
|
|
2973
|
+
const de_RouteData = (output, context) => {
|
|
2974
|
+
return take(output, {
|
|
2975
|
+
meshName: __expectString,
|
|
2976
|
+
metadata: (_) => de_ResourceMetadata(_, context),
|
|
2977
|
+
routeName: __expectString,
|
|
2978
|
+
spec: _json,
|
|
2979
|
+
status: _json,
|
|
2980
|
+
virtualRouterName: __expectString,
|
|
3131
2981
|
});
|
|
3132
2982
|
};
|
|
3133
|
-
const
|
|
3134
|
-
|
|
3135
|
-
...(input.action != null && { action: se_GrpcRouteAction(input.action, context) }),
|
|
3136
|
-
...(input.match != null && { match: se_GrpcRouteMatch(input.match, context) }),
|
|
3137
|
-
...(input.retryPolicy != null && { retryPolicy: se_GrpcRetryPolicy(input.retryPolicy, context) }),
|
|
3138
|
-
...(input.timeout != null && { timeout: se_GrpcTimeout(input.timeout, context) }),
|
|
3139
|
-
};
|
|
3140
|
-
};
|
|
3141
|
-
const se_GrpcRouteAction = (input, context) => {
|
|
3142
|
-
return {
|
|
3143
|
-
...(input.weightedTargets != null && { weightedTargets: se_WeightedTargets(input.weightedTargets, context) }),
|
|
3144
|
-
};
|
|
3145
|
-
};
|
|
3146
|
-
const se_GrpcRouteMatch = (input, context) => {
|
|
3147
|
-
return {
|
|
3148
|
-
...(input.metadata != null && { metadata: se_GrpcRouteMetadataList(input.metadata, context) }),
|
|
3149
|
-
...(input.methodName != null && { methodName: input.methodName }),
|
|
3150
|
-
...(input.port != null && { port: input.port }),
|
|
3151
|
-
...(input.serviceName != null && { serviceName: input.serviceName }),
|
|
3152
|
-
};
|
|
3153
|
-
};
|
|
3154
|
-
const se_GrpcRouteMetadata = (input, context) => {
|
|
3155
|
-
return {
|
|
3156
|
-
...(input.invert != null && { invert: input.invert }),
|
|
3157
|
-
...(input.match != null && { match: se_GrpcRouteMetadataMatchMethod(input.match, context) }),
|
|
3158
|
-
...(input.name != null && { name: input.name }),
|
|
3159
|
-
};
|
|
3160
|
-
};
|
|
3161
|
-
const se_GrpcRouteMetadataList = (input, context) => {
|
|
3162
|
-
return input
|
|
2983
|
+
const de_RouteList = (output, context) => {
|
|
2984
|
+
const retVal = (output || [])
|
|
3163
2985
|
.filter((e) => e != null)
|
|
3164
2986
|
.map((entry) => {
|
|
3165
|
-
return
|
|
2987
|
+
return de_RouteRef(entry, context);
|
|
3166
2988
|
});
|
|
2989
|
+
return retVal;
|
|
3167
2990
|
};
|
|
3168
|
-
const
|
|
3169
|
-
return
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
2991
|
+
const de_RouteRef = (output, context) => {
|
|
2992
|
+
return take(output, {
|
|
2993
|
+
arn: __expectString,
|
|
2994
|
+
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2995
|
+
lastUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2996
|
+
meshName: __expectString,
|
|
2997
|
+
meshOwner: __expectString,
|
|
2998
|
+
resourceOwner: __expectString,
|
|
2999
|
+
routeName: __expectString,
|
|
3000
|
+
version: __expectLong,
|
|
3001
|
+
virtualRouterName: __expectString,
|
|
3176
3002
|
});
|
|
3177
3003
|
};
|
|
3178
|
-
const
|
|
3179
|
-
return {
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
return HeaderMatchMethod.visit(input, {
|
|
3186
|
-
exact: (value) => ({ exact: value }),
|
|
3187
|
-
prefix: (value) => ({ prefix: value }),
|
|
3188
|
-
range: (value) => ({ range: se_MatchRange(value, context) }),
|
|
3189
|
-
regex: (value) => ({ regex: value }),
|
|
3190
|
-
suffix: (value) => ({ suffix: value }),
|
|
3191
|
-
_: (name, value) => ({ name: value }),
|
|
3192
|
-
});
|
|
3193
|
-
};
|
|
3194
|
-
const se_HealthCheckPolicy = (input, context) => {
|
|
3195
|
-
return {
|
|
3196
|
-
...(input.healthyThreshold != null && { healthyThreshold: input.healthyThreshold }),
|
|
3197
|
-
...(input.intervalMillis != null && { intervalMillis: input.intervalMillis }),
|
|
3198
|
-
...(input.path != null && { path: input.path }),
|
|
3199
|
-
...(input.port != null && { port: input.port }),
|
|
3200
|
-
...(input.protocol != null && { protocol: input.protocol }),
|
|
3201
|
-
...(input.timeoutMillis != null && { timeoutMillis: input.timeoutMillis }),
|
|
3202
|
-
...(input.unhealthyThreshold != null && { unhealthyThreshold: input.unhealthyThreshold }),
|
|
3203
|
-
};
|
|
3204
|
-
};
|
|
3205
|
-
const se_HttpGatewayRoute = (input, context) => {
|
|
3206
|
-
return {
|
|
3207
|
-
...(input.action != null && { action: se_HttpGatewayRouteAction(input.action, context) }),
|
|
3208
|
-
...(input.match != null && { match: se_HttpGatewayRouteMatch(input.match, context) }),
|
|
3209
|
-
};
|
|
3210
|
-
};
|
|
3211
|
-
const se_HttpGatewayRouteAction = (input, context) => {
|
|
3212
|
-
return {
|
|
3213
|
-
...(input.rewrite != null && { rewrite: se_HttpGatewayRouteRewrite(input.rewrite, context) }),
|
|
3214
|
-
...(input.target != null && { target: se_GatewayRouteTarget(input.target, context) }),
|
|
3215
|
-
};
|
|
3216
|
-
};
|
|
3217
|
-
const se_HttpGatewayRouteHeader = (input, context) => {
|
|
3218
|
-
return {
|
|
3219
|
-
...(input.invert != null && { invert: input.invert }),
|
|
3220
|
-
...(input.match != null && { match: se_HeaderMatchMethod(input.match, context) }),
|
|
3221
|
-
...(input.name != null && { name: input.name }),
|
|
3222
|
-
};
|
|
3223
|
-
};
|
|
3224
|
-
const se_HttpGatewayRouteHeaders = (input, context) => {
|
|
3225
|
-
return input
|
|
3226
|
-
.filter((e) => e != null)
|
|
3227
|
-
.map((entry) => {
|
|
3228
|
-
return se_HttpGatewayRouteHeader(entry, context);
|
|
3229
|
-
});
|
|
3230
|
-
};
|
|
3231
|
-
const se_HttpGatewayRouteMatch = (input, context) => {
|
|
3232
|
-
return {
|
|
3233
|
-
...(input.headers != null && { headers: se_HttpGatewayRouteHeaders(input.headers, context) }),
|
|
3234
|
-
...(input.hostname != null && { hostname: se_GatewayRouteHostnameMatch(input.hostname, context) }),
|
|
3235
|
-
...(input.method != null && { method: input.method }),
|
|
3236
|
-
...(input.path != null && { path: se_HttpPathMatch(input.path, context) }),
|
|
3237
|
-
...(input.port != null && { port: input.port }),
|
|
3238
|
-
...(input.prefix != null && { prefix: input.prefix }),
|
|
3239
|
-
...(input.queryParameters != null && { queryParameters: se_HttpQueryParameters(input.queryParameters, context) }),
|
|
3240
|
-
};
|
|
3241
|
-
};
|
|
3242
|
-
const se_HttpGatewayRoutePathRewrite = (input, context) => {
|
|
3243
|
-
return {
|
|
3244
|
-
...(input.exact != null && { exact: input.exact }),
|
|
3245
|
-
};
|
|
3246
|
-
};
|
|
3247
|
-
const se_HttpGatewayRoutePrefixRewrite = (input, context) => {
|
|
3248
|
-
return {
|
|
3249
|
-
...(input.defaultPrefix != null && { defaultPrefix: input.defaultPrefix }),
|
|
3250
|
-
...(input.value != null && { value: input.value }),
|
|
3251
|
-
};
|
|
3252
|
-
};
|
|
3253
|
-
const se_HttpGatewayRouteRewrite = (input, context) => {
|
|
3254
|
-
return {
|
|
3255
|
-
...(input.hostname != null && { hostname: se_GatewayRouteHostnameRewrite(input.hostname, context) }),
|
|
3256
|
-
...(input.path != null && { path: se_HttpGatewayRoutePathRewrite(input.path, context) }),
|
|
3257
|
-
...(input.prefix != null && { prefix: se_HttpGatewayRoutePrefixRewrite(input.prefix, context) }),
|
|
3258
|
-
};
|
|
3259
|
-
};
|
|
3260
|
-
const se_HttpPathMatch = (input, context) => {
|
|
3261
|
-
return {
|
|
3262
|
-
...(input.exact != null && { exact: input.exact }),
|
|
3263
|
-
...(input.regex != null && { regex: input.regex }),
|
|
3264
|
-
};
|
|
3265
|
-
};
|
|
3266
|
-
const se_HttpQueryParameter = (input, context) => {
|
|
3267
|
-
return {
|
|
3268
|
-
...(input.match != null && { match: se_QueryParameterMatch(input.match, context) }),
|
|
3269
|
-
...(input.name != null && { name: input.name }),
|
|
3270
|
-
};
|
|
3271
|
-
};
|
|
3272
|
-
const se_HttpQueryParameters = (input, context) => {
|
|
3273
|
-
return input
|
|
3274
|
-
.filter((e) => e != null)
|
|
3275
|
-
.map((entry) => {
|
|
3276
|
-
return se_HttpQueryParameter(entry, context);
|
|
3004
|
+
const de_VirtualGatewayData = (output, context) => {
|
|
3005
|
+
return take(output, {
|
|
3006
|
+
meshName: __expectString,
|
|
3007
|
+
metadata: (_) => de_ResourceMetadata(_, context),
|
|
3008
|
+
spec: _json,
|
|
3009
|
+
status: _json,
|
|
3010
|
+
virtualGatewayName: __expectString,
|
|
3277
3011
|
});
|
|
3278
3012
|
};
|
|
3279
|
-
const
|
|
3280
|
-
|
|
3281
|
-
...(input.httpRetryEvents != null && { httpRetryEvents: se_HttpRetryPolicyEvents(input.httpRetryEvents, context) }),
|
|
3282
|
-
...(input.maxRetries != null && { maxRetries: input.maxRetries }),
|
|
3283
|
-
...(input.perRetryTimeout != null && { perRetryTimeout: se_Duration(input.perRetryTimeout, context) }),
|
|
3284
|
-
...(input.tcpRetryEvents != null && { tcpRetryEvents: se_TcpRetryPolicyEvents(input.tcpRetryEvents, context) }),
|
|
3285
|
-
};
|
|
3286
|
-
};
|
|
3287
|
-
const se_HttpRetryPolicyEvents = (input, context) => {
|
|
3288
|
-
return input
|
|
3013
|
+
const de_VirtualGatewayList = (output, context) => {
|
|
3014
|
+
const retVal = (output || [])
|
|
3289
3015
|
.filter((e) => e != null)
|
|
3290
3016
|
.map((entry) => {
|
|
3291
|
-
return entry;
|
|
3017
|
+
return de_VirtualGatewayRef(entry, context);
|
|
3292
3018
|
});
|
|
3019
|
+
return retVal;
|
|
3293
3020
|
};
|
|
3294
|
-
const
|
|
3295
|
-
return {
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
...(input.weightedTargets != null && { weightedTargets: se_WeightedTargets(input.weightedTargets, context) }),
|
|
3305
|
-
};
|
|
3306
|
-
};
|
|
3307
|
-
const se_HttpRouteHeader = (input, context) => {
|
|
3308
|
-
return {
|
|
3309
|
-
...(input.invert != null && { invert: input.invert }),
|
|
3310
|
-
...(input.match != null && { match: se_HeaderMatchMethod(input.match, context) }),
|
|
3311
|
-
...(input.name != null && { name: input.name }),
|
|
3312
|
-
};
|
|
3313
|
-
};
|
|
3314
|
-
const se_HttpRouteHeaders = (input, context) => {
|
|
3315
|
-
return input
|
|
3316
|
-
.filter((e) => e != null)
|
|
3317
|
-
.map((entry) => {
|
|
3318
|
-
return se_HttpRouteHeader(entry, context);
|
|
3319
|
-
});
|
|
3320
|
-
};
|
|
3321
|
-
const se_HttpRouteMatch = (input, context) => {
|
|
3322
|
-
return {
|
|
3323
|
-
...(input.headers != null && { headers: se_HttpRouteHeaders(input.headers, context) }),
|
|
3324
|
-
...(input.method != null && { method: input.method }),
|
|
3325
|
-
...(input.path != null && { path: se_HttpPathMatch(input.path, context) }),
|
|
3326
|
-
...(input.port != null && { port: input.port }),
|
|
3327
|
-
...(input.prefix != null && { prefix: input.prefix }),
|
|
3328
|
-
...(input.queryParameters != null && { queryParameters: se_HttpQueryParameters(input.queryParameters, context) }),
|
|
3329
|
-
...(input.scheme != null && { scheme: input.scheme }),
|
|
3330
|
-
};
|
|
3331
|
-
};
|
|
3332
|
-
const se_HttpTimeout = (input, context) => {
|
|
3333
|
-
return {
|
|
3334
|
-
...(input.idle != null && { idle: se_Duration(input.idle, context) }),
|
|
3335
|
-
...(input.perRequest != null && { perRequest: se_Duration(input.perRequest, context) }),
|
|
3336
|
-
};
|
|
3337
|
-
};
|
|
3338
|
-
const se_JsonFormat = (input, context) => {
|
|
3339
|
-
return input
|
|
3340
|
-
.filter((e) => e != null)
|
|
3341
|
-
.map((entry) => {
|
|
3342
|
-
return se_JsonFormatRef(entry, context);
|
|
3021
|
+
const de_VirtualGatewayRef = (output, context) => {
|
|
3022
|
+
return take(output, {
|
|
3023
|
+
arn: __expectString,
|
|
3024
|
+
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3025
|
+
lastUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3026
|
+
meshName: __expectString,
|
|
3027
|
+
meshOwner: __expectString,
|
|
3028
|
+
resourceOwner: __expectString,
|
|
3029
|
+
version: __expectLong,
|
|
3030
|
+
virtualGatewayName: __expectString,
|
|
3343
3031
|
});
|
|
3344
3032
|
};
|
|
3345
|
-
const
|
|
3346
|
-
return {
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
...(input.connectionPool != null && {
|
|
3354
|
-
connectionPool: se_VirtualNodeConnectionPool(input.connectionPool, context),
|
|
3355
|
-
}),
|
|
3356
|
-
...(input.healthCheck != null && { healthCheck: se_HealthCheckPolicy(input.healthCheck, context) }),
|
|
3357
|
-
...(input.outlierDetection != null && { outlierDetection: se_OutlierDetection(input.outlierDetection, context) }),
|
|
3358
|
-
...(input.portMapping != null && { portMapping: se_PortMapping(input.portMapping, context) }),
|
|
3359
|
-
...(input.timeout != null && { timeout: se_ListenerTimeout(input.timeout, context) }),
|
|
3360
|
-
...(input.tls != null && { tls: se_ListenerTls(input.tls, context) }),
|
|
3361
|
-
};
|
|
3033
|
+
const de_VirtualNodeData = (output, context) => {
|
|
3034
|
+
return take(output, {
|
|
3035
|
+
meshName: __expectString,
|
|
3036
|
+
metadata: (_) => de_ResourceMetadata(_, context),
|
|
3037
|
+
spec: _json,
|
|
3038
|
+
status: _json,
|
|
3039
|
+
virtualNodeName: __expectString,
|
|
3040
|
+
});
|
|
3362
3041
|
};
|
|
3363
|
-
const
|
|
3364
|
-
|
|
3042
|
+
const de_VirtualNodeList = (output, context) => {
|
|
3043
|
+
const retVal = (output || [])
|
|
3365
3044
|
.filter((e) => e != null)
|
|
3366
3045
|
.map((entry) => {
|
|
3367
|
-
return
|
|
3368
|
-
});
|
|
3369
|
-
};
|
|
3370
|
-
const se_ListenerTimeout = (input, context) => {
|
|
3371
|
-
return ListenerTimeout.visit(input, {
|
|
3372
|
-
grpc: (value) => ({ grpc: se_GrpcTimeout(value, context) }),
|
|
3373
|
-
http: (value) => ({ http: se_HttpTimeout(value, context) }),
|
|
3374
|
-
http2: (value) => ({ http2: se_HttpTimeout(value, context) }),
|
|
3375
|
-
tcp: (value) => ({ tcp: se_TcpTimeout(value, context) }),
|
|
3376
|
-
_: (name, value) => ({ name: value }),
|
|
3377
|
-
});
|
|
3378
|
-
};
|
|
3379
|
-
const se_ListenerTls = (input, context) => {
|
|
3380
|
-
return {
|
|
3381
|
-
...(input.certificate != null && { certificate: se_ListenerTlsCertificate(input.certificate, context) }),
|
|
3382
|
-
...(input.mode != null && { mode: input.mode }),
|
|
3383
|
-
...(input.validation != null && { validation: se_ListenerTlsValidationContext(input.validation, context) }),
|
|
3384
|
-
};
|
|
3385
|
-
};
|
|
3386
|
-
const se_ListenerTlsAcmCertificate = (input, context) => {
|
|
3387
|
-
return {
|
|
3388
|
-
...(input.certificateArn != null && { certificateArn: input.certificateArn }),
|
|
3389
|
-
};
|
|
3390
|
-
};
|
|
3391
|
-
const se_ListenerTlsCertificate = (input, context) => {
|
|
3392
|
-
return ListenerTlsCertificate.visit(input, {
|
|
3393
|
-
acm: (value) => ({ acm: se_ListenerTlsAcmCertificate(value, context) }),
|
|
3394
|
-
file: (value) => ({ file: se_ListenerTlsFileCertificate(value, context) }),
|
|
3395
|
-
sds: (value) => ({ sds: se_ListenerTlsSdsCertificate(value, context) }),
|
|
3396
|
-
_: (name, value) => ({ name: value }),
|
|
3046
|
+
return de_VirtualNodeRef(entry, context);
|
|
3397
3047
|
});
|
|
3048
|
+
return retVal;
|
|
3398
3049
|
};
|
|
3399
|
-
const
|
|
3400
|
-
return {
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
};
|
|
3410
|
-
const se_ListenerTlsValidationContext = (input, context) => {
|
|
3411
|
-
return {
|
|
3412
|
-
...(input.subjectAlternativeNames != null && {
|
|
3413
|
-
subjectAlternativeNames: se_SubjectAlternativeNames(input.subjectAlternativeNames, context),
|
|
3414
|
-
}),
|
|
3415
|
-
...(input.trust != null && { trust: se_ListenerTlsValidationContextTrust(input.trust, context) }),
|
|
3416
|
-
};
|
|
3417
|
-
};
|
|
3418
|
-
const se_ListenerTlsValidationContextTrust = (input, context) => {
|
|
3419
|
-
return ListenerTlsValidationContextTrust.visit(input, {
|
|
3420
|
-
file: (value) => ({ file: se_TlsValidationContextFileTrust(value, context) }),
|
|
3421
|
-
sds: (value) => ({ sds: se_TlsValidationContextSdsTrust(value, context) }),
|
|
3422
|
-
_: (name, value) => ({ name: value }),
|
|
3050
|
+
const de_VirtualNodeRef = (output, context) => {
|
|
3051
|
+
return take(output, {
|
|
3052
|
+
arn: __expectString,
|
|
3053
|
+
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3054
|
+
lastUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3055
|
+
meshName: __expectString,
|
|
3056
|
+
meshOwner: __expectString,
|
|
3057
|
+
resourceOwner: __expectString,
|
|
3058
|
+
version: __expectLong,
|
|
3059
|
+
virtualNodeName: __expectString,
|
|
3423
3060
|
});
|
|
3424
3061
|
};
|
|
3425
|
-
const
|
|
3426
|
-
return {
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
json: (value) => ({ json: se_JsonFormat(value, context) }),
|
|
3433
|
-
text: (value) => ({ text: value }),
|
|
3434
|
-
_: (name, value) => ({ name: value }),
|
|
3062
|
+
const de_VirtualRouterData = (output, context) => {
|
|
3063
|
+
return take(output, {
|
|
3064
|
+
meshName: __expectString,
|
|
3065
|
+
metadata: (_) => de_ResourceMetadata(_, context),
|
|
3066
|
+
spec: _json,
|
|
3067
|
+
status: _json,
|
|
3068
|
+
virtualRouterName: __expectString,
|
|
3435
3069
|
});
|
|
3436
3070
|
};
|
|
3437
|
-
const
|
|
3438
|
-
|
|
3439
|
-
...(input.end != null && { end: input.end }),
|
|
3440
|
-
...(input.start != null && { start: input.start }),
|
|
3441
|
-
};
|
|
3442
|
-
};
|
|
3443
|
-
const se_MeshServiceDiscovery = (input, context) => {
|
|
3444
|
-
return {
|
|
3445
|
-
...(input.ipPreference != null && { ipPreference: input.ipPreference }),
|
|
3446
|
-
};
|
|
3447
|
-
};
|
|
3448
|
-
const se_MeshSpec = (input, context) => {
|
|
3449
|
-
return {
|
|
3450
|
-
...(input.egressFilter != null && { egressFilter: se_EgressFilter(input.egressFilter, context) }),
|
|
3451
|
-
...(input.serviceDiscovery != null && {
|
|
3452
|
-
serviceDiscovery: se_MeshServiceDiscovery(input.serviceDiscovery, context),
|
|
3453
|
-
}),
|
|
3454
|
-
};
|
|
3455
|
-
};
|
|
3456
|
-
const se_OutlierDetection = (input, context) => {
|
|
3457
|
-
return {
|
|
3458
|
-
...(input.baseEjectionDuration != null && {
|
|
3459
|
-
baseEjectionDuration: se_Duration(input.baseEjectionDuration, context),
|
|
3460
|
-
}),
|
|
3461
|
-
...(input.interval != null && { interval: se_Duration(input.interval, context) }),
|
|
3462
|
-
...(input.maxEjectionPercent != null && { maxEjectionPercent: input.maxEjectionPercent }),
|
|
3463
|
-
...(input.maxServerErrors != null && { maxServerErrors: input.maxServerErrors }),
|
|
3464
|
-
};
|
|
3465
|
-
};
|
|
3466
|
-
const se_PortMapping = (input, context) => {
|
|
3467
|
-
return {
|
|
3468
|
-
...(input.port != null && { port: input.port }),
|
|
3469
|
-
...(input.protocol != null && { protocol: input.protocol }),
|
|
3470
|
-
};
|
|
3471
|
-
};
|
|
3472
|
-
const se_PortSet = (input, context) => {
|
|
3473
|
-
return input
|
|
3071
|
+
const de_VirtualRouterList = (output, context) => {
|
|
3072
|
+
const retVal = (output || [])
|
|
3474
3073
|
.filter((e) => e != null)
|
|
3475
3074
|
.map((entry) => {
|
|
3476
|
-
return entry;
|
|
3477
|
-
});
|
|
3478
|
-
};
|
|
3479
|
-
const se_QueryParameterMatch = (input, context) => {
|
|
3480
|
-
return {
|
|
3481
|
-
...(input.exact != null && { exact: input.exact }),
|
|
3482
|
-
};
|
|
3483
|
-
};
|
|
3484
|
-
const se_RouteSpec = (input, context) => {
|
|
3485
|
-
return {
|
|
3486
|
-
...(input.grpcRoute != null && { grpcRoute: se_GrpcRoute(input.grpcRoute, context) }),
|
|
3487
|
-
...(input.http2Route != null && { http2Route: se_HttpRoute(input.http2Route, context) }),
|
|
3488
|
-
...(input.httpRoute != null && { httpRoute: se_HttpRoute(input.httpRoute, context) }),
|
|
3489
|
-
...(input.priority != null && { priority: input.priority }),
|
|
3490
|
-
...(input.tcpRoute != null && { tcpRoute: se_TcpRoute(input.tcpRoute, context) }),
|
|
3491
|
-
};
|
|
3492
|
-
};
|
|
3493
|
-
const se_ServiceDiscovery = (input, context) => {
|
|
3494
|
-
return ServiceDiscovery.visit(input, {
|
|
3495
|
-
awsCloudMap: (value) => ({ awsCloudMap: se_AwsCloudMapServiceDiscovery(value, context) }),
|
|
3496
|
-
dns: (value) => ({ dns: se_DnsServiceDiscovery(value, context) }),
|
|
3497
|
-
_: (name, value) => ({ name: value }),
|
|
3075
|
+
return de_VirtualRouterRef(entry, context);
|
|
3498
3076
|
});
|
|
3077
|
+
return retVal;
|
|
3499
3078
|
};
|
|
3500
|
-
const
|
|
3501
|
-
return
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3079
|
+
const de_VirtualRouterRef = (output, context) => {
|
|
3080
|
+
return take(output, {
|
|
3081
|
+
arn: __expectString,
|
|
3082
|
+
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3083
|
+
lastUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3084
|
+
meshName: __expectString,
|
|
3085
|
+
meshOwner: __expectString,
|
|
3086
|
+
resourceOwner: __expectString,
|
|
3087
|
+
version: __expectLong,
|
|
3088
|
+
virtualRouterName: __expectString,
|
|
3505
3089
|
});
|
|
3506
3090
|
};
|
|
3507
|
-
const
|
|
3508
|
-
return {
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
...(input.match != null && { match: se_SubjectAlternativeNameMatchers(input.match, context) }),
|
|
3515
|
-
};
|
|
3516
|
-
};
|
|
3517
|
-
const se_TagKeyList = (input, context) => {
|
|
3518
|
-
return input
|
|
3519
|
-
.filter((e) => e != null)
|
|
3520
|
-
.map((entry) => {
|
|
3521
|
-
return entry;
|
|
3091
|
+
const de_VirtualServiceData = (output, context) => {
|
|
3092
|
+
return take(output, {
|
|
3093
|
+
meshName: __expectString,
|
|
3094
|
+
metadata: (_) => de_ResourceMetadata(_, context),
|
|
3095
|
+
spec: _json,
|
|
3096
|
+
status: _json,
|
|
3097
|
+
virtualServiceName: __expectString,
|
|
3522
3098
|
});
|
|
3523
3099
|
};
|
|
3524
|
-
const
|
|
3525
|
-
|
|
3100
|
+
const de_VirtualServiceList = (output, context) => {
|
|
3101
|
+
const retVal = (output || [])
|
|
3526
3102
|
.filter((e) => e != null)
|
|
3527
3103
|
.map((entry) => {
|
|
3528
|
-
return
|
|
3104
|
+
return de_VirtualServiceRef(entry, context);
|
|
3529
3105
|
});
|
|
3106
|
+
return retVal;
|
|
3530
3107
|
};
|
|
3531
|
-
const
|
|
3532
|
-
return {
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
return entry;
|
|
3108
|
+
const de_VirtualServiceRef = (output, context) => {
|
|
3109
|
+
return take(output, {
|
|
3110
|
+
arn: __expectString,
|
|
3111
|
+
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3112
|
+
lastUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3113
|
+
meshName: __expectString,
|
|
3114
|
+
meshOwner: __expectString,
|
|
3115
|
+
resourceOwner: __expectString,
|
|
3116
|
+
version: __expectLong,
|
|
3117
|
+
virtualServiceName: __expectString,
|
|
3542
3118
|
});
|
|
3543
3119
|
};
|
|
3544
|
-
const se_TcpRoute = (input, context) => {
|
|
3545
|
-
return {
|
|
3546
|
-
...(input.action != null && { action: se_TcpRouteAction(input.action, context) }),
|
|
3547
|
-
...(input.match != null && { match: se_TcpRouteMatch(input.match, context) }),
|
|
3548
|
-
...(input.timeout != null && { timeout: se_TcpTimeout(input.timeout, context) }),
|
|
3549
|
-
};
|
|
3550
|
-
};
|
|
3551
|
-
const se_TcpRouteAction = (input, context) => {
|
|
3552
|
-
return {
|
|
3553
|
-
...(input.weightedTargets != null && { weightedTargets: se_WeightedTargets(input.weightedTargets, context) }),
|
|
3554
|
-
};
|
|
3555
|
-
};
|
|
3556
|
-
const se_TcpRouteMatch = (input, context) => {
|
|
3557
|
-
return {
|
|
3558
|
-
...(input.port != null && { port: input.port }),
|
|
3559
|
-
};
|
|
3560
|
-
};
|
|
3561
|
-
const se_TcpTimeout = (input, context) => {
|
|
3562
|
-
return {
|
|
3563
|
-
...(input.idle != null && { idle: se_Duration(input.idle, context) }),
|
|
3564
|
-
};
|
|
3565
|
-
};
|
|
3566
|
-
const se_TlsValidationContext = (input, context) => {
|
|
3567
|
-
return {
|
|
3568
|
-
...(input.subjectAlternativeNames != null && {
|
|
3569
|
-
subjectAlternativeNames: se_SubjectAlternativeNames(input.subjectAlternativeNames, context),
|
|
3570
|
-
}),
|
|
3571
|
-
...(input.trust != null && { trust: se_TlsValidationContextTrust(input.trust, context) }),
|
|
3572
|
-
};
|
|
3573
|
-
};
|
|
3574
|
-
const se_TlsValidationContextAcmTrust = (input, context) => {
|
|
3575
|
-
return {
|
|
3576
|
-
...(input.certificateAuthorityArns != null && {
|
|
3577
|
-
certificateAuthorityArns: se_CertificateAuthorityArns(input.certificateAuthorityArns, context),
|
|
3578
|
-
}),
|
|
3579
|
-
};
|
|
3580
|
-
};
|
|
3581
|
-
const se_TlsValidationContextFileTrust = (input, context) => {
|
|
3582
|
-
return {
|
|
3583
|
-
...(input.certificateChain != null && { certificateChain: input.certificateChain }),
|
|
3584
|
-
};
|
|
3585
|
-
};
|
|
3586
|
-
const se_TlsValidationContextSdsTrust = (input, context) => {
|
|
3587
|
-
return {
|
|
3588
|
-
...(input.secretName != null && { secretName: input.secretName }),
|
|
3589
|
-
};
|
|
3590
|
-
};
|
|
3591
|
-
const se_TlsValidationContextTrust = (input, context) => {
|
|
3592
|
-
return TlsValidationContextTrust.visit(input, {
|
|
3593
|
-
acm: (value) => ({ acm: se_TlsValidationContextAcmTrust(value, context) }),
|
|
3594
|
-
file: (value) => ({ file: se_TlsValidationContextFileTrust(value, context) }),
|
|
3595
|
-
sds: (value) => ({ sds: se_TlsValidationContextSdsTrust(value, context) }),
|
|
3596
|
-
_: (name, value) => ({ name: value }),
|
|
3597
|
-
});
|
|
3598
|
-
};
|
|
3599
|
-
const se_VirtualGatewayAccessLog = (input, context) => {
|
|
3600
|
-
return VirtualGatewayAccessLog.visit(input, {
|
|
3601
|
-
file: (value) => ({ file: se_VirtualGatewayFileAccessLog(value, context) }),
|
|
3602
|
-
_: (name, value) => ({ name: value }),
|
|
3603
|
-
});
|
|
3604
|
-
};
|
|
3605
|
-
const se_VirtualGatewayBackendDefaults = (input, context) => {
|
|
3606
|
-
return {
|
|
3607
|
-
...(input.clientPolicy != null && { clientPolicy: se_VirtualGatewayClientPolicy(input.clientPolicy, context) }),
|
|
3608
|
-
};
|
|
3609
|
-
};
|
|
3610
|
-
const se_VirtualGatewayCertificateAuthorityArns = (input, context) => {
|
|
3611
|
-
return input
|
|
3612
|
-
.filter((e) => e != null)
|
|
3613
|
-
.map((entry) => {
|
|
3614
|
-
return entry;
|
|
3615
|
-
});
|
|
3616
|
-
};
|
|
3617
|
-
const se_VirtualGatewayClientPolicy = (input, context) => {
|
|
3618
|
-
return {
|
|
3619
|
-
...(input.tls != null && { tls: se_VirtualGatewayClientPolicyTls(input.tls, context) }),
|
|
3620
|
-
};
|
|
3621
|
-
};
|
|
3622
|
-
const se_VirtualGatewayClientPolicyTls = (input, context) => {
|
|
3623
|
-
return {
|
|
3624
|
-
...(input.certificate != null && {
|
|
3625
|
-
certificate: se_VirtualGatewayClientTlsCertificate(input.certificate, context),
|
|
3626
|
-
}),
|
|
3627
|
-
...(input.enforce != null && { enforce: input.enforce }),
|
|
3628
|
-
...(input.ports != null && { ports: se_PortSet(input.ports, context) }),
|
|
3629
|
-
...(input.validation != null && { validation: se_VirtualGatewayTlsValidationContext(input.validation, context) }),
|
|
3630
|
-
};
|
|
3631
|
-
};
|
|
3632
|
-
const se_VirtualGatewayClientTlsCertificate = (input, context) => {
|
|
3633
|
-
return VirtualGatewayClientTlsCertificate.visit(input, {
|
|
3634
|
-
file: (value) => ({ file: se_VirtualGatewayListenerTlsFileCertificate(value, context) }),
|
|
3635
|
-
sds: (value) => ({ sds: se_VirtualGatewayListenerTlsSdsCertificate(value, context) }),
|
|
3636
|
-
_: (name, value) => ({ name: value }),
|
|
3637
|
-
});
|
|
3638
|
-
};
|
|
3639
|
-
const se_VirtualGatewayConnectionPool = (input, context) => {
|
|
3640
|
-
return VirtualGatewayConnectionPool.visit(input, {
|
|
3641
|
-
grpc: (value) => ({ grpc: se_VirtualGatewayGrpcConnectionPool(value, context) }),
|
|
3642
|
-
http: (value) => ({ http: se_VirtualGatewayHttpConnectionPool(value, context) }),
|
|
3643
|
-
http2: (value) => ({ http2: se_VirtualGatewayHttp2ConnectionPool(value, context) }),
|
|
3644
|
-
_: (name, value) => ({ name: value }),
|
|
3645
|
-
});
|
|
3646
|
-
};
|
|
3647
|
-
const se_VirtualGatewayFileAccessLog = (input, context) => {
|
|
3648
|
-
return {
|
|
3649
|
-
...(input.format != null && { format: se_LoggingFormat(input.format, context) }),
|
|
3650
|
-
...(input.path != null && { path: input.path }),
|
|
3651
|
-
};
|
|
3652
|
-
};
|
|
3653
|
-
const se_VirtualGatewayGrpcConnectionPool = (input, context) => {
|
|
3654
|
-
return {
|
|
3655
|
-
...(input.maxRequests != null && { maxRequests: input.maxRequests }),
|
|
3656
|
-
};
|
|
3657
|
-
};
|
|
3658
|
-
const se_VirtualGatewayHealthCheckPolicy = (input, context) => {
|
|
3659
|
-
return {
|
|
3660
|
-
...(input.healthyThreshold != null && { healthyThreshold: input.healthyThreshold }),
|
|
3661
|
-
...(input.intervalMillis != null && { intervalMillis: input.intervalMillis }),
|
|
3662
|
-
...(input.path != null && { path: input.path }),
|
|
3663
|
-
...(input.port != null && { port: input.port }),
|
|
3664
|
-
...(input.protocol != null && { protocol: input.protocol }),
|
|
3665
|
-
...(input.timeoutMillis != null && { timeoutMillis: input.timeoutMillis }),
|
|
3666
|
-
...(input.unhealthyThreshold != null && { unhealthyThreshold: input.unhealthyThreshold }),
|
|
3667
|
-
};
|
|
3668
|
-
};
|
|
3669
|
-
const se_VirtualGatewayHttp2ConnectionPool = (input, context) => {
|
|
3670
|
-
return {
|
|
3671
|
-
...(input.maxRequests != null && { maxRequests: input.maxRequests }),
|
|
3672
|
-
};
|
|
3673
|
-
};
|
|
3674
|
-
const se_VirtualGatewayHttpConnectionPool = (input, context) => {
|
|
3675
|
-
return {
|
|
3676
|
-
...(input.maxConnections != null && { maxConnections: input.maxConnections }),
|
|
3677
|
-
...(input.maxPendingRequests != null && { maxPendingRequests: input.maxPendingRequests }),
|
|
3678
|
-
};
|
|
3679
|
-
};
|
|
3680
|
-
const se_VirtualGatewayListener = (input, context) => {
|
|
3681
|
-
return {
|
|
3682
|
-
...(input.connectionPool != null && {
|
|
3683
|
-
connectionPool: se_VirtualGatewayConnectionPool(input.connectionPool, context),
|
|
3684
|
-
}),
|
|
3685
|
-
...(input.healthCheck != null && { healthCheck: se_VirtualGatewayHealthCheckPolicy(input.healthCheck, context) }),
|
|
3686
|
-
...(input.portMapping != null && { portMapping: se_VirtualGatewayPortMapping(input.portMapping, context) }),
|
|
3687
|
-
...(input.tls != null && { tls: se_VirtualGatewayListenerTls(input.tls, context) }),
|
|
3688
|
-
};
|
|
3689
|
-
};
|
|
3690
|
-
const se_VirtualGatewayListeners = (input, context) => {
|
|
3691
|
-
return input
|
|
3692
|
-
.filter((e) => e != null)
|
|
3693
|
-
.map((entry) => {
|
|
3694
|
-
return se_VirtualGatewayListener(entry, context);
|
|
3695
|
-
});
|
|
3696
|
-
};
|
|
3697
|
-
const se_VirtualGatewayListenerTls = (input, context) => {
|
|
3698
|
-
return {
|
|
3699
|
-
...(input.certificate != null && {
|
|
3700
|
-
certificate: se_VirtualGatewayListenerTlsCertificate(input.certificate, context),
|
|
3701
|
-
}),
|
|
3702
|
-
...(input.mode != null && { mode: input.mode }),
|
|
3703
|
-
...(input.validation != null && {
|
|
3704
|
-
validation: se_VirtualGatewayListenerTlsValidationContext(input.validation, context),
|
|
3705
|
-
}),
|
|
3706
|
-
};
|
|
3707
|
-
};
|
|
3708
|
-
const se_VirtualGatewayListenerTlsAcmCertificate = (input, context) => {
|
|
3709
|
-
return {
|
|
3710
|
-
...(input.certificateArn != null && { certificateArn: input.certificateArn }),
|
|
3711
|
-
};
|
|
3712
|
-
};
|
|
3713
|
-
const se_VirtualGatewayListenerTlsCertificate = (input, context) => {
|
|
3714
|
-
return VirtualGatewayListenerTlsCertificate.visit(input, {
|
|
3715
|
-
acm: (value) => ({ acm: se_VirtualGatewayListenerTlsAcmCertificate(value, context) }),
|
|
3716
|
-
file: (value) => ({ file: se_VirtualGatewayListenerTlsFileCertificate(value, context) }),
|
|
3717
|
-
sds: (value) => ({ sds: se_VirtualGatewayListenerTlsSdsCertificate(value, context) }),
|
|
3718
|
-
_: (name, value) => ({ name: value }),
|
|
3719
|
-
});
|
|
3720
|
-
};
|
|
3721
|
-
const se_VirtualGatewayListenerTlsFileCertificate = (input, context) => {
|
|
3722
|
-
return {
|
|
3723
|
-
...(input.certificateChain != null && { certificateChain: input.certificateChain }),
|
|
3724
|
-
...(input.privateKey != null && { privateKey: input.privateKey }),
|
|
3725
|
-
};
|
|
3726
|
-
};
|
|
3727
|
-
const se_VirtualGatewayListenerTlsSdsCertificate = (input, context) => {
|
|
3728
|
-
return {
|
|
3729
|
-
...(input.secretName != null && { secretName: input.secretName }),
|
|
3730
|
-
};
|
|
3731
|
-
};
|
|
3732
|
-
const se_VirtualGatewayListenerTlsValidationContext = (input, context) => {
|
|
3733
|
-
return {
|
|
3734
|
-
...(input.subjectAlternativeNames != null && {
|
|
3735
|
-
subjectAlternativeNames: se_SubjectAlternativeNames(input.subjectAlternativeNames, context),
|
|
3736
|
-
}),
|
|
3737
|
-
...(input.trust != null && { trust: se_VirtualGatewayListenerTlsValidationContextTrust(input.trust, context) }),
|
|
3738
|
-
};
|
|
3739
|
-
};
|
|
3740
|
-
const se_VirtualGatewayListenerTlsValidationContextTrust = (input, context) => {
|
|
3741
|
-
return VirtualGatewayListenerTlsValidationContextTrust.visit(input, {
|
|
3742
|
-
file: (value) => ({ file: se_VirtualGatewayTlsValidationContextFileTrust(value, context) }),
|
|
3743
|
-
sds: (value) => ({ sds: se_VirtualGatewayTlsValidationContextSdsTrust(value, context) }),
|
|
3744
|
-
_: (name, value) => ({ name: value }),
|
|
3745
|
-
});
|
|
3746
|
-
};
|
|
3747
|
-
const se_VirtualGatewayLogging = (input, context) => {
|
|
3748
|
-
return {
|
|
3749
|
-
...(input.accessLog != null && { accessLog: se_VirtualGatewayAccessLog(input.accessLog, context) }),
|
|
3750
|
-
};
|
|
3751
|
-
};
|
|
3752
|
-
const se_VirtualGatewayPortMapping = (input, context) => {
|
|
3753
|
-
return {
|
|
3754
|
-
...(input.port != null && { port: input.port }),
|
|
3755
|
-
...(input.protocol != null && { protocol: input.protocol }),
|
|
3756
|
-
};
|
|
3757
|
-
};
|
|
3758
|
-
const se_VirtualGatewaySpec = (input, context) => {
|
|
3759
|
-
return {
|
|
3760
|
-
...(input.backendDefaults != null && {
|
|
3761
|
-
backendDefaults: se_VirtualGatewayBackendDefaults(input.backendDefaults, context),
|
|
3762
|
-
}),
|
|
3763
|
-
...(input.listeners != null && { listeners: se_VirtualGatewayListeners(input.listeners, context) }),
|
|
3764
|
-
...(input.logging != null && { logging: se_VirtualGatewayLogging(input.logging, context) }),
|
|
3765
|
-
};
|
|
3766
|
-
};
|
|
3767
|
-
const se_VirtualGatewayTlsValidationContext = (input, context) => {
|
|
3768
|
-
return {
|
|
3769
|
-
...(input.subjectAlternativeNames != null && {
|
|
3770
|
-
subjectAlternativeNames: se_SubjectAlternativeNames(input.subjectAlternativeNames, context),
|
|
3771
|
-
}),
|
|
3772
|
-
...(input.trust != null && { trust: se_VirtualGatewayTlsValidationContextTrust(input.trust, context) }),
|
|
3773
|
-
};
|
|
3774
|
-
};
|
|
3775
|
-
const se_VirtualGatewayTlsValidationContextAcmTrust = (input, context) => {
|
|
3776
|
-
return {
|
|
3777
|
-
...(input.certificateAuthorityArns != null && {
|
|
3778
|
-
certificateAuthorityArns: se_VirtualGatewayCertificateAuthorityArns(input.certificateAuthorityArns, context),
|
|
3779
|
-
}),
|
|
3780
|
-
};
|
|
3781
|
-
};
|
|
3782
|
-
const se_VirtualGatewayTlsValidationContextFileTrust = (input, context) => {
|
|
3783
|
-
return {
|
|
3784
|
-
...(input.certificateChain != null && { certificateChain: input.certificateChain }),
|
|
3785
|
-
};
|
|
3786
|
-
};
|
|
3787
|
-
const se_VirtualGatewayTlsValidationContextSdsTrust = (input, context) => {
|
|
3788
|
-
return {
|
|
3789
|
-
...(input.secretName != null && { secretName: input.secretName }),
|
|
3790
|
-
};
|
|
3791
|
-
};
|
|
3792
|
-
const se_VirtualGatewayTlsValidationContextTrust = (input, context) => {
|
|
3793
|
-
return VirtualGatewayTlsValidationContextTrust.visit(input, {
|
|
3794
|
-
acm: (value) => ({ acm: se_VirtualGatewayTlsValidationContextAcmTrust(value, context) }),
|
|
3795
|
-
file: (value) => ({ file: se_VirtualGatewayTlsValidationContextFileTrust(value, context) }),
|
|
3796
|
-
sds: (value) => ({ sds: se_VirtualGatewayTlsValidationContextSdsTrust(value, context) }),
|
|
3797
|
-
_: (name, value) => ({ name: value }),
|
|
3798
|
-
});
|
|
3799
|
-
};
|
|
3800
|
-
const se_VirtualNodeConnectionPool = (input, context) => {
|
|
3801
|
-
return VirtualNodeConnectionPool.visit(input, {
|
|
3802
|
-
grpc: (value) => ({ grpc: se_VirtualNodeGrpcConnectionPool(value, context) }),
|
|
3803
|
-
http: (value) => ({ http: se_VirtualNodeHttpConnectionPool(value, context) }),
|
|
3804
|
-
http2: (value) => ({ http2: se_VirtualNodeHttp2ConnectionPool(value, context) }),
|
|
3805
|
-
tcp: (value) => ({ tcp: se_VirtualNodeTcpConnectionPool(value, context) }),
|
|
3806
|
-
_: (name, value) => ({ name: value }),
|
|
3807
|
-
});
|
|
3808
|
-
};
|
|
3809
|
-
const se_VirtualNodeGrpcConnectionPool = (input, context) => {
|
|
3810
|
-
return {
|
|
3811
|
-
...(input.maxRequests != null && { maxRequests: input.maxRequests }),
|
|
3812
|
-
};
|
|
3813
|
-
};
|
|
3814
|
-
const se_VirtualNodeHttp2ConnectionPool = (input, context) => {
|
|
3815
|
-
return {
|
|
3816
|
-
...(input.maxRequests != null && { maxRequests: input.maxRequests }),
|
|
3817
|
-
};
|
|
3818
|
-
};
|
|
3819
|
-
const se_VirtualNodeHttpConnectionPool = (input, context) => {
|
|
3820
|
-
return {
|
|
3821
|
-
...(input.maxConnections != null && { maxConnections: input.maxConnections }),
|
|
3822
|
-
...(input.maxPendingRequests != null && { maxPendingRequests: input.maxPendingRequests }),
|
|
3823
|
-
};
|
|
3824
|
-
};
|
|
3825
|
-
const se_VirtualNodeServiceProvider = (input, context) => {
|
|
3826
|
-
return {
|
|
3827
|
-
...(input.virtualNodeName != null && { virtualNodeName: input.virtualNodeName }),
|
|
3828
|
-
};
|
|
3829
|
-
};
|
|
3830
|
-
const se_VirtualNodeSpec = (input, context) => {
|
|
3831
|
-
return {
|
|
3832
|
-
...(input.backendDefaults != null && { backendDefaults: se_BackendDefaults(input.backendDefaults, context) }),
|
|
3833
|
-
...(input.backends != null && { backends: se_Backends(input.backends, context) }),
|
|
3834
|
-
...(input.listeners != null && { listeners: se_Listeners(input.listeners, context) }),
|
|
3835
|
-
...(input.logging != null && { logging: se_Logging(input.logging, context) }),
|
|
3836
|
-
...(input.serviceDiscovery != null && { serviceDiscovery: se_ServiceDiscovery(input.serviceDiscovery, context) }),
|
|
3837
|
-
};
|
|
3838
|
-
};
|
|
3839
|
-
const se_VirtualNodeTcpConnectionPool = (input, context) => {
|
|
3840
|
-
return {
|
|
3841
|
-
...(input.maxConnections != null && { maxConnections: input.maxConnections }),
|
|
3842
|
-
};
|
|
3843
|
-
};
|
|
3844
|
-
const se_VirtualRouterListener = (input, context) => {
|
|
3845
|
-
return {
|
|
3846
|
-
...(input.portMapping != null && { portMapping: se_PortMapping(input.portMapping, context) }),
|
|
3847
|
-
};
|
|
3848
|
-
};
|
|
3849
|
-
const se_VirtualRouterListeners = (input, context) => {
|
|
3850
|
-
return input
|
|
3851
|
-
.filter((e) => e != null)
|
|
3852
|
-
.map((entry) => {
|
|
3853
|
-
return se_VirtualRouterListener(entry, context);
|
|
3854
|
-
});
|
|
3855
|
-
};
|
|
3856
|
-
const se_VirtualRouterServiceProvider = (input, context) => {
|
|
3857
|
-
return {
|
|
3858
|
-
...(input.virtualRouterName != null && { virtualRouterName: input.virtualRouterName }),
|
|
3859
|
-
};
|
|
3860
|
-
};
|
|
3861
|
-
const se_VirtualRouterSpec = (input, context) => {
|
|
3862
|
-
return {
|
|
3863
|
-
...(input.listeners != null && { listeners: se_VirtualRouterListeners(input.listeners, context) }),
|
|
3864
|
-
};
|
|
3865
|
-
};
|
|
3866
|
-
const se_VirtualServiceBackend = (input, context) => {
|
|
3867
|
-
return {
|
|
3868
|
-
...(input.clientPolicy != null && { clientPolicy: se_ClientPolicy(input.clientPolicy, context) }),
|
|
3869
|
-
...(input.virtualServiceName != null && { virtualServiceName: input.virtualServiceName }),
|
|
3870
|
-
};
|
|
3871
|
-
};
|
|
3872
|
-
const se_VirtualServiceProvider = (input, context) => {
|
|
3873
|
-
return VirtualServiceProvider.visit(input, {
|
|
3874
|
-
virtualNode: (value) => ({ virtualNode: se_VirtualNodeServiceProvider(value, context) }),
|
|
3875
|
-
virtualRouter: (value) => ({ virtualRouter: se_VirtualRouterServiceProvider(value, context) }),
|
|
3876
|
-
_: (name, value) => ({ name: value }),
|
|
3877
|
-
});
|
|
3878
|
-
};
|
|
3879
|
-
const se_VirtualServiceSpec = (input, context) => {
|
|
3880
|
-
return {
|
|
3881
|
-
...(input.provider != null && { provider: se_VirtualServiceProvider(input.provider, context) }),
|
|
3882
|
-
};
|
|
3883
|
-
};
|
|
3884
|
-
const se_WeightedTarget = (input, context) => {
|
|
3885
|
-
return {
|
|
3886
|
-
...(input.port != null && { port: input.port }),
|
|
3887
|
-
...(input.virtualNode != null && { virtualNode: input.virtualNode }),
|
|
3888
|
-
...(input.weight != null && { weight: input.weight }),
|
|
3889
|
-
};
|
|
3890
|
-
};
|
|
3891
|
-
const se_WeightedTargets = (input, context) => {
|
|
3892
|
-
return input
|
|
3893
|
-
.filter((e) => e != null)
|
|
3894
|
-
.map((entry) => {
|
|
3895
|
-
return se_WeightedTarget(entry, context);
|
|
3896
|
-
});
|
|
3897
|
-
};
|
|
3898
|
-
const de_AccessLog = (output, context) => {
|
|
3899
|
-
if (output.file != null) {
|
|
3900
|
-
return {
|
|
3901
|
-
file: de_FileAccessLog(output.file, context),
|
|
3902
|
-
};
|
|
3903
|
-
}
|
|
3904
|
-
return { $unknown: Object.entries(output)[0] };
|
|
3905
|
-
};
|
|
3906
|
-
const de_AwsCloudMapInstanceAttribute = (output, context) => {
|
|
3907
|
-
return {
|
|
3908
|
-
key: __expectString(output.key),
|
|
3909
|
-
value: __expectString(output.value),
|
|
3910
|
-
};
|
|
3911
|
-
};
|
|
3912
|
-
const de_AwsCloudMapInstanceAttributes = (output, context) => {
|
|
3913
|
-
const retVal = (output || [])
|
|
3914
|
-
.filter((e) => e != null)
|
|
3915
|
-
.map((entry) => {
|
|
3916
|
-
if (entry === null) {
|
|
3917
|
-
return null;
|
|
3918
|
-
}
|
|
3919
|
-
return de_AwsCloudMapInstanceAttribute(entry, context);
|
|
3920
|
-
});
|
|
3921
|
-
return retVal;
|
|
3922
|
-
};
|
|
3923
|
-
const de_AwsCloudMapServiceDiscovery = (output, context) => {
|
|
3924
|
-
return {
|
|
3925
|
-
attributes: output.attributes != null ? de_AwsCloudMapInstanceAttributes(output.attributes, context) : undefined,
|
|
3926
|
-
ipPreference: __expectString(output.ipPreference),
|
|
3927
|
-
namespaceName: __expectString(output.namespaceName),
|
|
3928
|
-
serviceName: __expectString(output.serviceName),
|
|
3929
|
-
};
|
|
3930
|
-
};
|
|
3931
|
-
const de_Backend = (output, context) => {
|
|
3932
|
-
if (output.virtualService != null) {
|
|
3933
|
-
return {
|
|
3934
|
-
virtualService: de_VirtualServiceBackend(output.virtualService, context),
|
|
3935
|
-
};
|
|
3936
|
-
}
|
|
3937
|
-
return { $unknown: Object.entries(output)[0] };
|
|
3938
|
-
};
|
|
3939
|
-
const de_BackendDefaults = (output, context) => {
|
|
3940
|
-
return {
|
|
3941
|
-
clientPolicy: output.clientPolicy != null ? de_ClientPolicy(output.clientPolicy, context) : undefined,
|
|
3942
|
-
};
|
|
3943
|
-
};
|
|
3944
|
-
const de_Backends = (output, context) => {
|
|
3945
|
-
const retVal = (output || [])
|
|
3946
|
-
.filter((e) => e != null)
|
|
3947
|
-
.map((entry) => {
|
|
3948
|
-
if (entry === null) {
|
|
3949
|
-
return null;
|
|
3950
|
-
}
|
|
3951
|
-
return de_Backend(__expectUnion(entry), context);
|
|
3952
|
-
});
|
|
3953
|
-
return retVal;
|
|
3954
|
-
};
|
|
3955
|
-
const de_CertificateAuthorityArns = (output, context) => {
|
|
3956
|
-
const retVal = (output || [])
|
|
3957
|
-
.filter((e) => e != null)
|
|
3958
|
-
.map((entry) => {
|
|
3959
|
-
if (entry === null) {
|
|
3960
|
-
return null;
|
|
3961
|
-
}
|
|
3962
|
-
return __expectString(entry);
|
|
3963
|
-
});
|
|
3964
|
-
return retVal;
|
|
3965
|
-
};
|
|
3966
|
-
const de_ClientPolicy = (output, context) => {
|
|
3967
|
-
return {
|
|
3968
|
-
tls: output.tls != null ? de_ClientPolicyTls(output.tls, context) : undefined,
|
|
3969
|
-
};
|
|
3970
|
-
};
|
|
3971
|
-
const de_ClientPolicyTls = (output, context) => {
|
|
3972
|
-
return {
|
|
3973
|
-
certificate: output.certificate != null ? de_ClientTlsCertificate(__expectUnion(output.certificate), context) : undefined,
|
|
3974
|
-
enforce: __expectBoolean(output.enforce),
|
|
3975
|
-
ports: output.ports != null ? de_PortSet(output.ports, context) : undefined,
|
|
3976
|
-
validation: output.validation != null ? de_TlsValidationContext(output.validation, context) : undefined,
|
|
3977
|
-
};
|
|
3978
|
-
};
|
|
3979
|
-
const de_ClientTlsCertificate = (output, context) => {
|
|
3980
|
-
if (output.file != null) {
|
|
3981
|
-
return {
|
|
3982
|
-
file: de_ListenerTlsFileCertificate(output.file, context),
|
|
3983
|
-
};
|
|
3984
|
-
}
|
|
3985
|
-
if (output.sds != null) {
|
|
3986
|
-
return {
|
|
3987
|
-
sds: de_ListenerTlsSdsCertificate(output.sds, context),
|
|
3988
|
-
};
|
|
3989
|
-
}
|
|
3990
|
-
return { $unknown: Object.entries(output)[0] };
|
|
3991
|
-
};
|
|
3992
|
-
const de_DnsServiceDiscovery = (output, context) => {
|
|
3993
|
-
return {
|
|
3994
|
-
hostname: __expectString(output.hostname),
|
|
3995
|
-
ipPreference: __expectString(output.ipPreference),
|
|
3996
|
-
responseType: __expectString(output.responseType),
|
|
3997
|
-
};
|
|
3998
|
-
};
|
|
3999
|
-
const de_Duration = (output, context) => {
|
|
4000
|
-
return {
|
|
4001
|
-
unit: __expectString(output.unit),
|
|
4002
|
-
value: __expectLong(output.value),
|
|
4003
|
-
};
|
|
4004
|
-
};
|
|
4005
|
-
const de_EgressFilter = (output, context) => {
|
|
4006
|
-
return {
|
|
4007
|
-
type: __expectString(output.type),
|
|
4008
|
-
};
|
|
4009
|
-
};
|
|
4010
|
-
const de_FileAccessLog = (output, context) => {
|
|
4011
|
-
return {
|
|
4012
|
-
format: output.format != null ? de_LoggingFormat(__expectUnion(output.format), context) : undefined,
|
|
4013
|
-
path: __expectString(output.path),
|
|
4014
|
-
};
|
|
4015
|
-
};
|
|
4016
|
-
const de_GatewayRouteData = (output, context) => {
|
|
4017
|
-
return {
|
|
4018
|
-
gatewayRouteName: __expectString(output.gatewayRouteName),
|
|
4019
|
-
meshName: __expectString(output.meshName),
|
|
4020
|
-
metadata: output.metadata != null ? de_ResourceMetadata(output.metadata, context) : undefined,
|
|
4021
|
-
spec: output.spec != null ? de_GatewayRouteSpec(output.spec, context) : undefined,
|
|
4022
|
-
status: output.status != null ? de_GatewayRouteStatus(output.status, context) : undefined,
|
|
4023
|
-
virtualGatewayName: __expectString(output.virtualGatewayName),
|
|
4024
|
-
};
|
|
4025
|
-
};
|
|
4026
|
-
const de_GatewayRouteHostnameMatch = (output, context) => {
|
|
4027
|
-
return {
|
|
4028
|
-
exact: __expectString(output.exact),
|
|
4029
|
-
suffix: __expectString(output.suffix),
|
|
4030
|
-
};
|
|
4031
|
-
};
|
|
4032
|
-
const de_GatewayRouteHostnameRewrite = (output, context) => {
|
|
4033
|
-
return {
|
|
4034
|
-
defaultTargetHostname: __expectString(output.defaultTargetHostname),
|
|
4035
|
-
};
|
|
4036
|
-
};
|
|
4037
|
-
const de_GatewayRouteList = (output, context) => {
|
|
4038
|
-
const retVal = (output || [])
|
|
4039
|
-
.filter((e) => e != null)
|
|
4040
|
-
.map((entry) => {
|
|
4041
|
-
if (entry === null) {
|
|
4042
|
-
return null;
|
|
4043
|
-
}
|
|
4044
|
-
return de_GatewayRouteRef(entry, context);
|
|
4045
|
-
});
|
|
4046
|
-
return retVal;
|
|
4047
|
-
};
|
|
4048
|
-
const de_GatewayRouteRef = (output, context) => {
|
|
4049
|
-
return {
|
|
4050
|
-
arn: __expectString(output.arn),
|
|
4051
|
-
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
4052
|
-
gatewayRouteName: __expectString(output.gatewayRouteName),
|
|
4053
|
-
lastUpdatedAt: output.lastUpdatedAt != null
|
|
4054
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
|
|
4055
|
-
: undefined,
|
|
4056
|
-
meshName: __expectString(output.meshName),
|
|
4057
|
-
meshOwner: __expectString(output.meshOwner),
|
|
4058
|
-
resourceOwner: __expectString(output.resourceOwner),
|
|
4059
|
-
version: __expectLong(output.version),
|
|
4060
|
-
virtualGatewayName: __expectString(output.virtualGatewayName),
|
|
4061
|
-
};
|
|
4062
|
-
};
|
|
4063
|
-
const de_GatewayRouteSpec = (output, context) => {
|
|
4064
|
-
return {
|
|
4065
|
-
grpcRoute: output.grpcRoute != null ? de_GrpcGatewayRoute(output.grpcRoute, context) : undefined,
|
|
4066
|
-
http2Route: output.http2Route != null ? de_HttpGatewayRoute(output.http2Route, context) : undefined,
|
|
4067
|
-
httpRoute: output.httpRoute != null ? de_HttpGatewayRoute(output.httpRoute, context) : undefined,
|
|
4068
|
-
priority: __expectInt32(output.priority),
|
|
4069
|
-
};
|
|
4070
|
-
};
|
|
4071
|
-
const de_GatewayRouteStatus = (output, context) => {
|
|
4072
|
-
return {
|
|
4073
|
-
status: __expectString(output.status),
|
|
4074
|
-
};
|
|
4075
|
-
};
|
|
4076
|
-
const de_GatewayRouteTarget = (output, context) => {
|
|
4077
|
-
return {
|
|
4078
|
-
port: __expectInt32(output.port),
|
|
4079
|
-
virtualService: output.virtualService != null ? de_GatewayRouteVirtualService(output.virtualService, context) : undefined,
|
|
4080
|
-
};
|
|
4081
|
-
};
|
|
4082
|
-
const de_GatewayRouteVirtualService = (output, context) => {
|
|
4083
|
-
return {
|
|
4084
|
-
virtualServiceName: __expectString(output.virtualServiceName),
|
|
4085
|
-
};
|
|
4086
|
-
};
|
|
4087
|
-
const de_GrpcGatewayRoute = (output, context) => {
|
|
4088
|
-
return {
|
|
4089
|
-
action: output.action != null ? de_GrpcGatewayRouteAction(output.action, context) : undefined,
|
|
4090
|
-
match: output.match != null ? de_GrpcGatewayRouteMatch(output.match, context) : undefined,
|
|
4091
|
-
};
|
|
4092
|
-
};
|
|
4093
|
-
const de_GrpcGatewayRouteAction = (output, context) => {
|
|
4094
|
-
return {
|
|
4095
|
-
rewrite: output.rewrite != null ? de_GrpcGatewayRouteRewrite(output.rewrite, context) : undefined,
|
|
4096
|
-
target: output.target != null ? de_GatewayRouteTarget(output.target, context) : undefined,
|
|
4097
|
-
};
|
|
4098
|
-
};
|
|
4099
|
-
const de_GrpcGatewayRouteMatch = (output, context) => {
|
|
4100
|
-
return {
|
|
4101
|
-
hostname: output.hostname != null ? de_GatewayRouteHostnameMatch(output.hostname, context) : undefined,
|
|
4102
|
-
metadata: output.metadata != null ? de_GrpcGatewayRouteMetadataList(output.metadata, context) : undefined,
|
|
4103
|
-
port: __expectInt32(output.port),
|
|
4104
|
-
serviceName: __expectString(output.serviceName),
|
|
4105
|
-
};
|
|
4106
|
-
};
|
|
4107
|
-
const de_GrpcGatewayRouteMetadata = (output, context) => {
|
|
4108
|
-
return {
|
|
4109
|
-
invert: __expectBoolean(output.invert),
|
|
4110
|
-
match: output.match != null ? de_GrpcMetadataMatchMethod(__expectUnion(output.match), context) : undefined,
|
|
4111
|
-
name: __expectString(output.name),
|
|
4112
|
-
};
|
|
4113
|
-
};
|
|
4114
|
-
const de_GrpcGatewayRouteMetadataList = (output, context) => {
|
|
4115
|
-
const retVal = (output || [])
|
|
4116
|
-
.filter((e) => e != null)
|
|
4117
|
-
.map((entry) => {
|
|
4118
|
-
if (entry === null) {
|
|
4119
|
-
return null;
|
|
4120
|
-
}
|
|
4121
|
-
return de_GrpcGatewayRouteMetadata(entry, context);
|
|
4122
|
-
});
|
|
4123
|
-
return retVal;
|
|
4124
|
-
};
|
|
4125
|
-
const de_GrpcGatewayRouteRewrite = (output, context) => {
|
|
4126
|
-
return {
|
|
4127
|
-
hostname: output.hostname != null ? de_GatewayRouteHostnameRewrite(output.hostname, context) : undefined,
|
|
4128
|
-
};
|
|
4129
|
-
};
|
|
4130
|
-
const de_GrpcMetadataMatchMethod = (output, context) => {
|
|
4131
|
-
if (__expectString(output.exact) !== undefined) {
|
|
4132
|
-
return { exact: __expectString(output.exact) };
|
|
4133
|
-
}
|
|
4134
|
-
if (__expectString(output.prefix) !== undefined) {
|
|
4135
|
-
return { prefix: __expectString(output.prefix) };
|
|
4136
|
-
}
|
|
4137
|
-
if (output.range != null) {
|
|
4138
|
-
return {
|
|
4139
|
-
range: de_MatchRange(output.range, context),
|
|
4140
|
-
};
|
|
4141
|
-
}
|
|
4142
|
-
if (__expectString(output.regex) !== undefined) {
|
|
4143
|
-
return { regex: __expectString(output.regex) };
|
|
4144
|
-
}
|
|
4145
|
-
if (__expectString(output.suffix) !== undefined) {
|
|
4146
|
-
return { suffix: __expectString(output.suffix) };
|
|
4147
|
-
}
|
|
4148
|
-
return { $unknown: Object.entries(output)[0] };
|
|
4149
|
-
};
|
|
4150
|
-
const de_GrpcRetryPolicy = (output, context) => {
|
|
4151
|
-
return {
|
|
4152
|
-
grpcRetryEvents: output.grpcRetryEvents != null ? de_GrpcRetryPolicyEvents(output.grpcRetryEvents, context) : undefined,
|
|
4153
|
-
httpRetryEvents: output.httpRetryEvents != null ? de_HttpRetryPolicyEvents(output.httpRetryEvents, context) : undefined,
|
|
4154
|
-
maxRetries: __expectLong(output.maxRetries),
|
|
4155
|
-
perRetryTimeout: output.perRetryTimeout != null ? de_Duration(output.perRetryTimeout, context) : undefined,
|
|
4156
|
-
tcpRetryEvents: output.tcpRetryEvents != null ? de_TcpRetryPolicyEvents(output.tcpRetryEvents, context) : undefined,
|
|
4157
|
-
};
|
|
4158
|
-
};
|
|
4159
|
-
const de_GrpcRetryPolicyEvents = (output, context) => {
|
|
4160
|
-
const retVal = (output || [])
|
|
4161
|
-
.filter((e) => e != null)
|
|
4162
|
-
.map((entry) => {
|
|
4163
|
-
if (entry === null) {
|
|
4164
|
-
return null;
|
|
4165
|
-
}
|
|
4166
|
-
return __expectString(entry);
|
|
4167
|
-
});
|
|
4168
|
-
return retVal;
|
|
4169
|
-
};
|
|
4170
|
-
const de_GrpcRoute = (output, context) => {
|
|
4171
|
-
return {
|
|
4172
|
-
action: output.action != null ? de_GrpcRouteAction(output.action, context) : undefined,
|
|
4173
|
-
match: output.match != null ? de_GrpcRouteMatch(output.match, context) : undefined,
|
|
4174
|
-
retryPolicy: output.retryPolicy != null ? de_GrpcRetryPolicy(output.retryPolicy, context) : undefined,
|
|
4175
|
-
timeout: output.timeout != null ? de_GrpcTimeout(output.timeout, context) : undefined,
|
|
4176
|
-
};
|
|
4177
|
-
};
|
|
4178
|
-
const de_GrpcRouteAction = (output, context) => {
|
|
4179
|
-
return {
|
|
4180
|
-
weightedTargets: output.weightedTargets != null ? de_WeightedTargets(output.weightedTargets, context) : undefined,
|
|
4181
|
-
};
|
|
4182
|
-
};
|
|
4183
|
-
const de_GrpcRouteMatch = (output, context) => {
|
|
4184
|
-
return {
|
|
4185
|
-
metadata: output.metadata != null ? de_GrpcRouteMetadataList(output.metadata, context) : undefined,
|
|
4186
|
-
methodName: __expectString(output.methodName),
|
|
4187
|
-
port: __expectInt32(output.port),
|
|
4188
|
-
serviceName: __expectString(output.serviceName),
|
|
4189
|
-
};
|
|
4190
|
-
};
|
|
4191
|
-
const de_GrpcRouteMetadata = (output, context) => {
|
|
4192
|
-
return {
|
|
4193
|
-
invert: __expectBoolean(output.invert),
|
|
4194
|
-
match: output.match != null ? de_GrpcRouteMetadataMatchMethod(__expectUnion(output.match), context) : undefined,
|
|
4195
|
-
name: __expectString(output.name),
|
|
4196
|
-
};
|
|
4197
|
-
};
|
|
4198
|
-
const de_GrpcRouteMetadataList = (output, context) => {
|
|
4199
|
-
const retVal = (output || [])
|
|
4200
|
-
.filter((e) => e != null)
|
|
4201
|
-
.map((entry) => {
|
|
4202
|
-
if (entry === null) {
|
|
4203
|
-
return null;
|
|
4204
|
-
}
|
|
4205
|
-
return de_GrpcRouteMetadata(entry, context);
|
|
4206
|
-
});
|
|
4207
|
-
return retVal;
|
|
4208
|
-
};
|
|
4209
|
-
const de_GrpcRouteMetadataMatchMethod = (output, context) => {
|
|
4210
|
-
if (__expectString(output.exact) !== undefined) {
|
|
4211
|
-
return { exact: __expectString(output.exact) };
|
|
4212
|
-
}
|
|
4213
|
-
if (__expectString(output.prefix) !== undefined) {
|
|
4214
|
-
return { prefix: __expectString(output.prefix) };
|
|
4215
|
-
}
|
|
4216
|
-
if (output.range != null) {
|
|
4217
|
-
return {
|
|
4218
|
-
range: de_MatchRange(output.range, context),
|
|
4219
|
-
};
|
|
4220
|
-
}
|
|
4221
|
-
if (__expectString(output.regex) !== undefined) {
|
|
4222
|
-
return { regex: __expectString(output.regex) };
|
|
4223
|
-
}
|
|
4224
|
-
if (__expectString(output.suffix) !== undefined) {
|
|
4225
|
-
return { suffix: __expectString(output.suffix) };
|
|
4226
|
-
}
|
|
4227
|
-
return { $unknown: Object.entries(output)[0] };
|
|
4228
|
-
};
|
|
4229
|
-
const de_GrpcTimeout = (output, context) => {
|
|
4230
|
-
return {
|
|
4231
|
-
idle: output.idle != null ? de_Duration(output.idle, context) : undefined,
|
|
4232
|
-
perRequest: output.perRequest != null ? de_Duration(output.perRequest, context) : undefined,
|
|
4233
|
-
};
|
|
4234
|
-
};
|
|
4235
|
-
const de_HeaderMatchMethod = (output, context) => {
|
|
4236
|
-
if (__expectString(output.exact) !== undefined) {
|
|
4237
|
-
return { exact: __expectString(output.exact) };
|
|
4238
|
-
}
|
|
4239
|
-
if (__expectString(output.prefix) !== undefined) {
|
|
4240
|
-
return { prefix: __expectString(output.prefix) };
|
|
4241
|
-
}
|
|
4242
|
-
if (output.range != null) {
|
|
4243
|
-
return {
|
|
4244
|
-
range: de_MatchRange(output.range, context),
|
|
4245
|
-
};
|
|
4246
|
-
}
|
|
4247
|
-
if (__expectString(output.regex) !== undefined) {
|
|
4248
|
-
return { regex: __expectString(output.regex) };
|
|
4249
|
-
}
|
|
4250
|
-
if (__expectString(output.suffix) !== undefined) {
|
|
4251
|
-
return { suffix: __expectString(output.suffix) };
|
|
4252
|
-
}
|
|
4253
|
-
return { $unknown: Object.entries(output)[0] };
|
|
4254
|
-
};
|
|
4255
|
-
const de_HealthCheckPolicy = (output, context) => {
|
|
4256
|
-
return {
|
|
4257
|
-
healthyThreshold: __expectInt32(output.healthyThreshold),
|
|
4258
|
-
intervalMillis: __expectLong(output.intervalMillis),
|
|
4259
|
-
path: __expectString(output.path),
|
|
4260
|
-
port: __expectInt32(output.port),
|
|
4261
|
-
protocol: __expectString(output.protocol),
|
|
4262
|
-
timeoutMillis: __expectLong(output.timeoutMillis),
|
|
4263
|
-
unhealthyThreshold: __expectInt32(output.unhealthyThreshold),
|
|
4264
|
-
};
|
|
4265
|
-
};
|
|
4266
|
-
const de_HttpGatewayRoute = (output, context) => {
|
|
4267
|
-
return {
|
|
4268
|
-
action: output.action != null ? de_HttpGatewayRouteAction(output.action, context) : undefined,
|
|
4269
|
-
match: output.match != null ? de_HttpGatewayRouteMatch(output.match, context) : undefined,
|
|
4270
|
-
};
|
|
4271
|
-
};
|
|
4272
|
-
const de_HttpGatewayRouteAction = (output, context) => {
|
|
4273
|
-
return {
|
|
4274
|
-
rewrite: output.rewrite != null ? de_HttpGatewayRouteRewrite(output.rewrite, context) : undefined,
|
|
4275
|
-
target: output.target != null ? de_GatewayRouteTarget(output.target, context) : undefined,
|
|
4276
|
-
};
|
|
4277
|
-
};
|
|
4278
|
-
const de_HttpGatewayRouteHeader = (output, context) => {
|
|
4279
|
-
return {
|
|
4280
|
-
invert: __expectBoolean(output.invert),
|
|
4281
|
-
match: output.match != null ? de_HeaderMatchMethod(__expectUnion(output.match), context) : undefined,
|
|
4282
|
-
name: __expectString(output.name),
|
|
4283
|
-
};
|
|
4284
|
-
};
|
|
4285
|
-
const de_HttpGatewayRouteHeaders = (output, context) => {
|
|
4286
|
-
const retVal = (output || [])
|
|
4287
|
-
.filter((e) => e != null)
|
|
4288
|
-
.map((entry) => {
|
|
4289
|
-
if (entry === null) {
|
|
4290
|
-
return null;
|
|
4291
|
-
}
|
|
4292
|
-
return de_HttpGatewayRouteHeader(entry, context);
|
|
4293
|
-
});
|
|
4294
|
-
return retVal;
|
|
4295
|
-
};
|
|
4296
|
-
const de_HttpGatewayRouteMatch = (output, context) => {
|
|
4297
|
-
return {
|
|
4298
|
-
headers: output.headers != null ? de_HttpGatewayRouteHeaders(output.headers, context) : undefined,
|
|
4299
|
-
hostname: output.hostname != null ? de_GatewayRouteHostnameMatch(output.hostname, context) : undefined,
|
|
4300
|
-
method: __expectString(output.method),
|
|
4301
|
-
path: output.path != null ? de_HttpPathMatch(output.path, context) : undefined,
|
|
4302
|
-
port: __expectInt32(output.port),
|
|
4303
|
-
prefix: __expectString(output.prefix),
|
|
4304
|
-
queryParameters: output.queryParameters != null ? de_HttpQueryParameters(output.queryParameters, context) : undefined,
|
|
4305
|
-
};
|
|
4306
|
-
};
|
|
4307
|
-
const de_HttpGatewayRoutePathRewrite = (output, context) => {
|
|
4308
|
-
return {
|
|
4309
|
-
exact: __expectString(output.exact),
|
|
4310
|
-
};
|
|
4311
|
-
};
|
|
4312
|
-
const de_HttpGatewayRoutePrefixRewrite = (output, context) => {
|
|
4313
|
-
return {
|
|
4314
|
-
defaultPrefix: __expectString(output.defaultPrefix),
|
|
4315
|
-
value: __expectString(output.value),
|
|
4316
|
-
};
|
|
4317
|
-
};
|
|
4318
|
-
const de_HttpGatewayRouteRewrite = (output, context) => {
|
|
4319
|
-
return {
|
|
4320
|
-
hostname: output.hostname != null ? de_GatewayRouteHostnameRewrite(output.hostname, context) : undefined,
|
|
4321
|
-
path: output.path != null ? de_HttpGatewayRoutePathRewrite(output.path, context) : undefined,
|
|
4322
|
-
prefix: output.prefix != null ? de_HttpGatewayRoutePrefixRewrite(output.prefix, context) : undefined,
|
|
4323
|
-
};
|
|
4324
|
-
};
|
|
4325
|
-
const de_HttpPathMatch = (output, context) => {
|
|
4326
|
-
return {
|
|
4327
|
-
exact: __expectString(output.exact),
|
|
4328
|
-
regex: __expectString(output.regex),
|
|
4329
|
-
};
|
|
4330
|
-
};
|
|
4331
|
-
const de_HttpQueryParameter = (output, context) => {
|
|
4332
|
-
return {
|
|
4333
|
-
match: output.match != null ? de_QueryParameterMatch(output.match, context) : undefined,
|
|
4334
|
-
name: __expectString(output.name),
|
|
4335
|
-
};
|
|
4336
|
-
};
|
|
4337
|
-
const de_HttpQueryParameters = (output, context) => {
|
|
4338
|
-
const retVal = (output || [])
|
|
4339
|
-
.filter((e) => e != null)
|
|
4340
|
-
.map((entry) => {
|
|
4341
|
-
if (entry === null) {
|
|
4342
|
-
return null;
|
|
4343
|
-
}
|
|
4344
|
-
return de_HttpQueryParameter(entry, context);
|
|
4345
|
-
});
|
|
4346
|
-
return retVal;
|
|
4347
|
-
};
|
|
4348
|
-
const de_HttpRetryPolicy = (output, context) => {
|
|
4349
|
-
return {
|
|
4350
|
-
httpRetryEvents: output.httpRetryEvents != null ? de_HttpRetryPolicyEvents(output.httpRetryEvents, context) : undefined,
|
|
4351
|
-
maxRetries: __expectLong(output.maxRetries),
|
|
4352
|
-
perRetryTimeout: output.perRetryTimeout != null ? de_Duration(output.perRetryTimeout, context) : undefined,
|
|
4353
|
-
tcpRetryEvents: output.tcpRetryEvents != null ? de_TcpRetryPolicyEvents(output.tcpRetryEvents, context) : undefined,
|
|
4354
|
-
};
|
|
4355
|
-
};
|
|
4356
|
-
const de_HttpRetryPolicyEvents = (output, context) => {
|
|
4357
|
-
const retVal = (output || [])
|
|
4358
|
-
.filter((e) => e != null)
|
|
4359
|
-
.map((entry) => {
|
|
4360
|
-
if (entry === null) {
|
|
4361
|
-
return null;
|
|
4362
|
-
}
|
|
4363
|
-
return __expectString(entry);
|
|
4364
|
-
});
|
|
4365
|
-
return retVal;
|
|
4366
|
-
};
|
|
4367
|
-
const de_HttpRoute = (output, context) => {
|
|
4368
|
-
return {
|
|
4369
|
-
action: output.action != null ? de_HttpRouteAction(output.action, context) : undefined,
|
|
4370
|
-
match: output.match != null ? de_HttpRouteMatch(output.match, context) : undefined,
|
|
4371
|
-
retryPolicy: output.retryPolicy != null ? de_HttpRetryPolicy(output.retryPolicy, context) : undefined,
|
|
4372
|
-
timeout: output.timeout != null ? de_HttpTimeout(output.timeout, context) : undefined,
|
|
4373
|
-
};
|
|
4374
|
-
};
|
|
4375
|
-
const de_HttpRouteAction = (output, context) => {
|
|
4376
|
-
return {
|
|
4377
|
-
weightedTargets: output.weightedTargets != null ? de_WeightedTargets(output.weightedTargets, context) : undefined,
|
|
4378
|
-
};
|
|
4379
|
-
};
|
|
4380
|
-
const de_HttpRouteHeader = (output, context) => {
|
|
4381
|
-
return {
|
|
4382
|
-
invert: __expectBoolean(output.invert),
|
|
4383
|
-
match: output.match != null ? de_HeaderMatchMethod(__expectUnion(output.match), context) : undefined,
|
|
4384
|
-
name: __expectString(output.name),
|
|
4385
|
-
};
|
|
4386
|
-
};
|
|
4387
|
-
const de_HttpRouteHeaders = (output, context) => {
|
|
4388
|
-
const retVal = (output || [])
|
|
4389
|
-
.filter((e) => e != null)
|
|
4390
|
-
.map((entry) => {
|
|
4391
|
-
if (entry === null) {
|
|
4392
|
-
return null;
|
|
4393
|
-
}
|
|
4394
|
-
return de_HttpRouteHeader(entry, context);
|
|
4395
|
-
});
|
|
4396
|
-
return retVal;
|
|
4397
|
-
};
|
|
4398
|
-
const de_HttpRouteMatch = (output, context) => {
|
|
4399
|
-
return {
|
|
4400
|
-
headers: output.headers != null ? de_HttpRouteHeaders(output.headers, context) : undefined,
|
|
4401
|
-
method: __expectString(output.method),
|
|
4402
|
-
path: output.path != null ? de_HttpPathMatch(output.path, context) : undefined,
|
|
4403
|
-
port: __expectInt32(output.port),
|
|
4404
|
-
prefix: __expectString(output.prefix),
|
|
4405
|
-
queryParameters: output.queryParameters != null ? de_HttpQueryParameters(output.queryParameters, context) : undefined,
|
|
4406
|
-
scheme: __expectString(output.scheme),
|
|
4407
|
-
};
|
|
4408
|
-
};
|
|
4409
|
-
const de_HttpTimeout = (output, context) => {
|
|
4410
|
-
return {
|
|
4411
|
-
idle: output.idle != null ? de_Duration(output.idle, context) : undefined,
|
|
4412
|
-
perRequest: output.perRequest != null ? de_Duration(output.perRequest, context) : undefined,
|
|
4413
|
-
};
|
|
4414
|
-
};
|
|
4415
|
-
const de_JsonFormat = (output, context) => {
|
|
4416
|
-
const retVal = (output || [])
|
|
4417
|
-
.filter((e) => e != null)
|
|
4418
|
-
.map((entry) => {
|
|
4419
|
-
if (entry === null) {
|
|
4420
|
-
return null;
|
|
4421
|
-
}
|
|
4422
|
-
return de_JsonFormatRef(entry, context);
|
|
4423
|
-
});
|
|
4424
|
-
return retVal;
|
|
4425
|
-
};
|
|
4426
|
-
const de_JsonFormatRef = (output, context) => {
|
|
4427
|
-
return {
|
|
4428
|
-
key: __expectString(output.key),
|
|
4429
|
-
value: __expectString(output.value),
|
|
4430
|
-
};
|
|
4431
|
-
};
|
|
4432
|
-
const de_Listener = (output, context) => {
|
|
4433
|
-
return {
|
|
4434
|
-
connectionPool: output.connectionPool != null
|
|
4435
|
-
? de_VirtualNodeConnectionPool(__expectUnion(output.connectionPool), context)
|
|
4436
|
-
: undefined,
|
|
4437
|
-
healthCheck: output.healthCheck != null ? de_HealthCheckPolicy(output.healthCheck, context) : undefined,
|
|
4438
|
-
outlierDetection: output.outlierDetection != null ? de_OutlierDetection(output.outlierDetection, context) : undefined,
|
|
4439
|
-
portMapping: output.portMapping != null ? de_PortMapping(output.portMapping, context) : undefined,
|
|
4440
|
-
timeout: output.timeout != null ? de_ListenerTimeout(__expectUnion(output.timeout), context) : undefined,
|
|
4441
|
-
tls: output.tls != null ? de_ListenerTls(output.tls, context) : undefined,
|
|
4442
|
-
};
|
|
4443
|
-
};
|
|
4444
|
-
const de_Listeners = (output, context) => {
|
|
4445
|
-
const retVal = (output || [])
|
|
4446
|
-
.filter((e) => e != null)
|
|
4447
|
-
.map((entry) => {
|
|
4448
|
-
if (entry === null) {
|
|
4449
|
-
return null;
|
|
4450
|
-
}
|
|
4451
|
-
return de_Listener(entry, context);
|
|
4452
|
-
});
|
|
4453
|
-
return retVal;
|
|
4454
|
-
};
|
|
4455
|
-
const de_ListenerTimeout = (output, context) => {
|
|
4456
|
-
if (output.grpc != null) {
|
|
4457
|
-
return {
|
|
4458
|
-
grpc: de_GrpcTimeout(output.grpc, context),
|
|
4459
|
-
};
|
|
4460
|
-
}
|
|
4461
|
-
if (output.http != null) {
|
|
4462
|
-
return {
|
|
4463
|
-
http: de_HttpTimeout(output.http, context),
|
|
4464
|
-
};
|
|
4465
|
-
}
|
|
4466
|
-
if (output.http2 != null) {
|
|
4467
|
-
return {
|
|
4468
|
-
http2: de_HttpTimeout(output.http2, context),
|
|
4469
|
-
};
|
|
4470
|
-
}
|
|
4471
|
-
if (output.tcp != null) {
|
|
4472
|
-
return {
|
|
4473
|
-
tcp: de_TcpTimeout(output.tcp, context),
|
|
4474
|
-
};
|
|
4475
|
-
}
|
|
4476
|
-
return { $unknown: Object.entries(output)[0] };
|
|
4477
|
-
};
|
|
4478
|
-
const de_ListenerTls = (output, context) => {
|
|
4479
|
-
return {
|
|
4480
|
-
certificate: output.certificate != null ? de_ListenerTlsCertificate(__expectUnion(output.certificate), context) : undefined,
|
|
4481
|
-
mode: __expectString(output.mode),
|
|
4482
|
-
validation: output.validation != null ? de_ListenerTlsValidationContext(output.validation, context) : undefined,
|
|
4483
|
-
};
|
|
4484
|
-
};
|
|
4485
|
-
const de_ListenerTlsAcmCertificate = (output, context) => {
|
|
4486
|
-
return {
|
|
4487
|
-
certificateArn: __expectString(output.certificateArn),
|
|
4488
|
-
};
|
|
4489
|
-
};
|
|
4490
|
-
const de_ListenerTlsCertificate = (output, context) => {
|
|
4491
|
-
if (output.acm != null) {
|
|
4492
|
-
return {
|
|
4493
|
-
acm: de_ListenerTlsAcmCertificate(output.acm, context),
|
|
4494
|
-
};
|
|
4495
|
-
}
|
|
4496
|
-
if (output.file != null) {
|
|
4497
|
-
return {
|
|
4498
|
-
file: de_ListenerTlsFileCertificate(output.file, context),
|
|
4499
|
-
};
|
|
4500
|
-
}
|
|
4501
|
-
if (output.sds != null) {
|
|
4502
|
-
return {
|
|
4503
|
-
sds: de_ListenerTlsSdsCertificate(output.sds, context),
|
|
4504
|
-
};
|
|
4505
|
-
}
|
|
4506
|
-
return { $unknown: Object.entries(output)[0] };
|
|
4507
|
-
};
|
|
4508
|
-
const de_ListenerTlsFileCertificate = (output, context) => {
|
|
4509
|
-
return {
|
|
4510
|
-
certificateChain: __expectString(output.certificateChain),
|
|
4511
|
-
privateKey: __expectString(output.privateKey),
|
|
4512
|
-
};
|
|
4513
|
-
};
|
|
4514
|
-
const de_ListenerTlsSdsCertificate = (output, context) => {
|
|
4515
|
-
return {
|
|
4516
|
-
secretName: __expectString(output.secretName),
|
|
4517
|
-
};
|
|
4518
|
-
};
|
|
4519
|
-
const de_ListenerTlsValidationContext = (output, context) => {
|
|
4520
|
-
return {
|
|
4521
|
-
subjectAlternativeNames: output.subjectAlternativeNames != null
|
|
4522
|
-
? de_SubjectAlternativeNames(output.subjectAlternativeNames, context)
|
|
4523
|
-
: undefined,
|
|
4524
|
-
trust: output.trust != null ? de_ListenerTlsValidationContextTrust(__expectUnion(output.trust), context) : undefined,
|
|
4525
|
-
};
|
|
4526
|
-
};
|
|
4527
|
-
const de_ListenerTlsValidationContextTrust = (output, context) => {
|
|
4528
|
-
if (output.file != null) {
|
|
4529
|
-
return {
|
|
4530
|
-
file: de_TlsValidationContextFileTrust(output.file, context),
|
|
4531
|
-
};
|
|
4532
|
-
}
|
|
4533
|
-
if (output.sds != null) {
|
|
4534
|
-
return {
|
|
4535
|
-
sds: de_TlsValidationContextSdsTrust(output.sds, context),
|
|
4536
|
-
};
|
|
4537
|
-
}
|
|
4538
|
-
return { $unknown: Object.entries(output)[0] };
|
|
4539
|
-
};
|
|
4540
|
-
const de_Logging = (output, context) => {
|
|
4541
|
-
return {
|
|
4542
|
-
accessLog: output.accessLog != null ? de_AccessLog(__expectUnion(output.accessLog), context) : undefined,
|
|
4543
|
-
};
|
|
4544
|
-
};
|
|
4545
|
-
const de_LoggingFormat = (output, context) => {
|
|
4546
|
-
if (output.json != null) {
|
|
4547
|
-
return {
|
|
4548
|
-
json: de_JsonFormat(output.json, context),
|
|
4549
|
-
};
|
|
4550
|
-
}
|
|
4551
|
-
if (__expectString(output.text) !== undefined) {
|
|
4552
|
-
return { text: __expectString(output.text) };
|
|
4553
|
-
}
|
|
4554
|
-
return { $unknown: Object.entries(output)[0] };
|
|
4555
|
-
};
|
|
4556
|
-
const de_MatchRange = (output, context) => {
|
|
4557
|
-
return {
|
|
4558
|
-
end: __expectLong(output.end),
|
|
4559
|
-
start: __expectLong(output.start),
|
|
4560
|
-
};
|
|
4561
|
-
};
|
|
4562
|
-
const de_MeshData = (output, context) => {
|
|
4563
|
-
return {
|
|
4564
|
-
meshName: __expectString(output.meshName),
|
|
4565
|
-
metadata: output.metadata != null ? de_ResourceMetadata(output.metadata, context) : undefined,
|
|
4566
|
-
spec: output.spec != null ? de_MeshSpec(output.spec, context) : undefined,
|
|
4567
|
-
status: output.status != null ? de_MeshStatus(output.status, context) : undefined,
|
|
4568
|
-
};
|
|
4569
|
-
};
|
|
4570
|
-
const de_MeshList = (output, context) => {
|
|
4571
|
-
const retVal = (output || [])
|
|
4572
|
-
.filter((e) => e != null)
|
|
4573
|
-
.map((entry) => {
|
|
4574
|
-
if (entry === null) {
|
|
4575
|
-
return null;
|
|
4576
|
-
}
|
|
4577
|
-
return de_MeshRef(entry, context);
|
|
4578
|
-
});
|
|
4579
|
-
return retVal;
|
|
4580
|
-
};
|
|
4581
|
-
const de_MeshRef = (output, context) => {
|
|
4582
|
-
return {
|
|
4583
|
-
arn: __expectString(output.arn),
|
|
4584
|
-
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
4585
|
-
lastUpdatedAt: output.lastUpdatedAt != null
|
|
4586
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
|
|
4587
|
-
: undefined,
|
|
4588
|
-
meshName: __expectString(output.meshName),
|
|
4589
|
-
meshOwner: __expectString(output.meshOwner),
|
|
4590
|
-
resourceOwner: __expectString(output.resourceOwner),
|
|
4591
|
-
version: __expectLong(output.version),
|
|
4592
|
-
};
|
|
4593
|
-
};
|
|
4594
|
-
const de_MeshServiceDiscovery = (output, context) => {
|
|
4595
|
-
return {
|
|
4596
|
-
ipPreference: __expectString(output.ipPreference),
|
|
4597
|
-
};
|
|
4598
|
-
};
|
|
4599
|
-
const de_MeshSpec = (output, context) => {
|
|
4600
|
-
return {
|
|
4601
|
-
egressFilter: output.egressFilter != null ? de_EgressFilter(output.egressFilter, context) : undefined,
|
|
4602
|
-
serviceDiscovery: output.serviceDiscovery != null ? de_MeshServiceDiscovery(output.serviceDiscovery, context) : undefined,
|
|
4603
|
-
};
|
|
4604
|
-
};
|
|
4605
|
-
const de_MeshStatus = (output, context) => {
|
|
4606
|
-
return {
|
|
4607
|
-
status: __expectString(output.status),
|
|
4608
|
-
};
|
|
4609
|
-
};
|
|
4610
|
-
const de_OutlierDetection = (output, context) => {
|
|
4611
|
-
return {
|
|
4612
|
-
baseEjectionDuration: output.baseEjectionDuration != null ? de_Duration(output.baseEjectionDuration, context) : undefined,
|
|
4613
|
-
interval: output.interval != null ? de_Duration(output.interval, context) : undefined,
|
|
4614
|
-
maxEjectionPercent: __expectInt32(output.maxEjectionPercent),
|
|
4615
|
-
maxServerErrors: __expectLong(output.maxServerErrors),
|
|
4616
|
-
};
|
|
4617
|
-
};
|
|
4618
|
-
const de_PortMapping = (output, context) => {
|
|
4619
|
-
return {
|
|
4620
|
-
port: __expectInt32(output.port),
|
|
4621
|
-
protocol: __expectString(output.protocol),
|
|
4622
|
-
};
|
|
4623
|
-
};
|
|
4624
|
-
const de_PortSet = (output, context) => {
|
|
4625
|
-
const retVal = (output || [])
|
|
4626
|
-
.filter((e) => e != null)
|
|
4627
|
-
.map((entry) => {
|
|
4628
|
-
if (entry === null) {
|
|
4629
|
-
return null;
|
|
4630
|
-
}
|
|
4631
|
-
return __expectInt32(entry);
|
|
4632
|
-
});
|
|
4633
|
-
return retVal;
|
|
4634
|
-
};
|
|
4635
|
-
const de_QueryParameterMatch = (output, context) => {
|
|
4636
|
-
return {
|
|
4637
|
-
exact: __expectString(output.exact),
|
|
4638
|
-
};
|
|
4639
|
-
};
|
|
4640
|
-
const de_ResourceMetadata = (output, context) => {
|
|
4641
|
-
return {
|
|
4642
|
-
arn: __expectString(output.arn),
|
|
4643
|
-
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
4644
|
-
lastUpdatedAt: output.lastUpdatedAt != null
|
|
4645
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
|
|
4646
|
-
: undefined,
|
|
4647
|
-
meshOwner: __expectString(output.meshOwner),
|
|
4648
|
-
resourceOwner: __expectString(output.resourceOwner),
|
|
4649
|
-
uid: __expectString(output.uid),
|
|
4650
|
-
version: __expectLong(output.version),
|
|
4651
|
-
};
|
|
4652
|
-
};
|
|
4653
|
-
const de_RouteData = (output, context) => {
|
|
4654
|
-
return {
|
|
4655
|
-
meshName: __expectString(output.meshName),
|
|
4656
|
-
metadata: output.metadata != null ? de_ResourceMetadata(output.metadata, context) : undefined,
|
|
4657
|
-
routeName: __expectString(output.routeName),
|
|
4658
|
-
spec: output.spec != null ? de_RouteSpec(output.spec, context) : undefined,
|
|
4659
|
-
status: output.status != null ? de_RouteStatus(output.status, context) : undefined,
|
|
4660
|
-
virtualRouterName: __expectString(output.virtualRouterName),
|
|
4661
|
-
};
|
|
4662
|
-
};
|
|
4663
|
-
const de_RouteList = (output, context) => {
|
|
4664
|
-
const retVal = (output || [])
|
|
4665
|
-
.filter((e) => e != null)
|
|
4666
|
-
.map((entry) => {
|
|
4667
|
-
if (entry === null) {
|
|
4668
|
-
return null;
|
|
4669
|
-
}
|
|
4670
|
-
return de_RouteRef(entry, context);
|
|
4671
|
-
});
|
|
4672
|
-
return retVal;
|
|
4673
|
-
};
|
|
4674
|
-
const de_RouteRef = (output, context) => {
|
|
4675
|
-
return {
|
|
4676
|
-
arn: __expectString(output.arn),
|
|
4677
|
-
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
4678
|
-
lastUpdatedAt: output.lastUpdatedAt != null
|
|
4679
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
|
|
4680
|
-
: undefined,
|
|
4681
|
-
meshName: __expectString(output.meshName),
|
|
4682
|
-
meshOwner: __expectString(output.meshOwner),
|
|
4683
|
-
resourceOwner: __expectString(output.resourceOwner),
|
|
4684
|
-
routeName: __expectString(output.routeName),
|
|
4685
|
-
version: __expectLong(output.version),
|
|
4686
|
-
virtualRouterName: __expectString(output.virtualRouterName),
|
|
4687
|
-
};
|
|
4688
|
-
};
|
|
4689
|
-
const de_RouteSpec = (output, context) => {
|
|
4690
|
-
return {
|
|
4691
|
-
grpcRoute: output.grpcRoute != null ? de_GrpcRoute(output.grpcRoute, context) : undefined,
|
|
4692
|
-
http2Route: output.http2Route != null ? de_HttpRoute(output.http2Route, context) : undefined,
|
|
4693
|
-
httpRoute: output.httpRoute != null ? de_HttpRoute(output.httpRoute, context) : undefined,
|
|
4694
|
-
priority: __expectInt32(output.priority),
|
|
4695
|
-
tcpRoute: output.tcpRoute != null ? de_TcpRoute(output.tcpRoute, context) : undefined,
|
|
4696
|
-
};
|
|
4697
|
-
};
|
|
4698
|
-
const de_RouteStatus = (output, context) => {
|
|
4699
|
-
return {
|
|
4700
|
-
status: __expectString(output.status),
|
|
4701
|
-
};
|
|
4702
|
-
};
|
|
4703
|
-
const de_ServiceDiscovery = (output, context) => {
|
|
4704
|
-
if (output.awsCloudMap != null) {
|
|
4705
|
-
return {
|
|
4706
|
-
awsCloudMap: de_AwsCloudMapServiceDiscovery(output.awsCloudMap, context),
|
|
4707
|
-
};
|
|
4708
|
-
}
|
|
4709
|
-
if (output.dns != null) {
|
|
4710
|
-
return {
|
|
4711
|
-
dns: de_DnsServiceDiscovery(output.dns, context),
|
|
4712
|
-
};
|
|
4713
|
-
}
|
|
4714
|
-
return { $unknown: Object.entries(output)[0] };
|
|
4715
|
-
};
|
|
4716
|
-
const de_SubjectAlternativeNameList = (output, context) => {
|
|
4717
|
-
const retVal = (output || [])
|
|
4718
|
-
.filter((e) => e != null)
|
|
4719
|
-
.map((entry) => {
|
|
4720
|
-
if (entry === null) {
|
|
4721
|
-
return null;
|
|
4722
|
-
}
|
|
4723
|
-
return __expectString(entry);
|
|
4724
|
-
});
|
|
4725
|
-
return retVal;
|
|
4726
|
-
};
|
|
4727
|
-
const de_SubjectAlternativeNameMatchers = (output, context) => {
|
|
4728
|
-
return {
|
|
4729
|
-
exact: output.exact != null ? de_SubjectAlternativeNameList(output.exact, context) : undefined,
|
|
4730
|
-
};
|
|
4731
|
-
};
|
|
4732
|
-
const de_SubjectAlternativeNames = (output, context) => {
|
|
4733
|
-
return {
|
|
4734
|
-
match: output.match != null ? de_SubjectAlternativeNameMatchers(output.match, context) : undefined,
|
|
4735
|
-
};
|
|
4736
|
-
};
|
|
4737
|
-
const de_TagList = (output, context) => {
|
|
4738
|
-
const retVal = (output || [])
|
|
4739
|
-
.filter((e) => e != null)
|
|
4740
|
-
.map((entry) => {
|
|
4741
|
-
if (entry === null) {
|
|
4742
|
-
return null;
|
|
4743
|
-
}
|
|
4744
|
-
return de_TagRef(entry, context);
|
|
4745
|
-
});
|
|
4746
|
-
return retVal;
|
|
4747
|
-
};
|
|
4748
|
-
const de_TagRef = (output, context) => {
|
|
4749
|
-
return {
|
|
4750
|
-
key: __expectString(output.key),
|
|
4751
|
-
value: __expectString(output.value),
|
|
4752
|
-
};
|
|
4753
|
-
};
|
|
4754
|
-
const de_TcpRetryPolicyEvents = (output, context) => {
|
|
4755
|
-
const retVal = (output || [])
|
|
4756
|
-
.filter((e) => e != null)
|
|
4757
|
-
.map((entry) => {
|
|
4758
|
-
if (entry === null) {
|
|
4759
|
-
return null;
|
|
4760
|
-
}
|
|
4761
|
-
return __expectString(entry);
|
|
4762
|
-
});
|
|
4763
|
-
return retVal;
|
|
4764
|
-
};
|
|
4765
|
-
const de_TcpRoute = (output, context) => {
|
|
4766
|
-
return {
|
|
4767
|
-
action: output.action != null ? de_TcpRouteAction(output.action, context) : undefined,
|
|
4768
|
-
match: output.match != null ? de_TcpRouteMatch(output.match, context) : undefined,
|
|
4769
|
-
timeout: output.timeout != null ? de_TcpTimeout(output.timeout, context) : undefined,
|
|
4770
|
-
};
|
|
4771
|
-
};
|
|
4772
|
-
const de_TcpRouteAction = (output, context) => {
|
|
4773
|
-
return {
|
|
4774
|
-
weightedTargets: output.weightedTargets != null ? de_WeightedTargets(output.weightedTargets, context) : undefined,
|
|
4775
|
-
};
|
|
4776
|
-
};
|
|
4777
|
-
const de_TcpRouteMatch = (output, context) => {
|
|
4778
|
-
return {
|
|
4779
|
-
port: __expectInt32(output.port),
|
|
4780
|
-
};
|
|
4781
|
-
};
|
|
4782
|
-
const de_TcpTimeout = (output, context) => {
|
|
4783
|
-
return {
|
|
4784
|
-
idle: output.idle != null ? de_Duration(output.idle, context) : undefined,
|
|
4785
|
-
};
|
|
4786
|
-
};
|
|
4787
|
-
const de_TlsValidationContext = (output, context) => {
|
|
4788
|
-
return {
|
|
4789
|
-
subjectAlternativeNames: output.subjectAlternativeNames != null
|
|
4790
|
-
? de_SubjectAlternativeNames(output.subjectAlternativeNames, context)
|
|
4791
|
-
: undefined,
|
|
4792
|
-
trust: output.trust != null ? de_TlsValidationContextTrust(__expectUnion(output.trust), context) : undefined,
|
|
4793
|
-
};
|
|
4794
|
-
};
|
|
4795
|
-
const de_TlsValidationContextAcmTrust = (output, context) => {
|
|
4796
|
-
return {
|
|
4797
|
-
certificateAuthorityArns: output.certificateAuthorityArns != null
|
|
4798
|
-
? de_CertificateAuthorityArns(output.certificateAuthorityArns, context)
|
|
4799
|
-
: undefined,
|
|
4800
|
-
};
|
|
4801
|
-
};
|
|
4802
|
-
const de_TlsValidationContextFileTrust = (output, context) => {
|
|
4803
|
-
return {
|
|
4804
|
-
certificateChain: __expectString(output.certificateChain),
|
|
4805
|
-
};
|
|
4806
|
-
};
|
|
4807
|
-
const de_TlsValidationContextSdsTrust = (output, context) => {
|
|
4808
|
-
return {
|
|
4809
|
-
secretName: __expectString(output.secretName),
|
|
4810
|
-
};
|
|
4811
|
-
};
|
|
4812
|
-
const de_TlsValidationContextTrust = (output, context) => {
|
|
4813
|
-
if (output.acm != null) {
|
|
4814
|
-
return {
|
|
4815
|
-
acm: de_TlsValidationContextAcmTrust(output.acm, context),
|
|
4816
|
-
};
|
|
4817
|
-
}
|
|
4818
|
-
if (output.file != null) {
|
|
4819
|
-
return {
|
|
4820
|
-
file: de_TlsValidationContextFileTrust(output.file, context),
|
|
4821
|
-
};
|
|
4822
|
-
}
|
|
4823
|
-
if (output.sds != null) {
|
|
4824
|
-
return {
|
|
4825
|
-
sds: de_TlsValidationContextSdsTrust(output.sds, context),
|
|
4826
|
-
};
|
|
4827
|
-
}
|
|
4828
|
-
return { $unknown: Object.entries(output)[0] };
|
|
4829
|
-
};
|
|
4830
|
-
const de_VirtualGatewayAccessLog = (output, context) => {
|
|
4831
|
-
if (output.file != null) {
|
|
4832
|
-
return {
|
|
4833
|
-
file: de_VirtualGatewayFileAccessLog(output.file, context),
|
|
4834
|
-
};
|
|
4835
|
-
}
|
|
4836
|
-
return { $unknown: Object.entries(output)[0] };
|
|
4837
|
-
};
|
|
4838
|
-
const de_VirtualGatewayBackendDefaults = (output, context) => {
|
|
4839
|
-
return {
|
|
4840
|
-
clientPolicy: output.clientPolicy != null ? de_VirtualGatewayClientPolicy(output.clientPolicy, context) : undefined,
|
|
4841
|
-
};
|
|
4842
|
-
};
|
|
4843
|
-
const de_VirtualGatewayCertificateAuthorityArns = (output, context) => {
|
|
4844
|
-
const retVal = (output || [])
|
|
4845
|
-
.filter((e) => e != null)
|
|
4846
|
-
.map((entry) => {
|
|
4847
|
-
if (entry === null) {
|
|
4848
|
-
return null;
|
|
4849
|
-
}
|
|
4850
|
-
return __expectString(entry);
|
|
4851
|
-
});
|
|
4852
|
-
return retVal;
|
|
4853
|
-
};
|
|
4854
|
-
const de_VirtualGatewayClientPolicy = (output, context) => {
|
|
4855
|
-
return {
|
|
4856
|
-
tls: output.tls != null ? de_VirtualGatewayClientPolicyTls(output.tls, context) : undefined,
|
|
4857
|
-
};
|
|
4858
|
-
};
|
|
4859
|
-
const de_VirtualGatewayClientPolicyTls = (output, context) => {
|
|
4860
|
-
return {
|
|
4861
|
-
certificate: output.certificate != null
|
|
4862
|
-
? de_VirtualGatewayClientTlsCertificate(__expectUnion(output.certificate), context)
|
|
4863
|
-
: undefined,
|
|
4864
|
-
enforce: __expectBoolean(output.enforce),
|
|
4865
|
-
ports: output.ports != null ? de_PortSet(output.ports, context) : undefined,
|
|
4866
|
-
validation: output.validation != null ? de_VirtualGatewayTlsValidationContext(output.validation, context) : undefined,
|
|
4867
|
-
};
|
|
4868
|
-
};
|
|
4869
|
-
const de_VirtualGatewayClientTlsCertificate = (output, context) => {
|
|
4870
|
-
if (output.file != null) {
|
|
4871
|
-
return {
|
|
4872
|
-
file: de_VirtualGatewayListenerTlsFileCertificate(output.file, context),
|
|
4873
|
-
};
|
|
4874
|
-
}
|
|
4875
|
-
if (output.sds != null) {
|
|
4876
|
-
return {
|
|
4877
|
-
sds: de_VirtualGatewayListenerTlsSdsCertificate(output.sds, context),
|
|
4878
|
-
};
|
|
4879
|
-
}
|
|
4880
|
-
return { $unknown: Object.entries(output)[0] };
|
|
4881
|
-
};
|
|
4882
|
-
const de_VirtualGatewayConnectionPool = (output, context) => {
|
|
4883
|
-
if (output.grpc != null) {
|
|
4884
|
-
return {
|
|
4885
|
-
grpc: de_VirtualGatewayGrpcConnectionPool(output.grpc, context),
|
|
4886
|
-
};
|
|
4887
|
-
}
|
|
4888
|
-
if (output.http != null) {
|
|
4889
|
-
return {
|
|
4890
|
-
http: de_VirtualGatewayHttpConnectionPool(output.http, context),
|
|
4891
|
-
};
|
|
4892
|
-
}
|
|
4893
|
-
if (output.http2 != null) {
|
|
4894
|
-
return {
|
|
4895
|
-
http2: de_VirtualGatewayHttp2ConnectionPool(output.http2, context),
|
|
4896
|
-
};
|
|
4897
|
-
}
|
|
4898
|
-
return { $unknown: Object.entries(output)[0] };
|
|
4899
|
-
};
|
|
4900
|
-
const de_VirtualGatewayData = (output, context) => {
|
|
4901
|
-
return {
|
|
4902
|
-
meshName: __expectString(output.meshName),
|
|
4903
|
-
metadata: output.metadata != null ? de_ResourceMetadata(output.metadata, context) : undefined,
|
|
4904
|
-
spec: output.spec != null ? de_VirtualGatewaySpec(output.spec, context) : undefined,
|
|
4905
|
-
status: output.status != null ? de_VirtualGatewayStatus(output.status, context) : undefined,
|
|
4906
|
-
virtualGatewayName: __expectString(output.virtualGatewayName),
|
|
4907
|
-
};
|
|
4908
|
-
};
|
|
4909
|
-
const de_VirtualGatewayFileAccessLog = (output, context) => {
|
|
4910
|
-
return {
|
|
4911
|
-
format: output.format != null ? de_LoggingFormat(__expectUnion(output.format), context) : undefined,
|
|
4912
|
-
path: __expectString(output.path),
|
|
4913
|
-
};
|
|
4914
|
-
};
|
|
4915
|
-
const de_VirtualGatewayGrpcConnectionPool = (output, context) => {
|
|
4916
|
-
return {
|
|
4917
|
-
maxRequests: __expectInt32(output.maxRequests),
|
|
4918
|
-
};
|
|
4919
|
-
};
|
|
4920
|
-
const de_VirtualGatewayHealthCheckPolicy = (output, context) => {
|
|
4921
|
-
return {
|
|
4922
|
-
healthyThreshold: __expectInt32(output.healthyThreshold),
|
|
4923
|
-
intervalMillis: __expectLong(output.intervalMillis),
|
|
4924
|
-
path: __expectString(output.path),
|
|
4925
|
-
port: __expectInt32(output.port),
|
|
4926
|
-
protocol: __expectString(output.protocol),
|
|
4927
|
-
timeoutMillis: __expectLong(output.timeoutMillis),
|
|
4928
|
-
unhealthyThreshold: __expectInt32(output.unhealthyThreshold),
|
|
4929
|
-
};
|
|
4930
|
-
};
|
|
4931
|
-
const de_VirtualGatewayHttp2ConnectionPool = (output, context) => {
|
|
4932
|
-
return {
|
|
4933
|
-
maxRequests: __expectInt32(output.maxRequests),
|
|
4934
|
-
};
|
|
4935
|
-
};
|
|
4936
|
-
const de_VirtualGatewayHttpConnectionPool = (output, context) => {
|
|
4937
|
-
return {
|
|
4938
|
-
maxConnections: __expectInt32(output.maxConnections),
|
|
4939
|
-
maxPendingRequests: __expectInt32(output.maxPendingRequests),
|
|
4940
|
-
};
|
|
4941
|
-
};
|
|
4942
|
-
const de_VirtualGatewayList = (output, context) => {
|
|
4943
|
-
const retVal = (output || [])
|
|
4944
|
-
.filter((e) => e != null)
|
|
4945
|
-
.map((entry) => {
|
|
4946
|
-
if (entry === null) {
|
|
4947
|
-
return null;
|
|
4948
|
-
}
|
|
4949
|
-
return de_VirtualGatewayRef(entry, context);
|
|
4950
|
-
});
|
|
4951
|
-
return retVal;
|
|
4952
|
-
};
|
|
4953
|
-
const de_VirtualGatewayListener = (output, context) => {
|
|
4954
|
-
return {
|
|
4955
|
-
connectionPool: output.connectionPool != null
|
|
4956
|
-
? de_VirtualGatewayConnectionPool(__expectUnion(output.connectionPool), context)
|
|
4957
|
-
: undefined,
|
|
4958
|
-
healthCheck: output.healthCheck != null ? de_VirtualGatewayHealthCheckPolicy(output.healthCheck, context) : undefined,
|
|
4959
|
-
portMapping: output.portMapping != null ? de_VirtualGatewayPortMapping(output.portMapping, context) : undefined,
|
|
4960
|
-
tls: output.tls != null ? de_VirtualGatewayListenerTls(output.tls, context) : undefined,
|
|
4961
|
-
};
|
|
4962
|
-
};
|
|
4963
|
-
const de_VirtualGatewayListeners = (output, context) => {
|
|
4964
|
-
const retVal = (output || [])
|
|
4965
|
-
.filter((e) => e != null)
|
|
4966
|
-
.map((entry) => {
|
|
4967
|
-
if (entry === null) {
|
|
4968
|
-
return null;
|
|
4969
|
-
}
|
|
4970
|
-
return de_VirtualGatewayListener(entry, context);
|
|
4971
|
-
});
|
|
4972
|
-
return retVal;
|
|
4973
|
-
};
|
|
4974
|
-
const de_VirtualGatewayListenerTls = (output, context) => {
|
|
4975
|
-
return {
|
|
4976
|
-
certificate: output.certificate != null
|
|
4977
|
-
? de_VirtualGatewayListenerTlsCertificate(__expectUnion(output.certificate), context)
|
|
4978
|
-
: undefined,
|
|
4979
|
-
mode: __expectString(output.mode),
|
|
4980
|
-
validation: output.validation != null ? de_VirtualGatewayListenerTlsValidationContext(output.validation, context) : undefined,
|
|
4981
|
-
};
|
|
4982
|
-
};
|
|
4983
|
-
const de_VirtualGatewayListenerTlsAcmCertificate = (output, context) => {
|
|
4984
|
-
return {
|
|
4985
|
-
certificateArn: __expectString(output.certificateArn),
|
|
4986
|
-
};
|
|
4987
|
-
};
|
|
4988
|
-
const de_VirtualGatewayListenerTlsCertificate = (output, context) => {
|
|
4989
|
-
if (output.acm != null) {
|
|
4990
|
-
return {
|
|
4991
|
-
acm: de_VirtualGatewayListenerTlsAcmCertificate(output.acm, context),
|
|
4992
|
-
};
|
|
4993
|
-
}
|
|
4994
|
-
if (output.file != null) {
|
|
4995
|
-
return {
|
|
4996
|
-
file: de_VirtualGatewayListenerTlsFileCertificate(output.file, context),
|
|
4997
|
-
};
|
|
4998
|
-
}
|
|
4999
|
-
if (output.sds != null) {
|
|
5000
|
-
return {
|
|
5001
|
-
sds: de_VirtualGatewayListenerTlsSdsCertificate(output.sds, context),
|
|
5002
|
-
};
|
|
5003
|
-
}
|
|
5004
|
-
return { $unknown: Object.entries(output)[0] };
|
|
5005
|
-
};
|
|
5006
|
-
const de_VirtualGatewayListenerTlsFileCertificate = (output, context) => {
|
|
5007
|
-
return {
|
|
5008
|
-
certificateChain: __expectString(output.certificateChain),
|
|
5009
|
-
privateKey: __expectString(output.privateKey),
|
|
5010
|
-
};
|
|
5011
|
-
};
|
|
5012
|
-
const de_VirtualGatewayListenerTlsSdsCertificate = (output, context) => {
|
|
5013
|
-
return {
|
|
5014
|
-
secretName: __expectString(output.secretName),
|
|
5015
|
-
};
|
|
5016
|
-
};
|
|
5017
|
-
const de_VirtualGatewayListenerTlsValidationContext = (output, context) => {
|
|
5018
|
-
return {
|
|
5019
|
-
subjectAlternativeNames: output.subjectAlternativeNames != null
|
|
5020
|
-
? de_SubjectAlternativeNames(output.subjectAlternativeNames, context)
|
|
5021
|
-
: undefined,
|
|
5022
|
-
trust: output.trust != null
|
|
5023
|
-
? de_VirtualGatewayListenerTlsValidationContextTrust(__expectUnion(output.trust), context)
|
|
5024
|
-
: undefined,
|
|
5025
|
-
};
|
|
5026
|
-
};
|
|
5027
|
-
const de_VirtualGatewayListenerTlsValidationContextTrust = (output, context) => {
|
|
5028
|
-
if (output.file != null) {
|
|
5029
|
-
return {
|
|
5030
|
-
file: de_VirtualGatewayTlsValidationContextFileTrust(output.file, context),
|
|
5031
|
-
};
|
|
5032
|
-
}
|
|
5033
|
-
if (output.sds != null) {
|
|
5034
|
-
return {
|
|
5035
|
-
sds: de_VirtualGatewayTlsValidationContextSdsTrust(output.sds, context),
|
|
5036
|
-
};
|
|
5037
|
-
}
|
|
5038
|
-
return { $unknown: Object.entries(output)[0] };
|
|
5039
|
-
};
|
|
5040
|
-
const de_VirtualGatewayLogging = (output, context) => {
|
|
5041
|
-
return {
|
|
5042
|
-
accessLog: output.accessLog != null ? de_VirtualGatewayAccessLog(__expectUnion(output.accessLog), context) : undefined,
|
|
5043
|
-
};
|
|
5044
|
-
};
|
|
5045
|
-
const de_VirtualGatewayPortMapping = (output, context) => {
|
|
5046
|
-
return {
|
|
5047
|
-
port: __expectInt32(output.port),
|
|
5048
|
-
protocol: __expectString(output.protocol),
|
|
5049
|
-
};
|
|
5050
|
-
};
|
|
5051
|
-
const de_VirtualGatewayRef = (output, context) => {
|
|
5052
|
-
return {
|
|
5053
|
-
arn: __expectString(output.arn),
|
|
5054
|
-
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
5055
|
-
lastUpdatedAt: output.lastUpdatedAt != null
|
|
5056
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
|
|
5057
|
-
: undefined,
|
|
5058
|
-
meshName: __expectString(output.meshName),
|
|
5059
|
-
meshOwner: __expectString(output.meshOwner),
|
|
5060
|
-
resourceOwner: __expectString(output.resourceOwner),
|
|
5061
|
-
version: __expectLong(output.version),
|
|
5062
|
-
virtualGatewayName: __expectString(output.virtualGatewayName),
|
|
5063
|
-
};
|
|
5064
|
-
};
|
|
5065
|
-
const de_VirtualGatewaySpec = (output, context) => {
|
|
5066
|
-
return {
|
|
5067
|
-
backendDefaults: output.backendDefaults != null ? de_VirtualGatewayBackendDefaults(output.backendDefaults, context) : undefined,
|
|
5068
|
-
listeners: output.listeners != null ? de_VirtualGatewayListeners(output.listeners, context) : undefined,
|
|
5069
|
-
logging: output.logging != null ? de_VirtualGatewayLogging(output.logging, context) : undefined,
|
|
5070
|
-
};
|
|
5071
|
-
};
|
|
5072
|
-
const de_VirtualGatewayStatus = (output, context) => {
|
|
5073
|
-
return {
|
|
5074
|
-
status: __expectString(output.status),
|
|
5075
|
-
};
|
|
5076
|
-
};
|
|
5077
|
-
const de_VirtualGatewayTlsValidationContext = (output, context) => {
|
|
5078
|
-
return {
|
|
5079
|
-
subjectAlternativeNames: output.subjectAlternativeNames != null
|
|
5080
|
-
? de_SubjectAlternativeNames(output.subjectAlternativeNames, context)
|
|
5081
|
-
: undefined,
|
|
5082
|
-
trust: output.trust != null
|
|
5083
|
-
? de_VirtualGatewayTlsValidationContextTrust(__expectUnion(output.trust), context)
|
|
5084
|
-
: undefined,
|
|
5085
|
-
};
|
|
5086
|
-
};
|
|
5087
|
-
const de_VirtualGatewayTlsValidationContextAcmTrust = (output, context) => {
|
|
5088
|
-
return {
|
|
5089
|
-
certificateAuthorityArns: output.certificateAuthorityArns != null
|
|
5090
|
-
? de_VirtualGatewayCertificateAuthorityArns(output.certificateAuthorityArns, context)
|
|
5091
|
-
: undefined,
|
|
5092
|
-
};
|
|
5093
|
-
};
|
|
5094
|
-
const de_VirtualGatewayTlsValidationContextFileTrust = (output, context) => {
|
|
5095
|
-
return {
|
|
5096
|
-
certificateChain: __expectString(output.certificateChain),
|
|
5097
|
-
};
|
|
5098
|
-
};
|
|
5099
|
-
const de_VirtualGatewayTlsValidationContextSdsTrust = (output, context) => {
|
|
5100
|
-
return {
|
|
5101
|
-
secretName: __expectString(output.secretName),
|
|
5102
|
-
};
|
|
5103
|
-
};
|
|
5104
|
-
const de_VirtualGatewayTlsValidationContextTrust = (output, context) => {
|
|
5105
|
-
if (output.acm != null) {
|
|
5106
|
-
return {
|
|
5107
|
-
acm: de_VirtualGatewayTlsValidationContextAcmTrust(output.acm, context),
|
|
5108
|
-
};
|
|
5109
|
-
}
|
|
5110
|
-
if (output.file != null) {
|
|
5111
|
-
return {
|
|
5112
|
-
file: de_VirtualGatewayTlsValidationContextFileTrust(output.file, context),
|
|
5113
|
-
};
|
|
5114
|
-
}
|
|
5115
|
-
if (output.sds != null) {
|
|
5116
|
-
return {
|
|
5117
|
-
sds: de_VirtualGatewayTlsValidationContextSdsTrust(output.sds, context),
|
|
5118
|
-
};
|
|
5119
|
-
}
|
|
5120
|
-
return { $unknown: Object.entries(output)[0] };
|
|
5121
|
-
};
|
|
5122
|
-
const de_VirtualNodeConnectionPool = (output, context) => {
|
|
5123
|
-
if (output.grpc != null) {
|
|
5124
|
-
return {
|
|
5125
|
-
grpc: de_VirtualNodeGrpcConnectionPool(output.grpc, context),
|
|
5126
|
-
};
|
|
5127
|
-
}
|
|
5128
|
-
if (output.http != null) {
|
|
5129
|
-
return {
|
|
5130
|
-
http: de_VirtualNodeHttpConnectionPool(output.http, context),
|
|
5131
|
-
};
|
|
5132
|
-
}
|
|
5133
|
-
if (output.http2 != null) {
|
|
5134
|
-
return {
|
|
5135
|
-
http2: de_VirtualNodeHttp2ConnectionPool(output.http2, context),
|
|
5136
|
-
};
|
|
5137
|
-
}
|
|
5138
|
-
if (output.tcp != null) {
|
|
5139
|
-
return {
|
|
5140
|
-
tcp: de_VirtualNodeTcpConnectionPool(output.tcp, context),
|
|
5141
|
-
};
|
|
5142
|
-
}
|
|
5143
|
-
return { $unknown: Object.entries(output)[0] };
|
|
5144
|
-
};
|
|
5145
|
-
const de_VirtualNodeData = (output, context) => {
|
|
5146
|
-
return {
|
|
5147
|
-
meshName: __expectString(output.meshName),
|
|
5148
|
-
metadata: output.metadata != null ? de_ResourceMetadata(output.metadata, context) : undefined,
|
|
5149
|
-
spec: output.spec != null ? de_VirtualNodeSpec(output.spec, context) : undefined,
|
|
5150
|
-
status: output.status != null ? de_VirtualNodeStatus(output.status, context) : undefined,
|
|
5151
|
-
virtualNodeName: __expectString(output.virtualNodeName),
|
|
5152
|
-
};
|
|
5153
|
-
};
|
|
5154
|
-
const de_VirtualNodeGrpcConnectionPool = (output, context) => {
|
|
5155
|
-
return {
|
|
5156
|
-
maxRequests: __expectInt32(output.maxRequests),
|
|
5157
|
-
};
|
|
5158
|
-
};
|
|
5159
|
-
const de_VirtualNodeHttp2ConnectionPool = (output, context) => {
|
|
5160
|
-
return {
|
|
5161
|
-
maxRequests: __expectInt32(output.maxRequests),
|
|
5162
|
-
};
|
|
5163
|
-
};
|
|
5164
|
-
const de_VirtualNodeHttpConnectionPool = (output, context) => {
|
|
5165
|
-
return {
|
|
5166
|
-
maxConnections: __expectInt32(output.maxConnections),
|
|
5167
|
-
maxPendingRequests: __expectInt32(output.maxPendingRequests),
|
|
5168
|
-
};
|
|
5169
|
-
};
|
|
5170
|
-
const de_VirtualNodeList = (output, context) => {
|
|
5171
|
-
const retVal = (output || [])
|
|
5172
|
-
.filter((e) => e != null)
|
|
5173
|
-
.map((entry) => {
|
|
5174
|
-
if (entry === null) {
|
|
5175
|
-
return null;
|
|
5176
|
-
}
|
|
5177
|
-
return de_VirtualNodeRef(entry, context);
|
|
5178
|
-
});
|
|
5179
|
-
return retVal;
|
|
5180
|
-
};
|
|
5181
|
-
const de_VirtualNodeRef = (output, context) => {
|
|
5182
|
-
return {
|
|
5183
|
-
arn: __expectString(output.arn),
|
|
5184
|
-
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
5185
|
-
lastUpdatedAt: output.lastUpdatedAt != null
|
|
5186
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
|
|
5187
|
-
: undefined,
|
|
5188
|
-
meshName: __expectString(output.meshName),
|
|
5189
|
-
meshOwner: __expectString(output.meshOwner),
|
|
5190
|
-
resourceOwner: __expectString(output.resourceOwner),
|
|
5191
|
-
version: __expectLong(output.version),
|
|
5192
|
-
virtualNodeName: __expectString(output.virtualNodeName),
|
|
5193
|
-
};
|
|
5194
|
-
};
|
|
5195
|
-
const de_VirtualNodeServiceProvider = (output, context) => {
|
|
5196
|
-
return {
|
|
5197
|
-
virtualNodeName: __expectString(output.virtualNodeName),
|
|
5198
|
-
};
|
|
5199
|
-
};
|
|
5200
|
-
const de_VirtualNodeSpec = (output, context) => {
|
|
5201
|
-
return {
|
|
5202
|
-
backendDefaults: output.backendDefaults != null ? de_BackendDefaults(output.backendDefaults, context) : undefined,
|
|
5203
|
-
backends: output.backends != null ? de_Backends(output.backends, context) : undefined,
|
|
5204
|
-
listeners: output.listeners != null ? de_Listeners(output.listeners, context) : undefined,
|
|
5205
|
-
logging: output.logging != null ? de_Logging(output.logging, context) : undefined,
|
|
5206
|
-
serviceDiscovery: output.serviceDiscovery != null
|
|
5207
|
-
? de_ServiceDiscovery(__expectUnion(output.serviceDiscovery), context)
|
|
5208
|
-
: undefined,
|
|
5209
|
-
};
|
|
5210
|
-
};
|
|
5211
|
-
const de_VirtualNodeStatus = (output, context) => {
|
|
5212
|
-
return {
|
|
5213
|
-
status: __expectString(output.status),
|
|
5214
|
-
};
|
|
5215
|
-
};
|
|
5216
|
-
const de_VirtualNodeTcpConnectionPool = (output, context) => {
|
|
5217
|
-
return {
|
|
5218
|
-
maxConnections: __expectInt32(output.maxConnections),
|
|
5219
|
-
};
|
|
5220
|
-
};
|
|
5221
|
-
const de_VirtualRouterData = (output, context) => {
|
|
5222
|
-
return {
|
|
5223
|
-
meshName: __expectString(output.meshName),
|
|
5224
|
-
metadata: output.metadata != null ? de_ResourceMetadata(output.metadata, context) : undefined,
|
|
5225
|
-
spec: output.spec != null ? de_VirtualRouterSpec(output.spec, context) : undefined,
|
|
5226
|
-
status: output.status != null ? de_VirtualRouterStatus(output.status, context) : undefined,
|
|
5227
|
-
virtualRouterName: __expectString(output.virtualRouterName),
|
|
5228
|
-
};
|
|
5229
|
-
};
|
|
5230
|
-
const de_VirtualRouterList = (output, context) => {
|
|
5231
|
-
const retVal = (output || [])
|
|
5232
|
-
.filter((e) => e != null)
|
|
5233
|
-
.map((entry) => {
|
|
5234
|
-
if (entry === null) {
|
|
5235
|
-
return null;
|
|
5236
|
-
}
|
|
5237
|
-
return de_VirtualRouterRef(entry, context);
|
|
5238
|
-
});
|
|
5239
|
-
return retVal;
|
|
5240
|
-
};
|
|
5241
|
-
const de_VirtualRouterListener = (output, context) => {
|
|
5242
|
-
return {
|
|
5243
|
-
portMapping: output.portMapping != null ? de_PortMapping(output.portMapping, context) : undefined,
|
|
5244
|
-
};
|
|
5245
|
-
};
|
|
5246
|
-
const de_VirtualRouterListeners = (output, context) => {
|
|
5247
|
-
const retVal = (output || [])
|
|
5248
|
-
.filter((e) => e != null)
|
|
5249
|
-
.map((entry) => {
|
|
5250
|
-
if (entry === null) {
|
|
5251
|
-
return null;
|
|
5252
|
-
}
|
|
5253
|
-
return de_VirtualRouterListener(entry, context);
|
|
5254
|
-
});
|
|
5255
|
-
return retVal;
|
|
5256
|
-
};
|
|
5257
|
-
const de_VirtualRouterRef = (output, context) => {
|
|
5258
|
-
return {
|
|
5259
|
-
arn: __expectString(output.arn),
|
|
5260
|
-
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
5261
|
-
lastUpdatedAt: output.lastUpdatedAt != null
|
|
5262
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
|
|
5263
|
-
: undefined,
|
|
5264
|
-
meshName: __expectString(output.meshName),
|
|
5265
|
-
meshOwner: __expectString(output.meshOwner),
|
|
5266
|
-
resourceOwner: __expectString(output.resourceOwner),
|
|
5267
|
-
version: __expectLong(output.version),
|
|
5268
|
-
virtualRouterName: __expectString(output.virtualRouterName),
|
|
5269
|
-
};
|
|
5270
|
-
};
|
|
5271
|
-
const de_VirtualRouterServiceProvider = (output, context) => {
|
|
5272
|
-
return {
|
|
5273
|
-
virtualRouterName: __expectString(output.virtualRouterName),
|
|
5274
|
-
};
|
|
5275
|
-
};
|
|
5276
|
-
const de_VirtualRouterSpec = (output, context) => {
|
|
5277
|
-
return {
|
|
5278
|
-
listeners: output.listeners != null ? de_VirtualRouterListeners(output.listeners, context) : undefined,
|
|
5279
|
-
};
|
|
5280
|
-
};
|
|
5281
|
-
const de_VirtualRouterStatus = (output, context) => {
|
|
5282
|
-
return {
|
|
5283
|
-
status: __expectString(output.status),
|
|
5284
|
-
};
|
|
5285
|
-
};
|
|
5286
|
-
const de_VirtualServiceBackend = (output, context) => {
|
|
5287
|
-
return {
|
|
5288
|
-
clientPolicy: output.clientPolicy != null ? de_ClientPolicy(output.clientPolicy, context) : undefined,
|
|
5289
|
-
virtualServiceName: __expectString(output.virtualServiceName),
|
|
5290
|
-
};
|
|
5291
|
-
};
|
|
5292
|
-
const de_VirtualServiceData = (output, context) => {
|
|
5293
|
-
return {
|
|
5294
|
-
meshName: __expectString(output.meshName),
|
|
5295
|
-
metadata: output.metadata != null ? de_ResourceMetadata(output.metadata, context) : undefined,
|
|
5296
|
-
spec: output.spec != null ? de_VirtualServiceSpec(output.spec, context) : undefined,
|
|
5297
|
-
status: output.status != null ? de_VirtualServiceStatus(output.status, context) : undefined,
|
|
5298
|
-
virtualServiceName: __expectString(output.virtualServiceName),
|
|
5299
|
-
};
|
|
5300
|
-
};
|
|
5301
|
-
const de_VirtualServiceList = (output, context) => {
|
|
5302
|
-
const retVal = (output || [])
|
|
5303
|
-
.filter((e) => e != null)
|
|
5304
|
-
.map((entry) => {
|
|
5305
|
-
if (entry === null) {
|
|
5306
|
-
return null;
|
|
5307
|
-
}
|
|
5308
|
-
return de_VirtualServiceRef(entry, context);
|
|
5309
|
-
});
|
|
5310
|
-
return retVal;
|
|
5311
|
-
};
|
|
5312
|
-
const de_VirtualServiceProvider = (output, context) => {
|
|
5313
|
-
if (output.virtualNode != null) {
|
|
5314
|
-
return {
|
|
5315
|
-
virtualNode: de_VirtualNodeServiceProvider(output.virtualNode, context),
|
|
5316
|
-
};
|
|
5317
|
-
}
|
|
5318
|
-
if (output.virtualRouter != null) {
|
|
5319
|
-
return {
|
|
5320
|
-
virtualRouter: de_VirtualRouterServiceProvider(output.virtualRouter, context),
|
|
5321
|
-
};
|
|
5322
|
-
}
|
|
5323
|
-
return { $unknown: Object.entries(output)[0] };
|
|
5324
|
-
};
|
|
5325
|
-
const de_VirtualServiceRef = (output, context) => {
|
|
5326
|
-
return {
|
|
5327
|
-
arn: __expectString(output.arn),
|
|
5328
|
-
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
5329
|
-
lastUpdatedAt: output.lastUpdatedAt != null
|
|
5330
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
|
|
5331
|
-
: undefined,
|
|
5332
|
-
meshName: __expectString(output.meshName),
|
|
5333
|
-
meshOwner: __expectString(output.meshOwner),
|
|
5334
|
-
resourceOwner: __expectString(output.resourceOwner),
|
|
5335
|
-
version: __expectLong(output.version),
|
|
5336
|
-
virtualServiceName: __expectString(output.virtualServiceName),
|
|
5337
|
-
};
|
|
5338
|
-
};
|
|
5339
|
-
const de_VirtualServiceSpec = (output, context) => {
|
|
5340
|
-
return {
|
|
5341
|
-
provider: output.provider != null ? de_VirtualServiceProvider(__expectUnion(output.provider), context) : undefined,
|
|
5342
|
-
};
|
|
5343
|
-
};
|
|
5344
|
-
const de_VirtualServiceStatus = (output, context) => {
|
|
5345
|
-
return {
|
|
5346
|
-
status: __expectString(output.status),
|
|
5347
|
-
};
|
|
5348
|
-
};
|
|
5349
|
-
const de_WeightedTarget = (output, context) => {
|
|
5350
|
-
return {
|
|
5351
|
-
port: __expectInt32(output.port),
|
|
5352
|
-
virtualNode: __expectString(output.virtualNode),
|
|
5353
|
-
weight: __expectInt32(output.weight),
|
|
5354
|
-
};
|
|
5355
|
-
};
|
|
5356
|
-
const de_WeightedTargets = (output, context) => {
|
|
5357
|
-
const retVal = (output || [])
|
|
5358
|
-
.filter((e) => e != null)
|
|
5359
|
-
.map((entry) => {
|
|
5360
|
-
if (entry === null) {
|
|
5361
|
-
return null;
|
|
5362
|
-
}
|
|
5363
|
-
return de_WeightedTarget(entry, context);
|
|
5364
|
-
});
|
|
5365
|
-
return retVal;
|
|
5366
|
-
};
|
|
5367
3120
|
const deserializeMetadata = (output) => ({
|
|
5368
3121
|
httpStatusCode: output.statusCode,
|
|
5369
3122
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|