@aws-sdk/client-app-mesh 3.490.0 → 3.496.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.
Files changed (60) hide show
  1. package/dist-cjs/AppMesh.js +1 -87
  2. package/dist-cjs/AppMeshClient.js +1 -43
  3. package/dist-cjs/commands/CreateGatewayRouteCommand.js +1 -28
  4. package/dist-cjs/commands/CreateMeshCommand.js +1 -28
  5. package/dist-cjs/commands/CreateRouteCommand.js +1 -28
  6. package/dist-cjs/commands/CreateVirtualGatewayCommand.js +1 -28
  7. package/dist-cjs/commands/CreateVirtualNodeCommand.js +1 -28
  8. package/dist-cjs/commands/CreateVirtualRouterCommand.js +1 -28
  9. package/dist-cjs/commands/CreateVirtualServiceCommand.js +1 -28
  10. package/dist-cjs/commands/DeleteGatewayRouteCommand.js +1 -28
  11. package/dist-cjs/commands/DeleteMeshCommand.js +1 -28
  12. package/dist-cjs/commands/DeleteRouteCommand.js +1 -28
  13. package/dist-cjs/commands/DeleteVirtualGatewayCommand.js +1 -28
  14. package/dist-cjs/commands/DeleteVirtualNodeCommand.js +1 -28
  15. package/dist-cjs/commands/DeleteVirtualRouterCommand.js +1 -28
  16. package/dist-cjs/commands/DeleteVirtualServiceCommand.js +1 -28
  17. package/dist-cjs/commands/DescribeGatewayRouteCommand.js +1 -28
  18. package/dist-cjs/commands/DescribeMeshCommand.js +1 -28
  19. package/dist-cjs/commands/DescribeRouteCommand.js +1 -28
  20. package/dist-cjs/commands/DescribeVirtualGatewayCommand.js +1 -28
  21. package/dist-cjs/commands/DescribeVirtualNodeCommand.js +1 -28
  22. package/dist-cjs/commands/DescribeVirtualRouterCommand.js +1 -28
  23. package/dist-cjs/commands/DescribeVirtualServiceCommand.js +1 -28
  24. package/dist-cjs/commands/ListGatewayRoutesCommand.js +1 -28
  25. package/dist-cjs/commands/ListMeshesCommand.js +1 -28
  26. package/dist-cjs/commands/ListRoutesCommand.js +1 -28
  27. package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
  28. package/dist-cjs/commands/ListVirtualGatewaysCommand.js +1 -28
  29. package/dist-cjs/commands/ListVirtualNodesCommand.js +1 -28
  30. package/dist-cjs/commands/ListVirtualRoutersCommand.js +1 -28
  31. package/dist-cjs/commands/ListVirtualServicesCommand.js +1 -28
  32. package/dist-cjs/commands/TagResourceCommand.js +1 -28
  33. package/dist-cjs/commands/UntagResourceCommand.js +1 -28
  34. package/dist-cjs/commands/UpdateGatewayRouteCommand.js +1 -28
  35. package/dist-cjs/commands/UpdateMeshCommand.js +1 -28
  36. package/dist-cjs/commands/UpdateRouteCommand.js +1 -28
  37. package/dist-cjs/commands/UpdateVirtualGatewayCommand.js +1 -28
  38. package/dist-cjs/commands/UpdateVirtualNodeCommand.js +1 -28
  39. package/dist-cjs/commands/UpdateVirtualRouterCommand.js +1 -28
  40. package/dist-cjs/commands/UpdateVirtualServiceCommand.js +1 -28
  41. package/dist-cjs/commands/index.js +1 -41
  42. package/dist-cjs/endpoint/EndpointParameters.js +1 -18
  43. package/dist-cjs/extensionConfiguration.js +1 -2
  44. package/dist-cjs/index.js +4432 -11
  45. package/dist-cjs/models/AppMeshServiceException.js +1 -12
  46. package/dist-cjs/models/index.js +1 -4
  47. package/dist-cjs/models/models_0.js +1 -472
  48. package/dist-cjs/pagination/Interfaces.js +1 -2
  49. package/dist-cjs/pagination/ListGatewayRoutesPaginator.js +1 -7
  50. package/dist-cjs/pagination/ListMeshesPaginator.js +1 -7
  51. package/dist-cjs/pagination/ListRoutesPaginator.js +1 -7
  52. package/dist-cjs/pagination/ListTagsForResourcePaginator.js +1 -7
  53. package/dist-cjs/pagination/ListVirtualGatewaysPaginator.js +1 -7
  54. package/dist-cjs/pagination/ListVirtualNodesPaginator.js +1 -7
  55. package/dist-cjs/pagination/ListVirtualRoutersPaginator.js +1 -7
  56. package/dist-cjs/pagination/ListVirtualServicesPaginator.js +1 -7
  57. package/dist-cjs/pagination/index.js +1 -12
  58. package/dist-cjs/protocols/Aws_restJson1.js +1 -2926
  59. package/dist-cjs/runtimeExtensions.js +1 -22
  60. package/package.json +40 -40
