@aws-sdk/client-migration-hub 3.927.0 → 3.928.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 (42) hide show
  1. package/dist-cjs/index.js +687 -849
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/MigrationHubClient.js +2 -0
  4. package/dist-es/commands/AssociateCreatedArtifactCommand.js +3 -9
  5. package/dist-es/commands/AssociateDiscoveredResourceCommand.js +3 -9
  6. package/dist-es/commands/AssociateSourceResourceCommand.js +3 -9
  7. package/dist-es/commands/CreateProgressUpdateStreamCommand.js +3 -9
  8. package/dist-es/commands/DeleteProgressUpdateStreamCommand.js +3 -9
  9. package/dist-es/commands/DescribeApplicationStateCommand.js +3 -9
  10. package/dist-es/commands/DescribeMigrationTaskCommand.js +3 -9
  11. package/dist-es/commands/DisassociateCreatedArtifactCommand.js +3 -9
  12. package/dist-es/commands/DisassociateDiscoveredResourceCommand.js +3 -9
  13. package/dist-es/commands/DisassociateSourceResourceCommand.js +3 -9
  14. package/dist-es/commands/ImportMigrationTaskCommand.js +3 -9
  15. package/dist-es/commands/ListApplicationStatesCommand.js +3 -9
  16. package/dist-es/commands/ListCreatedArtifactsCommand.js +3 -9
  17. package/dist-es/commands/ListDiscoveredResourcesCommand.js +3 -9
  18. package/dist-es/commands/ListMigrationTaskUpdatesCommand.js +3 -9
  19. package/dist-es/commands/ListMigrationTasksCommand.js +3 -9
  20. package/dist-es/commands/ListProgressUpdateStreamsCommand.js +3 -9
  21. package/dist-es/commands/ListSourceResourcesCommand.js +3 -9
  22. package/dist-es/commands/NotifyApplicationStateCommand.js +3 -9
  23. package/dist-es/commands/NotifyMigrationTaskStateCommand.js +3 -9
  24. package/dist-es/commands/PutResourceAttributesCommand.js +3 -9
  25. package/dist-es/runtimeConfig.shared.js +7 -0
  26. package/dist-es/schemas/schemas_0.js +615 -0
  27. package/dist-types/MigrationHubClient.d.ts +10 -1
  28. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  29. package/dist-types/runtimeConfig.d.ts +1 -0
  30. package/dist-types/runtimeConfig.native.d.ts +1 -0
  31. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  32. package/dist-types/schemas/schemas_0.d.ts +96 -0
  33. package/dist-types/ts3.4/MigrationHubClient.d.ts +4 -0
  34. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  35. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  36. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  37. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  38. package/dist-types/ts3.4/schemas/schemas_0.d.ts +101 -0
  39. package/package.json +5 -5
  40. package/dist-es/protocols/Aws_json1_1.js +0 -676
  41. package/dist-types/protocols/Aws_json1_1.d.ts +0 -191
  42. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -257
package/dist-cjs/index.js CHANGED
@@ -6,6 +6,7 @@ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detect
6
6
  var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
7
  var configResolver = require('@smithy/config-resolver');
8
8
  var core = require('@smithy/core');
9
+ var schema = require('@smithy/core/schema');
9
10
  var middlewareContentLength = require('@smithy/middleware-content-length');
10
11
  var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
12
  var middlewareRetry = require('@smithy/middleware-retry');
@@ -14,8 +15,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
15
  var runtimeConfig = require('./runtimeConfig');
15
16
  var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
17
  var protocolHttp = require('@smithy/protocol-http');
17
- var middlewareSerde = require('@smithy/middleware-serde');
18
- var core$1 = require('@aws-sdk/core');
19
18
 
