@aws-sdk/client-migration-hub 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 (36) hide show
  1. package/dist-cjs/MigrationHub.js +1 -45
  2. package/dist-cjs/MigrationHubClient.js +1 -43
  3. package/dist-cjs/commands/AssociateCreatedArtifactCommand.js +1 -28
  4. package/dist-cjs/commands/AssociateDiscoveredResourceCommand.js +1 -28
  5. package/dist-cjs/commands/CreateProgressUpdateStreamCommand.js +1 -28
  6. package/dist-cjs/commands/DeleteProgressUpdateStreamCommand.js +1 -28
  7. package/dist-cjs/commands/DescribeApplicationStateCommand.js +1 -28
  8. package/dist-cjs/commands/DescribeMigrationTaskCommand.js +1 -28
  9. package/dist-cjs/commands/DisassociateCreatedArtifactCommand.js +1 -28
  10. package/dist-cjs/commands/DisassociateDiscoveredResourceCommand.js +1 -28
  11. package/dist-cjs/commands/ImportMigrationTaskCommand.js +1 -28
  12. package/dist-cjs/commands/ListApplicationStatesCommand.js +1 -28
  13. package/dist-cjs/commands/ListCreatedArtifactsCommand.js +1 -28
  14. package/dist-cjs/commands/ListDiscoveredResourcesCommand.js +1 -28
  15. package/dist-cjs/commands/ListMigrationTasksCommand.js +1 -28
  16. package/dist-cjs/commands/ListProgressUpdateStreamsCommand.js +1 -28
  17. package/dist-cjs/commands/NotifyApplicationStateCommand.js +1 -28
  18. package/dist-cjs/commands/NotifyMigrationTaskStateCommand.js +1 -28
  19. package/dist-cjs/commands/PutResourceAttributesCommand.js +1 -28
  20. package/dist-cjs/commands/index.js +1 -20
  21. package/dist-cjs/endpoint/EndpointParameters.js +1 -18
  22. package/dist-cjs/extensionConfiguration.js +1 -2
  23. package/dist-cjs/index.js +2016 -11
  24. package/dist-cjs/models/MigrationHubServiceException.js +1 -12
  25. package/dist-cjs/models/index.js +1 -4
  26. package/dist-cjs/models/models_0.js +1 -168
  27. package/dist-cjs/pagination/Interfaces.js +1 -2
  28. package/dist-cjs/pagination/ListApplicationStatesPaginator.js +1 -7
  29. package/dist-cjs/pagination/ListCreatedArtifactsPaginator.js +1 -7
  30. package/dist-cjs/pagination/ListDiscoveredResourcesPaginator.js +1 -7
  31. package/dist-cjs/pagination/ListMigrationTasksPaginator.js +1 -7
  32. package/dist-cjs/pagination/ListProgressUpdateStreamsPaginator.js +1 -7
  33. package/dist-cjs/pagination/index.js +1 -9
  34. package/dist-cjs/protocols/Aws_json1_1.js +1 -1301
  35. package/dist-cjs/runtimeExtensions.js +1 -22
  36. package/package.json +40 -40