package/dist-cjs/index.js CHANGED
@@ -1,12 +1,4433 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AppMeshServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./AppMeshClient"), exports);
6
- tslib_1.__exportStar(require("./AppMesh"), exports);
7
- tslib_1.__exportStar(require("./commands"), exports);
8
- tslib_1.__exportStar(require("./pagination"), exports);
9
- tslib_1.__exportStar(require("./models"), exports);
10
- require("@aws-sdk/util-endpoints");
11
- var AppMeshServiceException_1 = require("./models/AppMeshServiceException");
12
- Object.defineProperty(exports, "AppMeshServiceException", { enumerable: true, get: function () { return AppMeshServiceException_1.AppMeshServiceException; } });
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var src_exports = {};
23
+ __export(src_exports, {
24
+ AccessLog: () => AccessLog,
25
+ AppMesh: () => AppMesh,
26
+ AppMeshClient: () => AppMeshClient,
27
+ AppMeshServiceException: () => AppMeshServiceException,
28
+ Backend: () => Backend,
29
+ BadRequestException: () => BadRequestException,
30
+ ClientTlsCertificate: () => ClientTlsCertificate,
31
+ ConflictException: () => ConflictException,
32
+ CreateGatewayRouteCommand: () => CreateGatewayRouteCommand,
33
+ CreateMeshCommand: () => CreateMeshCommand,
34
+ CreateRouteCommand: () => CreateRouteCommand,
35
+ CreateVirtualGatewayCommand: () => CreateVirtualGatewayCommand,
36
+ CreateVirtualNodeCommand: () => CreateVirtualNodeCommand,
37
+ CreateVirtualRouterCommand: () => CreateVirtualRouterCommand,
38
+ CreateVirtualServiceCommand: () => CreateVirtualServiceCommand,
39
+ DefaultGatewayRouteRewrite: () => DefaultGatewayRouteRewrite,
40
+ DeleteGatewayRouteCommand: () => DeleteGatewayRouteCommand,
41
+ DeleteMeshCommand: () => DeleteMeshCommand,
42
+ DeleteRouteCommand: () => DeleteRouteCommand,
43
+ DeleteVirtualGatewayCommand: () => DeleteVirtualGatewayCommand,
44
+ DeleteVirtualNodeCommand: () => DeleteVirtualNodeCommand,
45
+ DeleteVirtualRouterCommand: () => DeleteVirtualRouterCommand,
46
+ DeleteVirtualServiceCommand: () => DeleteVirtualServiceCommand,
47
+ DescribeGatewayRouteCommand: () => DescribeGatewayRouteCommand,
48
+ DescribeMeshCommand: () => DescribeMeshCommand,
49
+ DescribeRouteCommand: () => DescribeRouteCommand,
50
+ DescribeVirtualGatewayCommand: () => DescribeVirtualGatewayCommand,
51
+ DescribeVirtualNodeCommand: () => DescribeVirtualNodeCommand,
52
+ DescribeVirtualRouterCommand: () => DescribeVirtualRouterCommand,
53
+ DescribeVirtualServiceCommand: () => DescribeVirtualServiceCommand,
54
+ DnsResponseType: () => DnsResponseType,
55
+ DurationUnit: () => DurationUnit,
56
+ EgressFilterType: () => EgressFilterType,
57
+ ForbiddenException: () => ForbiddenException,
58
+ GatewayRouteStatusCode: () => GatewayRouteStatusCode,
59
+ GrpcMetadataMatchMethod: () => GrpcMetadataMatchMethod,
60
+ GrpcRetryPolicyEvent: () => GrpcRetryPolicyEvent,
61
+ GrpcRouteMetadataMatchMethod: () => GrpcRouteMetadataMatchMethod,
62
+ HeaderMatchMethod: () => HeaderMatchMethod,
63
+ HttpMethod: () => HttpMethod,
64
+ HttpScheme: () => HttpScheme,
65
+ InternalServerErrorException: () => InternalServerErrorException,
66
+ IpPreference: () => IpPreference,
67
+ LimitExceededException: () => LimitExceededException,
68
+ ListGatewayRoutesCommand: () => ListGatewayRoutesCommand,
69
+ ListMeshesCommand: () => ListMeshesCommand,
70
+ ListRoutesCommand: () => ListRoutesCommand,
71
+ ListTagsForResourceCommand: () => ListTagsForResourceCommand,
72
+ ListVirtualGatewaysCommand: () => ListVirtualGatewaysCommand,
73
+ ListVirtualNodesCommand: () => ListVirtualNodesCommand,
74
+ ListVirtualRoutersCommand: () => ListVirtualRoutersCommand,
75
+ ListVirtualServicesCommand: () => ListVirtualServicesCommand,
76
+ ListenerTimeout: () => ListenerTimeout,
77
+ ListenerTlsCertificate: () => ListenerTlsCertificate,
78
+ ListenerTlsMode: () => ListenerTlsMode,
79
+ ListenerTlsValidationContextTrust: () => ListenerTlsValidationContextTrust,
80
+ LoggingFormat: () => LoggingFormat,
81
+ MeshStatusCode: () => MeshStatusCode,
82
+ NotFoundException: () => NotFoundException,
83
+ PortProtocol: () => PortProtocol,
84
+ ResourceInUseException: () => ResourceInUseException,
85
+ RouteStatusCode: () => RouteStatusCode,
86
+ ServiceDiscovery: () => ServiceDiscovery,
87
+ ServiceUnavailableException: () => ServiceUnavailableException,
88
+ TagResourceCommand: () => TagResourceCommand,
89
+ TcpRetryPolicyEvent: () => TcpRetryPolicyEvent,
90
+ TlsValidationContextTrust: () => TlsValidationContextTrust,
91
+ TooManyRequestsException: () => TooManyRequestsException,
92
+ TooManyTagsException: () => TooManyTagsException,
93
+ UntagResourceCommand: () => UntagResourceCommand,
94
+ UpdateGatewayRouteCommand: () => UpdateGatewayRouteCommand,
95
+ UpdateMeshCommand: () => UpdateMeshCommand,
96
+ UpdateRouteCommand: () => UpdateRouteCommand,
97
+ UpdateVirtualGatewayCommand: () => UpdateVirtualGatewayCommand,
98
+ UpdateVirtualNodeCommand: () => UpdateVirtualNodeCommand,
99
+ UpdateVirtualRouterCommand: () => UpdateVirtualRouterCommand,
100
+ UpdateVirtualServiceCommand: () => UpdateVirtualServiceCommand,
101
+ VirtualGatewayAccessLog: () => VirtualGatewayAccessLog,
102
+ VirtualGatewayClientTlsCertificate: () => VirtualGatewayClientTlsCertificate,
103
+ VirtualGatewayConnectionPool: () => VirtualGatewayConnectionPool,
104
+ VirtualGatewayListenerTlsCertificate: () => VirtualGatewayListenerTlsCertificate,
105
+ VirtualGatewayListenerTlsMode: () => VirtualGatewayListenerTlsMode,
106
+ VirtualGatewayListenerTlsValidationContextTrust: () => VirtualGatewayListenerTlsValidationContextTrust,
107
+ VirtualGatewayPortProtocol: () => VirtualGatewayPortProtocol,
108
+ VirtualGatewayStatusCode: () => VirtualGatewayStatusCode,
109
+ VirtualGatewayTlsValidationContextTrust: () => VirtualGatewayTlsValidationContextTrust,
110
+ VirtualNodeConnectionPool: () => VirtualNodeConnectionPool,
111
+ VirtualNodeStatusCode: () => VirtualNodeStatusCode,
112
+ VirtualRouterStatusCode: () => VirtualRouterStatusCode,
113
+ VirtualServiceProvider: () => VirtualServiceProvider,
114
+ VirtualServiceStatusCode: () => VirtualServiceStatusCode,
115
+ __Client: () => import_smithy_client.Client,
116
+ paginateListGatewayRoutes: () => paginateListGatewayRoutes,
117
+ paginateListMeshes: () => paginateListMeshes,
118
+ paginateListRoutes: () => paginateListRoutes,
119
+ paginateListTagsForResource: () => paginateListTagsForResource,
120
+ paginateListVirtualGateways: () => paginateListVirtualGateways,
121
+ paginateListVirtualNodes: () => paginateListVirtualNodes,
122
+ paginateListVirtualRouters: () => paginateListVirtualRouters,
123
+ paginateListVirtualServices: () => paginateListVirtualServices
124
+ });
125
+ module.exports = __toCommonJS(src_exports);
126
+
127
+ // src/AppMeshClient.ts
128
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
129
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
130
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
131
+ var import_middleware_signing = require("@aws-sdk/middleware-signing");
132
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
133
+ var import_config_resolver = require("@smithy/config-resolver");
134
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
135
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
136
+ var import_middleware_retry = require("@smithy/middleware-retry");
137
+
138
+
139
+ // src/endpoint/EndpointParameters.ts
140
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
141
+ return {
142
+ ...options,
143
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
144
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
145
+ defaultSigningName: "appmesh"
146
+ };
147
+ }, "resolveClientEndpointParameters");
148
+ var commonParams = {
149
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
150
+ Endpoint: { type: "builtInParams", name: "endpoint" },
151
+ Region: { type: "builtInParams", name: "region" },
152
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
153
+ };
154
+
155
+ // src/AppMeshClient.ts
156
+ var import_runtimeConfig = require("././runtimeConfig");
157
+
158
+ // src/runtimeExtensions.ts
159
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
160
+ var import_protocol_http = require("@smithy/protocol-http");
161
+ var import_smithy_client = require("@smithy/smithy-client");
162
+ var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
163
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
164
+ const extensionConfiguration = {
165
+ ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
166
+ ...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
167
+ ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
168
+ };
169
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
170
+ return {
171
+ ...runtimeConfig,
172
+ ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
173
+ ...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
174
+ ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
175
+ };
176
+ }, "resolveRuntimeExtensions");
177
+
178
+ // src/AppMeshClient.ts
179
+ var _AppMeshClient = class _AppMeshClient extends import_smithy_client.Client {
180
+ constructor(...[configuration]) {
181
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
182
+ const _config_1 = resolveClientEndpointParameters(_config_0);
183
+ const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
184
+ const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
185
+ const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
186
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
187
+ const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
188
+ const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
189
+ const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
190
+ super(_config_8);
191
+ this.config = _config_8;
192
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
193
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
194
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
195
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
196
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
197
+ this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
198
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
199
+ }
200
+ /**
201
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
202
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
203
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
204
+ */
205
+ destroy() {
206
+ super.destroy();
207
+ }
208
+ };
209
+ __name(_AppMeshClient, "AppMeshClient");
210
+ var AppMeshClient = _AppMeshClient;
211
+
212
+ // src/AppMesh.ts
213
+
214
+
215
+ // src/commands/CreateGatewayRouteCommand.ts
216
+
217
+ var import_middleware_serde = require("@smithy/middleware-serde");
218
+
219
+ var import_types = require("@smithy/types");
220
+
221
+ // src/protocols/Aws_restJson1.ts
222
+ var import_core = require("@smithy/core");
223
+
224
+ var import_uuid = require("uuid");
225
+
226
+ // src/models/AppMeshServiceException.ts
227
+
228
+ var _AppMeshServiceException = class _AppMeshServiceException extends import_smithy_client.ServiceException {
229
+ /**
230
+ * @internal
231
+ */
232
+ constructor(options) {
233
+ super(options);
234
+ Object.setPrototypeOf(this, _AppMeshServiceException.prototype);
235
+ }
236
+ };
237
+ __name(_AppMeshServiceException, "AppMeshServiceException");
238
+ var AppMeshServiceException = _AppMeshServiceException;
239
+
240
+ // src/models/models_0.ts
241
+ var LoggingFormat;
242
+ ((LoggingFormat3) => {
243
+ LoggingFormat3.visit = /* @__PURE__ */ __name((value, visitor) => {
244
+ if (value.text !== void 0)
245
+ return visitor.text(value.text);
246
+ if (value.json !== void 0)
247
+ return visitor.json(value.json);
248
+ return visitor._(value.$unknown[0], value.$unknown[1]);
249
+ }, "visit");
250
+ })(LoggingFormat || (LoggingFormat = {}));
251
+ var AccessLog;
252
+ ((AccessLog3) => {
253
+ AccessLog3.visit = /* @__PURE__ */ __name((value, visitor) => {
254
+ if (value.file !== void 0)
255
+ return visitor.file(value.file);
256
+ return visitor._(value.$unknown[0], value.$unknown[1]);
257
+ }, "visit");
258
+ })(AccessLog || (AccessLog = {}));
259
+ var _BadRequestException = class _BadRequestException extends AppMeshServiceException {
260
+ /**
261
+ * @internal
262
+ */
263
+ constructor(opts) {
264
+ super({
265
+ name: "BadRequestException",
266
+ $fault: "client",
267
+ ...opts
268
+ });
269
+ this.name = "BadRequestException";
270
+ this.$fault = "client";
271
+ Object.setPrototypeOf(this, _BadRequestException.prototype);
272
+ }
273
+ };
274
+ __name(_BadRequestException, "BadRequestException");
275
+ var BadRequestException = _BadRequestException;
276
+ var _ForbiddenException = class _ForbiddenException extends AppMeshServiceException {
277
+ /**
278
+ * @internal
279
+ */
280
+ constructor(opts) {
281
+ super({
282
+ name: "ForbiddenException",
283
+ $fault: "client",
284
+ ...opts
285
+ });
286
+ this.name = "ForbiddenException";
287
+ this.$fault = "client";
288
+ Object.setPrototypeOf(this, _ForbiddenException.prototype);
289
+ }
290
+ };
291
+ __name(_ForbiddenException, "ForbiddenException");
292
+ var ForbiddenException = _ForbiddenException;
293
+ var _InternalServerErrorException = class _InternalServerErrorException extends AppMeshServiceException {
294
+ /**
295
+ * @internal
296
+ */
297
+ constructor(opts) {
298
+ super({
299
+ name: "InternalServerErrorException",
300
+ $fault: "server",
301
+ ...opts
302
+ });
303
+ this.name = "InternalServerErrorException";
304
+ this.$fault = "server";
305
+ this.$retryable = {};
306
+ Object.setPrototypeOf(this, _InternalServerErrorException.prototype);
307
+ }
308
+ };
309
+ __name(_InternalServerErrorException, "InternalServerErrorException");
310
+ var InternalServerErrorException = _InternalServerErrorException;
311
+ var _NotFoundException = class _NotFoundException extends AppMeshServiceException {
312
+ /**
313
+ * @internal
314
+ */
315
+ constructor(opts) {
316
+ super({
317
+ name: "NotFoundException",
318
+ $fault: "client",
319
+ ...opts
320
+ });
321
+ this.name = "NotFoundException";
322
+ this.$fault = "client";
323
+ Object.setPrototypeOf(this, _NotFoundException.prototype);
324
+ }
325
+ };
326
+ __name(_NotFoundException, "NotFoundException");
327
+ var NotFoundException = _NotFoundException;
328
+ var _ServiceUnavailableException = class _ServiceUnavailableException extends AppMeshServiceException {
329
+ /**
330
+ * @internal
331
+ */
332
+ constructor(opts) {
333
+ super({
334
+ name: "ServiceUnavailableException",
335
+ $fault: "server",
336
+ ...opts
337
+ });
338
+ this.name = "ServiceUnavailableException";
339
+ this.$fault = "server";
340
+ this.$retryable = {};
341
+ Object.setPrototypeOf(this, _ServiceUnavailableException.prototype);
342
+ }
343
+ };
344
+ __name(_ServiceUnavailableException, "ServiceUnavailableException");
345
+ var ServiceUnavailableException = _ServiceUnavailableException;
346
+ var _TooManyRequestsException = class _TooManyRequestsException extends AppMeshServiceException {
347
+ /**
348
+ * @internal
349
+ */
350
+ constructor(opts) {
351
+ super({
352
+ name: "TooManyRequestsException",
353
+ $fault: "client",
354
+ ...opts
355
+ });
356
+ this.name = "TooManyRequestsException";
357
+ this.$fault = "client";
358
+ this.$retryable = {
359
+ throttling: true
360
+ };
361
+ Object.setPrototypeOf(this, _TooManyRequestsException.prototype);
362
+ }
363
+ };
364
+ __name(_TooManyRequestsException, "TooManyRequestsException");
365
+ var TooManyRequestsException = _TooManyRequestsException;
366
+ var _ConflictException = class _ConflictException extends AppMeshServiceException {
367
+ /**
368
+ * @internal
369
+ */
370
+ constructor(opts) {
371
+ super({
372
+ name: "ConflictException",
373
+ $fault: "client",
374
+ ...opts
375
+ });
376
+ this.name = "ConflictException";
377
+ this.$fault = "client";
378
+ Object.setPrototypeOf(this, _ConflictException.prototype);
379
+ }
380
+ };
381
+ __name(_ConflictException, "ConflictException");
382
+ var ConflictException = _ConflictException;
383
+ var EgressFilterType = {
384
+ ALLOW_ALL: "ALLOW_ALL",
385
+ DROP_ALL: "DROP_ALL"
386
+ };
387
+ var IpPreference = {
388
+ IPv4_ONLY: "IPv4_ONLY",
389
+ IPv4_PREFERRED: "IPv4_PREFERRED",
390
+ IPv6_ONLY: "IPv6_ONLY",
391
+ IPv6_PREFERRED: "IPv6_PREFERRED"
392
+ };
393
+ var MeshStatusCode = {
394
+ ACTIVE: "ACTIVE",
395
+ DELETED: "DELETED",
396
+ INACTIVE: "INACTIVE"
397
+ };
398
+ var _LimitExceededException = class _LimitExceededException extends AppMeshServiceException {
399
+ /**
400
+ * @internal
401
+ */
402
+ constructor(opts) {
403
+ super({
404
+ name: "LimitExceededException",
405
+ $fault: "client",
406
+ ...opts
407
+ });
408
+ this.name = "LimitExceededException";
409
+ this.$fault = "client";
410
+ Object.setPrototypeOf(this, _LimitExceededException.prototype);
411
+ }
412
+ };
413
+ __name(_LimitExceededException, "LimitExceededException");
414
+ var LimitExceededException = _LimitExceededException;
415
+ var _ResourceInUseException = class _ResourceInUseException extends AppMeshServiceException {
416
+ /**
417
+ * @internal
418
+ */
419
+ constructor(opts) {
420
+ super({
421
+ name: "ResourceInUseException",
422
+ $fault: "client",
423
+ ...opts
424
+ });
425
+ this.name = "ResourceInUseException";
426
+ this.$fault = "client";
427
+ Object.setPrototypeOf(this, _ResourceInUseException.prototype);
428
+ }
429
+ };
430
+ __name(_ResourceInUseException, "ResourceInUseException");
431
+ var ResourceInUseException = _ResourceInUseException;
432
+ var VirtualGatewayClientTlsCertificate;
433
+ ((VirtualGatewayClientTlsCertificate3) => {
434
+ VirtualGatewayClientTlsCertificate3.visit = /* @__PURE__ */ __name((value, visitor) => {
435
+ if (value.file !== void 0)
436
+ return visitor.file(value.file);
437
+ if (value.sds !== void 0)
438
+ return visitor.sds(value.sds);
439
+ return visitor._(value.$unknown[0], value.$unknown[1]);
440
+ }, "visit");
441
+ })(VirtualGatewayClientTlsCertificate || (VirtualGatewayClientTlsCertificate = {}));
442
+ var VirtualGatewayTlsValidationContextTrust;
443
+ ((VirtualGatewayTlsValidationContextTrust3) => {
444
+ VirtualGatewayTlsValidationContextTrust3.visit = /* @__PURE__ */ __name((value, visitor) => {
445
+ if (value.acm !== void 0)
446
+ return visitor.acm(value.acm);
447
+ if (value.file !== void 0)
448
+ return visitor.file(value.file);
449
+ if (value.sds !== void 0)
450
+ return visitor.sds(value.sds);
451
+ return visitor._(value.$unknown[0], value.$unknown[1]);
452
+ }, "visit");
453
+ })(VirtualGatewayTlsValidationContextTrust || (VirtualGatewayTlsValidationContextTrust = {}));
454
+ var VirtualGatewayConnectionPool;
455
+ ((VirtualGatewayConnectionPool3) => {
456
+ VirtualGatewayConnectionPool3.visit = /* @__PURE__ */ __name((value, visitor) => {
457
+ if (value.http !== void 0)
458
+ return visitor.http(value.http);
459
+ if (value.http2 !== void 0)
460
+ return visitor.http2(value.http2);
461
+ if (value.grpc !== void 0)
462
+ return visitor.grpc(value.grpc);
463
+ return visitor._(value.$unknown[0], value.$unknown[1]);
464
+ }, "visit");
465
+ })(VirtualGatewayConnectionPool || (VirtualGatewayConnectionPool = {}));
466
+ var VirtualGatewayPortProtocol = {
467
+ GRPC: "grpc",
468
+ HTTP: "http",
469
+ HTTP2: "http2"
470
+ };
471
+ var VirtualGatewayListenerTlsCertificate;
472
+ ((VirtualGatewayListenerTlsCertificate3) => {
473
+ VirtualGatewayListenerTlsCertificate3.visit = /* @__PURE__ */ __name((value, visitor) => {
474
+ if (value.acm !== void 0)
475
+ return visitor.acm(value.acm);
476
+ if (value.file !== void 0)
477
+ return visitor.file(value.file);
478
+ if (value.sds !== void 0)
479
+ return visitor.sds(value.sds);
480
+ return visitor._(value.$unknown[0], value.$unknown[1]);
481
+ }, "visit");
482
+ })(VirtualGatewayListenerTlsCertificate || (VirtualGatewayListenerTlsCertificate = {}));
483
+ var VirtualGatewayListenerTlsMode = {
484
+ DISABLED: "DISABLED",
485
+ PERMISSIVE: "PERMISSIVE",
486
+ STRICT: "STRICT"
487
+ };
488
+ var VirtualGatewayListenerTlsValidationContextTrust;
489
+ ((VirtualGatewayListenerTlsValidationContextTrust3) => {
490
+ VirtualGatewayListenerTlsValidationContextTrust3.visit = /* @__PURE__ */ __name((value, visitor) => {
491
+ if (value.file !== void 0)
492
+ return visitor.file(value.file);
493
+ if (value.sds !== void 0)
494
+ return visitor.sds(value.sds);
495
+ return visitor._(value.$unknown[0], value.$unknown[1]);
496
+ }, "visit");
497
+ })(VirtualGatewayListenerTlsValidationContextTrust || (VirtualGatewayListenerTlsValidationContextTrust = {}));
498
+ var VirtualGatewayAccessLog;
499
+ ((VirtualGatewayAccessLog3) => {
500
+ VirtualGatewayAccessLog3.visit = /* @__PURE__ */ __name((value, visitor) => {
501
+ if (value.file !== void 0)
502
+ return visitor.file(value.file);
503
+ return visitor._(value.$unknown[0], value.$unknown[1]);
504
+ }, "visit");
505
+ })(VirtualGatewayAccessLog || (VirtualGatewayAccessLog = {}));
506
+ var VirtualGatewayStatusCode = {
507
+ ACTIVE: "ACTIVE",
508
+ DELETED: "DELETED",
509
+ INACTIVE: "INACTIVE"
510
+ };
511
+ var DefaultGatewayRouteRewrite = {
512
+ DISABLED: "DISABLED",
513
+ ENABLED: "ENABLED"
514
+ };
515
+ var GrpcMetadataMatchMethod;
516
+ ((GrpcMetadataMatchMethod3) => {
517
+ GrpcMetadataMatchMethod3.visit = /* @__PURE__ */ __name((value, visitor) => {
518
+ if (value.exact !== void 0)
519
+ return visitor.exact(value.exact);
520
+ if (value.regex !== void 0)
521
+ return visitor.regex(value.regex);
522
+ if (value.range !== void 0)
523
+ return visitor.range(value.range);
524
+ if (value.prefix !== void 0)
525
+ return visitor.prefix(value.prefix);
526
+ if (value.suffix !== void 0)
527
+ return visitor.suffix(value.suffix);
528
+ return visitor._(value.$unknown[0], value.$unknown[1]);
529
+ }, "visit");
530
+ })(GrpcMetadataMatchMethod || (GrpcMetadataMatchMethod = {}));
531
+ var HeaderMatchMethod;
532
+ ((HeaderMatchMethod3) => {
533
+ HeaderMatchMethod3.visit = /* @__PURE__ */ __name((value, visitor) => {
534
+ if (value.exact !== void 0)
535
+ return visitor.exact(value.exact);
536
+ if (value.regex !== void 0)
537
+ return visitor.regex(value.regex);
538
+ if (value.range !== void 0)
539
+ return visitor.range(value.range);
540
+ if (value.prefix !== void 0)
541
+ return visitor.prefix(value.prefix);
542
+ if (value.suffix !== void 0)
543
+ return visitor.suffix(value.suffix);
544
+ return visitor._(value.$unknown[0], value.$unknown[1]);
545
+ }, "visit");
546
+ })(HeaderMatchMethod || (HeaderMatchMethod = {}));
547
+ var HttpMethod = {
548
+ CONNECT: "CONNECT",
549
+ DELETE: "DELETE",
550
+ GET: "GET",
551
+ HEAD: "HEAD",
552
+ OPTIONS: "OPTIONS",
553
+ PATCH: "PATCH",
554
+ POST: "POST",
555
+ PUT: "PUT",
556
+ TRACE: "TRACE"
557
+ };
558
+ var GatewayRouteStatusCode = {
559
+ ACTIVE: "ACTIVE",
560
+ DELETED: "DELETED",
561
+ INACTIVE: "INACTIVE"
562
+ };
563
+ var ClientTlsCertificate;
564
+ ((ClientTlsCertificate3) => {
565
+ ClientTlsCertificate3.visit = /* @__PURE__ */ __name((value, visitor) => {
566
+ if (value.file !== void 0)
567
+ return visitor.file(value.file);
568
+ if (value.sds !== void 0)
569
+ return visitor.sds(value.sds);
570
+ return visitor._(value.$unknown[0], value.$unknown[1]);
571
+ }, "visit");
572
+ })(ClientTlsCertificate || (ClientTlsCertificate = {}));
573
+ var TlsValidationContextTrust;
574
+ ((TlsValidationContextTrust3) => {
575
+ TlsValidationContextTrust3.visit = /* @__PURE__ */ __name((value, visitor) => {
576
+ if (value.acm !== void 0)
577
+ return visitor.acm(value.acm);
578
+ if (value.file !== void 0)
579
+ return visitor.file(value.file);
580
+ if (value.sds !== void 0)
581
+ return visitor.sds(value.sds);
582
+ return visitor._(value.$unknown[0], value.$unknown[1]);
583
+ }, "visit");
584
+ })(TlsValidationContextTrust || (TlsValidationContextTrust = {}));
585
+ var Backend;
586
+ ((Backend3) => {
587
+ Backend3.visit = /* @__PURE__ */ __name((value, visitor) => {
588
+ if (value.virtualService !== void 0)
589
+ return visitor.virtualService(value.virtualService);
590
+ return visitor._(value.$unknown[0], value.$unknown[1]);
591
+ }, "visit");
592
+ })(Backend || (Backend = {}));
593
+ var VirtualNodeConnectionPool;
594
+ ((VirtualNodeConnectionPool3) => {
595
+ VirtualNodeConnectionPool3.visit = /* @__PURE__ */ __name((value, visitor) => {
596
+ if (value.tcp !== void 0)
597
+ return visitor.tcp(value.tcp);
598
+ if (value.http !== void 0)
599
+ return visitor.http(value.http);
600
+ if (value.http2 !== void 0)
601
+ return visitor.http2(value.http2);
602
+ if (value.grpc !== void 0)
603
+ return visitor.grpc(value.grpc);
604
+ return visitor._(value.$unknown[0], value.$unknown[1]);
605
+ }, "visit");
606
+ })(VirtualNodeConnectionPool || (VirtualNodeConnectionPool = {}));
607
+ var PortProtocol = {
608
+ GRPC: "grpc",
609
+ HTTP: "http",
610
+ HTTP2: "http2",
611
+ TCP: "tcp"
612
+ };
613
+ var DurationUnit = {
614
+ MS: "ms",
615
+ S: "s"
616
+ };
617
+ var ListenerTimeout;
618
+ ((ListenerTimeout3) => {
619
+ ListenerTimeout3.visit = /* @__PURE__ */ __name((value, visitor) => {
620
+ if (value.tcp !== void 0)
621
+ return visitor.tcp(value.tcp);
622
+ if (value.http !== void 0)
623
+ return visitor.http(value.http);
624
+ if (value.http2 !== void 0)
625
+ return visitor.http2(value.http2);
626
+ if (value.grpc !== void 0)
627
+ return visitor.grpc(value.grpc);
628
+ return visitor._(value.$unknown[0], value.$unknown[1]);
629
+ }, "visit");
630
+ })(ListenerTimeout || (ListenerTimeout = {}));
631
+ var ListenerTlsCertificate;
632
+ ((ListenerTlsCertificate3) => {
633
+ ListenerTlsCertificate3.visit = /* @__PURE__ */ __name((value, visitor) => {
634
+ if (value.acm !== void 0)
635
+ return visitor.acm(value.acm);
636
+ if (value.file !== void 0)
637
+ return visitor.file(value.file);
638
+ if (value.sds !== void 0)
639
+ return visitor.sds(value.sds);
640
+ return visitor._(value.$unknown[0], value.$unknown[1]);
641
+ }, "visit");
642
+ })(ListenerTlsCertificate || (ListenerTlsCertificate = {}));
643
+ var ListenerTlsMode = {
644
+ DISABLED: "DISABLED",
645
+ PERMISSIVE: "PERMISSIVE",
646
+ STRICT: "STRICT"
647
+ };
648
+ var ListenerTlsValidationContextTrust;
649
+ ((ListenerTlsValidationContextTrust3) => {
650
+ ListenerTlsValidationContextTrust3.visit = /* @__PURE__ */ __name((value, visitor) => {
651
+ if (value.file !== void 0)
652
+ return visitor.file(value.file);
653
+ if (value.sds !== void 0)
654
+ return visitor.sds(value.sds);
655
+ return visitor._(value.$unknown[0], value.$unknown[1]);
656
+ }, "visit");
657
+ })(ListenerTlsValidationContextTrust || (ListenerTlsValidationContextTrust = {}));
658
+ var DnsResponseType = {
659
+ ENDPOINTS: "ENDPOINTS",
660
+ LOADBALANCER: "LOADBALANCER"
661
+ };
662
+ var ServiceDiscovery;
663
+ ((ServiceDiscovery3) => {
664
+ ServiceDiscovery3.visit = /* @__PURE__ */ __name((value, visitor) => {
665
+ if (value.dns !== void 0)
666
+ return visitor.dns(value.dns);
667
+ if (value.awsCloudMap !== void 0)
668
+ return visitor.awsCloudMap(value.awsCloudMap);
669
+ return visitor._(value.$unknown[0], value.$unknown[1]);
670
+ }, "visit");
671
+ })(ServiceDiscovery || (ServiceDiscovery = {}));
672
+ var VirtualNodeStatusCode = {
673
+ ACTIVE: "ACTIVE",
674
+ DELETED: "DELETED",
675
+ INACTIVE: "INACTIVE"
676
+ };
677
+ var VirtualRouterStatusCode = {
678
+ ACTIVE: "ACTIVE",
679
+ DELETED: "DELETED",
680
+ INACTIVE: "INACTIVE"
681
+ };
682
+ var GrpcRouteMetadataMatchMethod;
683
+ ((GrpcRouteMetadataMatchMethod3) => {
684
+ GrpcRouteMetadataMatchMethod3.visit = /* @__PURE__ */ __name((value, visitor) => {
685
+ if (value.exact !== void 0)
686
+ return visitor.exact(value.exact);
687
+ if (value.regex !== void 0)
688
+ return visitor.regex(value.regex);
689
+ if (value.range !== void 0)
690
+ return visitor.range(value.range);
691
+ if (value.prefix !== void 0)
692
+ return visitor.prefix(value.prefix);
693
+ if (value.suffix !== void 0)
694
+ return visitor.suffix(value.suffix);
695
+ return visitor._(value.$unknown[0], value.$unknown[1]);
696
+ }, "visit");
697
+ })(GrpcRouteMetadataMatchMethod || (GrpcRouteMetadataMatchMethod = {}));
698
+ var GrpcRetryPolicyEvent = {
699
+ CANCELLED: "cancelled",
700
+ DEADLINE_EXCEEDED: "deadline-exceeded",
701
+ INTERNAL: "internal",
702
+ RESOURCE_EXHAUSTED: "resource-exhausted",
703
+ UNAVAILABLE: "unavailable"
704
+ };
705
+ var TcpRetryPolicyEvent = {
706
+ CONNECTION_ERROR: "connection-error"
707
+ };
708
+ var HttpScheme = {
709
+ HTTP: "http",
710
+ HTTPS: "https"
711
+ };
712
+ var RouteStatusCode = {
713
+ ACTIVE: "ACTIVE",
714
+ DELETED: "DELETED",
715
+ INACTIVE: "INACTIVE"
716
+ };
717
+ var VirtualServiceProvider;
718
+ ((VirtualServiceProvider3) => {
719
+ VirtualServiceProvider3.visit = /* @__PURE__ */ __name((value, visitor) => {
720
+ if (value.virtualNode !== void 0)
721
+ return visitor.virtualNode(value.virtualNode);
722
+ if (value.virtualRouter !== void 0)
723
+ return visitor.virtualRouter(value.virtualRouter);
724
+ return visitor._(value.$unknown[0], value.$unknown[1]);
725
+ }, "visit");
726
+ })(VirtualServiceProvider || (VirtualServiceProvider = {}));
727
+ var VirtualServiceStatusCode = {
728
+ ACTIVE: "ACTIVE",
729
+ DELETED: "DELETED",
730
+ INACTIVE: "INACTIVE"
731
+ };
732
+ var _TooManyTagsException = class _TooManyTagsException extends AppMeshServiceException {
733
+ /**
734
+ * @internal
735
+ */
736
+ constructor(opts) {
737
+ super({
738
+ name: "TooManyTagsException",
739
+ $fault: "client",
740
+ ...opts
741
+ });
742
+ this.name = "TooManyTagsException";
743
+ this.$fault = "client";
744
+ Object.setPrototypeOf(this, _TooManyTagsException.prototype);
745
+ }
746
+ };
747
+ __name(_TooManyTagsException, "TooManyTagsException");
748
+ var TooManyTagsException = _TooManyTagsException;
749
+
750
+ // src/protocols/Aws_restJson1.ts
751
+ var se_CreateGatewayRouteCommand = /* @__PURE__ */ __name(async (input, context) => {
752
+ const b = (0, import_core.requestBuilder)(input, context);
753
+ const headers = {
754
+ "content-type": "application/json"
755
+ };
756
+ b.bp("/v20190125/meshes/{meshName}/virtualGateway/{virtualGatewayName}/gatewayRoutes");
757
+ b.p("meshName", () => input.meshName, "{meshName}", false);
758
+ b.p("virtualGatewayName", () => input.virtualGatewayName, "{virtualGatewayName}", false);
759
+ const query = (0, import_smithy_client.map)({
760
+ [_mO]: [, input[_mO]]
761
+ });
762
+ let body;
763
+ body = JSON.stringify(
764
+ (0, import_smithy_client.take)(input, {
765
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
766
+ gatewayRouteName: [],
767
+ spec: (_) => (0, import_smithy_client._json)(_),
768
+ tags: (_) => (0, import_smithy_client._json)(_)
769
+ })
770
+ );
771
+ b.m("PUT").h(headers).q(query).b(body);
772
+ return b.build();
773
+ }, "se_CreateGatewayRouteCommand");
774
+ var se_CreateMeshCommand = /* @__PURE__ */ __name(async (input, context) => {
775
+ const b = (0, import_core.requestBuilder)(input, context);
776
+ const headers = {
777
+ "content-type": "application/json"
778
+ };
779
+ b.bp("/v20190125/meshes");
780
+ let body;
781
+ body = JSON.stringify(
782
+ (0, import_smithy_client.take)(input, {
783
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
784
+ meshName: [],
785
+ spec: (_) => (0, import_smithy_client._json)(_),
786
+ tags: (_) => (0, import_smithy_client._json)(_)
787
+ })
788
+ );
789
+ b.m("PUT").h(headers).b(body);
790
+ return b.build();
791
+ }, "se_CreateMeshCommand");
792
+ var se_CreateRouteCommand = /* @__PURE__ */ __name(async (input, context) => {
793
+ const b = (0, import_core.requestBuilder)(input, context);
794
+ const headers = {
795
+ "content-type": "application/json"
796
+ };
797
+ b.bp("/v20190125/meshes/{meshName}/virtualRouter/{virtualRouterName}/routes");
798
+ b.p("meshName", () => input.meshName, "{meshName}", false);
799
+ b.p("virtualRouterName", () => input.virtualRouterName, "{virtualRouterName}", false);
800
+ const query = (0, import_smithy_client.map)({
801
+ [_mO]: [, input[_mO]]
802
+ });
803
+ let body;
804
+ body = JSON.stringify(
805
+ (0, import_smithy_client.take)(input, {
806
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
807
+ routeName: [],
808
+ spec: (_) => (0, import_smithy_client._json)(_),
809
+ tags: (_) => (0, import_smithy_client._json)(_)
810
+ })
811
+ );
812
+ b.m("PUT").h(headers).q(query).b(body);
813
+ return b.build();
814
+ }, "se_CreateRouteCommand");
815
+ var se_CreateVirtualGatewayCommand = /* @__PURE__ */ __name(async (input, context) => {
816
+ const b = (0, import_core.requestBuilder)(input, context);
817
+ const headers = {
818
+ "content-type": "application/json"
819
+ };
820
+ b.bp("/v20190125/meshes/{meshName}/virtualGateways");
821
+ b.p("meshName", () => input.meshName, "{meshName}", false);
822
+ const query = (0, import_smithy_client.map)({
823
+ [_mO]: [, input[_mO]]
824
+ });
825
+ let body;
826
+ body = JSON.stringify(
827
+ (0, import_smithy_client.take)(input, {
828
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
829
+ spec: (_) => (0, import_smithy_client._json)(_),
830
+ tags: (_) => (0, import_smithy_client._json)(_),
831
+ virtualGatewayName: []
832
+ })
833
+ );
834
+ b.m("PUT").h(headers).q(query).b(body);
835
+ return b.build();
836
+ }, "se_CreateVirtualGatewayCommand");
837
+ var se_CreateVirtualNodeCommand = /* @__PURE__ */ __name(async (input, context) => {
838
+ const b = (0, import_core.requestBuilder)(input, context);
839
+ const headers = {
840
+ "content-type": "application/json"
841
+ };
842
+ b.bp("/v20190125/meshes/{meshName}/virtualNodes");
843
+ b.p("meshName", () => input.meshName, "{meshName}", false);
844
+ const query = (0, import_smithy_client.map)({
845
+ [_mO]: [, input[_mO]]
846
+ });
847
+ let body;
848
+ body = JSON.stringify(
849
+ (0, import_smithy_client.take)(input, {
850
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
851
+ spec: (_) => (0, import_smithy_client._json)(_),
852
+ tags: (_) => (0, import_smithy_client._json)(_),
853
+ virtualNodeName: []
854
+ })
855
+ );
856
+ b.m("PUT").h(headers).q(query).b(body);
857
+ return b.build();
858
+ }, "se_CreateVirtualNodeCommand");
859
+ var se_CreateVirtualRouterCommand = /* @__PURE__ */ __name(async (input, context) => {
860
+ const b = (0, import_core.requestBuilder)(input, context);
861
+ const headers = {
862
+ "content-type": "application/json"
863
+ };
864
+ b.bp("/v20190125/meshes/{meshName}/virtualRouters");
865
+ b.p("meshName", () => input.meshName, "{meshName}", false);
866
+ const query = (0, import_smithy_client.map)({
867
+ [_mO]: [, input[_mO]]
868
+ });
869
+ let body;
870
+ body = JSON.stringify(
871
+ (0, import_smithy_client.take)(input, {
872
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
873
+ spec: (_) => (0, import_smithy_client._json)(_),
874
+ tags: (_) => (0, import_smithy_client._json)(_),
875
+ virtualRouterName: []
876
+ })
877
+ );
878
+ b.m("PUT").h(headers).q(query).b(body);
879
+ return b.build();
880
+ }, "se_CreateVirtualRouterCommand");
881
+ var se_CreateVirtualServiceCommand = /* @__PURE__ */ __name(async (input, context) => {
882
+ const b = (0, import_core.requestBuilder)(input, context);
883
+ const headers = {
884
+ "content-type": "application/json"
885
+ };
886
+ b.bp("/v20190125/meshes/{meshName}/virtualServices");
887
+ b.p("meshName", () => input.meshName, "{meshName}", false);
888
+ const query = (0, import_smithy_client.map)({
889
+ [_mO]: [, input[_mO]]
890
+ });
891
+ let body;
892
+ body = JSON.stringify(
893
+ (0, import_smithy_client.take)(input, {
894
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
895
+ spec: (_) => (0, import_smithy_client._json)(_),
896
+ tags: (_) => (0, import_smithy_client._json)(_),
897
+ virtualServiceName: []
898
+ })
899
+ );
900
+ b.m("PUT").h(headers).q(query).b(body);
901
+ return b.build();
902
+ }, "se_CreateVirtualServiceCommand");
903
+ var se_DeleteGatewayRouteCommand = /* @__PURE__ */ __name(async (input, context) => {
904
+ const b = (0, import_core.requestBuilder)(input, context);
905
+ const headers = {};
906
+ b.bp("/v20190125/meshes/{meshName}/virtualGateway/{virtualGatewayName}/gatewayRoutes/{gatewayRouteName}");
907
+ b.p("gatewayRouteName", () => input.gatewayRouteName, "{gatewayRouteName}", false);
908
+ b.p("meshName", () => input.meshName, "{meshName}", false);
909
+ b.p("virtualGatewayName", () => input.virtualGatewayName, "{virtualGatewayName}", false);
910
+ const query = (0, import_smithy_client.map)({
911
+ [_mO]: [, input[_mO]]
912
+ });
913
+ let body;
914
+ b.m("DELETE").h(headers).q(query).b(body);
915
+ return b.build();
916
+ }, "se_DeleteGatewayRouteCommand");
917
+ var se_DeleteMeshCommand = /* @__PURE__ */ __name(async (input, context) => {
918
+ const b = (0, import_core.requestBuilder)(input, context);
919
+ const headers = {};
920
+ b.bp("/v20190125/meshes/{meshName}");
921
+ b.p("meshName", () => input.meshName, "{meshName}", false);
922
+ let body;
923
+ b.m("DELETE").h(headers).b(body);
924
+ return b.build();
925
+ }, "se_DeleteMeshCommand");
926
+ var se_DeleteRouteCommand = /* @__PURE__ */ __name(async (input, context) => {
927
+ const b = (0, import_core.requestBuilder)(input, context);
928
+ const headers = {};
929
+ b.bp("/v20190125/meshes/{meshName}/virtualRouter/{virtualRouterName}/routes/{routeName}");
930
+ b.p("routeName", () => input.routeName, "{routeName}", false);
931
+ b.p("meshName", () => input.meshName, "{meshName}", false);
932
+ b.p("virtualRouterName", () => input.virtualRouterName, "{virtualRouterName}", false);
933
+ const query = (0, import_smithy_client.map)({
934
+ [_mO]: [, input[_mO]]
935
+ });
936
+ let body;
937
+ b.m("DELETE").h(headers).q(query).b(body);
938
+ return b.build();
939
+ }, "se_DeleteRouteCommand");
940
+ var se_DeleteVirtualGatewayCommand = /* @__PURE__ */ __name(async (input, context) => {
941
+ const b = (0, import_core.requestBuilder)(input, context);
942
+ const headers = {};
943
+ b.bp("/v20190125/meshes/{meshName}/virtualGateways/{virtualGatewayName}");
944
+ b.p("virtualGatewayName", () => input.virtualGatewayName, "{virtualGatewayName}", false);
945
+ b.p("meshName", () => input.meshName, "{meshName}", false);
946
+ const query = (0, import_smithy_client.map)({
947
+ [_mO]: [, input[_mO]]
948
+ });
949
+ let body;
950
+ b.m("DELETE").h(headers).q(query).b(body);
951
+ return b.build();
952
+ }, "se_DeleteVirtualGatewayCommand");
953
+ var se_DeleteVirtualNodeCommand = /* @__PURE__ */ __name(async (input, context) => {
954
+ const b = (0, import_core.requestBuilder)(input, context);
955
+ const headers = {};
956
+ b.bp("/v20190125/meshes/{meshName}/virtualNodes/{virtualNodeName}");
957
+ b.p("virtualNodeName", () => input.virtualNodeName, "{virtualNodeName}", false);
958
+ b.p("meshName", () => input.meshName, "{meshName}", false);
959
+ const query = (0, import_smithy_client.map)({
960
+ [_mO]: [, input[_mO]]
961
+ });
962
+ let body;
963
+ b.m("DELETE").h(headers).q(query).b(body);
964
+ return b.build();
965
+ }, "se_DeleteVirtualNodeCommand");
966
+ var se_DeleteVirtualRouterCommand = /* @__PURE__ */ __name(async (input, context) => {
967
+ const b = (0, import_core.requestBuilder)(input, context);
968
+ const headers = {};
969
+ b.bp("/v20190125/meshes/{meshName}/virtualRouters/{virtualRouterName}");
970
+ b.p("virtualRouterName", () => input.virtualRouterName, "{virtualRouterName}", false);
971
+ b.p("meshName", () => input.meshName, "{meshName}", false);
972
+ const query = (0, import_smithy_client.map)({
973
+ [_mO]: [, input[_mO]]
974
+ });
975
+ let body;
976
+ b.m("DELETE").h(headers).q(query).b(body);
977
+ return b.build();
978
+ }, "se_DeleteVirtualRouterCommand");
979
+ var se_DeleteVirtualServiceCommand = /* @__PURE__ */ __name(async (input, context) => {
980
+ const b = (0, import_core.requestBuilder)(input, context);
981
+ const headers = {};
982
+ b.bp("/v20190125/meshes/{meshName}/virtualServices/{virtualServiceName}");
983
+ b.p("virtualServiceName", () => input.virtualServiceName, "{virtualServiceName}", false);
984
+ b.p("meshName", () => input.meshName, "{meshName}", false);
985
+ const query = (0, import_smithy_client.map)({
986
+ [_mO]: [, input[_mO]]
987
+ });
988
+ let body;
989
+ b.m("DELETE").h(headers).q(query).b(body);
990
+ return b.build();
991
+ }, "se_DeleteVirtualServiceCommand");
992
+ var se_DescribeGatewayRouteCommand = /* @__PURE__ */ __name(async (input, context) => {
993
+ const b = (0, import_core.requestBuilder)(input, context);
994
+ const headers = {};
995
+ b.bp("/v20190125/meshes/{meshName}/virtualGateway/{virtualGatewayName}/gatewayRoutes/{gatewayRouteName}");
996
+ b.p("gatewayRouteName", () => input.gatewayRouteName, "{gatewayRouteName}", false);
997
+ b.p("meshName", () => input.meshName, "{meshName}", false);
998
+ b.p("virtualGatewayName", () => input.virtualGatewayName, "{virtualGatewayName}", false);
999
+ const query = (0, import_smithy_client.map)({
1000
+ [_mO]: [, input[_mO]]
1001
+ });
1002
+ let body;
1003
+ b.m("GET").h(headers).q(query).b(body);
1004
+ return b.build();
1005
+ }, "se_DescribeGatewayRouteCommand");
1006
+ var se_DescribeMeshCommand = /* @__PURE__ */ __name(async (input, context) => {
1007
+ const b = (0, import_core.requestBuilder)(input, context);
1008
+ const headers = {};
1009
+ b.bp("/v20190125/meshes/{meshName}");
1010
+ b.p("meshName", () => input.meshName, "{meshName}", false);
1011
+ const query = (0, import_smithy_client.map)({
1012
+ [_mO]: [, input[_mO]]
1013
+ });
1014
+ let body;
1015
+ b.m("GET").h(headers).q(query).b(body);
1016
+ return b.build();
1017
+ }, "se_DescribeMeshCommand");
1018
+ var se_DescribeRouteCommand = /* @__PURE__ */ __name(async (input, context) => {
1019
+ const b = (0, import_core.requestBuilder)(input, context);
1020
+ const headers = {};
1021
+ b.bp("/v20190125/meshes/{meshName}/virtualRouter/{virtualRouterName}/routes/{routeName}");
1022
+ b.p("routeName", () => input.routeName, "{routeName}", false);
1023
+ b.p("meshName", () => input.meshName, "{meshName}", false);
1024
+ b.p("virtualRouterName", () => input.virtualRouterName, "{virtualRouterName}", false);
1025
+ const query = (0, import_smithy_client.map)({
1026
+ [_mO]: [, input[_mO]]
1027
+ });
1028
+ let body;
1029
+ b.m("GET").h(headers).q(query).b(body);
1030
+ return b.build();
1031
+ }, "se_DescribeRouteCommand");
1032
+ var se_DescribeVirtualGatewayCommand = /* @__PURE__ */ __name(async (input, context) => {
1033
+ const b = (0, import_core.requestBuilder)(input, context);
1034
+ const headers = {};
1035
+ b.bp("/v20190125/meshes/{meshName}/virtualGateways/{virtualGatewayName}");
1036
+ b.p("virtualGatewayName", () => input.virtualGatewayName, "{virtualGatewayName}", false);
1037
+ b.p("meshName", () => input.meshName, "{meshName}", false);
1038
+ const query = (0, import_smithy_client.map)({
1039
+ [_mO]: [, input[_mO]]
1040
+ });
1041
+ let body;
1042
+ b.m("GET").h(headers).q(query).b(body);
1043
+ return b.build();
1044
+ }, "se_DescribeVirtualGatewayCommand");
1045
+ var se_DescribeVirtualNodeCommand = /* @__PURE__ */ __name(async (input, context) => {
1046
+ const b = (0, import_core.requestBuilder)(input, context);
1047
+ const headers = {};
1048
+ b.bp("/v20190125/meshes/{meshName}/virtualNodes/{virtualNodeName}");
1049
+ b.p("virtualNodeName", () => input.virtualNodeName, "{virtualNodeName}", false);
1050
+ b.p("meshName", () => input.meshName, "{meshName}", false);
1051
+ const query = (0, import_smithy_client.map)({
1052
+ [_mO]: [, input[_mO]]
1053
+ });
1054
+ let body;
1055
+ b.m("GET").h(headers).q(query).b(body);
1056
+ return b.build();
1057
+ }, "se_DescribeVirtualNodeCommand");
1058
+ var se_DescribeVirtualRouterCommand = /* @__PURE__ */ __name(async (input, context) => {
1059
+ const b = (0, import_core.requestBuilder)(input, context);
1060
+ const headers = {};
1061
+ b.bp("/v20190125/meshes/{meshName}/virtualRouters/{virtualRouterName}");
1062
+ b.p("virtualRouterName", () => input.virtualRouterName, "{virtualRouterName}", false);
1063
+ b.p("meshName", () => input.meshName, "{meshName}", false);
1064
+ const query = (0, import_smithy_client.map)({
1065
+ [_mO]: [, input[_mO]]
1066
+ });
1067
+ let body;
1068
+ b.m("GET").h(headers).q(query).b(body);
1069
+ return b.build();
1070
+ }, "se_DescribeVirtualRouterCommand");
1071
+ var se_DescribeVirtualServiceCommand = /* @__PURE__ */ __name(async (input, context) => {
1072
+ const b = (0, import_core.requestBuilder)(input, context);
1073
+ const headers = {};
1074
+ b.bp("/v20190125/meshes/{meshName}/virtualServices/{virtualServiceName}");
1075
+ b.p("virtualServiceName", () => input.virtualServiceName, "{virtualServiceName}", false);
1076
+ b.p("meshName", () => input.meshName, "{meshName}", false);
1077
+ const query = (0, import_smithy_client.map)({
1078
+ [_mO]: [, input[_mO]]
1079
+ });
1080
+ let body;
1081
+ b.m("GET").h(headers).q(query).b(body);
1082
+ return b.build();
1083
+ }, "se_DescribeVirtualServiceCommand");
1084
+ var se_ListGatewayRoutesCommand = /* @__PURE__ */ __name(async (input, context) => {
1085
+ const b = (0, import_core.requestBuilder)(input, context);
1086
+ const headers = {};
1087
+ b.bp("/v20190125/meshes/{meshName}/virtualGateway/{virtualGatewayName}/gatewayRoutes");
1088
+ b.p("meshName", () => input.meshName, "{meshName}", false);
1089
+ b.p("virtualGatewayName", () => input.virtualGatewayName, "{virtualGatewayName}", false);
1090
+ const query = (0, import_smithy_client.map)({
1091
+ [_nT]: [, input[_nT]],
1092
+ [_l]: [() => input.limit !== void 0, () => input[_l].toString()],
1093
+ [_mO]: [, input[_mO]]
1094
+ });
1095
+ let body;
1096
+ b.m("GET").h(headers).q(query).b(body);
1097
+ return b.build();
1098
+ }, "se_ListGatewayRoutesCommand");
1099
+ var se_ListMeshesCommand = /* @__PURE__ */ __name(async (input, context) => {
1100
+ const b = (0, import_core.requestBuilder)(input, context);
1101
+ const headers = {};
1102
+ b.bp("/v20190125/meshes");
1103
+ const query = (0, import_smithy_client.map)({
1104
+ [_nT]: [, input[_nT]],
1105
+ [_l]: [() => input.limit !== void 0, () => input[_l].toString()]
1106
+ });
1107
+ let body;
1108
+ b.m("GET").h(headers).q(query).b(body);
1109
+ return b.build();
1110
+ }, "se_ListMeshesCommand");
1111
+ var se_ListRoutesCommand = /* @__PURE__ */ __name(async (input, context) => {
1112
+ const b = (0, import_core.requestBuilder)(input, context);
1113
+ const headers = {};
1114
+ b.bp("/v20190125/meshes/{meshName}/virtualRouter/{virtualRouterName}/routes");
1115
+ b.p("meshName", () => input.meshName, "{meshName}", false);
1116
+ b.p("virtualRouterName", () => input.virtualRouterName, "{virtualRouterName}", false);
1117
+ const query = (0, import_smithy_client.map)({
1118
+ [_nT]: [, input[_nT]],
1119
+ [_l]: [() => input.limit !== void 0, () => input[_l].toString()],
1120
+ [_mO]: [, input[_mO]]
1121
+ });
1122
+ let body;
1123
+ b.m("GET").h(headers).q(query).b(body);
1124
+ return b.build();
1125
+ }, "se_ListRoutesCommand");
1126
+ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
1127
+ const b = (0, import_core.requestBuilder)(input, context);
1128
+ const headers = {};
1129
+ b.bp("/v20190125/tags");
1130
+ const query = (0, import_smithy_client.map)({
1131
+ [_rA]: [, (0, import_smithy_client.expectNonNull)(input[_rA], `resourceArn`)],
1132
+ [_nT]: [, input[_nT]],
1133
+ [_l]: [() => input.limit !== void 0, () => input[_l].toString()]
1134
+ });
1135
+ let body;
1136
+ b.m("GET").h(headers).q(query).b(body);
1137
+ return b.build();
1138
+ }, "se_ListTagsForResourceCommand");
1139
+ var se_ListVirtualGatewaysCommand = /* @__PURE__ */ __name(async (input, context) => {
1140
+ const b = (0, import_core.requestBuilder)(input, context);
1141
+ const headers = {};
1142
+ b.bp("/v20190125/meshes/{meshName}/virtualGateways");
1143
+ b.p("meshName", () => input.meshName, "{meshName}", false);
1144
+ const query = (0, import_smithy_client.map)({
1145
+ [_nT]: [, input[_nT]],
1146
+ [_l]: [() => input.limit !== void 0, () => input[_l].toString()],
1147
+ [_mO]: [, input[_mO]]
1148
+ });
1149
+ let body;
1150
+ b.m("GET").h(headers).q(query).b(body);
1151
+ return b.build();
1152
+ }, "se_ListVirtualGatewaysCommand");
1153
+ var se_ListVirtualNodesCommand = /* @__PURE__ */ __name(async (input, context) => {
1154
+ const b = (0, import_core.requestBuilder)(input, context);
1155
+ const headers = {};
1156
+ b.bp("/v20190125/meshes/{meshName}/virtualNodes");
1157
+ b.p("meshName", () => input.meshName, "{meshName}", false);
1158
+ const query = (0, import_smithy_client.map)({
1159
+ [_nT]: [, input[_nT]],
1160
+ [_l]: [() => input.limit !== void 0, () => input[_l].toString()],
1161
+ [_mO]: [, input[_mO]]
1162
+ });
1163
+ let body;
1164
+ b.m("GET").h(headers).q(query).b(body);
1165
+ return b.build();
1166
+ }, "se_ListVirtualNodesCommand");
1167
+ var se_ListVirtualRoutersCommand = /* @__PURE__ */ __name(async (input, context) => {
1168
+ const b = (0, import_core.requestBuilder)(input, context);
1169
+ const headers = {};
1170
+ b.bp("/v20190125/meshes/{meshName}/virtualRouters");
1171
+ b.p("meshName", () => input.meshName, "{meshName}", false);
1172
+ const query = (0, import_smithy_client.map)({
1173
+ [_nT]: [, input[_nT]],
1174
+ [_l]: [() => input.limit !== void 0, () => input[_l].toString()],
1175
+ [_mO]: [, input[_mO]]
1176
+ });
1177
+ let body;
1178
+ b.m("GET").h(headers).q(query).b(body);
1179
+ return b.build();
1180
+ }, "se_ListVirtualRoutersCommand");
1181
+ var se_ListVirtualServicesCommand = /* @__PURE__ */ __name(async (input, context) => {
1182
+ const b = (0, import_core.requestBuilder)(input, context);
1183
+ const headers = {};
1184
+ b.bp("/v20190125/meshes/{meshName}/virtualServices");
1185
+ b.p("meshName", () => input.meshName, "{meshName}", false);
1186
+ const query = (0, import_smithy_client.map)({
1187
+ [_nT]: [, input[_nT]],
1188
+ [_l]: [() => input.limit !== void 0, () => input[_l].toString()],
1189
+ [_mO]: [, input[_mO]]
1190
+ });
1191
+ let body;
1192
+ b.m("GET").h(headers).q(query).b(body);
1193
+ return b.build();
1194
+ }, "se_ListVirtualServicesCommand");
1195
+ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
1196
+ const b = (0, import_core.requestBuilder)(input, context);
1197
+ const headers = {
1198
+ "content-type": "application/json"
1199
+ };
1200
+ b.bp("/v20190125/tag");
1201
+ const query = (0, import_smithy_client.map)({
1202
+ [_rA]: [, (0, import_smithy_client.expectNonNull)(input[_rA], `resourceArn`)]
1203
+ });
1204
+ let body;
1205
+ body = JSON.stringify(
1206
+ (0, import_smithy_client.take)(input, {
1207
+ tags: (_) => (0, import_smithy_client._json)(_)
1208
+ })
1209
+ );
1210
+ b.m("PUT").h(headers).q(query).b(body);
1211
+ return b.build();
1212
+ }, "se_TagResourceCommand");
1213
+ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
1214
+ const b = (0, import_core.requestBuilder)(input, context);
1215
+ const headers = {
1216
+ "content-type": "application/json"
1217
+ };
1218
+ b.bp("/v20190125/untag");
1219
+ const query = (0, import_smithy_client.map)({
1220
+ [_rA]: [, (0, import_smithy_client.expectNonNull)(input[_rA], `resourceArn`)]
1221
+ });
1222
+ let body;
1223
+ body = JSON.stringify(
1224
+ (0, import_smithy_client.take)(input, {
1225
+ tagKeys: (_) => (0, import_smithy_client._json)(_)
1226
+ })
1227
+ );
1228
+ b.m("PUT").h(headers).q(query).b(body);
1229
+ return b.build();
1230
+ }, "se_UntagResourceCommand");
1231
+ var se_UpdateGatewayRouteCommand = /* @__PURE__ */ __name(async (input, context) => {
1232
+ const b = (0, import_core.requestBuilder)(input, context);
1233
+ const headers = {
1234
+ "content-type": "application/json"
1235
+ };
1236
+ b.bp("/v20190125/meshes/{meshName}/virtualGateway/{virtualGatewayName}/gatewayRoutes/{gatewayRouteName}");
1237
+ b.p("gatewayRouteName", () => input.gatewayRouteName, "{gatewayRouteName}", false);
1238
+ b.p("meshName", () => input.meshName, "{meshName}", false);
1239
+ b.p("virtualGatewayName", () => input.virtualGatewayName, "{virtualGatewayName}", false);
1240
+ const query = (0, import_smithy_client.map)({
1241
+ [_mO]: [, input[_mO]]
1242
+ });
1243
+ let body;
1244
+ body = JSON.stringify(
1245
+ (0, import_smithy_client.take)(input, {
1246
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1247
+ spec: (_) => (0, import_smithy_client._json)(_)
1248
+ })
1249
+ );
1250
+ b.m("PUT").h(headers).q(query).b(body);
1251
+ return b.build();
1252
+ }, "se_UpdateGatewayRouteCommand");
1253
+ var se_UpdateMeshCommand = /* @__PURE__ */ __name(async (input, context) => {
1254
+ const b = (0, import_core.requestBuilder)(input, context);
1255
+ const headers = {
1256
+ "content-type": "application/json"
1257
+ };
1258
+ b.bp("/v20190125/meshes/{meshName}");
1259
+ b.p("meshName", () => input.meshName, "{meshName}", false);
1260
+ let body;
1261
+ body = JSON.stringify(
1262
+ (0, import_smithy_client.take)(input, {
1263
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1264
+ spec: (_) => (0, import_smithy_client._json)(_)
1265
+ })
1266
+ );
1267
+ b.m("PUT").h(headers).b(body);
1268
+ return b.build();
1269
+ }, "se_UpdateMeshCommand");
1270
+ var se_UpdateRouteCommand = /* @__PURE__ */ __name(async (input, context) => {
1271
+ const b = (0, import_core.requestBuilder)(input, context);
1272
+ const headers = {
1273
+ "content-type": "application/json"
1274
+ };
1275
+ b.bp("/v20190125/meshes/{meshName}/virtualRouter/{virtualRouterName}/routes/{routeName}");
1276
+ b.p("routeName", () => input.routeName, "{routeName}", false);
1277
+ b.p("meshName", () => input.meshName, "{meshName}", false);
1278
+ b.p("virtualRouterName", () => input.virtualRouterName, "{virtualRouterName}", false);
1279
+ const query = (0, import_smithy_client.map)({
1280
+ [_mO]: [, input[_mO]]
1281
+ });
1282
+ let body;
1283
+ body = JSON.stringify(
1284
+ (0, import_smithy_client.take)(input, {
1285
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1286
+ spec: (_) => (0, import_smithy_client._json)(_)
1287
+ })
1288
+ );
1289
+ b.m("PUT").h(headers).q(query).b(body);
1290
+ return b.build();
1291
+ }, "se_UpdateRouteCommand");
1292
+ var se_UpdateVirtualGatewayCommand = /* @__PURE__ */ __name(async (input, context) => {
1293
+ const b = (0, import_core.requestBuilder)(input, context);
1294
+ const headers = {
1295
+ "content-type": "application/json"
1296
+ };
1297
+ b.bp("/v20190125/meshes/{meshName}/virtualGateways/{virtualGatewayName}");
1298
+ b.p("virtualGatewayName", () => input.virtualGatewayName, "{virtualGatewayName}", false);
1299
+ b.p("meshName", () => input.meshName, "{meshName}", false);
1300
+ const query = (0, import_smithy_client.map)({
1301
+ [_mO]: [, input[_mO]]
1302
+ });
1303
+ let body;
1304
+ body = JSON.stringify(
1305
+ (0, import_smithy_client.take)(input, {
1306
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1307
+ spec: (_) => (0, import_smithy_client._json)(_)
1308
+ })
1309
+ );
1310
+ b.m("PUT").h(headers).q(query).b(body);
1311
+ return b.build();
1312
+ }, "se_UpdateVirtualGatewayCommand");
1313
+ var se_UpdateVirtualNodeCommand = /* @__PURE__ */ __name(async (input, context) => {
1314
+ const b = (0, import_core.requestBuilder)(input, context);
1315
+ const headers = {
1316
+ "content-type": "application/json"
1317
+ };
1318
+ b.bp("/v20190125/meshes/{meshName}/virtualNodes/{virtualNodeName}");
1319
+ b.p("virtualNodeName", () => input.virtualNodeName, "{virtualNodeName}", false);
1320
+ b.p("meshName", () => input.meshName, "{meshName}", false);
1321
+ const query = (0, import_smithy_client.map)({
1322
+ [_mO]: [, input[_mO]]
1323
+ });
1324
+ let body;
1325
+ body = JSON.stringify(
1326
+ (0, import_smithy_client.take)(input, {
1327
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1328
+ spec: (_) => (0, import_smithy_client._json)(_)
1329
+ })
1330
+ );
1331
+ b.m("PUT").h(headers).q(query).b(body);
1332
+ return b.build();
1333
+ }, "se_UpdateVirtualNodeCommand");
1334
+ var se_UpdateVirtualRouterCommand = /* @__PURE__ */ __name(async (input, context) => {
1335
+ const b = (0, import_core.requestBuilder)(input, context);
1336
+ const headers = {
1337
+ "content-type": "application/json"
1338
+ };
1339
+ b.bp("/v20190125/meshes/{meshName}/virtualRouters/{virtualRouterName}");
1340
+ b.p("virtualRouterName", () => input.virtualRouterName, "{virtualRouterName}", false);
1341
+ b.p("meshName", () => input.meshName, "{meshName}", false);
1342
+ const query = (0, import_smithy_client.map)({
1343
+ [_mO]: [, input[_mO]]
1344
+ });
1345
+ let body;
1346
+ body = JSON.stringify(
1347
+ (0, import_smithy_client.take)(input, {
1348
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1349
+ spec: (_) => (0, import_smithy_client._json)(_)
1350
+ })
1351
+ );
1352
+ b.m("PUT").h(headers).q(query).b(body);
1353
+ return b.build();
1354
+ }, "se_UpdateVirtualRouterCommand");
1355
+ var se_UpdateVirtualServiceCommand = /* @__PURE__ */ __name(async (input, context) => {
1356
+ const b = (0, import_core.requestBuilder)(input, context);
1357
+ const headers = {
1358
+ "content-type": "application/json"
1359
+ };
1360
+ b.bp("/v20190125/meshes/{meshName}/virtualServices/{virtualServiceName}");
1361
+ b.p("virtualServiceName", () => input.virtualServiceName, "{virtualServiceName}", false);
1362
+ b.p("meshName", () => input.meshName, "{meshName}", false);
1363
+ const query = (0, import_smithy_client.map)({
1364
+ [_mO]: [, input[_mO]]
1365
+ });
1366
+ let body;
1367
+ body = JSON.stringify(
1368
+ (0, import_smithy_client.take)(input, {
1369
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1370
+ spec: (_) => (0, import_smithy_client._json)(_)
1371
+ })
1372
+ );
1373
+ b.m("PUT").h(headers).q(query).b(body);
1374
+ return b.build();
1375
+ }, "se_UpdateVirtualServiceCommand");
1376
+ var de_CreateGatewayRouteCommand = /* @__PURE__ */ __name(async (output, context) => {
1377
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1378
+ return de_CreateGatewayRouteCommandError(output, context);
1379
+ }
1380
+ const contents = (0, import_smithy_client.map)({
1381
+ $metadata: deserializeMetadata(output)
1382
+ });
1383
+ const data = (0, import_smithy_client.expectObject)(await parseBody(output.body, context));
1384
+ contents.gatewayRoute = de_GatewayRouteData(data, context);
1385
+ return contents;
1386
+ }, "de_CreateGatewayRouteCommand");
1387
+ var de_CreateGatewayRouteCommandError = /* @__PURE__ */ __name(async (output, context) => {
1388
+ const parsedOutput = {
1389
+ ...output,
1390
+ body: await parseErrorBody(output.body, context)
1391
+ };
1392
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1393
+ switch (errorCode) {
1394
+ case "BadRequestException":
1395
+ case "com.amazonaws.appmesh#BadRequestException":
1396
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1397
+ case "ConflictException":
1398
+ case "com.amazonaws.appmesh#ConflictException":
1399
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1400
+ case "ForbiddenException":
1401
+ case "com.amazonaws.appmesh#ForbiddenException":
1402
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1403
+ case "InternalServerErrorException":
1404
+ case "com.amazonaws.appmesh#InternalServerErrorException":
1405
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1406
+ case "LimitExceededException":
1407
+ case "com.amazonaws.appmesh#LimitExceededException":
1408
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
1409
+ case "NotFoundException":
1410
+ case "com.amazonaws.appmesh#NotFoundException":
1411
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1412
+ case "ServiceUnavailableException":
1413
+ case "com.amazonaws.appmesh#ServiceUnavailableException":
1414
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1415
+ case "TooManyRequestsException":
1416
+ case "com.amazonaws.appmesh#TooManyRequestsException":
1417
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1418
+ default:
1419
+ const parsedBody = parsedOutput.body;
1420
+ return throwDefaultError({
1421
+ output,
1422
+ parsedBody,
1423
+ errorCode
1424
+ });
1425
+ }
1426
+ }, "de_CreateGatewayRouteCommandError");
1427
+ var de_CreateMeshCommand = /* @__PURE__ */ __name(async (output, context) => {
1428
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1429
+ return de_CreateMeshCommandError(output, context);
1430
+ }
1431
+ const contents = (0, import_smithy_client.map)({
1432
+ $metadata: deserializeMetadata(output)
1433
+ });
1434
+ const data = (0, import_smithy_client.expectObject)(await parseBody(output.body, context));
1435
+ contents.mesh = de_MeshData(data, context);
1436
+ return contents;
1437
+ }, "de_CreateMeshCommand");
1438
+ var de_CreateMeshCommandError = /* @__PURE__ */ __name(async (output, context) => {
1439
+ const parsedOutput = {
1440
+ ...output,
1441
+ body: await parseErrorBody(output.body, context)
1442
+ };
1443
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1444
+ switch (errorCode) {
1445
+ case "BadRequestException":
1446
+ case "com.amazonaws.appmesh#BadRequestException":
1447
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1448
+ case "ConflictException":
1449
+ case "com.amazonaws.appmesh#ConflictException":
1450
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1451
+ case "ForbiddenException":
1452
+ case "com.amazonaws.appmesh#ForbiddenException":
1453
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1454
+ case "InternalServerErrorException":
1455
+ case "com.amazonaws.appmesh#InternalServerErrorException":
1456
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1457
+ case "LimitExceededException":
1458
+ case "com.amazonaws.appmesh#LimitExceededException":
1459
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
1460
+ case "NotFoundException":
1461
+ case "com.amazonaws.appmesh#NotFoundException":
1462
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1463
+ case "ServiceUnavailableException":
1464
+ case "com.amazonaws.appmesh#ServiceUnavailableException":
1465
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1466
+ case "TooManyRequestsException":
1467
+ case "com.amazonaws.appmesh#TooManyRequestsException":
1468
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1469
+ default:
1470
+ const parsedBody = parsedOutput.body;
1471
+ return throwDefaultError({
1472
+ output,
1473
+ parsedBody,
1474
+ errorCode
1475
+ });
1476
+ }
1477
+ }, "de_CreateMeshCommandError");
1478
+ var de_CreateRouteCommand = /* @__PURE__ */ __name(async (output, context) => {
1479
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1480
+ return de_CreateRouteCommandError(output, context);
1481
+ }
1482
+ const contents = (0, import_smithy_client.map)({
1483
+ $metadata: deserializeMetadata(output)
1484
+ });
1485
+ const data = (0, import_smithy_client.expectObject)(await parseBody(output.body, context));
1486
+ contents.route = de_RouteData(data, context);
1487
+ return contents;
1488
+ }, "de_CreateRouteCommand");
1489
+ var de_CreateRouteCommandError = /* @__PURE__ */ __name(async (output, context) => {
1490
+ const parsedOutput = {
1491
+ ...output,
1492
+ body: await parseErrorBody(output.body, context)
1493
+ };
1494
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1495
+ switch (errorCode) {
1496
+ case "BadRequestException":
1497
+ case "com.amazonaws.appmesh#BadRequestException":
1498
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1499
+ case "ConflictException":
1500
+ case "com.amazonaws.appmesh#ConflictException":
1501
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1502
+ case "ForbiddenException":
1503
+ case "com.amazonaws.appmesh#ForbiddenException":
1504
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1505
+ case "InternalServerErrorException":
1506
+ case "com.amazonaws.appmesh#InternalServerErrorException":
1507
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1508
+ case "LimitExceededException":
1509
+ case "com.amazonaws.appmesh#LimitExceededException":
1510
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
1511
+ case "NotFoundException":
1512
+ case "com.amazonaws.appmesh#NotFoundException":
1513
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1514
+ case "ServiceUnavailableException":
1515
+ case "com.amazonaws.appmesh#ServiceUnavailableException":
1516
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1517
+ case "TooManyRequestsException":
1518
+ case "com.amazonaws.appmesh#TooManyRequestsException":
1519
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1520
+ default:
1521
+ const parsedBody = parsedOutput.body;
1522
+ return throwDefaultError({
1523
+ output,
1524
+ parsedBody,
1525
+ errorCode
1526
+ });
1527
+ }
1528
+ }, "de_CreateRouteCommandError");
1529
+ var de_CreateVirtualGatewayCommand = /* @__PURE__ */ __name(async (output, context) => {
1530
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1531
+ return de_CreateVirtualGatewayCommandError(output, context);
1532
+ }
1533
+ const contents = (0, import_smithy_client.map)({
1534
+ $metadata: deserializeMetadata(output)
1535
+ });
1536
+ const data = (0, import_smithy_client.expectObject)(await parseBody(output.body, context));
1537
+ contents.virtualGateway = de_VirtualGatewayData(data, context);
1538
+ return contents;
1539
+ }, "de_CreateVirtualGatewayCommand");
1540
+ var de_CreateVirtualGatewayCommandError = /* @__PURE__ */ __name(async (output, context) => {
1541
+ const parsedOutput = {
1542
+ ...output,
1543
+ body: await parseErrorBody(output.body, context)
1544
+ };
1545
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1546
+ switch (errorCode) {
1547
+ case "BadRequestException":
1548
+ case "com.amazonaws.appmesh#BadRequestException":
1549
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1550
+ case "ConflictException":
1551
+ case "com.amazonaws.appmesh#ConflictException":
1552
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1553
+ case "ForbiddenException":
1554
+ case "com.amazonaws.appmesh#ForbiddenException":
1555
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1556
+ case "InternalServerErrorException":
1557
+ case "com.amazonaws.appmesh#InternalServerErrorException":
1558
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1559
+ case "LimitExceededException":
1560
+ case "com.amazonaws.appmesh#LimitExceededException":
1561
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
1562
+ case "NotFoundException":
1563
+ case "com.amazonaws.appmesh#NotFoundException":
1564
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1565
+ case "ServiceUnavailableException":
1566
+ case "com.amazonaws.appmesh#ServiceUnavailableException":
1567
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1568
+ case "TooManyRequestsException":
1569
+ case "com.amazonaws.appmesh#TooManyRequestsException":
1570
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1571
+ default:
1572
+ const parsedBody = parsedOutput.body;
1573
+ return throwDefaultError({
1574
+ output,
1575
+ parsedBody,
1576
+ errorCode
1577
+ });
1578
+ }
1579
+ }, "de_CreateVirtualGatewayCommandError");
1580
+ var de_CreateVirtualNodeCommand = /* @__PURE__ */ __name(async (output, context) => {
1581
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1582
+ return de_CreateVirtualNodeCommandError(output, context);
1583
+ }
1584
+ const contents = (0, import_smithy_client.map)({
1585
+ $metadata: deserializeMetadata(output)
1586
+ });
1587
+ const data = (0, import_smithy_client.expectObject)(await parseBody(output.body, context));
1588
+ contents.virtualNode = de_VirtualNodeData(data, context);
1589
+ return contents;
1590
+ }, "de_CreateVirtualNodeCommand");
1591
+ var de_CreateVirtualNodeCommandError = /* @__PURE__ */ __name(async (output, context) => {
1592
+ const parsedOutput = {
1593
+ ...output,
1594
+ body: await parseErrorBody(output.body, context)
1595
+ };
1596
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1597
+ switch (errorCode) {
1598
+ case "BadRequestException":
1599
+ case "com.amazonaws.appmesh#BadRequestException":
1600
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1601
+ case "ConflictException":
1602
+ case "com.amazonaws.appmesh#ConflictException":
1603
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1604
+ case "ForbiddenException":
1605
+ case "com.amazonaws.appmesh#ForbiddenException":
1606
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1607
+ case "InternalServerErrorException":
1608
+ case "com.amazonaws.appmesh#InternalServerErrorException":
1609
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1610
+ case "LimitExceededException":
1611
+ case "com.amazonaws.appmesh#LimitExceededException":
1612
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
1613
+ case "NotFoundException":
1614
+ case "com.amazonaws.appmesh#NotFoundException":
1615
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1616
+ case "ServiceUnavailableException":
1617
+ case "com.amazonaws.appmesh#ServiceUnavailableException":
1618
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1619
+ case "TooManyRequestsException":
1620
+ case "com.amazonaws.appmesh#TooManyRequestsException":
1621
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1622
+ default:
1623
+ const parsedBody = parsedOutput.body;
1624
+ return throwDefaultError({
1625
+ output,
1626
+ parsedBody,
1627
+ errorCode
1628
+ });
1629
+ }
1630
+ }, "de_CreateVirtualNodeCommandError");
1631
+ var de_CreateVirtualRouterCommand = /* @__PURE__ */ __name(async (output, context) => {
1632
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1633
+ return de_CreateVirtualRouterCommandError(output, context);
1634
+ }
1635
+ const contents = (0, import_smithy_client.map)({
1636
+ $metadata: deserializeMetadata(output)
1637
+ });
1638
+ const data = (0, import_smithy_client.expectObject)(await parseBody(output.body, context));
1639
+ contents.virtualRouter = de_VirtualRouterData(data, context);
1640
+ return contents;
1641
+ }, "de_CreateVirtualRouterCommand");
1642
+ var de_CreateVirtualRouterCommandError = /* @__PURE__ */ __name(async (output, context) => {
1643
+ const parsedOutput = {
1644
+ ...output,
1645
+ body: await parseErrorBody(output.body, context)
1646
+ };
1647
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1648
+ switch (errorCode) {
1649
+ case "BadRequestException":
1650
+ case "com.amazonaws.appmesh#BadRequestException":
1651
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1652
+ case "ConflictException":
1653
+ case "com.amazonaws.appmesh#ConflictException":
1654
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1655
+ case "ForbiddenException":
1656
+ case "com.amazonaws.appmesh#ForbiddenException":
1657
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1658
+ case "InternalServerErrorException":
1659
+ case "com.amazonaws.appmesh#InternalServerErrorException":
1660
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1661
+ case "LimitExceededException":
1662
+ case "com.amazonaws.appmesh#LimitExceededException":
1663
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
1664
+ case "NotFoundException":
1665
+ case "com.amazonaws.appmesh#NotFoundException":
1666
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1667
+ case "ServiceUnavailableException":
1668
+ case "com.amazonaws.appmesh#ServiceUnavailableException":
1669
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1670
+ case "TooManyRequestsException":
1671
+ case "com.amazonaws.appmesh#TooManyRequestsException":
1672
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1673
+ default:
1674
+ const parsedBody = parsedOutput.body;
1675
+ return throwDefaultError({
1676
+ output,
1677
+ parsedBody,
1678
+ errorCode
1679
+ });
1680
+ }
1681
+ }, "de_CreateVirtualRouterCommandError");
1682
+ var de_CreateVirtualServiceCommand = /* @__PURE__ */ __name(async (output, context) => {
1683
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1684
+ return de_CreateVirtualServiceCommandError(output, context);
1685
+ }
1686
+ const contents = (0, import_smithy_client.map)({
1687
+ $metadata: deserializeMetadata(output)
1688
+ });
1689
+ const data = (0, import_smithy_client.expectObject)(await parseBody(output.body, context));
1690
+ contents.virtualService = de_VirtualServiceData(data, context);
1691
+ return contents;
1692
+ }, "de_CreateVirtualServiceCommand");
1693
+ var de_CreateVirtualServiceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1694
+ const parsedOutput = {
1695
+ ...output,
1696
+ body: await parseErrorBody(output.body, context)
1697
+ };
1698
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1699
+ switch (errorCode) {
1700
+ case "BadRequestException":
1701
+ case "com.amazonaws.appmesh#BadRequestException":
1702
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1703
+ case "ConflictException":
1704
+ case "com.amazonaws.appmesh#ConflictException":
1705
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1706
+ case "ForbiddenException":
1707
+ case "com.amazonaws.appmesh#ForbiddenException":
1708
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1709
+ case "InternalServerErrorException":
1710
+ case "com.amazonaws.appmesh#InternalServerErrorException":
1711
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1712
+ case "LimitExceededException":
1713
+ case "com.amazonaws.appmesh#LimitExceededException":
1714
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
1715
+ case "NotFoundException":
1716
+ case "com.amazonaws.appmesh#NotFoundException":
1717
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1718
+ case "ServiceUnavailableException":
1719
+ case "com.amazonaws.appmesh#ServiceUnavailableException":
1720
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1721
+ case "TooManyRequestsException":
1722
+ case "com.amazonaws.appmesh#TooManyRequestsException":
1723
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1724
+ default:
1725
+ const parsedBody = parsedOutput.body;
1726
+ return throwDefaultError({
1727
+ output,
1728
+ parsedBody,
1729
+ errorCode
1730
+ });
1731
+ }
1732
+ }, "de_CreateVirtualServiceCommandError");
1733
+ var de_DeleteGatewayRouteCommand = /* @__PURE__ */ __name(async (output, context) => {
1734
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1735
+ return de_DeleteGatewayRouteCommandError(output, context);
1736
+ }
1737
+ const contents = (0, import_smithy_client.map)({
1738
+ $metadata: deserializeMetadata(output)
1739
+ });
1740
+ const data = (0, import_smithy_client.expectObject)(await parseBody(output.body, context));
1741
+ contents.gatewayRoute = de_GatewayRouteData(data, context);
1742
+ return contents;
1743
+ }, "de_DeleteGatewayRouteCommand");
1744
+ var de_DeleteGatewayRouteCommandError = /* @__PURE__ */ __name(async (output, context) => {
1745
+ const parsedOutput = {
1746
+ ...output,
1747
+ body: await parseErrorBody(output.body, context)
1748
+ };
1749
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1750
+ switch (errorCode) {
1751
+ case "BadRequestException":
1752
+ case "com.amazonaws.appmesh#BadRequestException":
1753
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1754
+ case "ForbiddenException":
1755
+ case "com.amazonaws.appmesh#ForbiddenException":
1756
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1757
+ case "InternalServerErrorException":
1758
+ case "com.amazonaws.appmesh#InternalServerErrorException":
1759
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1760
+ case "NotFoundException":
1761
+ case "com.amazonaws.appmesh#NotFoundException":
1762
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1763
+ case "ResourceInUseException":
1764
+ case "com.amazonaws.appmesh#ResourceInUseException":
1765
+ throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1766
+ case "ServiceUnavailableException":
1767
+ case "com.amazonaws.appmesh#ServiceUnavailableException":
1768
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1769
+ case "TooManyRequestsException":
1770
+ case "com.amazonaws.appmesh#TooManyRequestsException":
1771
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1772
+ default:
1773
+ const parsedBody = parsedOutput.body;
1774
+ return throwDefaultError({
1775
+ output,
1776
+ parsedBody,
1777
+ errorCode
1778
+ });
1779
+ }
1780
+ }, "de_DeleteGatewayRouteCommandError");
1781
+ var de_DeleteMeshCommand = /* @__PURE__ */ __name(async (output, context) => {
1782
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1783
+ return de_DeleteMeshCommandError(output, context);
1784
+ }
1785
+ const contents = (0, import_smithy_client.map)({
1786
+ $metadata: deserializeMetadata(output)
1787
+ });
1788
+ const data = (0, import_smithy_client.expectObject)(await parseBody(output.body, context));
1789
+ contents.mesh = de_MeshData(data, context);
1790
+ return contents;
1791
+ }, "de_DeleteMeshCommand");
1792
+ var de_DeleteMeshCommandError = /* @__PURE__ */ __name(async (output, context) => {
1793
+ const parsedOutput = {
1794
+ ...output,
1795
+ body: await parseErrorBody(output.body, context)
1796
+ };
1797
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1798
+ switch (errorCode) {
1799
+ case "BadRequestException":
1800
+ case "com.amazonaws.appmesh#BadRequestException":
1801
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1802
+ case "ForbiddenException":
1803
+ case "com.amazonaws.appmesh#ForbiddenException":
1804
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1805
+ case "InternalServerErrorException":
1806
+ case "com.amazonaws.appmesh#InternalServerErrorException":
1807
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1808
+ case "NotFoundException":
1809
+ case "com.amazonaws.appmesh#NotFoundException":
1810
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1811
+ case "ResourceInUseException":
1812
+ case "com.amazonaws.appmesh#ResourceInUseException":
1813
+ throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1814
+ case "ServiceUnavailableException":
1815
+ case "com.amazonaws.appmesh#ServiceUnavailableException":
1816
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1817
+ case "TooManyRequestsException":
1818
+ case "com.amazonaws.appmesh#TooManyRequestsException":
1819
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1820
+ default:
1821
+ const parsedBody = parsedOutput.body;
1822
+ return throwDefaultError({
1823
+ output,
1824
+ parsedBody,
1825
+ errorCode
1826
+ });
1827
+ }
1828
+ }, "de_DeleteMeshCommandError");
1829
+ var de_DeleteRouteCommand = /* @__PURE__ */ __name(async (output, context) => {
1830
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1831
+ return de_DeleteRouteCommandError(output, context);
1832
+ }
1833
+ const contents = (0, import_smithy_client.map)({
1834
+ $metadata: deserializeMetadata(output)
1835
+ });
1836
+ const data = (0, import_smithy_client.expectObject)(await parseBody(output.body, context));
1837
+ contents.route = de_RouteData(data, context);
1838
+ return contents;
1839
+ }, "de_DeleteRouteCommand");
1840
+ var de_DeleteRouteCommandError = /* @__PURE__ */ __name(async (output, context) => {
1841
+ const parsedOutput = {
1842
+ ...output,
1843
+ body: await parseErrorBody(output.body, context)
1844
+ };
1845
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1846
+ switch (errorCode) {
1847
+ case "BadRequestException":
1848
+ case "com.amazonaws.appmesh#BadRequestException":
1849
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1850
+ case "ForbiddenException":
1851
+ case "com.amazonaws.appmesh#ForbiddenException":
1852
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1853
+ case "InternalServerErrorException":
1854
+ case "com.amazonaws.appmesh#InternalServerErrorException":
1855
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1856
+ case "NotFoundException":
1857
+ case "com.amazonaws.appmesh#NotFoundException":
1858
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1859
+ case "ResourceInUseException":
1860
+ case "com.amazonaws.appmesh#ResourceInUseException":
1861
+ throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1862
+ case "ServiceUnavailableException":
1863
+ case "com.amazonaws.appmesh#ServiceUnavailableException":
1864
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1865
+ case "TooManyRequestsException":
1866
+ case "com.amazonaws.appmesh#TooManyRequestsException":
1867
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1868
+ default:
1869
+ const parsedBody = parsedOutput.body;
1870
+ return throwDefaultError({
1871
+ output,
1872
+ parsedBody,
1873
+ errorCode
1874
+ });
1875
+ }
1876
+ }, "de_DeleteRouteCommandError");
1877
+ var de_DeleteVirtualGatewayCommand = /* @__PURE__ */ __name(async (output, context) => {
1878
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1879
+ return de_DeleteVirtualGatewayCommandError(output, context);
1880
+ }
1881
+ const contents = (0, import_smithy_client.map)({
1882
+ $metadata: deserializeMetadata(output)
1883
+ });
1884
+ const data = (0, import_smithy_client.expectObject)(await parseBody(output.body, context));
1885
+ contents.virtualGateway = de_VirtualGatewayData(data, context);
1886
+ return contents;
1887
+ }, "de_DeleteVirtualGatewayCommand");
1888
+ var de_DeleteVirtualGatewayCommandError = /* @__PURE__ */ __name(async (output, context) => {
1889
+ const parsedOutput = {
1890
+ ...output,
1891
+ body: await parseErrorBody(output.body, context)
1892
+ };
1893
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1894
+ switch (errorCode) {
1895
+ case "BadRequestException":
1896
+ case "com.amazonaws.appmesh#BadRequestException":
1897
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1898
+ case "ForbiddenException":
1899
+ case "com.amazonaws.appmesh#ForbiddenException":
1900
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1901
+ case "InternalServerErrorException":
1902
+ case "com.amazonaws.appmesh#InternalServerErrorException":
1903
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1904
+ case "NotFoundException":
1905
+ case "com.amazonaws.appmesh#NotFoundException":
1906
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1907
+ case "ResourceInUseException":
1908
+ case "com.amazonaws.appmesh#ResourceInUseException":
1909
+ throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1910
+ case "ServiceUnavailableException":
1911
+ case "com.amazonaws.appmesh#ServiceUnavailableException":
1912
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1913
+ case "TooManyRequestsException":
1914
+ case "com.amazonaws.appmesh#TooManyRequestsException":
1915
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1916
+ default:
1917
+ const parsedBody = parsedOutput.body;
1918
+ return throwDefaultError({
1919
+ output,
1920
+ parsedBody,
1921
+ errorCode
1922
+ });
1923
+ }
1924
+ }, "de_DeleteVirtualGatewayCommandError");
1925
+ var de_DeleteVirtualNodeCommand = /* @__PURE__ */ __name(async (output, context) => {
1926
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1927
+ return de_DeleteVirtualNodeCommandError(output, context);
1928
+ }
1929
+ const contents = (0, import_smithy_client.map)({
1930
+ $metadata: deserializeMetadata(output)
1931
+ });
1932
+ const data = (0, import_smithy_client.expectObject)(await parseBody(output.body, context));
1933
+ contents.virtualNode = de_VirtualNodeData(data, context);
1934
+ return contents;
1935
+ }, "de_DeleteVirtualNodeCommand");
1936
+ var de_DeleteVirtualNodeCommandError = /* @__PURE__ */ __name(async (output, context) => {
1937
+ const parsedOutput = {
1938
+ ...output,
1939
+ body: await parseErrorBody(output.body, context)
1940
+ };
1941
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1942
+ switch (errorCode) {
1943
+ case "BadRequestException":
1944
+ case "com.amazonaws.appmesh#BadRequestException":
1945
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1946
+ case "ForbiddenException":
1947
+ case "com.amazonaws.appmesh#ForbiddenException":
1948
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1949
+ case "InternalServerErrorException":
1950
+ case "com.amazonaws.appmesh#InternalServerErrorException":
1951
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1952
+ case "NotFoundException":
1953
+ case "com.amazonaws.appmesh#NotFoundException":
1954
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1955
+ case "ResourceInUseException":
1956
+ case "com.amazonaws.appmesh#ResourceInUseException":
1957
+ throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1958
+ case "ServiceUnavailableException":
1959
+ case "com.amazonaws.appmesh#ServiceUnavailableException":
1960
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1961
+ case "TooManyRequestsException":
1962
+ case "com.amazonaws.appmesh#TooManyRequestsException":
1963
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1964
+ default:
1965
+ const parsedBody = parsedOutput.body;
1966
+ return throwDefaultError({
1967
+ output,
1968
+ parsedBody,
1969
+ errorCode
1970
+ });
1971
+ }
1972
+ }, "de_DeleteVirtualNodeCommandError");
1973
+ var de_DeleteVirtualRouterCommand = /* @__PURE__ */ __name(async (output, context) => {
1974
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1975
+ return de_DeleteVirtualRouterCommandError(output, context);
1976
+ }
1977
+ const contents = (0, import_smithy_client.map)({
1978
+ $metadata: deserializeMetadata(output)
1979
+ });
1980
+ const data = (0, import_smithy_client.expectObject)(await parseBody(output.body, context));
1981
+ contents.virtualRouter = de_VirtualRouterData(data, context);
1982
+ return contents;
1983
+ }, "de_DeleteVirtualRouterCommand");
1984
+ var de_DeleteVirtualRouterCommandError = /* @__PURE__ */ __name(async (output, context) => {
1985
+ const parsedOutput = {
1986
+ ...output,
1987
+ body: await parseErrorBody(output.body, context)
1988
+ };
1989
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1990
+ switch (errorCode) {
1991
+ case "BadRequestException":
1992
+ case "com.amazonaws.appmesh#BadRequestException":
1993
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1994
+ case "ForbiddenException":
1995
+ case "com.amazonaws.appmesh#ForbiddenException":
1996
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1997
+ case "InternalServerErrorException":
1998
+ case "com.amazonaws.appmesh#InternalServerErrorException":
1999
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2000
+ case "NotFoundException":
2001
+ case "com.amazonaws.appmesh#NotFoundException":
2002
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2003
+ case "ResourceInUseException":
2004
+ case "com.amazonaws.appmesh#ResourceInUseException":
2005
+ throw await de_ResourceInUseExceptionRes(parsedOutput, context);
2006
+ case "ServiceUnavailableException":
2007
+ case "com.amazonaws.appmesh#ServiceUnavailableException":
2008
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2009
+ case "TooManyRequestsException":
2010
+ case "com.amazonaws.appmesh#TooManyRequestsException":
2011
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2012
+ default:
2013
+ const parsedBody = parsedOutput.body;
2014
+ return throwDefaultError({
2015
+ output,
2016
+ parsedBody,
2017
+ errorCode
2018
+ });
2019
+ }
2020
+ }, "de_DeleteVirtualRouterCommandError");
2021
+ var de_DeleteVirtualServiceCommand = /* @__PURE__ */ __name(async (output, context) => {
2022
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2023
+ return de_DeleteVirtualServiceCommandError(output, context);
2024
+ }
2025
+ const contents = (0, import_smithy_client.map)({
2026
+ $metadata: deserializeMetadata(output)
2027
+ });
2028
+ const data = (0, import_smithy_client.expectObject)(await parseBody(output.body, context));
2029
+ contents.virtualService = de_VirtualServiceData(data, context);
2030
+ return contents;
2031
+ }, "de_DeleteVirtualServiceCommand");
2032
+ var de_DeleteVirtualServiceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2033
+ const parsedOutput = {
2034
+ ...output,
2035
+ body: await parseErrorBody(output.body, context)
2036
+ };
2037
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2038
+ switch (errorCode) {
2039
+ case "BadRequestException":
2040
+ case "com.amazonaws.appmesh#BadRequestException":
2041
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2042
+ case "ForbiddenException":
2043
+ case "com.amazonaws.appmesh#ForbiddenException":
2044
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
2045
+ case "InternalServerErrorException":
2046
+ case "com.amazonaws.appmesh#InternalServerErrorException":
2047
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2048
+ case "NotFoundException":
2049
+ case "com.amazonaws.appmesh#NotFoundException":
2050
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2051
+ case "ResourceInUseException":
2052
+ case "com.amazonaws.appmesh#ResourceInUseException":
2053
+ throw await de_ResourceInUseExceptionRes(parsedOutput, context);
2054
+ case "ServiceUnavailableException":
2055
+ case "com.amazonaws.appmesh#ServiceUnavailableException":
2056
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2057
+ case "TooManyRequestsException":
2058
+ case "com.amazonaws.appmesh#TooManyRequestsException":
2059
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2060
+ default:
2061
+ const parsedBody = parsedOutput.body;
2062
+ return throwDefaultError({
2063
+ output,
2064
+ parsedBody,
2065
+ errorCode
2066
+ });
2067
+ }
2068
+ }, "de_DeleteVirtualServiceCommandError");
2069
+ var de_DescribeGatewayRouteCommand = /* @__PURE__ */ __name(async (output, context) => {
2070
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2071
+ return de_DescribeGatewayRouteCommandError(output, context);
2072
+ }
2073
+ const contents = (0, import_smithy_client.map)({
2074
+ $metadata: deserializeMetadata(output)
2075
+ });
2076
+ const data = (0, import_smithy_client.expectObject)(await parseBody(output.body, context));
2077
+ contents.gatewayRoute = de_GatewayRouteData(data, context);
2078
+ return contents;
2079
+ }, "de_DescribeGatewayRouteCommand");
2080
+ var de_DescribeGatewayRouteCommandError = /* @__PURE__ */ __name(async (output, context) => {
2081
+ const parsedOutput = {
2082
+ ...output,
2083
+ body: await parseErrorBody(output.body, context)
2084
+ };
2085
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2086
+ switch (errorCode) {
2087
+ case "BadRequestException":
2088
+ case "com.amazonaws.appmesh#BadRequestException":
2089
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2090
+ case "ForbiddenException":
2091
+ case "com.amazonaws.appmesh#ForbiddenException":
2092
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
2093
+ case "InternalServerErrorException":
2094
+ case "com.amazonaws.appmesh#InternalServerErrorException":
2095
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2096
+ case "NotFoundException":
2097
+ case "com.amazonaws.appmesh#NotFoundException":
2098
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2099
+ case "ServiceUnavailableException":
2100
+ case "com.amazonaws.appmesh#ServiceUnavailableException":
2101
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2102
+ case "TooManyRequestsException":
2103
+ case "com.amazonaws.appmesh#TooManyRequestsException":
2104
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2105
+ default:
2106
+ const parsedBody = parsedOutput.body;
2107
+ return throwDefaultError({
2108
+ output,
2109
+ parsedBody,
2110
+ errorCode
2111
+ });
2112
+ }
2113
+ }, "de_DescribeGatewayRouteCommandError");
2114
+ var de_DescribeMeshCommand = /* @__PURE__ */ __name(async (output, context) => {
2115
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2116
+ return de_DescribeMeshCommandError(output, context);
2117
+ }
2118
+ const contents = (0, import_smithy_client.map)({
2119
+ $metadata: deserializeMetadata(output)
2120
+ });
2121
+ const data = (0, import_smithy_client.expectObject)(await parseBody(output.body, context));
2122
+ contents.mesh = de_MeshData(data, context);
2123
+ return contents;
2124
+ }, "de_DescribeMeshCommand");
2125
+ var de_DescribeMeshCommandError = /* @__PURE__ */ __name(async (output, context) => {
2126
+ const parsedOutput = {
2127
+ ...output,
2128
+ body: await parseErrorBody(output.body, context)
2129
+ };
2130
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2131
+ switch (errorCode) {
2132
+ case "BadRequestException":
2133
+ case "com.amazonaws.appmesh#BadRequestException":
2134
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2135
+ case "ForbiddenException":
2136
+ case "com.amazonaws.appmesh#ForbiddenException":
2137
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
2138
+ case "InternalServerErrorException":
2139
+ case "com.amazonaws.appmesh#InternalServerErrorException":
2140
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2141
+ case "NotFoundException":
2142
+ case "com.amazonaws.appmesh#NotFoundException":
2143
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2144
+ case "ServiceUnavailableException":
2145
+ case "com.amazonaws.appmesh#ServiceUnavailableException":
2146
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2147
+ case "TooManyRequestsException":
2148
+ case "com.amazonaws.appmesh#TooManyRequestsException":
2149
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2150
+ default:
2151
+ const parsedBody = parsedOutput.body;
2152
+ return throwDefaultError({
2153
+ output,
2154
+ parsedBody,
2155
+ errorCode
2156
+ });
2157
+ }
2158
+ }, "de_DescribeMeshCommandError");
2159
+ var de_DescribeRouteCommand = /* @__PURE__ */ __name(async (output, context) => {
2160
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2161
+ return de_DescribeRouteCommandError(output, context);
2162
+ }
2163
+ const contents = (0, import_smithy_client.map)({
2164
+ $metadata: deserializeMetadata(output)
2165
+ });
2166
+ const data = (0, import_smithy_client.expectObject)(await parseBody(output.body, context));
2167
+ contents.route = de_RouteData(data, context);
2168
+ return contents;
2169
+ }, "de_DescribeRouteCommand");
2170
+ var de_DescribeRouteCommandError = /* @__PURE__ */ __name(async (output, context) => {
2171
+ const parsedOutput = {
2172
+ ...output,
2173
+ body: await parseErrorBody(output.body, context)
2174
+ };
2175
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2176
+ switch (errorCode) {
2177
+ case "BadRequestException":
2178
+ case "com.amazonaws.appmesh#BadRequestException":
2179
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2180
+ case "ForbiddenException":
2181
+ case "com.amazonaws.appmesh#ForbiddenException":
2182
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
2183
+ case "InternalServerErrorException":
2184
+ case "com.amazonaws.appmesh#InternalServerErrorException":
2185
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2186
+ case "NotFoundException":
2187
+ case "com.amazonaws.appmesh#NotFoundException":
2188
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2189
+ case "ServiceUnavailableException":
2190
+ case "com.amazonaws.appmesh#ServiceUnavailableException":
2191
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2192
+ case "TooManyRequestsException":
2193
+ case "com.amazonaws.appmesh#TooManyRequestsException":
2194
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2195
+ default:
2196
+ const parsedBody = parsedOutput.body;
2197
+ return throwDefaultError({
2198
+ output,
2199
+ parsedBody,
2200
+ errorCode
2201
+ });
2202
+ }
2203
+ }, "de_DescribeRouteCommandError");
2204
+ var de_DescribeVirtualGatewayCommand = /* @__PURE__ */ __name(async (output, context) => {
2205
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2206
+ return de_DescribeVirtualGatewayCommandError(output, context);
2207
+ }
2208
+ const contents = (0, import_smithy_client.map)({
2209
+ $metadata: deserializeMetadata(output)
2210
+ });
2211
+ const data = (0, import_smithy_client.expectObject)(await parseBody(output.body, context));
2212
+ contents.virtualGateway = de_VirtualGatewayData(data, context);
2213
+ return contents;
2214
+ }, "de_DescribeVirtualGatewayCommand");
2215
+ var de_DescribeVirtualGatewayCommandError = /* @__PURE__ */ __name(async (output, context) => {
2216
+ const parsedOutput = {
2217
+ ...output,
2218
+ body: await parseErrorBody(output.body, context)
2219
+ };
2220
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2221
+ switch (errorCode) {
2222
+ case "BadRequestException":
2223
+ case "com.amazonaws.appmesh#BadRequestException":
2224
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2225
+ case "ForbiddenException":
2226
+ case "com.amazonaws.appmesh#ForbiddenException":
2227
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
2228
+ case "InternalServerErrorException":
2229
+ case "com.amazonaws.appmesh#InternalServerErrorException":
2230
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2231
+ case "NotFoundException":
2232
+ case "com.amazonaws.appmesh#NotFoundException":
2233
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2234
+ case "ServiceUnavailableException":
2235
+ case "com.amazonaws.appmesh#ServiceUnavailableException":
2236
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2237
+ case "TooManyRequestsException":
2238
+ case "com.amazonaws.appmesh#TooManyRequestsException":
2239
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2240
+ default:
2241
+ const parsedBody = parsedOutput.body;
2242
+ return throwDefaultError({
2243
+ output,
2244
+ parsedBody,
2245
+ errorCode
2246
+ });
2247
+ }
2248
+ }, "de_DescribeVirtualGatewayCommandError");
2249
+ var de_DescribeVirtualNodeCommand = /* @__PURE__ */ __name(async (output, context) => {
2250
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2251
+ return de_DescribeVirtualNodeCommandError(output, context);
2252
+ }
2253
+ const contents = (0, import_smithy_client.map)({
2254
+ $metadata: deserializeMetadata(output)
2255
+ });
2256
+ const data = (0, import_smithy_client.expectObject)(await parseBody(output.body, context));
2257
+ contents.virtualNode = de_VirtualNodeData(data, context);
2258
+ return contents;
2259
+ }, "de_DescribeVirtualNodeCommand");
2260
+ var de_DescribeVirtualNodeCommandError = /* @__PURE__ */ __name(async (output, context) => {
2261
+ const parsedOutput = {
2262
+ ...output,
2263
+ body: await parseErrorBody(output.body, context)
2264
+ };
2265
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2266
+ switch (errorCode) {
2267
+ case "BadRequestException":
2268
+ case "com.amazonaws.appmesh#BadRequestException":
2269
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2270
+ case "ForbiddenException":
2271
+ case "com.amazonaws.appmesh#ForbiddenException":
2272
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
2273
+ case "InternalServerErrorException":
2274
+ case "com.amazonaws.appmesh#InternalServerErrorException":
2275
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2276
+ case "NotFoundException":
2277
+ case "com.amazonaws.appmesh#NotFoundException":
2278
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2279
+ case "ServiceUnavailableException":
2280
+ case "com.amazonaws.appmesh#ServiceUnavailableException":
2281
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2282
+ case "TooManyRequestsException":
2283
+ case "com.amazonaws.appmesh#TooManyRequestsException":
2284
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2285
+ default:
2286
+ const parsedBody = parsedOutput.body;
2287
+ return throwDefaultError({
2288
+ output,
2289
+ parsedBody,
2290
+ errorCode
2291
+ });
2292
+ }
2293
+ }, "de_DescribeVirtualNodeCommandError");
2294
+ var de_DescribeVirtualRouterCommand = /* @__PURE__ */ __name(async (output, context) => {
2295
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2296
+ return de_DescribeVirtualRouterCommandError(output, context);
2297
+ }
2298
+ const contents = (0, import_smithy_client.map)({
2299
+ $metadata: deserializeMetadata(output)
2300
+ });
2301
+ const data = (0, import_smithy_client.expectObject)(await parseBody(output.body, context));
2302
+ contents.virtualRouter = de_VirtualRouterData(data, context);
2303
+ return contents;
2304
+ }, "de_DescribeVirtualRouterCommand");
2305
+ var de_DescribeVirtualRouterCommandError = /* @__PURE__ */ __name(async (output, context) => {
2306
+ const parsedOutput = {
2307
+ ...output,
2308
+ body: await parseErrorBody(output.body, context)
2309
+ };
2310
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2311
+ switch (errorCode) {
2312
+ case "BadRequestException":
2313
+ case "com.amazonaws.appmesh#BadRequestException":
2314
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2315
+ case "ForbiddenException":
2316
+ case "com.amazonaws.appmesh#ForbiddenException":
2317
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
2318
+ case "InternalServerErrorException":
2319
+ case "com.amazonaws.appmesh#InternalServerErrorException":
2320
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2321
+ case "NotFoundException":
2322
+ case "com.amazonaws.appmesh#NotFoundException":
2323
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2324
+ case "ServiceUnavailableException":
2325
+ case "com.amazonaws.appmesh#ServiceUnavailableException":
2326
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2327
+ case "TooManyRequestsException":
2328
+ case "com.amazonaws.appmesh#TooManyRequestsException":
2329
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2330
+ default:
2331
+ const parsedBody = parsedOutput.body;
2332
+ return throwDefaultError({
2333
+ output,
2334
+ parsedBody,
2335
+ errorCode
2336
+ });
2337
+ }
2338
+ }, "de_DescribeVirtualRouterCommandError");
2339
+ var de_DescribeVirtualServiceCommand = /* @__PURE__ */ __name(async (output, context) => {
2340
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2341
+ return de_DescribeVirtualServiceCommandError(output, context);
2342
+ }
2343
+ const contents = (0, import_smithy_client.map)({
2344
+ $metadata: deserializeMetadata(output)
2345
+ });
2346
+ const data = (0, import_smithy_client.expectObject)(await parseBody(output.body, context));
2347
+ contents.virtualService = de_VirtualServiceData(data, context);
2348
+ return contents;
2349
+ }, "de_DescribeVirtualServiceCommand");
2350
+ var de_DescribeVirtualServiceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2351
+ const parsedOutput = {
2352
+ ...output,
2353
+ body: await parseErrorBody(output.body, context)
2354
+ };
2355
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2356
+ switch (errorCode) {
2357
+ case "BadRequestException":
2358
+ case "com.amazonaws.appmesh#BadRequestException":
2359
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2360
+ case "ForbiddenException":
2361
+ case "com.amazonaws.appmesh#ForbiddenException":
2362
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
2363
+ case "InternalServerErrorException":
2364
+ case "com.amazonaws.appmesh#InternalServerErrorException":
2365
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2366
+ case "NotFoundException":
2367
+ case "com.amazonaws.appmesh#NotFoundException":
2368
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2369
+ case "ServiceUnavailableException":
2370
+ case "com.amazonaws.appmesh#ServiceUnavailableException":
2371
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2372
+ case "TooManyRequestsException":
2373
+ case "com.amazonaws.appmesh#TooManyRequestsException":
2374
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2375
+ default:
2376
+ const parsedBody = parsedOutput.body;
2377
+ return throwDefaultError({
2378
+ output,
2379
+ parsedBody,
2380
+ errorCode
2381
+ });
2382
+ }
2383
+ }, "de_DescribeVirtualServiceCommandError");
2384
+ var de_ListGatewayRoutesCommand = /* @__PURE__ */ __name(async (output, context) => {
2385
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2386
+ return de_ListGatewayRoutesCommandError(output, context);
2387
+ }
2388
+ const contents = (0, import_smithy_client.map)({
2389
+ $metadata: deserializeMetadata(output)
2390
+ });
2391
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2392
+ const doc = (0, import_smithy_client.take)(data, {
2393
+ gatewayRoutes: (_) => de_GatewayRouteList(_, context),
2394
+ nextToken: import_smithy_client.expectString
2395
+ });
2396
+ Object.assign(contents, doc);
2397
+ return contents;
2398
+ }, "de_ListGatewayRoutesCommand");
2399
+ var de_ListGatewayRoutesCommandError = /* @__PURE__ */ __name(async (output, context) => {
2400
+ const parsedOutput = {
2401
+ ...output,
2402
+ body: await parseErrorBody(output.body, context)
2403
+ };
2404
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2405
+ switch (errorCode) {
2406
+ case "BadRequestException":
2407
+ case "com.amazonaws.appmesh#BadRequestException":
2408
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2409
+ case "ForbiddenException":
2410
+ case "com.amazonaws.appmesh#ForbiddenException":
2411
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
2412
+ case "InternalServerErrorException":
2413
+ case "com.amazonaws.appmesh#InternalServerErrorException":
2414
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2415
+ case "NotFoundException":
2416
+ case "com.amazonaws.appmesh#NotFoundException":
2417
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2418
+ case "ServiceUnavailableException":
2419
+ case "com.amazonaws.appmesh#ServiceUnavailableException":
2420
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2421
+ case "TooManyRequestsException":
2422
+ case "com.amazonaws.appmesh#TooManyRequestsException":
2423
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2424
+ default:
2425
+ const parsedBody = parsedOutput.body;
2426
+ return throwDefaultError({
2427
+ output,
2428
+ parsedBody,
2429
+ errorCode
2430
+ });
2431
+ }
2432
+ }, "de_ListGatewayRoutesCommandError");
2433
+ var de_ListMeshesCommand = /* @__PURE__ */ __name(async (output, context) => {
2434
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2435
+ return de_ListMeshesCommandError(output, context);
2436
+ }
2437
+ const contents = (0, import_smithy_client.map)({
2438
+ $metadata: deserializeMetadata(output)
2439
+ });
2440
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2441
+ const doc = (0, import_smithy_client.take)(data, {
2442
+ meshes: (_) => de_MeshList(_, context),
2443
+ nextToken: import_smithy_client.expectString
2444
+ });
2445
+ Object.assign(contents, doc);
2446
+ return contents;
2447
+ }, "de_ListMeshesCommand");
2448
+ var de_ListMeshesCommandError = /* @__PURE__ */ __name(async (output, context) => {
2449
+ const parsedOutput = {
2450
+ ...output,
2451
+ body: await parseErrorBody(output.body, context)
2452
+ };
2453
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2454
+ switch (errorCode) {
2455
+ case "BadRequestException":
2456
+ case "com.amazonaws.appmesh#BadRequestException":
2457
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2458
+ case "ForbiddenException":
2459
+ case "com.amazonaws.appmesh#ForbiddenException":
2460
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
2461
+ case "InternalServerErrorException":
2462
+ case "com.amazonaws.appmesh#InternalServerErrorException":
2463
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2464
+ case "NotFoundException":
2465
+ case "com.amazonaws.appmesh#NotFoundException":
2466
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2467
+ case "ServiceUnavailableException":
2468
+ case "com.amazonaws.appmesh#ServiceUnavailableException":
2469
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2470
+ case "TooManyRequestsException":
2471
+ case "com.amazonaws.appmesh#TooManyRequestsException":
2472
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2473
+ default:
2474
+ const parsedBody = parsedOutput.body;
2475
+ return throwDefaultError({
2476
+ output,
2477
+ parsedBody,
2478
+ errorCode
2479
+ });
2480
+ }
2481
+ }, "de_ListMeshesCommandError");
2482
+ var de_ListRoutesCommand = /* @__PURE__ */ __name(async (output, context) => {
2483
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2484
+ return de_ListRoutesCommandError(output, context);
2485
+ }
2486
+ const contents = (0, import_smithy_client.map)({
2487
+ $metadata: deserializeMetadata(output)
2488
+ });
2489
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2490
+ const doc = (0, import_smithy_client.take)(data, {
2491
+ nextToken: import_smithy_client.expectString,
2492
+ routes: (_) => de_RouteList(_, context)
2493
+ });
2494
+ Object.assign(contents, doc);
2495
+ return contents;
2496
+ }, "de_ListRoutesCommand");
2497
+ var de_ListRoutesCommandError = /* @__PURE__ */ __name(async (output, context) => {
2498
+ const parsedOutput = {
2499
+ ...output,
2500
+ body: await parseErrorBody(output.body, context)
2501
+ };
2502
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2503
+ switch (errorCode) {
2504
+ case "BadRequestException":
2505
+ case "com.amazonaws.appmesh#BadRequestException":
2506
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2507
+ case "ForbiddenException":
2508
+ case "com.amazonaws.appmesh#ForbiddenException":
2509
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
2510
+ case "InternalServerErrorException":
2511
+ case "com.amazonaws.appmesh#InternalServerErrorException":
2512
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2513
+ case "NotFoundException":
2514
+ case "com.amazonaws.appmesh#NotFoundException":
2515
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2516
+ case "ServiceUnavailableException":
2517
+ case "com.amazonaws.appmesh#ServiceUnavailableException":
2518
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2519
+ case "TooManyRequestsException":
2520
+ case "com.amazonaws.appmesh#TooManyRequestsException":
2521
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2522
+ default:
2523
+ const parsedBody = parsedOutput.body;
2524
+ return throwDefaultError({
2525
+ output,
2526
+ parsedBody,
2527
+ errorCode
2528
+ });
2529
+ }
2530
+ }, "de_ListRoutesCommandError");
2531
+ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2532
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2533
+ return de_ListTagsForResourceCommandError(output, context);
2534
+ }
2535
+ const contents = (0, import_smithy_client.map)({
2536
+ $metadata: deserializeMetadata(output)
2537
+ });
2538
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2539
+ const doc = (0, import_smithy_client.take)(data, {
2540
+ nextToken: import_smithy_client.expectString,
2541
+ tags: import_smithy_client._json
2542
+ });
2543
+ Object.assign(contents, doc);
2544
+ return contents;
2545
+ }, "de_ListTagsForResourceCommand");
2546
+ var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2547
+ const parsedOutput = {
2548
+ ...output,
2549
+ body: await parseErrorBody(output.body, context)
2550
+ };
2551
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2552
+ switch (errorCode) {
2553
+ case "BadRequestException":
2554
+ case "com.amazonaws.appmesh#BadRequestException":
2555
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2556
+ case "ForbiddenException":
2557
+ case "com.amazonaws.appmesh#ForbiddenException":
2558
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
2559
+ case "InternalServerErrorException":
2560
+ case "com.amazonaws.appmesh#InternalServerErrorException":
2561
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2562
+ case "NotFoundException":
2563
+ case "com.amazonaws.appmesh#NotFoundException":
2564
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2565
+ case "ServiceUnavailableException":
2566
+ case "com.amazonaws.appmesh#ServiceUnavailableException":
2567
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2568
+ case "TooManyRequestsException":
2569
+ case "com.amazonaws.appmesh#TooManyRequestsException":
2570
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2571
+ default:
2572
+ const parsedBody = parsedOutput.body;
2573
+ return throwDefaultError({
2574
+ output,
2575
+ parsedBody,
2576
+ errorCode
2577
+ });
2578
+ }
2579
+ }, "de_ListTagsForResourceCommandError");
2580
+ var de_ListVirtualGatewaysCommand = /* @__PURE__ */ __name(async (output, context) => {
2581
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2582
+ return de_ListVirtualGatewaysCommandError(output, context);
2583
+ }
2584
+ const contents = (0, import_smithy_client.map)({
2585
+ $metadata: deserializeMetadata(output)
2586
+ });
2587
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2588
+ const doc = (0, import_smithy_client.take)(data, {
2589
+ nextToken: import_smithy_client.expectString,
2590
+ virtualGateways: (_) => de_VirtualGatewayList(_, context)
2591
+ });
2592
+ Object.assign(contents, doc);
2593
+ return contents;
2594
+ }, "de_ListVirtualGatewaysCommand");
2595
+ var de_ListVirtualGatewaysCommandError = /* @__PURE__ */ __name(async (output, context) => {
2596
+ const parsedOutput = {
2597
+ ...output,
2598
+ body: await parseErrorBody(output.body, context)
2599
+ };
2600
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2601
+ switch (errorCode) {
2602
+ case "BadRequestException":
2603
+ case "com.amazonaws.appmesh#BadRequestException":
2604
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2605
+ case "ForbiddenException":
2606
+ case "com.amazonaws.appmesh#ForbiddenException":
2607
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
2608
+ case "InternalServerErrorException":
2609
+ case "com.amazonaws.appmesh#InternalServerErrorException":
2610
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2611
+ case "NotFoundException":
2612
+ case "com.amazonaws.appmesh#NotFoundException":
2613
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2614
+ case "ServiceUnavailableException":
2615
+ case "com.amazonaws.appmesh#ServiceUnavailableException":
2616
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2617
+ case "TooManyRequestsException":
2618
+ case "com.amazonaws.appmesh#TooManyRequestsException":
2619
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2620
+ default:
2621
+ const parsedBody = parsedOutput.body;
2622
+ return throwDefaultError({
2623
+ output,
2624
+ parsedBody,
2625
+ errorCode
2626
+ });
2627
+ }
2628
+ }, "de_ListVirtualGatewaysCommandError");
2629
+ var de_ListVirtualNodesCommand = /* @__PURE__ */ __name(async (output, context) => {
2630
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2631
+ return de_ListVirtualNodesCommandError(output, context);
2632
+ }
2633
+ const contents = (0, import_smithy_client.map)({
2634
+ $metadata: deserializeMetadata(output)
2635
+ });
2636
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2637
+ const doc = (0, import_smithy_client.take)(data, {
2638
+ nextToken: import_smithy_client.expectString,
2639
+ virtualNodes: (_) => de_VirtualNodeList(_, context)
2640
+ });
2641
+ Object.assign(contents, doc);
2642
+ return contents;
2643
+ }, "de_ListVirtualNodesCommand");
2644
+ var de_ListVirtualNodesCommandError = /* @__PURE__ */ __name(async (output, context) => {
2645
+ const parsedOutput = {
2646
+ ...output,
2647
+ body: await parseErrorBody(output.body, context)
2648
+ };
2649
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2650
+ switch (errorCode) {
2651
+ case "BadRequestException":
2652
+ case "com.amazonaws.appmesh#BadRequestException":
2653
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2654
+ case "ForbiddenException":
2655
+ case "com.amazonaws.appmesh#ForbiddenException":
2656
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
2657
+ case "InternalServerErrorException":
2658
+ case "com.amazonaws.appmesh#InternalServerErrorException":
2659
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2660
+ case "NotFoundException":
2661
+ case "com.amazonaws.appmesh#NotFoundException":
2662
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2663
+ case "ServiceUnavailableException":
2664
+ case "com.amazonaws.appmesh#ServiceUnavailableException":
2665
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2666
+ case "TooManyRequestsException":
2667
+ case "com.amazonaws.appmesh#TooManyRequestsException":
2668
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2669
+ default:
2670
+ const parsedBody = parsedOutput.body;
2671
+ return throwDefaultError({
2672
+ output,
2673
+ parsedBody,
2674
+ errorCode
2675
+ });
2676
+ }
2677
+ }, "de_ListVirtualNodesCommandError");
2678
+ var de_ListVirtualRoutersCommand = /* @__PURE__ */ __name(async (output, context) => {
2679
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2680
+ return de_ListVirtualRoutersCommandError(output, context);
2681
+ }
2682
+ const contents = (0, import_smithy_client.map)({
2683
+ $metadata: deserializeMetadata(output)
2684
+ });
2685
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2686
+ const doc = (0, import_smithy_client.take)(data, {
2687
+ nextToken: import_smithy_client.expectString,
2688
+ virtualRouters: (_) => de_VirtualRouterList(_, context)
2689
+ });
2690
+ Object.assign(contents, doc);
2691
+ return contents;
2692
+ }, "de_ListVirtualRoutersCommand");
2693
+ var de_ListVirtualRoutersCommandError = /* @__PURE__ */ __name(async (output, context) => {
2694
+ const parsedOutput = {
2695
+ ...output,
2696
+ body: await parseErrorBody(output.body, context)
2697
+ };
2698
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2699
+ switch (errorCode) {
2700
+ case "BadRequestException":
2701
+ case "com.amazonaws.appmesh#BadRequestException":
2702
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2703
+ case "ForbiddenException":
2704
+ case "com.amazonaws.appmesh#ForbiddenException":
2705
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
2706
+ case "InternalServerErrorException":
2707
+ case "com.amazonaws.appmesh#InternalServerErrorException":
2708
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2709
+ case "NotFoundException":
2710
+ case "com.amazonaws.appmesh#NotFoundException":
2711
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2712
+ case "ServiceUnavailableException":
2713
+ case "com.amazonaws.appmesh#ServiceUnavailableException":
2714
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2715
+ case "TooManyRequestsException":
2716
+ case "com.amazonaws.appmesh#TooManyRequestsException":
2717
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2718
+ default:
2719
+ const parsedBody = parsedOutput.body;
2720
+ return throwDefaultError({
2721
+ output,
2722
+ parsedBody,
2723
+ errorCode
2724
+ });
2725
+ }
2726
+ }, "de_ListVirtualRoutersCommandError");
2727
+ var de_ListVirtualServicesCommand = /* @__PURE__ */ __name(async (output, context) => {
2728
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2729
+ return de_ListVirtualServicesCommandError(output, context);
2730
+ }
2731
+ const contents = (0, import_smithy_client.map)({
2732
+ $metadata: deserializeMetadata(output)
2733
+ });
2734
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2735
+ const doc = (0, import_smithy_client.take)(data, {
2736
+ nextToken: import_smithy_client.expectString,
2737
+ virtualServices: (_) => de_VirtualServiceList(_, context)
2738
+ });
2739
+ Object.assign(contents, doc);
2740
+ return contents;
2741
+ }, "de_ListVirtualServicesCommand");
2742
+ var de_ListVirtualServicesCommandError = /* @__PURE__ */ __name(async (output, context) => {
2743
+ const parsedOutput = {
2744
+ ...output,
2745
+ body: await parseErrorBody(output.body, context)
2746
+ };
2747
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2748
+ switch (errorCode) {
2749
+ case "BadRequestException":
2750
+ case "com.amazonaws.appmesh#BadRequestException":
2751
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2752
+ case "ForbiddenException":
2753
+ case "com.amazonaws.appmesh#ForbiddenException":
2754
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
2755
+ case "InternalServerErrorException":
2756
+ case "com.amazonaws.appmesh#InternalServerErrorException":
2757
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2758
+ case "NotFoundException":
2759
+ case "com.amazonaws.appmesh#NotFoundException":
2760
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2761
+ case "ServiceUnavailableException":
2762
+ case "com.amazonaws.appmesh#ServiceUnavailableException":
2763
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2764
+ case "TooManyRequestsException":
2765
+ case "com.amazonaws.appmesh#TooManyRequestsException":
2766
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2767
+ default:
2768
+ const parsedBody = parsedOutput.body;
2769
+ return throwDefaultError({
2770
+ output,
2771
+ parsedBody,
2772
+ errorCode
2773
+ });
2774
+ }
2775
+ }, "de_ListVirtualServicesCommandError");
2776
+ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2777
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2778
+ return de_TagResourceCommandError(output, context);
2779
+ }
2780
+ const contents = (0, import_smithy_client.map)({
2781
+ $metadata: deserializeMetadata(output)
2782
+ });
2783
+ await (0, import_smithy_client.collectBody)(output.body, context);
2784
+ return contents;
2785
+ }, "de_TagResourceCommand");
2786
+ var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2787
+ const parsedOutput = {
2788
+ ...output,
2789
+ body: await parseErrorBody(output.body, context)
2790
+ };
2791
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2792
+ switch (errorCode) {
2793
+ case "BadRequestException":
2794
+ case "com.amazonaws.appmesh#BadRequestException":
2795
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2796
+ case "ForbiddenException":
2797
+ case "com.amazonaws.appmesh#ForbiddenException":
2798
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
2799
+ case "InternalServerErrorException":
2800
+ case "com.amazonaws.appmesh#InternalServerErrorException":
2801
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2802
+ case "NotFoundException":
2803
+ case "com.amazonaws.appmesh#NotFoundException":
2804
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2805
+ case "ServiceUnavailableException":
2806
+ case "com.amazonaws.appmesh#ServiceUnavailableException":
2807
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2808
+ case "TooManyRequestsException":
2809
+ case "com.amazonaws.appmesh#TooManyRequestsException":
2810
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2811
+ case "TooManyTagsException":
2812
+ case "com.amazonaws.appmesh#TooManyTagsException":
2813
+ throw await de_TooManyTagsExceptionRes(parsedOutput, context);
2814
+ default:
2815
+ const parsedBody = parsedOutput.body;
2816
+ return throwDefaultError({
2817
+ output,
2818
+ parsedBody,
2819
+ errorCode
2820
+ });
2821
+ }
2822
+ }, "de_TagResourceCommandError");
2823
+ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2824
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2825
+ return de_UntagResourceCommandError(output, context);
2826
+ }
2827
+ const contents = (0, import_smithy_client.map)({
2828
+ $metadata: deserializeMetadata(output)
2829
+ });
2830
+ await (0, import_smithy_client.collectBody)(output.body, context);
2831
+ return contents;
2832
+ }, "de_UntagResourceCommand");
2833
+ var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2834
+ const parsedOutput = {
2835
+ ...output,
2836
+ body: await parseErrorBody(output.body, context)
2837
+ };
2838
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2839
+ switch (errorCode) {
2840
+ case "BadRequestException":
2841
+ case "com.amazonaws.appmesh#BadRequestException":
2842
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2843
+ case "ForbiddenException":
2844
+ case "com.amazonaws.appmesh#ForbiddenException":
2845
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
2846
+ case "InternalServerErrorException":
2847
+ case "com.amazonaws.appmesh#InternalServerErrorException":
2848
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2849
+ case "NotFoundException":
2850
+ case "com.amazonaws.appmesh#NotFoundException":
2851
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2852
+ case "ServiceUnavailableException":
2853
+ case "com.amazonaws.appmesh#ServiceUnavailableException":
2854
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2855
+ case "TooManyRequestsException":
2856
+ case "com.amazonaws.appmesh#TooManyRequestsException":
2857
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2858
+ default:
2859
+ const parsedBody = parsedOutput.body;
2860
+ return throwDefaultError({
2861
+ output,
2862
+ parsedBody,
2863
+ errorCode
2864
+ });
2865
+ }
2866
+ }, "de_UntagResourceCommandError");
2867
+ var de_UpdateGatewayRouteCommand = /* @__PURE__ */ __name(async (output, context) => {
2868
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2869
+ return de_UpdateGatewayRouteCommandError(output, context);
2870
+ }
2871
+ const contents = (0, import_smithy_client.map)({
2872
+ $metadata: deserializeMetadata(output)
2873
+ });
2874
+ const data = (0, import_smithy_client.expectObject)(await parseBody(output.body, context));
2875
+ contents.gatewayRoute = de_GatewayRouteData(data, context);
2876
+ return contents;
2877
+ }, "de_UpdateGatewayRouteCommand");
2878
+ var de_UpdateGatewayRouteCommandError = /* @__PURE__ */ __name(async (output, context) => {
2879
+ const parsedOutput = {
2880
+ ...output,
2881
+ body: await parseErrorBody(output.body, context)
2882
+ };
2883
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2884
+ switch (errorCode) {
2885
+ case "BadRequestException":
2886
+ case "com.amazonaws.appmesh#BadRequestException":
2887
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2888
+ case "ConflictException":
2889
+ case "com.amazonaws.appmesh#ConflictException":
2890
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2891
+ case "ForbiddenException":
2892
+ case "com.amazonaws.appmesh#ForbiddenException":
2893
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
2894
+ case "InternalServerErrorException":
2895
+ case "com.amazonaws.appmesh#InternalServerErrorException":
2896
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2897
+ case "LimitExceededException":
2898
+ case "com.amazonaws.appmesh#LimitExceededException":
2899
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
2900
+ case "NotFoundException":
2901
+ case "com.amazonaws.appmesh#NotFoundException":
2902
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2903
+ case "ServiceUnavailableException":
2904
+ case "com.amazonaws.appmesh#ServiceUnavailableException":
2905
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2906
+ case "TooManyRequestsException":
2907
+ case "com.amazonaws.appmesh#TooManyRequestsException":
2908
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2909
+ default:
2910
+ const parsedBody = parsedOutput.body;
2911
+ return throwDefaultError({
2912
+ output,
2913
+ parsedBody,
2914
+ errorCode
2915
+ });
2916
+ }
2917
+ }, "de_UpdateGatewayRouteCommandError");
2918
+ var de_UpdateMeshCommand = /* @__PURE__ */ __name(async (output, context) => {
2919
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2920
+ return de_UpdateMeshCommandError(output, context);
2921
+ }
2922
+ const contents = (0, import_smithy_client.map)({
2923
+ $metadata: deserializeMetadata(output)
2924
+ });
2925
+ const data = (0, import_smithy_client.expectObject)(await parseBody(output.body, context));
2926
+ contents.mesh = de_MeshData(data, context);
2927
+ return contents;
2928
+ }, "de_UpdateMeshCommand");
2929
+ var de_UpdateMeshCommandError = /* @__PURE__ */ __name(async (output, context) => {
2930
+ const parsedOutput = {
2931
+ ...output,
2932
+ body: await parseErrorBody(output.body, context)
2933
+ };
2934
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2935
+ switch (errorCode) {
2936
+ case "BadRequestException":
2937
+ case "com.amazonaws.appmesh#BadRequestException":
2938
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2939
+ case "ConflictException":
2940
+ case "com.amazonaws.appmesh#ConflictException":
2941
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2942
+ case "ForbiddenException":
2943
+ case "com.amazonaws.appmesh#ForbiddenException":
2944
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
2945
+ case "InternalServerErrorException":
2946
+ case "com.amazonaws.appmesh#InternalServerErrorException":
2947
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2948
+ case "NotFoundException":
2949
+ case "com.amazonaws.appmesh#NotFoundException":
2950
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2951
+ case "ServiceUnavailableException":
2952
+ case "com.amazonaws.appmesh#ServiceUnavailableException":
2953
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2954
+ case "TooManyRequestsException":
2955
+ case "com.amazonaws.appmesh#TooManyRequestsException":
2956
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2957
+ default:
2958
+ const parsedBody = parsedOutput.body;
2959
+ return throwDefaultError({
2960
+ output,
2961
+ parsedBody,
2962
+ errorCode
2963
+ });
2964
+ }
2965
+ }, "de_UpdateMeshCommandError");
2966
+ var de_UpdateRouteCommand = /* @__PURE__ */ __name(async (output, context) => {
2967
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2968
+ return de_UpdateRouteCommandError(output, context);
2969
+ }
2970
+ const contents = (0, import_smithy_client.map)({
2971
+ $metadata: deserializeMetadata(output)
2972
+ });
2973
+ const data = (0, import_smithy_client.expectObject)(await parseBody(output.body, context));
2974
+ contents.route = de_RouteData(data, context);
2975
+ return contents;
2976
+ }, "de_UpdateRouteCommand");
2977
+ var de_UpdateRouteCommandError = /* @__PURE__ */ __name(async (output, context) => {
2978
+ const parsedOutput = {
2979
+ ...output,
2980
+ body: await parseErrorBody(output.body, context)
2981
+ };
2982
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2983
+ switch (errorCode) {
2984
+ case "BadRequestException":
2985
+ case "com.amazonaws.appmesh#BadRequestException":
2986
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2987
+ case "ConflictException":
2988
+ case "com.amazonaws.appmesh#ConflictException":
2989
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2990
+ case "ForbiddenException":
2991
+ case "com.amazonaws.appmesh#ForbiddenException":
2992
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
2993
+ case "InternalServerErrorException":
2994
+ case "com.amazonaws.appmesh#InternalServerErrorException":
2995
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2996
+ case "LimitExceededException":
2997
+ case "com.amazonaws.appmesh#LimitExceededException":
2998
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
2999
+ case "NotFoundException":
3000
+ case "com.amazonaws.appmesh#NotFoundException":
3001
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
3002
+ case "ServiceUnavailableException":
3003
+ case "com.amazonaws.appmesh#ServiceUnavailableException":
3004
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
3005
+ case "TooManyRequestsException":
3006
+ case "com.amazonaws.appmesh#TooManyRequestsException":
3007
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
3008
+ default:
3009
+ const parsedBody = parsedOutput.body;
3010
+ return throwDefaultError({
3011
+ output,
3012
+ parsedBody,
3013
+ errorCode
3014
+ });
3015
+ }
3016
+ }, "de_UpdateRouteCommandError");
3017
+ var de_UpdateVirtualGatewayCommand = /* @__PURE__ */ __name(async (output, context) => {
3018
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3019
+ return de_UpdateVirtualGatewayCommandError(output, context);
3020
+ }
3021
+ const contents = (0, import_smithy_client.map)({
3022
+ $metadata: deserializeMetadata(output)
3023
+ });
3024
+ const data = (0, import_smithy_client.expectObject)(await parseBody(output.body, context));
3025
+ contents.virtualGateway = de_VirtualGatewayData(data, context);
3026
+ return contents;
3027
+ }, "de_UpdateVirtualGatewayCommand");
3028
+ var de_UpdateVirtualGatewayCommandError = /* @__PURE__ */ __name(async (output, context) => {
3029
+ const parsedOutput = {
3030
+ ...output,
3031
+ body: await parseErrorBody(output.body, context)
3032
+ };
3033
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3034
+ switch (errorCode) {
3035
+ case "BadRequestException":
3036
+ case "com.amazonaws.appmesh#BadRequestException":
3037
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
3038
+ case "ConflictException":
3039
+ case "com.amazonaws.appmesh#ConflictException":
3040
+ throw await de_ConflictExceptionRes(parsedOutput, context);
3041
+ case "ForbiddenException":
3042
+ case "com.amazonaws.appmesh#ForbiddenException":
3043
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
3044
+ case "InternalServerErrorException":
3045
+ case "com.amazonaws.appmesh#InternalServerErrorException":
3046
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
3047
+ case "LimitExceededException":
3048
+ case "com.amazonaws.appmesh#LimitExceededException":
3049
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
3050
+ case "NotFoundException":
3051
+ case "com.amazonaws.appmesh#NotFoundException":
3052
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
3053
+ case "ServiceUnavailableException":
3054
+ case "com.amazonaws.appmesh#ServiceUnavailableException":
3055
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
3056
+ case "TooManyRequestsException":
3057
+ case "com.amazonaws.appmesh#TooManyRequestsException":
3058
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
3059
+ default:
3060
+ const parsedBody = parsedOutput.body;
3061
+ return throwDefaultError({
3062
+ output,
3063
+ parsedBody,
3064
+ errorCode
3065
+ });
3066
+ }
3067
+ }, "de_UpdateVirtualGatewayCommandError");
3068
+ var de_UpdateVirtualNodeCommand = /* @__PURE__ */ __name(async (output, context) => {
3069
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3070
+ return de_UpdateVirtualNodeCommandError(output, context);
3071
+ }
3072
+ const contents = (0, import_smithy_client.map)({
3073
+ $metadata: deserializeMetadata(output)
3074
+ });
3075
+ const data = (0, import_smithy_client.expectObject)(await parseBody(output.body, context));
3076
+ contents.virtualNode = de_VirtualNodeData(data, context);
3077
+ return contents;
3078
+ }, "de_UpdateVirtualNodeCommand");
3079
+ var de_UpdateVirtualNodeCommandError = /* @__PURE__ */ __name(async (output, context) => {
3080
+ const parsedOutput = {
3081
+ ...output,
3082
+ body: await parseErrorBody(output.body, context)
3083
+ };
3084
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3085
+ switch (errorCode) {
3086
+ case "BadRequestException":
3087
+ case "com.amazonaws.appmesh#BadRequestException":
3088
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
3089
+ case "ConflictException":
3090
+ case "com.amazonaws.appmesh#ConflictException":
3091
+ throw await de_ConflictExceptionRes(parsedOutput, context);
3092
+ case "ForbiddenException":
3093
+ case "com.amazonaws.appmesh#ForbiddenException":
3094
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
3095
+ case "InternalServerErrorException":
3096
+ case "com.amazonaws.appmesh#InternalServerErrorException":
3097
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
3098
+ case "LimitExceededException":
3099
+ case "com.amazonaws.appmesh#LimitExceededException":
3100
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
3101
+ case "NotFoundException":
3102
+ case "com.amazonaws.appmesh#NotFoundException":
3103
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
3104
+ case "ServiceUnavailableException":
3105
+ case "com.amazonaws.appmesh#ServiceUnavailableException":
3106
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
3107
+ case "TooManyRequestsException":
3108
+ case "com.amazonaws.appmesh#TooManyRequestsException":
3109
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
3110
+ default:
3111
+ const parsedBody = parsedOutput.body;
3112
+ return throwDefaultError({
3113
+ output,
3114
+ parsedBody,
3115
+ errorCode
3116
+ });
3117
+ }
3118
+ }, "de_UpdateVirtualNodeCommandError");
3119
+ var de_UpdateVirtualRouterCommand = /* @__PURE__ */ __name(async (output, context) => {
3120
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3121
+ return de_UpdateVirtualRouterCommandError(output, context);
3122
+ }
3123
+ const contents = (0, import_smithy_client.map)({
3124
+ $metadata: deserializeMetadata(output)
3125
+ });
3126
+ const data = (0, import_smithy_client.expectObject)(await parseBody(output.body, context));
3127
+ contents.virtualRouter = de_VirtualRouterData(data, context);
3128
+ return contents;
3129
+ }, "de_UpdateVirtualRouterCommand");
3130
+ var de_UpdateVirtualRouterCommandError = /* @__PURE__ */ __name(async (output, context) => {
3131
+ const parsedOutput = {
3132
+ ...output,
3133
+ body: await parseErrorBody(output.body, context)
3134
+ };
3135
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3136
+ switch (errorCode) {
3137
+ case "BadRequestException":
3138
+ case "com.amazonaws.appmesh#BadRequestException":
3139
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
3140
+ case "ConflictException":
3141
+ case "com.amazonaws.appmesh#ConflictException":
3142
+ throw await de_ConflictExceptionRes(parsedOutput, context);
3143
+ case "ForbiddenException":
3144
+ case "com.amazonaws.appmesh#ForbiddenException":
3145
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
3146
+ case "InternalServerErrorException":
3147
+ case "com.amazonaws.appmesh#InternalServerErrorException":
3148
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
3149
+ case "LimitExceededException":
3150
+ case "com.amazonaws.appmesh#LimitExceededException":
3151
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
3152
+ case "NotFoundException":
3153
+ case "com.amazonaws.appmesh#NotFoundException":
3154
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
3155
+ case "ServiceUnavailableException":
3156
+ case "com.amazonaws.appmesh#ServiceUnavailableException":
3157
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
3158
+ case "TooManyRequestsException":
3159
+ case "com.amazonaws.appmesh#TooManyRequestsException":
3160
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
3161
+ default:
3162
+ const parsedBody = parsedOutput.body;
3163
+ return throwDefaultError({
3164
+ output,
3165
+ parsedBody,
3166
+ errorCode
3167
+ });
3168
+ }
3169
+ }, "de_UpdateVirtualRouterCommandError");
3170
+ var de_UpdateVirtualServiceCommand = /* @__PURE__ */ __name(async (output, context) => {
3171
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3172
+ return de_UpdateVirtualServiceCommandError(output, context);
3173
+ }
3174
+ const contents = (0, import_smithy_client.map)({
3175
+ $metadata: deserializeMetadata(output)
3176
+ });
3177
+ const data = (0, import_smithy_client.expectObject)(await parseBody(output.body, context));
3178
+ contents.virtualService = de_VirtualServiceData(data, context);
3179
+ return contents;
3180
+ }, "de_UpdateVirtualServiceCommand");
3181
+ var de_UpdateVirtualServiceCommandError = /* @__PURE__ */ __name(async (output, context) => {
3182
+ const parsedOutput = {
3183
+ ...output,
3184
+ body: await parseErrorBody(output.body, context)
3185
+ };
3186
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3187
+ switch (errorCode) {
3188
+ case "BadRequestException":
3189
+ case "com.amazonaws.appmesh#BadRequestException":
3190
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
3191
+ case "ConflictException":
3192
+ case "com.amazonaws.appmesh#ConflictException":
3193
+ throw await de_ConflictExceptionRes(parsedOutput, context);
3194
+ case "ForbiddenException":
3195
+ case "com.amazonaws.appmesh#ForbiddenException":
3196
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
3197
+ case "InternalServerErrorException":
3198
+ case "com.amazonaws.appmesh#InternalServerErrorException":
3199
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
3200
+ case "LimitExceededException":
3201
+ case "com.amazonaws.appmesh#LimitExceededException":
3202
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
3203
+ case "NotFoundException":
3204
+ case "com.amazonaws.appmesh#NotFoundException":
3205
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
3206
+ case "ServiceUnavailableException":
3207
+ case "com.amazonaws.appmesh#ServiceUnavailableException":
3208
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
3209
+ case "TooManyRequestsException":
3210
+ case "com.amazonaws.appmesh#TooManyRequestsException":
3211
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
3212
+ default:
3213
+ const parsedBody = parsedOutput.body;
3214
+ return throwDefaultError({
3215
+ output,
3216
+ parsedBody,
3217
+ errorCode
3218
+ });
3219
+ }
3220
+ }, "de_UpdateVirtualServiceCommandError");
3221
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(AppMeshServiceException);
3222
+ var de_BadRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3223
+ const contents = (0, import_smithy_client.map)({});
3224
+ const data = parsedOutput.body;
3225
+ const doc = (0, import_smithy_client.take)(data, {
3226
+ message: import_smithy_client.expectString
3227
+ });
3228
+ Object.assign(contents, doc);
3229
+ const exception = new BadRequestException({
3230
+ $metadata: deserializeMetadata(parsedOutput),
3231
+ ...contents
3232
+ });
3233
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3234
+ }, "de_BadRequestExceptionRes");
3235
+ var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3236
+ const contents = (0, import_smithy_client.map)({});
3237
+ const data = parsedOutput.body;
3238
+ const doc = (0, import_smithy_client.take)(data, {
3239
+ message: import_smithy_client.expectString
3240
+ });
3241
+ Object.assign(contents, doc);
3242
+ const exception = new ConflictException({
3243
+ $metadata: deserializeMetadata(parsedOutput),
3244
+ ...contents
3245
+ });
3246
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3247
+ }, "de_ConflictExceptionRes");
3248
+ var de_ForbiddenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3249
+ const contents = (0, import_smithy_client.map)({});
3250
+ const data = parsedOutput.body;
3251
+ const doc = (0, import_smithy_client.take)(data, {
3252
+ message: import_smithy_client.expectString
3253
+ });
3254
+ Object.assign(contents, doc);
3255
+ const exception = new ForbiddenException({
3256
+ $metadata: deserializeMetadata(parsedOutput),
3257
+ ...contents
3258
+ });
3259
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3260
+ }, "de_ForbiddenExceptionRes");
3261
+ var de_InternalServerErrorExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3262
+ const contents = (0, import_smithy_client.map)({});
3263
+ const data = parsedOutput.body;
3264
+ const doc = (0, import_smithy_client.take)(data, {
3265
+ message: import_smithy_client.expectString
3266
+ });
3267
+ Object.assign(contents, doc);
3268
+ const exception = new InternalServerErrorException({
3269
+ $metadata: deserializeMetadata(parsedOutput),
3270
+ ...contents
3271
+ });
3272
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3273
+ }, "de_InternalServerErrorExceptionRes");
3274
+ var de_LimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3275
+ const contents = (0, import_smithy_client.map)({});
3276
+ const data = parsedOutput.body;
3277
+ const doc = (0, import_smithy_client.take)(data, {
3278
+ message: import_smithy_client.expectString
3279
+ });
3280
+ Object.assign(contents, doc);
3281
+ const exception = new LimitExceededException({
3282
+ $metadata: deserializeMetadata(parsedOutput),
3283
+ ...contents
3284
+ });
3285
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3286
+ }, "de_LimitExceededExceptionRes");
3287
+ var de_NotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3288
+ const contents = (0, import_smithy_client.map)({});
3289
+ const data = parsedOutput.body;
3290
+ const doc = (0, import_smithy_client.take)(data, {
3291
+ message: import_smithy_client.expectString
3292
+ });
3293
+ Object.assign(contents, doc);
3294
+ const exception = new NotFoundException({
3295
+ $metadata: deserializeMetadata(parsedOutput),
3296
+ ...contents
3297
+ });
3298
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3299
+ }, "de_NotFoundExceptionRes");
3300
+ var de_ResourceInUseExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3301
+ const contents = (0, import_smithy_client.map)({});
3302
+ const data = parsedOutput.body;
3303
+ const doc = (0, import_smithy_client.take)(data, {
3304
+ message: import_smithy_client.expectString
3305
+ });
3306
+ Object.assign(contents, doc);
3307
+ const exception = new ResourceInUseException({
3308
+ $metadata: deserializeMetadata(parsedOutput),
3309
+ ...contents
3310
+ });
3311
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3312
+ }, "de_ResourceInUseExceptionRes");
3313
+ var de_ServiceUnavailableExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3314
+ const contents = (0, import_smithy_client.map)({});
3315
+ const data = parsedOutput.body;
3316
+ const doc = (0, import_smithy_client.take)(data, {
3317
+ message: import_smithy_client.expectString
3318
+ });
3319
+ Object.assign(contents, doc);
3320
+ const exception = new ServiceUnavailableException({
3321
+ $metadata: deserializeMetadata(parsedOutput),
3322
+ ...contents
3323
+ });
3324
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3325
+ }, "de_ServiceUnavailableExceptionRes");
3326
+ var de_TooManyRequestsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3327
+ const contents = (0, import_smithy_client.map)({});
3328
+ const data = parsedOutput.body;
3329
+ const doc = (0, import_smithy_client.take)(data, {
3330
+ message: import_smithy_client.expectString
3331
+ });
3332
+ Object.assign(contents, doc);
3333
+ const exception = new TooManyRequestsException({
3334
+ $metadata: deserializeMetadata(parsedOutput),
3335
+ ...contents
3336
+ });
3337
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3338
+ }, "de_TooManyRequestsExceptionRes");
3339
+ var de_TooManyTagsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3340
+ const contents = (0, import_smithy_client.map)({});
3341
+ const data = parsedOutput.body;
3342
+ const doc = (0, import_smithy_client.take)(data, {
3343
+ message: import_smithy_client.expectString
3344
+ });
3345
+ Object.assign(contents, doc);
3346
+ const exception = new TooManyTagsException({
3347
+ $metadata: deserializeMetadata(parsedOutput),
3348
+ ...contents
3349
+ });
3350
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3351
+ }, "de_TooManyTagsExceptionRes");
3352
+ var de_GatewayRouteData = /* @__PURE__ */ __name((output, context) => {
3353
+ return (0, import_smithy_client.take)(output, {
3354
+ gatewayRouteName: import_smithy_client.expectString,
3355
+ meshName: import_smithy_client.expectString,
3356
+ metadata: (_) => de_ResourceMetadata(_, context),
3357
+ spec: import_smithy_client._json,
3358
+ status: import_smithy_client._json,
3359
+ virtualGatewayName: import_smithy_client.expectString
3360
+ });
3361
+ }, "de_GatewayRouteData");
3362
+ var de_GatewayRouteList = /* @__PURE__ */ __name((output, context) => {
3363
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
3364
+ return de_GatewayRouteRef(entry, context);
3365
+ });
3366
+ return retVal;
3367
+ }, "de_GatewayRouteList");
3368
+ var de_GatewayRouteRef = /* @__PURE__ */ __name((output, context) => {
3369
+ return (0, import_smithy_client.take)(output, {
3370
+ arn: import_smithy_client.expectString,
3371
+ createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3372
+ gatewayRouteName: import_smithy_client.expectString,
3373
+ lastUpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3374
+ meshName: import_smithy_client.expectString,
3375
+ meshOwner: import_smithy_client.expectString,
3376
+ resourceOwner: import_smithy_client.expectString,
3377
+ version: import_smithy_client.expectLong,
3378
+ virtualGatewayName: import_smithy_client.expectString
3379
+ });
3380
+ }, "de_GatewayRouteRef");
3381
+ var de_MeshData = /* @__PURE__ */ __name((output, context) => {
3382
+ return (0, import_smithy_client.take)(output, {
3383
+ meshName: import_smithy_client.expectString,
3384
+ metadata: (_) => de_ResourceMetadata(_, context),
3385
+ spec: import_smithy_client._json,
3386
+ status: import_smithy_client._json
3387
+ });
3388
+ }, "de_MeshData");
3389
+ var de_MeshList = /* @__PURE__ */ __name((output, context) => {
3390
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
3391
+ return de_MeshRef(entry, context);
3392
+ });
3393
+ return retVal;
3394
+ }, "de_MeshList");
3395
+ var de_MeshRef = /* @__PURE__ */ __name((output, context) => {
3396
+ return (0, import_smithy_client.take)(output, {
3397
+ arn: import_smithy_client.expectString,
3398
+ createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3399
+ lastUpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3400
+ meshName: import_smithy_client.expectString,
3401
+ meshOwner: import_smithy_client.expectString,
3402
+ resourceOwner: import_smithy_client.expectString,
3403
+ version: import_smithy_client.expectLong
3404
+ });
3405
+ }, "de_MeshRef");
3406
+ var de_ResourceMetadata = /* @__PURE__ */ __name((output, context) => {
3407
+ return (0, import_smithy_client.take)(output, {
3408
+ arn: import_smithy_client.expectString,
3409
+ createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3410
+ lastUpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3411
+ meshOwner: import_smithy_client.expectString,
3412
+ resourceOwner: import_smithy_client.expectString,
3413
+ uid: import_smithy_client.expectString,
3414
+ version: import_smithy_client.expectLong
3415
+ });
3416
+ }, "de_ResourceMetadata");
3417
+ var de_RouteData = /* @__PURE__ */ __name((output, context) => {
3418
+ return (0, import_smithy_client.take)(output, {
3419
+ meshName: import_smithy_client.expectString,
3420
+ metadata: (_) => de_ResourceMetadata(_, context),
3421
+ routeName: import_smithy_client.expectString,
3422
+ spec: import_smithy_client._json,
3423
+ status: import_smithy_client._json,
3424
+ virtualRouterName: import_smithy_client.expectString
3425
+ });
3426
+ }, "de_RouteData");
3427
+ var de_RouteList = /* @__PURE__ */ __name((output, context) => {
3428
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
3429
+ return de_RouteRef(entry, context);
3430
+ });
3431
+ return retVal;
3432
+ }, "de_RouteList");
3433
+ var de_RouteRef = /* @__PURE__ */ __name((output, context) => {
3434
+ return (0, import_smithy_client.take)(output, {
3435
+ arn: import_smithy_client.expectString,
3436
+ createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3437
+ lastUpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3438
+ meshName: import_smithy_client.expectString,
3439
+ meshOwner: import_smithy_client.expectString,
3440
+ resourceOwner: import_smithy_client.expectString,
3441
+ routeName: import_smithy_client.expectString,
3442
+ version: import_smithy_client.expectLong,
3443
+ virtualRouterName: import_smithy_client.expectString
3444
+ });
3445
+ }, "de_RouteRef");
3446
+ var de_VirtualGatewayData = /* @__PURE__ */ __name((output, context) => {
3447
+ return (0, import_smithy_client.take)(output, {
3448
+ meshName: import_smithy_client.expectString,
3449
+ metadata: (_) => de_ResourceMetadata(_, context),
3450
+ spec: import_smithy_client._json,
3451
+ status: import_smithy_client._json,
3452
+ virtualGatewayName: import_smithy_client.expectString
3453
+ });
3454
+ }, "de_VirtualGatewayData");
3455
+ var de_VirtualGatewayList = /* @__PURE__ */ __name((output, context) => {
3456
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
3457
+ return de_VirtualGatewayRef(entry, context);
3458
+ });
3459
+ return retVal;
3460
+ }, "de_VirtualGatewayList");
3461
+ var de_VirtualGatewayRef = /* @__PURE__ */ __name((output, context) => {
3462
+ return (0, import_smithy_client.take)(output, {
3463
+ arn: import_smithy_client.expectString,
3464
+ createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3465
+ lastUpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3466
+ meshName: import_smithy_client.expectString,
3467
+ meshOwner: import_smithy_client.expectString,
3468
+ resourceOwner: import_smithy_client.expectString,
3469
+ version: import_smithy_client.expectLong,
3470
+ virtualGatewayName: import_smithy_client.expectString
3471
+ });
3472
+ }, "de_VirtualGatewayRef");
3473
+ var de_VirtualNodeData = /* @__PURE__ */ __name((output, context) => {
3474
+ return (0, import_smithy_client.take)(output, {
3475
+ meshName: import_smithy_client.expectString,
3476
+ metadata: (_) => de_ResourceMetadata(_, context),
3477
+ spec: import_smithy_client._json,
3478
+ status: import_smithy_client._json,
3479
+ virtualNodeName: import_smithy_client.expectString
3480
+ });
3481
+ }, "de_VirtualNodeData");
3482
+ var de_VirtualNodeList = /* @__PURE__ */ __name((output, context) => {
3483
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
3484
+ return de_VirtualNodeRef(entry, context);
3485
+ });
3486
+ return retVal;
3487
+ }, "de_VirtualNodeList");
3488
+ var de_VirtualNodeRef = /* @__PURE__ */ __name((output, context) => {
3489
+ return (0, import_smithy_client.take)(output, {
3490
+ arn: import_smithy_client.expectString,
3491
+ createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3492
+ lastUpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3493
+ meshName: import_smithy_client.expectString,
3494
+ meshOwner: import_smithy_client.expectString,
3495
+ resourceOwner: import_smithy_client.expectString,
3496
+ version: import_smithy_client.expectLong,
3497
+ virtualNodeName: import_smithy_client.expectString
3498
+ });
3499
+ }, "de_VirtualNodeRef");
3500
+ var de_VirtualRouterData = /* @__PURE__ */ __name((output, context) => {
3501
+ return (0, import_smithy_client.take)(output, {
3502
+ meshName: import_smithy_client.expectString,
3503
+ metadata: (_) => de_ResourceMetadata(_, context),
3504
+ spec: import_smithy_client._json,
3505
+ status: import_smithy_client._json,
3506
+ virtualRouterName: import_smithy_client.expectString
3507
+ });
3508
+ }, "de_VirtualRouterData");
3509
+ var de_VirtualRouterList = /* @__PURE__ */ __name((output, context) => {
3510
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
3511
+ return de_VirtualRouterRef(entry, context);
3512
+ });
3513
+ return retVal;
3514
+ }, "de_VirtualRouterList");
3515
+ var de_VirtualRouterRef = /* @__PURE__ */ __name((output, context) => {
3516
+ return (0, import_smithy_client.take)(output, {
3517
+ arn: import_smithy_client.expectString,
3518
+ createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3519
+ lastUpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3520
+ meshName: import_smithy_client.expectString,
3521
+ meshOwner: import_smithy_client.expectString,
3522
+ resourceOwner: import_smithy_client.expectString,
3523
+ version: import_smithy_client.expectLong,
3524
+ virtualRouterName: import_smithy_client.expectString
3525
+ });
3526
+ }, "de_VirtualRouterRef");
3527
+ var de_VirtualServiceData = /* @__PURE__ */ __name((output, context) => {
3528
+ return (0, import_smithy_client.take)(output, {
3529
+ meshName: import_smithy_client.expectString,
3530
+ metadata: (_) => de_ResourceMetadata(_, context),
3531
+ spec: import_smithy_client._json,
3532
+ status: import_smithy_client._json,
3533
+ virtualServiceName: import_smithy_client.expectString
3534
+ });
3535
+ }, "de_VirtualServiceData");
3536
+ var de_VirtualServiceList = /* @__PURE__ */ __name((output, context) => {
3537
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
3538
+ return de_VirtualServiceRef(entry, context);
3539
+ });
3540
+ return retVal;
3541
+ }, "de_VirtualServiceList");
3542
+ var de_VirtualServiceRef = /* @__PURE__ */ __name((output, context) => {
3543
+ return (0, import_smithy_client.take)(output, {
3544
+ arn: import_smithy_client.expectString,
3545
+ createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3546
+ lastUpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
3547
+ meshName: import_smithy_client.expectString,
3548
+ meshOwner: import_smithy_client.expectString,
3549
+ resourceOwner: import_smithy_client.expectString,
3550
+ version: import_smithy_client.expectLong,
3551
+ virtualServiceName: import_smithy_client.expectString
3552
+ });
3553
+ }, "de_VirtualServiceRef");
3554
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
3555
+ httpStatusCode: output.statusCode,
3556
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
3557
+ extendedRequestId: output.headers["x-amz-id-2"],
3558
+ cfId: output.headers["x-amz-cf-id"]
3559
+ }), "deserializeMetadata");
3560
+ var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
3561
+ var _l = "limit";
3562
+ var _mO = "meshOwner";
3563
+ var _nT = "nextToken";
3564
+ var _rA = "resourceArn";
3565
+ var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
3566
+ if (encoded.length) {
3567
+ return JSON.parse(encoded);
3568
+ }
3569
+ return {};
3570
+ }), "parseBody");
3571
+ var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
3572
+ const value = await parseBody(errorBody, context);
3573
+ value.message = value.message ?? value.Message;
3574
+ return value;
3575
+ }, "parseErrorBody");
3576
+ var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
3577
+ const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
3578
+ const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
3579
+ let cleanValue = rawValue;
3580
+ if (typeof cleanValue === "number") {
3581
+ cleanValue = cleanValue.toString();
3582
+ }
3583
+ if (cleanValue.indexOf(",") >= 0) {
3584
+ cleanValue = cleanValue.split(",")[0];
3585
+ }
3586
+ if (cleanValue.indexOf(":") >= 0) {
3587
+ cleanValue = cleanValue.split(":")[0];
3588
+ }
3589
+ if (cleanValue.indexOf("#") >= 0) {
3590
+ cleanValue = cleanValue.split("#")[1];
3591
+ }
3592
+ return cleanValue;
3593
+ }, "sanitizeErrorCode");
3594
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
3595
+ if (headerKey !== void 0) {
3596
+ return sanitizeErrorCode(output.headers[headerKey]);
3597
+ }
3598
+ if (data.code !== void 0) {
3599
+ return sanitizeErrorCode(data.code);
3600
+ }
3601
+ if (data["__type"] !== void 0) {
3602
+ return sanitizeErrorCode(data["__type"]);
3603
+ }
3604
+ }, "loadRestJsonErrorCode");
3605
+
3606
+ // src/commands/CreateGatewayRouteCommand.ts
3607
+ var _CreateGatewayRouteCommand = class _CreateGatewayRouteCommand extends import_smithy_client.Command.classBuilder().ep({
3608
+ ...commonParams
3609
+ }).m(function(Command, cs, config, o) {
3610
+ return [
3611
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3612
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3613
+ ];
3614
+ }).s("AppMesh", "CreateGatewayRoute", {}).n("AppMeshClient", "CreateGatewayRouteCommand").f(void 0, void 0).ser(se_CreateGatewayRouteCommand).de(de_CreateGatewayRouteCommand).build() {
3615
+ };
3616
+ __name(_CreateGatewayRouteCommand, "CreateGatewayRouteCommand");
3617
+ var CreateGatewayRouteCommand = _CreateGatewayRouteCommand;
3618
+
3619
+ // src/commands/CreateMeshCommand.ts
3620
+
3621
+
3622
+
3623
+
3624
+ var _CreateMeshCommand = class _CreateMeshCommand extends import_smithy_client.Command.classBuilder().ep({
3625
+ ...commonParams
3626
+ }).m(function(Command, cs, config, o) {
3627
+ return [
3628
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3629
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3630
+ ];
3631
+ }).s("AppMesh", "CreateMesh", {}).n("AppMeshClient", "CreateMeshCommand").f(void 0, void 0).ser(se_CreateMeshCommand).de(de_CreateMeshCommand).build() {
3632
+ };
3633
+ __name(_CreateMeshCommand, "CreateMeshCommand");
3634
+ var CreateMeshCommand = _CreateMeshCommand;
3635
+
3636
+ // src/commands/CreateRouteCommand.ts
3637
+
3638
+
3639
+
3640
+
3641
+ var _CreateRouteCommand = class _CreateRouteCommand extends import_smithy_client.Command.classBuilder().ep({
3642
+ ...commonParams
3643
+ }).m(function(Command, cs, config, o) {
3644
+ return [
3645
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3646
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3647
+ ];
3648
+ }).s("AppMesh", "CreateRoute", {}).n("AppMeshClient", "CreateRouteCommand").f(void 0, void 0).ser(se_CreateRouteCommand).de(de_CreateRouteCommand).build() {
3649
+ };
3650
+ __name(_CreateRouteCommand, "CreateRouteCommand");
3651
+ var CreateRouteCommand = _CreateRouteCommand;
3652
+
3653
+ // src/commands/CreateVirtualGatewayCommand.ts
3654
+
3655
+
3656
+
3657
+
3658
+ var _CreateVirtualGatewayCommand = class _CreateVirtualGatewayCommand extends import_smithy_client.Command.classBuilder().ep({
3659
+ ...commonParams
3660
+ }).m(function(Command, cs, config, o) {
3661
+ return [
3662
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3663
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3664
+ ];
3665
+ }).s("AppMesh", "CreateVirtualGateway", {}).n("AppMeshClient", "CreateVirtualGatewayCommand").f(void 0, void 0).ser(se_CreateVirtualGatewayCommand).de(de_CreateVirtualGatewayCommand).build() {
3666
+ };
3667
+ __name(_CreateVirtualGatewayCommand, "CreateVirtualGatewayCommand");
3668
+ var CreateVirtualGatewayCommand = _CreateVirtualGatewayCommand;
3669
+
3670
+ // src/commands/CreateVirtualNodeCommand.ts
3671
+
3672
+
3673
+
3674
+
3675
+ var _CreateVirtualNodeCommand = class _CreateVirtualNodeCommand extends import_smithy_client.Command.classBuilder().ep({
3676
+ ...commonParams
3677
+ }).m(function(Command, cs, config, o) {
3678
+ return [
3679
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3680
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3681
+ ];
3682
+ }).s("AppMesh", "CreateVirtualNode", {}).n("AppMeshClient", "CreateVirtualNodeCommand").f(void 0, void 0).ser(se_CreateVirtualNodeCommand).de(de_CreateVirtualNodeCommand).build() {
3683
+ };
3684
+ __name(_CreateVirtualNodeCommand, "CreateVirtualNodeCommand");
3685
+ var CreateVirtualNodeCommand = _CreateVirtualNodeCommand;
3686
+
3687
+ // src/commands/CreateVirtualRouterCommand.ts
3688
+
3689
+
3690
+
3691
+
3692
+ var _CreateVirtualRouterCommand = class _CreateVirtualRouterCommand extends import_smithy_client.Command.classBuilder().ep({
3693
+ ...commonParams
3694
+ }).m(function(Command, cs, config, o) {
3695
+ return [
3696
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3697
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3698
+ ];
3699
+ }).s("AppMesh", "CreateVirtualRouter", {}).n("AppMeshClient", "CreateVirtualRouterCommand").f(void 0, void 0).ser(se_CreateVirtualRouterCommand).de(de_CreateVirtualRouterCommand).build() {
3700
+ };
3701
+ __name(_CreateVirtualRouterCommand, "CreateVirtualRouterCommand");
3702
+ var CreateVirtualRouterCommand = _CreateVirtualRouterCommand;
3703
+
3704
+ // src/commands/CreateVirtualServiceCommand.ts
3705
+
3706
+
3707
+
3708
+
3709
+ var _CreateVirtualServiceCommand = class _CreateVirtualServiceCommand extends import_smithy_client.Command.classBuilder().ep({
3710
+ ...commonParams
3711
+ }).m(function(Command, cs, config, o) {
3712
+ return [
3713
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3714
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3715
+ ];
3716
+ }).s("AppMesh", "CreateVirtualService", {}).n("AppMeshClient", "CreateVirtualServiceCommand").f(void 0, void 0).ser(se_CreateVirtualServiceCommand).de(de_CreateVirtualServiceCommand).build() {
3717
+ };
3718
+ __name(_CreateVirtualServiceCommand, "CreateVirtualServiceCommand");
3719
+ var CreateVirtualServiceCommand = _CreateVirtualServiceCommand;
3720
+
3721
+ // src/commands/DeleteGatewayRouteCommand.ts
3722
+
3723
+
3724
+
3725
+
3726
+ var _DeleteGatewayRouteCommand = class _DeleteGatewayRouteCommand extends import_smithy_client.Command.classBuilder().ep({
3727
+ ...commonParams
3728
+ }).m(function(Command, cs, config, o) {
3729
+ return [
3730
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3731
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3732
+ ];
3733
+ }).s("AppMesh", "DeleteGatewayRoute", {}).n("AppMeshClient", "DeleteGatewayRouteCommand").f(void 0, void 0).ser(se_DeleteGatewayRouteCommand).de(de_DeleteGatewayRouteCommand).build() {
3734
+ };
3735
+ __name(_DeleteGatewayRouteCommand, "DeleteGatewayRouteCommand");
3736
+ var DeleteGatewayRouteCommand = _DeleteGatewayRouteCommand;
3737
+
3738
+ // src/commands/DeleteMeshCommand.ts
3739
+
3740
+
3741
+
3742
+
3743
+ var _DeleteMeshCommand = class _DeleteMeshCommand extends import_smithy_client.Command.classBuilder().ep({
3744
+ ...commonParams
3745
+ }).m(function(Command, cs, config, o) {
3746
+ return [
3747
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3748
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3749
+ ];
3750
+ }).s("AppMesh", "DeleteMesh", {}).n("AppMeshClient", "DeleteMeshCommand").f(void 0, void 0).ser(se_DeleteMeshCommand).de(de_DeleteMeshCommand).build() {
3751
+ };
3752
+ __name(_DeleteMeshCommand, "DeleteMeshCommand");
3753
+ var DeleteMeshCommand = _DeleteMeshCommand;
3754
+
3755
+ // src/commands/DeleteRouteCommand.ts
3756
+
3757
+
3758
+
3759
+
3760
+ var _DeleteRouteCommand = class _DeleteRouteCommand extends import_smithy_client.Command.classBuilder().ep({
3761
+ ...commonParams
3762
+ }).m(function(Command, cs, config, o) {
3763
+ return [
3764
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3765
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3766
+ ];
3767
+ }).s("AppMesh", "DeleteRoute", {}).n("AppMeshClient", "DeleteRouteCommand").f(void 0, void 0).ser(se_DeleteRouteCommand).de(de_DeleteRouteCommand).build() {
3768
+ };
3769
+ __name(_DeleteRouteCommand, "DeleteRouteCommand");
3770
+ var DeleteRouteCommand = _DeleteRouteCommand;
3771
+
3772
+ // src/commands/DeleteVirtualGatewayCommand.ts
3773
+
3774
+
3775
+
3776
+
3777
+ var _DeleteVirtualGatewayCommand = class _DeleteVirtualGatewayCommand extends import_smithy_client.Command.classBuilder().ep({
3778
+ ...commonParams
3779
+ }).m(function(Command, cs, config, o) {
3780
+ return [
3781
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3782
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3783
+ ];
3784
+ }).s("AppMesh", "DeleteVirtualGateway", {}).n("AppMeshClient", "DeleteVirtualGatewayCommand").f(void 0, void 0).ser(se_DeleteVirtualGatewayCommand).de(de_DeleteVirtualGatewayCommand).build() {
3785
+ };
3786
+ __name(_DeleteVirtualGatewayCommand, "DeleteVirtualGatewayCommand");
3787
+ var DeleteVirtualGatewayCommand = _DeleteVirtualGatewayCommand;
3788
+
3789
+ // src/commands/DeleteVirtualNodeCommand.ts
3790
+
3791
+
3792
+
3793
+
3794
+ var _DeleteVirtualNodeCommand = class _DeleteVirtualNodeCommand extends import_smithy_client.Command.classBuilder().ep({
3795
+ ...commonParams
3796
+ }).m(function(Command, cs, config, o) {
3797
+ return [
3798
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3799
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3800
+ ];
3801
+ }).s("AppMesh", "DeleteVirtualNode", {}).n("AppMeshClient", "DeleteVirtualNodeCommand").f(void 0, void 0).ser(se_DeleteVirtualNodeCommand).de(de_DeleteVirtualNodeCommand).build() {
3802
+ };
3803
+ __name(_DeleteVirtualNodeCommand, "DeleteVirtualNodeCommand");
3804
+ var DeleteVirtualNodeCommand = _DeleteVirtualNodeCommand;
3805
+
3806
+ // src/commands/DeleteVirtualRouterCommand.ts
3807
+
3808
+
3809
+
3810
+
3811
+ var _DeleteVirtualRouterCommand = class _DeleteVirtualRouterCommand extends import_smithy_client.Command.classBuilder().ep({
3812
+ ...commonParams
3813
+ }).m(function(Command, cs, config, o) {
3814
+ return [
3815
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3816
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3817
+ ];
3818
+ }).s("AppMesh", "DeleteVirtualRouter", {}).n("AppMeshClient", "DeleteVirtualRouterCommand").f(void 0, void 0).ser(se_DeleteVirtualRouterCommand).de(de_DeleteVirtualRouterCommand).build() {
3819
+ };
3820
+ __name(_DeleteVirtualRouterCommand, "DeleteVirtualRouterCommand");
3821
+ var DeleteVirtualRouterCommand = _DeleteVirtualRouterCommand;
3822
+
3823
+ // src/commands/DeleteVirtualServiceCommand.ts
3824
+
3825
+
3826
+
3827
+
3828
+ var _DeleteVirtualServiceCommand = class _DeleteVirtualServiceCommand extends import_smithy_client.Command.classBuilder().ep({
3829
+ ...commonParams
3830
+ }).m(function(Command, cs, config, o) {
3831
+ return [
3832
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3833
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3834
+ ];
3835
+ }).s("AppMesh", "DeleteVirtualService", {}).n("AppMeshClient", "DeleteVirtualServiceCommand").f(void 0, void 0).ser(se_DeleteVirtualServiceCommand).de(de_DeleteVirtualServiceCommand).build() {
3836
+ };
3837
+ __name(_DeleteVirtualServiceCommand, "DeleteVirtualServiceCommand");
3838
+ var DeleteVirtualServiceCommand = _DeleteVirtualServiceCommand;
3839
+
3840
+ // src/commands/DescribeGatewayRouteCommand.ts
3841
+
3842
+
3843
+
3844
+
3845
+ var _DescribeGatewayRouteCommand = class _DescribeGatewayRouteCommand extends import_smithy_client.Command.classBuilder().ep({
3846
+ ...commonParams
3847
+ }).m(function(Command, cs, config, o) {
3848
+ return [
3849
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3850
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3851
+ ];
3852
+ }).s("AppMesh", "DescribeGatewayRoute", {}).n("AppMeshClient", "DescribeGatewayRouteCommand").f(void 0, void 0).ser(se_DescribeGatewayRouteCommand).de(de_DescribeGatewayRouteCommand).build() {
3853
+ };
3854
+ __name(_DescribeGatewayRouteCommand, "DescribeGatewayRouteCommand");
3855
+ var DescribeGatewayRouteCommand = _DescribeGatewayRouteCommand;
3856
+
3857
+ // src/commands/DescribeMeshCommand.ts
3858
+
3859
+
3860
+
3861
+
3862
+ var _DescribeMeshCommand = class _DescribeMeshCommand extends import_smithy_client.Command.classBuilder().ep({
3863
+ ...commonParams
3864
+ }).m(function(Command, cs, config, o) {
3865
+ return [
3866
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3867
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3868
+ ];
3869
+ }).s("AppMesh", "DescribeMesh", {}).n("AppMeshClient", "DescribeMeshCommand").f(void 0, void 0).ser(se_DescribeMeshCommand).de(de_DescribeMeshCommand).build() {
3870
+ };
3871
+ __name(_DescribeMeshCommand, "DescribeMeshCommand");
3872
+ var DescribeMeshCommand = _DescribeMeshCommand;
3873
+
3874
+ // src/commands/DescribeRouteCommand.ts
3875
+
3876
+
3877
+
3878
+
3879
+ var _DescribeRouteCommand = class _DescribeRouteCommand extends import_smithy_client.Command.classBuilder().ep({
3880
+ ...commonParams
3881
+ }).m(function(Command, cs, config, o) {
3882
+ return [
3883
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3884
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3885
+ ];
3886
+ }).s("AppMesh", "DescribeRoute", {}).n("AppMeshClient", "DescribeRouteCommand").f(void 0, void 0).ser(se_DescribeRouteCommand).de(de_DescribeRouteCommand).build() {
3887
+ };
3888
+ __name(_DescribeRouteCommand, "DescribeRouteCommand");
3889
+ var DescribeRouteCommand = _DescribeRouteCommand;
3890
+
3891
+ // src/commands/DescribeVirtualGatewayCommand.ts
3892
+
3893
+
3894
+
3895
+
3896
+ var _DescribeVirtualGatewayCommand = class _DescribeVirtualGatewayCommand extends import_smithy_client.Command.classBuilder().ep({
3897
+ ...commonParams
3898
+ }).m(function(Command, cs, config, o) {
3899
+ return [
3900
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3901
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3902
+ ];
3903
+ }).s("AppMesh", "DescribeVirtualGateway", {}).n("AppMeshClient", "DescribeVirtualGatewayCommand").f(void 0, void 0).ser(se_DescribeVirtualGatewayCommand).de(de_DescribeVirtualGatewayCommand).build() {
3904
+ };
3905
+ __name(_DescribeVirtualGatewayCommand, "DescribeVirtualGatewayCommand");
3906
+ var DescribeVirtualGatewayCommand = _DescribeVirtualGatewayCommand;
3907
+
3908
+ // src/commands/DescribeVirtualNodeCommand.ts
3909
+
3910
+
3911
+
3912
+
3913
+ var _DescribeVirtualNodeCommand = class _DescribeVirtualNodeCommand extends import_smithy_client.Command.classBuilder().ep({
3914
+ ...commonParams
3915
+ }).m(function(Command, cs, config, o) {
3916
+ return [
3917
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3918
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3919
+ ];
3920
+ }).s("AppMesh", "DescribeVirtualNode", {}).n("AppMeshClient", "DescribeVirtualNodeCommand").f(void 0, void 0).ser(se_DescribeVirtualNodeCommand).de(de_DescribeVirtualNodeCommand).build() {
3921
+ };
3922
+ __name(_DescribeVirtualNodeCommand, "DescribeVirtualNodeCommand");
3923
+ var DescribeVirtualNodeCommand = _DescribeVirtualNodeCommand;
3924
+
3925
+ // src/commands/DescribeVirtualRouterCommand.ts
3926
+
3927
+
3928
+
3929
+
3930
+ var _DescribeVirtualRouterCommand = class _DescribeVirtualRouterCommand extends import_smithy_client.Command.classBuilder().ep({
3931
+ ...commonParams
3932
+ }).m(function(Command, cs, config, o) {
3933
+ return [
3934
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3935
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3936
+ ];
3937
+ }).s("AppMesh", "DescribeVirtualRouter", {}).n("AppMeshClient", "DescribeVirtualRouterCommand").f(void 0, void 0).ser(se_DescribeVirtualRouterCommand).de(de_DescribeVirtualRouterCommand).build() {
3938
+ };
3939
+ __name(_DescribeVirtualRouterCommand, "DescribeVirtualRouterCommand");
3940
+ var DescribeVirtualRouterCommand = _DescribeVirtualRouterCommand;
3941
+
3942
+ // src/commands/DescribeVirtualServiceCommand.ts
3943
+
3944
+
3945
+
3946
+
3947
+ var _DescribeVirtualServiceCommand = class _DescribeVirtualServiceCommand extends import_smithy_client.Command.classBuilder().ep({
3948
+ ...commonParams
3949
+ }).m(function(Command, cs, config, o) {
3950
+ return [
3951
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3952
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3953
+ ];
3954
+ }).s("AppMesh", "DescribeVirtualService", {}).n("AppMeshClient", "DescribeVirtualServiceCommand").f(void 0, void 0).ser(se_DescribeVirtualServiceCommand).de(de_DescribeVirtualServiceCommand).build() {
3955
+ };
3956
+ __name(_DescribeVirtualServiceCommand, "DescribeVirtualServiceCommand");
3957
+ var DescribeVirtualServiceCommand = _DescribeVirtualServiceCommand;
3958
+
3959
+ // src/commands/ListGatewayRoutesCommand.ts
3960
+
3961
+
3962
+
3963
+
3964
+ var _ListGatewayRoutesCommand = class _ListGatewayRoutesCommand extends import_smithy_client.Command.classBuilder().ep({
3965
+ ...commonParams
3966
+ }).m(function(Command, cs, config, o) {
3967
+ return [
3968
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3969
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3970
+ ];
3971
+ }).s("AppMesh", "ListGatewayRoutes", {}).n("AppMeshClient", "ListGatewayRoutesCommand").f(void 0, void 0).ser(se_ListGatewayRoutesCommand).de(de_ListGatewayRoutesCommand).build() {
3972
+ };
3973
+ __name(_ListGatewayRoutesCommand, "ListGatewayRoutesCommand");
3974
+ var ListGatewayRoutesCommand = _ListGatewayRoutesCommand;
3975
+
3976
+ // src/commands/ListMeshesCommand.ts
3977
+
3978
+
3979
+
3980
+
3981
+ var _ListMeshesCommand = class _ListMeshesCommand extends import_smithy_client.Command.classBuilder().ep({
3982
+ ...commonParams
3983
+ }).m(function(Command, cs, config, o) {
3984
+ return [
3985
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3986
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3987
+ ];
3988
+ }).s("AppMesh", "ListMeshes", {}).n("AppMeshClient", "ListMeshesCommand").f(void 0, void 0).ser(se_ListMeshesCommand).de(de_ListMeshesCommand).build() {
3989
+ };
3990
+ __name(_ListMeshesCommand, "ListMeshesCommand");
3991
+ var ListMeshesCommand = _ListMeshesCommand;
3992
+
3993
+ // src/commands/ListRoutesCommand.ts
3994
+
3995
+
3996
+
3997
+
3998
+ var _ListRoutesCommand = class _ListRoutesCommand extends import_smithy_client.Command.classBuilder().ep({
3999
+ ...commonParams
4000
+ }).m(function(Command, cs, config, o) {
4001
+ return [
4002
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4003
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4004
+ ];
4005
+ }).s("AppMesh", "ListRoutes", {}).n("AppMeshClient", "ListRoutesCommand").f(void 0, void 0).ser(se_ListRoutesCommand).de(de_ListRoutesCommand).build() {
4006
+ };
4007
+ __name(_ListRoutesCommand, "ListRoutesCommand");
4008
+ var ListRoutesCommand = _ListRoutesCommand;
4009
+
4010
+ // src/commands/ListTagsForResourceCommand.ts
4011
+
4012
+
4013
+
4014
+
4015
+ var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
4016
+ ...commonParams
4017
+ }).m(function(Command, cs, config, o) {
4018
+ return [
4019
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4020
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4021
+ ];
4022
+ }).s("AppMesh", "ListTagsForResource", {}).n("AppMeshClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
4023
+ };
4024
+ __name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
4025
+ var ListTagsForResourceCommand = _ListTagsForResourceCommand;
4026
+
4027
+ // src/commands/ListVirtualGatewaysCommand.ts
4028
+
4029
+
4030
+
4031
+
4032
+ var _ListVirtualGatewaysCommand = class _ListVirtualGatewaysCommand extends import_smithy_client.Command.classBuilder().ep({
4033
+ ...commonParams
4034
+ }).m(function(Command, cs, config, o) {
4035
+ return [
4036
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4037
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4038
+ ];
4039
+ }).s("AppMesh", "ListVirtualGateways", {}).n("AppMeshClient", "ListVirtualGatewaysCommand").f(void 0, void 0).ser(se_ListVirtualGatewaysCommand).de(de_ListVirtualGatewaysCommand).build() {
4040
+ };
4041
+ __name(_ListVirtualGatewaysCommand, "ListVirtualGatewaysCommand");
4042
+ var ListVirtualGatewaysCommand = _ListVirtualGatewaysCommand;
4043
+
4044
+ // src/commands/ListVirtualNodesCommand.ts
4045
+
4046
+
4047
+
4048
+
4049
+ var _ListVirtualNodesCommand = class _ListVirtualNodesCommand extends import_smithy_client.Command.classBuilder().ep({
4050
+ ...commonParams
4051
+ }).m(function(Command, cs, config, o) {
4052
+ return [
4053
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4054
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4055
+ ];
4056
+ }).s("AppMesh", "ListVirtualNodes", {}).n("AppMeshClient", "ListVirtualNodesCommand").f(void 0, void 0).ser(se_ListVirtualNodesCommand).de(de_ListVirtualNodesCommand).build() {
4057
+ };
4058
+ __name(_ListVirtualNodesCommand, "ListVirtualNodesCommand");
4059
+ var ListVirtualNodesCommand = _ListVirtualNodesCommand;
4060
+
4061
+ // src/commands/ListVirtualRoutersCommand.ts
4062
+
4063
+
4064
+
4065
+
4066
+ var _ListVirtualRoutersCommand = class _ListVirtualRoutersCommand extends import_smithy_client.Command.classBuilder().ep({
4067
+ ...commonParams
4068
+ }).m(function(Command, cs, config, o) {
4069
+ return [
4070
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4071
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4072
+ ];
4073
+ }).s("AppMesh", "ListVirtualRouters", {}).n("AppMeshClient", "ListVirtualRoutersCommand").f(void 0, void 0).ser(se_ListVirtualRoutersCommand).de(de_ListVirtualRoutersCommand).build() {
4074
+ };
4075
+ __name(_ListVirtualRoutersCommand, "ListVirtualRoutersCommand");
4076
+ var ListVirtualRoutersCommand = _ListVirtualRoutersCommand;
4077
+
4078
+ // src/commands/ListVirtualServicesCommand.ts
4079
+
4080
+
4081
+
4082
+
4083
+ var _ListVirtualServicesCommand = class _ListVirtualServicesCommand extends import_smithy_client.Command.classBuilder().ep({
4084
+ ...commonParams
4085
+ }).m(function(Command, cs, config, o) {
4086
+ return [
4087
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4088
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4089
+ ];
4090
+ }).s("AppMesh", "ListVirtualServices", {}).n("AppMeshClient", "ListVirtualServicesCommand").f(void 0, void 0).ser(se_ListVirtualServicesCommand).de(de_ListVirtualServicesCommand).build() {
4091
+ };
4092
+ __name(_ListVirtualServicesCommand, "ListVirtualServicesCommand");
4093
+ var ListVirtualServicesCommand = _ListVirtualServicesCommand;
4094
+
4095
+ // src/commands/TagResourceCommand.ts
4096
+
4097
+
4098
+
4099
+
4100
+ var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
4101
+ ...commonParams
4102
+ }).m(function(Command, cs, config, o) {
4103
+ return [
4104
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4105
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4106
+ ];
4107
+ }).s("AppMesh", "TagResource", {}).n("AppMeshClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
4108
+ };
4109
+ __name(_TagResourceCommand, "TagResourceCommand");
4110
+ var TagResourceCommand = _TagResourceCommand;
4111
+
4112
+ // src/commands/UntagResourceCommand.ts
4113
+
4114
+
4115
+
4116
+
4117
+ var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
4118
+ ...commonParams
4119
+ }).m(function(Command, cs, config, o) {
4120
+ return [
4121
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4122
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4123
+ ];
4124
+ }).s("AppMesh", "UntagResource", {}).n("AppMeshClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
4125
+ };
4126
+ __name(_UntagResourceCommand, "UntagResourceCommand");
4127
+ var UntagResourceCommand = _UntagResourceCommand;
4128
+
4129
+ // src/commands/UpdateGatewayRouteCommand.ts
4130
+
4131
+
4132
+
4133
+
4134
+ var _UpdateGatewayRouteCommand = class _UpdateGatewayRouteCommand extends import_smithy_client.Command.classBuilder().ep({
4135
+ ...commonParams
4136
+ }).m(function(Command, cs, config, o) {
4137
+ return [
4138
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4139
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4140
+ ];
4141
+ }).s("AppMesh", "UpdateGatewayRoute", {}).n("AppMeshClient", "UpdateGatewayRouteCommand").f(void 0, void 0).ser(se_UpdateGatewayRouteCommand).de(de_UpdateGatewayRouteCommand).build() {
4142
+ };
4143
+ __name(_UpdateGatewayRouteCommand, "UpdateGatewayRouteCommand");
4144
+ var UpdateGatewayRouteCommand = _UpdateGatewayRouteCommand;
4145
+
4146
+ // src/commands/UpdateMeshCommand.ts
4147
+
4148
+
4149
+
4150
+
4151
+ var _UpdateMeshCommand = class _UpdateMeshCommand extends import_smithy_client.Command.classBuilder().ep({
4152
+ ...commonParams
4153
+ }).m(function(Command, cs, config, o) {
4154
+ return [
4155
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4156
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4157
+ ];
4158
+ }).s("AppMesh", "UpdateMesh", {}).n("AppMeshClient", "UpdateMeshCommand").f(void 0, void 0).ser(se_UpdateMeshCommand).de(de_UpdateMeshCommand).build() {
4159
+ };
4160
+ __name(_UpdateMeshCommand, "UpdateMeshCommand");
4161
+ var UpdateMeshCommand = _UpdateMeshCommand;
4162
+
4163
+ // src/commands/UpdateRouteCommand.ts
4164
+
4165
+
4166
+
4167
+
4168
+ var _UpdateRouteCommand = class _UpdateRouteCommand extends import_smithy_client.Command.classBuilder().ep({
4169
+ ...commonParams
4170
+ }).m(function(Command, cs, config, o) {
4171
+ return [
4172
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4173
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4174
+ ];
4175
+ }).s("AppMesh", "UpdateRoute", {}).n("AppMeshClient", "UpdateRouteCommand").f(void 0, void 0).ser(se_UpdateRouteCommand).de(de_UpdateRouteCommand).build() {
4176
+ };
4177
+ __name(_UpdateRouteCommand, "UpdateRouteCommand");
4178
+ var UpdateRouteCommand = _UpdateRouteCommand;
4179
+
4180
+ // src/commands/UpdateVirtualGatewayCommand.ts
4181
+
4182
+
4183
+
4184
+
4185
+ var _UpdateVirtualGatewayCommand = class _UpdateVirtualGatewayCommand extends import_smithy_client.Command.classBuilder().ep({
4186
+ ...commonParams
4187
+ }).m(function(Command, cs, config, o) {
4188
+ return [
4189
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4190
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4191
+ ];
4192
+ }).s("AppMesh", "UpdateVirtualGateway", {}).n("AppMeshClient", "UpdateVirtualGatewayCommand").f(void 0, void 0).ser(se_UpdateVirtualGatewayCommand).de(de_UpdateVirtualGatewayCommand).build() {
4193
+ };
4194
+ __name(_UpdateVirtualGatewayCommand, "UpdateVirtualGatewayCommand");
4195
+ var UpdateVirtualGatewayCommand = _UpdateVirtualGatewayCommand;
4196
+
4197
+ // src/commands/UpdateVirtualNodeCommand.ts
4198
+
4199
+
4200
+
4201
+
4202
+ var _UpdateVirtualNodeCommand = class _UpdateVirtualNodeCommand extends import_smithy_client.Command.classBuilder().ep({
4203
+ ...commonParams
4204
+ }).m(function(Command, cs, config, o) {
4205
+ return [
4206
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4207
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4208
+ ];
4209
+ }).s("AppMesh", "UpdateVirtualNode", {}).n("AppMeshClient", "UpdateVirtualNodeCommand").f(void 0, void 0).ser(se_UpdateVirtualNodeCommand).de(de_UpdateVirtualNodeCommand).build() {
4210
+ };
4211
+ __name(_UpdateVirtualNodeCommand, "UpdateVirtualNodeCommand");
4212
+ var UpdateVirtualNodeCommand = _UpdateVirtualNodeCommand;
4213
+
4214
+ // src/commands/UpdateVirtualRouterCommand.ts
4215
+
4216
+
4217
+
4218
+
4219
+ var _UpdateVirtualRouterCommand = class _UpdateVirtualRouterCommand extends import_smithy_client.Command.classBuilder().ep({
4220
+ ...commonParams
4221
+ }).m(function(Command, cs, config, o) {
4222
+ return [
4223
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4224
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4225
+ ];
4226
+ }).s("AppMesh", "UpdateVirtualRouter", {}).n("AppMeshClient", "UpdateVirtualRouterCommand").f(void 0, void 0).ser(se_UpdateVirtualRouterCommand).de(de_UpdateVirtualRouterCommand).build() {
4227
+ };
4228
+ __name(_UpdateVirtualRouterCommand, "UpdateVirtualRouterCommand");
4229
+ var UpdateVirtualRouterCommand = _UpdateVirtualRouterCommand;
4230
+
4231
+ // src/commands/UpdateVirtualServiceCommand.ts
4232
+
4233
+
4234
+
4235
+
4236
+ var _UpdateVirtualServiceCommand = class _UpdateVirtualServiceCommand extends import_smithy_client.Command.classBuilder().ep({
4237
+ ...commonParams
4238
+ }).m(function(Command, cs, config, o) {
4239
+ return [
4240
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
4241
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
4242
+ ];
4243
+ }).s("AppMesh", "UpdateVirtualService", {}).n("AppMeshClient", "UpdateVirtualServiceCommand").f(void 0, void 0).ser(se_UpdateVirtualServiceCommand).de(de_UpdateVirtualServiceCommand).build() {
4244
+ };
4245
+ __name(_UpdateVirtualServiceCommand, "UpdateVirtualServiceCommand");
4246
+ var UpdateVirtualServiceCommand = _UpdateVirtualServiceCommand;
4247
+
4248
+ // src/AppMesh.ts
4249
+ var commands = {
4250
+ CreateGatewayRouteCommand,
4251
+ CreateMeshCommand,
4252
+ CreateRouteCommand,
4253
+ CreateVirtualGatewayCommand,
4254
+ CreateVirtualNodeCommand,
4255
+ CreateVirtualRouterCommand,
4256
+ CreateVirtualServiceCommand,
4257
+ DeleteGatewayRouteCommand,
4258
+ DeleteMeshCommand,
4259
+ DeleteRouteCommand,
4260
+ DeleteVirtualGatewayCommand,
4261
+ DeleteVirtualNodeCommand,
4262
+ DeleteVirtualRouterCommand,
4263
+ DeleteVirtualServiceCommand,
4264
+ DescribeGatewayRouteCommand,
4265
+ DescribeMeshCommand,
4266
+ DescribeRouteCommand,
4267
+ DescribeVirtualGatewayCommand,
4268
+ DescribeVirtualNodeCommand,
4269
+ DescribeVirtualRouterCommand,
4270
+ DescribeVirtualServiceCommand,
4271
+ ListGatewayRoutesCommand,
4272
+ ListMeshesCommand,
4273
+ ListRoutesCommand,
4274
+ ListTagsForResourceCommand,
4275
+ ListVirtualGatewaysCommand,
4276
+ ListVirtualNodesCommand,
4277
+ ListVirtualRoutersCommand,
4278
+ ListVirtualServicesCommand,
4279
+ TagResourceCommand,
4280
+ UntagResourceCommand,
4281
+ UpdateGatewayRouteCommand,
4282
+ UpdateMeshCommand,
4283
+ UpdateRouteCommand,
4284
+ UpdateVirtualGatewayCommand,
4285
+ UpdateVirtualNodeCommand,
4286
+ UpdateVirtualRouterCommand,
4287
+ UpdateVirtualServiceCommand
4288
+ };
4289
+ var _AppMesh = class _AppMesh extends AppMeshClient {
4290
+ };
4291
+ __name(_AppMesh, "AppMesh");
4292
+ var AppMesh = _AppMesh;
4293
+ (0, import_smithy_client.createAggregatedClient)(commands, AppMesh);
4294
+
4295
+ // src/pagination/ListGatewayRoutesPaginator.ts
4296
+
4297
+ var paginateListGatewayRoutes = (0, import_core.createPaginator)(AppMeshClient, ListGatewayRoutesCommand, "nextToken", "nextToken", "limit");
4298
+
4299
+ // src/pagination/ListMeshesPaginator.ts
4300
+
4301
+ var paginateListMeshes = (0, import_core.createPaginator)(AppMeshClient, ListMeshesCommand, "nextToken", "nextToken", "limit");
4302
+
4303
+ // src/pagination/ListRoutesPaginator.ts
4304
+
4305
+ var paginateListRoutes = (0, import_core.createPaginator)(AppMeshClient, ListRoutesCommand, "nextToken", "nextToken", "limit");
4306
+
4307
+ // src/pagination/ListTagsForResourcePaginator.ts
4308
+
4309
+ var paginateListTagsForResource = (0, import_core.createPaginator)(AppMeshClient, ListTagsForResourceCommand, "nextToken", "nextToken", "limit");
4310
+
4311
+ // src/pagination/ListVirtualGatewaysPaginator.ts
4312
+
4313
+ var paginateListVirtualGateways = (0, import_core.createPaginator)(AppMeshClient, ListVirtualGatewaysCommand, "nextToken", "nextToken", "limit");
4314
+
4315
+ // src/pagination/ListVirtualNodesPaginator.ts
4316
+
4317
+ var paginateListVirtualNodes = (0, import_core.createPaginator)(AppMeshClient, ListVirtualNodesCommand, "nextToken", "nextToken", "limit");
4318
+
4319
+ // src/pagination/ListVirtualRoutersPaginator.ts
4320
+
4321
+ var paginateListVirtualRouters = (0, import_core.createPaginator)(AppMeshClient, ListVirtualRoutersCommand, "nextToken", "nextToken", "limit");
4322
+
4323
+ // src/pagination/ListVirtualServicesPaginator.ts
4324
+
4325
+ var paginateListVirtualServices = (0, import_core.createPaginator)(AppMeshClient, ListVirtualServicesCommand, "nextToken", "nextToken", "limit");
4326
+
4327
+ // src/index.ts
4328
+ var import_util_endpoints = require("@aws-sdk/util-endpoints");
4329
+ // Annotate the CommonJS export names for ESM import in node:
4330
+
4331
+ 0 && (module.exports = {
4332
+ AccessLog,
4333
+ AppMesh,
4334
+ AppMeshClient,
4335
+ AppMeshServiceException,
4336
+ Backend,
4337
+ BadRequestException,
4338
+ ClientTlsCertificate,
4339
+ ConflictException,
4340
+ CreateGatewayRouteCommand,
4341
+ CreateMeshCommand,
4342
+ CreateRouteCommand,
4343
+ CreateVirtualGatewayCommand,
4344
+ CreateVirtualNodeCommand,
4345
+ CreateVirtualRouterCommand,
4346
+ CreateVirtualServiceCommand,
4347
+ DefaultGatewayRouteRewrite,
4348
+ DeleteGatewayRouteCommand,
4349
+ DeleteMeshCommand,
4350
+ DeleteRouteCommand,
4351
+ DeleteVirtualGatewayCommand,
4352
+ DeleteVirtualNodeCommand,
4353
+ DeleteVirtualRouterCommand,
4354
+ DeleteVirtualServiceCommand,
4355
+ DescribeGatewayRouteCommand,
4356
+ DescribeMeshCommand,
4357
+ DescribeRouteCommand,
4358
+ DescribeVirtualGatewayCommand,
4359
+ DescribeVirtualNodeCommand,
4360
+ DescribeVirtualRouterCommand,
4361
+ DescribeVirtualServiceCommand,
4362
+ DnsResponseType,
4363
+ DurationUnit,
4364
+ EgressFilterType,
4365
+ ForbiddenException,
4366
+ GatewayRouteStatusCode,
4367
+ GrpcMetadataMatchMethod,
4368
+ GrpcRetryPolicyEvent,
4369
+ GrpcRouteMetadataMatchMethod,
4370
+ HeaderMatchMethod,
4371
+ HttpMethod,
4372
+ HttpScheme,
4373
+ InternalServerErrorException,
4374
+ IpPreference,
4375
+ LimitExceededException,
4376
+ ListGatewayRoutesCommand,
4377
+ ListMeshesCommand,
4378
+ ListRoutesCommand,
4379
+ ListTagsForResourceCommand,
4380
+ ListVirtualGatewaysCommand,
4381
+ ListVirtualNodesCommand,
4382
+ ListVirtualRoutersCommand,
4383
+ ListVirtualServicesCommand,
4384
+ ListenerTimeout,
4385
+ ListenerTlsCertificate,
4386
+ ListenerTlsMode,
4387
+ ListenerTlsValidationContextTrust,
4388
+ LoggingFormat,
4389
+ MeshStatusCode,
4390
+ NotFoundException,
4391
+ PortProtocol,
4392
+ ResourceInUseException,
4393
+ RouteStatusCode,
4394
+ ServiceDiscovery,
4395
+ ServiceUnavailableException,
4396
+ TagResourceCommand,
4397
+ TcpRetryPolicyEvent,
4398
+ TlsValidationContextTrust,
4399
+ TooManyRequestsException,
4400
+ TooManyTagsException,
4401
+ UntagResourceCommand,
4402
+ UpdateGatewayRouteCommand,
4403
+ UpdateMeshCommand,
4404
+ UpdateRouteCommand,
4405
+ UpdateVirtualGatewayCommand,
4406
+ UpdateVirtualNodeCommand,
4407
+ UpdateVirtualRouterCommand,
4408
+ UpdateVirtualServiceCommand,
4409
+ VirtualGatewayAccessLog,
4410
+ VirtualGatewayClientTlsCertificate,
4411
+ VirtualGatewayConnectionPool,
4412
+ VirtualGatewayListenerTlsCertificate,
4413
+ VirtualGatewayListenerTlsMode,
4414
+ VirtualGatewayListenerTlsValidationContextTrust,
4415
+ VirtualGatewayPortProtocol,
4416
+ VirtualGatewayStatusCode,
4417
+ VirtualGatewayTlsValidationContextTrust,
4418
+ VirtualNodeConnectionPool,
4419
+ VirtualNodeStatusCode,
4420
+ VirtualRouterStatusCode,
4421
+ VirtualServiceProvider,
4422
+ VirtualServiceStatusCode,
4423
+ __Client,
4424
+ paginateListGatewayRoutes,
4425
+ paginateListMeshes,
4426
+ paginateListRoutes,
4427
+ paginateListTagsForResource,
4428
+ paginateListVirtualGateways,
4429
+ paginateListVirtualNodes,
4430
+ paginateListVirtualRouters,
4431
+ paginateListVirtualServices
4432
+ });
4433
+