20
19
  const resolveClientEndpointParameters = (options) => {
21
20
  return Object.assign(options, {
@@ -91,6 +90,7 @@ class MigrationHubClient extends smithyClient.Client {
91
90
  const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
92
91
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
93
92
  this.config = _config_8;
93
+ this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
94
94
  this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
95
95
  this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
96
96
  this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
@@ -110,14 +110,14 @@ class MigrationHubClient extends smithyClient.Client {
110
110
  }
111
111
  }
112
112
 
113
- class MigrationHubServiceException extends smithyClient.ServiceException {
113
+ let MigrationHubServiceException$1 = class MigrationHubServiceException extends smithyClient.ServiceException {
114
114
  constructor(options) {
115
115
  super(options);
116
116
  Object.setPrototypeOf(this, MigrationHubServiceException.prototype);
117
117
  }
118
- }
118
+ };
119
119
 
120
- class AccessDeniedException extends MigrationHubServiceException {
120
+ let AccessDeniedException$1 = class AccessDeniedException extends MigrationHubServiceException$1 {
121
121
  name = "AccessDeniedException";
122
122
  $fault = "client";
123
123
  Message;
@@ -130,13 +130,13 @@ class AccessDeniedException extends MigrationHubServiceException {
130
130
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
131
131
  this.Message = opts.Message;
132
132
  }
133
- }
133
+ };
134
134
  const ApplicationStatus = {
135
135
  COMPLETED: "COMPLETED",
136
136
  IN_PROGRESS: "IN_PROGRESS",
137
137
  NOT_STARTED: "NOT_STARTED",
138
138
  };
139
- class DryRunOperation extends MigrationHubServiceException {
139
+ let DryRunOperation$1 = class DryRunOperation extends MigrationHubServiceException$1 {
140
140
  name = "DryRunOperation";
141
141
  $fault = "client";
142
142
  Message;
@@ -149,8 +149,8 @@ class DryRunOperation extends MigrationHubServiceException {
149
149
  Object.setPrototypeOf(this, DryRunOperation.prototype);
150
150
  this.Message = opts.Message;
151
151
  }
152
- }
153
- class HomeRegionNotSetException extends MigrationHubServiceException {
152
+ };
153
+ let HomeRegionNotSetException$1 = class HomeRegionNotSetException extends MigrationHubServiceException$1 {
154
154
  name = "HomeRegionNotSetException";
155
155
  $fault = "client";
156
156
  Message;
@@ -163,8 +163,8 @@ class HomeRegionNotSetException extends MigrationHubServiceException {
163
163
  Object.setPrototypeOf(this, HomeRegionNotSetException.prototype);
164
164
  this.Message = opts.Message;
165
165
  }
166
- }
167
- class InternalServerError extends MigrationHubServiceException {
166
+ };
167
+ let InternalServerError$1 = class InternalServerError extends MigrationHubServiceException$1 {
168
168
  name = "InternalServerError";
169
169
  $fault = "server";
170
170
  Message;
@@ -177,8 +177,8 @@ class InternalServerError extends MigrationHubServiceException {
177
177
  Object.setPrototypeOf(this, InternalServerError.prototype);
178
178
  this.Message = opts.Message;
179
179
  }
180
- }
181
- class InvalidInputException extends MigrationHubServiceException {
180
+ };
181
+ let InvalidInputException$1 = class InvalidInputException extends MigrationHubServiceException$1 {
182
182
  name = "InvalidInputException";
183
183
  $fault = "client";
184
184
  Message;
@@ -191,8 +191,8 @@ class InvalidInputException extends MigrationHubServiceException {
191
191
  Object.setPrototypeOf(this, InvalidInputException.prototype);
192
192
  this.Message = opts.Message;
193
193
  }
194
- }
195
- class ResourceNotFoundException extends MigrationHubServiceException {
194
+ };
195
+ let ResourceNotFoundException$1 = class ResourceNotFoundException extends MigrationHubServiceException$1 {
196
196
  name = "ResourceNotFoundException";
197
197
  $fault = "client";
198
198
  Message;
@@ -205,8 +205,8 @@ class ResourceNotFoundException extends MigrationHubServiceException {
205
205
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
206
206
  this.Message = opts.Message;
207
207
  }
208
- }
209
- class ServiceUnavailableException extends MigrationHubServiceException {
208
+ };
209
+ let ServiceUnavailableException$1 = class ServiceUnavailableException extends MigrationHubServiceException$1 {
210
210
  name = "ServiceUnavailableException";
211
211
  $fault = "server";
212
212
  Message;
@@ -219,8 +219,8 @@ class ServiceUnavailableException extends MigrationHubServiceException {
219
219
  Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
220
220
  this.Message = opts.Message;
221
221
  }
222
- }
223
- class ThrottlingException extends MigrationHubServiceException {
222
+ };
223
+ let ThrottlingException$1 = class ThrottlingException extends MigrationHubServiceException$1 {
224
224
  name = "ThrottlingException";
225
225
  $fault = "client";
226
226
  Message;
@@ -235,8 +235,8 @@ class ThrottlingException extends MigrationHubServiceException {
235
235
  this.Message = opts.Message;
236
236
  this.RetryAfterSeconds = opts.RetryAfterSeconds;
237
237
  }
238
- }
239
- class UnauthorizedOperation extends MigrationHubServiceException {
238
+ };
239
+ let UnauthorizedOperation$1 = class UnauthorizedOperation extends MigrationHubServiceException$1 {
240
240
  name = "UnauthorizedOperation";
241
241
  $fault = "client";
242
242
  Message;
@@ -249,8 +249,8 @@ class UnauthorizedOperation extends MigrationHubServiceException {
249
249
  Object.setPrototypeOf(this, UnauthorizedOperation.prototype);
250
250
  this.Message = opts.Message;
251
251
  }
252
- }
253
- class PolicyErrorException extends MigrationHubServiceException {
252
+ };
253
+ let PolicyErrorException$1 = class PolicyErrorException extends MigrationHubServiceException$1 {
254
254
  name = "PolicyErrorException";
255
255
  $fault = "client";
256
256
  Message;
@@ -263,7 +263,7 @@ class PolicyErrorException extends MigrationHubServiceException {
263
263
  Object.setPrototypeOf(this, PolicyErrorException.prototype);
264
264
  this.Message = opts.Message;
265
265
  }
266
- }
266
+ };
267
267
  const ResourceAttributeType = {
268
268
  BIOS_ID: "BIOS_ID",
269
269
  FQDN: "FQDN",
@@ -286,688 +286,626 @@ const UpdateType = {
286
286
  MigrationTaskStateUpdated: "MIGRATION_TASK_STATE_UPDATED",
287
287
  };
288
288
 
289
- const se_AssociateCreatedArtifactCommand = async (input, context) => {
290
- const headers = sharedHeaders("AssociateCreatedArtifact");
291
- let body;
292
- body = JSON.stringify(smithyClient._json(input));
293
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
294
- };
295
- const se_AssociateDiscoveredResourceCommand = async (input, context) => {
296
- const headers = sharedHeaders("AssociateDiscoveredResource");
297
- let body;
298
- body = JSON.stringify(smithyClient._json(input));
299
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
300
- };
301
- const se_AssociateSourceResourceCommand = async (input, context) => {
302
- const headers = sharedHeaders("AssociateSourceResource");
303
- let body;
304
- body = JSON.stringify(smithyClient._json(input));
305
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
306
- };
307
- const se_CreateProgressUpdateStreamCommand = async (input, context) => {
308
- const headers = sharedHeaders("CreateProgressUpdateStream");
309
- let body;
310
- body = JSON.stringify(smithyClient._json(input));
311
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
312
- };
313
- const se_DeleteProgressUpdateStreamCommand = async (input, context) => {
314
- const headers = sharedHeaders("DeleteProgressUpdateStream");
315
- let body;
316
- body = JSON.stringify(smithyClient._json(input));
317
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
318
- };
319
- const se_DescribeApplicationStateCommand = async (input, context) => {
320
- const headers = sharedHeaders("DescribeApplicationState");
321
- let body;
322
- body = JSON.stringify(smithyClient._json(input));
323
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
324
- };
325
- const se_DescribeMigrationTaskCommand = async (input, context) => {
326
- const headers = sharedHeaders("DescribeMigrationTask");
327
- let body;
328
- body = JSON.stringify(smithyClient._json(input));
329
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
330
- };
331
- const se_DisassociateCreatedArtifactCommand = async (input, context) => {
332
- const headers = sharedHeaders("DisassociateCreatedArtifact");
333
- let body;
334
- body = JSON.stringify(smithyClient._json(input));
335
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
336
- };
337
- const se_DisassociateDiscoveredResourceCommand = async (input, context) => {
338
- const headers = sharedHeaders("DisassociateDiscoveredResource");
339
- let body;
340
- body = JSON.stringify(smithyClient._json(input));
341
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
342
- };
343
- const se_DisassociateSourceResourceCommand = async (input, context) => {
344
- const headers = sharedHeaders("DisassociateSourceResource");
345
- let body;
346
- body = JSON.stringify(smithyClient._json(input));
347
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
348
- };
349
- const se_ImportMigrationTaskCommand = async (input, context) => {
350
- const headers = sharedHeaders("ImportMigrationTask");
351
- let body;
352
- body = JSON.stringify(smithyClient._json(input));
353
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
354
- };
355
- const se_ListApplicationStatesCommand = async (input, context) => {
356
- const headers = sharedHeaders("ListApplicationStates");
357
- let body;
358
- body = JSON.stringify(smithyClient._json(input));
359
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
360
- };
361
- const se_ListCreatedArtifactsCommand = async (input, context) => {
362
- const headers = sharedHeaders("ListCreatedArtifacts");
363
- let body;
364
- body = JSON.stringify(smithyClient._json(input));
365
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
366
- };
367
- const se_ListDiscoveredResourcesCommand = async (input, context) => {
368
- const headers = sharedHeaders("ListDiscoveredResources");
369
- let body;
370
- body = JSON.stringify(smithyClient._json(input));
371
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
372
- };
373
- const se_ListMigrationTasksCommand = async (input, context) => {
374
- const headers = sharedHeaders("ListMigrationTasks");
375
- let body;
376
- body = JSON.stringify(smithyClient._json(input));
377
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
378
- };
379
- const se_ListMigrationTaskUpdatesCommand = async (input, context) => {
380
- const headers = sharedHeaders("ListMigrationTaskUpdates");
381
- let body;
382
- body = JSON.stringify(smithyClient._json(input));
383
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
384
- };
385
- const se_ListProgressUpdateStreamsCommand = async (input, context) => {
386
- const headers = sharedHeaders("ListProgressUpdateStreams");
387
- let body;
388
- body = JSON.stringify(smithyClient._json(input));
389
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
390
- };
391
- const se_ListSourceResourcesCommand = async (input, context) => {
392
- const headers = sharedHeaders("ListSourceResources");
393
- let body;
394
- body = JSON.stringify(smithyClient._json(input));
395
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
396
- };
397
- const se_NotifyApplicationStateCommand = async (input, context) => {
398
- const headers = sharedHeaders("NotifyApplicationState");
399
- let body;
400
- body = JSON.stringify(se_NotifyApplicationStateRequest(input));
401
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
402
- };
403
- const se_NotifyMigrationTaskStateCommand = async (input, context) => {
404
- const headers = sharedHeaders("NotifyMigrationTaskState");
405
- let body;
406
- body = JSON.stringify(se_NotifyMigrationTaskStateRequest(input));
407
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
408
- };
409
- const se_PutResourceAttributesCommand = async (input, context) => {
410
- const headers = sharedHeaders("PutResourceAttributes");
411
- let body;
412
- body = JSON.stringify(smithyClient._json(input));
413
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
414
- };
415
- const de_AssociateCreatedArtifactCommand = async (output, context) => {
416
- if (output.statusCode >= 300) {
417
- return de_CommandError(output, context);
418
- }
419
- const data = await core$1.parseJsonBody(output.body, context);
420
- let contents = {};
421
- contents = smithyClient._json(data);
422
- const response = {
423
- $metadata: deserializeMetadata(output),
424
- ...contents,
425
- };
426
- return response;
427
- };
428
- const de_AssociateDiscoveredResourceCommand = async (output, context) => {
429
- if (output.statusCode >= 300) {
430
- return de_CommandError(output, context);
431
- }
432
- const data = await core$1.parseJsonBody(output.body, context);
433
- let contents = {};
434
- contents = smithyClient._json(data);
435
- const response = {
436
- $metadata: deserializeMetadata(output),
437
- ...contents,
438
- };
439
- return response;
440
- };
441
- const de_AssociateSourceResourceCommand = async (output, context) => {
442
- if (output.statusCode >= 300) {
443
- return de_CommandError(output, context);
444
- }
445
- const data = await core$1.parseJsonBody(output.body, context);
446
- let contents = {};
447
- contents = smithyClient._json(data);
448
- const response = {
449
- $metadata: deserializeMetadata(output),
450
- ...contents,
451
- };
452
- return response;
453
- };
454
- const de_CreateProgressUpdateStreamCommand = async (output, context) => {
455
- if (output.statusCode >= 300) {
456
- return de_CommandError(output, context);
457
- }
458
- const data = await core$1.parseJsonBody(output.body, context);
459
- let contents = {};
460
- contents = smithyClient._json(data);
461
- const response = {
462
- $metadata: deserializeMetadata(output),
463
- ...contents,
464
- };
465
- return response;
466
- };
467
- const de_DeleteProgressUpdateStreamCommand = async (output, context) => {
468
- if (output.statusCode >= 300) {
469
- return de_CommandError(output, context);
470
- }
471
- const data = await core$1.parseJsonBody(output.body, context);
472
- let contents = {};
473
- contents = smithyClient._json(data);
474
- const response = {
475
- $metadata: deserializeMetadata(output),
476
- ...contents,
477
- };
478
- return response;
479
- };
480
- const de_DescribeApplicationStateCommand = async (output, context) => {
481
- if (output.statusCode >= 300) {
482
- return de_CommandError(output, context);
483
- }
484
- const data = await core$1.parseJsonBody(output.body, context);
485
- let contents = {};
486
- contents = de_DescribeApplicationStateResult(data);
487
- const response = {
488
- $metadata: deserializeMetadata(output),
489
- ...contents,
490
- };
491
- return response;
492
- };
493
- const de_DescribeMigrationTaskCommand = async (output, context) => {
494
- if (output.statusCode >= 300) {
495
- return de_CommandError(output, context);
496
- }
497
- const data = await core$1.parseJsonBody(output.body, context);
498
- let contents = {};
499
- contents = de_DescribeMigrationTaskResult(data);
500
- const response = {
501
- $metadata: deserializeMetadata(output),
502
- ...contents,
503
- };
504
- return response;
505
- };
506
- const de_DisassociateCreatedArtifactCommand = async (output, context) => {
507
- if (output.statusCode >= 300) {
508
- return de_CommandError(output, context);
509
- }
510
- const data = await core$1.parseJsonBody(output.body, context);
511
- let contents = {};
512
- contents = smithyClient._json(data);
513
- const response = {
514
- $metadata: deserializeMetadata(output),
515
- ...contents,
516
- };
517
- return response;
518
- };
519
- const de_DisassociateDiscoveredResourceCommand = async (output, context) => {
520
- if (output.statusCode >= 300) {
521
- return de_CommandError(output, context);
522
- }
523
- const data = await core$1.parseJsonBody(output.body, context);
524
- let contents = {};
525
- contents = smithyClient._json(data);
526
- const response = {
527
- $metadata: deserializeMetadata(output),
528
- ...contents,
529
- };
530
- return response;
531
- };
532
- const de_DisassociateSourceResourceCommand = async (output, context) => {
533
- if (output.statusCode >= 300) {
534
- return de_CommandError(output, context);
535
- }
536
- const data = await core$1.parseJsonBody(output.body, context);
537
- let contents = {};
538
- contents = smithyClient._json(data);
539
- const response = {
540
- $metadata: deserializeMetadata(output),
541
- ...contents,
542
- };
543
- return response;
544
- };
545
- const de_ImportMigrationTaskCommand = async (output, context) => {
546
- if (output.statusCode >= 300) {
547
- return de_CommandError(output, context);
548
- }
549
- const data = await core$1.parseJsonBody(output.body, context);
550
- let contents = {};
551
- contents = smithyClient._json(data);
552
- const response = {
553
- $metadata: deserializeMetadata(output),
554
- ...contents,
555
- };
556
- return response;
557
- };
558
- const de_ListApplicationStatesCommand = async (output, context) => {
559
- if (output.statusCode >= 300) {
560
- return de_CommandError(output, context);
561
- }
562
- const data = await core$1.parseJsonBody(output.body, context);
563
- let contents = {};
564
- contents = de_ListApplicationStatesResult(data);
565
- const response = {
566
- $metadata: deserializeMetadata(output),
567
- ...contents,
568
- };
569
- return response;
570
- };
571
- const de_ListCreatedArtifactsCommand = async (output, context) => {
572
- if (output.statusCode >= 300) {
573
- return de_CommandError(output, context);
574
- }
575
- const data = await core$1.parseJsonBody(output.body, context);
576
- let contents = {};
577
- contents = smithyClient._json(data);
578
- const response = {
579
- $metadata: deserializeMetadata(output),
580
- ...contents,
581
- };
582
- return response;
583
- };
584
- const de_ListDiscoveredResourcesCommand = async (output, context) => {
585
- if (output.statusCode >= 300) {
586
- return de_CommandError(output, context);
587
- }
588
- const data = await core$1.parseJsonBody(output.body, context);
589
- let contents = {};
590
- contents = smithyClient._json(data);
591
- const response = {
592
- $metadata: deserializeMetadata(output),
593
- ...contents,
594
- };
595
- return response;
596
- };
597
- const de_ListMigrationTasksCommand = async (output, context) => {
598
- if (output.statusCode >= 300) {
599
- return de_CommandError(output, context);
600
- }
601
- const data = await core$1.parseJsonBody(output.body, context);
602
- let contents = {};
603
- contents = de_ListMigrationTasksResult(data);
604
- const response = {
605
- $metadata: deserializeMetadata(output),
606
- ...contents,
607
- };
608
- return response;
609
- };
610
- const de_ListMigrationTaskUpdatesCommand = async (output, context) => {
611
- if (output.statusCode >= 300) {
612
- return de_CommandError(output, context);
613
- }
614
- const data = await core$1.parseJsonBody(output.body, context);
615
- let contents = {};
616
- contents = de_ListMigrationTaskUpdatesResult(data);
617
- const response = {
618
- $metadata: deserializeMetadata(output),
619
- ...contents,
620
- };
621
- return response;
622
- };
623
- const de_ListProgressUpdateStreamsCommand = async (output, context) => {
624
- if (output.statusCode >= 300) {
625
- return de_CommandError(output, context);
626
- }
627
- const data = await core$1.parseJsonBody(output.body, context);
628
- let contents = {};
629
- contents = smithyClient._json(data);
630
- const response = {
631
- $metadata: deserializeMetadata(output),
632
- ...contents,
633
- };
634
- return response;
635
- };
636
- const de_ListSourceResourcesCommand = async (output, context) => {
637
- if (output.statusCode >= 300) {
638
- return de_CommandError(output, context);
639
- }
640
- const data = await core$1.parseJsonBody(output.body, context);
641
- let contents = {};
642
- contents = smithyClient._json(data);
643
- const response = {
644
- $metadata: deserializeMetadata(output),
645
- ...contents,
646
- };
647
- return response;
648
- };
649
- const de_NotifyApplicationStateCommand = async (output, context) => {
650
- if (output.statusCode >= 300) {
651
- return de_CommandError(output, context);
652
- }
653
- const data = await core$1.parseJsonBody(output.body, context);
654
- let contents = {};
655
- contents = smithyClient._json(data);
656
- const response = {
657
- $metadata: deserializeMetadata(output),
658
- ...contents,
659
- };
660
- return response;
661
- };
662
- const de_NotifyMigrationTaskStateCommand = async (output, context) => {
663
- if (output.statusCode >= 300) {
664
- return de_CommandError(output, context);
665
- }
666
- const data = await core$1.parseJsonBody(output.body, context);
667
- let contents = {};
668
- contents = smithyClient._json(data);
669
- const response = {
670
- $metadata: deserializeMetadata(output),
671
- ...contents,
672
- };
673
- return response;
674
- };
675
- const de_PutResourceAttributesCommand = async (output, context) => {
676
- if (output.statusCode >= 300) {
677
- return de_CommandError(output, context);
678
- }
679
- const data = await core$1.parseJsonBody(output.body, context);
680
- let contents = {};
681
- contents = smithyClient._json(data);
682
- const response = {
683
- $metadata: deserializeMetadata(output),
684
- ...contents,
685
- };
686
- return response;
687
- };
688
- const de_CommandError = async (output, context) => {
689
- const parsedOutput = {
690
- ...output,
691
- body: await core$1.parseJsonErrorBody(output.body, context),
692
- };
693
- const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
694
- switch (errorCode) {
695
- case "AccessDeniedException":
696
- case "com.amazonaws.migrationhub#AccessDeniedException":
697
- throw await de_AccessDeniedExceptionRes(parsedOutput);
698
- case "DryRunOperation":
699
- case "com.amazonaws.migrationhub#DryRunOperation":
700
- throw await de_DryRunOperationRes(parsedOutput);
701
- case "HomeRegionNotSetException":
702
- case "com.amazonaws.migrationhub#HomeRegionNotSetException":
703
- throw await de_HomeRegionNotSetExceptionRes(parsedOutput);
704
- case "InternalServerError":
705
- case "com.amazonaws.migrationhub#InternalServerError":
706
- throw await de_InternalServerErrorRes(parsedOutput);
707
- case "InvalidInputException":
708
- case "com.amazonaws.migrationhub#InvalidInputException":
709
- throw await de_InvalidInputExceptionRes(parsedOutput);
710
- case "ResourceNotFoundException":
711
- case "com.amazonaws.migrationhub#ResourceNotFoundException":
712
- throw await de_ResourceNotFoundExceptionRes(parsedOutput);
713
- case "ServiceUnavailableException":
714
- case "com.amazonaws.migrationhub#ServiceUnavailableException":
715
- throw await de_ServiceUnavailableExceptionRes(parsedOutput);
716
- case "ThrottlingException":
717
- case "com.amazonaws.migrationhub#ThrottlingException":
718
- throw await de_ThrottlingExceptionRes(parsedOutput);
719
- case "UnauthorizedOperation":
720
- case "com.amazonaws.migrationhub#UnauthorizedOperation":
721
- throw await de_UnauthorizedOperationRes(parsedOutput);
722
- case "PolicyErrorException":
723
- case "com.amazonaws.migrationhub#PolicyErrorException":
724
- throw await de_PolicyErrorExceptionRes(parsedOutput);
725
- default:
726
- const parsedBody = parsedOutput.body;
727
- return throwDefaultError({
728
- output,
729
- parsedBody,
730
- errorCode,
731
- });
732
- }
733
- };
734
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
735
- const body = parsedOutput.body;
736
- const deserialized = smithyClient._json(body);
737
- const exception = new AccessDeniedException({
738
- $metadata: deserializeMetadata(parsedOutput),
739
- ...deserialized,
740
- });
741
- return smithyClient.decorateServiceException(exception, body);
742
- };
743
- const de_DryRunOperationRes = async (parsedOutput, context) => {
744
- const body = parsedOutput.body;
745
- const deserialized = smithyClient._json(body);
746
- const exception = new DryRunOperation({
747
- $metadata: deserializeMetadata(parsedOutput),
748
- ...deserialized,
749
- });
750
- return smithyClient.decorateServiceException(exception, body);
751
- };
752
- const de_HomeRegionNotSetExceptionRes = async (parsedOutput, context) => {
753
- const body = parsedOutput.body;
754
- const deserialized = smithyClient._json(body);
755
- const exception = new HomeRegionNotSetException({
756
- $metadata: deserializeMetadata(parsedOutput),
757
- ...deserialized,
758
- });
759
- return smithyClient.decorateServiceException(exception, body);
760
- };
761
- const de_InternalServerErrorRes = async (parsedOutput, context) => {
762
- const body = parsedOutput.body;
763
- const deserialized = smithyClient._json(body);
764
- const exception = new InternalServerError({
765
- $metadata: deserializeMetadata(parsedOutput),
766
- ...deserialized,
767
- });
768
- return smithyClient.decorateServiceException(exception, body);
769
- };
770
- const de_InvalidInputExceptionRes = async (parsedOutput, context) => {
771
- const body = parsedOutput.body;
772
- const deserialized = smithyClient._json(body);
773
- const exception = new InvalidInputException({
774
- $metadata: deserializeMetadata(parsedOutput),
775
- ...deserialized,
776
- });
777
- return smithyClient.decorateServiceException(exception, body);
778
- };
779
- const de_PolicyErrorExceptionRes = async (parsedOutput, context) => {
780
- const body = parsedOutput.body;
781
- const deserialized = smithyClient._json(body);
782
- const exception = new PolicyErrorException({
783
- $metadata: deserializeMetadata(parsedOutput),
784
- ...deserialized,
785
- });
786
- return smithyClient.decorateServiceException(exception, body);
787
- };
788
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
789
- const body = parsedOutput.body;
790
- const deserialized = smithyClient._json(body);
791
- const exception = new ResourceNotFoundException({
792
- $metadata: deserializeMetadata(parsedOutput),
793
- ...deserialized,
794
- });
795
- return smithyClient.decorateServiceException(exception, body);
796
- };
797
- const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
798
- const body = parsedOutput.body;
799
- const deserialized = smithyClient._json(body);
800
- const exception = new ServiceUnavailableException({
801
- $metadata: deserializeMetadata(parsedOutput),
802
- ...deserialized,
803
- });
804
- return smithyClient.decorateServiceException(exception, body);
805
- };
806
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
807
- const body = parsedOutput.body;
808
- const deserialized = smithyClient._json(body);
809
- const exception = new ThrottlingException({
810
- $metadata: deserializeMetadata(parsedOutput),
811
- ...deserialized,
812
- });
813
- return smithyClient.decorateServiceException(exception, body);
814
- };
815
- const de_UnauthorizedOperationRes = async (parsedOutput, context) => {
816
- const body = parsedOutput.body;
817
- const deserialized = smithyClient._json(body);
818
- const exception = new UnauthorizedOperation({
819
- $metadata: deserializeMetadata(parsedOutput),
820
- ...deserialized,
821
- });
822
- return smithyClient.decorateServiceException(exception, body);
823
- };
824
- const se_NotifyApplicationStateRequest = (input, context) => {
825
- return smithyClient.take(input, {
826
- ApplicationId: [],
827
- DryRun: [],
828
- Status: [],
829
- UpdateDateTime: (_) => _.getTime() / 1_000,
830
- });
831
- };
832
- const se_NotifyMigrationTaskStateRequest = (input, context) => {
833
- return smithyClient.take(input, {
834
- DryRun: [],
835
- MigrationTaskName: [],
836
- NextUpdateSeconds: [],
837
- ProgressUpdateStream: [],
838
- Task: smithyClient._json,
839
- UpdateDateTime: (_) => _.getTime() / 1_000,
840
- });
841
- };
842
- const de_ApplicationState = (output, context) => {
843
- return smithyClient.take(output, {
844
- ApplicationId: smithyClient.expectString,
845
- ApplicationStatus: smithyClient.expectString,
846
- LastUpdatedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
847
- });
848
- };
849
- const de_ApplicationStateList = (output, context) => {
850
- const retVal = (output || [])
851
- .filter((e) => e != null)
852
- .map((entry) => {
853
- return de_ApplicationState(entry);
854
- });
855
- return retVal;
856
- };
857
- const de_DescribeApplicationStateResult = (output, context) => {
858
- return smithyClient.take(output, {
859
- ApplicationStatus: smithyClient.expectString,
860
- LastUpdatedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
861
- });
862
- };
863
- const de_DescribeMigrationTaskResult = (output, context) => {
864
- return smithyClient.take(output, {
865
- MigrationTask: (_) => de_MigrationTask(_),
866
- });
867
- };
868
- const de_ListApplicationStatesResult = (output, context) => {
869
- return smithyClient.take(output, {
870
- ApplicationStateList: (_) => de_ApplicationStateList(_),
871
- NextToken: smithyClient.expectString,
872
- });
873
- };
874
- const de_ListMigrationTasksResult = (output, context) => {
875
- return smithyClient.take(output, {
876
- MigrationTaskSummaryList: (_) => de_MigrationTaskSummaryList(_),
877
- NextToken: smithyClient.expectString,
878
- });
879
- };
880
- const de_ListMigrationTaskUpdatesResult = (output, context) => {
881
- return smithyClient.take(output, {
882
- MigrationTaskUpdateList: (_) => de_MigrationTaskUpdateList(_),
883
- NextToken: smithyClient.expectString,
884
- });
885
- };
886
- const de_MigrationTask = (output, context) => {
887
- return smithyClient.take(output, {
888
- MigrationTaskName: smithyClient.expectString,
889
- ProgressUpdateStream: smithyClient.expectString,
890
- ResourceAttributeList: smithyClient._json,
891
- Task: smithyClient._json,
892
- UpdateDateTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
893
- });
894
- };
895
- const de_MigrationTaskSummary = (output, context) => {
896
- return smithyClient.take(output, {
897
- MigrationTaskName: smithyClient.expectString,
898
- ProgressPercent: smithyClient.expectInt32,
899
- ProgressUpdateStream: smithyClient.expectString,
900
- Status: smithyClient.expectString,
901
- StatusDetail: smithyClient.expectString,
902
- UpdateDateTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
903
- });
904
- };
905
- const de_MigrationTaskSummaryList = (output, context) => {
906
- const retVal = (output || [])
907
- .filter((e) => e != null)
908
- .map((entry) => {
909
- return de_MigrationTaskSummary(entry);
910
- });
911
- return retVal;
912
- };
913
- const de_MigrationTaskUpdate = (output, context) => {
914
- return smithyClient.take(output, {
915
- MigrationTaskState: smithyClient._json,
916
- UpdateDateTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
917
- UpdateType: smithyClient.expectString,
918
- });
919
- };
920
- const de_MigrationTaskUpdateList = (output, context) => {
921
- const retVal = (output || [])
922
- .filter((e) => e != null)
923
- .map((entry) => {
924
- return de_MigrationTaskUpdate(entry);
925
- });
926
- return retVal;
927
- };
928
- const deserializeMetadata = (output) => ({
929
- httpStatusCode: output.statusCode,
930
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
931
- extendedRequestId: output.headers["x-amz-id-2"],
932
- cfId: output.headers["x-amz-cf-id"],
933
- });
934
- const throwDefaultError = smithyClient.withBaseException(MigrationHubServiceException);
935
- const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
936
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
937
- const contents = {
938
- protocol,
939
- hostname,
940
- port,
941
- method: "POST",
942
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
943
- headers,
944
- };
945
- if (body !== undefined) {
946
- contents.body = body;
947
- }
948
- return new protocolHttp.HttpRequest(contents);
949
- };
950
- function sharedHeaders(operation) {
951
- return {
952
- "content-type": "application/x-amz-json-1.1",
953
- "x-amz-target": `AWSMigrationHub.${operation}`,
954
- };
955
- }
289
+ const _ACA = "AssociateCreatedArtifact";
290
+ const _ACAR = "AssociateCreatedArtifactRequest";
291
+ const _ACARs = "AssociateCreatedArtifactResult";
292
+ const _ADE = "AccessDeniedException";
293
+ const _ADR = "AssociateDiscoveredResource";
294
+ const _ADRR = "AssociateDiscoveredResourceRequest";
295
+ const _ADRRs = "AssociateDiscoveredResourceResult";
296
+ const _AI = "ApplicationId";
297
+ const _AIp = "ApplicationIds";
298
+ const _AS = "ApplicationState";
299
+ const _ASL = "ApplicationStateList";
300
+ const _ASR = "AssociateSourceResource";
301
+ const _ASRR = "AssociateSourceResourceRequest";
302
+ const _ASRRs = "AssociateSourceResourceResult";
303
+ const _ASp = "ApplicationStatus";
304
+ const _CA = "CreatedArtifact";
305
+ const _CAL = "CreatedArtifactList";
306
+ const _CAN = "CreatedArtifactName";
307
+ const _CI = "ConfigurationId";
308
+ const _CPUS = "CreateProgressUpdateStream";
309
+ const _CPUSR = "CreateProgressUpdateStreamRequest";
310
+ const _CPUSRr = "CreateProgressUpdateStreamResult";
311
+ const _D = "Description";
312
+ const _DAS = "DescribeApplicationState";
313
+ const _DASR = "DescribeApplicationStateRequest";
314
+ const _DASRe = "DescribeApplicationStateResult";
315
+ const _DCA = "DisassociateCreatedArtifact";
316
+ const _DCAR = "DisassociateCreatedArtifactRequest";
317
+ const _DCARi = "DisassociateCreatedArtifactResult";
318
+ const _DDR = "DisassociateDiscoveredResource";
319
+ const _DDRR = "DisassociateDiscoveredResourceRequest";
320
+ const _DDRRi = "DisassociateDiscoveredResourceResult";
321
+ const _DMT = "DescribeMigrationTask";
322
+ const _DMTR = "DescribeMigrationTaskRequest";
323
+ const _DMTRe = "DescribeMigrationTaskResult";
324
+ const _DPUS = "DeleteProgressUpdateStream";
325
+ const _DPUSR = "DeleteProgressUpdateStreamRequest";
326
+ const _DPUSRe = "DeleteProgressUpdateStreamResult";
327
+ const _DR = "DryRun";
328
+ const _DRL = "DiscoveredResourceList";
329
+ const _DRO = "DryRunOperation";
330
+ const _DRi = "DiscoveredResource";
331
+ const _DSR = "DisassociateSourceResource";
332
+ const _DSRR = "DisassociateSourceResourceRequest";
333
+ const _DSRRi = "DisassociateSourceResourceResult";
334
+ const _HRNSE = "HomeRegionNotSetException";
335
+ const _IIE = "InvalidInputException";
336
+ const _IMT = "ImportMigrationTask";
337
+ const _IMTR = "ImportMigrationTaskRequest";
338
+ const _IMTRm = "ImportMigrationTaskResult";
339
+ const _ISE = "InternalServerError";
340
+ const _LAS = "ListApplicationStates";
341
+ const _LASR = "ListApplicationStatesRequest";
342
+ const _LASRi = "ListApplicationStatesResult";
343
+ const _LCA = "ListCreatedArtifacts";
344
+ const _LCAR = "ListCreatedArtifactsRequest";
345
+ const _LCARi = "ListCreatedArtifactsResult";
346
+ const _LDR = "ListDiscoveredResources";
347
+ const _LDRR = "ListDiscoveredResourcesRequest";
348
+ const _LDRRi = "ListDiscoveredResourcesResult";
349
+ const _LMT = "ListMigrationTasks";
350
+ const _LMTR = "ListMigrationTasksRequest";
351
+ const _LMTRi = "ListMigrationTasksResult";
352
+ const _LMTU = "ListMigrationTaskUpdates";
353
+ const _LMTUR = "ListMigrationTaskUpdatesRequest";
354
+ const _LMTURi = "ListMigrationTaskUpdatesResult";
355
+ const _LPUS = "ListProgressUpdateStreams";
356
+ const _LPUSR = "ListProgressUpdateStreamsRequest";
357
+ const _LPUSRi = "ListProgressUpdateStreamsResult";
358
+ const _LRAL = "LatestResourceAttributeList";
359
+ const _LSR = "ListSourceResources";
360
+ const _LSRR = "ListSourceResourcesRequest";
361
+ const _LSRRi = "ListSourceResourcesResult";
362
+ const _LUT = "LastUpdatedTime";
363
+ const _M = "Message";
364
+ const _MR = "MaxResults";
365
+ const _MT = "MigrationTask";
366
+ const _MTN = "MigrationTaskName";
367
+ const _MTS = "MigrationTaskSummary";
368
+ const _MTSL = "MigrationTaskSummaryList";
369
+ const _MTSi = "MigrationTaskState";
370
+ const _MTU = "MigrationTaskUpdate";
371
+ const _MTUL = "MigrationTaskUpdateList";
372
+ const _N = "Name";
373
+ const _NAS = "NotifyApplicationState";
374
+ const _NASR = "NotifyApplicationStateRequest";
375
+ const _NASRo = "NotifyApplicationStateResult";
376
+ const _NMTS = "NotifyMigrationTaskState";
377
+ const _NMTSR = "NotifyMigrationTaskStateRequest";
378
+ const _NMTSRo = "NotifyMigrationTaskStateResult";
379
+ const _NT = "NextToken";
380
+ const _NUS = "NextUpdateSeconds";
381
+ const _PEE = "PolicyErrorException";
382
+ const _PP = "ProgressPercent";
383
+ const _PRA = "PutResourceAttributes";
384
+ const _PRAR = "PutResourceAttributesRequest";
385
+ const _PRARu = "PutResourceAttributesResult";
386
+ const _PUS = "ProgressUpdateStream";
387
+ const _PUSN = "ProgressUpdateStreamName";
388
+ const _PUSS = "ProgressUpdateStreamSummary";
389
+ const _PUSSL = "ProgressUpdateStreamSummaryList";
390
+ const _RA = "ResourceAttribute";
391
+ const _RAL = "ResourceAttributeList";
392
+ const _RAS = "RetryAfterSeconds";
393
+ const _RA_ = "Retry-After";
394
+ const _RN = "ResourceName";
395
+ const _RNFE = "ResourceNotFoundException";
396
+ const _S = "Status";
397
+ const _SD = "StatusDetail";
398
+ const _SR = "SourceResource";
399
+ const _SRL = "SourceResourceList";
400
+ const _SRN = "SourceResourceName";
401
+ const _SUE = "ServiceUnavailableException";
402
+ const _T = "Task";
403
+ const _TE = "ThrottlingException";
404
+ const _Ty = "Type";
405
+ const _UDT = "UpdateDateTime";
406
+ const _UO = "UnauthorizedOperation";
407
+ const _UT = "UpdateType";
408
+ const _V = "Value";
409
+ const _c = "client";
410
+ const _e = "error";
411
+ const _hE = "httpError";
412
+ const _hH = "httpHeader";
413
+ const _s = "server";
414
+ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.migrationhub";
415
+ const n0 = "com.amazonaws.migrationhub";
416
+ var AccessDeniedException = [
417
+ -3,
418
+ n0,
419
+ _ADE,
420
+ {
421
+ [_e]: _c,
422
+ },
423
+ [_M],
424
+ [0],
425
+ ];
426
+ schema.TypeRegistry.for(n0).registerError(AccessDeniedException, AccessDeniedException$1);
427
+ var ApplicationState = [3, n0, _AS, 0, [_AI, _ASp, _LUT], [0, 0, 4]];
428
+ var AssociateCreatedArtifactRequest = [
429
+ 3,
430
+ n0,
431
+ _ACAR,
432
+ 0,
433
+ [_PUS, _MTN, _CA, _DR],
434
+ [0, 0, () => CreatedArtifact, 2],
435
+ ];
436
+ var AssociateCreatedArtifactResult = [3, n0, _ACARs, 0, [], []];
437
+ var AssociateDiscoveredResourceRequest = [
438
+ 3,
439
+ n0,
440
+ _ADRR,
441
+ 0,
442
+ [_PUS, _MTN, _DRi, _DR],
443
+ [0, 0, () => DiscoveredResource, 2],
444
+ ];
445
+ var AssociateDiscoveredResourceResult = [3, n0, _ADRRs, 0, [], []];
446
+ var AssociateSourceResourceRequest = [
447
+ 3,
448
+ n0,
449
+ _ASRR,
450
+ 0,
451
+ [_PUS, _MTN, _SR, _DR],
452
+ [0, 0, () => SourceResource, 2],
453
+ ];
454
+ var AssociateSourceResourceResult = [3, n0, _ASRRs, 0, [], []];
455
+ var CreatedArtifact = [3, n0, _CA, 0, [_N, _D], [0, 0]];
456
+ var CreateProgressUpdateStreamRequest = [3, n0, _CPUSR, 0, [_PUSN, _DR], [0, 2]];
457
+ var CreateProgressUpdateStreamResult = [3, n0, _CPUSRr, 0, [], []];
458
+ var DeleteProgressUpdateStreamRequest = [3, n0, _DPUSR, 0, [_PUSN, _DR], [0, 2]];
459
+ var DeleteProgressUpdateStreamResult = [3, n0, _DPUSRe, 0, [], []];
460
+ var DescribeApplicationStateRequest = [3, n0, _DASR, 0, [_AI], [0]];
461
+ var DescribeApplicationStateResult = [3, n0, _DASRe, 0, [_ASp, _LUT], [0, 4]];
462
+ var DescribeMigrationTaskRequest = [3, n0, _DMTR, 0, [_PUS, _MTN], [0, 0]];
463
+ var DescribeMigrationTaskResult = [3, n0, _DMTRe, 0, [_MT], [() => MigrationTask]];
464
+ var DisassociateCreatedArtifactRequest = [
465
+ 3,
466
+ n0,
467
+ _DCAR,
468
+ 0,
469
+ [_PUS, _MTN, _CAN, _DR],
470
+ [0, 0, 0, 2],
471
+ ];
472
+ var DisassociateCreatedArtifactResult = [3, n0, _DCARi, 0, [], []];
473
+ var DisassociateDiscoveredResourceRequest = [
474
+ 3,
475
+ n0,
476
+ _DDRR,
477
+ 0,
478
+ [_PUS, _MTN, _CI, _DR],
479
+ [0, 0, 0, 2],
480
+ ];
481
+ var DisassociateDiscoveredResourceResult = [3, n0, _DDRRi, 0, [], []];
482
+ var DisassociateSourceResourceRequest = [
483
+ 3,
484
+ n0,
485
+ _DSRR,
486
+ 0,
487
+ [_PUS, _MTN, _SRN, _DR],
488
+ [0, 0, 0, 2],
489
+ ];
490
+ var DisassociateSourceResourceResult = [3, n0, _DSRRi, 0, [], []];
491
+ var DiscoveredResource = [3, n0, _DRi, 0, [_CI, _D], [0, 0]];
492
+ var DryRunOperation = [
493
+ -3,
494
+ n0,
495
+ _DRO,
496
+ {
497
+ [_e]: _c,
498
+ },
499
+ [_M],
500
+ [0],
501
+ ];
502
+ schema.TypeRegistry.for(n0).registerError(DryRunOperation, DryRunOperation$1);
503
+ var HomeRegionNotSetException = [
504
+ -3,
505
+ n0,
506
+ _HRNSE,
507
+ {
508
+ [_e]: _c,
509
+ },
510
+ [_M],
511
+ [0],
512
+ ];
513
+ schema.TypeRegistry.for(n0).registerError(HomeRegionNotSetException, HomeRegionNotSetException$1);
514
+ var ImportMigrationTaskRequest = [3, n0, _IMTR, 0, [_PUS, _MTN, _DR], [0, 0, 2]];
515
+ var ImportMigrationTaskResult = [3, n0, _IMTRm, 0, [], []];
516
+ var InternalServerError = [
517
+ -3,
518
+ n0,
519
+ _ISE,
520
+ {
521
+ [_e]: _s,
522
+ },
523
+ [_M],
524
+ [0],
525
+ ];
526
+ schema.TypeRegistry.for(n0).registerError(InternalServerError, InternalServerError$1);
527
+ var InvalidInputException = [
528
+ -3,
529
+ n0,
530
+ _IIE,
531
+ {
532
+ [_e]: _c,
533
+ },
534
+ [_M],
535
+ [0],
536
+ ];
537
+ schema.TypeRegistry.for(n0).registerError(InvalidInputException, InvalidInputException$1);
538
+ var ListApplicationStatesRequest = [3, n0, _LASR, 0, [_AIp, _NT, _MR], [64 | 0, 0, 1]];
539
+ var ListApplicationStatesResult = [
540
+ 3,
541
+ n0,
542
+ _LASRi,
543
+ 0,
544
+ [_ASL, _NT],
545
+ [() => ApplicationStateList, 0],
546
+ ];
547
+ var ListCreatedArtifactsRequest = [3, n0, _LCAR, 0, [_PUS, _MTN, _NT, _MR], [0, 0, 0, 1]];
548
+ var ListCreatedArtifactsResult = [
549
+ 3,
550
+ n0,
551
+ _LCARi,
552
+ 0,
553
+ [_NT, _CAL],
554
+ [0, () => CreatedArtifactList],
555
+ ];
556
+ var ListDiscoveredResourcesRequest = [
557
+ 3,
558
+ n0,
559
+ _LDRR,
560
+ 0,
561
+ [_PUS, _MTN, _NT, _MR],
562
+ [0, 0, 0, 1],
563
+ ];
564
+ var ListDiscoveredResourcesResult = [
565
+ 3,
566
+ n0,
567
+ _LDRRi,
568
+ 0,
569
+ [_NT, _DRL],
570
+ [0, () => DiscoveredResourceList],
571
+ ];
572
+ var ListMigrationTasksRequest = [3, n0, _LMTR, 0, [_NT, _MR, _RN], [0, 1, 0]];
573
+ var ListMigrationTasksResult = [
574
+ 3,
575
+ n0,
576
+ _LMTRi,
577
+ 0,
578
+ [_NT, _MTSL],
579
+ [0, () => MigrationTaskSummaryList],
580
+ ];
581
+ var ListMigrationTaskUpdatesRequest = [
582
+ 3,
583
+ n0,
584
+ _LMTUR,
585
+ 0,
586
+ [_PUS, _MTN, _NT, _MR],
587
+ [0, 0, 0, 1],
588
+ ];
589
+ var ListMigrationTaskUpdatesResult = [
590
+ 3,
591
+ n0,
592
+ _LMTURi,
593
+ 0,
594
+ [_NT, _MTUL],
595
+ [0, () => MigrationTaskUpdateList],
596
+ ];
597
+ var ListProgressUpdateStreamsRequest = [3, n0, _LPUSR, 0, [_NT, _MR], [0, 1]];
598
+ var ListProgressUpdateStreamsResult = [
599
+ 3,
600
+ n0,
601
+ _LPUSRi,
602
+ 0,
603
+ [_PUSSL, _NT],
604
+ [() => ProgressUpdateStreamSummaryList, 0],
605
+ ];
606
+ var ListSourceResourcesRequest = [3, n0, _LSRR, 0, [_PUS, _MTN, _NT, _MR], [0, 0, 0, 1]];
607
+ var ListSourceResourcesResult = [
608
+ 3,
609
+ n0,
610
+ _LSRRi,
611
+ 0,
612
+ [_NT, _SRL],
613
+ [0, () => SourceResourceList],
614
+ ];
615
+ var MigrationTask = [
616
+ 3,
617
+ n0,
618
+ _MT,
619
+ 0,
620
+ [_PUS, _MTN, _T, _UDT, _RAL],
621
+ [0, 0, () => Task, 4, () => LatestResourceAttributeList],
622
+ ];
623
+ var MigrationTaskSummary = [
624
+ 3,
625
+ n0,
626
+ _MTS,
627
+ 0,
628
+ [_PUS, _MTN, _S, _PP, _SD, _UDT],
629
+ [0, 0, 0, 1, 0, 4],
630
+ ];
631
+ var MigrationTaskUpdate = [3, n0, _MTU, 0, [_UDT, _UT, _MTSi], [4, 0, () => Task]];
632
+ var NotifyApplicationStateRequest = [3, n0, _NASR, 0, [_AI, _S, _UDT, _DR], [0, 0, 4, 2]];
633
+ var NotifyApplicationStateResult = [3, n0, _NASRo, 0, [], []];
634
+ var NotifyMigrationTaskStateRequest = [
635
+ 3,
636
+ n0,
637
+ _NMTSR,
638
+ 0,
639
+ [_PUS, _MTN, _T, _UDT, _NUS, _DR],
640
+ [0, 0, () => Task, 4, 1, 2],
641
+ ];
642
+ var NotifyMigrationTaskStateResult = [3, n0, _NMTSRo, 0, [], []];
643
+ var PolicyErrorException = [
644
+ -3,
645
+ n0,
646
+ _PEE,
647
+ {
648
+ [_e]: _c,
649
+ },
650
+ [_M],
651
+ [0],
652
+ ];
653
+ schema.TypeRegistry.for(n0).registerError(PolicyErrorException, PolicyErrorException$1);
654
+ var ProgressUpdateStreamSummary = [3, n0, _PUSS, 0, [_PUSN], [0]];
655
+ var PutResourceAttributesRequest = [
656
+ 3,
657
+ n0,
658
+ _PRAR,
659
+ 0,
660
+ [_PUS, _MTN, _RAL, _DR],
661
+ [0, 0, () => ResourceAttributeList, 2],
662
+ ];
663
+ var PutResourceAttributesResult = [3, n0, _PRARu, 0, [], []];
664
+ var ResourceAttribute = [3, n0, _RA, 0, [_Ty, _V], [0, 0]];
665
+ var ResourceNotFoundException = [
666
+ -3,
667
+ n0,
668
+ _RNFE,
669
+ {
670
+ [_e]: _c,
671
+ },
672
+ [_M],
673
+ [0],
674
+ ];
675
+ schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException, ResourceNotFoundException$1);
676
+ var ServiceUnavailableException = [
677
+ -3,
678
+ n0,
679
+ _SUE,
680
+ {
681
+ [_e]: _s,
682
+ },
683
+ [_M],
684
+ [0],
685
+ ];
686
+ schema.TypeRegistry.for(n0).registerError(ServiceUnavailableException, ServiceUnavailableException$1);
687
+ var SourceResource = [3, n0, _SR, 0, [_N, _D, _SD], [0, 0, 0]];
688
+ var Task = [3, n0, _T, 0, [_S, _SD, _PP], [0, 0, 1]];
689
+ var ThrottlingException = [
690
+ -3,
691
+ n0,
692
+ _TE,
693
+ {
694
+ [_e]: _c,
695
+ [_hE]: 429,
696
+ },
697
+ [_M, _RAS],
698
+ [
699
+ 0,
700
+ [
701
+ 1,
702
+ {
703
+ [_hH]: _RA_,
704
+ },
705
+ ],
706
+ ],
707
+ ];
708
+ schema.TypeRegistry.for(n0).registerError(ThrottlingException, ThrottlingException$1);
709
+ var UnauthorizedOperation = [
710
+ -3,
711
+ n0,
712
+ _UO,
713
+ {
714
+ [_e]: _c,
715
+ },
716
+ [_M],
717
+ [0],
718
+ ];
719
+ schema.TypeRegistry.for(n0).registerError(UnauthorizedOperation, UnauthorizedOperation$1);
720
+ var MigrationHubServiceException = [-3, _sm, "MigrationHubServiceException", 0, [], []];
721
+ schema.TypeRegistry.for(_sm).registerError(MigrationHubServiceException, MigrationHubServiceException$1);
722
+ var ApplicationStateList = [1, n0, _ASL, 0, () => ApplicationState];
723
+ var CreatedArtifactList = [1, n0, _CAL, 0, () => CreatedArtifact];
724
+ var DiscoveredResourceList = [1, n0, _DRL, 0, () => DiscoveredResource];
725
+ var LatestResourceAttributeList = [1, n0, _LRAL, 0, () => ResourceAttribute];
726
+ var MigrationTaskSummaryList = [1, n0, _MTSL, 0, () => MigrationTaskSummary];
727
+ var MigrationTaskUpdateList = [1, n0, _MTUL, 0, () => MigrationTaskUpdate];
728
+ var ProgressUpdateStreamSummaryList = [1, n0, _PUSSL, 0, () => ProgressUpdateStreamSummary];
729
+ var ResourceAttributeList = [1, n0, _RAL, 0, () => ResourceAttribute];
730
+ var SourceResourceList = [1, n0, _SRL, 0, () => SourceResource];
731
+ var AssociateCreatedArtifact = [
732
+ 9,
733
+ n0,
734
+ _ACA,
735
+ 0,
736
+ () => AssociateCreatedArtifactRequest,
737
+ () => AssociateCreatedArtifactResult,
738
+ ];
739
+ var AssociateDiscoveredResource = [
740
+ 9,
741
+ n0,
742
+ _ADR,
743
+ 0,
744
+ () => AssociateDiscoveredResourceRequest,
745
+ () => AssociateDiscoveredResourceResult,
746
+ ];
747
+ var AssociateSourceResource = [
748
+ 9,
749
+ n0,
750
+ _ASR,
751
+ 0,
752
+ () => AssociateSourceResourceRequest,
753
+ () => AssociateSourceResourceResult,
754
+ ];
755
+ var CreateProgressUpdateStream = [
756
+ 9,
757
+ n0,
758
+ _CPUS,
759
+ 0,
760
+ () => CreateProgressUpdateStreamRequest,
761
+ () => CreateProgressUpdateStreamResult,
762
+ ];
763
+ var DeleteProgressUpdateStream = [
764
+ 9,
765
+ n0,
766
+ _DPUS,
767
+ 0,
768
+ () => DeleteProgressUpdateStreamRequest,
769
+ () => DeleteProgressUpdateStreamResult,
770
+ ];
771
+ var DescribeApplicationState = [
772
+ 9,
773
+ n0,
774
+ _DAS,
775
+ 0,
776
+ () => DescribeApplicationStateRequest,
777
+ () => DescribeApplicationStateResult,
778
+ ];
779
+ var DescribeMigrationTask = [
780
+ 9,
781
+ n0,
782
+ _DMT,
783
+ 0,
784
+ () => DescribeMigrationTaskRequest,
785
+ () => DescribeMigrationTaskResult,
786
+ ];
787
+ var DisassociateCreatedArtifact = [
788
+ 9,
789
+ n0,
790
+ _DCA,
791
+ 0,
792
+ () => DisassociateCreatedArtifactRequest,
793
+ () => DisassociateCreatedArtifactResult,
794
+ ];
795
+ var DisassociateDiscoveredResource = [
796
+ 9,
797
+ n0,
798
+ _DDR,
799
+ 0,
800
+ () => DisassociateDiscoveredResourceRequest,
801
+ () => DisassociateDiscoveredResourceResult,
802
+ ];
803
+ var DisassociateSourceResource = [
804
+ 9,
805
+ n0,
806
+ _DSR,
807
+ 0,
808
+ () => DisassociateSourceResourceRequest,
809
+ () => DisassociateSourceResourceResult,
810
+ ];
811
+ var ImportMigrationTask = [
812
+ 9,
813
+ n0,
814
+ _IMT,
815
+ 0,
816
+ () => ImportMigrationTaskRequest,
817
+ () => ImportMigrationTaskResult,
818
+ ];
819
+ var ListApplicationStates = [
820
+ 9,
821
+ n0,
822
+ _LAS,
823
+ 0,
824
+ () => ListApplicationStatesRequest,
825
+ () => ListApplicationStatesResult,
826
+ ];
827
+ var ListCreatedArtifacts = [
828
+ 9,
829
+ n0,
830
+ _LCA,
831
+ 0,
832
+ () => ListCreatedArtifactsRequest,
833
+ () => ListCreatedArtifactsResult,
834
+ ];
835
+ var ListDiscoveredResources = [
836
+ 9,
837
+ n0,
838
+ _LDR,
839
+ 0,
840
+ () => ListDiscoveredResourcesRequest,
841
+ () => ListDiscoveredResourcesResult,
842
+ ];
843
+ var ListMigrationTasks = [
844
+ 9,
845
+ n0,
846
+ _LMT,
847
+ 0,
848
+ () => ListMigrationTasksRequest,
849
+ () => ListMigrationTasksResult,
850
+ ];
851
+ var ListMigrationTaskUpdates = [
852
+ 9,
853
+ n0,
854
+ _LMTU,
855
+ 0,
856
+ () => ListMigrationTaskUpdatesRequest,
857
+ () => ListMigrationTaskUpdatesResult,
858
+ ];
859
+ var ListProgressUpdateStreams = [
860
+ 9,
861
+ n0,
862
+ _LPUS,
863
+ 0,
864
+ () => ListProgressUpdateStreamsRequest,
865
+ () => ListProgressUpdateStreamsResult,
866
+ ];
867
+ var ListSourceResources = [
868
+ 9,
869
+ n0,
870
+ _LSR,
871
+ 0,
872
+ () => ListSourceResourcesRequest,
873
+ () => ListSourceResourcesResult,
874
+ ];
875
+ var NotifyApplicationState = [
876
+ 9,
877
+ n0,
878
+ _NAS,
879
+ 0,
880
+ () => NotifyApplicationStateRequest,
881
+ () => NotifyApplicationStateResult,
882
+ ];
883
+ var NotifyMigrationTaskState = [
884
+ 9,
885
+ n0,
886
+ _NMTS,
887
+ 0,
888
+ () => NotifyMigrationTaskStateRequest,
889
+ () => NotifyMigrationTaskStateResult,
890
+ ];
891
+ var PutResourceAttributes = [
892
+ 9,
893
+ n0,
894
+ _PRA,
895
+ 0,
896
+ () => PutResourceAttributesRequest,
897
+ () => PutResourceAttributesResult,
898
+ ];
956
899
 