package/dist-cjs/index.js CHANGED
@@ -1,12 +1,2017 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MigrationHubServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./MigrationHubClient"), exports);
6
- tslib_1.__exportStar(require("./MigrationHub"), 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 MigrationHubServiceException_1 = require("./models/MigrationHubServiceException");
12
- Object.defineProperty(exports, "MigrationHubServiceException", { enumerable: true, get: function () { return MigrationHubServiceException_1.MigrationHubServiceException; } });
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
+ ApplicationStatus: () => ApplicationStatus,
26
+ AssociateCreatedArtifactCommand: () => AssociateCreatedArtifactCommand,
27
+ AssociateDiscoveredResourceCommand: () => AssociateDiscoveredResourceCommand,
28
+ CreateProgressUpdateStreamCommand: () => CreateProgressUpdateStreamCommand,
29
+ DeleteProgressUpdateStreamCommand: () => DeleteProgressUpdateStreamCommand,
30
+ DescribeApplicationStateCommand: () => DescribeApplicationStateCommand,
31
+ DescribeMigrationTaskCommand: () => DescribeMigrationTaskCommand,
32
+ DisassociateCreatedArtifactCommand: () => DisassociateCreatedArtifactCommand,
33
+ DisassociateDiscoveredResourceCommand: () => DisassociateDiscoveredResourceCommand,
34
+ DryRunOperation: () => DryRunOperation,
35
+ HomeRegionNotSetException: () => HomeRegionNotSetException,
36
+ ImportMigrationTaskCommand: () => ImportMigrationTaskCommand,
37
+ InternalServerError: () => InternalServerError,
38
+ InvalidInputException: () => InvalidInputException,
39
+ ListApplicationStatesCommand: () => ListApplicationStatesCommand,
40
+ ListCreatedArtifactsCommand: () => ListCreatedArtifactsCommand,
41
+ ListDiscoveredResourcesCommand: () => ListDiscoveredResourcesCommand,
42
+ ListMigrationTasksCommand: () => ListMigrationTasksCommand,
43
+ ListProgressUpdateStreamsCommand: () => ListProgressUpdateStreamsCommand,
44
+ MigrationHub: () => MigrationHub,
45
+ MigrationHubClient: () => MigrationHubClient,
46
+ MigrationHubServiceException: () => MigrationHubServiceException,
47
+ NotifyApplicationStateCommand: () => NotifyApplicationStateCommand,
48
+ NotifyMigrationTaskStateCommand: () => NotifyMigrationTaskStateCommand,
49
+ PolicyErrorException: () => PolicyErrorException,
50
+ PutResourceAttributesCommand: () => PutResourceAttributesCommand,
51
+ ResourceAttributeType: () => ResourceAttributeType,
52
+ ResourceNotFoundException: () => ResourceNotFoundException,
53
+ ServiceUnavailableException: () => ServiceUnavailableException,
54
+ Status: () => Status,
55
+ ThrottlingException: () => ThrottlingException,
56
+ UnauthorizedOperation: () => UnauthorizedOperation,
57
+ __Client: () => import_smithy_client.Client,
58
+ paginateListApplicationStates: () => paginateListApplicationStates,
59
+ paginateListCreatedArtifacts: () => paginateListCreatedArtifacts,
60
+ paginateListDiscoveredResources: () => paginateListDiscoveredResources,
61
+ paginateListMigrationTasks: () => paginateListMigrationTasks,
62
+ paginateListProgressUpdateStreams: () => paginateListProgressUpdateStreams
63
+ });
64
+ module.exports = __toCommonJS(src_exports);
65
+
66
+ // src/MigrationHubClient.ts
67
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
68
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
69
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
70
+ var import_middleware_signing = require("@aws-sdk/middleware-signing");
71
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
72
+ var import_config_resolver = require("@smithy/config-resolver");
73
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
74
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
75
+ var import_middleware_retry = require("@smithy/middleware-retry");
76
+
77
+
78
+ // src/endpoint/EndpointParameters.ts
79
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
80
+ return {
81
+ ...options,
82
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
83
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
84
+ defaultSigningName: "mgh"
85
+ };
86
+ }, "resolveClientEndpointParameters");
87
+ var commonParams = {
88
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
89
+ Endpoint: { type: "builtInParams", name: "endpoint" },
90
+ Region: { type: "builtInParams", name: "region" },
91
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
92
+ };
93
+
94
+ // src/MigrationHubClient.ts
95
+ var import_runtimeConfig = require("././runtimeConfig");
96
+
97
+ // src/runtimeExtensions.ts
98
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
99
+ var import_protocol_http = require("@smithy/protocol-http");
100
+ var import_smithy_client = require("@smithy/smithy-client");
101
+ var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
102
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
103
+ const extensionConfiguration = {
104
+ ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
105
+ ...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
106
+ ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
107
+ };
108
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
109
+ return {
110
+ ...runtimeConfig,
111
+ ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
112
+ ...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
113
+ ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
114
+ };
115
+ }, "resolveRuntimeExtensions");
116
+
117
+ // src/MigrationHubClient.ts
118
+ var _MigrationHubClient = class _MigrationHubClient extends import_smithy_client.Client {
119
+ constructor(...[configuration]) {
120
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
121
+ const _config_1 = resolveClientEndpointParameters(_config_0);
122
+ const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
123
+ const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
124
+ const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
125
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
126
+ const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
127
+ const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
128
+ const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
129
+ super(_config_8);
130
+ this.config = _config_8;
131
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
132
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
133
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
134
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
135
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
136
+ this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
137
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
138
+ }
139
+ /**
140
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
141
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
142
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
143
+ */
144
+ destroy() {
145
+ super.destroy();
146
+ }
147
+ };
148
+ __name(_MigrationHubClient, "MigrationHubClient");
149
+ var MigrationHubClient = _MigrationHubClient;
150
+
151
+ // src/MigrationHub.ts
152
+
153
+
154
+ // src/commands/AssociateCreatedArtifactCommand.ts
155
+
156
+ var import_middleware_serde = require("@smithy/middleware-serde");
157
+
158
+ var import_types = require("@smithy/types");
159
+
160
+ // src/protocols/Aws_json1_1.ts
161
+
162
+
163
+
164
+ // src/models/MigrationHubServiceException.ts
165
+
166
+ var _MigrationHubServiceException = class _MigrationHubServiceException extends import_smithy_client.ServiceException {
167
+ /**
168
+ * @internal
169
+ */
170
+ constructor(options) {
171
+ super(options);
172
+ Object.setPrototypeOf(this, _MigrationHubServiceException.prototype);
173
+ }
174
+ };
175
+ __name(_MigrationHubServiceException, "MigrationHubServiceException");
176
+ var MigrationHubServiceException = _MigrationHubServiceException;
177
+
178
+ // src/models/models_0.ts
179
+ var _AccessDeniedException = class _AccessDeniedException extends MigrationHubServiceException {
180
+ /**
181
+ * @internal
182
+ */
183
+ constructor(opts) {
184
+ super({
185
+ name: "AccessDeniedException",
186
+ $fault: "client",
187
+ ...opts
188
+ });
189
+ this.name = "AccessDeniedException";
190
+ this.$fault = "client";
191
+ Object.setPrototypeOf(this, _AccessDeniedException.prototype);
192
+ this.Message = opts.Message;
193
+ }
194
+ };
195
+ __name(_AccessDeniedException, "AccessDeniedException");
196
+ var AccessDeniedException = _AccessDeniedException;
197
+ var ApplicationStatus = {
198
+ COMPLETED: "COMPLETED",
199
+ IN_PROGRESS: "IN_PROGRESS",
200
+ NOT_STARTED: "NOT_STARTED"
201
+ };
202
+ var _DryRunOperation = class _DryRunOperation extends MigrationHubServiceException {
203
+ /**
204
+ * @internal
205
+ */
206
+ constructor(opts) {
207
+ super({
208
+ name: "DryRunOperation",
209
+ $fault: "client",
210
+ ...opts
211
+ });
212
+ this.name = "DryRunOperation";
213
+ this.$fault = "client";
214
+ Object.setPrototypeOf(this, _DryRunOperation.prototype);
215
+ this.Message = opts.Message;
216
+ }
217
+ };
218
+ __name(_DryRunOperation, "DryRunOperation");
219
+ var DryRunOperation = _DryRunOperation;
220
+ var _HomeRegionNotSetException = class _HomeRegionNotSetException extends MigrationHubServiceException {
221
+ /**
222
+ * @internal
223
+ */
224
+ constructor(opts) {
225
+ super({
226
+ name: "HomeRegionNotSetException",
227
+ $fault: "client",
228
+ ...opts
229
+ });
230
+ this.name = "HomeRegionNotSetException";
231
+ this.$fault = "client";
232
+ Object.setPrototypeOf(this, _HomeRegionNotSetException.prototype);
233
+ this.Message = opts.Message;
234
+ }
235
+ };
236
+ __name(_HomeRegionNotSetException, "HomeRegionNotSetException");
237
+ var HomeRegionNotSetException = _HomeRegionNotSetException;
238
+ var _InternalServerError = class _InternalServerError extends MigrationHubServiceException {
239
+ /**
240
+ * @internal
241
+ */
242
+ constructor(opts) {
243
+ super({
244
+ name: "InternalServerError",
245
+ $fault: "server",
246
+ ...opts
247
+ });
248
+ this.name = "InternalServerError";
249
+ this.$fault = "server";
250
+ Object.setPrototypeOf(this, _InternalServerError.prototype);
251
+ this.Message = opts.Message;
252
+ }
253
+ };
254
+ __name(_InternalServerError, "InternalServerError");
255
+ var InternalServerError = _InternalServerError;
256
+ var _InvalidInputException = class _InvalidInputException extends MigrationHubServiceException {
257
+ /**
258
+ * @internal
259
+ */
260
+ constructor(opts) {
261
+ super({
262
+ name: "InvalidInputException",
263
+ $fault: "client",
264
+ ...opts
265
+ });
266
+ this.name = "InvalidInputException";
267
+ this.$fault = "client";
268
+ Object.setPrototypeOf(this, _InvalidInputException.prototype);
269
+ this.Message = opts.Message;
270
+ }
271
+ };
272
+ __name(_InvalidInputException, "InvalidInputException");
273
+ var InvalidInputException = _InvalidInputException;
274
+ var _ResourceNotFoundException = class _ResourceNotFoundException extends MigrationHubServiceException {
275
+ /**
276
+ * @internal
277
+ */
278
+ constructor(opts) {
279
+ super({
280
+ name: "ResourceNotFoundException",
281
+ $fault: "client",
282
+ ...opts
283
+ });
284
+ this.name = "ResourceNotFoundException";
285
+ this.$fault = "client";
286
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
287
+ this.Message = opts.Message;
288
+ }
289
+ };
290
+ __name(_ResourceNotFoundException, "ResourceNotFoundException");
291
+ var ResourceNotFoundException = _ResourceNotFoundException;
292
+ var _ServiceUnavailableException = class _ServiceUnavailableException extends MigrationHubServiceException {
293
+ /**
294
+ * @internal
295
+ */
296
+ constructor(opts) {
297
+ super({
298
+ name: "ServiceUnavailableException",
299
+ $fault: "server",
300
+ ...opts
301
+ });
302
+ this.name = "ServiceUnavailableException";
303
+ this.$fault = "server";
304
+ Object.setPrototypeOf(this, _ServiceUnavailableException.prototype);
305
+ this.Message = opts.Message;
306
+ }
307
+ };
308
+ __name(_ServiceUnavailableException, "ServiceUnavailableException");
309
+ var ServiceUnavailableException = _ServiceUnavailableException;
310
+ var _ThrottlingException = class _ThrottlingException extends MigrationHubServiceException {
311
+ /**
312
+ * @internal
313
+ */
314
+ constructor(opts) {
315
+ super({
316
+ name: "ThrottlingException",
317
+ $fault: "client",
318
+ ...opts
319
+ });
320
+ this.name = "ThrottlingException";
321
+ this.$fault = "client";
322
+ Object.setPrototypeOf(this, _ThrottlingException.prototype);
323
+ this.Message = opts.Message;
324
+ this.RetryAfterSeconds = opts.RetryAfterSeconds;
325
+ }
326
+ };
327
+ __name(_ThrottlingException, "ThrottlingException");
328
+ var ThrottlingException = _ThrottlingException;
329
+ var _UnauthorizedOperation = class _UnauthorizedOperation extends MigrationHubServiceException {
330
+ /**
331
+ * @internal
332
+ */
333
+ constructor(opts) {
334
+ super({
335
+ name: "UnauthorizedOperation",
336
+ $fault: "client",
337
+ ...opts
338
+ });
339
+ this.name = "UnauthorizedOperation";
340
+ this.$fault = "client";
341
+ Object.setPrototypeOf(this, _UnauthorizedOperation.prototype);
342
+ this.Message = opts.Message;
343
+ }
344
+ };
345
+ __name(_UnauthorizedOperation, "UnauthorizedOperation");
346
+ var UnauthorizedOperation = _UnauthorizedOperation;
347
+ var _PolicyErrorException = class _PolicyErrorException extends MigrationHubServiceException {
348
+ /**
349
+ * @internal
350
+ */
351
+ constructor(opts) {
352
+ super({
353
+ name: "PolicyErrorException",
354
+ $fault: "client",
355
+ ...opts
356
+ });
357
+ this.name = "PolicyErrorException";
358
+ this.$fault = "client";
359
+ Object.setPrototypeOf(this, _PolicyErrorException.prototype);
360
+ this.Message = opts.Message;
361
+ }
362
+ };
363
+ __name(_PolicyErrorException, "PolicyErrorException");
364
+ var PolicyErrorException = _PolicyErrorException;
365
+ var ResourceAttributeType = {
366
+ BIOS_ID: "BIOS_ID",
367
+ FQDN: "FQDN",
368
+ IPV4_ADDRESS: "IPV4_ADDRESS",
369
+ IPV6_ADDRESS: "IPV6_ADDRESS",
370
+ MAC_ADDRESS: "MAC_ADDRESS",
371
+ MOTHERBOARD_SERIAL_NUMBER: "MOTHERBOARD_SERIAL_NUMBER",
372
+ VM_MANAGED_OBJECT_REFERENCE: "VM_MANAGED_OBJECT_REFERENCE",
373
+ VM_MANAGER_ID: "VM_MANAGER_ID",
374
+ VM_NAME: "VM_NAME",
375
+ VM_PATH: "VM_PATH"
376
+ };
377
+ var Status = {
378
+ COMPLETED: "COMPLETED",
379
+ FAILED: "FAILED",
380
+ IN_PROGRESS: "IN_PROGRESS",
381
+ NOT_STARTED: "NOT_STARTED"
382
+ };
383
+
384
+ // src/protocols/Aws_json1_1.ts
385
+ var se_AssociateCreatedArtifactCommand = /* @__PURE__ */ __name(async (input, context) => {
386
+ const headers = sharedHeaders("AssociateCreatedArtifact");
387
+ let body;
388
+ body = JSON.stringify((0, import_smithy_client._json)(input));
389
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
390
+ }, "se_AssociateCreatedArtifactCommand");
391
+ var se_AssociateDiscoveredResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
392
+ const headers = sharedHeaders("AssociateDiscoveredResource");
393
+ let body;
394
+ body = JSON.stringify((0, import_smithy_client._json)(input));
395
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
396
+ }, "se_AssociateDiscoveredResourceCommand");
397
+ var se_CreateProgressUpdateStreamCommand = /* @__PURE__ */ __name(async (input, context) => {
398
+ const headers = sharedHeaders("CreateProgressUpdateStream");
399
+ let body;
400
+ body = JSON.stringify((0, import_smithy_client._json)(input));
401
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
402
+ }, "se_CreateProgressUpdateStreamCommand");
403
+ var se_DeleteProgressUpdateStreamCommand = /* @__PURE__ */ __name(async (input, context) => {
404
+ const headers = sharedHeaders("DeleteProgressUpdateStream");
405
+ let body;
406
+ body = JSON.stringify((0, import_smithy_client._json)(input));
407
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
408
+ }, "se_DeleteProgressUpdateStreamCommand");
409
+ var se_DescribeApplicationStateCommand = /* @__PURE__ */ __name(async (input, context) => {
410
+ const headers = sharedHeaders("DescribeApplicationState");
411
+ let body;
412
+ body = JSON.stringify((0, import_smithy_client._json)(input));
413
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
414
+ }, "se_DescribeApplicationStateCommand");
415
+ var se_DescribeMigrationTaskCommand = /* @__PURE__ */ __name(async (input, context) => {
416
+ const headers = sharedHeaders("DescribeMigrationTask");
417
+ let body;
418
+ body = JSON.stringify((0, import_smithy_client._json)(input));
419
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
420
+ }, "se_DescribeMigrationTaskCommand");
421
+ var se_DisassociateCreatedArtifactCommand = /* @__PURE__ */ __name(async (input, context) => {
422
+ const headers = sharedHeaders("DisassociateCreatedArtifact");
423
+ let body;
424
+ body = JSON.stringify((0, import_smithy_client._json)(input));
425
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
426
+ }, "se_DisassociateCreatedArtifactCommand");
427
+ var se_DisassociateDiscoveredResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
428
+ const headers = sharedHeaders("DisassociateDiscoveredResource");
429
+ let body;
430
+ body = JSON.stringify((0, import_smithy_client._json)(input));
431
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
432
+ }, "se_DisassociateDiscoveredResourceCommand");
433
+ var se_ImportMigrationTaskCommand = /* @__PURE__ */ __name(async (input, context) => {
434
+ const headers = sharedHeaders("ImportMigrationTask");
435
+ let body;
436
+ body = JSON.stringify((0, import_smithy_client._json)(input));
437
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
438
+ }, "se_ImportMigrationTaskCommand");
439
+ var se_ListApplicationStatesCommand = /* @__PURE__ */ __name(async (input, context) => {
440
+ const headers = sharedHeaders("ListApplicationStates");
441
+ let body;
442
+ body = JSON.stringify((0, import_smithy_client._json)(input));
443
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
444
+ }, "se_ListApplicationStatesCommand");
445
+ var se_ListCreatedArtifactsCommand = /* @__PURE__ */ __name(async (input, context) => {
446
+ const headers = sharedHeaders("ListCreatedArtifacts");
447
+ let body;
448
+ body = JSON.stringify((0, import_smithy_client._json)(input));
449
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
450
+ }, "se_ListCreatedArtifactsCommand");
451
+ var se_ListDiscoveredResourcesCommand = /* @__PURE__ */ __name(async (input, context) => {
452
+ const headers = sharedHeaders("ListDiscoveredResources");
453
+ let body;
454
+ body = JSON.stringify((0, import_smithy_client._json)(input));
455
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
456
+ }, "se_ListDiscoveredResourcesCommand");
457
+ var se_ListMigrationTasksCommand = /* @__PURE__ */ __name(async (input, context) => {
458
+ const headers = sharedHeaders("ListMigrationTasks");
459
+ let body;
460
+ body = JSON.stringify((0, import_smithy_client._json)(input));
461
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
462
+ }, "se_ListMigrationTasksCommand");
463
+ var se_ListProgressUpdateStreamsCommand = /* @__PURE__ */ __name(async (input, context) => {
464
+ const headers = sharedHeaders("ListProgressUpdateStreams");
465
+ let body;
466
+ body = JSON.stringify((0, import_smithy_client._json)(input));
467
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
468
+ }, "se_ListProgressUpdateStreamsCommand");
469
+ var se_NotifyApplicationStateCommand = /* @__PURE__ */ __name(async (input, context) => {
470
+ const headers = sharedHeaders("NotifyApplicationState");
471
+ let body;
472
+ body = JSON.stringify(se_NotifyApplicationStateRequest(input, context));
473
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
474
+ }, "se_NotifyApplicationStateCommand");
475
+ var se_NotifyMigrationTaskStateCommand = /* @__PURE__ */ __name(async (input, context) => {
476
+ const headers = sharedHeaders("NotifyMigrationTaskState");
477
+ let body;
478
+ body = JSON.stringify(se_NotifyMigrationTaskStateRequest(input, context));
479
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
480
+ }, "se_NotifyMigrationTaskStateCommand");
481
+ var se_PutResourceAttributesCommand = /* @__PURE__ */ __name(async (input, context) => {
482
+ const headers = sharedHeaders("PutResourceAttributes");
483
+ let body;
484
+ body = JSON.stringify((0, import_smithy_client._json)(input));
485
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
486
+ }, "se_PutResourceAttributesCommand");
487
+ var de_AssociateCreatedArtifactCommand = /* @__PURE__ */ __name(async (output, context) => {
488
+ if (output.statusCode >= 300) {
489
+ return de_AssociateCreatedArtifactCommandError(output, context);
490
+ }
491
+ const data = await parseBody(output.body, context);
492
+ let contents = {};
493
+ contents = (0, import_smithy_client._json)(data);
494
+ const response = {
495
+ $metadata: deserializeMetadata(output),
496
+ ...contents
497
+ };
498
+ return response;
499
+ }, "de_AssociateCreatedArtifactCommand");
500
+ var de_AssociateCreatedArtifactCommandError = /* @__PURE__ */ __name(async (output, context) => {
501
+ const parsedOutput = {
502
+ ...output,
503
+ body: await parseErrorBody(output.body, context)
504
+ };
505
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
506
+ switch (errorCode) {
507
+ case "AccessDeniedException":
508
+ case "com.amazonaws.migrationhub#AccessDeniedException":
509
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
510
+ case "DryRunOperation":
511
+ case "com.amazonaws.migrationhub#DryRunOperation":
512
+ throw await de_DryRunOperationRes(parsedOutput, context);
513
+ case "HomeRegionNotSetException":
514
+ case "com.amazonaws.migrationhub#HomeRegionNotSetException":
515
+ throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
516
+ case "InternalServerError":
517
+ case "com.amazonaws.migrationhub#InternalServerError":
518
+ throw await de_InternalServerErrorRes(parsedOutput, context);
519
+ case "InvalidInputException":
520
+ case "com.amazonaws.migrationhub#InvalidInputException":
521
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
522
+ case "ResourceNotFoundException":
523
+ case "com.amazonaws.migrationhub#ResourceNotFoundException":
524
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
525
+ case "ServiceUnavailableException":
526
+ case "com.amazonaws.migrationhub#ServiceUnavailableException":
527
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
528
+ case "ThrottlingException":
529
+ case "com.amazonaws.migrationhub#ThrottlingException":
530
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
531
+ case "UnauthorizedOperation":
532
+ case "com.amazonaws.migrationhub#UnauthorizedOperation":
533
+ throw await de_UnauthorizedOperationRes(parsedOutput, context);
534
+ default:
535
+ const parsedBody = parsedOutput.body;
536
+ return throwDefaultError({
537
+ output,
538
+ parsedBody,
539
+ errorCode
540
+ });
541
+ }
542
+ }, "de_AssociateCreatedArtifactCommandError");
543
+ var de_AssociateDiscoveredResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
544
+ if (output.statusCode >= 300) {
545
+ return de_AssociateDiscoveredResourceCommandError(output, context);
546
+ }
547
+ const data = await parseBody(output.body, context);
548
+ let contents = {};
549
+ contents = (0, import_smithy_client._json)(data);
550
+ const response = {
551
+ $metadata: deserializeMetadata(output),
552
+ ...contents
553
+ };
554
+ return response;
555
+ }, "de_AssociateDiscoveredResourceCommand");
556
+ var de_AssociateDiscoveredResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
557
+ const parsedOutput = {
558
+ ...output,
559
+ body: await parseErrorBody(output.body, context)
560
+ };
561
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
562
+ switch (errorCode) {
563
+ case "AccessDeniedException":
564
+ case "com.amazonaws.migrationhub#AccessDeniedException":
565
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
566
+ case "DryRunOperation":
567
+ case "com.amazonaws.migrationhub#DryRunOperation":
568
+ throw await de_DryRunOperationRes(parsedOutput, context);
569
+ case "HomeRegionNotSetException":
570
+ case "com.amazonaws.migrationhub#HomeRegionNotSetException":
571
+ throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
572
+ case "InternalServerError":
573
+ case "com.amazonaws.migrationhub#InternalServerError":
574
+ throw await de_InternalServerErrorRes(parsedOutput, context);
575
+ case "InvalidInputException":
576
+ case "com.amazonaws.migrationhub#InvalidInputException":
577
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
578
+ case "PolicyErrorException":
579
+ case "com.amazonaws.migrationhub#PolicyErrorException":
580
+ throw await de_PolicyErrorExceptionRes(parsedOutput, context);
581
+ case "ResourceNotFoundException":
582
+ case "com.amazonaws.migrationhub#ResourceNotFoundException":
583
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
584
+ case "ServiceUnavailableException":
585
+ case "com.amazonaws.migrationhub#ServiceUnavailableException":
586
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
587
+ case "ThrottlingException":
588
+ case "com.amazonaws.migrationhub#ThrottlingException":
589
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
590
+ case "UnauthorizedOperation":
591
+ case "com.amazonaws.migrationhub#UnauthorizedOperation":
592
+ throw await de_UnauthorizedOperationRes(parsedOutput, context);
593
+ default:
594
+ const parsedBody = parsedOutput.body;
595
+ return throwDefaultError({
596
+ output,
597
+ parsedBody,
598
+ errorCode
599
+ });
600
+ }
601
+ }, "de_AssociateDiscoveredResourceCommandError");
602
+ var de_CreateProgressUpdateStreamCommand = /* @__PURE__ */ __name(async (output, context) => {
603
+ if (output.statusCode >= 300) {
604
+ return de_CreateProgressUpdateStreamCommandError(output, context);
605
+ }
606
+ const data = await parseBody(output.body, context);
607
+ let contents = {};
608
+ contents = (0, import_smithy_client._json)(data);
609
+ const response = {
610
+ $metadata: deserializeMetadata(output),
611
+ ...contents
612
+ };
613
+ return response;
614
+ }, "de_CreateProgressUpdateStreamCommand");
615
+ var de_CreateProgressUpdateStreamCommandError = /* @__PURE__ */ __name(async (output, context) => {
616
+ const parsedOutput = {
617
+ ...output,
618
+ body: await parseErrorBody(output.body, context)
619
+ };
620
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
621
+ switch (errorCode) {
622
+ case "AccessDeniedException":
623
+ case "com.amazonaws.migrationhub#AccessDeniedException":
624
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
625
+ case "DryRunOperation":
626
+ case "com.amazonaws.migrationhub#DryRunOperation":
627
+ throw await de_DryRunOperationRes(parsedOutput, context);
628
+ case "HomeRegionNotSetException":
629
+ case "com.amazonaws.migrationhub#HomeRegionNotSetException":
630
+ throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
631
+ case "InternalServerError":
632
+ case "com.amazonaws.migrationhub#InternalServerError":
633
+ throw await de_InternalServerErrorRes(parsedOutput, context);
634
+ case "InvalidInputException":
635
+ case "com.amazonaws.migrationhub#InvalidInputException":
636
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
637
+ case "ServiceUnavailableException":
638
+ case "com.amazonaws.migrationhub#ServiceUnavailableException":
639
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
640
+ case "ThrottlingException":
641
+ case "com.amazonaws.migrationhub#ThrottlingException":
642
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
643
+ case "UnauthorizedOperation":
644
+ case "com.amazonaws.migrationhub#UnauthorizedOperation":
645
+ throw await de_UnauthorizedOperationRes(parsedOutput, context);
646
+ default:
647
+ const parsedBody = parsedOutput.body;
648
+ return throwDefaultError({
649
+ output,
650
+ parsedBody,
651
+ errorCode
652
+ });
653
+ }
654
+ }, "de_CreateProgressUpdateStreamCommandError");
655
+ var de_DeleteProgressUpdateStreamCommand = /* @__PURE__ */ __name(async (output, context) => {
656
+ if (output.statusCode >= 300) {
657
+ return de_DeleteProgressUpdateStreamCommandError(output, context);
658
+ }
659
+ const data = await parseBody(output.body, context);
660
+ let contents = {};
661
+ contents = (0, import_smithy_client._json)(data);
662
+ const response = {
663
+ $metadata: deserializeMetadata(output),
664
+ ...contents
665
+ };
666
+ return response;
667
+ }, "de_DeleteProgressUpdateStreamCommand");
668
+ var de_DeleteProgressUpdateStreamCommandError = /* @__PURE__ */ __name(async (output, context) => {
669
+ const parsedOutput = {
670
+ ...output,
671
+ body: await parseErrorBody(output.body, context)
672
+ };
673
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
674
+ switch (errorCode) {
675
+ case "AccessDeniedException":
676
+ case "com.amazonaws.migrationhub#AccessDeniedException":
677
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
678
+ case "DryRunOperation":
679
+ case "com.amazonaws.migrationhub#DryRunOperation":
680
+ throw await de_DryRunOperationRes(parsedOutput, context);
681
+ case "HomeRegionNotSetException":
682
+ case "com.amazonaws.migrationhub#HomeRegionNotSetException":
683
+ throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
684
+ case "InternalServerError":
685
+ case "com.amazonaws.migrationhub#InternalServerError":
686
+ throw await de_InternalServerErrorRes(parsedOutput, context);
687
+ case "InvalidInputException":
688
+ case "com.amazonaws.migrationhub#InvalidInputException":
689
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
690
+ case "ResourceNotFoundException":
691
+ case "com.amazonaws.migrationhub#ResourceNotFoundException":
692
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
693
+ case "ServiceUnavailableException":
694
+ case "com.amazonaws.migrationhub#ServiceUnavailableException":
695
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
696
+ case "ThrottlingException":
697
+ case "com.amazonaws.migrationhub#ThrottlingException":
698
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
699
+ case "UnauthorizedOperation":
700
+ case "com.amazonaws.migrationhub#UnauthorizedOperation":
701
+ throw await de_UnauthorizedOperationRes(parsedOutput, context);
702
+ default:
703
+ const parsedBody = parsedOutput.body;
704
+ return throwDefaultError({
705
+ output,
706
+ parsedBody,
707
+ errorCode
708
+ });
709
+ }
710
+ }, "de_DeleteProgressUpdateStreamCommandError");
711
+ var de_DescribeApplicationStateCommand = /* @__PURE__ */ __name(async (output, context) => {
712
+ if (output.statusCode >= 300) {
713
+ return de_DescribeApplicationStateCommandError(output, context);
714
+ }
715
+ const data = await parseBody(output.body, context);
716
+ let contents = {};
717
+ contents = de_DescribeApplicationStateResult(data, context);
718
+ const response = {
719
+ $metadata: deserializeMetadata(output),
720
+ ...contents
721
+ };
722
+ return response;
723
+ }, "de_DescribeApplicationStateCommand");
724
+ var de_DescribeApplicationStateCommandError = /* @__PURE__ */ __name(async (output, context) => {
725
+ const parsedOutput = {
726
+ ...output,
727
+ body: await parseErrorBody(output.body, context)
728
+ };
729
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
730
+ switch (errorCode) {
731
+ case "AccessDeniedException":
732
+ case "com.amazonaws.migrationhub#AccessDeniedException":
733
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
734
+ case "HomeRegionNotSetException":
735
+ case "com.amazonaws.migrationhub#HomeRegionNotSetException":
736
+ throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
737
+ case "InternalServerError":
738
+ case "com.amazonaws.migrationhub#InternalServerError":
739
+ throw await de_InternalServerErrorRes(parsedOutput, context);
740
+ case "InvalidInputException":
741
+ case "com.amazonaws.migrationhub#InvalidInputException":
742
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
743
+ case "PolicyErrorException":
744
+ case "com.amazonaws.migrationhub#PolicyErrorException":
745
+ throw await de_PolicyErrorExceptionRes(parsedOutput, context);
746
+ case "ResourceNotFoundException":
747
+ case "com.amazonaws.migrationhub#ResourceNotFoundException":
748
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
749
+ case "ServiceUnavailableException":
750
+ case "com.amazonaws.migrationhub#ServiceUnavailableException":
751
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
752
+ case "ThrottlingException":
753
+ case "com.amazonaws.migrationhub#ThrottlingException":
754
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
755
+ default:
756
+ const parsedBody = parsedOutput.body;
757
+ return throwDefaultError({
758
+ output,
759
+ parsedBody,
760
+ errorCode
761
+ });
762
+ }
763
+ }, "de_DescribeApplicationStateCommandError");
764
+ var de_DescribeMigrationTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
765
+ if (output.statusCode >= 300) {
766
+ return de_DescribeMigrationTaskCommandError(output, context);
767
+ }
768
+ const data = await parseBody(output.body, context);
769
+ let contents = {};
770
+ contents = de_DescribeMigrationTaskResult(data, context);
771
+ const response = {
772
+ $metadata: deserializeMetadata(output),
773
+ ...contents
774
+ };
775
+ return response;
776
+ }, "de_DescribeMigrationTaskCommand");
777
+ var de_DescribeMigrationTaskCommandError = /* @__PURE__ */ __name(async (output, context) => {
778
+ const parsedOutput = {
779
+ ...output,
780
+ body: await parseErrorBody(output.body, context)
781
+ };
782
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
783
+ switch (errorCode) {
784
+ case "AccessDeniedException":
785
+ case "com.amazonaws.migrationhub#AccessDeniedException":
786
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
787
+ case "HomeRegionNotSetException":
788
+ case "com.amazonaws.migrationhub#HomeRegionNotSetException":
789
+ throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
790
+ case "InternalServerError":
791
+ case "com.amazonaws.migrationhub#InternalServerError":
792
+ throw await de_InternalServerErrorRes(parsedOutput, context);
793
+ case "InvalidInputException":
794
+ case "com.amazonaws.migrationhub#InvalidInputException":
795
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
796
+ case "ResourceNotFoundException":
797
+ case "com.amazonaws.migrationhub#ResourceNotFoundException":
798
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
799
+ case "ServiceUnavailableException":
800
+ case "com.amazonaws.migrationhub#ServiceUnavailableException":
801
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
802
+ case "ThrottlingException":
803
+ case "com.amazonaws.migrationhub#ThrottlingException":
804
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
805
+ default:
806
+ const parsedBody = parsedOutput.body;
807
+ return throwDefaultError({
808
+ output,
809
+ parsedBody,
810
+ errorCode
811
+ });
812
+ }
813
+ }, "de_DescribeMigrationTaskCommandError");
814
+ var de_DisassociateCreatedArtifactCommand = /* @__PURE__ */ __name(async (output, context) => {
815
+ if (output.statusCode >= 300) {
816
+ return de_DisassociateCreatedArtifactCommandError(output, context);
817
+ }
818
+ const data = await parseBody(output.body, context);
819
+ let contents = {};
820
+ contents = (0, import_smithy_client._json)(data);
821
+ const response = {
822
+ $metadata: deserializeMetadata(output),
823
+ ...contents
824
+ };
825
+ return response;
826
+ }, "de_DisassociateCreatedArtifactCommand");
827
+ var de_DisassociateCreatedArtifactCommandError = /* @__PURE__ */ __name(async (output, context) => {
828
+ const parsedOutput = {
829
+ ...output,
830
+ body: await parseErrorBody(output.body, context)
831
+ };
832
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
833
+ switch (errorCode) {
834
+ case "AccessDeniedException":
835
+ case "com.amazonaws.migrationhub#AccessDeniedException":
836
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
837
+ case "DryRunOperation":
838
+ case "com.amazonaws.migrationhub#DryRunOperation":
839
+ throw await de_DryRunOperationRes(parsedOutput, context);
840
+ case "HomeRegionNotSetException":
841
+ case "com.amazonaws.migrationhub#HomeRegionNotSetException":
842
+ throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
843
+ case "InternalServerError":
844
+ case "com.amazonaws.migrationhub#InternalServerError":
845
+ throw await de_InternalServerErrorRes(parsedOutput, context);
846
+ case "InvalidInputException":
847
+ case "com.amazonaws.migrationhub#InvalidInputException":
848
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
849
+ case "ResourceNotFoundException":
850
+ case "com.amazonaws.migrationhub#ResourceNotFoundException":
851
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
852
+ case "ServiceUnavailableException":
853
+ case "com.amazonaws.migrationhub#ServiceUnavailableException":
854
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
855
+ case "ThrottlingException":
856
+ case "com.amazonaws.migrationhub#ThrottlingException":
857
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
858
+ case "UnauthorizedOperation":
859
+ case "com.amazonaws.migrationhub#UnauthorizedOperation":
860
+ throw await de_UnauthorizedOperationRes(parsedOutput, context);
861
+ default:
862
+ const parsedBody = parsedOutput.body;
863
+ return throwDefaultError({
864
+ output,
865
+ parsedBody,
866
+ errorCode
867
+ });
868
+ }
869
+ }, "de_DisassociateCreatedArtifactCommandError");
870
+ var de_DisassociateDiscoveredResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
871
+ if (output.statusCode >= 300) {
872
+ return de_DisassociateDiscoveredResourceCommandError(output, context);
873
+ }
874
+ const data = await parseBody(output.body, context);
875
+ let contents = {};
876
+ contents = (0, import_smithy_client._json)(data);
877
+ const response = {
878
+ $metadata: deserializeMetadata(output),
879
+ ...contents
880
+ };
881
+ return response;
882
+ }, "de_DisassociateDiscoveredResourceCommand");
883
+ var de_DisassociateDiscoveredResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
884
+ const parsedOutput = {
885
+ ...output,
886
+ body: await parseErrorBody(output.body, context)
887
+ };
888
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
889
+ switch (errorCode) {
890
+ case "AccessDeniedException":
891
+ case "com.amazonaws.migrationhub#AccessDeniedException":
892
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
893
+ case "DryRunOperation":
894
+ case "com.amazonaws.migrationhub#DryRunOperation":
895
+ throw await de_DryRunOperationRes(parsedOutput, context);
896
+ case "HomeRegionNotSetException":
897
+ case "com.amazonaws.migrationhub#HomeRegionNotSetException":
898
+ throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
899
+ case "InternalServerError":
900
+ case "com.amazonaws.migrationhub#InternalServerError":
901
+ throw await de_InternalServerErrorRes(parsedOutput, context);
902
+ case "InvalidInputException":
903
+ case "com.amazonaws.migrationhub#InvalidInputException":
904
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
905
+ case "ResourceNotFoundException":
906
+ case "com.amazonaws.migrationhub#ResourceNotFoundException":
907
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
908
+ case "ServiceUnavailableException":
909
+ case "com.amazonaws.migrationhub#ServiceUnavailableException":
910
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
911
+ case "ThrottlingException":
912
+ case "com.amazonaws.migrationhub#ThrottlingException":
913
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
914
+ case "UnauthorizedOperation":
915
+ case "com.amazonaws.migrationhub#UnauthorizedOperation":
916
+ throw await de_UnauthorizedOperationRes(parsedOutput, context);
917
+ default:
918
+ const parsedBody = parsedOutput.body;
919
+ return throwDefaultError({
920
+ output,
921
+ parsedBody,
922
+ errorCode
923
+ });
924
+ }
925
+ }, "de_DisassociateDiscoveredResourceCommandError");
926
+ var de_ImportMigrationTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
927
+ if (output.statusCode >= 300) {
928
+ return de_ImportMigrationTaskCommandError(output, context);
929
+ }
930
+ const data = await parseBody(output.body, context);
931
+ let contents = {};
932
+ contents = (0, import_smithy_client._json)(data);
933
+ const response = {
934
+ $metadata: deserializeMetadata(output),
935
+ ...contents
936
+ };
937
+ return response;
938
+ }, "de_ImportMigrationTaskCommand");
939
+ var de_ImportMigrationTaskCommandError = /* @__PURE__ */ __name(async (output, context) => {
940
+ const parsedOutput = {
941
+ ...output,
942
+ body: await parseErrorBody(output.body, context)
943
+ };
944
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
945
+ switch (errorCode) {
946
+ case "AccessDeniedException":
947
+ case "com.amazonaws.migrationhub#AccessDeniedException":
948
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
949
+ case "DryRunOperation":
950
+ case "com.amazonaws.migrationhub#DryRunOperation":
951
+ throw await de_DryRunOperationRes(parsedOutput, context);
952
+ case "HomeRegionNotSetException":
953
+ case "com.amazonaws.migrationhub#HomeRegionNotSetException":
954
+ throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
955
+ case "InternalServerError":
956
+ case "com.amazonaws.migrationhub#InternalServerError":
957
+ throw await de_InternalServerErrorRes(parsedOutput, context);
958
+ case "InvalidInputException":
959
+ case "com.amazonaws.migrationhub#InvalidInputException":
960
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
961
+ case "ResourceNotFoundException":
962
+ case "com.amazonaws.migrationhub#ResourceNotFoundException":
963
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
964
+ case "ServiceUnavailableException":
965
+ case "com.amazonaws.migrationhub#ServiceUnavailableException":
966
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
967
+ case "ThrottlingException":
968
+ case "com.amazonaws.migrationhub#ThrottlingException":
969
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
970
+ case "UnauthorizedOperation":
971
+ case "com.amazonaws.migrationhub#UnauthorizedOperation":
972
+ throw await de_UnauthorizedOperationRes(parsedOutput, context);
973
+ default:
974
+ const parsedBody = parsedOutput.body;
975
+ return throwDefaultError({
976
+ output,
977
+ parsedBody,
978
+ errorCode
979
+ });
980
+ }
981
+ }, "de_ImportMigrationTaskCommandError");
982
+ var de_ListApplicationStatesCommand = /* @__PURE__ */ __name(async (output, context) => {
983
+ if (output.statusCode >= 300) {
984
+ return de_ListApplicationStatesCommandError(output, context);
985
+ }
986
+ const data = await parseBody(output.body, context);
987
+ let contents = {};
988
+ contents = de_ListApplicationStatesResult(data, context);
989
+ const response = {
990
+ $metadata: deserializeMetadata(output),
991
+ ...contents
992
+ };
993
+ return response;
994
+ }, "de_ListApplicationStatesCommand");
995
+ var de_ListApplicationStatesCommandError = /* @__PURE__ */ __name(async (output, context) => {
996
+ const parsedOutput = {
997
+ ...output,
998
+ body: await parseErrorBody(output.body, context)
999
+ };
1000
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1001
+ switch (errorCode) {
1002
+ case "AccessDeniedException":
1003
+ case "com.amazonaws.migrationhub#AccessDeniedException":
1004
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1005
+ case "HomeRegionNotSetException":
1006
+ case "com.amazonaws.migrationhub#HomeRegionNotSetException":
1007
+ throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
1008
+ case "InternalServerError":
1009
+ case "com.amazonaws.migrationhub#InternalServerError":
1010
+ throw await de_InternalServerErrorRes(parsedOutput, context);
1011
+ case "InvalidInputException":
1012
+ case "com.amazonaws.migrationhub#InvalidInputException":
1013
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
1014
+ case "ServiceUnavailableException":
1015
+ case "com.amazonaws.migrationhub#ServiceUnavailableException":
1016
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1017
+ case "ThrottlingException":
1018
+ case "com.amazonaws.migrationhub#ThrottlingException":
1019
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1020
+ default:
1021
+ const parsedBody = parsedOutput.body;
1022
+ return throwDefaultError({
1023
+ output,
1024
+ parsedBody,
1025
+ errorCode
1026
+ });
1027
+ }
1028
+ }, "de_ListApplicationStatesCommandError");
1029
+ var de_ListCreatedArtifactsCommand = /* @__PURE__ */ __name(async (output, context) => {
1030
+ if (output.statusCode >= 300) {
1031
+ return de_ListCreatedArtifactsCommandError(output, context);
1032
+ }
1033
+ const data = await parseBody(output.body, context);
1034
+ let contents = {};
1035
+ contents = (0, import_smithy_client._json)(data);
1036
+ const response = {
1037
+ $metadata: deserializeMetadata(output),
1038
+ ...contents
1039
+ };
1040
+ return response;
1041
+ }, "de_ListCreatedArtifactsCommand");
1042
+ var de_ListCreatedArtifactsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1043
+ const parsedOutput = {
1044
+ ...output,
1045
+ body: await parseErrorBody(output.body, context)
1046
+ };
1047
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1048
+ switch (errorCode) {
1049
+ case "AccessDeniedException":
1050
+ case "com.amazonaws.migrationhub#AccessDeniedException":
1051
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1052
+ case "HomeRegionNotSetException":
1053
+ case "com.amazonaws.migrationhub#HomeRegionNotSetException":
1054
+ throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
1055
+ case "InternalServerError":
1056
+ case "com.amazonaws.migrationhub#InternalServerError":
1057
+ throw await de_InternalServerErrorRes(parsedOutput, context);
1058
+ case "InvalidInputException":
1059
+ case "com.amazonaws.migrationhub#InvalidInputException":
1060
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
1061
+ case "ResourceNotFoundException":
1062
+ case "com.amazonaws.migrationhub#ResourceNotFoundException":
1063
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1064
+ case "ServiceUnavailableException":
1065
+ case "com.amazonaws.migrationhub#ServiceUnavailableException":
1066
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1067
+ case "ThrottlingException":
1068
+ case "com.amazonaws.migrationhub#ThrottlingException":
1069
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1070
+ default:
1071
+ const parsedBody = parsedOutput.body;
1072
+ return throwDefaultError({
1073
+ output,
1074
+ parsedBody,
1075
+ errorCode
1076
+ });
1077
+ }
1078
+ }, "de_ListCreatedArtifactsCommandError");
1079
+ var de_ListDiscoveredResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
1080
+ if (output.statusCode >= 300) {
1081
+ return de_ListDiscoveredResourcesCommandError(output, context);
1082
+ }
1083
+ const data = await parseBody(output.body, context);
1084
+ let contents = {};
1085
+ contents = (0, import_smithy_client._json)(data);
1086
+ const response = {
1087
+ $metadata: deserializeMetadata(output),
1088
+ ...contents
1089
+ };
1090
+ return response;
1091
+ }, "de_ListDiscoveredResourcesCommand");
1092
+ var de_ListDiscoveredResourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1093
+ const parsedOutput = {
1094
+ ...output,
1095
+ body: await parseErrorBody(output.body, context)
1096
+ };
1097
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1098
+ switch (errorCode) {
1099
+ case "AccessDeniedException":
1100
+ case "com.amazonaws.migrationhub#AccessDeniedException":
1101
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1102
+ case "HomeRegionNotSetException":
1103
+ case "com.amazonaws.migrationhub#HomeRegionNotSetException":
1104
+ throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
1105
+ case "InternalServerError":
1106
+ case "com.amazonaws.migrationhub#InternalServerError":
1107
+ throw await de_InternalServerErrorRes(parsedOutput, context);
1108
+ case "InvalidInputException":
1109
+ case "com.amazonaws.migrationhub#InvalidInputException":
1110
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
1111
+ case "ResourceNotFoundException":
1112
+ case "com.amazonaws.migrationhub#ResourceNotFoundException":
1113
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1114
+ case "ServiceUnavailableException":
1115
+ case "com.amazonaws.migrationhub#ServiceUnavailableException":
1116
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1117
+ case "ThrottlingException":
1118
+ case "com.amazonaws.migrationhub#ThrottlingException":
1119
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1120
+ default:
1121
+ const parsedBody = parsedOutput.body;
1122
+ return throwDefaultError({
1123
+ output,
1124
+ parsedBody,
1125
+ errorCode
1126
+ });
1127
+ }
1128
+ }, "de_ListDiscoveredResourcesCommandError");
1129
+ var de_ListMigrationTasksCommand = /* @__PURE__ */ __name(async (output, context) => {
1130
+ if (output.statusCode >= 300) {
1131
+ return de_ListMigrationTasksCommandError(output, context);
1132
+ }
1133
+ const data = await parseBody(output.body, context);
1134
+ let contents = {};
1135
+ contents = de_ListMigrationTasksResult(data, context);
1136
+ const response = {
1137
+ $metadata: deserializeMetadata(output),
1138
+ ...contents
1139
+ };
1140
+ return response;
1141
+ }, "de_ListMigrationTasksCommand");
1142
+ var de_ListMigrationTasksCommandError = /* @__PURE__ */ __name(async (output, context) => {
1143
+ const parsedOutput = {
1144
+ ...output,
1145
+ body: await parseErrorBody(output.body, context)
1146
+ };
1147
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1148
+ switch (errorCode) {
1149
+ case "AccessDeniedException":
1150
+ case "com.amazonaws.migrationhub#AccessDeniedException":
1151
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1152
+ case "HomeRegionNotSetException":
1153
+ case "com.amazonaws.migrationhub#HomeRegionNotSetException":
1154
+ throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
1155
+ case "InternalServerError":
1156
+ case "com.amazonaws.migrationhub#InternalServerError":
1157
+ throw await de_InternalServerErrorRes(parsedOutput, context);
1158
+ case "InvalidInputException":
1159
+ case "com.amazonaws.migrationhub#InvalidInputException":
1160
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
1161
+ case "PolicyErrorException":
1162
+ case "com.amazonaws.migrationhub#PolicyErrorException":
1163
+ throw await de_PolicyErrorExceptionRes(parsedOutput, context);
1164
+ case "ResourceNotFoundException":
1165
+ case "com.amazonaws.migrationhub#ResourceNotFoundException":
1166
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1167
+ case "ServiceUnavailableException":
1168
+ case "com.amazonaws.migrationhub#ServiceUnavailableException":
1169
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1170
+ case "ThrottlingException":
1171
+ case "com.amazonaws.migrationhub#ThrottlingException":
1172
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1173
+ default:
1174
+ const parsedBody = parsedOutput.body;
1175
+ return throwDefaultError({
1176
+ output,
1177
+ parsedBody,
1178
+ errorCode
1179
+ });
1180
+ }
1181
+ }, "de_ListMigrationTasksCommandError");
1182
+ var de_ListProgressUpdateStreamsCommand = /* @__PURE__ */ __name(async (output, context) => {
1183
+ if (output.statusCode >= 300) {
1184
+ return de_ListProgressUpdateStreamsCommandError(output, context);
1185
+ }
1186
+ const data = await parseBody(output.body, context);
1187
+ let contents = {};
1188
+ contents = (0, import_smithy_client._json)(data);
1189
+ const response = {
1190
+ $metadata: deserializeMetadata(output),
1191
+ ...contents
1192
+ };
1193
+ return response;
1194
+ }, "de_ListProgressUpdateStreamsCommand");
1195
+ var de_ListProgressUpdateStreamsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1196
+ const parsedOutput = {
1197
+ ...output,
1198
+ body: await parseErrorBody(output.body, context)
1199
+ };
1200
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1201
+ switch (errorCode) {
1202
+ case "AccessDeniedException":
1203
+ case "com.amazonaws.migrationhub#AccessDeniedException":
1204
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1205
+ case "HomeRegionNotSetException":
1206
+ case "com.amazonaws.migrationhub#HomeRegionNotSetException":
1207
+ throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
1208
+ case "InternalServerError":
1209
+ case "com.amazonaws.migrationhub#InternalServerError":
1210
+ throw await de_InternalServerErrorRes(parsedOutput, context);
1211
+ case "InvalidInputException":
1212
+ case "com.amazonaws.migrationhub#InvalidInputException":
1213
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
1214
+ case "ServiceUnavailableException":
1215
+ case "com.amazonaws.migrationhub#ServiceUnavailableException":
1216
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1217
+ case "ThrottlingException":
1218
+ case "com.amazonaws.migrationhub#ThrottlingException":
1219
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1220
+ default:
1221
+ const parsedBody = parsedOutput.body;
1222
+ return throwDefaultError({
1223
+ output,
1224
+ parsedBody,
1225
+ errorCode
1226
+ });
1227
+ }
1228
+ }, "de_ListProgressUpdateStreamsCommandError");
1229
+ var de_NotifyApplicationStateCommand = /* @__PURE__ */ __name(async (output, context) => {
1230
+ if (output.statusCode >= 300) {
1231
+ return de_NotifyApplicationStateCommandError(output, context);
1232
+ }
1233
+ const data = await parseBody(output.body, context);
1234
+ let contents = {};
1235
+ contents = (0, import_smithy_client._json)(data);
1236
+ const response = {
1237
+ $metadata: deserializeMetadata(output),
1238
+ ...contents
1239
+ };
1240
+ return response;
1241
+ }, "de_NotifyApplicationStateCommand");
1242
+ var de_NotifyApplicationStateCommandError = /* @__PURE__ */ __name(async (output, context) => {
1243
+ const parsedOutput = {
1244
+ ...output,
1245
+ body: await parseErrorBody(output.body, context)
1246
+ };
1247
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1248
+ switch (errorCode) {
1249
+ case "AccessDeniedException":
1250
+ case "com.amazonaws.migrationhub#AccessDeniedException":
1251
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1252
+ case "DryRunOperation":
1253
+ case "com.amazonaws.migrationhub#DryRunOperation":
1254
+ throw await de_DryRunOperationRes(parsedOutput, context);
1255
+ case "HomeRegionNotSetException":
1256
+ case "com.amazonaws.migrationhub#HomeRegionNotSetException":
1257
+ throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
1258
+ case "InternalServerError":
1259
+ case "com.amazonaws.migrationhub#InternalServerError":
1260
+ throw await de_InternalServerErrorRes(parsedOutput, context);
1261
+ case "InvalidInputException":
1262
+ case "com.amazonaws.migrationhub#InvalidInputException":
1263
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
1264
+ case "PolicyErrorException":
1265
+ case "com.amazonaws.migrationhub#PolicyErrorException":
1266
+ throw await de_PolicyErrorExceptionRes(parsedOutput, context);
1267
+ case "ResourceNotFoundException":
1268
+ case "com.amazonaws.migrationhub#ResourceNotFoundException":
1269
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1270
+ case "ServiceUnavailableException":
1271
+ case "com.amazonaws.migrationhub#ServiceUnavailableException":
1272
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1273
+ case "ThrottlingException":
1274
+ case "com.amazonaws.migrationhub#ThrottlingException":
1275
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1276
+ case "UnauthorizedOperation":
1277
+ case "com.amazonaws.migrationhub#UnauthorizedOperation":
1278
+ throw await de_UnauthorizedOperationRes(parsedOutput, context);
1279
+ default:
1280
+ const parsedBody = parsedOutput.body;
1281
+ return throwDefaultError({
1282
+ output,
1283
+ parsedBody,
1284
+ errorCode
1285
+ });
1286
+ }
1287
+ }, "de_NotifyApplicationStateCommandError");
1288
+ var de_NotifyMigrationTaskStateCommand = /* @__PURE__ */ __name(async (output, context) => {
1289
+ if (output.statusCode >= 300) {
1290
+ return de_NotifyMigrationTaskStateCommandError(output, context);
1291
+ }
1292
+ const data = await parseBody(output.body, context);
1293
+ let contents = {};
1294
+ contents = (0, import_smithy_client._json)(data);
1295
+ const response = {
1296
+ $metadata: deserializeMetadata(output),
1297
+ ...contents
1298
+ };
1299
+ return response;
1300
+ }, "de_NotifyMigrationTaskStateCommand");
1301
+ var de_NotifyMigrationTaskStateCommandError = /* @__PURE__ */ __name(async (output, context) => {
1302
+ const parsedOutput = {
1303
+ ...output,
1304
+ body: await parseErrorBody(output.body, context)
1305
+ };
1306
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1307
+ switch (errorCode) {
1308
+ case "AccessDeniedException":
1309
+ case "com.amazonaws.migrationhub#AccessDeniedException":
1310
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1311
+ case "DryRunOperation":
1312
+ case "com.amazonaws.migrationhub#DryRunOperation":
1313
+ throw await de_DryRunOperationRes(parsedOutput, context);
1314
+ case "HomeRegionNotSetException":
1315
+ case "com.amazonaws.migrationhub#HomeRegionNotSetException":
1316
+ throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
1317
+ case "InternalServerError":
1318
+ case "com.amazonaws.migrationhub#InternalServerError":
1319
+ throw await de_InternalServerErrorRes(parsedOutput, context);
1320
+ case "InvalidInputException":
1321
+ case "com.amazonaws.migrationhub#InvalidInputException":
1322
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
1323
+ case "ResourceNotFoundException":
1324
+ case "com.amazonaws.migrationhub#ResourceNotFoundException":
1325
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1326
+ case "ServiceUnavailableException":
1327
+ case "com.amazonaws.migrationhub#ServiceUnavailableException":
1328
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1329
+ case "ThrottlingException":
1330
+ case "com.amazonaws.migrationhub#ThrottlingException":
1331
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1332
+ case "UnauthorizedOperation":
1333
+ case "com.amazonaws.migrationhub#UnauthorizedOperation":
1334
+ throw await de_UnauthorizedOperationRes(parsedOutput, context);
1335
+ default:
1336
+ const parsedBody = parsedOutput.body;
1337
+ return throwDefaultError({
1338
+ output,
1339
+ parsedBody,
1340
+ errorCode
1341
+ });
1342
+ }
1343
+ }, "de_NotifyMigrationTaskStateCommandError");
1344
+ var de_PutResourceAttributesCommand = /* @__PURE__ */ __name(async (output, context) => {
1345
+ if (output.statusCode >= 300) {
1346
+ return de_PutResourceAttributesCommandError(output, context);
1347
+ }
1348
+ const data = await parseBody(output.body, context);
1349
+ let contents = {};
1350
+ contents = (0, import_smithy_client._json)(data);
1351
+ const response = {
1352
+ $metadata: deserializeMetadata(output),
1353
+ ...contents
1354
+ };
1355
+ return response;
1356
+ }, "de_PutResourceAttributesCommand");
1357
+ var de_PutResourceAttributesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1358
+ const parsedOutput = {
1359
+ ...output,
1360
+ body: await parseErrorBody(output.body, context)
1361
+ };
1362
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1363
+ switch (errorCode) {
1364
+ case "AccessDeniedException":
1365
+ case "com.amazonaws.migrationhub#AccessDeniedException":
1366
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1367
+ case "DryRunOperation":
1368
+ case "com.amazonaws.migrationhub#DryRunOperation":
1369
+ throw await de_DryRunOperationRes(parsedOutput, context);
1370
+ case "HomeRegionNotSetException":
1371
+ case "com.amazonaws.migrationhub#HomeRegionNotSetException":
1372
+ throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
1373
+ case "InternalServerError":
1374
+ case "com.amazonaws.migrationhub#InternalServerError":
1375
+ throw await de_InternalServerErrorRes(parsedOutput, context);
1376
+ case "InvalidInputException":
1377
+ case "com.amazonaws.migrationhub#InvalidInputException":
1378
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
1379
+ case "ResourceNotFoundException":
1380
+ case "com.amazonaws.migrationhub#ResourceNotFoundException":
1381
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1382
+ case "ServiceUnavailableException":
1383
+ case "com.amazonaws.migrationhub#ServiceUnavailableException":
1384
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1385
+ case "ThrottlingException":
1386
+ case "com.amazonaws.migrationhub#ThrottlingException":
1387
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1388
+ case "UnauthorizedOperation":
1389
+ case "com.amazonaws.migrationhub#UnauthorizedOperation":
1390
+ throw await de_UnauthorizedOperationRes(parsedOutput, context);
1391
+ default:
1392
+ const parsedBody = parsedOutput.body;
1393
+ return throwDefaultError({
1394
+ output,
1395
+ parsedBody,
1396
+ errorCode
1397
+ });
1398
+ }
1399
+ }, "de_PutResourceAttributesCommandError");
1400
+ var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1401
+ const body = parsedOutput.body;
1402
+ const deserialized = (0, import_smithy_client._json)(body);
1403
+ const exception = new AccessDeniedException({
1404
+ $metadata: deserializeMetadata(parsedOutput),
1405
+ ...deserialized
1406
+ });
1407
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1408
+ }, "de_AccessDeniedExceptionRes");
1409
+ var de_DryRunOperationRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1410
+ const body = parsedOutput.body;
1411
+ const deserialized = (0, import_smithy_client._json)(body);
1412
+ const exception = new DryRunOperation({
1413
+ $metadata: deserializeMetadata(parsedOutput),
1414
+ ...deserialized
1415
+ });
1416
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1417
+ }, "de_DryRunOperationRes");
1418
+ var de_HomeRegionNotSetExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1419
+ const body = parsedOutput.body;
1420
+ const deserialized = (0, import_smithy_client._json)(body);
1421
+ const exception = new HomeRegionNotSetException({
1422
+ $metadata: deserializeMetadata(parsedOutput),
1423
+ ...deserialized
1424
+ });
1425
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1426
+ }, "de_HomeRegionNotSetExceptionRes");
1427
+ var de_InternalServerErrorRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1428
+ const body = parsedOutput.body;
1429
+ const deserialized = (0, import_smithy_client._json)(body);
1430
+ const exception = new InternalServerError({
1431
+ $metadata: deserializeMetadata(parsedOutput),
1432
+ ...deserialized
1433
+ });
1434
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1435
+ }, "de_InternalServerErrorRes");
1436
+ var de_InvalidInputExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1437
+ const body = parsedOutput.body;
1438
+ const deserialized = (0, import_smithy_client._json)(body);
1439
+ const exception = new InvalidInputException({
1440
+ $metadata: deserializeMetadata(parsedOutput),
1441
+ ...deserialized
1442
+ });
1443
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1444
+ }, "de_InvalidInputExceptionRes");
1445
+ var de_PolicyErrorExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1446
+ const body = parsedOutput.body;
1447
+ const deserialized = (0, import_smithy_client._json)(body);
1448
+ const exception = new PolicyErrorException({
1449
+ $metadata: deserializeMetadata(parsedOutput),
1450
+ ...deserialized
1451
+ });
1452
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1453
+ }, "de_PolicyErrorExceptionRes");
1454
+ var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1455
+ const body = parsedOutput.body;
1456
+ const deserialized = (0, import_smithy_client._json)(body);
1457
+ const exception = new ResourceNotFoundException({
1458
+ $metadata: deserializeMetadata(parsedOutput),
1459
+ ...deserialized
1460
+ });
1461
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1462
+ }, "de_ResourceNotFoundExceptionRes");
1463
+ var de_ServiceUnavailableExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1464
+ const body = parsedOutput.body;
1465
+ const deserialized = (0, import_smithy_client._json)(body);
1466
+ const exception = new ServiceUnavailableException({
1467
+ $metadata: deserializeMetadata(parsedOutput),
1468
+ ...deserialized
1469
+ });
1470
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1471
+ }, "de_ServiceUnavailableExceptionRes");
1472
+ var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1473
+ const body = parsedOutput.body;
1474
+ const deserialized = (0, import_smithy_client._json)(body);
1475
+ const exception = new ThrottlingException({
1476
+ $metadata: deserializeMetadata(parsedOutput),
1477
+ ...deserialized
1478
+ });
1479
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1480
+ }, "de_ThrottlingExceptionRes");
1481
+ var de_UnauthorizedOperationRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1482
+ const body = parsedOutput.body;
1483
+ const deserialized = (0, import_smithy_client._json)(body);
1484
+ const exception = new UnauthorizedOperation({
1485
+ $metadata: deserializeMetadata(parsedOutput),
1486
+ ...deserialized
1487
+ });
1488
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1489
+ }, "de_UnauthorizedOperationRes");
1490
+ var se_NotifyApplicationStateRequest = /* @__PURE__ */ __name((input, context) => {
1491
+ return (0, import_smithy_client.take)(input, {
1492
+ ApplicationId: [],
1493
+ DryRun: [],
1494
+ Status: [],
1495
+ UpdateDateTime: (_) => Math.round(_.getTime() / 1e3)
1496
+ });
1497
+ }, "se_NotifyApplicationStateRequest");
1498
+ var se_NotifyMigrationTaskStateRequest = /* @__PURE__ */ __name((input, context) => {
1499
+ return (0, import_smithy_client.take)(input, {
1500
+ DryRun: [],
1501
+ MigrationTaskName: [],
1502
+ NextUpdateSeconds: [],
1503
+ ProgressUpdateStream: [],
1504
+ Task: import_smithy_client._json,
1505
+ UpdateDateTime: (_) => Math.round(_.getTime() / 1e3)
1506
+ });
1507
+ }, "se_NotifyMigrationTaskStateRequest");
1508
+ var de_ApplicationState = /* @__PURE__ */ __name((output, context) => {
1509
+ return (0, import_smithy_client.take)(output, {
1510
+ ApplicationId: import_smithy_client.expectString,
1511
+ ApplicationStatus: import_smithy_client.expectString,
1512
+ LastUpdatedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
1513
+ });
1514
+ }, "de_ApplicationState");
1515
+ var de_ApplicationStateList = /* @__PURE__ */ __name((output, context) => {
1516
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1517
+ return de_ApplicationState(entry, context);
1518
+ });
1519
+ return retVal;
1520
+ }, "de_ApplicationStateList");
1521
+ var de_DescribeApplicationStateResult = /* @__PURE__ */ __name((output, context) => {
1522
+ return (0, import_smithy_client.take)(output, {
1523
+ ApplicationStatus: import_smithy_client.expectString,
1524
+ LastUpdatedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
1525
+ });
1526
+ }, "de_DescribeApplicationStateResult");
1527
+ var de_DescribeMigrationTaskResult = /* @__PURE__ */ __name((output, context) => {
1528
+ return (0, import_smithy_client.take)(output, {
1529
+ MigrationTask: (_) => de_MigrationTask(_, context)
1530
+ });
1531
+ }, "de_DescribeMigrationTaskResult");
1532
+ var de_ListApplicationStatesResult = /* @__PURE__ */ __name((output, context) => {
1533
+ return (0, import_smithy_client.take)(output, {
1534
+ ApplicationStateList: (_) => de_ApplicationStateList(_, context),
1535
+ NextToken: import_smithy_client.expectString
1536
+ });
1537
+ }, "de_ListApplicationStatesResult");
1538
+ var de_ListMigrationTasksResult = /* @__PURE__ */ __name((output, context) => {
1539
+ return (0, import_smithy_client.take)(output, {
1540
+ MigrationTaskSummaryList: (_) => de_MigrationTaskSummaryList(_, context),
1541
+ NextToken: import_smithy_client.expectString
1542
+ });
1543
+ }, "de_ListMigrationTasksResult");
1544
+ var de_MigrationTask = /* @__PURE__ */ __name((output, context) => {
1545
+ return (0, import_smithy_client.take)(output, {
1546
+ MigrationTaskName: import_smithy_client.expectString,
1547
+ ProgressUpdateStream: import_smithy_client.expectString,
1548
+ ResourceAttributeList: import_smithy_client._json,
1549
+ Task: import_smithy_client._json,
1550
+ UpdateDateTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
1551
+ });
1552
+ }, "de_MigrationTask");
1553
+ var de_MigrationTaskSummary = /* @__PURE__ */ __name((output, context) => {
1554
+ return (0, import_smithy_client.take)(output, {
1555
+ MigrationTaskName: import_smithy_client.expectString,
1556
+ ProgressPercent: import_smithy_client.expectInt32,
1557
+ ProgressUpdateStream: import_smithy_client.expectString,
1558
+ Status: import_smithy_client.expectString,
1559
+ StatusDetail: import_smithy_client.expectString,
1560
+ UpdateDateTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
1561
+ });
1562
+ }, "de_MigrationTaskSummary");
1563
+ var de_MigrationTaskSummaryList = /* @__PURE__ */ __name((output, context) => {
1564
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1565
+ return de_MigrationTaskSummary(entry, context);
1566
+ });
1567
+ return retVal;
1568
+ }, "de_MigrationTaskSummaryList");
1569
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1570
+ httpStatusCode: output.statusCode,
1571
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1572
+ extendedRequestId: output.headers["x-amz-id-2"],
1573
+ cfId: output.headers["x-amz-cf-id"]
1574
+ }), "deserializeMetadata");
1575
+ var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
1576
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(MigrationHubServiceException);
1577
+ var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
1578
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1579
+ const contents = {
1580
+ protocol,
1581
+ hostname,
1582
+ port,
1583
+ method: "POST",
1584
+ path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
1585
+ headers
1586
+ };
1587
+ if (resolvedHostname !== void 0) {
1588
+ contents.hostname = resolvedHostname;
1589
+ }
1590
+ if (body !== void 0) {
1591
+ contents.body = body;
1592
+ }
1593
+ return new import_protocol_http.HttpRequest(contents);
1594
+ }, "buildHttpRpcRequest");
1595
+ function sharedHeaders(operation) {
1596
+ return {
1597
+ "content-type": "application/x-amz-json-1.1",
1598
+ "x-amz-target": `AWSMigrationHub.${operation}`
1599
+ };
1600
+ }
1601
+ __name(sharedHeaders, "sharedHeaders");
1602
+ var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1603
+ if (encoded.length) {
1604
+ return JSON.parse(encoded);
1605
+ }
1606
+ return {};
1607
+ }), "parseBody");
1608
+ var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
1609
+ const value = await parseBody(errorBody, context);
1610
+ value.message = value.message ?? value.Message;
1611
+ return value;
1612
+ }, "parseErrorBody");
1613
+ var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
1614
+ const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
1615
+ const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
1616
+ let cleanValue = rawValue;
1617
+ if (typeof cleanValue === "number") {
1618
+ cleanValue = cleanValue.toString();
1619
+ }
1620
+ if (cleanValue.indexOf(",") >= 0) {
1621
+ cleanValue = cleanValue.split(",")[0];
1622
+ }
1623
+ if (cleanValue.indexOf(":") >= 0) {
1624
+ cleanValue = cleanValue.split(":")[0];
1625
+ }
1626
+ if (cleanValue.indexOf("#") >= 0) {
1627
+ cleanValue = cleanValue.split("#")[1];
1628
+ }
1629
+ return cleanValue;
1630
+ }, "sanitizeErrorCode");
1631
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
1632
+ if (headerKey !== void 0) {
1633
+ return sanitizeErrorCode(output.headers[headerKey]);
1634
+ }
1635
+ if (data.code !== void 0) {
1636
+ return sanitizeErrorCode(data.code);
1637
+ }
1638
+ if (data["__type"] !== void 0) {
1639
+ return sanitizeErrorCode(data["__type"]);
1640
+ }
1641
+ }, "loadRestJsonErrorCode");
1642
+
1643
+ // src/commands/AssociateCreatedArtifactCommand.ts
1644
+ var _AssociateCreatedArtifactCommand = class _AssociateCreatedArtifactCommand extends import_smithy_client.Command.classBuilder().ep({
1645
+ ...commonParams
1646
+ }).m(function(Command, cs, config, o) {
1647
+ return [
1648
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1649
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1650
+ ];
1651
+ }).s("AWSMigrationHub", "AssociateCreatedArtifact", {}).n("MigrationHubClient", "AssociateCreatedArtifactCommand").f(void 0, void 0).ser(se_AssociateCreatedArtifactCommand).de(de_AssociateCreatedArtifactCommand).build() {
1652
+ };
1653
+ __name(_AssociateCreatedArtifactCommand, "AssociateCreatedArtifactCommand");
1654
+ var AssociateCreatedArtifactCommand = _AssociateCreatedArtifactCommand;
1655
+
1656
+ // src/commands/AssociateDiscoveredResourceCommand.ts
1657
+
1658
+
1659
+
1660
+
1661
+ var _AssociateDiscoveredResourceCommand = class _AssociateDiscoveredResourceCommand extends import_smithy_client.Command.classBuilder().ep({
1662
+ ...commonParams
1663
+ }).m(function(Command, cs, config, o) {
1664
+ return [
1665
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1666
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1667
+ ];
1668
+ }).s("AWSMigrationHub", "AssociateDiscoveredResource", {}).n("MigrationHubClient", "AssociateDiscoveredResourceCommand").f(void 0, void 0).ser(se_AssociateDiscoveredResourceCommand).de(de_AssociateDiscoveredResourceCommand).build() {
1669
+ };
1670
+ __name(_AssociateDiscoveredResourceCommand, "AssociateDiscoveredResourceCommand");
1671
+ var AssociateDiscoveredResourceCommand = _AssociateDiscoveredResourceCommand;
1672
+
1673
+ // src/commands/CreateProgressUpdateStreamCommand.ts
1674
+
1675
+
1676
+
1677
+
1678
+ var _CreateProgressUpdateStreamCommand = class _CreateProgressUpdateStreamCommand extends import_smithy_client.Command.classBuilder().ep({
1679
+ ...commonParams
1680
+ }).m(function(Command, cs, config, o) {
1681
+ return [
1682
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1683
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1684
+ ];
1685
+ }).s("AWSMigrationHub", "CreateProgressUpdateStream", {}).n("MigrationHubClient", "CreateProgressUpdateStreamCommand").f(void 0, void 0).ser(se_CreateProgressUpdateStreamCommand).de(de_CreateProgressUpdateStreamCommand).build() {
1686
+ };
1687
+ __name(_CreateProgressUpdateStreamCommand, "CreateProgressUpdateStreamCommand");
1688
+ var CreateProgressUpdateStreamCommand = _CreateProgressUpdateStreamCommand;
1689
+
1690
+ // src/commands/DeleteProgressUpdateStreamCommand.ts
1691
+
1692
+
1693
+
1694
+
1695
+ var _DeleteProgressUpdateStreamCommand = class _DeleteProgressUpdateStreamCommand extends import_smithy_client.Command.classBuilder().ep({
1696
+ ...commonParams
1697
+ }).m(function(Command, cs, config, o) {
1698
+ return [
1699
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1700
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1701
+ ];
1702
+ }).s("AWSMigrationHub", "DeleteProgressUpdateStream", {}).n("MigrationHubClient", "DeleteProgressUpdateStreamCommand").f(void 0, void 0).ser(se_DeleteProgressUpdateStreamCommand).de(de_DeleteProgressUpdateStreamCommand).build() {
1703
+ };
1704
+ __name(_DeleteProgressUpdateStreamCommand, "DeleteProgressUpdateStreamCommand");
1705
+ var DeleteProgressUpdateStreamCommand = _DeleteProgressUpdateStreamCommand;
1706
+
1707
+ // src/commands/DescribeApplicationStateCommand.ts
1708
+
1709
+
1710
+
1711
+
1712
+ var _DescribeApplicationStateCommand = class _DescribeApplicationStateCommand extends import_smithy_client.Command.classBuilder().ep({
1713
+ ...commonParams
1714
+ }).m(function(Command, cs, config, o) {
1715
+ return [
1716
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1717
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1718
+ ];
1719
+ }).s("AWSMigrationHub", "DescribeApplicationState", {}).n("MigrationHubClient", "DescribeApplicationStateCommand").f(void 0, void 0).ser(se_DescribeApplicationStateCommand).de(de_DescribeApplicationStateCommand).build() {
1720
+ };
1721
+ __name(_DescribeApplicationStateCommand, "DescribeApplicationStateCommand");
1722
+ var DescribeApplicationStateCommand = _DescribeApplicationStateCommand;
1723
+
1724
+ // src/commands/DescribeMigrationTaskCommand.ts
1725
+
1726
+
1727
+
1728
+
1729
+ var _DescribeMigrationTaskCommand = class _DescribeMigrationTaskCommand extends import_smithy_client.Command.classBuilder().ep({
1730
+ ...commonParams
1731
+ }).m(function(Command, cs, config, o) {
1732
+ return [
1733
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1734
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1735
+ ];
1736
+ }).s("AWSMigrationHub", "DescribeMigrationTask", {}).n("MigrationHubClient", "DescribeMigrationTaskCommand").f(void 0, void 0).ser(se_DescribeMigrationTaskCommand).de(de_DescribeMigrationTaskCommand).build() {
1737
+ };
1738
+ __name(_DescribeMigrationTaskCommand, "DescribeMigrationTaskCommand");
1739
+ var DescribeMigrationTaskCommand = _DescribeMigrationTaskCommand;
1740
+
1741
+ // src/commands/DisassociateCreatedArtifactCommand.ts
1742
+
1743
+
1744
+
1745
+
1746
+ var _DisassociateCreatedArtifactCommand = class _DisassociateCreatedArtifactCommand extends import_smithy_client.Command.classBuilder().ep({
1747
+ ...commonParams
1748
+ }).m(function(Command, cs, config, o) {
1749
+ return [
1750
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1751
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1752
+ ];
1753
+ }).s("AWSMigrationHub", "DisassociateCreatedArtifact", {}).n("MigrationHubClient", "DisassociateCreatedArtifactCommand").f(void 0, void 0).ser(se_DisassociateCreatedArtifactCommand).de(de_DisassociateCreatedArtifactCommand).build() {
1754
+ };
1755
+ __name(_DisassociateCreatedArtifactCommand, "DisassociateCreatedArtifactCommand");
1756
+ var DisassociateCreatedArtifactCommand = _DisassociateCreatedArtifactCommand;
1757
+
1758
+ // src/commands/DisassociateDiscoveredResourceCommand.ts
1759
+
1760
+
1761
+
1762
+
1763
+ var _DisassociateDiscoveredResourceCommand = class _DisassociateDiscoveredResourceCommand extends import_smithy_client.Command.classBuilder().ep({
1764
+ ...commonParams
1765
+ }).m(function(Command, cs, config, o) {
1766
+ return [
1767
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1768
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1769
+ ];
1770
+ }).s("AWSMigrationHub", "DisassociateDiscoveredResource", {}).n("MigrationHubClient", "DisassociateDiscoveredResourceCommand").f(void 0, void 0).ser(se_DisassociateDiscoveredResourceCommand).de(de_DisassociateDiscoveredResourceCommand).build() {
1771
+ };
1772
+ __name(_DisassociateDiscoveredResourceCommand, "DisassociateDiscoveredResourceCommand");
1773
+ var DisassociateDiscoveredResourceCommand = _DisassociateDiscoveredResourceCommand;
1774
+
1775
+ // src/commands/ImportMigrationTaskCommand.ts
1776
+
1777
+
1778
+
1779
+
1780
+ var _ImportMigrationTaskCommand = class _ImportMigrationTaskCommand extends import_smithy_client.Command.classBuilder().ep({
1781
+ ...commonParams
1782
+ }).m(function(Command, cs, config, o) {
1783
+ return [
1784
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1785
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1786
+ ];
1787
+ }).s("AWSMigrationHub", "ImportMigrationTask", {}).n("MigrationHubClient", "ImportMigrationTaskCommand").f(void 0, void 0).ser(se_ImportMigrationTaskCommand).de(de_ImportMigrationTaskCommand).build() {
1788
+ };
1789
+ __name(_ImportMigrationTaskCommand, "ImportMigrationTaskCommand");
1790
+ var ImportMigrationTaskCommand = _ImportMigrationTaskCommand;
1791
+
1792
+ // src/commands/ListApplicationStatesCommand.ts
1793
+
1794
+
1795
+
1796
+
1797
+ var _ListApplicationStatesCommand = class _ListApplicationStatesCommand extends import_smithy_client.Command.classBuilder().ep({
1798
+ ...commonParams
1799
+ }).m(function(Command, cs, config, o) {
1800
+ return [
1801
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1802
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1803
+ ];
1804
+ }).s("AWSMigrationHub", "ListApplicationStates", {}).n("MigrationHubClient", "ListApplicationStatesCommand").f(void 0, void 0).ser(se_ListApplicationStatesCommand).de(de_ListApplicationStatesCommand).build() {
1805
+ };
1806
+ __name(_ListApplicationStatesCommand, "ListApplicationStatesCommand");
1807
+ var ListApplicationStatesCommand = _ListApplicationStatesCommand;
1808
+
1809
+ // src/commands/ListCreatedArtifactsCommand.ts
1810
+
1811
+
1812
+
1813
+
1814
+ var _ListCreatedArtifactsCommand = class _ListCreatedArtifactsCommand extends import_smithy_client.Command.classBuilder().ep({
1815
+ ...commonParams
1816
+ }).m(function(Command, cs, config, o) {
1817
+ return [
1818
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1819
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1820
+ ];
1821
+ }).s("AWSMigrationHub", "ListCreatedArtifacts", {}).n("MigrationHubClient", "ListCreatedArtifactsCommand").f(void 0, void 0).ser(se_ListCreatedArtifactsCommand).de(de_ListCreatedArtifactsCommand).build() {
1822
+ };
1823
+ __name(_ListCreatedArtifactsCommand, "ListCreatedArtifactsCommand");
1824
+ var ListCreatedArtifactsCommand = _ListCreatedArtifactsCommand;
1825
+
1826
+ // src/commands/ListDiscoveredResourcesCommand.ts
1827
+
1828
+
1829
+
1830
+
1831
+ var _ListDiscoveredResourcesCommand = class _ListDiscoveredResourcesCommand extends import_smithy_client.Command.classBuilder().ep({
1832
+ ...commonParams
1833
+ }).m(function(Command, cs, config, o) {
1834
+ return [
1835
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1836
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1837
+ ];
1838
+ }).s("AWSMigrationHub", "ListDiscoveredResources", {}).n("MigrationHubClient", "ListDiscoveredResourcesCommand").f(void 0, void 0).ser(se_ListDiscoveredResourcesCommand).de(de_ListDiscoveredResourcesCommand).build() {
1839
+ };
1840
+ __name(_ListDiscoveredResourcesCommand, "ListDiscoveredResourcesCommand");
1841
+ var ListDiscoveredResourcesCommand = _ListDiscoveredResourcesCommand;
1842
+
1843
+ // src/commands/ListMigrationTasksCommand.ts
1844
+
1845
+
1846
+
1847
+
1848
+ var _ListMigrationTasksCommand = class _ListMigrationTasksCommand extends import_smithy_client.Command.classBuilder().ep({
1849
+ ...commonParams
1850
+ }).m(function(Command, cs, config, o) {
1851
+ return [
1852
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1853
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1854
+ ];
1855
+ }).s("AWSMigrationHub", "ListMigrationTasks", {}).n("MigrationHubClient", "ListMigrationTasksCommand").f(void 0, void 0).ser(se_ListMigrationTasksCommand).de(de_ListMigrationTasksCommand).build() {
1856
+ };
1857
+ __name(_ListMigrationTasksCommand, "ListMigrationTasksCommand");
1858
+ var ListMigrationTasksCommand = _ListMigrationTasksCommand;
1859
+
1860
+ // src/commands/ListProgressUpdateStreamsCommand.ts
1861
+
1862
+
1863
+
1864
+
1865
+ var _ListProgressUpdateStreamsCommand = class _ListProgressUpdateStreamsCommand extends import_smithy_client.Command.classBuilder().ep({
1866
+ ...commonParams
1867
+ }).m(function(Command, cs, config, o) {
1868
+ return [
1869
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1870
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1871
+ ];
1872
+ }).s("AWSMigrationHub", "ListProgressUpdateStreams", {}).n("MigrationHubClient", "ListProgressUpdateStreamsCommand").f(void 0, void 0).ser(se_ListProgressUpdateStreamsCommand).de(de_ListProgressUpdateStreamsCommand).build() {
1873
+ };
1874
+ __name(_ListProgressUpdateStreamsCommand, "ListProgressUpdateStreamsCommand");
1875
+ var ListProgressUpdateStreamsCommand = _ListProgressUpdateStreamsCommand;
1876
+
1877
+ // src/commands/NotifyApplicationStateCommand.ts
1878
+
1879
+
1880
+
1881
+
1882
+ var _NotifyApplicationStateCommand = class _NotifyApplicationStateCommand extends import_smithy_client.Command.classBuilder().ep({
1883
+ ...commonParams
1884
+ }).m(function(Command, cs, config, o) {
1885
+ return [
1886
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1887
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1888
+ ];
1889
+ }).s("AWSMigrationHub", "NotifyApplicationState", {}).n("MigrationHubClient", "NotifyApplicationStateCommand").f(void 0, void 0).ser(se_NotifyApplicationStateCommand).de(de_NotifyApplicationStateCommand).build() {
1890
+ };
1891
+ __name(_NotifyApplicationStateCommand, "NotifyApplicationStateCommand");
1892
+ var NotifyApplicationStateCommand = _NotifyApplicationStateCommand;
1893
+
1894
+ // src/commands/NotifyMigrationTaskStateCommand.ts
1895
+
1896
+
1897
+
1898
+
1899
+ var _NotifyMigrationTaskStateCommand = class _NotifyMigrationTaskStateCommand extends import_smithy_client.Command.classBuilder().ep({
1900
+ ...commonParams
1901
+ }).m(function(Command, cs, config, o) {
1902
+ return [
1903
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1904
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1905
+ ];
1906
+ }).s("AWSMigrationHub", "NotifyMigrationTaskState", {}).n("MigrationHubClient", "NotifyMigrationTaskStateCommand").f(void 0, void 0).ser(se_NotifyMigrationTaskStateCommand).de(de_NotifyMigrationTaskStateCommand).build() {
1907
+ };
1908
+ __name(_NotifyMigrationTaskStateCommand, "NotifyMigrationTaskStateCommand");
1909
+ var NotifyMigrationTaskStateCommand = _NotifyMigrationTaskStateCommand;
1910
+
1911
+ // src/commands/PutResourceAttributesCommand.ts
1912
+
1913
+
1914
+
1915
+
1916
+ var _PutResourceAttributesCommand = class _PutResourceAttributesCommand extends import_smithy_client.Command.classBuilder().ep({
1917
+ ...commonParams
1918
+ }).m(function(Command, cs, config, o) {
1919
+ return [
1920
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1921
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1922
+ ];
1923
+ }).s("AWSMigrationHub", "PutResourceAttributes", {}).n("MigrationHubClient", "PutResourceAttributesCommand").f(void 0, void 0).ser(se_PutResourceAttributesCommand).de(de_PutResourceAttributesCommand).build() {
1924
+ };
1925
+ __name(_PutResourceAttributesCommand, "PutResourceAttributesCommand");
1926
+ var PutResourceAttributesCommand = _PutResourceAttributesCommand;
1927
+
1928
+ // src/MigrationHub.ts
1929
+ var commands = {
1930
+ AssociateCreatedArtifactCommand,
1931
+ AssociateDiscoveredResourceCommand,
1932
+ CreateProgressUpdateStreamCommand,
1933
+ DeleteProgressUpdateStreamCommand,
1934
+ DescribeApplicationStateCommand,
1935
+ DescribeMigrationTaskCommand,
1936
+ DisassociateCreatedArtifactCommand,
1937
+ DisassociateDiscoveredResourceCommand,
1938
+ ImportMigrationTaskCommand,
1939
+ ListApplicationStatesCommand,
1940
+ ListCreatedArtifactsCommand,
1941
+ ListDiscoveredResourcesCommand,
1942
+ ListMigrationTasksCommand,
1943
+ ListProgressUpdateStreamsCommand,
1944
+ NotifyApplicationStateCommand,
1945
+ NotifyMigrationTaskStateCommand,
1946
+ PutResourceAttributesCommand
1947
+ };
1948
+ var _MigrationHub = class _MigrationHub extends MigrationHubClient {
1949
+ };
1950
+ __name(_MigrationHub, "MigrationHub");
1951
+ var MigrationHub = _MigrationHub;
1952
+ (0, import_smithy_client.createAggregatedClient)(commands, MigrationHub);
1953
+
1954
+ // src/pagination/ListApplicationStatesPaginator.ts
1955
+ var import_core = require("@smithy/core");
1956
+ var paginateListApplicationStates = (0, import_core.createPaginator)(MigrationHubClient, ListApplicationStatesCommand, "NextToken", "NextToken", "MaxResults");
1957
+
1958
+ // src/pagination/ListCreatedArtifactsPaginator.ts
1959
+
1960
+ var paginateListCreatedArtifacts = (0, import_core.createPaginator)(MigrationHubClient, ListCreatedArtifactsCommand, "NextToken", "NextToken", "MaxResults");
1961
+
1962
+ // src/pagination/ListDiscoveredResourcesPaginator.ts
1963
+
1964
+ var paginateListDiscoveredResources = (0, import_core.createPaginator)(MigrationHubClient, ListDiscoveredResourcesCommand, "NextToken", "NextToken", "MaxResults");
1965
+
1966
+ // src/pagination/ListMigrationTasksPaginator.ts
1967
+
1968
+ var paginateListMigrationTasks = (0, import_core.createPaginator)(MigrationHubClient, ListMigrationTasksCommand, "NextToken", "NextToken", "MaxResults");
1969
+
1970
+ // src/pagination/ListProgressUpdateStreamsPaginator.ts
1971
+
1972
+ var paginateListProgressUpdateStreams = (0, import_core.createPaginator)(MigrationHubClient, ListProgressUpdateStreamsCommand, "NextToken", "NextToken", "MaxResults");
1973
+
1974
+ // src/index.ts
1975
+ var import_util_endpoints = require("@aws-sdk/util-endpoints");
1976
+ // Annotate the CommonJS export names for ESM import in node:
1977
+ 0 && (module.exports = {
1978
+ AccessDeniedException,
1979
+ ApplicationStatus,
1980
+ AssociateCreatedArtifactCommand,
1981
+ AssociateDiscoveredResourceCommand,
1982
+ CreateProgressUpdateStreamCommand,
1983
+ DeleteProgressUpdateStreamCommand,
1984
+ DescribeApplicationStateCommand,
1985
+ DescribeMigrationTaskCommand,
1986
+ DisassociateCreatedArtifactCommand,
1987
+ DisassociateDiscoveredResourceCommand,
1988
+ DryRunOperation,
1989
+ HomeRegionNotSetException,
1990
+ ImportMigrationTaskCommand,
1991
+ InternalServerError,
1992
+ InvalidInputException,
1993
+ ListApplicationStatesCommand,
1994
+ ListCreatedArtifactsCommand,
1995
+ ListDiscoveredResourcesCommand,
1996
+ ListMigrationTasksCommand,
1997
+ ListProgressUpdateStreamsCommand,
1998
+ MigrationHub,
1999
+ MigrationHubClient,
2000
+ MigrationHubServiceException,
2001
+ NotifyApplicationStateCommand,
2002
+ NotifyMigrationTaskStateCommand,
2003
+ PolicyErrorException,
2004
+ PutResourceAttributesCommand,
2005
+ ResourceAttributeType,
2006
+ ResourceNotFoundException,
2007
+ ServiceUnavailableException,
2008
+ Status,
2009
+ ThrottlingException,
2010
+ UnauthorizedOperation,
2011
+ __Client,
2012
+ paginateListApplicationStates,
2013
+ paginateListCreatedArtifacts,
2014
+ paginateListDiscoveredResources,
2015
+ paginateListMigrationTasks,
2016
+ paginateListProgressUpdateStreams
2017
+ });