@aws-sdk/client-migration-hub-refactor-spaces 3.489.0 → 3.495.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 (43) hide show
  1. package/dist-cjs/MigrationHubRefactorSpaces.js +1 -59
  2. package/dist-cjs/MigrationHubRefactorSpacesClient.js +1 -43
  3. package/dist-cjs/commands/CreateApplicationCommand.js +1 -29
  4. package/dist-cjs/commands/CreateEnvironmentCommand.js +1 -29
  5. package/dist-cjs/commands/CreateRouteCommand.js +1 -29
  6. package/dist-cjs/commands/CreateServiceCommand.js +1 -29
  7. package/dist-cjs/commands/DeleteApplicationCommand.js +1 -28
  8. package/dist-cjs/commands/DeleteEnvironmentCommand.js +1 -28
  9. package/dist-cjs/commands/DeleteResourcePolicyCommand.js +1 -28
  10. package/dist-cjs/commands/DeleteRouteCommand.js +1 -28
  11. package/dist-cjs/commands/DeleteServiceCommand.js +1 -28
  12. package/dist-cjs/commands/GetApplicationCommand.js +1 -29
  13. package/dist-cjs/commands/GetEnvironmentCommand.js +1 -29
  14. package/dist-cjs/commands/GetResourcePolicyCommand.js +1 -28
  15. package/dist-cjs/commands/GetRouteCommand.js +1 -29
  16. package/dist-cjs/commands/GetServiceCommand.js +1 -29
  17. package/dist-cjs/commands/ListApplicationsCommand.js +1 -29
  18. package/dist-cjs/commands/ListEnvironmentVpcsCommand.js +1 -28
  19. package/dist-cjs/commands/ListEnvironmentsCommand.js +1 -29
  20. package/dist-cjs/commands/ListRoutesCommand.js +1 -29
  21. package/dist-cjs/commands/ListServicesCommand.js +1 -29
  22. package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -29
  23. package/dist-cjs/commands/PutResourcePolicyCommand.js +1 -28
  24. package/dist-cjs/commands/TagResourceCommand.js +1 -29
  25. package/dist-cjs/commands/UntagResourceCommand.js +1 -29
  26. package/dist-cjs/commands/UpdateRouteCommand.js +1 -28
  27. package/dist-cjs/commands/index.js +1 -27
  28. package/dist-cjs/endpoint/EndpointParameters.js +1 -18
  29. package/dist-cjs/extensionConfiguration.js +1 -2
  30. package/dist-cjs/index.js +2961 -11
  31. package/dist-cjs/models/MigrationHubRefactorSpacesServiceException.js +1 -12
  32. package/dist-cjs/models/index.js +1 -4
  33. package/dist-cjs/models/models_0.js +1 -345
  34. package/dist-cjs/pagination/Interfaces.js +1 -2
  35. package/dist-cjs/pagination/ListApplicationsPaginator.js +1 -7
  36. package/dist-cjs/pagination/ListEnvironmentVpcsPaginator.js +1 -7
  37. package/dist-cjs/pagination/ListEnvironmentsPaginator.js +1 -7
  38. package/dist-cjs/pagination/ListRoutesPaginator.js +1 -7
  39. package/dist-cjs/pagination/ListServicesPaginator.js +1 -7
  40. package/dist-cjs/pagination/index.js +1 -9
  41. package/dist-cjs/protocols/Aws_restJson1.js +1 -1910
  42. package/dist-cjs/runtimeExtensions.js +1 -22
  43. package/package.json +40 -40