957
900
  class AssociateCreatedArtifactCommand extends smithyClient.Command
958
901
  .classBuilder()
959
902
  .ep(commonParams)
960
903
  .m(function (Command, cs, config, o) {
961
- return [
962
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
963
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
964
- ];
904
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
965
905
  })
966
906
  .s("AWSMigrationHub", "AssociateCreatedArtifact", {})
967
907
  .n("MigrationHubClient", "AssociateCreatedArtifactCommand")
968
- .f(void 0, void 0)
969
- .ser(se_AssociateCreatedArtifactCommand)
970
- .de(de_AssociateCreatedArtifactCommand)
908
+ .sc(AssociateCreatedArtifact)
971
909
  .build() {
972
910
  }
973
911
 
@@ -975,16 +913,11 @@ class AssociateDiscoveredResourceCommand extends smithyClient.Command
975
913
  .classBuilder()
976
914
  .ep(commonParams)
977
915
  .m(function (Command, cs, config, o) {
978
- return [
979
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
980
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
981
- ];
916
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
982
917
  })
983
918
  .s("AWSMigrationHub", "AssociateDiscoveredResource", {})
984
919
  .n("MigrationHubClient", "AssociateDiscoveredResourceCommand")
985
- .f(void 0, void 0)
986
- .ser(se_AssociateDiscoveredResourceCommand)
987
- .de(de_AssociateDiscoveredResourceCommand)
920
+ .sc(AssociateDiscoveredResource)
988
921
  .build() {
989
922
  }
990
923
 
@@ -992,16 +925,11 @@ class AssociateSourceResourceCommand extends smithyClient.Command
992
925
  .classBuilder()
993
926
  .ep(commonParams)
994
927
  .m(function (Command, cs, config, o) {
995
- return [
996
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
997
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
998
- ];
928
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
999
929
  })
1000
930
  .s("AWSMigrationHub", "AssociateSourceResource", {})
1001
931
  .n("MigrationHubClient", "AssociateSourceResourceCommand")
1002
- .f(void 0, void 0)
1003
- .ser(se_AssociateSourceResourceCommand)
1004
- .de(de_AssociateSourceResourceCommand)
932
+ .sc(AssociateSourceResource)
1005
933
  .build() {
1006
934
  }
1007
935
 
@@ -1009,16 +937,11 @@ class CreateProgressUpdateStreamCommand extends smithyClient.Command
1009
937
  .classBuilder()
1010
938
  .ep(commonParams)
1011
939
  .m(function (Command, cs, config, o) {
1012
- return [
1013
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1014
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1015
- ];
940
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1016
941
  })
1017
942
  .s("AWSMigrationHub", "CreateProgressUpdateStream", {})
1018
943
  .n("MigrationHubClient", "CreateProgressUpdateStreamCommand")
1019
- .f(void 0, void 0)
1020
- .ser(se_CreateProgressUpdateStreamCommand)
1021
- .de(de_CreateProgressUpdateStreamCommand)
944
+ .sc(CreateProgressUpdateStream)
1022
945
  .build() {
1023
946
  }