package/dist-cjs/index.js CHANGED
@@ -1,12 +1,2962 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MigrationHubRefactorSpacesServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./MigrationHubRefactorSpacesClient"), exports);
6
- tslib_1.__exportStar(require("./MigrationHubRefactorSpaces"), 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 MigrationHubRefactorSpacesServiceException_1 = require("./models/MigrationHubRefactorSpacesServiceException");
12
- Object.defineProperty(exports, "MigrationHubRefactorSpacesServiceException", { enumerable: true, get: function () { return MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException; } });
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
+ AccessDeniedException: () => AccessDeniedException,
25
+ ApiGatewayEndpointType: () => ApiGatewayEndpointType,
26
+ ApplicationState: () => ApplicationState,
27
+ ApplicationSummaryFilterSensitiveLog: () => ApplicationSummaryFilterSensitiveLog,
28
+ ConflictException: () => ConflictException,
29
+ CreateApplicationCommand: () => CreateApplicationCommand,
30
+ CreateApplicationRequestFilterSensitiveLog: () => CreateApplicationRequestFilterSensitiveLog,
31
+ CreateApplicationResponseFilterSensitiveLog: () => CreateApplicationResponseFilterSensitiveLog,
32
+ CreateEnvironmentCommand: () => CreateEnvironmentCommand,
33
+ CreateEnvironmentRequestFilterSensitiveLog: () => CreateEnvironmentRequestFilterSensitiveLog,
34
+ CreateEnvironmentResponseFilterSensitiveLog: () => CreateEnvironmentResponseFilterSensitiveLog,
35
+ CreateRouteCommand: () => CreateRouteCommand,
36
+ CreateRouteRequestFilterSensitiveLog: () => CreateRouteRequestFilterSensitiveLog,
37
+ CreateRouteResponseFilterSensitiveLog: () => CreateRouteResponseFilterSensitiveLog,
38
+ CreateServiceCommand: () => CreateServiceCommand,
39
+ CreateServiceRequestFilterSensitiveLog: () => CreateServiceRequestFilterSensitiveLog,
40
+ CreateServiceResponseFilterSensitiveLog: () => CreateServiceResponseFilterSensitiveLog,
41
+ DeleteApplicationCommand: () => DeleteApplicationCommand,
42
+ DeleteEnvironmentCommand: () => DeleteEnvironmentCommand,
43
+ DeleteResourcePolicyCommand: () => DeleteResourcePolicyCommand,
44
+ DeleteRouteCommand: () => DeleteRouteCommand,
45
+ DeleteServiceCommand: () => DeleteServiceCommand,
46
+ EnvironmentState: () => EnvironmentState,
47
+ EnvironmentSummaryFilterSensitiveLog: () => EnvironmentSummaryFilterSensitiveLog,
48
+ ErrorCode: () => ErrorCode,
49
+ ErrorResourceType: () => ErrorResourceType,
50
+ GetApplicationCommand: () => GetApplicationCommand,
51
+ GetApplicationResponseFilterSensitiveLog: () => GetApplicationResponseFilterSensitiveLog,
52
+ GetEnvironmentCommand: () => GetEnvironmentCommand,
53
+ GetEnvironmentResponseFilterSensitiveLog: () => GetEnvironmentResponseFilterSensitiveLog,
54
+ GetResourcePolicyCommand: () => GetResourcePolicyCommand,
55
+ GetRouteCommand: () => GetRouteCommand,
56
+ GetRouteResponseFilterSensitiveLog: () => GetRouteResponseFilterSensitiveLog,
57
+ GetServiceCommand: () => GetServiceCommand,
58
+ GetServiceResponseFilterSensitiveLog: () => GetServiceResponseFilterSensitiveLog,
59
+ HttpMethod: () => HttpMethod,
60
+ InternalServerException: () => InternalServerException,
61
+ InvalidResourcePolicyException: () => InvalidResourcePolicyException,
62
+ ListApplicationsCommand: () => ListApplicationsCommand,
63
+ ListApplicationsResponseFilterSensitiveLog: () => ListApplicationsResponseFilterSensitiveLog,
64
+ ListEnvironmentVpcsCommand: () => ListEnvironmentVpcsCommand,
65
+ ListEnvironmentsCommand: () => ListEnvironmentsCommand,
66
+ ListEnvironmentsResponseFilterSensitiveLog: () => ListEnvironmentsResponseFilterSensitiveLog,
67
+ ListRoutesCommand: () => ListRoutesCommand,
68
+ ListRoutesResponseFilterSensitiveLog: () => ListRoutesResponseFilterSensitiveLog,
69
+ ListServicesCommand: () => ListServicesCommand,
70
+ ListServicesResponseFilterSensitiveLog: () => ListServicesResponseFilterSensitiveLog,
71
+ ListTagsForResourceCommand: () => ListTagsForResourceCommand,
72
+ ListTagsForResourceResponseFilterSensitiveLog: () => ListTagsForResourceResponseFilterSensitiveLog,
73
+ MigrationHubRefactorSpaces: () => MigrationHubRefactorSpaces,
74
+ MigrationHubRefactorSpacesClient: () => MigrationHubRefactorSpacesClient,
75
+ MigrationHubRefactorSpacesServiceException: () => MigrationHubRefactorSpacesServiceException,
76
+ NetworkFabricType: () => NetworkFabricType,
77
+ ProxyType: () => ProxyType,
78
+ PutResourcePolicyCommand: () => PutResourcePolicyCommand,
79
+ ResourceNotFoundException: () => ResourceNotFoundException,
80
+ RouteActivationState: () => RouteActivationState,
81
+ RouteState: () => RouteState,
82
+ RouteSummaryFilterSensitiveLog: () => RouteSummaryFilterSensitiveLog,
83
+ RouteType: () => RouteType,
84
+ ServiceEndpointType: () => ServiceEndpointType,
85
+ ServiceQuotaExceededException: () => ServiceQuotaExceededException,
86
+ ServiceState: () => ServiceState,
87
+ ServiceSummaryFilterSensitiveLog: () => ServiceSummaryFilterSensitiveLog,
88
+ TagResourceCommand: () => TagResourceCommand,
89
+ TagResourceRequestFilterSensitiveLog: () => TagResourceRequestFilterSensitiveLog,
90
+ ThrottlingException: () => ThrottlingException,
91
+ UntagResourceCommand: () => UntagResourceCommand,
92
+ UntagResourceRequestFilterSensitiveLog: () => UntagResourceRequestFilterSensitiveLog,
93
+ UpdateRouteCommand: () => UpdateRouteCommand,
94
+ ValidationException: () => ValidationException,
95
+ __Client: () => import_smithy_client.Client,
96
+ paginateListApplications: () => paginateListApplications,
97
+ paginateListEnvironmentVpcs: () => paginateListEnvironmentVpcs,
98
+ paginateListEnvironments: () => paginateListEnvironments,
99
+ paginateListRoutes: () => paginateListRoutes,
100
+ paginateListServices: () => paginateListServices
101
+ });
102
+ module.exports = __toCommonJS(src_exports);
103
+
104
+ // src/MigrationHubRefactorSpacesClient.ts
105
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
106
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
107
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
108
+ var import_middleware_signing = require("@aws-sdk/middleware-signing");
109
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
110
+ var import_config_resolver = require("@smithy/config-resolver");
111
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
112
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
113
+ var import_middleware_retry = require("@smithy/middleware-retry");
114
+
115
+
116
+ // src/endpoint/EndpointParameters.ts
117
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
118
+ return {
119
+ ...options,
120
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
121
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
122
+ defaultSigningName: "refactor-spaces"
123
+ };
124
+ }, "resolveClientEndpointParameters");
125
+ var commonParams = {
126
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
127
+ Endpoint: { type: "builtInParams", name: "endpoint" },
128
+ Region: { type: "builtInParams", name: "region" },
129
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
130
+ };
131
+
132
+ // src/MigrationHubRefactorSpacesClient.ts
133
+ var import_runtimeConfig = require("././runtimeConfig");
134
+
135
+ // src/runtimeExtensions.ts
136
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
137
+ var import_protocol_http = require("@smithy/protocol-http");
138
+ var import_smithy_client = require("@smithy/smithy-client");
139
+ var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
140
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
141
+ const extensionConfiguration = {
142
+ ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
143
+ ...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
144
+ ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
145
+ };
146
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
147
+ return {
148
+ ...runtimeConfig,
149
+ ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
150
+ ...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
151
+ ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
152
+ };
153
+ }, "resolveRuntimeExtensions");
154
+
155
+ // src/MigrationHubRefactorSpacesClient.ts
156
+ var _MigrationHubRefactorSpacesClient = class _MigrationHubRefactorSpacesClient extends import_smithy_client.Client {
157
+ constructor(...[configuration]) {
158
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
159
+ const _config_1 = resolveClientEndpointParameters(_config_0);
160
+ const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
161
+ const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
162
+ const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
163
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
164
+ const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
165
+ const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
166
+ const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
167
+ super(_config_8);
168
+ this.config = _config_8;
169
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
170
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
171
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
172
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
173
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
174
+ this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
175
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
176
+ }
177
+ /**
178
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
179
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
180
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
181
+ */
182
+ destroy() {
183
+ super.destroy();
184
+ }
185
+ };
186
+ __name(_MigrationHubRefactorSpacesClient, "MigrationHubRefactorSpacesClient");
187
+ var MigrationHubRefactorSpacesClient = _MigrationHubRefactorSpacesClient;
188
+
189
+ // src/MigrationHubRefactorSpaces.ts
190
+
191
+
192
+ // src/commands/CreateApplicationCommand.ts
193
+
194
+ var import_middleware_serde = require("@smithy/middleware-serde");
195
+
196
+ var import_types = require("@smithy/types");
197
+
198
+ // src/models/models_0.ts
199
+
200
+
201
+ // src/models/MigrationHubRefactorSpacesServiceException.ts
202
+
203
+ var _MigrationHubRefactorSpacesServiceException = class _MigrationHubRefactorSpacesServiceException extends import_smithy_client.ServiceException {
204
+ /**
205
+ * @internal
206
+ */
207
+ constructor(options) {
208
+ super(options);
209
+ Object.setPrototypeOf(this, _MigrationHubRefactorSpacesServiceException.prototype);
210
+ }
211
+ };
212
+ __name(_MigrationHubRefactorSpacesServiceException, "MigrationHubRefactorSpacesServiceException");
213
+ var MigrationHubRefactorSpacesServiceException = _MigrationHubRefactorSpacesServiceException;
214
+
215
+ // src/models/models_0.ts
216
+ var _AccessDeniedException = class _AccessDeniedException extends MigrationHubRefactorSpacesServiceException {
217
+ /**
218
+ * @internal
219
+ */
220
+ constructor(opts) {
221
+ super({
222
+ name: "AccessDeniedException",
223
+ $fault: "client",
224
+ ...opts
225
+ });
226
+ this.name = "AccessDeniedException";
227
+ this.$fault = "client";
228
+ Object.setPrototypeOf(this, _AccessDeniedException.prototype);
229
+ this.Message = opts.Message;
230
+ }
231
+ };
232
+ __name(_AccessDeniedException, "AccessDeniedException");
233
+ var AccessDeniedException = _AccessDeniedException;
234
+ var ApiGatewayEndpointType = {
235
+ PRIVATE: "PRIVATE",
236
+ REGIONAL: "REGIONAL"
237
+ };
238
+ var ApplicationState = {
239
+ ACTIVE: "ACTIVE",
240
+ CREATING: "CREATING",
241
+ DELETING: "DELETING",
242
+ FAILED: "FAILED",
243
+ UPDATING: "UPDATING"
244
+ };
245
+ var ErrorCode = {
246
+ INVALID_RESOURCE_STATE: "INVALID_RESOURCE_STATE",
247
+ NOT_AUTHORIZED: "NOT_AUTHORIZED",
248
+ REQUEST_LIMIT_EXCEEDED: "REQUEST_LIMIT_EXCEEDED",
249
+ RESOURCE_CREATION_FAILURE: "RESOURCE_CREATION_FAILURE",
250
+ RESOURCE_DELETION_FAILURE: "RESOURCE_DELETION_FAILURE",
251
+ RESOURCE_IN_USE: "RESOURCE_IN_USE",
252
+ RESOURCE_LIMIT_EXCEEDED: "RESOURCE_LIMIT_EXCEEDED",
253
+ RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND",
254
+ RESOURCE_RETRIEVAL_FAILURE: "RESOURCE_RETRIEVAL_FAILURE",
255
+ RESOURCE_UPDATE_FAILURE: "RESOURCE_UPDATE_FAILURE",
256
+ SERVICE_ENDPOINT_HEALTH_CHECK_FAILURE: "SERVICE_ENDPOINT_HEALTH_CHECK_FAILURE",
257
+ STATE_TRANSITION_FAILURE: "STATE_TRANSITION_FAILURE"
258
+ };
259
+ var ErrorResourceType = {
260
+ API_GATEWAY: "API_GATEWAY",
261
+ APPLICATION: "APPLICATION",
262
+ ENVIRONMENT: "ENVIRONMENT",
263
+ IAM_ROLE: "IAM_ROLE",
264
+ LAMBDA: "LAMBDA",
265
+ LOAD_BALANCER_LISTENER: "LOAD_BALANCER_LISTENER",
266
+ NLB: "NLB",
267
+ RESOURCE_SHARE: "RESOURCE_SHARE",
268
+ ROUTE: "ROUTE",
269
+ ROUTE_TABLE: "ROUTE_TABLE",
270
+ SECURITY_GROUP: "SECURITY_GROUP",
271
+ SERVICE: "SERVICE",
272
+ SUBNET: "SUBNET",
273
+ TARGET_GROUP: "TARGET_GROUP",
274
+ TRANSIT_GATEWAY: "TRANSIT_GATEWAY",
275
+ TRANSIT_GATEWAY_ATTACHMENT: "TRANSIT_GATEWAY_ATTACHMENT",
276
+ VPC: "VPC",
277
+ VPC_ENDPOINT_SERVICE_CONFIGURATION: "VPC_ENDPOINT_SERVICE_CONFIGURATION",
278
+ VPC_LINK: "VPC_LINK"
279
+ };
280
+ var ProxyType = {
281
+ API_GATEWAY: "API_GATEWAY"
282
+ };
283
+ var _ConflictException = class _ConflictException extends MigrationHubRefactorSpacesServiceException {
284
+ /**
285
+ * @internal
286
+ */
287
+ constructor(opts) {
288
+ super({
289
+ name: "ConflictException",
290
+ $fault: "client",
291
+ ...opts
292
+ });
293
+ this.name = "ConflictException";
294
+ this.$fault = "client";
295
+ Object.setPrototypeOf(this, _ConflictException.prototype);
296
+ this.Message = opts.Message;
297
+ this.ResourceId = opts.ResourceId;
298
+ this.ResourceType = opts.ResourceType;
299
+ }
300
+ };
301
+ __name(_ConflictException, "ConflictException");
302
+ var ConflictException = _ConflictException;
303
+ var _InternalServerException = class _InternalServerException extends MigrationHubRefactorSpacesServiceException {
304
+ /**
305
+ * @internal
306
+ */
307
+ constructor(opts) {
308
+ super({
309
+ name: "InternalServerException",
310
+ $fault: "server",
311
+ ...opts
312
+ });
313
+ this.name = "InternalServerException";
314
+ this.$fault = "server";
315
+ Object.setPrototypeOf(this, _InternalServerException.prototype);
316
+ this.Message = opts.Message;
317
+ }
318
+ };
319
+ __name(_InternalServerException, "InternalServerException");
320
+ var InternalServerException = _InternalServerException;
321
+ var _ResourceNotFoundException = class _ResourceNotFoundException extends MigrationHubRefactorSpacesServiceException {
322
+ /**
323
+ * @internal
324
+ */
325
+ constructor(opts) {
326
+ super({
327
+ name: "ResourceNotFoundException",
328
+ $fault: "client",
329
+ ...opts
330
+ });
331
+ this.name = "ResourceNotFoundException";
332
+ this.$fault = "client";
333
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
334
+ this.Message = opts.Message;
335
+ this.ResourceId = opts.ResourceId;
336
+ this.ResourceType = opts.ResourceType;
337
+ }
338
+ };
339
+ __name(_ResourceNotFoundException, "ResourceNotFoundException");
340
+ var ResourceNotFoundException = _ResourceNotFoundException;
341
+ var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends MigrationHubRefactorSpacesServiceException {
342
+ /**
343
+ * @internal
344
+ */
345
+ constructor(opts) {
346
+ super({
347
+ name: "ServiceQuotaExceededException",
348
+ $fault: "client",
349
+ ...opts
350
+ });
351
+ this.name = "ServiceQuotaExceededException";
352
+ this.$fault = "client";
353
+ Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
354
+ this.Message = opts.Message;
355
+ this.ResourceId = opts.ResourceId;
356
+ this.ResourceType = opts.ResourceType;
357
+ this.QuotaCode = opts.QuotaCode;
358
+ this.ServiceCode = opts.ServiceCode;
359
+ }
360
+ };
361
+ __name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
362
+ var ServiceQuotaExceededException = _ServiceQuotaExceededException;
363
+ var _ThrottlingException = class _ThrottlingException extends MigrationHubRefactorSpacesServiceException {
364
+ /**
365
+ * @internal
366
+ */
367
+ constructor(opts) {
368
+ super({
369
+ name: "ThrottlingException",
370
+ $fault: "client",
371
+ ...opts
372
+ });
373
+ this.name = "ThrottlingException";
374
+ this.$fault = "client";
375
+ Object.setPrototypeOf(this, _ThrottlingException.prototype);
376
+ this.Message = opts.Message;
377
+ this.QuotaCode = opts.QuotaCode;
378
+ this.ServiceCode = opts.ServiceCode;
379
+ this.RetryAfterSeconds = opts.RetryAfterSeconds;
380
+ }
381
+ };
382
+ __name(_ThrottlingException, "ThrottlingException");
383
+ var ThrottlingException = _ThrottlingException;
384
+ var _ValidationException = class _ValidationException extends MigrationHubRefactorSpacesServiceException {
385
+ /**
386
+ * @internal
387
+ */
388
+ constructor(opts) {
389
+ super({
390
+ name: "ValidationException",
391
+ $fault: "client",
392
+ ...opts
393
+ });
394
+ this.name = "ValidationException";
395
+ this.$fault = "client";
396
+ Object.setPrototypeOf(this, _ValidationException.prototype);
397
+ this.Message = opts.Message;
398
+ }
399
+ };
400
+ __name(_ValidationException, "ValidationException");
401
+ var ValidationException = _ValidationException;
402
+ var NetworkFabricType = {
403
+ NONE: "NONE",
404
+ TRANSIT_GATEWAY: "TRANSIT_GATEWAY"
405
+ };
406
+ var EnvironmentState = {
407
+ ACTIVE: "ACTIVE",
408
+ CREATING: "CREATING",
409
+ DELETING: "DELETING",
410
+ FAILED: "FAILED"
411
+ };
412
+ var RouteActivationState = {
413
+ ACTIVE: "ACTIVE",
414
+ INACTIVE: "INACTIVE"
415
+ };
416
+ var RouteType = {
417
+ DEFAULT: "DEFAULT",
418
+ URI_PATH: "URI_PATH"
419
+ };
420
+ var HttpMethod = {
421
+ DELETE: "DELETE",
422
+ GET: "GET",
423
+ HEAD: "HEAD",
424
+ OPTIONS: "OPTIONS",
425
+ PATCH: "PATCH",
426
+ POST: "POST",
427
+ PUT: "PUT"
428
+ };
429
+ var RouteState = {
430
+ ACTIVE: "ACTIVE",
431
+ CREATING: "CREATING",
432
+ DELETING: "DELETING",
433
+ FAILED: "FAILED",
434
+ INACTIVE: "INACTIVE",
435
+ UPDATING: "UPDATING"
436
+ };
437
+ var ServiceEndpointType = {
438
+ LAMBDA: "LAMBDA",
439
+ URL: "URL"
440
+ };
441
+ var ServiceState = {
442
+ ACTIVE: "ACTIVE",
443
+ CREATING: "CREATING",
444
+ DELETING: "DELETING",
445
+ FAILED: "FAILED"
446
+ };
447
+ var _InvalidResourcePolicyException = class _InvalidResourcePolicyException extends MigrationHubRefactorSpacesServiceException {
448
+ /**
449
+ * @internal
450
+ */
451
+ constructor(opts) {
452
+ super({
453
+ name: "InvalidResourcePolicyException",
454
+ $fault: "client",
455
+ ...opts
456
+ });
457
+ this.name = "InvalidResourcePolicyException";
458
+ this.$fault = "client";
459
+ Object.setPrototypeOf(this, _InvalidResourcePolicyException.prototype);
460
+ this.Message = opts.Message;
461
+ }
462
+ };
463
+ __name(_InvalidResourcePolicyException, "InvalidResourcePolicyException");
464
+ var InvalidResourcePolicyException = _InvalidResourcePolicyException;
465
+ var ApplicationSummaryFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
466
+ ...obj,
467
+ ...obj.Tags && { Tags: import_smithy_client.SENSITIVE_STRING }
468
+ }), "ApplicationSummaryFilterSensitiveLog");
469
+ var CreateApplicationRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
470
+ ...obj,
471
+ ...obj.Tags && { Tags: import_smithy_client.SENSITIVE_STRING }
472
+ }), "CreateApplicationRequestFilterSensitiveLog");
473
+ var CreateApplicationResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
474
+ ...obj,
475
+ ...obj.Tags && { Tags: import_smithy_client.SENSITIVE_STRING }
476
+ }), "CreateApplicationResponseFilterSensitiveLog");
477
+ var CreateEnvironmentRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
478
+ ...obj,
479
+ ...obj.Tags && { Tags: import_smithy_client.SENSITIVE_STRING }
480
+ }), "CreateEnvironmentRequestFilterSensitiveLog");
481
+ var CreateEnvironmentResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
482
+ ...obj,
483
+ ...obj.Tags && { Tags: import_smithy_client.SENSITIVE_STRING }
484
+ }), "CreateEnvironmentResponseFilterSensitiveLog");
485
+ var CreateRouteRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
486
+ ...obj,
487
+ ...obj.Tags && { Tags: import_smithy_client.SENSITIVE_STRING }
488
+ }), "CreateRouteRequestFilterSensitiveLog");
489
+ var CreateRouteResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
490
+ ...obj,
491
+ ...obj.Tags && { Tags: import_smithy_client.SENSITIVE_STRING }
492
+ }), "CreateRouteResponseFilterSensitiveLog");
493
+ var CreateServiceRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
494
+ ...obj,
495
+ ...obj.Tags && { Tags: import_smithy_client.SENSITIVE_STRING }
496
+ }), "CreateServiceRequestFilterSensitiveLog");
497
+ var CreateServiceResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
498
+ ...obj,
499
+ ...obj.Tags && { Tags: import_smithy_client.SENSITIVE_STRING }
500
+ }), "CreateServiceResponseFilterSensitiveLog");
501
+ var EnvironmentSummaryFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
502
+ ...obj,
503
+ ...obj.Tags && { Tags: import_smithy_client.SENSITIVE_STRING }
504
+ }), "EnvironmentSummaryFilterSensitiveLog");
505
+ var GetApplicationResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
506
+ ...obj,
507
+ ...obj.Tags && { Tags: import_smithy_client.SENSITIVE_STRING }
508
+ }), "GetApplicationResponseFilterSensitiveLog");
509
+ var GetEnvironmentResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
510
+ ...obj,
511
+ ...obj.Tags && { Tags: import_smithy_client.SENSITIVE_STRING }
512
+ }), "GetEnvironmentResponseFilterSensitiveLog");
513
+ var GetRouteResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
514
+ ...obj,
515
+ ...obj.Tags && { Tags: import_smithy_client.SENSITIVE_STRING }
516
+ }), "GetRouteResponseFilterSensitiveLog");
517
+ var GetServiceResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
518
+ ...obj,
519
+ ...obj.Tags && { Tags: import_smithy_client.SENSITIVE_STRING }
520
+ }), "GetServiceResponseFilterSensitiveLog");
521
+ var ListApplicationsResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
522
+ ...obj,
523
+ ...obj.ApplicationSummaryList && {
524
+ ApplicationSummaryList: obj.ApplicationSummaryList.map((item) => ApplicationSummaryFilterSensitiveLog(item))
525
+ }
526
+ }), "ListApplicationsResponseFilterSensitiveLog");
527
+ var ListEnvironmentsResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
528
+ ...obj,
529
+ ...obj.EnvironmentSummaryList && {
530
+ EnvironmentSummaryList: obj.EnvironmentSummaryList.map((item) => EnvironmentSummaryFilterSensitiveLog(item))
531
+ }
532
+ }), "ListEnvironmentsResponseFilterSensitiveLog");
533
+ var RouteSummaryFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
534
+ ...obj,
535
+ ...obj.Tags && { Tags: import_smithy_client.SENSITIVE_STRING }
536
+ }), "RouteSummaryFilterSensitiveLog");
537
+ var ListRoutesResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
538
+ ...obj,
539
+ ...obj.RouteSummaryList && {
540
+ RouteSummaryList: obj.RouteSummaryList.map((item) => RouteSummaryFilterSensitiveLog(item))
541
+ }
542
+ }), "ListRoutesResponseFilterSensitiveLog");
543
+ var ServiceSummaryFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
544
+ ...obj,
545
+ ...obj.Tags && { Tags: import_smithy_client.SENSITIVE_STRING }
546
+ }), "ServiceSummaryFilterSensitiveLog");
547
+ var ListServicesResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
548
+ ...obj,
549
+ ...obj.ServiceSummaryList && {
550
+ ServiceSummaryList: obj.ServiceSummaryList.map((item) => ServiceSummaryFilterSensitiveLog(item))
551
+ }
552
+ }), "ListServicesResponseFilterSensitiveLog");
553
+ var ListTagsForResourceResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
554
+ ...obj,
555
+ ...obj.Tags && { Tags: import_smithy_client.SENSITIVE_STRING }
556
+ }), "ListTagsForResourceResponseFilterSensitiveLog");
557
+ var TagResourceRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
558
+ ...obj,
559
+ ...obj.Tags && { Tags: import_smithy_client.SENSITIVE_STRING }
560
+ }), "TagResourceRequestFilterSensitiveLog");
561
+ var UntagResourceRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
562
+ ...obj,
563
+ ...obj.TagKeys && { TagKeys: import_smithy_client.SENSITIVE_STRING }
564
+ }), "UntagResourceRequestFilterSensitiveLog");
565
+
566
+ // src/protocols/Aws_restJson1.ts
567
+ var import_core = require("@smithy/core");
568
+
569
+ var import_uuid = require("uuid");
570
+ var se_CreateApplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
571
+ const b = (0, import_core.requestBuilder)(input, context);
572
+ const headers = {
573
+ "content-type": "application/json"
574
+ };
575
+ b.bp("/environments/{EnvironmentIdentifier}/applications");
576
+ b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
577
+ let body;
578
+ body = JSON.stringify(
579
+ (0, import_smithy_client.take)(input, {
580
+ ApiGatewayProxy: (_) => (0, import_smithy_client._json)(_),
581
+ ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
582
+ Name: [],
583
+ ProxyType: [],
584
+ Tags: (_) => (0, import_smithy_client._json)(_),
585
+ VpcId: []
586
+ })
587
+ );
588
+ b.m("POST").h(headers).b(body);
589
+ return b.build();
590
+ }, "se_CreateApplicationCommand");
591
+ var se_CreateEnvironmentCommand = /* @__PURE__ */ __name(async (input, context) => {
592
+ const b = (0, import_core.requestBuilder)(input, context);
593
+ const headers = {
594
+ "content-type": "application/json"
595
+ };
596
+ b.bp("/environments");
597
+ let body;
598
+ body = JSON.stringify(
599
+ (0, import_smithy_client.take)(input, {
600
+ ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
601
+ Description: [],
602
+ Name: [],
603
+ NetworkFabricType: [],
604
+ Tags: (_) => (0, import_smithy_client._json)(_)
605
+ })
606
+ );
607
+ b.m("POST").h(headers).b(body);
608
+ return b.build();
609
+ }, "se_CreateEnvironmentCommand");
610
+ var se_CreateRouteCommand = /* @__PURE__ */ __name(async (input, context) => {
611
+ const b = (0, import_core.requestBuilder)(input, context);
612
+ const headers = {
613
+ "content-type": "application/json"
614
+ };
615
+ b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/routes");
616
+ b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
617
+ b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
618
+ let body;
619
+ body = JSON.stringify(
620
+ (0, import_smithy_client.take)(input, {
621
+ ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
622
+ DefaultRoute: (_) => (0, import_smithy_client._json)(_),
623
+ RouteType: [],
624
+ ServiceIdentifier: [],
625
+ Tags: (_) => (0, import_smithy_client._json)(_),
626
+ UriPathRoute: (_) => (0, import_smithy_client._json)(_)
627
+ })
628
+ );
629
+ b.m("POST").h(headers).b(body);
630
+ return b.build();
631
+ }, "se_CreateRouteCommand");
632
+ var se_CreateServiceCommand = /* @__PURE__ */ __name(async (input, context) => {
633
+ const b = (0, import_core.requestBuilder)(input, context);
634
+ const headers = {
635
+ "content-type": "application/json"
636
+ };
637
+ b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/services");
638
+ b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
639
+ b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
640
+ let body;
641
+ body = JSON.stringify(
642
+ (0, import_smithy_client.take)(input, {
643
+ ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
644
+ Description: [],
645
+ EndpointType: [],
646
+ LambdaEndpoint: (_) => (0, import_smithy_client._json)(_),
647
+ Name: [],
648
+ Tags: (_) => (0, import_smithy_client._json)(_),
649
+ UrlEndpoint: (_) => (0, import_smithy_client._json)(_),
650
+ VpcId: []
651
+ })
652
+ );
653
+ b.m("POST").h(headers).b(body);
654
+ return b.build();
655
+ }, "se_CreateServiceCommand");
656
+ var se_DeleteApplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
657
+ const b = (0, import_core.requestBuilder)(input, context);
658
+ const headers = {};
659
+ b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}");
660
+ b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
661
+ b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
662
+ let body;
663
+ b.m("DELETE").h(headers).b(body);
664
+ return b.build();
665
+ }, "se_DeleteApplicationCommand");
666
+ var se_DeleteEnvironmentCommand = /* @__PURE__ */ __name(async (input, context) => {
667
+ const b = (0, import_core.requestBuilder)(input, context);
668
+ const headers = {};
669
+ b.bp("/environments/{EnvironmentIdentifier}");
670
+ b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
671
+ let body;
672
+ b.m("DELETE").h(headers).b(body);
673
+ return b.build();
674
+ }, "se_DeleteEnvironmentCommand");
675
+ var se_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
676
+ const b = (0, import_core.requestBuilder)(input, context);
677
+ const headers = {};
678
+ b.bp("/resourcepolicy/{Identifier}");
679
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
680
+ let body;
681
+ b.m("DELETE").h(headers).b(body);
682
+ return b.build();
683
+ }, "se_DeleteResourcePolicyCommand");
684
+ var se_DeleteRouteCommand = /* @__PURE__ */ __name(async (input, context) => {
685
+ const b = (0, import_core.requestBuilder)(input, context);
686
+ const headers = {};
687
+ b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/routes/{RouteIdentifier}");
688
+ b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
689
+ b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
690
+ b.p("RouteIdentifier", () => input.RouteIdentifier, "{RouteIdentifier}", false);
691
+ let body;
692
+ b.m("DELETE").h(headers).b(body);
693
+ return b.build();
694
+ }, "se_DeleteRouteCommand");
695
+ var se_DeleteServiceCommand = /* @__PURE__ */ __name(async (input, context) => {
696
+ const b = (0, import_core.requestBuilder)(input, context);
697
+ const headers = {};
698
+ b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/services/{ServiceIdentifier}");
699
+ b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
700
+ b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
701
+ b.p("ServiceIdentifier", () => input.ServiceIdentifier, "{ServiceIdentifier}", false);
702
+ let body;
703
+ b.m("DELETE").h(headers).b(body);
704
+ return b.build();
705
+ }, "se_DeleteServiceCommand");
706
+ var se_GetApplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
707
+ const b = (0, import_core.requestBuilder)(input, context);
708
+ const headers = {};
709
+ b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}");
710
+ b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
711
+ b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
712
+ let body;
713
+ b.m("GET").h(headers).b(body);
714
+ return b.build();
715
+ }, "se_GetApplicationCommand");
716
+ var se_GetEnvironmentCommand = /* @__PURE__ */ __name(async (input, context) => {
717
+ const b = (0, import_core.requestBuilder)(input, context);
718
+ const headers = {};
719
+ b.bp("/environments/{EnvironmentIdentifier}");
720
+ b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
721
+ let body;
722
+ b.m("GET").h(headers).b(body);
723
+ return b.build();
724
+ }, "se_GetEnvironmentCommand");
725
+ var se_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
726
+ const b = (0, import_core.requestBuilder)(input, context);
727
+ const headers = {};
728
+ b.bp("/resourcepolicy/{Identifier}");
729
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
730
+ let body;
731
+ b.m("GET").h(headers).b(body);
732
+ return b.build();
733
+ }, "se_GetResourcePolicyCommand");
734
+ var se_GetRouteCommand = /* @__PURE__ */ __name(async (input, context) => {
735
+ const b = (0, import_core.requestBuilder)(input, context);
736
+ const headers = {};
737
+ b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/routes/{RouteIdentifier}");
738
+ b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
739
+ b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
740
+ b.p("RouteIdentifier", () => input.RouteIdentifier, "{RouteIdentifier}", false);
741
+ let body;
742
+ b.m("GET").h(headers).b(body);
743
+ return b.build();
744
+ }, "se_GetRouteCommand");
745
+ var se_GetServiceCommand = /* @__PURE__ */ __name(async (input, context) => {
746
+ const b = (0, import_core.requestBuilder)(input, context);
747
+ const headers = {};
748
+ b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/services/{ServiceIdentifier}");
749
+ b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
750
+ b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
751
+ b.p("ServiceIdentifier", () => input.ServiceIdentifier, "{ServiceIdentifier}", false);
752
+ let body;
753
+ b.m("GET").h(headers).b(body);
754
+ return b.build();
755
+ }, "se_GetServiceCommand");
756
+ var se_ListApplicationsCommand = /* @__PURE__ */ __name(async (input, context) => {
757
+ const b = (0, import_core.requestBuilder)(input, context);
758
+ const headers = {};
759
+ b.bp("/environments/{EnvironmentIdentifier}/applications");
760
+ b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
761
+ const query = (0, import_smithy_client.map)({
762
+ [_nT]: [, input[_NT]],
763
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
764
+ });
765
+ let body;
766
+ b.m("GET").h(headers).q(query).b(body);
767
+ return b.build();
768
+ }, "se_ListApplicationsCommand");
769
+ var se_ListEnvironmentsCommand = /* @__PURE__ */ __name(async (input, context) => {
770
+ const b = (0, import_core.requestBuilder)(input, context);
771
+ const headers = {};
772
+ b.bp("/environments");
773
+ const query = (0, import_smithy_client.map)({
774
+ [_nT]: [, input[_NT]],
775
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
776
+ });
777
+ let body;
778
+ b.m("GET").h(headers).q(query).b(body);
779
+ return b.build();
780
+ }, "se_ListEnvironmentsCommand");
781
+ var se_ListEnvironmentVpcsCommand = /* @__PURE__ */ __name(async (input, context) => {
782
+ const b = (0, import_core.requestBuilder)(input, context);
783
+ const headers = {};
784
+ b.bp("/environments/{EnvironmentIdentifier}/vpcs");
785
+ b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
786
+ const query = (0, import_smithy_client.map)({
787
+ [_nT]: [, input[_NT]],
788
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
789
+ });
790
+ let body;
791
+ b.m("GET").h(headers).q(query).b(body);
792
+ return b.build();
793
+ }, "se_ListEnvironmentVpcsCommand");
794
+ var se_ListRoutesCommand = /* @__PURE__ */ __name(async (input, context) => {
795
+ const b = (0, import_core.requestBuilder)(input, context);
796
+ const headers = {};
797
+ b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/routes");
798
+ b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
799
+ b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
800
+ const query = (0, import_smithy_client.map)({
801
+ [_nT]: [, input[_NT]],
802
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
803
+ });
804
+ let body;
805
+ b.m("GET").h(headers).q(query).b(body);
806
+ return b.build();
807
+ }, "se_ListRoutesCommand");
808
+ var se_ListServicesCommand = /* @__PURE__ */ __name(async (input, context) => {
809
+ const b = (0, import_core.requestBuilder)(input, context);
810
+ const headers = {};
811
+ b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/services");
812
+ b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
813
+ b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
814
+ const query = (0, import_smithy_client.map)({
815
+ [_nT]: [, input[_NT]],
816
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
817
+ });
818
+ let body;
819
+ b.m("GET").h(headers).q(query).b(body);
820
+ return b.build();
821
+ }, "se_ListServicesCommand");
822
+ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
823
+ const b = (0, import_core.requestBuilder)(input, context);
824
+ const headers = {};
825
+ b.bp("/tags/{ResourceArn}");
826
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
827
+ let body;
828
+ b.m("GET").h(headers).b(body);
829
+ return b.build();
830
+ }, "se_ListTagsForResourceCommand");
831
+ var se_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
832
+ const b = (0, import_core.requestBuilder)(input, context);
833
+ const headers = {
834
+ "content-type": "application/json"
835
+ };
836
+ b.bp("/resourcepolicy");
837
+ let body;
838
+ body = JSON.stringify(
839
+ (0, import_smithy_client.take)(input, {
840
+ Policy: [],
841
+ ResourceArn: []
842
+ })
843
+ );
844
+ b.m("PUT").h(headers).b(body);
845
+ return b.build();
846
+ }, "se_PutResourcePolicyCommand");
847
+ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
848
+ const b = (0, import_core.requestBuilder)(input, context);
849
+ const headers = {
850
+ "content-type": "application/json"
851
+ };
852
+ b.bp("/tags/{ResourceArn}");
853
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
854
+ let body;
855
+ body = JSON.stringify(
856
+ (0, import_smithy_client.take)(input, {
857
+ Tags: (_) => (0, import_smithy_client._json)(_)
858
+ })
859
+ );
860
+ b.m("POST").h(headers).b(body);
861
+ return b.build();
862
+ }, "se_TagResourceCommand");
863
+ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
864
+ const b = (0, import_core.requestBuilder)(input, context);
865
+ const headers = {};
866
+ b.bp("/tags/{ResourceArn}");
867
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
868
+ const query = (0, import_smithy_client.map)({
869
+ [_tK]: [
870
+ (0, import_smithy_client.expectNonNull)(input.TagKeys, `TagKeys`) != null,
871
+ () => (input[_TK] || []).map((_entry) => _entry)
872
+ ]
873
+ });
874
+ let body;
875
+ b.m("DELETE").h(headers).q(query).b(body);
876
+ return b.build();
877
+ }, "se_UntagResourceCommand");
878
+ var se_UpdateRouteCommand = /* @__PURE__ */ __name(async (input, context) => {
879
+ const b = (0, import_core.requestBuilder)(input, context);
880
+ const headers = {
881
+ "content-type": "application/json"
882
+ };
883
+ b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/routes/{RouteIdentifier}");
884
+ b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
885
+ b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
886
+ b.p("RouteIdentifier", () => input.RouteIdentifier, "{RouteIdentifier}", false);
887
+ let body;
888
+ body = JSON.stringify(
889
+ (0, import_smithy_client.take)(input, {
890
+ ActivationState: []
891
+ })
892
+ );
893
+ b.m("PATCH").h(headers).b(body);
894
+ return b.build();
895
+ }, "se_UpdateRouteCommand");
896
+ var de_CreateApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
897
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
898
+ return de_CreateApplicationCommandError(output, context);
899
+ }
900
+ const contents = (0, import_smithy_client.map)({
901
+ $metadata: deserializeMetadata(output)
902
+ });
903
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
904
+ const doc = (0, import_smithy_client.take)(data, {
905
+ ApiGatewayProxy: import_smithy_client._json,
906
+ ApplicationId: import_smithy_client.expectString,
907
+ Arn: import_smithy_client.expectString,
908
+ CreatedByAccountId: import_smithy_client.expectString,
909
+ CreatedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
910
+ EnvironmentId: import_smithy_client.expectString,
911
+ LastUpdatedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
912
+ Name: import_smithy_client.expectString,
913
+ OwnerAccountId: import_smithy_client.expectString,
914
+ ProxyType: import_smithy_client.expectString,
915
+ State: import_smithy_client.expectString,
916
+ Tags: import_smithy_client._json,
917
+ VpcId: import_smithy_client.expectString
918
+ });
919
+ Object.assign(contents, doc);
920
+ return contents;
921
+ }, "de_CreateApplicationCommand");
922
+ var de_CreateApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
923
+ const parsedOutput = {
924
+ ...output,
925
+ body: await parseErrorBody(output.body, context)
926
+ };
927
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
928
+ switch (errorCode) {
929
+ case "AccessDeniedException":
930
+ case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
931
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
932
+ case "ConflictException":
933
+ case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
934
+ throw await de_ConflictExceptionRes(parsedOutput, context);
935
+ case "InternalServerException":
936
+ case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
937
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
938
+ case "ResourceNotFoundException":
939
+ case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
940
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
941
+ case "ServiceQuotaExceededException":
942
+ case "com.amazonaws.migrationhubrefactorspaces#ServiceQuotaExceededException":
943
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
944
+ case "ThrottlingException":
945
+ case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
946
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
947
+ case "ValidationException":
948
+ case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
949
+ throw await de_ValidationExceptionRes(parsedOutput, context);
950
+ default:
951
+ const parsedBody = parsedOutput.body;
952
+ return throwDefaultError({
953
+ output,
954
+ parsedBody,
955
+ errorCode
956
+ });
957
+ }
958
+ }, "de_CreateApplicationCommandError");
959
+ var de_CreateEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) => {
960
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
961
+ return de_CreateEnvironmentCommandError(output, context);
962
+ }
963
+ const contents = (0, import_smithy_client.map)({
964
+ $metadata: deserializeMetadata(output)
965
+ });
966
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
967
+ const doc = (0, import_smithy_client.take)(data, {
968
+ Arn: import_smithy_client.expectString,
969
+ CreatedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
970
+ Description: import_smithy_client.expectString,
971
+ EnvironmentId: import_smithy_client.expectString,
972
+ LastUpdatedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
973
+ Name: import_smithy_client.expectString,
974
+ NetworkFabricType: import_smithy_client.expectString,
975
+ OwnerAccountId: import_smithy_client.expectString,
976
+ State: import_smithy_client.expectString,
977
+ Tags: import_smithy_client._json
978
+ });
979
+ Object.assign(contents, doc);
980
+ return contents;
981
+ }, "de_CreateEnvironmentCommand");
982
+ var de_CreateEnvironmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
983
+ const parsedOutput = {
984
+ ...output,
985
+ body: await parseErrorBody(output.body, context)
986
+ };
987
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
988
+ switch (errorCode) {
989
+ case "AccessDeniedException":
990
+ case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
991
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
992
+ case "ConflictException":
993
+ case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
994
+ throw await de_ConflictExceptionRes(parsedOutput, context);
995
+ case "InternalServerException":
996
+ case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
997
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
998
+ case "ResourceNotFoundException":
999
+ case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
1000
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1001
+ case "ServiceQuotaExceededException":
1002
+ case "com.amazonaws.migrationhubrefactorspaces#ServiceQuotaExceededException":
1003
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1004
+ case "ThrottlingException":
1005
+ case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
1006
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1007
+ case "ValidationException":
1008
+ case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
1009
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1010
+ default:
1011
+ const parsedBody = parsedOutput.body;
1012
+ return throwDefaultError({
1013
+ output,
1014
+ parsedBody,
1015
+ errorCode
1016
+ });
1017
+ }
1018
+ }, "de_CreateEnvironmentCommandError");
1019
+ var de_CreateRouteCommand = /* @__PURE__ */ __name(async (output, context) => {
1020
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1021
+ return de_CreateRouteCommandError(output, context);
1022
+ }
1023
+ const contents = (0, import_smithy_client.map)({
1024
+ $metadata: deserializeMetadata(output)
1025
+ });
1026
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1027
+ const doc = (0, import_smithy_client.take)(data, {
1028
+ ApplicationId: import_smithy_client.expectString,
1029
+ Arn: import_smithy_client.expectString,
1030
+ CreatedByAccountId: import_smithy_client.expectString,
1031
+ CreatedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1032
+ LastUpdatedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1033
+ OwnerAccountId: import_smithy_client.expectString,
1034
+ RouteId: import_smithy_client.expectString,
1035
+ RouteType: import_smithy_client.expectString,
1036
+ ServiceId: import_smithy_client.expectString,
1037
+ State: import_smithy_client.expectString,
1038
+ Tags: import_smithy_client._json,
1039
+ UriPathRoute: import_smithy_client._json
1040
+ });
1041
+ Object.assign(contents, doc);
1042
+ return contents;
1043
+ }, "de_CreateRouteCommand");
1044
+ var de_CreateRouteCommandError = /* @__PURE__ */ __name(async (output, context) => {
1045
+ const parsedOutput = {
1046
+ ...output,
1047
+ body: await parseErrorBody(output.body, context)
1048
+ };
1049
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1050
+ switch (errorCode) {
1051
+ case "AccessDeniedException":
1052
+ case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
1053
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1054
+ case "ConflictException":
1055
+ case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
1056
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1057
+ case "InternalServerException":
1058
+ case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
1059
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1060
+ case "ResourceNotFoundException":
1061
+ case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
1062
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1063
+ case "ServiceQuotaExceededException":
1064
+ case "com.amazonaws.migrationhubrefactorspaces#ServiceQuotaExceededException":
1065
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1066
+ case "ThrottlingException":
1067
+ case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
1068
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1069
+ case "ValidationException":
1070
+ case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
1071
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1072
+ default:
1073
+ const parsedBody = parsedOutput.body;
1074
+ return throwDefaultError({
1075
+ output,
1076
+ parsedBody,
1077
+ errorCode
1078
+ });
1079
+ }
1080
+ }, "de_CreateRouteCommandError");
1081
+ var de_CreateServiceCommand = /* @__PURE__ */ __name(async (output, context) => {
1082
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1083
+ return de_CreateServiceCommandError(output, context);
1084
+ }
1085
+ const contents = (0, import_smithy_client.map)({
1086
+ $metadata: deserializeMetadata(output)
1087
+ });
1088
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1089
+ const doc = (0, import_smithy_client.take)(data, {
1090
+ ApplicationId: import_smithy_client.expectString,
1091
+ Arn: import_smithy_client.expectString,
1092
+ CreatedByAccountId: import_smithy_client.expectString,
1093
+ CreatedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1094
+ Description: import_smithy_client.expectString,
1095
+ EndpointType: import_smithy_client.expectString,
1096
+ EnvironmentId: import_smithy_client.expectString,
1097
+ LambdaEndpoint: import_smithy_client._json,
1098
+ LastUpdatedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1099
+ Name: import_smithy_client.expectString,
1100
+ OwnerAccountId: import_smithy_client.expectString,
1101
+ ServiceId: import_smithy_client.expectString,
1102
+ State: import_smithy_client.expectString,
1103
+ Tags: import_smithy_client._json,
1104
+ UrlEndpoint: import_smithy_client._json,
1105
+ VpcId: import_smithy_client.expectString
1106
+ });
1107
+ Object.assign(contents, doc);
1108
+ return contents;
1109
+ }, "de_CreateServiceCommand");
1110
+ var de_CreateServiceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1111
+ const parsedOutput = {
1112
+ ...output,
1113
+ body: await parseErrorBody(output.body, context)
1114
+ };
1115
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1116
+ switch (errorCode) {
1117
+ case "AccessDeniedException":
1118
+ case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
1119
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1120
+ case "ConflictException":
1121
+ case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
1122
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1123
+ case "InternalServerException":
1124
+ case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
1125
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1126
+ case "ResourceNotFoundException":
1127
+ case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
1128
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1129
+ case "ServiceQuotaExceededException":
1130
+ case "com.amazonaws.migrationhubrefactorspaces#ServiceQuotaExceededException":
1131
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1132
+ case "ThrottlingException":
1133
+ case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
1134
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1135
+ case "ValidationException":
1136
+ case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
1137
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1138
+ default:
1139
+ const parsedBody = parsedOutput.body;
1140
+ return throwDefaultError({
1141
+ output,
1142
+ parsedBody,
1143
+ errorCode
1144
+ });
1145
+ }
1146
+ }, "de_CreateServiceCommandError");
1147
+ var de_DeleteApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
1148
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1149
+ return de_DeleteApplicationCommandError(output, context);
1150
+ }
1151
+ const contents = (0, import_smithy_client.map)({
1152
+ $metadata: deserializeMetadata(output)
1153
+ });
1154
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1155
+ const doc = (0, import_smithy_client.take)(data, {
1156
+ ApplicationId: import_smithy_client.expectString,
1157
+ Arn: import_smithy_client.expectString,
1158
+ EnvironmentId: import_smithy_client.expectString,
1159
+ LastUpdatedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1160
+ Name: import_smithy_client.expectString,
1161
+ State: import_smithy_client.expectString
1162
+ });
1163
+ Object.assign(contents, doc);
1164
+ return contents;
1165
+ }, "de_DeleteApplicationCommand");
1166
+ var de_DeleteApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1167
+ const parsedOutput = {
1168
+ ...output,
1169
+ body: await parseErrorBody(output.body, context)
1170
+ };
1171
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1172
+ switch (errorCode) {
1173
+ case "AccessDeniedException":
1174
+ case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
1175
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1176
+ case "ConflictException":
1177
+ case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
1178
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1179
+ case "InternalServerException":
1180
+ case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
1181
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1182
+ case "ResourceNotFoundException":
1183
+ case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
1184
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1185
+ case "ThrottlingException":
1186
+ case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
1187
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1188
+ case "ValidationException":
1189
+ case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
1190
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1191
+ default:
1192
+ const parsedBody = parsedOutput.body;
1193
+ return throwDefaultError({
1194
+ output,
1195
+ parsedBody,
1196
+ errorCode
1197
+ });
1198
+ }
1199
+ }, "de_DeleteApplicationCommandError");
1200
+ var de_DeleteEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) => {
1201
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1202
+ return de_DeleteEnvironmentCommandError(output, context);
1203
+ }
1204
+ const contents = (0, import_smithy_client.map)({
1205
+ $metadata: deserializeMetadata(output)
1206
+ });
1207
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1208
+ const doc = (0, import_smithy_client.take)(data, {
1209
+ Arn: import_smithy_client.expectString,
1210
+ EnvironmentId: import_smithy_client.expectString,
1211
+ LastUpdatedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1212
+ Name: import_smithy_client.expectString,
1213
+ State: import_smithy_client.expectString
1214
+ });
1215
+ Object.assign(contents, doc);
1216
+ return contents;
1217
+ }, "de_DeleteEnvironmentCommand");
1218
+ var de_DeleteEnvironmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
1219
+ const parsedOutput = {
1220
+ ...output,
1221
+ body: await parseErrorBody(output.body, context)
1222
+ };
1223
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1224
+ switch (errorCode) {
1225
+ case "AccessDeniedException":
1226
+ case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
1227
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1228
+ case "ConflictException":
1229
+ case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
1230
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1231
+ case "InternalServerException":
1232
+ case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
1233
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1234
+ case "ResourceNotFoundException":
1235
+ case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
1236
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1237
+ case "ThrottlingException":
1238
+ case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
1239
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1240
+ case "ValidationException":
1241
+ case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
1242
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1243
+ default:
1244
+ const parsedBody = parsedOutput.body;
1245
+ return throwDefaultError({
1246
+ output,
1247
+ parsedBody,
1248
+ errorCode
1249
+ });
1250
+ }
1251
+ }, "de_DeleteEnvironmentCommandError");
1252
+ var de_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1253
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1254
+ return de_DeleteResourcePolicyCommandError(output, context);
1255
+ }
1256
+ const contents = (0, import_smithy_client.map)({
1257
+ $metadata: deserializeMetadata(output)
1258
+ });
1259
+ await (0, import_smithy_client.collectBody)(output.body, context);
1260
+ return contents;
1261
+ }, "de_DeleteResourcePolicyCommand");
1262
+ var de_DeleteResourcePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
1263
+ const parsedOutput = {
1264
+ ...output,
1265
+ body: await parseErrorBody(output.body, context)
1266
+ };
1267
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1268
+ switch (errorCode) {
1269
+ case "AccessDeniedException":
1270
+ case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
1271
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1272
+ case "InternalServerException":
1273
+ case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
1274
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1275
+ case "ResourceNotFoundException":
1276
+ case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
1277
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1278
+ case "ThrottlingException":
1279
+ case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
1280
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1281
+ case "ValidationException":
1282
+ case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
1283
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1284
+ default:
1285
+ const parsedBody = parsedOutput.body;
1286
+ return throwDefaultError({
1287
+ output,
1288
+ parsedBody,
1289
+ errorCode
1290
+ });
1291
+ }
1292
+ }, "de_DeleteResourcePolicyCommandError");
1293
+ var de_DeleteRouteCommand = /* @__PURE__ */ __name(async (output, context) => {
1294
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1295
+ return de_DeleteRouteCommandError(output, context);
1296
+ }
1297
+ const contents = (0, import_smithy_client.map)({
1298
+ $metadata: deserializeMetadata(output)
1299
+ });
1300
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1301
+ const doc = (0, import_smithy_client.take)(data, {
1302
+ ApplicationId: import_smithy_client.expectString,
1303
+ Arn: import_smithy_client.expectString,
1304
+ LastUpdatedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1305
+ RouteId: import_smithy_client.expectString,
1306
+ ServiceId: import_smithy_client.expectString,
1307
+ State: import_smithy_client.expectString
1308
+ });
1309
+ Object.assign(contents, doc);
1310
+ return contents;
1311
+ }, "de_DeleteRouteCommand");
1312
+ var de_DeleteRouteCommandError = /* @__PURE__ */ __name(async (output, context) => {
1313
+ const parsedOutput = {
1314
+ ...output,
1315
+ body: await parseErrorBody(output.body, context)
1316
+ };
1317
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1318
+ switch (errorCode) {
1319
+ case "AccessDeniedException":
1320
+ case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
1321
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1322
+ case "ConflictException":
1323
+ case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
1324
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1325
+ case "InternalServerException":
1326
+ case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
1327
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1328
+ case "ResourceNotFoundException":
1329
+ case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
1330
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1331
+ case "ThrottlingException":
1332
+ case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
1333
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1334
+ case "ValidationException":
1335
+ case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
1336
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1337
+ default:
1338
+ const parsedBody = parsedOutput.body;
1339
+ return throwDefaultError({
1340
+ output,
1341
+ parsedBody,
1342
+ errorCode
1343
+ });
1344
+ }
1345
+ }, "de_DeleteRouteCommandError");
1346
+ var de_DeleteServiceCommand = /* @__PURE__ */ __name(async (output, context) => {
1347
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1348
+ return de_DeleteServiceCommandError(output, context);
1349
+ }
1350
+ const contents = (0, import_smithy_client.map)({
1351
+ $metadata: deserializeMetadata(output)
1352
+ });
1353
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1354
+ const doc = (0, import_smithy_client.take)(data, {
1355
+ ApplicationId: import_smithy_client.expectString,
1356
+ Arn: import_smithy_client.expectString,
1357
+ EnvironmentId: import_smithy_client.expectString,
1358
+ LastUpdatedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1359
+ Name: import_smithy_client.expectString,
1360
+ ServiceId: import_smithy_client.expectString,
1361
+ State: import_smithy_client.expectString
1362
+ });
1363
+ Object.assign(contents, doc);
1364
+ return contents;
1365
+ }, "de_DeleteServiceCommand");
1366
+ var de_DeleteServiceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1367
+ const parsedOutput = {
1368
+ ...output,
1369
+ body: await parseErrorBody(output.body, context)
1370
+ };
1371
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1372
+ switch (errorCode) {
1373
+ case "AccessDeniedException":
1374
+ case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
1375
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1376
+ case "ConflictException":
1377
+ case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
1378
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1379
+ case "InternalServerException":
1380
+ case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
1381
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1382
+ case "ResourceNotFoundException":
1383
+ case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
1384
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1385
+ case "ThrottlingException":
1386
+ case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
1387
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1388
+ case "ValidationException":
1389
+ case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
1390
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1391
+ default:
1392
+ const parsedBody = parsedOutput.body;
1393
+ return throwDefaultError({
1394
+ output,
1395
+ parsedBody,
1396
+ errorCode
1397
+ });
1398
+ }
1399
+ }, "de_DeleteServiceCommandError");
1400
+ var de_GetApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
1401
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1402
+ return de_GetApplicationCommandError(output, context);
1403
+ }
1404
+ const contents = (0, import_smithy_client.map)({
1405
+ $metadata: deserializeMetadata(output)
1406
+ });
1407
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1408
+ const doc = (0, import_smithy_client.take)(data, {
1409
+ ApiGatewayProxy: import_smithy_client._json,
1410
+ ApplicationId: import_smithy_client.expectString,
1411
+ Arn: import_smithy_client.expectString,
1412
+ CreatedByAccountId: import_smithy_client.expectString,
1413
+ CreatedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1414
+ EnvironmentId: import_smithy_client.expectString,
1415
+ Error: import_smithy_client._json,
1416
+ LastUpdatedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1417
+ Name: import_smithy_client.expectString,
1418
+ OwnerAccountId: import_smithy_client.expectString,
1419
+ ProxyType: import_smithy_client.expectString,
1420
+ State: import_smithy_client.expectString,
1421
+ Tags: import_smithy_client._json,
1422
+ VpcId: import_smithy_client.expectString
1423
+ });
1424
+ Object.assign(contents, doc);
1425
+ return contents;
1426
+ }, "de_GetApplicationCommand");
1427
+ var de_GetApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1428
+ const parsedOutput = {
1429
+ ...output,
1430
+ body: await parseErrorBody(output.body, context)
1431
+ };
1432
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1433
+ switch (errorCode) {
1434
+ case "AccessDeniedException":
1435
+ case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
1436
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1437
+ case "InternalServerException":
1438
+ case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
1439
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1440
+ case "ResourceNotFoundException":
1441
+ case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
1442
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1443
+ case "ThrottlingException":
1444
+ case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
1445
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1446
+ case "ValidationException":
1447
+ case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
1448
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1449
+ default:
1450
+ const parsedBody = parsedOutput.body;
1451
+ return throwDefaultError({
1452
+ output,
1453
+ parsedBody,
1454
+ errorCode
1455
+ });
1456
+ }
1457
+ }, "de_GetApplicationCommandError");
1458
+ var de_GetEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) => {
1459
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1460
+ return de_GetEnvironmentCommandError(output, context);
1461
+ }
1462
+ const contents = (0, import_smithy_client.map)({
1463
+ $metadata: deserializeMetadata(output)
1464
+ });
1465
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1466
+ const doc = (0, import_smithy_client.take)(data, {
1467
+ Arn: import_smithy_client.expectString,
1468
+ CreatedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1469
+ Description: import_smithy_client.expectString,
1470
+ EnvironmentId: import_smithy_client.expectString,
1471
+ Error: import_smithy_client._json,
1472
+ LastUpdatedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1473
+ Name: import_smithy_client.expectString,
1474
+ NetworkFabricType: import_smithy_client.expectString,
1475
+ OwnerAccountId: import_smithy_client.expectString,
1476
+ State: import_smithy_client.expectString,
1477
+ Tags: import_smithy_client._json,
1478
+ TransitGatewayId: import_smithy_client.expectString
1479
+ });
1480
+ Object.assign(contents, doc);
1481
+ return contents;
1482
+ }, "de_GetEnvironmentCommand");
1483
+ var de_GetEnvironmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
1484
+ const parsedOutput = {
1485
+ ...output,
1486
+ body: await parseErrorBody(output.body, context)
1487
+ };
1488
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1489
+ switch (errorCode) {
1490
+ case "AccessDeniedException":
1491
+ case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
1492
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1493
+ case "InternalServerException":
1494
+ case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
1495
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1496
+ case "ResourceNotFoundException":
1497
+ case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
1498
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1499
+ case "ThrottlingException":
1500
+ case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
1501
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1502
+ case "ValidationException":
1503
+ case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
1504
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1505
+ default:
1506
+ const parsedBody = parsedOutput.body;
1507
+ return throwDefaultError({
1508
+ output,
1509
+ parsedBody,
1510
+ errorCode
1511
+ });
1512
+ }
1513
+ }, "de_GetEnvironmentCommandError");
1514
+ var de_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1515
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1516
+ return de_GetResourcePolicyCommandError(output, context);
1517
+ }
1518
+ const contents = (0, import_smithy_client.map)({
1519
+ $metadata: deserializeMetadata(output)
1520
+ });
1521
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1522
+ const doc = (0, import_smithy_client.take)(data, {
1523
+ Policy: import_smithy_client.expectString
1524
+ });
1525
+ Object.assign(contents, doc);
1526
+ return contents;
1527
+ }, "de_GetResourcePolicyCommand");
1528
+ var de_GetResourcePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
1529
+ const parsedOutput = {
1530
+ ...output,
1531
+ body: await parseErrorBody(output.body, context)
1532
+ };
1533
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1534
+ switch (errorCode) {
1535
+ case "AccessDeniedException":
1536
+ case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
1537
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1538
+ case "InternalServerException":
1539
+ case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
1540
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1541
+ case "ResourceNotFoundException":
1542
+ case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
1543
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1544
+ case "ThrottlingException":
1545
+ case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
1546
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1547
+ case "ValidationException":
1548
+ case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
1549
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1550
+ default:
1551
+ const parsedBody = parsedOutput.body;
1552
+ return throwDefaultError({
1553
+ output,
1554
+ parsedBody,
1555
+ errorCode
1556
+ });
1557
+ }
1558
+ }, "de_GetResourcePolicyCommandError");
1559
+ var de_GetRouteCommand = /* @__PURE__ */ __name(async (output, context) => {
1560
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1561
+ return de_GetRouteCommandError(output, context);
1562
+ }
1563
+ const contents = (0, import_smithy_client.map)({
1564
+ $metadata: deserializeMetadata(output)
1565
+ });
1566
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1567
+ const doc = (0, import_smithy_client.take)(data, {
1568
+ AppendSourcePath: import_smithy_client.expectBoolean,
1569
+ ApplicationId: import_smithy_client.expectString,
1570
+ Arn: import_smithy_client.expectString,
1571
+ CreatedByAccountId: import_smithy_client.expectString,
1572
+ CreatedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1573
+ EnvironmentId: import_smithy_client.expectString,
1574
+ Error: import_smithy_client._json,
1575
+ IncludeChildPaths: import_smithy_client.expectBoolean,
1576
+ LastUpdatedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1577
+ Methods: import_smithy_client._json,
1578
+ OwnerAccountId: import_smithy_client.expectString,
1579
+ PathResourceToId: import_smithy_client._json,
1580
+ RouteId: import_smithy_client.expectString,
1581
+ RouteType: import_smithy_client.expectString,
1582
+ ServiceId: import_smithy_client.expectString,
1583
+ SourcePath: import_smithy_client.expectString,
1584
+ State: import_smithy_client.expectString,
1585
+ Tags: import_smithy_client._json
1586
+ });
1587
+ Object.assign(contents, doc);
1588
+ return contents;
1589
+ }, "de_GetRouteCommand");
1590
+ var de_GetRouteCommandError = /* @__PURE__ */ __name(async (output, context) => {
1591
+ const parsedOutput = {
1592
+ ...output,
1593
+ body: await parseErrorBody(output.body, context)
1594
+ };
1595
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1596
+ switch (errorCode) {
1597
+ case "AccessDeniedException":
1598
+ case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
1599
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1600
+ case "InternalServerException":
1601
+ case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
1602
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1603
+ case "ResourceNotFoundException":
1604
+ case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
1605
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1606
+ case "ThrottlingException":
1607
+ case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
1608
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1609
+ case "ValidationException":
1610
+ case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
1611
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1612
+ default:
1613
+ const parsedBody = parsedOutput.body;
1614
+ return throwDefaultError({
1615
+ output,
1616
+ parsedBody,
1617
+ errorCode
1618
+ });
1619
+ }
1620
+ }, "de_GetRouteCommandError");
1621
+ var de_GetServiceCommand = /* @__PURE__ */ __name(async (output, context) => {
1622
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1623
+ return de_GetServiceCommandError(output, context);
1624
+ }
1625
+ const contents = (0, import_smithy_client.map)({
1626
+ $metadata: deserializeMetadata(output)
1627
+ });
1628
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1629
+ const doc = (0, import_smithy_client.take)(data, {
1630
+ ApplicationId: import_smithy_client.expectString,
1631
+ Arn: import_smithy_client.expectString,
1632
+ CreatedByAccountId: import_smithy_client.expectString,
1633
+ CreatedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1634
+ Description: import_smithy_client.expectString,
1635
+ EndpointType: import_smithy_client.expectString,
1636
+ EnvironmentId: import_smithy_client.expectString,
1637
+ Error: import_smithy_client._json,
1638
+ LambdaEndpoint: import_smithy_client._json,
1639
+ LastUpdatedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1640
+ Name: import_smithy_client.expectString,
1641
+ OwnerAccountId: import_smithy_client.expectString,
1642
+ ServiceId: import_smithy_client.expectString,
1643
+ State: import_smithy_client.expectString,
1644
+ Tags: import_smithy_client._json,
1645
+ UrlEndpoint: import_smithy_client._json,
1646
+ VpcId: import_smithy_client.expectString
1647
+ });
1648
+ Object.assign(contents, doc);
1649
+ return contents;
1650
+ }, "de_GetServiceCommand");
1651
+ var de_GetServiceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1652
+ const parsedOutput = {
1653
+ ...output,
1654
+ body: await parseErrorBody(output.body, context)
1655
+ };
1656
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1657
+ switch (errorCode) {
1658
+ case "AccessDeniedException":
1659
+ case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
1660
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1661
+ case "InternalServerException":
1662
+ case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
1663
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1664
+ case "ResourceNotFoundException":
1665
+ case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
1666
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1667
+ case "ThrottlingException":
1668
+ case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
1669
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1670
+ case "ValidationException":
1671
+ case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
1672
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1673
+ default:
1674
+ const parsedBody = parsedOutput.body;
1675
+ return throwDefaultError({
1676
+ output,
1677
+ parsedBody,
1678
+ errorCode
1679
+ });
1680
+ }
1681
+ }, "de_GetServiceCommandError");
1682
+ var de_ListApplicationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1683
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1684
+ return de_ListApplicationsCommandError(output, context);
1685
+ }
1686
+ const contents = (0, import_smithy_client.map)({
1687
+ $metadata: deserializeMetadata(output)
1688
+ });
1689
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1690
+ const doc = (0, import_smithy_client.take)(data, {
1691
+ ApplicationSummaryList: (_) => de_ApplicationSummaries(_, context),
1692
+ NextToken: import_smithy_client.expectString
1693
+ });
1694
+ Object.assign(contents, doc);
1695
+ return contents;
1696
+ }, "de_ListApplicationsCommand");
1697
+ var de_ListApplicationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1698
+ const parsedOutput = {
1699
+ ...output,
1700
+ body: await parseErrorBody(output.body, context)
1701
+ };
1702
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1703
+ switch (errorCode) {
1704
+ case "AccessDeniedException":
1705
+ case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
1706
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1707
+ case "ConflictException":
1708
+ case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
1709
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1710
+ case "InternalServerException":
1711
+ case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
1712
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1713
+ case "ResourceNotFoundException":
1714
+ case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
1715
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1716
+ case "ServiceQuotaExceededException":
1717
+ case "com.amazonaws.migrationhubrefactorspaces#ServiceQuotaExceededException":
1718
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1719
+ case "ThrottlingException":
1720
+ case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
1721
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1722
+ case "ValidationException":
1723
+ case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
1724
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1725
+ default:
1726
+ const parsedBody = parsedOutput.body;
1727
+ return throwDefaultError({
1728
+ output,
1729
+ parsedBody,
1730
+ errorCode
1731
+ });
1732
+ }
1733
+ }, "de_ListApplicationsCommandError");
1734
+ var de_ListEnvironmentsCommand = /* @__PURE__ */ __name(async (output, context) => {
1735
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1736
+ return de_ListEnvironmentsCommandError(output, context);
1737
+ }
1738
+ const contents = (0, import_smithy_client.map)({
1739
+ $metadata: deserializeMetadata(output)
1740
+ });
1741
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1742
+ const doc = (0, import_smithy_client.take)(data, {
1743
+ EnvironmentSummaryList: (_) => de_EnvironmentSummaries(_, context),
1744
+ NextToken: import_smithy_client.expectString
1745
+ });
1746
+ Object.assign(contents, doc);
1747
+ return contents;
1748
+ }, "de_ListEnvironmentsCommand");
1749
+ var de_ListEnvironmentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1750
+ const parsedOutput = {
1751
+ ...output,
1752
+ body: await parseErrorBody(output.body, context)
1753
+ };
1754
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1755
+ switch (errorCode) {
1756
+ case "AccessDeniedException":
1757
+ case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
1758
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1759
+ case "InternalServerException":
1760
+ case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
1761
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1762
+ case "ResourceNotFoundException":
1763
+ case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
1764
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1765
+ case "ThrottlingException":
1766
+ case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
1767
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1768
+ case "ValidationException":
1769
+ case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
1770
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1771
+ default:
1772
+ const parsedBody = parsedOutput.body;
1773
+ return throwDefaultError({
1774
+ output,
1775
+ parsedBody,
1776
+ errorCode
1777
+ });
1778
+ }
1779
+ }, "de_ListEnvironmentsCommandError");
1780
+ var de_ListEnvironmentVpcsCommand = /* @__PURE__ */ __name(async (output, context) => {
1781
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1782
+ return de_ListEnvironmentVpcsCommandError(output, context);
1783
+ }
1784
+ const contents = (0, import_smithy_client.map)({
1785
+ $metadata: deserializeMetadata(output)
1786
+ });
1787
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1788
+ const doc = (0, import_smithy_client.take)(data, {
1789
+ EnvironmentVpcList: (_) => de_EnvironmentVpcs(_, context),
1790
+ NextToken: import_smithy_client.expectString
1791
+ });
1792
+ Object.assign(contents, doc);
1793
+ return contents;
1794
+ }, "de_ListEnvironmentVpcsCommand");
1795
+ var de_ListEnvironmentVpcsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1796
+ const parsedOutput = {
1797
+ ...output,
1798
+ body: await parseErrorBody(output.body, context)
1799
+ };
1800
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1801
+ switch (errorCode) {
1802
+ case "AccessDeniedException":
1803
+ case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
1804
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1805
+ case "InternalServerException":
1806
+ case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
1807
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1808
+ case "ResourceNotFoundException":
1809
+ case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
1810
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1811
+ case "ThrottlingException":
1812
+ case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
1813
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1814
+ case "ValidationException":
1815
+ case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
1816
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1817
+ default:
1818
+ const parsedBody = parsedOutput.body;
1819
+ return throwDefaultError({
1820
+ output,
1821
+ parsedBody,
1822
+ errorCode
1823
+ });
1824
+ }
1825
+ }, "de_ListEnvironmentVpcsCommandError");
1826
+ var de_ListRoutesCommand = /* @__PURE__ */ __name(async (output, context) => {
1827
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1828
+ return de_ListRoutesCommandError(output, context);
1829
+ }
1830
+ const contents = (0, import_smithy_client.map)({
1831
+ $metadata: deserializeMetadata(output)
1832
+ });
1833
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1834
+ const doc = (0, import_smithy_client.take)(data, {
1835
+ NextToken: import_smithy_client.expectString,
1836
+ RouteSummaryList: (_) => de_RouteSummaries(_, context)
1837
+ });
1838
+ Object.assign(contents, doc);
1839
+ return contents;
1840
+ }, "de_ListRoutesCommand");
1841
+ var de_ListRoutesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1842
+ const parsedOutput = {
1843
+ ...output,
1844
+ body: await parseErrorBody(output.body, context)
1845
+ };
1846
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1847
+ switch (errorCode) {
1848
+ case "AccessDeniedException":
1849
+ case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
1850
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1851
+ case "ConflictException":
1852
+ case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
1853
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1854
+ case "InternalServerException":
1855
+ case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
1856
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1857
+ case "ResourceNotFoundException":
1858
+ case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
1859
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1860
+ case "ServiceQuotaExceededException":
1861
+ case "com.amazonaws.migrationhubrefactorspaces#ServiceQuotaExceededException":
1862
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1863
+ case "ThrottlingException":
1864
+ case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
1865
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1866
+ case "ValidationException":
1867
+ case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
1868
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1869
+ default:
1870
+ const parsedBody = parsedOutput.body;
1871
+ return throwDefaultError({
1872
+ output,
1873
+ parsedBody,
1874
+ errorCode
1875
+ });
1876
+ }
1877
+ }, "de_ListRoutesCommandError");
1878
+ var de_ListServicesCommand = /* @__PURE__ */ __name(async (output, context) => {
1879
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1880
+ return de_ListServicesCommandError(output, context);
1881
+ }
1882
+ const contents = (0, import_smithy_client.map)({
1883
+ $metadata: deserializeMetadata(output)
1884
+ });
1885
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1886
+ const doc = (0, import_smithy_client.take)(data, {
1887
+ NextToken: import_smithy_client.expectString,
1888
+ ServiceSummaryList: (_) => de_ServiceSummaries(_, context)
1889
+ });
1890
+ Object.assign(contents, doc);
1891
+ return contents;
1892
+ }, "de_ListServicesCommand");
1893
+ var de_ListServicesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1894
+ const parsedOutput = {
1895
+ ...output,
1896
+ body: await parseErrorBody(output.body, context)
1897
+ };
1898
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1899
+ switch (errorCode) {
1900
+ case "AccessDeniedException":
1901
+ case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
1902
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1903
+ case "ConflictException":
1904
+ case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
1905
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1906
+ case "InternalServerException":
1907
+ case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
1908
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1909
+ case "ResourceNotFoundException":
1910
+ case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
1911
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1912
+ case "ServiceQuotaExceededException":
1913
+ case "com.amazonaws.migrationhubrefactorspaces#ServiceQuotaExceededException":
1914
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1915
+ case "ThrottlingException":
1916
+ case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
1917
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1918
+ case "ValidationException":
1919
+ case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
1920
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1921
+ default:
1922
+ const parsedBody = parsedOutput.body;
1923
+ return throwDefaultError({
1924
+ output,
1925
+ parsedBody,
1926
+ errorCode
1927
+ });
1928
+ }
1929
+ }, "de_ListServicesCommandError");
1930
+ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1931
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1932
+ return de_ListTagsForResourceCommandError(output, context);
1933
+ }
1934
+ const contents = (0, import_smithy_client.map)({
1935
+ $metadata: deserializeMetadata(output)
1936
+ });
1937
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1938
+ const doc = (0, import_smithy_client.take)(data, {
1939
+ Tags: import_smithy_client._json
1940
+ });
1941
+ Object.assign(contents, doc);
1942
+ return contents;
1943
+ }, "de_ListTagsForResourceCommand");
1944
+ var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1945
+ const parsedOutput = {
1946
+ ...output,
1947
+ body: await parseErrorBody(output.body, context)
1948
+ };
1949
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1950
+ switch (errorCode) {
1951
+ case "InternalServerException":
1952
+ case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
1953
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1954
+ case "ResourceNotFoundException":
1955
+ case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
1956
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1957
+ case "ValidationException":
1958
+ case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
1959
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1960
+ default:
1961
+ const parsedBody = parsedOutput.body;
1962
+ return throwDefaultError({
1963
+ output,
1964
+ parsedBody,
1965
+ errorCode
1966
+ });
1967
+ }
1968
+ }, "de_ListTagsForResourceCommandError");
1969
+ var de_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1970
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1971
+ return de_PutResourcePolicyCommandError(output, context);
1972
+ }
1973
+ const contents = (0, import_smithy_client.map)({
1974
+ $metadata: deserializeMetadata(output)
1975
+ });
1976
+ await (0, import_smithy_client.collectBody)(output.body, context);
1977
+ return contents;
1978
+ }, "de_PutResourcePolicyCommand");
1979
+ var de_PutResourcePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
1980
+ const parsedOutput = {
1981
+ ...output,
1982
+ body: await parseErrorBody(output.body, context)
1983
+ };
1984
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1985
+ switch (errorCode) {
1986
+ case "AccessDeniedException":
1987
+ case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
1988
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1989
+ case "InternalServerException":
1990
+ case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
1991
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1992
+ case "InvalidResourcePolicyException":
1993
+ case "com.amazonaws.migrationhubrefactorspaces#InvalidResourcePolicyException":
1994
+ throw await de_InvalidResourcePolicyExceptionRes(parsedOutput, context);
1995
+ case "ResourceNotFoundException":
1996
+ case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
1997
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1998
+ case "ThrottlingException":
1999
+ case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
2000
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2001
+ case "ValidationException":
2002
+ case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
2003
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2004
+ default:
2005
+ const parsedBody = parsedOutput.body;
2006
+ return throwDefaultError({
2007
+ output,
2008
+ parsedBody,
2009
+ errorCode
2010
+ });
2011
+ }
2012
+ }, "de_PutResourcePolicyCommandError");
2013
+ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2014
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2015
+ return de_TagResourceCommandError(output, context);
2016
+ }
2017
+ const contents = (0, import_smithy_client.map)({
2018
+ $metadata: deserializeMetadata(output)
2019
+ });
2020
+ await (0, import_smithy_client.collectBody)(output.body, context);
2021
+ return contents;
2022
+ }, "de_TagResourceCommand");
2023
+ var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2024
+ const parsedOutput = {
2025
+ ...output,
2026
+ body: await parseErrorBody(output.body, context)
2027
+ };
2028
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2029
+ switch (errorCode) {
2030
+ case "InternalServerException":
2031
+ case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
2032
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2033
+ case "ResourceNotFoundException":
2034
+ case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
2035
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2036
+ case "ValidationException":
2037
+ case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
2038
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2039
+ default:
2040
+ const parsedBody = parsedOutput.body;
2041
+ return throwDefaultError({
2042
+ output,
2043
+ parsedBody,
2044
+ errorCode
2045
+ });
2046
+ }
2047
+ }, "de_TagResourceCommandError");
2048
+ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2049
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2050
+ return de_UntagResourceCommandError(output, context);
2051
+ }
2052
+ const contents = (0, import_smithy_client.map)({
2053
+ $metadata: deserializeMetadata(output)
2054
+ });
2055
+ await (0, import_smithy_client.collectBody)(output.body, context);
2056
+ return contents;
2057
+ }, "de_UntagResourceCommand");
2058
+ var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2059
+ const parsedOutput = {
2060
+ ...output,
2061
+ body: await parseErrorBody(output.body, context)
2062
+ };
2063
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2064
+ switch (errorCode) {
2065
+ case "InternalServerException":
2066
+ case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
2067
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2068
+ case "ResourceNotFoundException":
2069
+ case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
2070
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2071
+ case "ValidationException":
2072
+ case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
2073
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2074
+ default:
2075
+ const parsedBody = parsedOutput.body;
2076
+ return throwDefaultError({
2077
+ output,
2078
+ parsedBody,
2079
+ errorCode
2080
+ });
2081
+ }
2082
+ }, "de_UntagResourceCommandError");
2083
+ var de_UpdateRouteCommand = /* @__PURE__ */ __name(async (output, context) => {
2084
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2085
+ return de_UpdateRouteCommandError(output, context);
2086
+ }
2087
+ const contents = (0, import_smithy_client.map)({
2088
+ $metadata: deserializeMetadata(output)
2089
+ });
2090
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2091
+ const doc = (0, import_smithy_client.take)(data, {
2092
+ ApplicationId: import_smithy_client.expectString,
2093
+ Arn: import_smithy_client.expectString,
2094
+ LastUpdatedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2095
+ RouteId: import_smithy_client.expectString,
2096
+ ServiceId: import_smithy_client.expectString,
2097
+ State: import_smithy_client.expectString
2098
+ });
2099
+ Object.assign(contents, doc);
2100
+ return contents;
2101
+ }, "de_UpdateRouteCommand");
2102
+ var de_UpdateRouteCommandError = /* @__PURE__ */ __name(async (output, context) => {
2103
+ const parsedOutput = {
2104
+ ...output,
2105
+ body: await parseErrorBody(output.body, context)
2106
+ };
2107
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2108
+ switch (errorCode) {
2109
+ case "AccessDeniedException":
2110
+ case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
2111
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2112
+ case "InternalServerException":
2113
+ case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
2114
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2115
+ case "ResourceNotFoundException":
2116
+ case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
2117
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2118
+ case "ThrottlingException":
2119
+ case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
2120
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2121
+ case "ValidationException":
2122
+ case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
2123
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2124
+ default:
2125
+ const parsedBody = parsedOutput.body;
2126
+ return throwDefaultError({
2127
+ output,
2128
+ parsedBody,
2129
+ errorCode
2130
+ });
2131
+ }
2132
+ }, "de_UpdateRouteCommandError");
2133
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(MigrationHubRefactorSpacesServiceException);
2134
+ var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2135
+ const contents = (0, import_smithy_client.map)({});
2136
+ const data = parsedOutput.body;
2137
+ const doc = (0, import_smithy_client.take)(data, {
2138
+ Message: import_smithy_client.expectString
2139
+ });
2140
+ Object.assign(contents, doc);
2141
+ const exception = new AccessDeniedException({
2142
+ $metadata: deserializeMetadata(parsedOutput),
2143
+ ...contents
2144
+ });
2145
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2146
+ }, "de_AccessDeniedExceptionRes");
2147
+ var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2148
+ const contents = (0, import_smithy_client.map)({});
2149
+ const data = parsedOutput.body;
2150
+ const doc = (0, import_smithy_client.take)(data, {
2151
+ Message: import_smithy_client.expectString,
2152
+ ResourceId: import_smithy_client.expectString,
2153
+ ResourceType: import_smithy_client.expectString
2154
+ });
2155
+ Object.assign(contents, doc);
2156
+ const exception = new ConflictException({
2157
+ $metadata: deserializeMetadata(parsedOutput),
2158
+ ...contents
2159
+ });
2160
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2161
+ }, "de_ConflictExceptionRes");
2162
+ var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2163
+ const contents = (0, import_smithy_client.map)({});
2164
+ const data = parsedOutput.body;
2165
+ const doc = (0, import_smithy_client.take)(data, {
2166
+ Message: import_smithy_client.expectString
2167
+ });
2168
+ Object.assign(contents, doc);
2169
+ const exception = new InternalServerException({
2170
+ $metadata: deserializeMetadata(parsedOutput),
2171
+ ...contents
2172
+ });
2173
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2174
+ }, "de_InternalServerExceptionRes");
2175
+ var de_InvalidResourcePolicyExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2176
+ const contents = (0, import_smithy_client.map)({});
2177
+ const data = parsedOutput.body;
2178
+ const doc = (0, import_smithy_client.take)(data, {
2179
+ Message: import_smithy_client.expectString
2180
+ });
2181
+ Object.assign(contents, doc);
2182
+ const exception = new InvalidResourcePolicyException({
2183
+ $metadata: deserializeMetadata(parsedOutput),
2184
+ ...contents
2185
+ });
2186
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2187
+ }, "de_InvalidResourcePolicyExceptionRes");
2188
+ var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2189
+ const contents = (0, import_smithy_client.map)({});
2190
+ const data = parsedOutput.body;
2191
+ const doc = (0, import_smithy_client.take)(data, {
2192
+ Message: import_smithy_client.expectString,
2193
+ ResourceId: import_smithy_client.expectString,
2194
+ ResourceType: import_smithy_client.expectString
2195
+ });
2196
+ Object.assign(contents, doc);
2197
+ const exception = new ResourceNotFoundException({
2198
+ $metadata: deserializeMetadata(parsedOutput),
2199
+ ...contents
2200
+ });
2201
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2202
+ }, "de_ResourceNotFoundExceptionRes");
2203
+ var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2204
+ const contents = (0, import_smithy_client.map)({});
2205
+ const data = parsedOutput.body;
2206
+ const doc = (0, import_smithy_client.take)(data, {
2207
+ Message: import_smithy_client.expectString,
2208
+ QuotaCode: import_smithy_client.expectString,
2209
+ ResourceId: import_smithy_client.expectString,
2210
+ ResourceType: import_smithy_client.expectString,
2211
+ ServiceCode: import_smithy_client.expectString
2212
+ });
2213
+ Object.assign(contents, doc);
2214
+ const exception = new ServiceQuotaExceededException({
2215
+ $metadata: deserializeMetadata(parsedOutput),
2216
+ ...contents
2217
+ });
2218
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2219
+ }, "de_ServiceQuotaExceededExceptionRes");
2220
+ var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2221
+ const contents = (0, import_smithy_client.map)({
2222
+ [_RAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, import_smithy_client.strictParseInt32)(parsedOutput.headers[_ra])]
2223
+ });
2224
+ const data = parsedOutput.body;
2225
+ const doc = (0, import_smithy_client.take)(data, {
2226
+ Message: import_smithy_client.expectString,
2227
+ QuotaCode: import_smithy_client.expectString,
2228
+ ServiceCode: import_smithy_client.expectString
2229
+ });
2230
+ Object.assign(contents, doc);
2231
+ const exception = new ThrottlingException({
2232
+ $metadata: deserializeMetadata(parsedOutput),
2233
+ ...contents
2234
+ });
2235
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2236
+ }, "de_ThrottlingExceptionRes");
2237
+ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2238
+ const contents = (0, import_smithy_client.map)({});
2239
+ const data = parsedOutput.body;
2240
+ const doc = (0, import_smithy_client.take)(data, {
2241
+ Message: import_smithy_client.expectString
2242
+ });
2243
+ Object.assign(contents, doc);
2244
+ const exception = new ValidationException({
2245
+ $metadata: deserializeMetadata(parsedOutput),
2246
+ ...contents
2247
+ });
2248
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2249
+ }, "de_ValidationExceptionRes");
2250
+ var de_ApplicationSummaries = /* @__PURE__ */ __name((output, context) => {
2251
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2252
+ return de_ApplicationSummary(entry, context);
2253
+ });
2254
+ return retVal;
2255
+ }, "de_ApplicationSummaries");
2256
+ var de_ApplicationSummary = /* @__PURE__ */ __name((output, context) => {
2257
+ return (0, import_smithy_client.take)(output, {
2258
+ ApiGatewayProxy: import_smithy_client._json,
2259
+ ApplicationId: import_smithy_client.expectString,
2260
+ Arn: import_smithy_client.expectString,
2261
+ CreatedByAccountId: import_smithy_client.expectString,
2262
+ CreatedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2263
+ EnvironmentId: import_smithy_client.expectString,
2264
+ Error: import_smithy_client._json,
2265
+ LastUpdatedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2266
+ Name: import_smithy_client.expectString,
2267
+ OwnerAccountId: import_smithy_client.expectString,
2268
+ ProxyType: import_smithy_client.expectString,
2269
+ State: import_smithy_client.expectString,
2270
+ Tags: import_smithy_client._json,
2271
+ VpcId: import_smithy_client.expectString
2272
+ });
2273
+ }, "de_ApplicationSummary");
2274
+ var de_EnvironmentSummaries = /* @__PURE__ */ __name((output, context) => {
2275
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2276
+ return de_EnvironmentSummary(entry, context);
2277
+ });
2278
+ return retVal;
2279
+ }, "de_EnvironmentSummaries");
2280
+ var de_EnvironmentSummary = /* @__PURE__ */ __name((output, context) => {
2281
+ return (0, import_smithy_client.take)(output, {
2282
+ Arn: import_smithy_client.expectString,
2283
+ CreatedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2284
+ Description: import_smithy_client.expectString,
2285
+ EnvironmentId: import_smithy_client.expectString,
2286
+ Error: import_smithy_client._json,
2287
+ LastUpdatedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2288
+ Name: import_smithy_client.expectString,
2289
+ NetworkFabricType: import_smithy_client.expectString,
2290
+ OwnerAccountId: import_smithy_client.expectString,
2291
+ State: import_smithy_client.expectString,
2292
+ Tags: import_smithy_client._json,
2293
+ TransitGatewayId: import_smithy_client.expectString
2294
+ });
2295
+ }, "de_EnvironmentSummary");
2296
+ var de_EnvironmentVpc = /* @__PURE__ */ __name((output, context) => {
2297
+ return (0, import_smithy_client.take)(output, {
2298
+ AccountId: import_smithy_client.expectString,
2299
+ CidrBlocks: import_smithy_client._json,
2300
+ CreatedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2301
+ EnvironmentId: import_smithy_client.expectString,
2302
+ LastUpdatedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2303
+ VpcId: import_smithy_client.expectString,
2304
+ VpcName: import_smithy_client.expectString
2305
+ });
2306
+ }, "de_EnvironmentVpc");
2307
+ var de_EnvironmentVpcs = /* @__PURE__ */ __name((output, context) => {
2308
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2309
+ return de_EnvironmentVpc(entry, context);
2310
+ });
2311
+ return retVal;
2312
+ }, "de_EnvironmentVpcs");
2313
+ var de_RouteSummaries = /* @__PURE__ */ __name((output, context) => {
2314
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2315
+ return de_RouteSummary(entry, context);
2316
+ });
2317
+ return retVal;
2318
+ }, "de_RouteSummaries");
2319
+ var de_RouteSummary = /* @__PURE__ */ __name((output, context) => {
2320
+ return (0, import_smithy_client.take)(output, {
2321
+ AppendSourcePath: import_smithy_client.expectBoolean,
2322
+ ApplicationId: import_smithy_client.expectString,
2323
+ Arn: import_smithy_client.expectString,
2324
+ CreatedByAccountId: import_smithy_client.expectString,
2325
+ CreatedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2326
+ EnvironmentId: import_smithy_client.expectString,
2327
+ Error: import_smithy_client._json,
2328
+ IncludeChildPaths: import_smithy_client.expectBoolean,
2329
+ LastUpdatedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2330
+ Methods: import_smithy_client._json,
2331
+ OwnerAccountId: import_smithy_client.expectString,
2332
+ PathResourceToId: import_smithy_client._json,
2333
+ RouteId: import_smithy_client.expectString,
2334
+ RouteType: import_smithy_client.expectString,
2335
+ ServiceId: import_smithy_client.expectString,
2336
+ SourcePath: import_smithy_client.expectString,
2337
+ State: import_smithy_client.expectString,
2338
+ Tags: import_smithy_client._json
2339
+ });
2340
+ }, "de_RouteSummary");
2341
+ var de_ServiceSummaries = /* @__PURE__ */ __name((output, context) => {
2342
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2343
+ return de_ServiceSummary(entry, context);
2344
+ });
2345
+ return retVal;
2346
+ }, "de_ServiceSummaries");
2347
+ var de_ServiceSummary = /* @__PURE__ */ __name((output, context) => {
2348
+ return (0, import_smithy_client.take)(output, {
2349
+ ApplicationId: import_smithy_client.expectString,
2350
+ Arn: import_smithy_client.expectString,
2351
+ CreatedByAccountId: import_smithy_client.expectString,
2352
+ CreatedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2353
+ Description: import_smithy_client.expectString,
2354
+ EndpointType: import_smithy_client.expectString,
2355
+ EnvironmentId: import_smithy_client.expectString,
2356
+ Error: import_smithy_client._json,
2357
+ LambdaEndpoint: import_smithy_client._json,
2358
+ LastUpdatedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2359
+ Name: import_smithy_client.expectString,
2360
+ OwnerAccountId: import_smithy_client.expectString,
2361
+ ServiceId: import_smithy_client.expectString,
2362
+ State: import_smithy_client.expectString,
2363
+ Tags: import_smithy_client._json,
2364
+ UrlEndpoint: import_smithy_client._json,
2365
+ VpcId: import_smithy_client.expectString
2366
+ });
2367
+ }, "de_ServiceSummary");
2368
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
2369
+ httpStatusCode: output.statusCode,
2370
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
2371
+ extendedRequestId: output.headers["x-amz-id-2"],
2372
+ cfId: output.headers["x-amz-cf-id"]
2373
+ }), "deserializeMetadata");
2374
+ var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
2375
+ var _MR = "MaxResults";
2376
+ var _NT = "NextToken";
2377
+ var _RAS = "RetryAfterSeconds";
2378
+ var _TK = "TagKeys";
2379
+ var _mR = "maxResults";
2380
+ var _nT = "nextToken";
2381
+ var _ra = "retry-after";
2382
+ var _tK = "tagKeys";
2383
+ var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
2384
+ if (encoded.length) {
2385
+ return JSON.parse(encoded);
2386
+ }
2387
+ return {};
2388
+ }), "parseBody");
2389
+ var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
2390
+ const value = await parseBody(errorBody, context);
2391
+ value.message = value.message ?? value.Message;
2392
+ return value;
2393
+ }, "parseErrorBody");
2394
+ var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
2395
+ const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
2396
+ const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
2397
+ let cleanValue = rawValue;
2398
+ if (typeof cleanValue === "number") {
2399
+ cleanValue = cleanValue.toString();
2400
+ }
2401
+ if (cleanValue.indexOf(",") >= 0) {
2402
+ cleanValue = cleanValue.split(",")[0];
2403
+ }
2404
+ if (cleanValue.indexOf(":") >= 0) {
2405
+ cleanValue = cleanValue.split(":")[0];
2406
+ }
2407
+ if (cleanValue.indexOf("#") >= 0) {
2408
+ cleanValue = cleanValue.split("#")[1];
2409
+ }
2410
+ return cleanValue;
2411
+ }, "sanitizeErrorCode");
2412
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
2413
+ if (headerKey !== void 0) {
2414
+ return sanitizeErrorCode(output.headers[headerKey]);
2415
+ }
2416
+ if (data.code !== void 0) {
2417
+ return sanitizeErrorCode(data.code);
2418
+ }
2419
+ if (data["__type"] !== void 0) {
2420
+ return sanitizeErrorCode(data["__type"]);
2421
+ }
2422
+ }, "loadRestJsonErrorCode");
2423
+
2424
+ // src/commands/CreateApplicationCommand.ts
2425
+ var _CreateApplicationCommand = class _CreateApplicationCommand extends import_smithy_client.Command.classBuilder().ep({
2426
+ ...commonParams
2427
+ }).m(function(Command, cs, config, o) {
2428
+ return [
2429
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2430
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2431
+ ];
2432
+ }).s("RefactorSpaces", "CreateApplication", {}).n("MigrationHubRefactorSpacesClient", "CreateApplicationCommand").f(CreateApplicationRequestFilterSensitiveLog, CreateApplicationResponseFilterSensitiveLog).ser(se_CreateApplicationCommand).de(de_CreateApplicationCommand).build() {
2433
+ };
2434
+ __name(_CreateApplicationCommand, "CreateApplicationCommand");
2435
+ var CreateApplicationCommand = _CreateApplicationCommand;
2436
+
2437
+ // src/commands/CreateEnvironmentCommand.ts
2438
+
2439
+
2440
+
2441
+
2442
+ var _CreateEnvironmentCommand = class _CreateEnvironmentCommand extends import_smithy_client.Command.classBuilder().ep({
2443
+ ...commonParams
2444
+ }).m(function(Command, cs, config, o) {
2445
+ return [
2446
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2447
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2448
+ ];
2449
+ }).s("RefactorSpaces", "CreateEnvironment", {}).n("MigrationHubRefactorSpacesClient", "CreateEnvironmentCommand").f(CreateEnvironmentRequestFilterSensitiveLog, CreateEnvironmentResponseFilterSensitiveLog).ser(se_CreateEnvironmentCommand).de(de_CreateEnvironmentCommand).build() {
2450
+ };
2451
+ __name(_CreateEnvironmentCommand, "CreateEnvironmentCommand");
2452
+ var CreateEnvironmentCommand = _CreateEnvironmentCommand;
2453
+
2454
+ // src/commands/CreateRouteCommand.ts
2455
+
2456
+
2457
+
2458
+
2459
+ var _CreateRouteCommand = class _CreateRouteCommand extends import_smithy_client.Command.classBuilder().ep({
2460
+ ...commonParams
2461
+ }).m(function(Command, cs, config, o) {
2462
+ return [
2463
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2464
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2465
+ ];
2466
+ }).s("RefactorSpaces", "CreateRoute", {}).n("MigrationHubRefactorSpacesClient", "CreateRouteCommand").f(CreateRouteRequestFilterSensitiveLog, CreateRouteResponseFilterSensitiveLog).ser(se_CreateRouteCommand).de(de_CreateRouteCommand).build() {
2467
+ };
2468
+ __name(_CreateRouteCommand, "CreateRouteCommand");
2469
+ var CreateRouteCommand = _CreateRouteCommand;
2470
+
2471
+ // src/commands/CreateServiceCommand.ts
2472
+
2473
+
2474
+
2475
+
2476
+ var _CreateServiceCommand = class _CreateServiceCommand extends import_smithy_client.Command.classBuilder().ep({
2477
+ ...commonParams
2478
+ }).m(function(Command, cs, config, o) {
2479
+ return [
2480
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2481
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2482
+ ];
2483
+ }).s("RefactorSpaces", "CreateService", {}).n("MigrationHubRefactorSpacesClient", "CreateServiceCommand").f(CreateServiceRequestFilterSensitiveLog, CreateServiceResponseFilterSensitiveLog).ser(se_CreateServiceCommand).de(de_CreateServiceCommand).build() {
2484
+ };
2485
+ __name(_CreateServiceCommand, "CreateServiceCommand");
2486
+ var CreateServiceCommand = _CreateServiceCommand;
2487
+
2488
+ // src/commands/DeleteApplicationCommand.ts
2489
+
2490
+
2491
+
2492
+
2493
+ var _DeleteApplicationCommand = class _DeleteApplicationCommand extends import_smithy_client.Command.classBuilder().ep({
2494
+ ...commonParams
2495
+ }).m(function(Command, cs, config, o) {
2496
+ return [
2497
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2498
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2499
+ ];
2500
+ }).s("RefactorSpaces", "DeleteApplication", {}).n("MigrationHubRefactorSpacesClient", "DeleteApplicationCommand").f(void 0, void 0).ser(se_DeleteApplicationCommand).de(de_DeleteApplicationCommand).build() {
2501
+ };
2502
+ __name(_DeleteApplicationCommand, "DeleteApplicationCommand");
2503
+ var DeleteApplicationCommand = _DeleteApplicationCommand;
2504
+
2505
+ // src/commands/DeleteEnvironmentCommand.ts
2506
+
2507
+
2508
+
2509
+
2510
+ var _DeleteEnvironmentCommand = class _DeleteEnvironmentCommand extends import_smithy_client.Command.classBuilder().ep({
2511
+ ...commonParams
2512
+ }).m(function(Command, cs, config, o) {
2513
+ return [
2514
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2515
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2516
+ ];
2517
+ }).s("RefactorSpaces", "DeleteEnvironment", {}).n("MigrationHubRefactorSpacesClient", "DeleteEnvironmentCommand").f(void 0, void 0).ser(se_DeleteEnvironmentCommand).de(de_DeleteEnvironmentCommand).build() {
2518
+ };
2519
+ __name(_DeleteEnvironmentCommand, "DeleteEnvironmentCommand");
2520
+ var DeleteEnvironmentCommand = _DeleteEnvironmentCommand;
2521
+
2522
+ // src/commands/DeleteResourcePolicyCommand.ts
2523
+
2524
+
2525
+
2526
+
2527
+ var _DeleteResourcePolicyCommand = class _DeleteResourcePolicyCommand extends import_smithy_client.Command.classBuilder().ep({
2528
+ ...commonParams
2529
+ }).m(function(Command, cs, config, o) {
2530
+ return [
2531
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2532
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2533
+ ];
2534
+ }).s("RefactorSpaces", "DeleteResourcePolicy", {}).n("MigrationHubRefactorSpacesClient", "DeleteResourcePolicyCommand").f(void 0, void 0).ser(se_DeleteResourcePolicyCommand).de(de_DeleteResourcePolicyCommand).build() {
2535
+ };
2536
+ __name(_DeleteResourcePolicyCommand, "DeleteResourcePolicyCommand");
2537
+ var DeleteResourcePolicyCommand = _DeleteResourcePolicyCommand;
2538
+
2539
+ // src/commands/DeleteRouteCommand.ts
2540
+
2541
+
2542
+
2543
+
2544
+ var _DeleteRouteCommand = class _DeleteRouteCommand extends import_smithy_client.Command.classBuilder().ep({
2545
+ ...commonParams
2546
+ }).m(function(Command, cs, config, o) {
2547
+ return [
2548
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2549
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2550
+ ];
2551
+ }).s("RefactorSpaces", "DeleteRoute", {}).n("MigrationHubRefactorSpacesClient", "DeleteRouteCommand").f(void 0, void 0).ser(se_DeleteRouteCommand).de(de_DeleteRouteCommand).build() {
2552
+ };
2553
+ __name(_DeleteRouteCommand, "DeleteRouteCommand");
2554
+ var DeleteRouteCommand = _DeleteRouteCommand;
2555
+
2556
+ // src/commands/DeleteServiceCommand.ts
2557
+
2558
+
2559
+
2560
+
2561
+ var _DeleteServiceCommand = class _DeleteServiceCommand extends import_smithy_client.Command.classBuilder().ep({
2562
+ ...commonParams
2563
+ }).m(function(Command, cs, config, o) {
2564
+ return [
2565
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2566
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2567
+ ];
2568
+ }).s("RefactorSpaces", "DeleteService", {}).n("MigrationHubRefactorSpacesClient", "DeleteServiceCommand").f(void 0, void 0).ser(se_DeleteServiceCommand).de(de_DeleteServiceCommand).build() {
2569
+ };
2570
+ __name(_DeleteServiceCommand, "DeleteServiceCommand");
2571
+ var DeleteServiceCommand = _DeleteServiceCommand;
2572
+
2573
+ // src/commands/GetApplicationCommand.ts
2574
+
2575
+
2576
+
2577
+
2578
+ var _GetApplicationCommand = class _GetApplicationCommand extends import_smithy_client.Command.classBuilder().ep({
2579
+ ...commonParams
2580
+ }).m(function(Command, cs, config, o) {
2581
+ return [
2582
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2583
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2584
+ ];
2585
+ }).s("RefactorSpaces", "GetApplication", {}).n("MigrationHubRefactorSpacesClient", "GetApplicationCommand").f(void 0, GetApplicationResponseFilterSensitiveLog).ser(se_GetApplicationCommand).de(de_GetApplicationCommand).build() {
2586
+ };
2587
+ __name(_GetApplicationCommand, "GetApplicationCommand");
2588
+ var GetApplicationCommand = _GetApplicationCommand;
2589
+
2590
+ // src/commands/GetEnvironmentCommand.ts
2591
+
2592
+
2593
+
2594
+
2595
+ var _GetEnvironmentCommand = class _GetEnvironmentCommand extends import_smithy_client.Command.classBuilder().ep({
2596
+ ...commonParams
2597
+ }).m(function(Command, cs, config, o) {
2598
+ return [
2599
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2600
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2601
+ ];
2602
+ }).s("RefactorSpaces", "GetEnvironment", {}).n("MigrationHubRefactorSpacesClient", "GetEnvironmentCommand").f(void 0, GetEnvironmentResponseFilterSensitiveLog).ser(se_GetEnvironmentCommand).de(de_GetEnvironmentCommand).build() {
2603
+ };
2604
+ __name(_GetEnvironmentCommand, "GetEnvironmentCommand");
2605
+ var GetEnvironmentCommand = _GetEnvironmentCommand;
2606
+
2607
+ // src/commands/GetResourcePolicyCommand.ts
2608
+
2609
+
2610
+
2611
+
2612
+ var _GetResourcePolicyCommand = class _GetResourcePolicyCommand extends import_smithy_client.Command.classBuilder().ep({
2613
+ ...commonParams
2614
+ }).m(function(Command, cs, config, o) {
2615
+ return [
2616
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2617
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2618
+ ];
2619
+ }).s("RefactorSpaces", "GetResourcePolicy", {}).n("MigrationHubRefactorSpacesClient", "GetResourcePolicyCommand").f(void 0, void 0).ser(se_GetResourcePolicyCommand).de(de_GetResourcePolicyCommand).build() {
2620
+ };
2621
+ __name(_GetResourcePolicyCommand, "GetResourcePolicyCommand");
2622
+ var GetResourcePolicyCommand = _GetResourcePolicyCommand;
2623
+
2624
+ // src/commands/GetRouteCommand.ts
2625
+
2626
+
2627
+
2628
+
2629
+ var _GetRouteCommand = class _GetRouteCommand extends import_smithy_client.Command.classBuilder().ep({
2630
+ ...commonParams
2631
+ }).m(function(Command, cs, config, o) {
2632
+ return [
2633
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2634
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2635
+ ];
2636
+ }).s("RefactorSpaces", "GetRoute", {}).n("MigrationHubRefactorSpacesClient", "GetRouteCommand").f(void 0, GetRouteResponseFilterSensitiveLog).ser(se_GetRouteCommand).de(de_GetRouteCommand).build() {
2637
+ };
2638
+ __name(_GetRouteCommand, "GetRouteCommand");
2639
+ var GetRouteCommand = _GetRouteCommand;
2640
+
2641
+ // src/commands/GetServiceCommand.ts
2642
+
2643
+
2644
+
2645
+
2646
+ var _GetServiceCommand = class _GetServiceCommand extends import_smithy_client.Command.classBuilder().ep({
2647
+ ...commonParams
2648
+ }).m(function(Command, cs, config, o) {
2649
+ return [
2650
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2651
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2652
+ ];
2653
+ }).s("RefactorSpaces", "GetService", {}).n("MigrationHubRefactorSpacesClient", "GetServiceCommand").f(void 0, GetServiceResponseFilterSensitiveLog).ser(se_GetServiceCommand).de(de_GetServiceCommand).build() {
2654
+ };
2655
+ __name(_GetServiceCommand, "GetServiceCommand");
2656
+ var GetServiceCommand = _GetServiceCommand;
2657
+
2658
+ // src/commands/ListApplicationsCommand.ts
2659
+
2660
+
2661
+
2662
+
2663
+ var _ListApplicationsCommand = class _ListApplicationsCommand extends import_smithy_client.Command.classBuilder().ep({
2664
+ ...commonParams
2665
+ }).m(function(Command, cs, config, o) {
2666
+ return [
2667
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2668
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2669
+ ];
2670
+ }).s("RefactorSpaces", "ListApplications", {}).n("MigrationHubRefactorSpacesClient", "ListApplicationsCommand").f(void 0, ListApplicationsResponseFilterSensitiveLog).ser(se_ListApplicationsCommand).de(de_ListApplicationsCommand).build() {
2671
+ };
2672
+ __name(_ListApplicationsCommand, "ListApplicationsCommand");
2673
+ var ListApplicationsCommand = _ListApplicationsCommand;
2674
+
2675
+ // src/commands/ListEnvironmentsCommand.ts
2676
+
2677
+
2678
+
2679
+
2680
+ var _ListEnvironmentsCommand = class _ListEnvironmentsCommand extends import_smithy_client.Command.classBuilder().ep({
2681
+ ...commonParams
2682
+ }).m(function(Command, cs, config, o) {
2683
+ return [
2684
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2685
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2686
+ ];
2687
+ }).s("RefactorSpaces", "ListEnvironments", {}).n("MigrationHubRefactorSpacesClient", "ListEnvironmentsCommand").f(void 0, ListEnvironmentsResponseFilterSensitiveLog).ser(se_ListEnvironmentsCommand).de(de_ListEnvironmentsCommand).build() {
2688
+ };
2689
+ __name(_ListEnvironmentsCommand, "ListEnvironmentsCommand");
2690
+ var ListEnvironmentsCommand = _ListEnvironmentsCommand;
2691
+
2692
+ // src/commands/ListEnvironmentVpcsCommand.ts
2693
+
2694
+
2695
+
2696
+
2697
+ var _ListEnvironmentVpcsCommand = class _ListEnvironmentVpcsCommand extends import_smithy_client.Command.classBuilder().ep({
2698
+ ...commonParams
2699
+ }).m(function(Command, cs, config, o) {
2700
+ return [
2701
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2702
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2703
+ ];
2704
+ }).s("RefactorSpaces", "ListEnvironmentVpcs", {}).n("MigrationHubRefactorSpacesClient", "ListEnvironmentVpcsCommand").f(void 0, void 0).ser(se_ListEnvironmentVpcsCommand).de(de_ListEnvironmentVpcsCommand).build() {
2705
+ };
2706
+ __name(_ListEnvironmentVpcsCommand, "ListEnvironmentVpcsCommand");
2707
+ var ListEnvironmentVpcsCommand = _ListEnvironmentVpcsCommand;
2708
+
2709
+ // src/commands/ListRoutesCommand.ts
2710
+
2711
+
2712
+
2713
+
2714
+ var _ListRoutesCommand = class _ListRoutesCommand extends import_smithy_client.Command.classBuilder().ep({
2715
+ ...commonParams
2716
+ }).m(function(Command, cs, config, o) {
2717
+ return [
2718
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2719
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2720
+ ];
2721
+ }).s("RefactorSpaces", "ListRoutes", {}).n("MigrationHubRefactorSpacesClient", "ListRoutesCommand").f(void 0, ListRoutesResponseFilterSensitiveLog).ser(se_ListRoutesCommand).de(de_ListRoutesCommand).build() {
2722
+ };
2723
+ __name(_ListRoutesCommand, "ListRoutesCommand");
2724
+ var ListRoutesCommand = _ListRoutesCommand;
2725
+
2726
+ // src/commands/ListServicesCommand.ts
2727
+
2728
+
2729
+
2730
+
2731
+ var _ListServicesCommand = class _ListServicesCommand extends import_smithy_client.Command.classBuilder().ep({
2732
+ ...commonParams
2733
+ }).m(function(Command, cs, config, o) {
2734
+ return [
2735
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2736
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2737
+ ];
2738
+ }).s("RefactorSpaces", "ListServices", {}).n("MigrationHubRefactorSpacesClient", "ListServicesCommand").f(void 0, ListServicesResponseFilterSensitiveLog).ser(se_ListServicesCommand).de(de_ListServicesCommand).build() {
2739
+ };
2740
+ __name(_ListServicesCommand, "ListServicesCommand");
2741
+ var ListServicesCommand = _ListServicesCommand;
2742
+
2743
+ // src/commands/ListTagsForResourceCommand.ts
2744
+
2745
+
2746
+
2747
+
2748
+ var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
2749
+ ...commonParams
2750
+ }).m(function(Command, cs, config, o) {
2751
+ return [
2752
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2753
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2754
+ ];
2755
+ }).s("RefactorSpaces", "ListTagsForResource", {}).n("MigrationHubRefactorSpacesClient", "ListTagsForResourceCommand").f(void 0, ListTagsForResourceResponseFilterSensitiveLog).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
2756
+ };
2757
+ __name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
2758
+ var ListTagsForResourceCommand = _ListTagsForResourceCommand;
2759
+
2760
+ // src/commands/PutResourcePolicyCommand.ts
2761
+
2762
+
2763
+
2764
+
2765
+ var _PutResourcePolicyCommand = class _PutResourcePolicyCommand extends import_smithy_client.Command.classBuilder().ep({
2766
+ ...commonParams
2767
+ }).m(function(Command, cs, config, o) {
2768
+ return [
2769
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2770
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2771
+ ];
2772
+ }).s("RefactorSpaces", "PutResourcePolicy", {}).n("MigrationHubRefactorSpacesClient", "PutResourcePolicyCommand").f(void 0, void 0).ser(se_PutResourcePolicyCommand).de(de_PutResourcePolicyCommand).build() {
2773
+ };
2774
+ __name(_PutResourcePolicyCommand, "PutResourcePolicyCommand");
2775
+ var PutResourcePolicyCommand = _PutResourcePolicyCommand;
2776
+
2777
+ // src/commands/TagResourceCommand.ts
2778
+
2779
+
2780
+
2781
+
2782
+ var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
2783
+ ...commonParams
2784
+ }).m(function(Command, cs, config, o) {
2785
+ return [
2786
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2787
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2788
+ ];
2789
+ }).s("RefactorSpaces", "TagResource", {}).n("MigrationHubRefactorSpacesClient", "TagResourceCommand").f(TagResourceRequestFilterSensitiveLog, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
2790
+ };
2791
+ __name(_TagResourceCommand, "TagResourceCommand");
2792
+ var TagResourceCommand = _TagResourceCommand;
2793
+
2794
+ // src/commands/UntagResourceCommand.ts
2795
+
2796
+
2797
+
2798
+
2799
+ var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
2800
+ ...commonParams
2801
+ }).m(function(Command, cs, config, o) {
2802
+ return [
2803
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2804
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2805
+ ];
2806
+ }).s("RefactorSpaces", "UntagResource", {}).n("MigrationHubRefactorSpacesClient", "UntagResourceCommand").f(UntagResourceRequestFilterSensitiveLog, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
2807
+ };
2808
+ __name(_UntagResourceCommand, "UntagResourceCommand");
2809
+ var UntagResourceCommand = _UntagResourceCommand;
2810
+
2811
+ // src/commands/UpdateRouteCommand.ts
2812
+
2813
+
2814
+
2815
+
2816
+ var _UpdateRouteCommand = class _UpdateRouteCommand extends import_smithy_client.Command.classBuilder().ep({
2817
+ ...commonParams
2818
+ }).m(function(Command, cs, config, o) {
2819
+ return [
2820
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2821
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2822
+ ];
2823
+ }).s("RefactorSpaces", "UpdateRoute", {}).n("MigrationHubRefactorSpacesClient", "UpdateRouteCommand").f(void 0, void 0).ser(se_UpdateRouteCommand).de(de_UpdateRouteCommand).build() {
2824
+ };
2825
+ __name(_UpdateRouteCommand, "UpdateRouteCommand");
2826
+ var UpdateRouteCommand = _UpdateRouteCommand;
2827
+
2828
+ // src/MigrationHubRefactorSpaces.ts
2829
+ var commands = {
2830
+ CreateApplicationCommand,
2831
+ CreateEnvironmentCommand,
2832
+ CreateRouteCommand,
2833
+ CreateServiceCommand,
2834
+ DeleteApplicationCommand,
2835
+ DeleteEnvironmentCommand,
2836
+ DeleteResourcePolicyCommand,
2837
+ DeleteRouteCommand,
2838
+ DeleteServiceCommand,
2839
+ GetApplicationCommand,
2840
+ GetEnvironmentCommand,
2841
+ GetResourcePolicyCommand,
2842
+ GetRouteCommand,
2843
+ GetServiceCommand,
2844
+ ListApplicationsCommand,
2845
+ ListEnvironmentsCommand,
2846
+ ListEnvironmentVpcsCommand,
2847
+ ListRoutesCommand,
2848
+ ListServicesCommand,
2849
+ ListTagsForResourceCommand,
2850
+ PutResourcePolicyCommand,
2851
+ TagResourceCommand,
2852
+ UntagResourceCommand,
2853
+ UpdateRouteCommand
2854
+ };
2855
+ var _MigrationHubRefactorSpaces = class _MigrationHubRefactorSpaces extends MigrationHubRefactorSpacesClient {
2856
+ };
2857
+ __name(_MigrationHubRefactorSpaces, "MigrationHubRefactorSpaces");
2858
+ var MigrationHubRefactorSpaces = _MigrationHubRefactorSpaces;
2859
+ (0, import_smithy_client.createAggregatedClient)(commands, MigrationHubRefactorSpaces);
2860
+
2861
+ // src/pagination/ListApplicationsPaginator.ts
2862
+
2863
+ var paginateListApplications = (0, import_core.createPaginator)(MigrationHubRefactorSpacesClient, ListApplicationsCommand, "NextToken", "NextToken", "MaxResults");
2864
+
2865
+ // src/pagination/ListEnvironmentVpcsPaginator.ts
2866
+
2867
+ var paginateListEnvironmentVpcs = (0, import_core.createPaginator)(MigrationHubRefactorSpacesClient, ListEnvironmentVpcsCommand, "NextToken", "NextToken", "MaxResults");
2868
+
2869
+ // src/pagination/ListEnvironmentsPaginator.ts
2870
+
2871
+ var paginateListEnvironments = (0, import_core.createPaginator)(MigrationHubRefactorSpacesClient, ListEnvironmentsCommand, "NextToken", "NextToken", "MaxResults");
2872
+
2873
+ // src/pagination/ListRoutesPaginator.ts
2874
+
2875
+ var paginateListRoutes = (0, import_core.createPaginator)(MigrationHubRefactorSpacesClient, ListRoutesCommand, "NextToken", "NextToken", "MaxResults");
2876
+
2877
+ // src/pagination/ListServicesPaginator.ts
2878
+
2879
+ var paginateListServices = (0, import_core.createPaginator)(MigrationHubRefactorSpacesClient, ListServicesCommand, "NextToken", "NextToken", "MaxResults");
2880
+
2881
+ // src/index.ts
2882
+ var import_util_endpoints = require("@aws-sdk/util-endpoints");
2883
+ // Annotate the CommonJS export names for ESM import in node:
2884
+ 0 && (module.exports = {
2885
+ AccessDeniedException,
2886
+ ApiGatewayEndpointType,
2887
+ ApplicationState,
2888
+ ApplicationSummaryFilterSensitiveLog,
2889
+ ConflictException,
2890
+ CreateApplicationCommand,
2891
+ CreateApplicationRequestFilterSensitiveLog,
2892
+ CreateApplicationResponseFilterSensitiveLog,
2893
+ CreateEnvironmentCommand,
2894
+ CreateEnvironmentRequestFilterSensitiveLog,
2895
+ CreateEnvironmentResponseFilterSensitiveLog,
2896
+ CreateRouteCommand,
2897
+ CreateRouteRequestFilterSensitiveLog,
2898
+ CreateRouteResponseFilterSensitiveLog,
2899
+ CreateServiceCommand,
2900
+ CreateServiceRequestFilterSensitiveLog,
2901
+ CreateServiceResponseFilterSensitiveLog,
2902
+ DeleteApplicationCommand,
2903
+ DeleteEnvironmentCommand,
2904
+ DeleteResourcePolicyCommand,
2905
+ DeleteRouteCommand,
2906
+ DeleteServiceCommand,
2907
+ EnvironmentState,
2908
+ EnvironmentSummaryFilterSensitiveLog,
2909
+ ErrorCode,
2910
+ ErrorResourceType,
2911
+ GetApplicationCommand,
2912
+ GetApplicationResponseFilterSensitiveLog,
2913
+ GetEnvironmentCommand,
2914
+ GetEnvironmentResponseFilterSensitiveLog,
2915
+ GetResourcePolicyCommand,
2916
+ GetRouteCommand,
2917
+ GetRouteResponseFilterSensitiveLog,
2918
+ GetServiceCommand,
2919
+ GetServiceResponseFilterSensitiveLog,
2920
+ HttpMethod,
2921
+ InternalServerException,
2922
+ InvalidResourcePolicyException,
2923
+ ListApplicationsCommand,
2924
+ ListApplicationsResponseFilterSensitiveLog,
2925
+ ListEnvironmentVpcsCommand,
2926
+ ListEnvironmentsCommand,
2927
+ ListEnvironmentsResponseFilterSensitiveLog,
2928
+ ListRoutesCommand,
2929
+ ListRoutesResponseFilterSensitiveLog,
2930
+ ListServicesCommand,
2931
+ ListServicesResponseFilterSensitiveLog,
2932
+ ListTagsForResourceCommand,
2933
+ ListTagsForResourceResponseFilterSensitiveLog,
2934
+ MigrationHubRefactorSpaces,
2935
+ MigrationHubRefactorSpacesClient,
2936
+ MigrationHubRefactorSpacesServiceException,
2937
+ NetworkFabricType,
2938
+ ProxyType,
2939
+ PutResourcePolicyCommand,
2940
+ ResourceNotFoundException,
2941
+ RouteActivationState,
2942
+ RouteState,
2943
+ RouteSummaryFilterSensitiveLog,
2944
+ RouteType,
2945
+ ServiceEndpointType,
2946
+ ServiceQuotaExceededException,
2947
+ ServiceState,
2948
+ ServiceSummaryFilterSensitiveLog,
2949
+ TagResourceCommand,
2950
+ TagResourceRequestFilterSensitiveLog,
2951
+ ThrottlingException,
2952
+ UntagResourceCommand,
2953
+ UntagResourceRequestFilterSensitiveLog,
2954
+ UpdateRouteCommand,
2955
+ ValidationException,
2956
+ __Client,
2957
+ paginateListApplications,
2958
+ paginateListEnvironmentVpcs,
2959
+ paginateListEnvironments,
2960
+ paginateListRoutes,
2961
+ paginateListServices
2962
+ });