1024
947
 
@@ -1026,16 +949,11 @@ class DeleteProgressUpdateStreamCommand extends smithyClient.Command
1026
949
  .classBuilder()
1027
950
  .ep(commonParams)
1028
951
  .m(function (Command, cs, config, o) {
1029
- return [
1030
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1031
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1032
- ];
952
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1033
953
  })
1034
954
  .s("AWSMigrationHub", "DeleteProgressUpdateStream", {})
1035
955
  .n("MigrationHubClient", "DeleteProgressUpdateStreamCommand")
1036
- .f(void 0, void 0)
1037
- .ser(se_DeleteProgressUpdateStreamCommand)
1038
- .de(de_DeleteProgressUpdateStreamCommand)
956
+ .sc(DeleteProgressUpdateStream)
1039
957
  .build() {
1040
958
  }
1041
959
 
@@ -1043,16 +961,11 @@ class DescribeApplicationStateCommand extends smithyClient.Command
1043
961
  .classBuilder()
1044
962
  .ep(commonParams)
1045
963
  .m(function (Command, cs, config, o) {
1046
- return [
1047
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1048
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1049
- ];
964
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1050
965
  })
1051
966
  .s("AWSMigrationHub", "DescribeApplicationState", {})
1052
967
  .n("MigrationHubClient", "DescribeApplicationStateCommand")
1053
- .f(void 0, void 0)
1054
- .ser(se_DescribeApplicationStateCommand)
1055
- .de(de_DescribeApplicationStateCommand)
968
+ .sc(DescribeApplicationState)
1056
969
  .build() {
1057
970
  }
1058
971
 
@@ -1060,16 +973,11 @@ class DescribeMigrationTaskCommand extends smithyClient.Command
1060
973
  .classBuilder()
1061
974
  .ep(commonParams)
1062
975
  .m(function (Command, cs, config, o) {
1063
- return [
1064
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1065
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1066
- ];
976
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1067
977
  })
1068
978
  .s("AWSMigrationHub", "DescribeMigrationTask", {})
1069
979
  .n("MigrationHubClient", "DescribeMigrationTaskCommand")
1070
- .f(void 0, void 0)
1071
- .ser(se_DescribeMigrationTaskCommand)
1072
- .de(de_DescribeMigrationTaskCommand)
980
+ .sc(DescribeMigrationTask)
1073
981
  .build() {
1074
982
  }
1075
983
 
@@ -1077,16 +985,11 @@ class DisassociateCreatedArtifactCommand extends smithyClient.Command
1077
985
  .classBuilder()
1078
986
  .ep(commonParams)
1079
987
  .m(function (Command, cs, config, o) {
1080
- return [
1081
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1082
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1083
- ];
988
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1084
989
  })
1085
990
  .s("AWSMigrationHub", "DisassociateCreatedArtifact", {})
1086
991
  .n("MigrationHubClient", "DisassociateCreatedArtifactCommand")
1087
- .f(void 0, void 0)
1088
- .ser(se_DisassociateCreatedArtifactCommand)
1089
- .de(de_DisassociateCreatedArtifactCommand)
992
+ .sc(DisassociateCreatedArtifact)
1090
993
  .build() {
1091
994
  }
1092
995
 
@@ -1094,16 +997,11 @@ class DisassociateDiscoveredResourceCommand extends smithyClient.Command
1094
997
  .classBuilder()
1095
998
  .ep(commonParams)
1096
999
  .m(function (Command, cs, config, o) {
1097
- return [
1098
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1099
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1100
- ];
1000
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1101
1001
  })
1102
1002
  .s("AWSMigrationHub", "DisassociateDiscoveredResource", {})
1103
1003
  .n("MigrationHubClient", "DisassociateDiscoveredResourceCommand")
1104
- .f(void 0, void 0)
1105
- .ser(se_DisassociateDiscoveredResourceCommand)
1106
- .de(de_DisassociateDiscoveredResourceCommand)
1004
+ .sc(DisassociateDiscoveredResource)
1107
1005
  .build() {
1108
1006
  }
1109
1007
 
@@ -1111,16 +1009,11 @@ class DisassociateSourceResourceCommand extends smithyClient.Command
1111
1009
  .classBuilder()
1112
1010
  .ep(commonParams)
1113
1011
  .m(function (Command, cs, config, o) {
1114
- return [
1115
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1116
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1117
- ];
1012
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1118
1013
  })
1119
1014
  .s("AWSMigrationHub", "DisassociateSourceResource", {})
1120
1015
  .n("MigrationHubClient", "DisassociateSourceResourceCommand")
1121
- .f(void 0, void 0)
1122
- .ser(se_DisassociateSourceResourceCommand)
1123
- .de(de_DisassociateSourceResourceCommand)
1016
+ .sc(DisassociateSourceResource)
1124
1017
  .build() {
1125
1018
  }
1126
1019
 
@@ -1128,16 +1021,11 @@ class ImportMigrationTaskCommand extends smithyClient.Command
1128
1021
  .classBuilder()
1129
1022
  .ep(commonParams)
1130
1023
  .m(function (Command, cs, config, o) {
1131
- return [
1132
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1133
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1134
- ];
1024
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1135
1025
  })
1136
1026
  .s("AWSMigrationHub", "ImportMigrationTask", {})
1137
1027
  .n("MigrationHubClient", "ImportMigrationTaskCommand")
1138
- .f(void 0, void 0)
1139
- .ser(se_ImportMigrationTaskCommand)
1140
- .de(de_ImportMigrationTaskCommand)
1028
+ .sc(ImportMigrationTask)
1141
1029
  .build() {
1142
1030
  }
1143
1031
 
@@ -1145,16 +1033,11 @@ class ListApplicationStatesCommand extends smithyClient.Command
1145
1033
  .classBuilder()
1146
1034
  .ep(commonParams)
1147
1035
  .m(function (Command, cs, config, o) {
1148
- return [
1149
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1150
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1151
- ];
1036
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1152
1037
  })
1153
1038
  .s("AWSMigrationHub", "ListApplicationStates", {})
1154
1039
  .n("MigrationHubClient", "ListApplicationStatesCommand")
1155
- .f(void 0, void 0)
1156
- .ser(se_ListApplicationStatesCommand)
1157
- .de(de_ListApplicationStatesCommand)
1040
+ .sc(ListApplicationStates)
1158
1041
  .build() {
1159
1042
  }
1160
1043
 
@@ -1162,16 +1045,11 @@ class ListCreatedArtifactsCommand extends smithyClient.Command
1162
1045
  .classBuilder()
1163
1046
  .ep(commonParams)
1164
1047
  .m(function (Command, cs, config, o) {
1165
- return [
1166
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1167
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1168
- ];
1048
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1169
1049
  })
1170
1050
  .s("AWSMigrationHub", "ListCreatedArtifacts", {})
1171
1051
  .n("MigrationHubClient", "ListCreatedArtifactsCommand")
1172
- .f(void 0, void 0)
1173
- .ser(se_ListCreatedArtifactsCommand)
1174
- .de(de_ListCreatedArtifactsCommand)
1052
+ .sc(ListCreatedArtifacts)
1175
1053
  .build() {
1176
1054
  }
1177
1055
 
@@ -1179,16 +1057,11 @@ class ListDiscoveredResourcesCommand extends smithyClient.Command
1179
1057
  .classBuilder()
1180
1058
  .ep(commonParams)
1181
1059
  .m(function (Command, cs, config, o) {
1182
- return [
1183
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1184
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1185
- ];
1060
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1186
1061
  })
1187
1062
  .s("AWSMigrationHub", "ListDiscoveredResources", {})
1188
1063
  .n("MigrationHubClient", "ListDiscoveredResourcesCommand")
1189
- .f(void 0, void 0)
1190
- .ser(se_ListDiscoveredResourcesCommand)
1191
- .de(de_ListDiscoveredResourcesCommand)
1064
+ .sc(ListDiscoveredResources)
1192
1065
  .build() {
1193
1066
  }
1194
1067
 
@@ -1196,16 +1069,11 @@ class ListMigrationTasksCommand extends smithyClient.Command
1196
1069
  .classBuilder()
1197
1070
  .ep(commonParams)
1198
1071
  .m(function (Command, cs, config, o) {
1199
- return [
1200
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1201
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1202
- ];
1072
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1203
1073
  })
1204
1074
  .s("AWSMigrationHub", "ListMigrationTasks", {})
1205
1075
  .n("MigrationHubClient", "ListMigrationTasksCommand")
1206
- .f(void 0, void 0)
1207
- .ser(se_ListMigrationTasksCommand)
1208
- .de(de_ListMigrationTasksCommand)
1076
+ .sc(ListMigrationTasks)
1209
1077
  .build() {
1210
1078
  }
1211
1079
 
@@ -1213,16 +1081,11 @@ class ListMigrationTaskUpdatesCommand extends smithyClient.Command
1213
1081
  .classBuilder()
1214
1082
  .ep(commonParams)
1215
1083
  .m(function (Command, cs, config, o) {
1216
- return [
1217
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1218
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1219
- ];
1084
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1220
1085
  })
1221
1086
  .s("AWSMigrationHub", "ListMigrationTaskUpdates", {})
1222
1087
  .n("MigrationHubClient", "ListMigrationTaskUpdatesCommand")
1223
- .f(void 0, void 0)
1224
- .ser(se_ListMigrationTaskUpdatesCommand)
1225
- .de(de_ListMigrationTaskUpdatesCommand)
1088
+ .sc(ListMigrationTaskUpdates)
1226
1089
  .build() {
1227
1090
  }
1228
1091
 
@@ -1230,16 +1093,11 @@ class ListProgressUpdateStreamsCommand extends smithyClient.Command
1230
1093
  .classBuilder()
1231
1094
  .ep(commonParams)
1232
1095
  .m(function (Command, cs, config, o) {
1233
- return [
1234
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1235
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1236
- ];
1096
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1237
1097
  })
1238
1098
  .s("AWSMigrationHub", "ListProgressUpdateStreams", {})
1239
1099
  .n("MigrationHubClient", "ListProgressUpdateStreamsCommand")
1240
- .f(void 0, void 0)
1241
- .ser(se_ListProgressUpdateStreamsCommand)
1242
- .de(de_ListProgressUpdateStreamsCommand)
1100
+ .sc(ListProgressUpdateStreams)
1243
1101
  .build() {
1244
1102
  }
1245
1103
 
@@ -1247,16 +1105,11 @@ class ListSourceResourcesCommand extends smithyClient.Command
1247
1105
  .classBuilder()
1248
1106
  .ep(commonParams)
1249
1107
  .m(function (Command, cs, config, o) {
1250
- return [
1251
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1252
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1253
- ];
1108
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1254
1109
  })
1255
1110
  .s("AWSMigrationHub", "ListSourceResources", {})
1256
1111
  .n("MigrationHubClient", "ListSourceResourcesCommand")
1257
- .f(void 0, void 0)
1258
- .ser(se_ListSourceResourcesCommand)
1259
- .de(de_ListSourceResourcesCommand)
1112
+ .sc(ListSourceResources)
1260
1113
  .build() {
1261
1114
  }
1262
1115
 
@@ -1264,16 +1117,11 @@ class NotifyApplicationStateCommand extends smithyClient.Command
1264
1117
  .classBuilder()
1265
1118
  .ep(commonParams)
1266
1119
  .m(function (Command, cs, config, o) {
1267
- return [
1268
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1269
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1270
- ];
1120
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1271
1121
  })
1272
1122
  .s("AWSMigrationHub", "NotifyApplicationState", {})
1273
1123
  .n("MigrationHubClient", "NotifyApplicationStateCommand")
1274
- .f(void 0, void 0)
1275
- .ser(se_NotifyApplicationStateCommand)
1276
- .de(de_NotifyApplicationStateCommand)
1124
+ .sc(NotifyApplicationState)
1277
1125
  .build() {
1278
1126
  }
1279
1127
 
@@ -1281,16 +1129,11 @@ class NotifyMigrationTaskStateCommand extends smithyClient.Command
1281
1129
  .classBuilder()
1282
1130
  .ep(commonParams)
1283
1131
  .m(function (Command, cs, config, o) {
1284
- return [
1285
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1286
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1287
- ];
1132
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1288
1133
  })
1289
1134
  .s("AWSMigrationHub", "NotifyMigrationTaskState", {})
1290
1135
  .n("MigrationHubClient", "NotifyMigrationTaskStateCommand")
1291
- .f(void 0, void 0)
1292
- .ser(se_NotifyMigrationTaskStateCommand)
1293
- .de(de_NotifyMigrationTaskStateCommand)
1136
+ .sc(NotifyMigrationTaskState)
1294
1137
  .build() {
1295
1138
  }
1296
1139
 
@@ -1298,16 +1141,11 @@ class PutResourceAttributesCommand extends smithyClient.Command
1298
1141
  .classBuilder()
1299
1142
  .ep(commonParams)
1300
1143
  .m(function (Command, cs, config, o) {
1301
- return [
1302
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1303
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1304
- ];
1144
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1305
1145
  })
1306
1146
  .s("AWSMigrationHub", "PutResourceAttributes", {})
1307
1147
  .n("MigrationHubClient", "PutResourceAttributesCommand")
1308
- .f(void 0, void 0)
1309
- .ser(se_PutResourceAttributesCommand)
1310
- .de(de_PutResourceAttributesCommand)
1148
+ .sc(PutResourceAttributes)
1311
1149
  .build() {
1312
1150
  }
1313
1151
 
@@ -1360,7 +1198,7 @@ Object.defineProperty(exports, "__Client", {
1360
1198
  enumerable: true,
1361
1199
  get: function () { return smithyClient.Client; }
1362
1200
  });
1363
- exports.AccessDeniedException = AccessDeniedException;
1201
+ exports.AccessDeniedException = AccessDeniedException$1;
1364
1202
  exports.ApplicationStatus = ApplicationStatus;
1365
1203
  exports.AssociateCreatedArtifactCommand = AssociateCreatedArtifactCommand;
1366
1204
  exports.AssociateDiscoveredResourceCommand = AssociateDiscoveredResourceCommand;
@@ -1372,11 +1210,11 @@ exports.DescribeMigrationTaskCommand = DescribeMigrationTaskCommand;
1372
1210
  exports.DisassociateCreatedArtifactCommand = DisassociateCreatedArtifactCommand;
1373
1211
  exports.DisassociateDiscoveredResourceCommand = DisassociateDiscoveredResourceCommand;
1374
1212
  exports.DisassociateSourceResourceCommand = DisassociateSourceResourceCommand;
1375
- exports.DryRunOperation = DryRunOperation;
1376
- exports.HomeRegionNotSetException = HomeRegionNotSetException;
1213
+ exports.DryRunOperation = DryRunOperation$1;
1214
+ exports.HomeRegionNotSetException = HomeRegionNotSetException$1;
1377
1215
  exports.ImportMigrationTaskCommand = ImportMigrationTaskCommand;
1378
- exports.InternalServerError = InternalServerError;
1379
- exports.InvalidInputException = InvalidInputException;
1216
+ exports.InternalServerError = InternalServerError$1;
1217
+ exports.InvalidInputException = InvalidInputException$1;
1380
1218
  exports.ListApplicationStatesCommand = ListApplicationStatesCommand;
1381
1219
  exports.ListCreatedArtifactsCommand = ListCreatedArtifactsCommand;
1382
1220
  exports.ListDiscoveredResourcesCommand = ListDiscoveredResourcesCommand;
@@ -1386,17 +1224,17 @@ exports.ListProgressUpdateStreamsCommand = ListProgressUpdateStreamsCommand;
1386
1224
  exports.ListSourceResourcesCommand = ListSourceResourcesCommand;
1387
1225
  exports.MigrationHub = MigrationHub;
1388
1226
  exports.MigrationHubClient = MigrationHubClient;
1389
- exports.MigrationHubServiceException = MigrationHubServiceException;
1227
+ exports.MigrationHubServiceException = MigrationHubServiceException$1;
1390
1228
  exports.NotifyApplicationStateCommand = NotifyApplicationStateCommand;
1391
1229
  exports.NotifyMigrationTaskStateCommand = NotifyMigrationTaskStateCommand;
1392
- exports.PolicyErrorException = PolicyErrorException;
1230
+ exports.PolicyErrorException = PolicyErrorException$1;
1393
1231
  exports.PutResourceAttributesCommand = PutResourceAttributesCommand;
1394
1232
  exports.ResourceAttributeType = ResourceAttributeType;
1395
- exports.ResourceNotFoundException = ResourceNotFoundException;
1396
- exports.ServiceUnavailableException = ServiceUnavailableException;
1233
+ exports.ResourceNotFoundException = ResourceNotFoundException$1;
1234
+ exports.ServiceUnavailableException = ServiceUnavailableException$1;
1397
1235
  exports.Status = Status;
1398
- exports.ThrottlingException = ThrottlingException;
1399
- exports.UnauthorizedOperation = UnauthorizedOperation;
1236
+ exports.ThrottlingException = ThrottlingException$1;
1237
+ exports.UnauthorizedOperation = UnauthorizedOperation$1;
1400
1238
  exports.UpdateType = UpdateType;
1401
1239
  exports.paginateListApplicationStates = paginateListApplicationStates;
1402
1240
  exports.paginateListCreatedArtifacts = paginateListCreatedArtifacts;